ts.worker-ed2ba67c.js 4.7 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970
  1. var PF=Object.defineProperty;var FF=(Im,L_,Nm)=>L_ in Im?PF(Im,L_,{enumerable:!0,configurable:!0,writable:!0,value:Nm}):Im[L_]=Nm;var Iv=(Im,L_,Nm)=>(FF(Im,typeof L_!="symbol"?L_+"":L_,Nm),Nm);(function(){"use strict";class Im{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(n){setTimeout(()=>{throw n.stack?new Error(n.message+`
  2. `+n.stack):n},0)}}emit(n){this.listeners.forEach(f=>{f(n)})}onUnexpectedError(n){this.unexpectedErrorHandler(n),this.emit(n)}onUnexpectedExternalError(n){this.unexpectedErrorHandler(n)}}const L_=new Im;function Nm(e){wI(e)||L_.onUnexpectedError(e)}function FT(e){if(e instanceof Error){let{name:n,message:f}=e;const p=e.stacktrace||e.stack;return{$isError:!0,name:n,message:f,stack:p}}return e}const Xb="Canceled";function wI(e){return e instanceof MI?!0:e instanceof Error&&e.name===Xb&&e.message===Xb}class MI extends Error{constructor(){super(Xb),this.name=this.message}}function PI(e){const n=this;let f=!1,p;return function(){return f||(f=!0,p=e.apply(n,arguments)),p}}var Yb;(function(e){function n(I){return I&&typeof I=="object"&&typeof I[Symbol.iterator]=="function"}e.is=n;const f=Object.freeze([]);function p(){return f}e.empty=p;function*a(I){yield I}e.single=a;function d(I){return I||f}e.from=d;function k(I){return!I||I[Symbol.iterator]().next().done===!0}e.isEmpty=k;function J(I){return I[Symbol.iterator]().next().value}e.first=J;function h(I,w){for(const x of I)if(w(x))return!0;return!1}e.some=h;function v(I,w){for(const x of I)if(w(x))return x}e.find=v;function*A(I,w){for(const x of I)w(x)&&(yield x)}e.filter=A;function*z(I,w){let x=0;for(const O of I)yield w(O,x++)}e.map=z;function*ie(...I){for(const w of I)for(const x of w)yield x}e.concat=ie;function*b(I){for(const w of I)for(const x of w)yield x}e.concatNested=b;function M(I,w,x){let O=x;for(const q of I)O=w(O,q);return O}e.reduce=M;function*S(I,w,x=I.length){for(w<0&&(w+=I.length),x<0?x+=I.length:x>I.length&&(x=I.length);w<x;w++)yield I[w]}e.slice=S;function B(I,w=Number.POSITIVE_INFINITY){const x=[];if(w===0)return[x,I];const O=I[Symbol.iterator]();for(let q=0;q<w;q++){const Z=O.next();if(Z.done)return[x,e.empty()];x.push(Z.value)}return[x,{[Symbol.iterator](){return O}}]}e.consume=B;function H(I,w,x=(O,q)=>O===q){const O=I[Symbol.iterator](),q=w[Symbol.iterator]();for(;;){const Z=O.next(),ne=q.next();if(Z.done!==ne.done)return!1;if(Z.done)return!0;if(!x(Z.value,ne.value))return!1}}e.equals=H})(Yb||(Yb={}));function GF(e){return e}function BF(e,n){}class FI extends Error{constructor(n){super(`Encountered errors while disposing of store. Errors: [${n.join(", ")}]`),this.errors=n}}function GT(e){if(Yb.is(e)){let n=[];for(const f of e)if(f)try{f.dispose()}catch(p){n.push(p)}if(n.length===1)throw n[0];if(n.length>1)throw new FI(n);return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function GI(...e){return Kh(()=>GT(e))}function Kh(e){return{dispose:PI(()=>{e()})}}class Lg{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{GT(this._toDispose.values())}finally{this._toDispose.clear()}}add(n){if(!n)return n;if(n===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?Lg.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(n),n}}Lg.DISABLE_DISPOSED_WARNING=!1;class Qb{constructor(){this._store=new Lg,this._store}dispose(){this._store.dispose()}_register(n){if(n===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(n)}}Qb.None=Object.freeze({dispose(){}});class BI{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1}set(n){let f=n;return this.unset=()=>f=void 0,this.isset=()=>f!==void 0,this.dispose=()=>{f&&(f(),f=void 0)},this}}class al{constructor(n){this.element=n,this.next=al.Undefined,this.prev=al.Undefined}}al.Undefined=new al(void 0);class BT{constructor(){this._first=al.Undefined,this._last=al.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===al.Undefined}clear(){let n=this._first;for(;n!==al.Undefined;){const f=n.next;n.prev=al.Undefined,n.next=al.Undefined,n=f}this._first=al.Undefined,this._last=al.Undefined,this._size=0}unshift(n){return this._insert(n,!1)}push(n){return this._insert(n,!0)}_insert(n,f){const p=new al(n);if(this._first===al.Undefined)this._first=p,this._last=p;else if(f){const d=this._last;this._last=p,p.prev=d,d.next=p}else{const d=this._first;this._first=p,p.next=d,d.prev=p}this._size+=1;let a=!1;return()=>{a||(a=!0,this._remove(p))}}shift(){if(this._first!==al.Undefined){const n=this._first.element;return this._remove(this._first),n}}pop(){if(this._last!==al.Undefined){const n=this._last.element;return this._remove(this._last),n}}_remove(n){if(n.prev!==al.Undefined&&n.next!==al.Undefined){const f=n.prev;f.next=n.next,n.next.prev=f}else n.prev===al.Undefined&&n.next===al.Undefined?(this._first=al.Undefined,this._last=al.Undefined):n.next===al.Undefined?(this._last=this._last.prev,this._last.next=al.Undefined):n.prev===al.Undefined&&(this._first=this._first.next,this._first.prev=al.Undefined);this._size-=1}*[Symbol.iterator](){let n=this._first;for(;n!==al.Undefined;)yield n.element,n=n.next}}var Zb;const zh="en";let $b=!1,eE=!1,rE=!1,UT=!1,qh,tE=zh,UI,q_;const su=typeof self=="object"?self:typeof global=="object"?global:{};let lu;typeof su.vscode<"u"&&typeof su.vscode.process<"u"?lu=su.vscode.process:typeof process<"u"&&(lu=process);const VI=typeof((Zb=lu==null?void 0:lu.versions)===null||Zb===void 0?void 0:Zb.electron)=="string"&&(lu==null?void 0:lu.type)==="renderer";if(typeof navigator=="object"&&!VI)q_=navigator.userAgent,$b=q_.indexOf("Windows")>=0,eE=q_.indexOf("Macintosh")>=0,(q_.indexOf("Macintosh")>=0||q_.indexOf("iPad")>=0||q_.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,rE=q_.indexOf("Linux")>=0,UT=!0,qh=navigator.language,tE=qh;else if(typeof lu=="object"){$b=lu.platform==="win32",eE=lu.platform==="darwin",rE=lu.platform==="linux",rE&&lu.env.SNAP&&lu.env.SNAP_REVISION,lu.env.CI||lu.env.BUILD_ARTIFACTSTAGINGDIRECTORY,qh=zh,tE=zh;const e=lu.env.VSCODE_NLS_CONFIG;if(e)try{const n=JSON.parse(e),f=n.availableLanguages["*"];qh=n.locale,tE=f||zh,UI=n._translationsConfigFile}catch{}}else console.error("Unable to resolve platform.");const Nv=$b,WI=eE;UT&&su.importScripts;const Kp=q_;(()=>{if(typeof su.postMessage=="function"&&!su.importScripts){let e=[];su.addEventListener("message",f=>{if(f.data&&f.data.vscodeScheduleAsyncWork)for(let p=0,a=e.length;p<a;p++){const d=e[p];if(d.id===f.data.vscodeScheduleAsyncWork){e.splice(p,1),d.callback();return}}});let n=0;return f=>{const p=++n;e.push({id:p,callback:f}),su.postMessage({vscodeScheduleAsyncWork:p},"*")}}return e=>setTimeout(e)})();const jI=!!(Kp&&Kp.indexOf("Chrome")>=0);Kp&&Kp.indexOf("Firefox")>=0,!jI&&Kp&&Kp.indexOf("Safari")>=0,Kp&&Kp.indexOf("Edg/")>=0,Kp&&Kp.indexOf("Android")>=0;const HI=su.performance&&typeof su.performance.now=="function";class Xh{constructor(n){this._highResolution=HI&&n,this._startTime=this._now(),this._stopTime=-1}static create(n=!0){return new Xh(n)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?su.performance.now():Date.now()}}var nE;(function(e){e.None=()=>Qb.None;function n(x){return(O,q=null,Z)=>{let ne=!1,F;return F=x(Q=>{if(!ne)return F?F.dispose():ne=!0,O.call(q,Q)},null,Z),ne&&F.dispose(),F}}e.once=n;function f(x,O,q){return h((Z,ne=null,F)=>x(Q=>Z.call(ne,O(Q)),null,F),q)}e.map=f;function p(x,O,q){return h((Z,ne=null,F)=>x(Q=>{O(Q),Z.call(ne,Q)},null,F),q)}e.forEach=p;function a(x,O,q){return h((Z,ne=null,F)=>x(Q=>O(Q)&&Z.call(ne,Q),null,F),q)}e.filter=a;function d(x){return x}e.signal=d;function k(...x){return(O,q=null,Z)=>GI(...x.map(ne=>ne(F=>O.call(q,F),null,Z)))}e.any=k;function J(x,O,q,Z){let ne=q;return f(x,F=>(ne=O(ne,F),ne),Z)}e.reduce=J;function h(x,O){let q;const Z={onFirstListenerAdd(){q=x(ne.fire,ne)},onLastListenerRemove(){q.dispose()}},ne=new A_(Z);return O&&O.add(ne),ne.event}function v(x,O,q=100,Z=!1,ne,F){let Q,V,re,T=0;const N={leakWarningThreshold:ne,onFirstListenerAdd(){Q=x(D=>{T++,V=O(V,D),Z&&!re&&(y.fire(V),V=void 0),clearTimeout(re),re=setTimeout(()=>{const C=V;V=void 0,re=void 0,(!Z||T>1)&&y.fire(C),T=0},q)})},onLastListenerRemove(){Q.dispose()}},y=new A_(N);return F&&F.add(y),y.event}e.debounce=v;function A(x,O=(Z,ne)=>Z===ne,q){let Z=!0,ne;return a(x,F=>{const Q=Z||!O(F,ne);return Z=!1,ne=F,Q},q)}e.latch=A;function z(x,O,q){return[e.filter(x,O,q),e.filter(x,Z=>!O(Z),q)]}e.split=z;function ie(x,O=!1,q=[]){let Z=q.slice(),ne=x(V=>{Z?Z.push(V):Q.fire(V)});const F=()=>{Z&&Z.forEach(V=>Q.fire(V)),Z=null},Q=new A_({onFirstListenerAdd(){ne||(ne=x(V=>Q.fire(V)))},onFirstListenerDidAdd(){Z&&(O?setTimeout(F):F())},onLastListenerRemove(){ne&&ne.dispose(),ne=null}});return Q.event}e.buffer=ie;class b{constructor(O){this.event=O}map(O){return new b(f(this.event,O))}forEach(O){return new b(p(this.event,O))}filter(O){return new b(a(this.event,O))}reduce(O,q){return new b(J(this.event,O,q))}latch(){return new b(A(this.event))}debounce(O,q=100,Z=!1,ne){return new b(v(this.event,O,q,Z,ne))}on(O,q,Z){return this.event(O,q,Z)}once(O,q,Z){return n(this.event)(O,q,Z)}}function M(x){return new b(x)}e.chain=M;function S(x,O,q=Z=>Z){const Z=(...V)=>Q.fire(q(...V)),ne=()=>x.on(O,Z),F=()=>x.removeListener(O,Z),Q=new A_({onFirstListenerAdd:ne,onLastListenerRemove:F});return Q.event}e.fromNodeEventEmitter=S;function B(x,O,q=Z=>Z){const Z=(...V)=>Q.fire(q(...V)),ne=()=>x.addEventListener(O,Z),F=()=>x.removeEventListener(O,Z),Q=new A_({onFirstListenerAdd:ne,onLastListenerRemove:F});return Q.event}e.fromDOMEventEmitter=B;function H(x){return new Promise(O=>n(x)(O))}e.toPromise=H;function I(x,O){return O(void 0),x(q=>O(q))}e.runAndSubscribe=I;function w(x,O){let q=null;function Z(F){q==null||q.dispose(),q=new Lg,O(F,q)}Z(void 0);const ne=x(F=>Z(F));return Kh(()=>{ne.dispose(),q==null||q.dispose()})}e.runAndSubscribeWithStore=w})(nE||(nE={}));class Yh{constructor(n){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${n}_${Yh._idPool++}`}start(n){this._stopWatch=new Xh(!0),this._listenerCount=n}stop(){if(this._stopWatch){const n=this._stopWatch.elapsed();this._elapsedOverall+=n,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${n.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}Yh._idPool=0;class aE{constructor(n){this.value=n}static create(){var n;return new aE((n=new Error().stack)!==null&&n!==void 0?n:"")}print(){console.warn(this.value.split(`
  3. `).slice(2).join(`
  4. `))}}class JI{constructor(n,f,p){this.callback=n,this.callbackThis=f,this.stack=p,this.subscription=new BI}invoke(n){this.callback.call(this.callbackThis,n)}}class A_{constructor(n){var f;this._disposed=!1,this._options=n,this._leakageMon=void 0,this._perfMon=!((f=this._options)===null||f===void 0)&&f._profName?new Yh(this._options._profName):void 0}dispose(){var n,f,p,a;this._disposed||(this._disposed=!0,this._listeners&&this._listeners.clear(),(n=this._deliveryQueue)===null||n===void 0||n.clear(),(p=(f=this._options)===null||f===void 0?void 0:f.onLastListenerRemove)===null||p===void 0||p.call(f),(a=this._leakageMon)===null||a===void 0||a.dispose())}get event(){return this._event||(this._event=(n,f,p)=>{var a,d,k;this._listeners||(this._listeners=new BT);const J=this._listeners.isEmpty();J&&(!((a=this._options)===null||a===void 0)&&a.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this);let h,v;this._leakageMon&&this._listeners.size>=30&&(v=aE.create(),h=this._leakageMon.check(v,this._listeners.size+1));const A=new JI(n,f,v),z=this._listeners.push(A);J&&(!((d=this._options)===null||d===void 0)&&d.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),!((k=this._options)===null||k===void 0)&&k.onListenerDidAdd&&this._options.onListenerDidAdd(this,n,f);const ie=A.subscription.set(()=>{h&&h(),this._disposed||(z(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return p instanceof Lg?p.add(ie):Array.isArray(p)&&p.push(ie),ie}),this._event}fire(n){var f,p;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new BT);for(let a of this._listeners)this._deliveryQueue.push([a,n]);for((f=this._perfMon)===null||f===void 0||f.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[a,d]=this._deliveryQueue.shift();try{a.invoke(d)}catch(k){Nm(k)}}(p=this._perfMon)===null||p===void 0||p.stop()}}}function KI(e){let n=[],f=Object.getPrototypeOf(e);for(;Object.prototype!==f;)n=n.concat(Object.getOwnPropertyNames(f)),f=Object.getPrototypeOf(f);return n}function iE(e){const n=[];for(const f of KI(e))typeof e[f]=="function"&&n.push(f);return n}function zI(e,n){const f=a=>function(){const d=Array.prototype.slice.call(arguments,0);return n(a,d)};let p={};for(const a of e)p[a]=f(a);return p}function qI(e,n="Unreachable"){throw new Error(n)}class XI{constructor(n){this.computeFn=n,this.lastCache=void 0,this.lastArgKey=void 0}get(n){const f=JSON.stringify(n);return this.lastArgKey!==f&&(this.lastArgKey=f,this.lastCache=this.computeFn(n)),this.lastCache}}class VT{constructor(n){this.executor=n,this._didRun=!1}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(n){this._error=n}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var WT;function YI(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function QI(e){return e.split(/\r\n|\r|\n/)}function ZI(e){for(let n=0,f=e.length;n<f;n++){const p=e.charCodeAt(n);if(p!==32&&p!==9)return n}return-1}function $I(e,n=e.length-1){for(let f=n;f>=0;f--){const p=e.charCodeAt(f);if(p!==32&&p!==9)return f}return-1}function jT(e){return e>=65&&e<=90}function oE(e){return 55296<=e&&e<=56319}function eN(e){return 56320<=e&&e<=57343}function rN(e,n){return(e-55296<<10)+(n-56320)+65536}function tN(e,n,f){const p=e.charCodeAt(f);if(oE(p)&&f+1<n){const a=e.charCodeAt(f+1);if(eN(a))return rN(p,a)}return p}const nN=/^[\t\n\r\x20-\x7E]*$/;function aN(e){return nN.test(e)}class Id{constructor(n){this.confusableDictionary=n}static getInstance(n){return Id.cache.get(Array.from(n))}static getLocales(){return Id._locales.getValue()}isAmbiguous(n){return this.confusableDictionary.has(n)}getPrimaryConfusable(n){return this.confusableDictionary.get(n)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}WT=Id,Id.ambiguousCharacterData=new VT(()=>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],"_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]}')),Id.cache=new XI(e=>{function n(v){const A=new Map;for(let z=0;z<v.length;z+=2)A.set(v[z],v[z+1]);return A}function f(v,A){const z=new Map(v);for(const[ie,b]of A)z.set(ie,b);return z}function p(v,A){if(!v)return A;const z=new Map;for(const[ie,b]of v)A.has(ie)&&z.set(ie,b);return z}const a=WT.ambiguousCharacterData.getValue();let d=e.filter(v=>!v.startsWith("_")&&v in a);d.length===0&&(d=["_default"]);let k;for(const v of d){const A=n(a[v]);k=p(k,A)}const J=n(a._common),h=f(J,k);return new Id(h)}),Id._locales=new VT(()=>Object.keys(Id.ambiguousCharacterData.getValue()).filter(e=>!e.startsWith("_")));class X_{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(X_.getRawData())),this._data}static isInvisibleCharacter(n){return X_.getData().has(n)}static get codePoints(){return X_.getData()}}X_._data=void 0;const iN="$initialize";class oN{constructor(n,f,p,a){this.vsWorker=n,this.req=f,this.method=p,this.args=a,this.type=0}}class HT{constructor(n,f,p,a){this.vsWorker=n,this.seq=f,this.res=p,this.err=a,this.type=1}}class sN{constructor(n,f,p,a){this.vsWorker=n,this.req=f,this.eventName=p,this.arg=a,this.type=2}}class lN{constructor(n,f,p){this.vsWorker=n,this.req=f,this.event=p,this.type=3}}class cN{constructor(n,f){this.vsWorker=n,this.req=f,this.type=4}}class uN{constructor(n){this._workerId=-1,this._handler=n,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(n){this._workerId=n}sendMessage(n,f){const p=String(++this._lastSentReq);return new Promise((a,d)=>{this._pendingReplies[p]={resolve:a,reject:d},this._send(new oN(this._workerId,p,n,f))})}listen(n,f){let p=null;const a=new A_({onFirstListenerAdd:()=>{p=String(++this._lastSentReq),this._pendingEmitters.set(p,a),this._send(new sN(this._workerId,p,n,f))},onLastListenerRemove:()=>{this._pendingEmitters.delete(p),this._send(new cN(this._workerId,p)),p=null}});return a.event}handleMessage(n){!n||!n.vsWorker||this._workerId!==-1&&n.vsWorker!==this._workerId||this._handleMessage(n)}_handleMessage(n){switch(n.type){case 1:return this._handleReplyMessage(n);case 0:return this._handleRequestMessage(n);case 2:return this._handleSubscribeEventMessage(n);case 3:return this._handleEventMessage(n);case 4:return this._handleUnsubscribeEventMessage(n)}}_handleReplyMessage(n){if(!this._pendingReplies[n.seq]){console.warn("Got reply to unknown seq");return}let f=this._pendingReplies[n.seq];if(delete this._pendingReplies[n.seq],n.err){let p=n.err;n.err.$isError&&(p=new Error,p.name=n.err.name,p.message=n.err.message,p.stack=n.err.stack),f.reject(p);return}f.resolve(n.res)}_handleRequestMessage(n){let f=n.req;this._handler.handleMessage(n.method,n.args).then(a=>{this._send(new HT(this._workerId,f,a,void 0))},a=>{a.detail instanceof Error&&(a.detail=FT(a.detail)),this._send(new HT(this._workerId,f,void 0,FT(a)))})}_handleSubscribeEventMessage(n){const f=n.req,p=this._handler.handleEvent(n.eventName,n.arg)(a=>{this._send(new lN(this._workerId,f,a))});this._pendingEvents.set(f,p)}_handleEventMessage(n){if(!this._pendingEmitters.has(n.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(n.req).fire(n.event)}_handleUnsubscribeEventMessage(n){if(!this._pendingEvents.has(n.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(n.req).dispose(),this._pendingEvents.delete(n.req)}_send(n){let f=[];if(n.type===0)for(let p=0;p<n.args.length;p++)n.args[p]instanceof ArrayBuffer&&f.push(n.args[p]);else n.type===1&&n.res instanceof ArrayBuffer&&f.push(n.res);this._handler.sendMessage(n,f)}}function JT(e){return e[0]==="o"&&e[1]==="n"&&jT(e.charCodeAt(2))}function KT(e){return/^onDynamic/.test(e)&&jT(e.charCodeAt(9))}function fN(e,n,f){const p=k=>function(){const J=Array.prototype.slice.call(arguments,0);return n(k,J)},a=k=>function(J){return f(k,J)};let d={};for(const k of e){if(KT(k)){d[k]=a(k);continue}if(JT(k)){d[k]=f(k,void 0);continue}d[k]=p(k)}return d}class dN{constructor(n,f){this._requestHandlerFactory=f,this._requestHandler=null,this._protocol=new uN({sendMessage:(p,a)=>{n(p,a)},handleMessage:(p,a)=>this._handleMessage(p,a),handleEvent:(p,a)=>this._handleEvent(p,a)})}onmessage(n){this._protocol.handleMessage(n)}_handleMessage(n,f){if(n===iN)return this.initialize(f[0],f[1],f[2],f[3]);if(!this._requestHandler||typeof this._requestHandler[n]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+n));try{return Promise.resolve(this._requestHandler[n].apply(this._requestHandler,f))}catch(p){return Promise.reject(p)}}_handleEvent(n,f){if(!this._requestHandler)throw new Error("Missing requestHandler");if(KT(n)){const p=this._requestHandler[n].call(this._requestHandler,f);if(typeof p!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);return p}if(JT(n)){const p=this._requestHandler[n];if(typeof p!="function")throw new Error(`Missing event ${n} on request handler.`);return p}throw new Error(`Malformed event name ${n}`)}initialize(n,f,p,a){this._protocol.setWorkerId(n);const J=fN(a,(h,v)=>this._protocol.sendMessage(h,v),(h,v)=>this._protocol.listen(h,v));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(J),Promise.resolve(iE(this._requestHandler))):(f&&(typeof f.baseUrl<"u"&&delete f.baseUrl,typeof f.paths<"u"&&typeof f.paths.vs<"u"&&delete f.paths.vs,typeof f.trustedTypesPolicy!==void 0&&delete f.trustedTypesPolicy,f.catchError=!0,su.require.config(f)),new Promise((h,v)=>{const A=su.require;A([p],z=>{if(this._requestHandler=z.create(J),!this._requestHandler){v(new Error("No RequestHandler!"));return}h(iE(this._requestHandler))},v)}))}}class Y_{constructor(n,f,p,a){this.originalStart=n,this.originalLength=f,this.modifiedStart=p,this.modifiedLength=a}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function zT(e,n){return(n<<5)-n+e|0}function pN(e,n){n=zT(149417,n);for(let f=0,p=e.length;f<p;f++)n=zT(e.charCodeAt(f),n);return n}class qT{constructor(n){this.source=n}getElements(){const n=this.source,f=new Int32Array(n.length);for(let p=0,a=n.length;p<a;p++)f[p]=n.charCodeAt(p);return f}}function _N(e,n,f){return new Q_(new qT(e),new qT(n)).ComputeDiff(f).changes}class Ag{static Assert(n,f){if(!n)throw new Error(f)}}class Cg{static Copy(n,f,p,a,d){for(let k=0;k<d;k++)p[a+k]=n[f+k]}static Copy2(n,f,p,a,d){for(let k=0;k<d;k++)p[a+k]=n[f+k]}}class XT{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 Y_(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(n,f){this.m_originalStart=Math.min(this.m_originalStart,n),this.m_modifiedStart=Math.min(this.m_modifiedStart,f),this.m_originalCount++}AddModifiedElement(n,f){this.m_originalStart=Math.min(this.m_originalStart,n),this.m_modifiedStart=Math.min(this.m_modifiedStart,f),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 Q_{constructor(n,f,p=null){this.ContinueProcessingPredicate=p,this._originalSequence=n,this._modifiedSequence=f;const[a,d,k]=Q_._getElements(n),[J,h,v]=Q_._getElements(f);this._hasStrings=k&&v,this._originalStringElements=a,this._originalElementsOrHash=d,this._modifiedStringElements=J,this._modifiedElementsOrHash=h,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(n){return n.length>0&&typeof n[0]=="string"}static _getElements(n){const f=n.getElements();if(Q_._isStringArray(f)){const p=new Int32Array(f.length);for(let a=0,d=f.length;a<d;a++)p[a]=pN(f[a],0);return[f,p,!0]}return f instanceof Int32Array?[[],f,!1]:[[],new Int32Array(f),!1]}ElementsAreEqual(n,f){return this._originalElementsOrHash[n]!==this._modifiedElementsOrHash[f]?!1:this._hasStrings?this._originalStringElements[n]===this._modifiedStringElements[f]:!0}ElementsAreStrictEqual(n,f){if(!this.ElementsAreEqual(n,f))return!1;const p=Q_._getStrictElement(this._originalSequence,n),a=Q_._getStrictElement(this._modifiedSequence,f);return p===a}static _getStrictElement(n,f){return typeof n.getStrictElement=="function"?n.getStrictElement(f):null}OriginalElementsAreEqual(n,f){return this._originalElementsOrHash[n]!==this._originalElementsOrHash[f]?!1:this._hasStrings?this._originalStringElements[n]===this._originalStringElements[f]:!0}ModifiedElementsAreEqual(n,f){return this._modifiedElementsOrHash[n]!==this._modifiedElementsOrHash[f]?!1:this._hasStrings?this._modifiedStringElements[n]===this._modifiedStringElements[f]:!0}ComputeDiff(n){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,n)}_ComputeDiff(n,f,p,a,d){const k=[!1];let J=this.ComputeDiffRecursive(n,f,p,a,k);return d&&(J=this.PrettifyChanges(J)),{quitEarly:k[0],changes:J}}ComputeDiffRecursive(n,f,p,a,d){for(d[0]=!1;n<=f&&p<=a&&this.ElementsAreEqual(n,p);)n++,p++;for(;f>=n&&a>=p&&this.ElementsAreEqual(f,a);)f--,a--;if(n>f||p>a){let z;return p<=a?(Ag.Assert(n===f+1,"originalStart should only be one more than originalEnd"),z=[new Y_(n,0,p,a-p+1)]):n<=f?(Ag.Assert(p===a+1,"modifiedStart should only be one more than modifiedEnd"),z=[new Y_(n,f-n+1,p,0)]):(Ag.Assert(n===f+1,"originalStart should only be one more than originalEnd"),Ag.Assert(p===a+1,"modifiedStart should only be one more than modifiedEnd"),z=[]),z}const k=[0],J=[0],h=this.ComputeRecursionPoint(n,f,p,a,k,J,d),v=k[0],A=J[0];if(h!==null)return h;if(!d[0]){const z=this.ComputeDiffRecursive(n,v,p,A,d);let ie=[];return d[0]?ie=[new Y_(v+1,f-(v+1)+1,A+1,a-(A+1)+1)]:ie=this.ComputeDiffRecursive(v+1,f,A+1,a,d),this.ConcatenateChanges(z,ie)}return[new Y_(n,f-n+1,p,a-p+1)]}WALKTRACE(n,f,p,a,d,k,J,h,v,A,z,ie,b,M,S,B,H,I){let w=null,x=null,O=new XT,q=f,Z=p,ne=b[0]-B[0]-a,F=-1073741824,Q=this.m_forwardHistory.length-1;do{const V=ne+n;V===q||V<Z&&v[V-1]<v[V+1]?(z=v[V+1],M=z-ne-a,z<F&&O.MarkNextChange(),F=z,O.AddModifiedElement(z+1,M),ne=V+1-n):(z=v[V-1]+1,M=z-ne-a,z<F&&O.MarkNextChange(),F=z-1,O.AddOriginalElement(z,M+1),ne=V-1-n),Q>=0&&(v=this.m_forwardHistory[Q],n=v[0],q=1,Z=v.length-1)}while(--Q>=-1);if(w=O.getReverseChanges(),I[0]){let V=b[0]+1,re=B[0]+1;if(w!==null&&w.length>0){const T=w[w.length-1];V=Math.max(V,T.getOriginalEnd()),re=Math.max(re,T.getModifiedEnd())}x=[new Y_(V,ie-V+1,re,S-re+1)]}else{O=new XT,q=k,Z=J,ne=b[0]-B[0]-h,F=1073741824,Q=H?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const V=ne+d;V===q||V<Z&&A[V-1]>=A[V+1]?(z=A[V+1]-1,M=z-ne-h,z>F&&O.MarkNextChange(),F=z+1,O.AddOriginalElement(z+1,M+1),ne=V+1-d):(z=A[V-1],M=z-ne-h,z>F&&O.MarkNextChange(),F=z,O.AddModifiedElement(z+1,M+1),ne=V-1-d),Q>=0&&(A=this.m_reverseHistory[Q],d=A[0],q=1,Z=A.length-1)}while(--Q>=-1);x=O.getChanges()}return this.ConcatenateChanges(w,x)}ComputeRecursionPoint(n,f,p,a,d,k,J){let h=0,v=0,A=0,z=0,ie=0,b=0;n--,p--,d[0]=0,k[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const M=f-n+(a-p),S=M+1,B=new Int32Array(S),H=new Int32Array(S),I=a-p,w=f-n,x=n-p,O=f-a,Z=(w-I)%2===0;B[I]=n,H[w]=f,J[0]=!1;for(let ne=1;ne<=M/2+1;ne++){let F=0,Q=0;A=this.ClipDiagonalBound(I-ne,ne,I,S),z=this.ClipDiagonalBound(I+ne,ne,I,S);for(let re=A;re<=z;re+=2){re===A||re<z&&B[re-1]<B[re+1]?h=B[re+1]:h=B[re-1]+1,v=h-(re-I)-x;const T=h;for(;h<f&&v<a&&this.ElementsAreEqual(h+1,v+1);)h++,v++;if(B[re]=h,h+v>F+Q&&(F=h,Q=v),!Z&&Math.abs(re-w)<=ne-1&&h>=H[re])return d[0]=h,k[0]=v,T<=H[re]&&1447>0&&ne<=1447+1?this.WALKTRACE(I,A,z,x,w,ie,b,O,B,H,h,f,d,v,a,k,Z,J):null}const V=(F-n+(Q-p)-ne)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(F,V))return J[0]=!0,d[0]=F,k[0]=Q,V>0&&1447>0&&ne<=1447+1?this.WALKTRACE(I,A,z,x,w,ie,b,O,B,H,h,f,d,v,a,k,Z,J):(n++,p++,[new Y_(n,f-n+1,p,a-p+1)]);ie=this.ClipDiagonalBound(w-ne,ne,w,S),b=this.ClipDiagonalBound(w+ne,ne,w,S);for(let re=ie;re<=b;re+=2){re===ie||re<b&&H[re-1]>=H[re+1]?h=H[re+1]-1:h=H[re-1],v=h-(re-w)-O;const T=h;for(;h>n&&v>p&&this.ElementsAreEqual(h,v);)h--,v--;if(H[re]=h,Z&&Math.abs(re-I)<=ne&&h<=B[re])return d[0]=h,k[0]=v,T>=B[re]&&1447>0&&ne<=1447+1?this.WALKTRACE(I,A,z,x,w,ie,b,O,B,H,h,f,d,v,a,k,Z,J):null}if(ne<=1447){let re=new Int32Array(z-A+2);re[0]=I-A+1,Cg.Copy2(B,A,re,1,z-A+1),this.m_forwardHistory.push(re),re=new Int32Array(b-ie+2),re[0]=w-ie+1,Cg.Copy2(H,ie,re,1,b-ie+1),this.m_reverseHistory.push(re)}}return this.WALKTRACE(I,A,z,x,w,ie,b,O,B,H,h,f,d,v,a,k,Z,J)}PrettifyChanges(n){for(let f=0;f<n.length;f++){const p=n[f],a=f<n.length-1?n[f+1].originalStart:this._originalElementsOrHash.length,d=f<n.length-1?n[f+1].modifiedStart:this._modifiedElementsOrHash.length,k=p.originalLength>0,J=p.modifiedLength>0;for(;p.originalStart+p.originalLength<a&&p.modifiedStart+p.modifiedLength<d&&(!k||this.OriginalElementsAreEqual(p.originalStart,p.originalStart+p.originalLength))&&(!J||this.ModifiedElementsAreEqual(p.modifiedStart,p.modifiedStart+p.modifiedLength));){const v=this.ElementsAreStrictEqual(p.originalStart,p.modifiedStart);if(this.ElementsAreStrictEqual(p.originalStart+p.originalLength,p.modifiedStart+p.modifiedLength)&&!v)break;p.originalStart++,p.modifiedStart++}let h=[null];if(f<n.length-1&&this.ChangesOverlap(n[f],n[f+1],h)){n[f]=h[0],n.splice(f+1,1),f--;continue}}for(let f=n.length-1;f>=0;f--){const p=n[f];let a=0,d=0;if(f>0){const z=n[f-1];a=z.originalStart+z.originalLength,d=z.modifiedStart+z.modifiedLength}const k=p.originalLength>0,J=p.modifiedLength>0;let h=0,v=this._boundaryScore(p.originalStart,p.originalLength,p.modifiedStart,p.modifiedLength);for(let z=1;;z++){const ie=p.originalStart-z,b=p.modifiedStart-z;if(ie<a||b<d||k&&!this.OriginalElementsAreEqual(ie,ie+p.originalLength)||J&&!this.ModifiedElementsAreEqual(b,b+p.modifiedLength))break;const S=(ie===a&&b===d?5:0)+this._boundaryScore(ie,p.originalLength,b,p.modifiedLength);S>v&&(v=S,h=z)}p.originalStart-=h,p.modifiedStart-=h;const A=[null];if(f>0&&this.ChangesOverlap(n[f-1],n[f],A)){n[f-1]=A[0],n.splice(f,1),f++;continue}}if(this._hasStrings)for(let f=1,p=n.length;f<p;f++){const a=n[f-1],d=n[f],k=d.originalStart-a.originalStart-a.originalLength,J=a.originalStart,h=d.originalStart+d.originalLength,v=h-J,A=a.modifiedStart,z=d.modifiedStart+d.modifiedLength,ie=z-A;if(k<5&&v<20&&ie<20){const b=this._findBetterContiguousSequence(J,v,A,ie,k);if(b){const[M,S]=b;(M!==a.originalStart+a.originalLength||S!==a.modifiedStart+a.modifiedLength)&&(a.originalLength=M-a.originalStart,a.modifiedLength=S-a.modifiedStart,d.originalStart=M+k,d.modifiedStart=S+k,d.originalLength=h-d.originalStart,d.modifiedLength=z-d.modifiedStart)}}}return n}_findBetterContiguousSequence(n,f,p,a,d){if(f<d||a<d)return null;const k=n+f-d+1,J=p+a-d+1;let h=0,v=0,A=0;for(let z=n;z<k;z++)for(let ie=p;ie<J;ie++){const b=this._contiguousSequenceScore(z,ie,d);b>0&&b>h&&(h=b,v=z,A=ie)}return h>0?[v,A]:null}_contiguousSequenceScore(n,f,p){let a=0;for(let d=0;d<p;d++){if(!this.ElementsAreEqual(n+d,f+d))return 0;a+=this._originalStringElements[n+d].length}return a}_OriginalIsBoundary(n){return n<=0||n>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[n])}_OriginalRegionIsBoundary(n,f){if(this._OriginalIsBoundary(n)||this._OriginalIsBoundary(n-1))return!0;if(f>0){const p=n+f;if(this._OriginalIsBoundary(p-1)||this._OriginalIsBoundary(p))return!0}return!1}_ModifiedIsBoundary(n){return n<=0||n>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[n])}_ModifiedRegionIsBoundary(n,f){if(this._ModifiedIsBoundary(n)||this._ModifiedIsBoundary(n-1))return!0;if(f>0){const p=n+f;if(this._ModifiedIsBoundary(p-1)||this._ModifiedIsBoundary(p))return!0}return!1}_boundaryScore(n,f,p,a){const d=this._OriginalRegionIsBoundary(n,f)?1:0,k=this._ModifiedRegionIsBoundary(p,a)?1:0;return d+k}ConcatenateChanges(n,f){let p=[];if(n.length===0||f.length===0)return f.length>0?f:n;if(this.ChangesOverlap(n[n.length-1],f[0],p)){const a=new Array(n.length+f.length-1);return Cg.Copy(n,0,a,0,n.length-1),a[n.length-1]=p[0],Cg.Copy(f,1,a,n.length,f.length-1),a}else{const a=new Array(n.length+f.length);return Cg.Copy(n,0,a,0,n.length),Cg.Copy(f,0,a,n.length,f.length),a}}ChangesOverlap(n,f,p){if(Ag.Assert(n.originalStart<=f.originalStart,"Left change is not less than or equal to right change"),Ag.Assert(n.modifiedStart<=f.modifiedStart,"Left change is not less than or equal to right change"),n.originalStart+n.originalLength>=f.originalStart||n.modifiedStart+n.modifiedLength>=f.modifiedStart){const a=n.originalStart;let d=n.originalLength;const k=n.modifiedStart;let J=n.modifiedLength;return n.originalStart+n.originalLength>=f.originalStart&&(d=f.originalStart+f.originalLength-n.originalStart),n.modifiedStart+n.modifiedLength>=f.modifiedStart&&(J=f.modifiedStart+f.modifiedLength-n.modifiedStart),p[0]=new Y_(a,d,k,J),!0}else return p[0]=null,!1}ClipDiagonalBound(n,f,p,a){if(n>=0&&n<a)return n;const d=p,k=a-p-1,J=f%2===0;if(n<0){const h=d%2===0;return J===h?0:1}else{const h=k%2===0;return J===h?a-1:a-2}}}let xg;if(typeof su.vscode<"u"&&typeof su.vscode.process<"u"){const e=su.vscode.process;xg={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"?xg={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:xg={get platform(){return Nv?"win32":WI?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const sE=xg.cwd,mN=xg.env,km=xg.platform,gN=65,vN=97,hN=90,yN=122,Z_=46,Wc=47,pf=92,$_=58,bN=63;class YT extends Error{constructor(n,f,p){let a;typeof f=="string"&&f.indexOf("not ")===0?(a="must not be",f=f.replace(/^not /,"")):a="must be";const d=n.indexOf(".")!==-1?"property":"argument";let k=`The "${n}" ${d} ${a} of type ${f}`;k+=`. Received type ${typeof p}`,super(k),this.code="ERR_INVALID_ARG_TYPE"}}function Kl(e,n){if(typeof e!="string")throw new YT(n,"string",e)}function Zo(e){return e===Wc||e===pf}function lE(e){return e===Wc}function em(e){return e>=gN&&e<=hN||e>=vN&&e<=yN}function Qh(e,n,f,p){let a="",d=0,k=-1,J=0,h=0;for(let v=0;v<=e.length;++v){if(v<e.length)h=e.charCodeAt(v);else{if(p(h))break;h=Wc}if(p(h)){if(!(k===v-1||J===1))if(J===2){if(a.length<2||d!==2||a.charCodeAt(a.length-1)!==Z_||a.charCodeAt(a.length-2)!==Z_){if(a.length>2){const A=a.lastIndexOf(f);A===-1?(a="",d=0):(a=a.slice(0,A),d=a.length-1-a.lastIndexOf(f)),k=v,J=0;continue}else if(a.length!==0){a="",d=0,k=v,J=0;continue}}n&&(a+=a.length>0?`${f}..`:"..",d=2)}else a.length>0?a+=`${f}${e.slice(k+1,v)}`:a=e.slice(k+1,v),d=v-k-1;k=v,J=0}else h===Z_&&J!==-1?++J:J=-1}return a}function QT(e,n){if(n===null||typeof n!="object")throw new YT("pathObject","Object",n);const f=n.dir||n.root,p=n.base||`${n.name||""}${n.ext||""}`;return f?f===n.root?`${f}${p}`:`${f}${e}${p}`:p}const Yu={resolve(...e){let n="",f="",p=!1;for(let a=e.length-1;a>=-1;a--){let d;if(a>=0){if(d=e[a],Kl(d,"path"),d.length===0)continue}else n.length===0?d=sE():(d=mN[`=${n}`]||sE(),(d===void 0||d.slice(0,2).toLowerCase()!==n.toLowerCase()&&d.charCodeAt(2)===pf)&&(d=`${n}\\`));const k=d.length;let J=0,h="",v=!1;const A=d.charCodeAt(0);if(k===1)Zo(A)&&(J=1,v=!0);else if(Zo(A))if(v=!0,Zo(d.charCodeAt(1))){let z=2,ie=z;for(;z<k&&!Zo(d.charCodeAt(z));)z++;if(z<k&&z!==ie){const b=d.slice(ie,z);for(ie=z;z<k&&Zo(d.charCodeAt(z));)z++;if(z<k&&z!==ie){for(ie=z;z<k&&!Zo(d.charCodeAt(z));)z++;(z===k||z!==ie)&&(h=`\\\\${b}\\${d.slice(ie,z)}`,J=z)}}}else J=1;else em(A)&&d.charCodeAt(1)===$_&&(h=d.slice(0,2),J=2,k>2&&Zo(d.charCodeAt(2))&&(v=!0,J=3));if(h.length>0)if(n.length>0){if(h.toLowerCase()!==n.toLowerCase())continue}else n=h;if(p){if(n.length>0)break}else if(f=`${d.slice(J)}\\${f}`,p=v,v&&n.length>0)break}return f=Qh(f,!p,"\\",Zo),p?`${n}\\${f}`:`${n}${f}`||"."},normalize(e){Kl(e,"path");const n=e.length;if(n===0)return".";let f=0,p,a=!1;const d=e.charCodeAt(0);if(n===1)return lE(d)?"\\":e;if(Zo(d))if(a=!0,Zo(e.charCodeAt(1))){let J=2,h=J;for(;J<n&&!Zo(e.charCodeAt(J));)J++;if(J<n&&J!==h){const v=e.slice(h,J);for(h=J;J<n&&Zo(e.charCodeAt(J));)J++;if(J<n&&J!==h){for(h=J;J<n&&!Zo(e.charCodeAt(J));)J++;if(J===n)return`\\\\${v}\\${e.slice(h)}\\`;J!==h&&(p=`\\\\${v}\\${e.slice(h,J)}`,f=J)}}}else f=1;else em(d)&&e.charCodeAt(1)===$_&&(p=e.slice(0,2),f=2,n>2&&Zo(e.charCodeAt(2))&&(a=!0,f=3));let k=f<n?Qh(e.slice(f),!a,"\\",Zo):"";return k.length===0&&!a&&(k="."),k.length>0&&Zo(e.charCodeAt(n-1))&&(k+="\\"),p===void 0?a?`\\${k}`:k:a?`${p}\\${k}`:`${p}${k}`},isAbsolute(e){Kl(e,"path");const n=e.length;if(n===0)return!1;const f=e.charCodeAt(0);return Zo(f)||n>2&&em(f)&&e.charCodeAt(1)===$_&&Zo(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let n,f;for(let d=0;d<e.length;++d){const k=e[d];Kl(k,"path"),k.length>0&&(n===void 0?n=f=k:n+=`\\${k}`)}if(n===void 0)return".";let p=!0,a=0;if(typeof f=="string"&&Zo(f.charCodeAt(0))){++a;const d=f.length;d>1&&Zo(f.charCodeAt(1))&&(++a,d>2&&(Zo(f.charCodeAt(2))?++a:p=!1))}if(p){for(;a<n.length&&Zo(n.charCodeAt(a));)a++;a>=2&&(n=`\\${n.slice(a)}`)}return Yu.normalize(n)},relative(e,n){if(Kl(e,"from"),Kl(n,"to"),e===n)return"";const f=Yu.resolve(e),p=Yu.resolve(n);if(f===p||(e=f.toLowerCase(),n=p.toLowerCase(),e===n))return"";let a=0;for(;a<e.length&&e.charCodeAt(a)===pf;)a++;let d=e.length;for(;d-1>a&&e.charCodeAt(d-1)===pf;)d--;const k=d-a;let J=0;for(;J<n.length&&n.charCodeAt(J)===pf;)J++;let h=n.length;for(;h-1>J&&n.charCodeAt(h-1)===pf;)h--;const v=h-J,A=k<v?k:v;let z=-1,ie=0;for(;ie<A;ie++){const M=e.charCodeAt(a+ie);if(M!==n.charCodeAt(J+ie))break;M===pf&&(z=ie)}if(ie!==A){if(z===-1)return p}else{if(v>A){if(n.charCodeAt(J+ie)===pf)return p.slice(J+ie+1);if(ie===2)return p.slice(J+ie)}k>A&&(e.charCodeAt(a+ie)===pf?z=ie:ie===2&&(z=3)),z===-1&&(z=0)}let b="";for(ie=a+z+1;ie<=d;++ie)(ie===d||e.charCodeAt(ie)===pf)&&(b+=b.length===0?"..":"\\..");return J+=z,b.length>0?`${b}${p.slice(J,h)}`:(p.charCodeAt(J)===pf&&++J,p.slice(J,h))},toNamespacedPath(e){if(typeof e!="string")return e;if(e.length===0)return"";const n=Yu.resolve(e);if(n.length<=2)return e;if(n.charCodeAt(0)===pf){if(n.charCodeAt(1)===pf){const f=n.charCodeAt(2);if(f!==bN&&f!==Z_)return`\\\\?\\UNC\\${n.slice(2)}`}}else if(em(n.charCodeAt(0))&&n.charCodeAt(1)===$_&&n.charCodeAt(2)===pf)return`\\\\?\\${n}`;return e},dirname(e){Kl(e,"path");const n=e.length;if(n===0)return".";let f=-1,p=0;const a=e.charCodeAt(0);if(n===1)return Zo(a)?e:".";if(Zo(a)){if(f=p=1,Zo(e.charCodeAt(1))){let J=2,h=J;for(;J<n&&!Zo(e.charCodeAt(J));)J++;if(J<n&&J!==h){for(h=J;J<n&&Zo(e.charCodeAt(J));)J++;if(J<n&&J!==h){for(h=J;J<n&&!Zo(e.charCodeAt(J));)J++;if(J===n)return e;J!==h&&(f=p=J+1)}}}}else em(a)&&e.charCodeAt(1)===$_&&(f=n>2&&Zo(e.charCodeAt(2))?3:2,p=f);let d=-1,k=!0;for(let J=n-1;J>=p;--J)if(Zo(e.charCodeAt(J))){if(!k){d=J;break}}else k=!1;if(d===-1){if(f===-1)return".";d=f}return e.slice(0,d)},basename(e,n){n!==void 0&&Kl(n,"ext"),Kl(e,"path");let f=0,p=-1,a=!0,d;if(e.length>=2&&em(e.charCodeAt(0))&&e.charCodeAt(1)===$_&&(f=2),n!==void 0&&n.length>0&&n.length<=e.length){if(n===e)return"";let k=n.length-1,J=-1;for(d=e.length-1;d>=f;--d){const h=e.charCodeAt(d);if(Zo(h)){if(!a){f=d+1;break}}else J===-1&&(a=!1,J=d+1),k>=0&&(h===n.charCodeAt(k)?--k===-1&&(p=d):(k=-1,p=J))}return f===p?p=J:p===-1&&(p=e.length),e.slice(f,p)}for(d=e.length-1;d>=f;--d)if(Zo(e.charCodeAt(d))){if(!a){f=d+1;break}}else p===-1&&(a=!1,p=d+1);return p===-1?"":e.slice(f,p)},extname(e){Kl(e,"path");let n=0,f=-1,p=0,a=-1,d=!0,k=0;e.length>=2&&e.charCodeAt(1)===$_&&em(e.charCodeAt(0))&&(n=p=2);for(let J=e.length-1;J>=n;--J){const h=e.charCodeAt(J);if(Zo(h)){if(!d){p=J+1;break}continue}a===-1&&(d=!1,a=J+1),h===Z_?f===-1?f=J:k!==1&&(k=1):f!==-1&&(k=-1)}return f===-1||a===-1||k===0||k===1&&f===a-1&&f===p+1?"":e.slice(f,a)},format:QT.bind(null,"\\"),parse(e){Kl(e,"path");const n={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return n;const f=e.length;let p=0,a=e.charCodeAt(0);if(f===1)return Zo(a)?(n.root=n.dir=e,n):(n.base=n.name=e,n);if(Zo(a)){if(p=1,Zo(e.charCodeAt(1))){let z=2,ie=z;for(;z<f&&!Zo(e.charCodeAt(z));)z++;if(z<f&&z!==ie){for(ie=z;z<f&&Zo(e.charCodeAt(z));)z++;if(z<f&&z!==ie){for(ie=z;z<f&&!Zo(e.charCodeAt(z));)z++;z===f?p=z:z!==ie&&(p=z+1)}}}}else if(em(a)&&e.charCodeAt(1)===$_){if(f<=2)return n.root=n.dir=e,n;if(p=2,Zo(e.charCodeAt(2))){if(f===3)return n.root=n.dir=e,n;p=3}}p>0&&(n.root=e.slice(0,p));let d=-1,k=p,J=-1,h=!0,v=e.length-1,A=0;for(;v>=p;--v){if(a=e.charCodeAt(v),Zo(a)){if(!h){k=v+1;break}continue}J===-1&&(h=!1,J=v+1),a===Z_?d===-1?d=v:A!==1&&(A=1):d!==-1&&(A=-1)}return J!==-1&&(d===-1||A===0||A===1&&d===J-1&&d===k+1?n.base=n.name=e.slice(k,J):(n.name=e.slice(k,d),n.base=e.slice(k,J),n.ext=e.slice(d,J))),k>0&&k!==p?n.dir=e.slice(0,k-1):n.dir=n.root,n},sep:"\\",delimiter:";",win32:null,posix:null},_f={resolve(...e){let n="",f=!1;for(let p=e.length-1;p>=-1&&!f;p--){const a=p>=0?e[p]:sE();Kl(a,"path"),a.length!==0&&(n=`${a}/${n}`,f=a.charCodeAt(0)===Wc)}return n=Qh(n,!f,"/",lE),f?`/${n}`:n.length>0?n:"."},normalize(e){if(Kl(e,"path"),e.length===0)return".";const n=e.charCodeAt(0)===Wc,f=e.charCodeAt(e.length-1)===Wc;return e=Qh(e,!n,"/",lE),e.length===0?n?"/":f?"./":".":(f&&(e+="/"),n?`/${e}`:e)},isAbsolute(e){return Kl(e,"path"),e.length>0&&e.charCodeAt(0)===Wc},join(...e){if(e.length===0)return".";let n;for(let f=0;f<e.length;++f){const p=e[f];Kl(p,"path"),p.length>0&&(n===void 0?n=p:n+=`/${p}`)}return n===void 0?".":_f.normalize(n)},relative(e,n){if(Kl(e,"from"),Kl(n,"to"),e===n||(e=_f.resolve(e),n=_f.resolve(n),e===n))return"";const f=1,p=e.length,a=p-f,d=1,k=n.length-d,J=a<k?a:k;let h=-1,v=0;for(;v<J;v++){const z=e.charCodeAt(f+v);if(z!==n.charCodeAt(d+v))break;z===Wc&&(h=v)}if(v===J)if(k>J){if(n.charCodeAt(d+v)===Wc)return n.slice(d+v+1);if(v===0)return n.slice(d+v)}else a>J&&(e.charCodeAt(f+v)===Wc?h=v:v===0&&(h=0));let A="";for(v=f+h+1;v<=p;++v)(v===p||e.charCodeAt(v)===Wc)&&(A+=A.length===0?"..":"/..");return`${A}${n.slice(d+h)}`},toNamespacedPath(e){return e},dirname(e){if(Kl(e,"path"),e.length===0)return".";const n=e.charCodeAt(0)===Wc;let f=-1,p=!0;for(let a=e.length-1;a>=1;--a)if(e.charCodeAt(a)===Wc){if(!p){f=a;break}}else p=!1;return f===-1?n?"/":".":n&&f===1?"//":e.slice(0,f)},basename(e,n){n!==void 0&&Kl(n,"ext"),Kl(e,"path");let f=0,p=-1,a=!0,d;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n===e)return"";let k=n.length-1,J=-1;for(d=e.length-1;d>=0;--d){const h=e.charCodeAt(d);if(h===Wc){if(!a){f=d+1;break}}else J===-1&&(a=!1,J=d+1),k>=0&&(h===n.charCodeAt(k)?--k===-1&&(p=d):(k=-1,p=J))}return f===p?p=J:p===-1&&(p=e.length),e.slice(f,p)}for(d=e.length-1;d>=0;--d)if(e.charCodeAt(d)===Wc){if(!a){f=d+1;break}}else p===-1&&(a=!1,p=d+1);return p===-1?"":e.slice(f,p)},extname(e){Kl(e,"path");let n=-1,f=0,p=-1,a=!0,d=0;for(let k=e.length-1;k>=0;--k){const J=e.charCodeAt(k);if(J===Wc){if(!a){f=k+1;break}continue}p===-1&&(a=!1,p=k+1),J===Z_?n===-1?n=k:d!==1&&(d=1):n!==-1&&(d=-1)}return n===-1||p===-1||d===0||d===1&&n===p-1&&n===f+1?"":e.slice(n,p)},format:QT.bind(null,"/"),parse(e){Kl(e,"path");const n={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return n;const f=e.charCodeAt(0)===Wc;let p;f?(n.root="/",p=1):p=0;let a=-1,d=0,k=-1,J=!0,h=e.length-1,v=0;for(;h>=p;--h){const A=e.charCodeAt(h);if(A===Wc){if(!J){d=h+1;break}continue}k===-1&&(J=!1,k=h+1),A===Z_?a===-1?a=h:v!==1&&(v=1):a!==-1&&(v=-1)}if(k!==-1){const A=d===0&&f?1:d;a===-1||v===0||v===1&&a===k-1&&a===d+1?n.base=n.name=e.slice(A,k):(n.name=e.slice(A,a),n.base=e.slice(A,k),n.ext=e.slice(a,k))}return d>0?n.dir=e.slice(0,d-1):f&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};_f.win32=Yu.win32=Yu,_f.posix=Yu.posix=_f,km==="win32"?Yu.normalize:_f.normalize,km==="win32"?Yu.resolve:_f.resolve,km==="win32"?Yu.relative:_f.relative,km==="win32"?Yu.dirname:_f.dirname,km==="win32"?Yu.basename:_f.basename,km==="win32"?Yu.extname:_f.extname,km==="win32"?Yu.sep:_f.sep;const EN=/^\w[\w\d+.-]*$/,TN=/^\//,SN=/^\/\//;function ZT(e,n){if(!e.scheme&&n)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!EN.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!TN.test(e.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(SN.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function DN(e,n){return!e&&!n?"file":e}function LN(e,n){switch(e){case"https":case"http":case"file":n?n[0]!==hp&&(n=hp+n):n=hp;break}return n}const fl="",hp="/",AN=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Om{constructor(n,f,p,a,d,k=!1){typeof n=="object"?(this.scheme=n.scheme||fl,this.authority=n.authority||fl,this.path=n.path||fl,this.query=n.query||fl,this.fragment=n.fragment||fl):(this.scheme=DN(n,k),this.authority=f||fl,this.path=LN(this.scheme,p||fl),this.query=a||fl,this.fragment=d||fl,ZT(this,k))}static isUri(n){return n instanceof Om?!0:n?typeof n.authority=="string"&&typeof n.fragment=="string"&&typeof n.path=="string"&&typeof n.query=="string"&&typeof n.scheme=="string"&&typeof n.fsPath=="string"&&typeof n.with=="function"&&typeof n.toString=="function":!1}get fsPath(){return cE(this,!1)}with(n){if(!n)return this;let{scheme:f,authority:p,path:a,query:d,fragment:k}=n;return f===void 0?f=this.scheme:f===null&&(f=fl),p===void 0?p=this.authority:p===null&&(p=fl),a===void 0?a=this.path:a===null&&(a=fl),d===void 0?d=this.query:d===null&&(d=fl),k===void 0?k=this.fragment:k===null&&(k=fl),f===this.scheme&&p===this.authority&&a===this.path&&d===this.query&&k===this.fragment?this:new Ig(f,p,a,d,k)}static parse(n,f=!1){const p=AN.exec(n);return p?new Ig(p[2]||fl,Zh(p[4]||fl),Zh(p[5]||fl),Zh(p[7]||fl),Zh(p[9]||fl),f):new Ig(fl,fl,fl,fl,fl)}static file(n){let f=fl;if(Nv&&(n=n.replace(/\\/g,hp)),n[0]===hp&&n[1]===hp){const p=n.indexOf(hp,2);p===-1?(f=n.substring(2),n=hp):(f=n.substring(2,p),n=n.substring(p)||hp)}return new Ig("file",f,n,fl,fl)}static from(n){const f=new Ig(n.scheme,n.authority,n.path,n.query,n.fragment);return ZT(f,!0),f}static joinPath(n,...f){if(!n.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let p;return Nv&&n.scheme==="file"?p=Om.file(Yu.join(cE(n,!0),...f)).path:p=_f.join(n.path,...f),n.with({path:p})}toString(n=!1){return uE(this,n)}toJSON(){return this}static revive(n){if(n){if(n instanceof Om)return n;{const f=new Ig(n);return f._formatted=n.external,f._fsPath=n._sep===$T?n.fsPath:null,f}}else return n}}const $T=Nv?1:void 0;class Ig extends Om{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=cE(this,!1)),this._fsPath}toString(n=!1){return n?uE(this,!0):(this._formatted||(this._formatted=uE(this,!1)),this._formatted)}toJSON(){const n={$mid:1};return this._fsPath&&(n.fsPath=this._fsPath,n._sep=$T),this._formatted&&(n.external=this._formatted),this.path&&(n.path=this.path),this.scheme&&(n.scheme=this.scheme),this.authority&&(n.authority=this.authority),this.query&&(n.query=this.query),this.fragment&&(n.fragment=this.fragment),n}}const eS={[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 rS(e,n){let f,p=-1;for(let a=0;a<e.length;a++){const d=e.charCodeAt(a);if(d>=97&&d<=122||d>=65&&d<=90||d>=48&&d<=57||d===45||d===46||d===95||d===126||n&&d===47)p!==-1&&(f+=encodeURIComponent(e.substring(p,a)),p=-1),f!==void 0&&(f+=e.charAt(a));else{f===void 0&&(f=e.substr(0,a));const k=eS[d];k!==void 0?(p!==-1&&(f+=encodeURIComponent(e.substring(p,a)),p=-1),f+=k):p===-1&&(p=a)}}return p!==-1&&(f+=encodeURIComponent(e.substring(p))),f!==void 0?f:e}function CN(e){let n;for(let f=0;f<e.length;f++){const p=e.charCodeAt(f);p===35||p===63?(n===void 0&&(n=e.substr(0,f)),n+=eS[p]):n!==void 0&&(n+=e[f])}return n!==void 0?n:e}function cE(e,n){let f;return e.authority&&e.path.length>1&&e.scheme==="file"?f=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?n?f=e.path.substr(1):f=e.path[1].toLowerCase()+e.path.substr(2):f=e.path,Nv&&(f=f.replace(/\//g,"\\")),f}function uE(e,n){const f=n?CN:rS;let p="",{scheme:a,authority:d,path:k,query:J,fragment:h}=e;if(a&&(p+=a,p+=":"),(d||a==="file")&&(p+=hp,p+=hp),d){let v=d.indexOf("@");if(v!==-1){const A=d.substr(0,v);d=d.substr(v+1),v=A.indexOf(":"),v===-1?p+=f(A,!1):(p+=f(A.substr(0,v),!1),p+=":",p+=f(A.substr(v+1),!1)),p+="@"}d=d.toLowerCase(),v=d.indexOf(":"),v===-1?p+=f(d,!1):(p+=f(d.substr(0,v),!1),p+=d.substr(v))}if(k){if(k.length>=3&&k.charCodeAt(0)===47&&k.charCodeAt(2)===58){const v=k.charCodeAt(1);v>=65&&v<=90&&(k=`/${String.fromCharCode(v+32)}:${k.substr(3)}`)}else if(k.length>=2&&k.charCodeAt(1)===58){const v=k.charCodeAt(0);v>=65&&v<=90&&(k=`${String.fromCharCode(v+32)}:${k.substr(2)}`)}p+=f(k,!0)}return J&&(p+="?",p+=f(J,!1)),h&&(p+="#",p+=n?h:rS(h,!1)),p}function tS(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+tS(e.substr(3)):e}}const nS=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Zh(e){return e.match(nS)?e.replace(nS,n=>tS(n)):e}class mf{constructor(n,f){this.lineNumber=n,this.column=f}with(n=this.lineNumber,f=this.column){return n===this.lineNumber&&f===this.column?this:new mf(n,f)}delta(n=0,f=0){return this.with(this.lineNumber+n,this.column+f)}equals(n){return mf.equals(this,n)}static equals(n,f){return!n&&!f?!0:!!n&&!!f&&n.lineNumber===f.lineNumber&&n.column===f.column}isBefore(n){return mf.isBefore(this,n)}static isBefore(n,f){return n.lineNumber<f.lineNumber?!0:f.lineNumber<n.lineNumber?!1:n.column<f.column}isBeforeOrEqual(n){return mf.isBeforeOrEqual(this,n)}static isBeforeOrEqual(n,f){return n.lineNumber<f.lineNumber?!0:f.lineNumber<n.lineNumber?!1:n.column<=f.column}static compare(n,f){const p=n.lineNumber|0,a=f.lineNumber|0;if(p===a){const d=n.column|0,k=f.column|0;return d-k}return p-a}clone(){return new mf(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(n){return new mf(n.lineNumber,n.column)}static isIPosition(n){return n&&typeof n.lineNumber=="number"&&typeof n.column=="number"}}class yl{constructor(n,f,p,a){n>p||n===p&&f>a?(this.startLineNumber=p,this.startColumn=a,this.endLineNumber=n,this.endColumn=f):(this.startLineNumber=n,this.startColumn=f,this.endLineNumber=p,this.endColumn=a)}isEmpty(){return yl.isEmpty(this)}static isEmpty(n){return n.startLineNumber===n.endLineNumber&&n.startColumn===n.endColumn}containsPosition(n){return yl.containsPosition(this,n)}static containsPosition(n,f){return!(f.lineNumber<n.startLineNumber||f.lineNumber>n.endLineNumber||f.lineNumber===n.startLineNumber&&f.column<n.startColumn||f.lineNumber===n.endLineNumber&&f.column>n.endColumn)}static strictContainsPosition(n,f){return!(f.lineNumber<n.startLineNumber||f.lineNumber>n.endLineNumber||f.lineNumber===n.startLineNumber&&f.column<=n.startColumn||f.lineNumber===n.endLineNumber&&f.column>=n.endColumn)}containsRange(n){return yl.containsRange(this,n)}static containsRange(n,f){return!(f.startLineNumber<n.startLineNumber||f.endLineNumber<n.startLineNumber||f.startLineNumber>n.endLineNumber||f.endLineNumber>n.endLineNumber||f.startLineNumber===n.startLineNumber&&f.startColumn<n.startColumn||f.endLineNumber===n.endLineNumber&&f.endColumn>n.endColumn)}strictContainsRange(n){return yl.strictContainsRange(this,n)}static strictContainsRange(n,f){return!(f.startLineNumber<n.startLineNumber||f.endLineNumber<n.startLineNumber||f.startLineNumber>n.endLineNumber||f.endLineNumber>n.endLineNumber||f.startLineNumber===n.startLineNumber&&f.startColumn<=n.startColumn||f.endLineNumber===n.endLineNumber&&f.endColumn>=n.endColumn)}plusRange(n){return yl.plusRange(this,n)}static plusRange(n,f){let p,a,d,k;return f.startLineNumber<n.startLineNumber?(p=f.startLineNumber,a=f.startColumn):f.startLineNumber===n.startLineNumber?(p=f.startLineNumber,a=Math.min(f.startColumn,n.startColumn)):(p=n.startLineNumber,a=n.startColumn),f.endLineNumber>n.endLineNumber?(d=f.endLineNumber,k=f.endColumn):f.endLineNumber===n.endLineNumber?(d=f.endLineNumber,k=Math.max(f.endColumn,n.endColumn)):(d=n.endLineNumber,k=n.endColumn),new yl(p,a,d,k)}intersectRanges(n){return yl.intersectRanges(this,n)}static intersectRanges(n,f){let p=n.startLineNumber,a=n.startColumn,d=n.endLineNumber,k=n.endColumn,J=f.startLineNumber,h=f.startColumn,v=f.endLineNumber,A=f.endColumn;return p<J?(p=J,a=h):p===J&&(a=Math.max(a,h)),d>v?(d=v,k=A):d===v&&(k=Math.min(k,A)),p>d||p===d&&a>k?null:new yl(p,a,d,k)}equalsRange(n){return yl.equalsRange(this,n)}static equalsRange(n,f){return!!n&&!!f&&n.startLineNumber===f.startLineNumber&&n.startColumn===f.startColumn&&n.endLineNumber===f.endLineNumber&&n.endColumn===f.endColumn}getEndPosition(){return yl.getEndPosition(this)}static getEndPosition(n){return new mf(n.endLineNumber,n.endColumn)}getStartPosition(){return yl.getStartPosition(this)}static getStartPosition(n){return new mf(n.startLineNumber,n.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(n,f){return new yl(this.startLineNumber,this.startColumn,n,f)}setStartPosition(n,f){return new yl(n,f,this.endLineNumber,this.endColumn)}collapseToStart(){return yl.collapseToStart(this)}static collapseToStart(n){return new yl(n.startLineNumber,n.startColumn,n.startLineNumber,n.startColumn)}static fromPositions(n,f=n){return new yl(n.lineNumber,n.column,f.lineNumber,f.column)}static lift(n){return n?new yl(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn):null}static isIRange(n){return n&&typeof n.startLineNumber=="number"&&typeof n.startColumn=="number"&&typeof n.endLineNumber=="number"&&typeof n.endColumn=="number"}static areIntersectingOrTouching(n,f){return!(n.endLineNumber<f.startLineNumber||n.endLineNumber===f.startLineNumber&&n.endColumn<f.startColumn||f.endLineNumber<n.startLineNumber||f.endLineNumber===n.startLineNumber&&f.endColumn<n.startColumn)}static areIntersecting(n,f){return!(n.endLineNumber<f.startLineNumber||n.endLineNumber===f.startLineNumber&&n.endColumn<=f.startColumn||f.endLineNumber<n.startLineNumber||f.endLineNumber===n.startLineNumber&&f.endColumn<=n.startColumn)}static compareRangesUsingStarts(n,f){if(n&&f){const d=n.startLineNumber|0,k=f.startLineNumber|0;if(d===k){const J=n.startColumn|0,h=f.startColumn|0;if(J===h){const v=n.endLineNumber|0,A=f.endLineNumber|0;if(v===A){const z=n.endColumn|0,ie=f.endColumn|0;return z-ie}return v-A}return J-h}return d-k}return(n?1:0)-(f?1:0)}static compareRangesUsingEnds(n,f){return n.endLineNumber===f.endLineNumber?n.endColumn===f.endColumn?n.startLineNumber===f.startLineNumber?n.startColumn-f.startColumn:n.startLineNumber-f.startLineNumber:n.endColumn-f.endColumn:n.endLineNumber-f.endLineNumber}static spansMultipleLines(n){return n.endLineNumber>n.startLineNumber}toJSON(){return this}}const xN=3;function aS(e,n,f,p){return new Q_(e,n,f).ComputeDiff(p)}class iS{constructor(n){const f=[],p=[];for(let a=0,d=n.length;a<d;a++)f[a]=fE(n[a],1),p[a]=dE(n[a],1);this.lines=n,this._startColumns=f,this._endColumns=p}getElements(){const n=[];for(let f=0,p=this.lines.length;f<p;f++)n[f]=this.lines[f].substring(this._startColumns[f]-1,this._endColumns[f]-1);return n}getStrictElement(n){return this.lines[n]}getStartLineNumber(n){return n+1}getEndLineNumber(n){return n+1}createCharSequence(n,f,p){const a=[],d=[],k=[];let J=0;for(let h=f;h<=p;h++){const v=this.lines[h],A=n?this._startColumns[h]:1,z=n?this._endColumns[h]:v.length+1;for(let ie=A;ie<z;ie++)a[J]=v.charCodeAt(ie-1),d[J]=h+1,k[J]=ie,J++}return new IN(a,d,k)}}class IN{constructor(n,f,p){this._charCodes=n,this._lineNumbers=f,this._columns=p}getElements(){return this._charCodes}getStartLineNumber(n){return this._lineNumbers[n]}getStartColumn(n){return this._columns[n]}getEndLineNumber(n){return this._lineNumbers[n]}getEndColumn(n){return this._columns[n]+1}}class kv{constructor(n,f,p,a,d,k,J,h){this.originalStartLineNumber=n,this.originalStartColumn=f,this.originalEndLineNumber=p,this.originalEndColumn=a,this.modifiedStartLineNumber=d,this.modifiedStartColumn=k,this.modifiedEndLineNumber=J,this.modifiedEndColumn=h}static createFromDiffChange(n,f,p){let a,d,k,J,h,v,A,z;return n.originalLength===0?(a=0,d=0,k=0,J=0):(a=f.getStartLineNumber(n.originalStart),d=f.getStartColumn(n.originalStart),k=f.getEndLineNumber(n.originalStart+n.originalLength-1),J=f.getEndColumn(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(h=0,v=0,A=0,z=0):(h=p.getStartLineNumber(n.modifiedStart),v=p.getStartColumn(n.modifiedStart),A=p.getEndLineNumber(n.modifiedStart+n.modifiedLength-1),z=p.getEndColumn(n.modifiedStart+n.modifiedLength-1)),new kv(a,d,k,J,h,v,A,z)}}function NN(e){if(e.length<=1)return e;const n=[e[0]];let f=n[0];for(let p=1,a=e.length;p<a;p++){const d=e[p],k=d.originalStart-(f.originalStart+f.originalLength),J=d.modifiedStart-(f.modifiedStart+f.modifiedLength);Math.min(k,J)<xN?(f.originalLength=d.originalStart+d.originalLength-f.originalStart,f.modifiedLength=d.modifiedStart+d.modifiedLength-f.modifiedStart):(n.push(d),f=d)}return n}class Ov{constructor(n,f,p,a,d){this.originalStartLineNumber=n,this.originalEndLineNumber=f,this.modifiedStartLineNumber=p,this.modifiedEndLineNumber=a,this.charChanges=d}static createFromDiffResult(n,f,p,a,d,k,J){let h,v,A,z,ie;if(f.originalLength===0?(h=p.getStartLineNumber(f.originalStart)-1,v=0):(h=p.getStartLineNumber(f.originalStart),v=p.getEndLineNumber(f.originalStart+f.originalLength-1)),f.modifiedLength===0?(A=a.getStartLineNumber(f.modifiedStart)-1,z=0):(A=a.getStartLineNumber(f.modifiedStart),z=a.getEndLineNumber(f.modifiedStart+f.modifiedLength-1)),k&&f.originalLength>0&&f.originalLength<20&&f.modifiedLength>0&&f.modifiedLength<20&&d()){const b=p.createCharSequence(n,f.originalStart,f.originalStart+f.originalLength-1),M=a.createCharSequence(n,f.modifiedStart,f.modifiedStart+f.modifiedLength-1);let S=aS(b,M,d,!0).changes;J&&(S=NN(S)),ie=[];for(let B=0,H=S.length;B<H;B++)ie.push(kv.createFromDiffChange(S[B],b,M))}return new Ov(h,v,A,z,ie)}}class kN{constructor(n,f,p){this.shouldComputeCharChanges=p.shouldComputeCharChanges,this.shouldPostProcessCharChanges=p.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=p.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=p.shouldMakePrettyDiff,this.originalLines=n,this.modifiedLines=f,this.original=new iS(n),this.modified=new iS(f),this.continueLineDiff=oS(p.maxComputationTime),this.continueCharDiff=oS(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:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber: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:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};const n=aS(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),f=n.changes,p=n.quitEarly;if(this.shouldIgnoreTrimWhitespace){const J=[];for(let h=0,v=f.length;h<v;h++)J.push(Ov.createFromDiffResult(this.shouldIgnoreTrimWhitespace,f[h],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:p,changes:J}}const a=[];let d=0,k=0;for(let J=-1,h=f.length;J<h;J++){const v=J+1<h?f[J+1]:null,A=v?v.originalStart:this.originalLines.length,z=v?v.modifiedStart:this.modifiedLines.length;for(;d<A&&k<z;){const ie=this.originalLines[d],b=this.modifiedLines[k];if(ie!==b){{let M=fE(ie,1),S=fE(b,1);for(;M>1&&S>1;){const B=ie.charCodeAt(M-2),H=b.charCodeAt(S-2);if(B!==H)break;M--,S--}(M>1||S>1)&&this._pushTrimWhitespaceCharChange(a,d+1,1,M,k+1,1,S)}{let M=dE(ie,1),S=dE(b,1);const B=ie.length+1,H=b.length+1;for(;M<B&&S<H;){const I=ie.charCodeAt(M-1),w=ie.charCodeAt(S-1);if(I!==w)break;M++,S++}(M<B||S<H)&&this._pushTrimWhitespaceCharChange(a,d+1,M,B,k+1,S,H)}}d++,k++}v&&(a.push(Ov.createFromDiffResult(this.shouldIgnoreTrimWhitespace,v,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),d+=v.originalLength,k+=v.modifiedLength)}return{quitEarly:p,changes:a}}_pushTrimWhitespaceCharChange(n,f,p,a,d,k,J){if(this._mergeTrimWhitespaceCharChange(n,f,p,a,d,k,J))return;let h;this.shouldComputeCharChanges&&(h=[new kv(f,p,f,a,d,k,d,J)]),n.push(new Ov(f,f,d,d,h))}_mergeTrimWhitespaceCharChange(n,f,p,a,d,k,J){const h=n.length;if(h===0)return!1;const v=n[h-1];return v.originalEndLineNumber===0||v.modifiedEndLineNumber===0?!1:v.originalEndLineNumber+1===f&&v.modifiedEndLineNumber+1===d?(v.originalEndLineNumber=f,v.modifiedEndLineNumber=d,this.shouldComputeCharChanges&&v.charChanges&&v.charChanges.push(new kv(f,p,f,a,d,k,d,J)),!0):!1}}function fE(e,n){const f=ZI(e);return f===-1?n:f+1}function dE(e,n){const f=$I(e);return f===-1?n:f+2}function oS(e){if(e===0)return()=>!0;const n=Date.now();return()=>Date.now()-n<e}function sS(e){return e<0?0:e>255?255:e|0}function Ng(e){return e<0?0:e>4294967295?4294967295:e|0}class ON{constructor(n){this.values=n,this.prefixSum=new Uint32Array(n.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(n,f){n=Ng(n);const p=this.values,a=this.prefixSum,d=f.length;return d===0?!1:(this.values=new Uint32Array(p.length+d),this.values.set(p.subarray(0,n),0),this.values.set(p.subarray(n),n+d),this.values.set(f,n),n-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=n-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(a.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(n,f){return n=Ng(n),f=Ng(f),this.values[n]===f?!1:(this.values[n]=f,n-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=n-1),!0)}removeValues(n,f){n=Ng(n),f=Ng(f);const p=this.values,a=this.prefixSum;if(n>=p.length)return!1;const d=p.length-n;return f>=d&&(f=d),f===0?!1:(this.values=new Uint32Array(p.length-f),this.values.set(p.subarray(0,n),0),this.values.set(p.subarray(n+f),n),this.prefixSum=new Uint32Array(this.values.length),n-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=n-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(a.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(n){return n<0?0:(n=Ng(n),this._getPrefixSum(n))}_getPrefixSum(n){if(n<=this.prefixSumValidIndex[0])return this.prefixSum[n];let f=this.prefixSumValidIndex[0]+1;f===0&&(this.prefixSum[0]=this.values[0],f++),n>=this.values.length&&(n=this.values.length-1);for(let p=f;p<=n;p++)this.prefixSum[p]=this.prefixSum[p-1]+this.values[p];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],n),this.prefixSum[n]}getIndexOf(n){n=Math.floor(n),this.getTotalSum();let f=0,p=this.values.length-1,a=0,d=0,k=0;for(;f<=p;)if(a=f+(p-f)/2|0,d=this.prefixSum[a],k=d-this.values[a],n<k)p=a-1;else if(n>=d)f=a+1;else break;return new RN(a,n-k)}}class RN{constructor(n,f){this.index=n,this.remainder=f,this._prefixSumIndexOfResultBrand=void 0,this.index=n,this.remainder=f}}class wN{constructor(n,f,p,a){this._uri=n,this._lines=f,this._eol=p,this._versionId=a,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(n){n.eol&&n.eol!==this._eol&&(this._eol=n.eol,this._lineStarts=null);const f=n.changes;for(const p of f)this._acceptDeleteRange(p.range),this._acceptInsertText(new mf(p.range.startLineNumber,p.range.startColumn),p.text);this._versionId=n.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const n=this._eol.length,f=this._lines.length,p=new Uint32Array(f);for(let a=0;a<f;a++)p[a]=this._lines[a].length+n;this._lineStarts=new ON(p)}}_setLineText(n,f){this._lines[n]=f,this._lineStarts&&this._lineStarts.setValue(n,this._lines[n].length+this._eol.length)}_acceptDeleteRange(n){if(n.startLineNumber===n.endLineNumber){if(n.startColumn===n.endColumn)return;this._setLineText(n.startLineNumber-1,this._lines[n.startLineNumber-1].substring(0,n.startColumn-1)+this._lines[n.startLineNumber-1].substring(n.endColumn-1));return}this._setLineText(n.startLineNumber-1,this._lines[n.startLineNumber-1].substring(0,n.startColumn-1)+this._lines[n.endLineNumber-1].substring(n.endColumn-1)),this._lines.splice(n.startLineNumber,n.endLineNumber-n.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(n.startLineNumber,n.endLineNumber-n.startLineNumber)}_acceptInsertText(n,f){if(f.length===0)return;const p=QI(f);if(p.length===1){this._setLineText(n.lineNumber-1,this._lines[n.lineNumber-1].substring(0,n.column-1)+p[0]+this._lines[n.lineNumber-1].substring(n.column-1));return}p[p.length-1]+=this._lines[n.lineNumber-1].substring(n.column-1),this._setLineText(n.lineNumber-1,this._lines[n.lineNumber-1].substring(0,n.column-1)+p[0]);const a=new Uint32Array(p.length-1);for(let d=1;d<p.length;d++)this._lines.splice(n.lineNumber+d-1,0,p[d]),a[d-1]=p[d].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(n.lineNumber,a)}}const MN="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function PN(e=""){let n="(-?\\d*\\.\\d\\w*)|([^";for(const f of MN)e.indexOf(f)>=0||(n+="\\"+f);return n+="\\s]+)",new RegExp(n,"g")}const lS=PN();function FN(e){let n=lS;if(e&&e instanceof RegExp)if(e.global)n=e;else{let f="g";e.ignoreCase&&(f+="i"),e.multiline&&(f+="m"),e.unicode&&(f+="u"),n=new RegExp(e.source,f)}return n.lastIndex=0,n}const GN={maxLen:1e3,windowSize:15,timeBudget:150};function pE(e,n,f,p,a=GN){if(f.length>a.maxLen){let v=e-a.maxLen/2;return v<0?v=0:p+=v,f=f.substring(v,e+a.maxLen/2),pE(e,n,f,p,a)}const d=Date.now(),k=e-1-p;let J=-1,h=null;for(let v=1;!(Date.now()-d>=a.timeBudget);v++){const A=k-a.windowSize*v;n.lastIndex=Math.max(0,A);const z=BN(n,f,k,J);if(!z&&h||(h=z,A<=0))break;J=A}if(h){const v={word:h[0],startColumn:p+1+h.index,endColumn:p+1+h.index+h[0].length};return n.lastIndex=0,v}return null}function BN(e,n,f,p){let a;for(;a=e.exec(n);){const d=a.index||0;if(d<=f&&e.lastIndex>=f)return a;if(p>0&&d>p)return null}return null}class _E{constructor(n){const f=sS(n);this._defaultValue=f,this._asciiMap=_E._createAsciiMap(f),this._map=new Map}static _createAsciiMap(n){const f=new Uint8Array(256);for(let p=0;p<256;p++)f[p]=n;return f}set(n,f){const p=sS(f);n>=0&&n<256?this._asciiMap[n]=p:this._map.set(n,p)}get(n){return n>=0&&n<256?this._asciiMap[n]:this._map.get(n)||this._defaultValue}}class UN{constructor(n,f,p){const a=new Uint8Array(n*f);for(let d=0,k=n*f;d<k;d++)a[d]=p;this._data=a,this.rows=n,this.cols=f}get(n,f){return this._data[n*this.cols+f]}set(n,f,p){this._data[n*this.cols+f]=p}}class VN{constructor(n){let f=0,p=0;for(let d=0,k=n.length;d<k;d++){const[J,h,v]=n[d];h>f&&(f=h),J>p&&(p=J),v>p&&(p=v)}f++,p++;const a=new UN(p,f,0);for(let d=0,k=n.length;d<k;d++){const[J,h,v]=n[d];a.set(J,h,v)}this._states=a,this._maxCharCode=f}nextState(n,f){return f<0||f>=this._maxCharCode?0:this._states.get(n,f)}}let mE=null;function WN(){return mE===null&&(mE=new VN([[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]])),mE}let Rv=null;function jN(){if(Rv===null){Rv=new _E(0);const e=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let f=0;f<e.length;f++)Rv.set(e.charCodeAt(f),1);const n=".,;";for(let f=0;f<n.length;f++)Rv.set(n.charCodeAt(f),2)}return Rv}class $h{static _createLink(n,f,p,a,d){let k=d-1;do{const J=f.charCodeAt(k);if(n.get(J)!==2)break;k--}while(k>a);if(a>0){const J=f.charCodeAt(a-1),h=f.charCodeAt(k);(J===40&&h===41||J===91&&h===93||J===123&&h===125)&&k--}return{range:{startLineNumber:p,startColumn:a+1,endLineNumber:p,endColumn:k+2},url:f.substring(a,k+1)}}static computeLinks(n,f=WN()){const p=jN(),a=[];for(let d=1,k=n.getLineCount();d<=k;d++){const J=n.getLineContent(d),h=J.length;let v=0,A=0,z=0,ie=1,b=!1,M=!1,S=!1,B=!1;for(;v<h;){let H=!1;const I=J.charCodeAt(v);if(ie===13){let w;switch(I){case 40:b=!0,w=0;break;case 41:w=b?0:1;break;case 91:S=!0,M=!0,w=0;break;case 93:S=!1,w=M?0:1;break;case 123:B=!0,w=0;break;case 125:w=B?0:1;break;case 39:w=z===34||z===96?0:1;break;case 34:w=z===39||z===96?0:1;break;case 96:w=z===39||z===34?0:1;break;case 42:w=z===42?1:0;break;case 124:w=z===124?1:0;break;case 32:w=S?0:1;break;default:w=p.get(I)}w===1&&(a.push($h._createLink(p,J,d,A,v)),H=!0)}else if(ie===12){let w;I===91?(M=!0,w=0):w=p.get(I),w===1?H=!0:ie=13}else ie=f.nextState(ie,I),ie===0&&(H=!0);H&&(ie=1,b=!1,M=!1,B=!1,A=v+1,z=I),v++}ie===13&&a.push($h._createLink(p,J,d,A,h))}return a}}function HN(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:$h.computeLinks(e)}class gE{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(n,f,p,a,d){if(n&&f){const k=this.doNavigateValueSet(f,d);if(k)return{range:n,value:k}}if(p&&a){const k=this.doNavigateValueSet(a,d);if(k)return{range:p,value:k}}return null}doNavigateValueSet(n,f){const p=this.numberReplace(n,f);return p!==null?p:this.textReplace(n,f)}numberReplace(n,f){const p=Math.pow(10,n.length-(n.lastIndexOf(".")+1));let a=Number(n),d=parseFloat(n);return!isNaN(a)&&!isNaN(d)&&a===d?a===0&&!f?null:(a=Math.floor(a*p),a+=f?p:-p,String(a/p)):null}textReplace(n,f){return this.valueSetsReplace(this._defaultValueSet,n,f)}valueSetsReplace(n,f,p){let a=null;for(let d=0,k=n.length;a===null&&d<k;d++)a=this.valueSetReplace(n[d],f,p);return a}valueSetReplace(n,f,p){let a=n.indexOf(f);return a>=0?(a+=p?1:-1,a<0?a=n.length-1:a%=n.length,n[a]):null}}gE.INSTANCE=new gE;const cS=Object.freeze(function(e,n){const f=setTimeout(e.bind(n),0);return{dispose(){clearTimeout(f)}}});var ey;(function(e){function n(f){return f===e.None||f===e.Cancelled||f instanceof ry?!0:!f||typeof f!="object"?!1:typeof f.isCancellationRequested=="boolean"&&typeof f.onCancellationRequested=="function"}e.isCancellationToken=n,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:nE.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:cS})})(ey||(ey={}));class ry{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?cS:(this._emitter||(this._emitter=new A_),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class JN{constructor(n){this._token=void 0,this._parentListener=void 0,this._parentListener=n&&n.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new ry),this._token}cancel(){this._token?this._token instanceof ry&&this._token.cancel():this._token=ey.Cancelled}dispose(n=!1){n&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof ry&&this._token.dispose():this._token=ey.None}}class vE{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(n,f){this._keyCodeToStr[n]=f,this._strToKeyCode[f.toLowerCase()]=n}keyCodeToStr(n){return this._keyCodeToStr[n]}strToKeyCode(n){return this._strToKeyCode[n.toLowerCase()]||0}}const ty=new vE,hE=new vE,yE=new vE,KN=new Array(230),zN=Object.create(null),qN=Object.create(null);(function(){const e="",n=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]];let f=[],p=[];for(const a of n){const[d,k,J,h,v,A,z,ie,b,M]=a;if(p[J]||(p[J]=!0,zN[h]=J,qN[h.toLowerCase()]=J),!f[v]){if(f[v]=!0,!A)throw new Error(`String representation missing for key code ${v} around scan code ${h}`);ty.define(v,A),hE.define(v,b||A),yE.define(v,M||b||A)}z&&(KN[z]=v)}})();var uS;(function(e){function n(J){return ty.keyCodeToStr(J)}e.toString=n;function f(J){return ty.strToKeyCode(J)}e.fromString=f;function p(J){return hE.keyCodeToStr(J)}e.toUserSettingsUS=p;function a(J){return yE.keyCodeToStr(J)}e.toUserSettingsGeneral=a;function d(J){return hE.strToKeyCode(J)||yE.strToKeyCode(J)}e.fromUserSettings=d;function k(J){if(J>=93&&J<=108)return null;switch(J){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return ty.keyCodeToStr(J)}e.toElectronAccelerator=k})(uS||(uS={}));function XN(e,n){const f=(n&65535)<<16>>>0;return(e|f)>>>0}class Qf extends yl{constructor(n,f,p,a){super(n,f,p,a),this.selectionStartLineNumber=n,this.selectionStartColumn=f,this.positionLineNumber=p,this.positionColumn=a}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(n){return Qf.selectionsEqual(this,n)}static selectionsEqual(n,f){return n.selectionStartLineNumber===f.selectionStartLineNumber&&n.selectionStartColumn===f.selectionStartColumn&&n.positionLineNumber===f.positionLineNumber&&n.positionColumn===f.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(n,f){return this.getDirection()===0?new Qf(this.startLineNumber,this.startColumn,n,f):new Qf(n,f,this.startLineNumber,this.startColumn)}getPosition(){return new mf(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new mf(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(n,f){return this.getDirection()===0?new Qf(n,f,this.endLineNumber,this.endColumn):new Qf(this.endLineNumber,this.endColumn,n,f)}static fromPositions(n,f=n){return new Qf(n.lineNumber,n.column,f.lineNumber,f.column)}static fromRange(n,f){return f===0?new Qf(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn):new Qf(n.endLineNumber,n.endColumn,n.startLineNumber,n.startColumn)}static liftSelection(n){return new Qf(n.selectionStartLineNumber,n.selectionStartColumn,n.positionLineNumber,n.positionColumn)}static selectionsArrEqual(n,f){if(n&&!f||!n&&f)return!1;if(!n&&!f)return!0;if(n.length!==f.length)return!1;for(let p=0,a=n.length;p<a;p++)if(!this.selectionsEqual(n[p],f[p]))return!1;return!0}static isISelection(n){return n&&typeof n.selectionStartLineNumber=="number"&&typeof n.selectionStartColumn=="number"&&typeof n.positionLineNumber=="number"&&typeof n.positionColumn=="number"}static createWithDirection(n,f,p,a,d){return d===0?new Qf(n,f,p,a):new Qf(p,a,n,f)}}var bE=function(e,n,f,p){function a(d){return d instanceof f?d:new f(function(k){k(d)})}return new(f||(f=Promise))(function(d,k){function J(A){try{v(p.next(A))}catch(z){k(z)}}function h(A){try{v(p.throw(A))}catch(z){k(z)}}function v(A){A.done?d(A.value):a(A.value).then(J,h)}v((p=p.apply(e,n||[])).next())})};class YN{constructor(){this._map=new Map,this._factories=new Map,this._onDidChange=new A_,this.onDidChange=this._onDidChange.event,this._colorMap=null}fire(n){this._onDidChange.fire({changedLanguages:n,changedColorMap:!1})}register(n,f){return this._map.set(n,f),this.fire([n]),Kh(()=>{this._map.get(n)===f&&(this._map.delete(n),this.fire([n]))})}registerFactory(n,f){var p;(p=this._factories.get(n))===null||p===void 0||p.dispose();const a=new QN(this,n,f);return this._factories.set(n,a),Kh(()=>{const d=this._factories.get(n);!d||d!==a||(this._factories.delete(n),d.dispose())})}getOrCreate(n){return bE(this,void 0,void 0,function*(){const f=this.get(n);if(f)return f;const p=this._factories.get(n);return!p||p.isResolved?null:(yield p.resolve(),this.get(n))})}get(n){return this._map.get(n)||null}isResolved(n){if(this.get(n))return!0;const p=this._factories.get(n);return!!(!p||p.isResolved)}setColorMap(n){this._colorMap=n,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class QN extends Qb{constructor(n,f,p){super(),this._registry=n,this._languageId=f,this._factory=p,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}get isResolved(){return this._isResolved}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return bE(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return bE(this,void 0,void 0,function*(){const n=yield Promise.resolve(this._factory.createTokenizationSupport());this._isResolved=!0,n&&!this._isDisposed&&this._register(this._registry.register(this._languageId,n))})}}class ae{constructor(n,f,p){this.id=n,this.definition=f,this.description=p,ae._allCodicons.push(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}static getAll(){return ae._allCodicons}}ae._allCodicons=[],ae.add=new ae("add",{fontCharacter:"\\ea60"}),ae.plus=new ae("plus",ae.add.definition),ae.gistNew=new ae("gist-new",ae.add.definition),ae.repoCreate=new ae("repo-create",ae.add.definition),ae.lightbulb=new ae("lightbulb",{fontCharacter:"\\ea61"}),ae.lightBulb=new ae("light-bulb",{fontCharacter:"\\ea61"}),ae.repo=new ae("repo",{fontCharacter:"\\ea62"}),ae.repoDelete=new ae("repo-delete",{fontCharacter:"\\ea62"}),ae.gistFork=new ae("gist-fork",{fontCharacter:"\\ea63"}),ae.repoForked=new ae("repo-forked",{fontCharacter:"\\ea63"}),ae.gitPullRequest=new ae("git-pull-request",{fontCharacter:"\\ea64"}),ae.gitPullRequestAbandoned=new ae("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),ae.recordKeys=new ae("record-keys",{fontCharacter:"\\ea65"}),ae.keyboard=new ae("keyboard",{fontCharacter:"\\ea65"}),ae.tag=new ae("tag",{fontCharacter:"\\ea66"}),ae.tagAdd=new ae("tag-add",{fontCharacter:"\\ea66"}),ae.tagRemove=new ae("tag-remove",{fontCharacter:"\\ea66"}),ae.person=new ae("person",{fontCharacter:"\\ea67"}),ae.personFollow=new ae("person-follow",{fontCharacter:"\\ea67"}),ae.personOutline=new ae("person-outline",{fontCharacter:"\\ea67"}),ae.personFilled=new ae("person-filled",{fontCharacter:"\\ea67"}),ae.gitBranch=new ae("git-branch",{fontCharacter:"\\ea68"}),ae.gitBranchCreate=new ae("git-branch-create",{fontCharacter:"\\ea68"}),ae.gitBranchDelete=new ae("git-branch-delete",{fontCharacter:"\\ea68"}),ae.sourceControl=new ae("source-control",{fontCharacter:"\\ea68"}),ae.mirror=new ae("mirror",{fontCharacter:"\\ea69"}),ae.mirrorPublic=new ae("mirror-public",{fontCharacter:"\\ea69"}),ae.star=new ae("star",{fontCharacter:"\\ea6a"}),ae.starAdd=new ae("star-add",{fontCharacter:"\\ea6a"}),ae.starDelete=new ae("star-delete",{fontCharacter:"\\ea6a"}),ae.starEmpty=new ae("star-empty",{fontCharacter:"\\ea6a"}),ae.comment=new ae("comment",{fontCharacter:"\\ea6b"}),ae.commentAdd=new ae("comment-add",{fontCharacter:"\\ea6b"}),ae.alert=new ae("alert",{fontCharacter:"\\ea6c"}),ae.warning=new ae("warning",{fontCharacter:"\\ea6c"}),ae.search=new ae("search",{fontCharacter:"\\ea6d"}),ae.searchSave=new ae("search-save",{fontCharacter:"\\ea6d"}),ae.logOut=new ae("log-out",{fontCharacter:"\\ea6e"}),ae.signOut=new ae("sign-out",{fontCharacter:"\\ea6e"}),ae.logIn=new ae("log-in",{fontCharacter:"\\ea6f"}),ae.signIn=new ae("sign-in",{fontCharacter:"\\ea6f"}),ae.eye=new ae("eye",{fontCharacter:"\\ea70"}),ae.eyeUnwatch=new ae("eye-unwatch",{fontCharacter:"\\ea70"}),ae.eyeWatch=new ae("eye-watch",{fontCharacter:"\\ea70"}),ae.circleFilled=new ae("circle-filled",{fontCharacter:"\\ea71"}),ae.primitiveDot=new ae("primitive-dot",{fontCharacter:"\\ea71"}),ae.closeDirty=new ae("close-dirty",{fontCharacter:"\\ea71"}),ae.debugBreakpoint=new ae("debug-breakpoint",{fontCharacter:"\\ea71"}),ae.debugBreakpointDisabled=new ae("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),ae.debugHint=new ae("debug-hint",{fontCharacter:"\\ea71"}),ae.primitiveSquare=new ae("primitive-square",{fontCharacter:"\\ea72"}),ae.edit=new ae("edit",{fontCharacter:"\\ea73"}),ae.pencil=new ae("pencil",{fontCharacter:"\\ea73"}),ae.info=new ae("info",{fontCharacter:"\\ea74"}),ae.issueOpened=new ae("issue-opened",{fontCharacter:"\\ea74"}),ae.gistPrivate=new ae("gist-private",{fontCharacter:"\\ea75"}),ae.gitForkPrivate=new ae("git-fork-private",{fontCharacter:"\\ea75"}),ae.lock=new ae("lock",{fontCharacter:"\\ea75"}),ae.mirrorPrivate=new ae("mirror-private",{fontCharacter:"\\ea75"}),ae.close=new ae("close",{fontCharacter:"\\ea76"}),ae.removeClose=new ae("remove-close",{fontCharacter:"\\ea76"}),ae.x=new ae("x",{fontCharacter:"\\ea76"}),ae.repoSync=new ae("repo-sync",{fontCharacter:"\\ea77"}),ae.sync=new ae("sync",{fontCharacter:"\\ea77"}),ae.clone=new ae("clone",{fontCharacter:"\\ea78"}),ae.desktopDownload=new ae("desktop-download",{fontCharacter:"\\ea78"}),ae.beaker=new ae("beaker",{fontCharacter:"\\ea79"}),ae.microscope=new ae("microscope",{fontCharacter:"\\ea79"}),ae.vm=new ae("vm",{fontCharacter:"\\ea7a"}),ae.deviceDesktop=new ae("device-desktop",{fontCharacter:"\\ea7a"}),ae.file=new ae("file",{fontCharacter:"\\ea7b"}),ae.fileText=new ae("file-text",{fontCharacter:"\\ea7b"}),ae.more=new ae("more",{fontCharacter:"\\ea7c"}),ae.ellipsis=new ae("ellipsis",{fontCharacter:"\\ea7c"}),ae.kebabHorizontal=new ae("kebab-horizontal",{fontCharacter:"\\ea7c"}),ae.mailReply=new ae("mail-reply",{fontCharacter:"\\ea7d"}),ae.reply=new ae("reply",{fontCharacter:"\\ea7d"}),ae.organization=new ae("organization",{fontCharacter:"\\ea7e"}),ae.organizationFilled=new ae("organization-filled",{fontCharacter:"\\ea7e"}),ae.organizationOutline=new ae("organization-outline",{fontCharacter:"\\ea7e"}),ae.newFile=new ae("new-file",{fontCharacter:"\\ea7f"}),ae.fileAdd=new ae("file-add",{fontCharacter:"\\ea7f"}),ae.newFolder=new ae("new-folder",{fontCharacter:"\\ea80"}),ae.fileDirectoryCreate=new ae("file-directory-create",{fontCharacter:"\\ea80"}),ae.trash=new ae("trash",{fontCharacter:"\\ea81"}),ae.trashcan=new ae("trashcan",{fontCharacter:"\\ea81"}),ae.history=new ae("history",{fontCharacter:"\\ea82"}),ae.clock=new ae("clock",{fontCharacter:"\\ea82"}),ae.folder=new ae("folder",{fontCharacter:"\\ea83"}),ae.fileDirectory=new ae("file-directory",{fontCharacter:"\\ea83"}),ae.symbolFolder=new ae("symbol-folder",{fontCharacter:"\\ea83"}),ae.logoGithub=new ae("logo-github",{fontCharacter:"\\ea84"}),ae.markGithub=new ae("mark-github",{fontCharacter:"\\ea84"}),ae.github=new ae("github",{fontCharacter:"\\ea84"}),ae.terminal=new ae("terminal",{fontCharacter:"\\ea85"}),ae.console=new ae("console",{fontCharacter:"\\ea85"}),ae.repl=new ae("repl",{fontCharacter:"\\ea85"}),ae.zap=new ae("zap",{fontCharacter:"\\ea86"}),ae.symbolEvent=new ae("symbol-event",{fontCharacter:"\\ea86"}),ae.error=new ae("error",{fontCharacter:"\\ea87"}),ae.stop=new ae("stop",{fontCharacter:"\\ea87"}),ae.variable=new ae("variable",{fontCharacter:"\\ea88"}),ae.symbolVariable=new ae("symbol-variable",{fontCharacter:"\\ea88"}),ae.array=new ae("array",{fontCharacter:"\\ea8a"}),ae.symbolArray=new ae("symbol-array",{fontCharacter:"\\ea8a"}),ae.symbolModule=new ae("symbol-module",{fontCharacter:"\\ea8b"}),ae.symbolPackage=new ae("symbol-package",{fontCharacter:"\\ea8b"}),ae.symbolNamespace=new ae("symbol-namespace",{fontCharacter:"\\ea8b"}),ae.symbolObject=new ae("symbol-object",{fontCharacter:"\\ea8b"}),ae.symbolMethod=new ae("symbol-method",{fontCharacter:"\\ea8c"}),ae.symbolFunction=new ae("symbol-function",{fontCharacter:"\\ea8c"}),ae.symbolConstructor=new ae("symbol-constructor",{fontCharacter:"\\ea8c"}),ae.symbolBoolean=new ae("symbol-boolean",{fontCharacter:"\\ea8f"}),ae.symbolNull=new ae("symbol-null",{fontCharacter:"\\ea8f"}),ae.symbolNumeric=new ae("symbol-numeric",{fontCharacter:"\\ea90"}),ae.symbolNumber=new ae("symbol-number",{fontCharacter:"\\ea90"}),ae.symbolStructure=new ae("symbol-structure",{fontCharacter:"\\ea91"}),ae.symbolStruct=new ae("symbol-struct",{fontCharacter:"\\ea91"}),ae.symbolParameter=new ae("symbol-parameter",{fontCharacter:"\\ea92"}),ae.symbolTypeParameter=new ae("symbol-type-parameter",{fontCharacter:"\\ea92"}),ae.symbolKey=new ae("symbol-key",{fontCharacter:"\\ea93"}),ae.symbolText=new ae("symbol-text",{fontCharacter:"\\ea93"}),ae.symbolReference=new ae("symbol-reference",{fontCharacter:"\\ea94"}),ae.goToFile=new ae("go-to-file",{fontCharacter:"\\ea94"}),ae.symbolEnum=new ae("symbol-enum",{fontCharacter:"\\ea95"}),ae.symbolValue=new ae("symbol-value",{fontCharacter:"\\ea95"}),ae.symbolRuler=new ae("symbol-ruler",{fontCharacter:"\\ea96"}),ae.symbolUnit=new ae("symbol-unit",{fontCharacter:"\\ea96"}),ae.activateBreakpoints=new ae("activate-breakpoints",{fontCharacter:"\\ea97"}),ae.archive=new ae("archive",{fontCharacter:"\\ea98"}),ae.arrowBoth=new ae("arrow-both",{fontCharacter:"\\ea99"}),ae.arrowDown=new ae("arrow-down",{fontCharacter:"\\ea9a"}),ae.arrowLeft=new ae("arrow-left",{fontCharacter:"\\ea9b"}),ae.arrowRight=new ae("arrow-right",{fontCharacter:"\\ea9c"}),ae.arrowSmallDown=new ae("arrow-small-down",{fontCharacter:"\\ea9d"}),ae.arrowSmallLeft=new ae("arrow-small-left",{fontCharacter:"\\ea9e"}),ae.arrowSmallRight=new ae("arrow-small-right",{fontCharacter:"\\ea9f"}),ae.arrowSmallUp=new ae("arrow-small-up",{fontCharacter:"\\eaa0"}),ae.arrowUp=new ae("arrow-up",{fontCharacter:"\\eaa1"}),ae.bell=new ae("bell",{fontCharacter:"\\eaa2"}),ae.bold=new ae("bold",{fontCharacter:"\\eaa3"}),ae.book=new ae("book",{fontCharacter:"\\eaa4"}),ae.bookmark=new ae("bookmark",{fontCharacter:"\\eaa5"}),ae.debugBreakpointConditionalUnverified=new ae("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),ae.debugBreakpointConditional=new ae("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),ae.debugBreakpointConditionalDisabled=new ae("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),ae.debugBreakpointDataUnverified=new ae("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),ae.debugBreakpointData=new ae("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),ae.debugBreakpointDataDisabled=new ae("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),ae.debugBreakpointLogUnverified=new ae("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),ae.debugBreakpointLog=new ae("debug-breakpoint-log",{fontCharacter:"\\eaab"}),ae.debugBreakpointLogDisabled=new ae("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),ae.briefcase=new ae("briefcase",{fontCharacter:"\\eaac"}),ae.broadcast=new ae("broadcast",{fontCharacter:"\\eaad"}),ae.browser=new ae("browser",{fontCharacter:"\\eaae"}),ae.bug=new ae("bug",{fontCharacter:"\\eaaf"}),ae.calendar=new ae("calendar",{fontCharacter:"\\eab0"}),ae.caseSensitive=new ae("case-sensitive",{fontCharacter:"\\eab1"}),ae.check=new ae("check",{fontCharacter:"\\eab2"}),ae.checklist=new ae("checklist",{fontCharacter:"\\eab3"}),ae.chevronDown=new ae("chevron-down",{fontCharacter:"\\eab4"}),ae.dropDownButton=new ae("drop-down-button",ae.chevronDown.definition),ae.chevronLeft=new ae("chevron-left",{fontCharacter:"\\eab5"}),ae.chevronRight=new ae("chevron-right",{fontCharacter:"\\eab6"}),ae.chevronUp=new ae("chevron-up",{fontCharacter:"\\eab7"}),ae.chromeClose=new ae("chrome-close",{fontCharacter:"\\eab8"}),ae.chromeMaximize=new ae("chrome-maximize",{fontCharacter:"\\eab9"}),ae.chromeMinimize=new ae("chrome-minimize",{fontCharacter:"\\eaba"}),ae.chromeRestore=new ae("chrome-restore",{fontCharacter:"\\eabb"}),ae.circleOutline=new ae("circle-outline",{fontCharacter:"\\eabc"}),ae.debugBreakpointUnverified=new ae("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),ae.circleSlash=new ae("circle-slash",{fontCharacter:"\\eabd"}),ae.circuitBoard=new ae("circuit-board",{fontCharacter:"\\eabe"}),ae.clearAll=new ae("clear-all",{fontCharacter:"\\eabf"}),ae.clippy=new ae("clippy",{fontCharacter:"\\eac0"}),ae.closeAll=new ae("close-all",{fontCharacter:"\\eac1"}),ae.cloudDownload=new ae("cloud-download",{fontCharacter:"\\eac2"}),ae.cloudUpload=new ae("cloud-upload",{fontCharacter:"\\eac3"}),ae.code=new ae("code",{fontCharacter:"\\eac4"}),ae.collapseAll=new ae("collapse-all",{fontCharacter:"\\eac5"}),ae.colorMode=new ae("color-mode",{fontCharacter:"\\eac6"}),ae.commentDiscussion=new ae("comment-discussion",{fontCharacter:"\\eac7"}),ae.compareChanges=new ae("compare-changes",{fontCharacter:"\\eafd"}),ae.creditCard=new ae("credit-card",{fontCharacter:"\\eac9"}),ae.dash=new ae("dash",{fontCharacter:"\\eacc"}),ae.dashboard=new ae("dashboard",{fontCharacter:"\\eacd"}),ae.database=new ae("database",{fontCharacter:"\\eace"}),ae.debugContinue=new ae("debug-continue",{fontCharacter:"\\eacf"}),ae.debugDisconnect=new ae("debug-disconnect",{fontCharacter:"\\ead0"}),ae.debugPause=new ae("debug-pause",{fontCharacter:"\\ead1"}),ae.debugRestart=new ae("debug-restart",{fontCharacter:"\\ead2"}),ae.debugStart=new ae("debug-start",{fontCharacter:"\\ead3"}),ae.debugStepInto=new ae("debug-step-into",{fontCharacter:"\\ead4"}),ae.debugStepOut=new ae("debug-step-out",{fontCharacter:"\\ead5"}),ae.debugStepOver=new ae("debug-step-over",{fontCharacter:"\\ead6"}),ae.debugStop=new ae("debug-stop",{fontCharacter:"\\ead7"}),ae.debug=new ae("debug",{fontCharacter:"\\ead8"}),ae.deviceCameraVideo=new ae("device-camera-video",{fontCharacter:"\\ead9"}),ae.deviceCamera=new ae("device-camera",{fontCharacter:"\\eada"}),ae.deviceMobile=new ae("device-mobile",{fontCharacter:"\\eadb"}),ae.diffAdded=new ae("diff-added",{fontCharacter:"\\eadc"}),ae.diffIgnored=new ae("diff-ignored",{fontCharacter:"\\eadd"}),ae.diffModified=new ae("diff-modified",{fontCharacter:"\\eade"}),ae.diffRemoved=new ae("diff-removed",{fontCharacter:"\\eadf"}),ae.diffRenamed=new ae("diff-renamed",{fontCharacter:"\\eae0"}),ae.diff=new ae("diff",{fontCharacter:"\\eae1"}),ae.discard=new ae("discard",{fontCharacter:"\\eae2"}),ae.editorLayout=new ae("editor-layout",{fontCharacter:"\\eae3"}),ae.emptyWindow=new ae("empty-window",{fontCharacter:"\\eae4"}),ae.exclude=new ae("exclude",{fontCharacter:"\\eae5"}),ae.extensions=new ae("extensions",{fontCharacter:"\\eae6"}),ae.eyeClosed=new ae("eye-closed",{fontCharacter:"\\eae7"}),ae.fileBinary=new ae("file-binary",{fontCharacter:"\\eae8"}),ae.fileCode=new ae("file-code",{fontCharacter:"\\eae9"}),ae.fileMedia=new ae("file-media",{fontCharacter:"\\eaea"}),ae.filePdf=new ae("file-pdf",{fontCharacter:"\\eaeb"}),ae.fileSubmodule=new ae("file-submodule",{fontCharacter:"\\eaec"}),ae.fileSymlinkDirectory=new ae("file-symlink-directory",{fontCharacter:"\\eaed"}),ae.fileSymlinkFile=new ae("file-symlink-file",{fontCharacter:"\\eaee"}),ae.fileZip=new ae("file-zip",{fontCharacter:"\\eaef"}),ae.files=new ae("files",{fontCharacter:"\\eaf0"}),ae.filter=new ae("filter",{fontCharacter:"\\eaf1"}),ae.flame=new ae("flame",{fontCharacter:"\\eaf2"}),ae.foldDown=new ae("fold-down",{fontCharacter:"\\eaf3"}),ae.foldUp=new ae("fold-up",{fontCharacter:"\\eaf4"}),ae.fold=new ae("fold",{fontCharacter:"\\eaf5"}),ae.folderActive=new ae("folder-active",{fontCharacter:"\\eaf6"}),ae.folderOpened=new ae("folder-opened",{fontCharacter:"\\eaf7"}),ae.gear=new ae("gear",{fontCharacter:"\\eaf8"}),ae.gift=new ae("gift",{fontCharacter:"\\eaf9"}),ae.gistSecret=new ae("gist-secret",{fontCharacter:"\\eafa"}),ae.gist=new ae("gist",{fontCharacter:"\\eafb"}),ae.gitCommit=new ae("git-commit",{fontCharacter:"\\eafc"}),ae.gitCompare=new ae("git-compare",{fontCharacter:"\\eafd"}),ae.gitMerge=new ae("git-merge",{fontCharacter:"\\eafe"}),ae.githubAction=new ae("github-action",{fontCharacter:"\\eaff"}),ae.githubAlt=new ae("github-alt",{fontCharacter:"\\eb00"}),ae.globe=new ae("globe",{fontCharacter:"\\eb01"}),ae.grabber=new ae("grabber",{fontCharacter:"\\eb02"}),ae.graph=new ae("graph",{fontCharacter:"\\eb03"}),ae.gripper=new ae("gripper",{fontCharacter:"\\eb04"}),ae.heart=new ae("heart",{fontCharacter:"\\eb05"}),ae.home=new ae("home",{fontCharacter:"\\eb06"}),ae.horizontalRule=new ae("horizontal-rule",{fontCharacter:"\\eb07"}),ae.hubot=new ae("hubot",{fontCharacter:"\\eb08"}),ae.inbox=new ae("inbox",{fontCharacter:"\\eb09"}),ae.issueClosed=new ae("issue-closed",{fontCharacter:"\\eba4"}),ae.issueReopened=new ae("issue-reopened",{fontCharacter:"\\eb0b"}),ae.issues=new ae("issues",{fontCharacter:"\\eb0c"}),ae.italic=new ae("italic",{fontCharacter:"\\eb0d"}),ae.jersey=new ae("jersey",{fontCharacter:"\\eb0e"}),ae.json=new ae("json",{fontCharacter:"\\eb0f"}),ae.kebabVertical=new ae("kebab-vertical",{fontCharacter:"\\eb10"}),ae.key=new ae("key",{fontCharacter:"\\eb11"}),ae.law=new ae("law",{fontCharacter:"\\eb12"}),ae.lightbulbAutofix=new ae("lightbulb-autofix",{fontCharacter:"\\eb13"}),ae.linkExternal=new ae("link-external",{fontCharacter:"\\eb14"}),ae.link=new ae("link",{fontCharacter:"\\eb15"}),ae.listOrdered=new ae("list-ordered",{fontCharacter:"\\eb16"}),ae.listUnordered=new ae("list-unordered",{fontCharacter:"\\eb17"}),ae.liveShare=new ae("live-share",{fontCharacter:"\\eb18"}),ae.loading=new ae("loading",{fontCharacter:"\\eb19"}),ae.location=new ae("location",{fontCharacter:"\\eb1a"}),ae.mailRead=new ae("mail-read",{fontCharacter:"\\eb1b"}),ae.mail=new ae("mail",{fontCharacter:"\\eb1c"}),ae.markdown=new ae("markdown",{fontCharacter:"\\eb1d"}),ae.megaphone=new ae("megaphone",{fontCharacter:"\\eb1e"}),ae.mention=new ae("mention",{fontCharacter:"\\eb1f"}),ae.milestone=new ae("milestone",{fontCharacter:"\\eb20"}),ae.mortarBoard=new ae("mortar-board",{fontCharacter:"\\eb21"}),ae.move=new ae("move",{fontCharacter:"\\eb22"}),ae.multipleWindows=new ae("multiple-windows",{fontCharacter:"\\eb23"}),ae.mute=new ae("mute",{fontCharacter:"\\eb24"}),ae.noNewline=new ae("no-newline",{fontCharacter:"\\eb25"}),ae.note=new ae("note",{fontCharacter:"\\eb26"}),ae.octoface=new ae("octoface",{fontCharacter:"\\eb27"}),ae.openPreview=new ae("open-preview",{fontCharacter:"\\eb28"}),ae.package_=new ae("package",{fontCharacter:"\\eb29"}),ae.paintcan=new ae("paintcan",{fontCharacter:"\\eb2a"}),ae.pin=new ae("pin",{fontCharacter:"\\eb2b"}),ae.play=new ae("play",{fontCharacter:"\\eb2c"}),ae.run=new ae("run",{fontCharacter:"\\eb2c"}),ae.plug=new ae("plug",{fontCharacter:"\\eb2d"}),ae.preserveCase=new ae("preserve-case",{fontCharacter:"\\eb2e"}),ae.preview=new ae("preview",{fontCharacter:"\\eb2f"}),ae.project=new ae("project",{fontCharacter:"\\eb30"}),ae.pulse=new ae("pulse",{fontCharacter:"\\eb31"}),ae.question=new ae("question",{fontCharacter:"\\eb32"}),ae.quote=new ae("quote",{fontCharacter:"\\eb33"}),ae.radioTower=new ae("radio-tower",{fontCharacter:"\\eb34"}),ae.reactions=new ae("reactions",{fontCharacter:"\\eb35"}),ae.references=new ae("references",{fontCharacter:"\\eb36"}),ae.refresh=new ae("refresh",{fontCharacter:"\\eb37"}),ae.regex=new ae("regex",{fontCharacter:"\\eb38"}),ae.remoteExplorer=new ae("remote-explorer",{fontCharacter:"\\eb39"}),ae.remote=new ae("remote",{fontCharacter:"\\eb3a"}),ae.remove=new ae("remove",{fontCharacter:"\\eb3b"}),ae.replaceAll=new ae("replace-all",{fontCharacter:"\\eb3c"}),ae.replace=new ae("replace",{fontCharacter:"\\eb3d"}),ae.repoClone=new ae("repo-clone",{fontCharacter:"\\eb3e"}),ae.repoForcePush=new ae("repo-force-push",{fontCharacter:"\\eb3f"}),ae.repoPull=new ae("repo-pull",{fontCharacter:"\\eb40"}),ae.repoPush=new ae("repo-push",{fontCharacter:"\\eb41"}),ae.report=new ae("report",{fontCharacter:"\\eb42"}),ae.requestChanges=new ae("request-changes",{fontCharacter:"\\eb43"}),ae.rocket=new ae("rocket",{fontCharacter:"\\eb44"}),ae.rootFolderOpened=new ae("root-folder-opened",{fontCharacter:"\\eb45"}),ae.rootFolder=new ae("root-folder",{fontCharacter:"\\eb46"}),ae.rss=new ae("rss",{fontCharacter:"\\eb47"}),ae.ruby=new ae("ruby",{fontCharacter:"\\eb48"}),ae.saveAll=new ae("save-all",{fontCharacter:"\\eb49"}),ae.saveAs=new ae("save-as",{fontCharacter:"\\eb4a"}),ae.save=new ae("save",{fontCharacter:"\\eb4b"}),ae.screenFull=new ae("screen-full",{fontCharacter:"\\eb4c"}),ae.screenNormal=new ae("screen-normal",{fontCharacter:"\\eb4d"}),ae.searchStop=new ae("search-stop",{fontCharacter:"\\eb4e"}),ae.server=new ae("server",{fontCharacter:"\\eb50"}),ae.settingsGear=new ae("settings-gear",{fontCharacter:"\\eb51"}),ae.settings=new ae("settings",{fontCharacter:"\\eb52"}),ae.shield=new ae("shield",{fontCharacter:"\\eb53"}),ae.smiley=new ae("smiley",{fontCharacter:"\\eb54"}),ae.sortPrecedence=new ae("sort-precedence",{fontCharacter:"\\eb55"}),ae.splitHorizontal=new ae("split-horizontal",{fontCharacter:"\\eb56"}),ae.splitVertical=new ae("split-vertical",{fontCharacter:"\\eb57"}),ae.squirrel=new ae("squirrel",{fontCharacter:"\\eb58"}),ae.starFull=new ae("star-full",{fontCharacter:"\\eb59"}),ae.starHalf=new ae("star-half",{fontCharacter:"\\eb5a"}),ae.symbolClass=new ae("symbol-class",{fontCharacter:"\\eb5b"}),ae.symbolColor=new ae("symbol-color",{fontCharacter:"\\eb5c"}),ae.symbolCustomColor=new ae("symbol-customcolor",{fontCharacter:"\\eb5c"}),ae.symbolConstant=new ae("symbol-constant",{fontCharacter:"\\eb5d"}),ae.symbolEnumMember=new ae("symbol-enum-member",{fontCharacter:"\\eb5e"}),ae.symbolField=new ae("symbol-field",{fontCharacter:"\\eb5f"}),ae.symbolFile=new ae("symbol-file",{fontCharacter:"\\eb60"}),ae.symbolInterface=new ae("symbol-interface",{fontCharacter:"\\eb61"}),ae.symbolKeyword=new ae("symbol-keyword",{fontCharacter:"\\eb62"}),ae.symbolMisc=new ae("symbol-misc",{fontCharacter:"\\eb63"}),ae.symbolOperator=new ae("symbol-operator",{fontCharacter:"\\eb64"}),ae.symbolProperty=new ae("symbol-property",{fontCharacter:"\\eb65"}),ae.wrench=new ae("wrench",{fontCharacter:"\\eb65"}),ae.wrenchSubaction=new ae("wrench-subaction",{fontCharacter:"\\eb65"}),ae.symbolSnippet=new ae("symbol-snippet",{fontCharacter:"\\eb66"}),ae.tasklist=new ae("tasklist",{fontCharacter:"\\eb67"}),ae.telescope=new ae("telescope",{fontCharacter:"\\eb68"}),ae.textSize=new ae("text-size",{fontCharacter:"\\eb69"}),ae.threeBars=new ae("three-bars",{fontCharacter:"\\eb6a"}),ae.thumbsdown=new ae("thumbsdown",{fontCharacter:"\\eb6b"}),ae.thumbsup=new ae("thumbsup",{fontCharacter:"\\eb6c"}),ae.tools=new ae("tools",{fontCharacter:"\\eb6d"}),ae.triangleDown=new ae("triangle-down",{fontCharacter:"\\eb6e"}),ae.triangleLeft=new ae("triangle-left",{fontCharacter:"\\eb6f"}),ae.triangleRight=new ae("triangle-right",{fontCharacter:"\\eb70"}),ae.triangleUp=new ae("triangle-up",{fontCharacter:"\\eb71"}),ae.twitter=new ae("twitter",{fontCharacter:"\\eb72"}),ae.unfold=new ae("unfold",{fontCharacter:"\\eb73"}),ae.unlock=new ae("unlock",{fontCharacter:"\\eb74"}),ae.unmute=new ae("unmute",{fontCharacter:"\\eb75"}),ae.unverified=new ae("unverified",{fontCharacter:"\\eb76"}),ae.verified=new ae("verified",{fontCharacter:"\\eb77"}),ae.versions=new ae("versions",{fontCharacter:"\\eb78"}),ae.vmActive=new ae("vm-active",{fontCharacter:"\\eb79"}),ae.vmOutline=new ae("vm-outline",{fontCharacter:"\\eb7a"}),ae.vmRunning=new ae("vm-running",{fontCharacter:"\\eb7b"}),ae.watch=new ae("watch",{fontCharacter:"\\eb7c"}),ae.whitespace=new ae("whitespace",{fontCharacter:"\\eb7d"}),ae.wholeWord=new ae("whole-word",{fontCharacter:"\\eb7e"}),ae.window=new ae("window",{fontCharacter:"\\eb7f"}),ae.wordWrap=new ae("word-wrap",{fontCharacter:"\\eb80"}),ae.zoomIn=new ae("zoom-in",{fontCharacter:"\\eb81"}),ae.zoomOut=new ae("zoom-out",{fontCharacter:"\\eb82"}),ae.listFilter=new ae("list-filter",{fontCharacter:"\\eb83"}),ae.listFlat=new ae("list-flat",{fontCharacter:"\\eb84"}),ae.listSelection=new ae("list-selection",{fontCharacter:"\\eb85"}),ae.selection=new ae("selection",{fontCharacter:"\\eb85"}),ae.listTree=new ae("list-tree",{fontCharacter:"\\eb86"}),ae.debugBreakpointFunctionUnverified=new ae("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),ae.debugBreakpointFunction=new ae("debug-breakpoint-function",{fontCharacter:"\\eb88"}),ae.debugBreakpointFunctionDisabled=new ae("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),ae.debugStackframeActive=new ae("debug-stackframe-active",{fontCharacter:"\\eb89"}),ae.debugStackframeDot=new ae("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),ae.debugStackframe=new ae("debug-stackframe",{fontCharacter:"\\eb8b"}),ae.debugStackframeFocused=new ae("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),ae.debugBreakpointUnsupported=new ae("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),ae.symbolString=new ae("symbol-string",{fontCharacter:"\\eb8d"}),ae.debugReverseContinue=new ae("debug-reverse-continue",{fontCharacter:"\\eb8e"}),ae.debugStepBack=new ae("debug-step-back",{fontCharacter:"\\eb8f"}),ae.debugRestartFrame=new ae("debug-restart-frame",{fontCharacter:"\\eb90"}),ae.callIncoming=new ae("call-incoming",{fontCharacter:"\\eb92"}),ae.callOutgoing=new ae("call-outgoing",{fontCharacter:"\\eb93"}),ae.menu=new ae("menu",{fontCharacter:"\\eb94"}),ae.expandAll=new ae("expand-all",{fontCharacter:"\\eb95"}),ae.feedback=new ae("feedback",{fontCharacter:"\\eb96"}),ae.groupByRefType=new ae("group-by-ref-type",{fontCharacter:"\\eb97"}),ae.ungroupByRefType=new ae("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),ae.account=new ae("account",{fontCharacter:"\\eb99"}),ae.bellDot=new ae("bell-dot",{fontCharacter:"\\eb9a"}),ae.debugConsole=new ae("debug-console",{fontCharacter:"\\eb9b"}),ae.library=new ae("library",{fontCharacter:"\\eb9c"}),ae.output=new ae("output",{fontCharacter:"\\eb9d"}),ae.runAll=new ae("run-all",{fontCharacter:"\\eb9e"}),ae.syncIgnored=new ae("sync-ignored",{fontCharacter:"\\eb9f"}),ae.pinned=new ae("pinned",{fontCharacter:"\\eba0"}),ae.githubInverted=new ae("github-inverted",{fontCharacter:"\\eba1"}),ae.debugAlt=new ae("debug-alt",{fontCharacter:"\\eb91"}),ae.serverProcess=new ae("server-process",{fontCharacter:"\\eba2"}),ae.serverEnvironment=new ae("server-environment",{fontCharacter:"\\eba3"}),ae.pass=new ae("pass",{fontCharacter:"\\eba4"}),ae.stopCircle=new ae("stop-circle",{fontCharacter:"\\eba5"}),ae.playCircle=new ae("play-circle",{fontCharacter:"\\eba6"}),ae.record=new ae("record",{fontCharacter:"\\eba7"}),ae.debugAltSmall=new ae("debug-alt-small",{fontCharacter:"\\eba8"}),ae.vmConnect=new ae("vm-connect",{fontCharacter:"\\eba9"}),ae.cloud=new ae("cloud",{fontCharacter:"\\ebaa"}),ae.merge=new ae("merge",{fontCharacter:"\\ebab"}),ae.exportIcon=new ae("export",{fontCharacter:"\\ebac"}),ae.graphLeft=new ae("graph-left",{fontCharacter:"\\ebad"}),ae.magnet=new ae("magnet",{fontCharacter:"\\ebae"}),ae.notebook=new ae("notebook",{fontCharacter:"\\ebaf"}),ae.redo=new ae("redo",{fontCharacter:"\\ebb0"}),ae.checkAll=new ae("check-all",{fontCharacter:"\\ebb1"}),ae.pinnedDirty=new ae("pinned-dirty",{fontCharacter:"\\ebb2"}),ae.passFilled=new ae("pass-filled",{fontCharacter:"\\ebb3"}),ae.circleLargeFilled=new ae("circle-large-filled",{fontCharacter:"\\ebb4"}),ae.circleLargeOutline=new ae("circle-large-outline",{fontCharacter:"\\ebb5"}),ae.combine=new ae("combine",{fontCharacter:"\\ebb6"}),ae.gather=new ae("gather",{fontCharacter:"\\ebb6"}),ae.table=new ae("table",{fontCharacter:"\\ebb7"}),ae.variableGroup=new ae("variable-group",{fontCharacter:"\\ebb8"}),ae.typeHierarchy=new ae("type-hierarchy",{fontCharacter:"\\ebb9"}),ae.typeHierarchySub=new ae("type-hierarchy-sub",{fontCharacter:"\\ebba"}),ae.typeHierarchySuper=new ae("type-hierarchy-super",{fontCharacter:"\\ebbb"}),ae.gitPullRequestCreate=new ae("git-pull-request-create",{fontCharacter:"\\ebbc"}),ae.runAbove=new ae("run-above",{fontCharacter:"\\ebbd"}),ae.runBelow=new ae("run-below",{fontCharacter:"\\ebbe"}),ae.notebookTemplate=new ae("notebook-template",{fontCharacter:"\\ebbf"}),ae.debugRerun=new ae("debug-rerun",{fontCharacter:"\\ebc0"}),ae.workspaceTrusted=new ae("workspace-trusted",{fontCharacter:"\\ebc1"}),ae.workspaceUntrusted=new ae("workspace-untrusted",{fontCharacter:"\\ebc2"}),ae.workspaceUnspecified=new ae("workspace-unspecified",{fontCharacter:"\\ebc3"}),ae.terminalCmd=new ae("terminal-cmd",{fontCharacter:"\\ebc4"}),ae.terminalDebian=new ae("terminal-debian",{fontCharacter:"\\ebc5"}),ae.terminalLinux=new ae("terminal-linux",{fontCharacter:"\\ebc6"}),ae.terminalPowershell=new ae("terminal-powershell",{fontCharacter:"\\ebc7"}),ae.terminalTmux=new ae("terminal-tmux",{fontCharacter:"\\ebc8"}),ae.terminalUbuntu=new ae("terminal-ubuntu",{fontCharacter:"\\ebc9"}),ae.terminalBash=new ae("terminal-bash",{fontCharacter:"\\ebca"}),ae.arrowSwap=new ae("arrow-swap",{fontCharacter:"\\ebcb"}),ae.copy=new ae("copy",{fontCharacter:"\\ebcc"}),ae.personAdd=new ae("person-add",{fontCharacter:"\\ebcd"}),ae.filterFilled=new ae("filter-filled",{fontCharacter:"\\ebce"}),ae.wand=new ae("wand",{fontCharacter:"\\ebcf"}),ae.debugLineByLine=new ae("debug-line-by-line",{fontCharacter:"\\ebd0"}),ae.inspect=new ae("inspect",{fontCharacter:"\\ebd1"}),ae.layers=new ae("layers",{fontCharacter:"\\ebd2"}),ae.layersDot=new ae("layers-dot",{fontCharacter:"\\ebd3"}),ae.layersActive=new ae("layers-active",{fontCharacter:"\\ebd4"}),ae.compass=new ae("compass",{fontCharacter:"\\ebd5"}),ae.compassDot=new ae("compass-dot",{fontCharacter:"\\ebd6"}),ae.compassActive=new ae("compass-active",{fontCharacter:"\\ebd7"}),ae.azure=new ae("azure",{fontCharacter:"\\ebd8"}),ae.issueDraft=new ae("issue-draft",{fontCharacter:"\\ebd9"}),ae.gitPullRequestClosed=new ae("git-pull-request-closed",{fontCharacter:"\\ebda"}),ae.gitPullRequestDraft=new ae("git-pull-request-draft",{fontCharacter:"\\ebdb"}),ae.debugAll=new ae("debug-all",{fontCharacter:"\\ebdc"}),ae.debugCoverage=new ae("debug-coverage",{fontCharacter:"\\ebdd"}),ae.runErrors=new ae("run-errors",{fontCharacter:"\\ebde"}),ae.folderLibrary=new ae("folder-library",{fontCharacter:"\\ebdf"}),ae.debugContinueSmall=new ae("debug-continue-small",{fontCharacter:"\\ebe0"}),ae.beakerStop=new ae("beaker-stop",{fontCharacter:"\\ebe1"}),ae.graphLine=new ae("graph-line",{fontCharacter:"\\ebe2"}),ae.graphScatter=new ae("graph-scatter",{fontCharacter:"\\ebe3"}),ae.pieChart=new ae("pie-chart",{fontCharacter:"\\ebe4"}),ae.bracket=new ae("bracket",ae.json.definition),ae.bracketDot=new ae("bracket-dot",{fontCharacter:"\\ebe5"}),ae.bracketError=new ae("bracket-error",{fontCharacter:"\\ebe6"}),ae.lockSmall=new ae("lock-small",{fontCharacter:"\\ebe7"}),ae.azureDevops=new ae("azure-devops",{fontCharacter:"\\ebe8"}),ae.verifiedFilled=new ae("verified-filled",{fontCharacter:"\\ebe9"}),ae.newLine=new ae("newline",{fontCharacter:"\\ebea"}),ae.layout=new ae("layout",{fontCharacter:"\\ebeb"}),ae.layoutActivitybarLeft=new ae("layout-activitybar-left",{fontCharacter:"\\ebec"}),ae.layoutActivitybarRight=new ae("layout-activitybar-right",{fontCharacter:"\\ebed"}),ae.layoutPanelLeft=new ae("layout-panel-left",{fontCharacter:"\\ebee"}),ae.layoutPanelCenter=new ae("layout-panel-center",{fontCharacter:"\\ebef"}),ae.layoutPanelJustify=new ae("layout-panel-justify",{fontCharacter:"\\ebf0"}),ae.layoutPanelRight=new ae("layout-panel-right",{fontCharacter:"\\ebf1"}),ae.layoutPanel=new ae("layout-panel",{fontCharacter:"\\ebf2"}),ae.layoutSidebarLeft=new ae("layout-sidebar-left",{fontCharacter:"\\ebf3"}),ae.layoutSidebarRight=new ae("layout-sidebar-right",{fontCharacter:"\\ebf4"}),ae.layoutStatusbar=new ae("layout-statusbar",{fontCharacter:"\\ebf5"}),ae.layoutMenubar=new ae("layout-menubar",{fontCharacter:"\\ebf6"}),ae.layoutCentered=new ae("layout-centered",{fontCharacter:"\\ebf7"}),ae.target=new ae("target",{fontCharacter:"\\ebf8"}),ae.indent=new ae("indent",{fontCharacter:"\\ebf9"}),ae.recordSmall=new ae("record-small",{fontCharacter:"\\ebfa"}),ae.errorSmall=new ae("error-small",{fontCharacter:"\\ebfb"}),ae.arrowCircleDown=new ae("arrow-circle-down",{fontCharacter:"\\ebfc"}),ae.arrowCircleLeft=new ae("arrow-circle-left",{fontCharacter:"\\ebfd"}),ae.arrowCircleRight=new ae("arrow-circle-right",{fontCharacter:"\\ebfe"}),ae.arrowCircleUp=new ae("arrow-circle-up",{fontCharacter:"\\ebff"}),ae.dialogError=new ae("dialog-error",ae.error.definition),ae.dialogWarning=new ae("dialog-warning",ae.warning.definition),ae.dialogInfo=new ae("dialog-info",ae.info.definition),ae.dialogClose=new ae("dialog-close",ae.close.definition),ae.treeItemExpanded=new ae("tree-item-expanded",ae.chevronDown.definition),ae.treeFilterOnTypeOn=new ae("tree-filter-on-type-on",ae.listFilter.definition),ae.treeFilterOnTypeOff=new ae("tree-filter-on-type-off",ae.listSelection.definition),ae.treeFilterClear=new ae("tree-filter-clear",ae.close.definition),ae.treeItemLoading=new ae("tree-item-loading",ae.loading.definition),ae.menuSelection=new ae("menu-selection",ae.check.definition),ae.menuSubmenu=new ae("menu-submenu",ae.chevronRight.definition),ae.menuBarMore=new ae("menubar-more",ae.more.definition),ae.scrollbarButtonLeft=new ae("scrollbar-button-left",ae.triangleLeft.definition),ae.scrollbarButtonRight=new ae("scrollbar-button-right",ae.triangleRight.definition),ae.scrollbarButtonUp=new ae("scrollbar-button-up",ae.triangleUp.definition),ae.scrollbarButtonDown=new ae("scrollbar-button-down",ae.triangleDown.definition),ae.toolBarMore=new ae("toolbar-more",ae.more.definition),ae.quickInputBack=new ae("quick-input-back",ae.arrowLeft.definition);var fS;(function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const n=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function f(d){if(d instanceof ae)return["codicon","codicon-"+d.id];const k=n.exec(d.id);if(!k)return f(ae.error);let[,J,h]=k;const v=["codicon","codicon-"+J];return h&&v.push("codicon-modifier-"+h.substr(1)),v}e.asClassNameArray=f;function p(d){return f(d).join(" ")}e.asClassName=p;function a(d){return"."+f(d).join(".")}e.asCSSSelector=a})(fS||(fS={}));class ZN{constructor(n,f,p){this._tokenBrand=void 0,this.offset=n,this.type=f,this.language=p}toString(){return"("+this.offset+", "+this.type+")"}}var dS;(function(e){const n=new Map;n.set(0,ae.symbolMethod),n.set(1,ae.symbolFunction),n.set(2,ae.symbolConstructor),n.set(3,ae.symbolField),n.set(4,ae.symbolVariable),n.set(5,ae.symbolClass),n.set(6,ae.symbolStruct),n.set(7,ae.symbolInterface),n.set(8,ae.symbolModule),n.set(9,ae.symbolProperty),n.set(10,ae.symbolEvent),n.set(11,ae.symbolOperator),n.set(12,ae.symbolUnit),n.set(13,ae.symbolValue),n.set(15,ae.symbolEnum),n.set(14,ae.symbolConstant),n.set(15,ae.symbolEnum),n.set(16,ae.symbolEnumMember),n.set(17,ae.symbolKeyword),n.set(27,ae.symbolSnippet),n.set(18,ae.symbolText),n.set(19,ae.symbolColor),n.set(20,ae.symbolFile),n.set(21,ae.symbolReference),n.set(22,ae.symbolCustomColor),n.set(23,ae.symbolFolder),n.set(24,ae.symbolTypeParameter),n.set(25,ae.account),n.set(26,ae.issues);function f(d){let k=n.get(d);return k||(console.info("No codicon found for CompletionItemKind "+d),k=ae.symbolProperty),k}e.toIcon=f;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 a(d,k){let J=p.get(d);return typeof J>"u"&&!k&&(J=9),J}e.fromString=a})(dS||(dS={}));var pS;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(pS||(pS={}));var _S;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(_S||(_S={}));var mS;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(mS||(mS={}));var gS;(function(e){const n=new Map;n.set(0,ae.symbolFile),n.set(1,ae.symbolModule),n.set(2,ae.symbolNamespace),n.set(3,ae.symbolPackage),n.set(4,ae.symbolClass),n.set(5,ae.symbolMethod),n.set(6,ae.symbolProperty),n.set(7,ae.symbolField),n.set(8,ae.symbolConstructor),n.set(9,ae.symbolEnum),n.set(10,ae.symbolInterface),n.set(11,ae.symbolFunction),n.set(12,ae.symbolVariable),n.set(13,ae.symbolConstant),n.set(14,ae.symbolString),n.set(15,ae.symbolNumber),n.set(16,ae.symbolBoolean),n.set(17,ae.symbolArray),n.set(18,ae.symbolObject),n.set(19,ae.symbolKey),n.set(20,ae.symbolNull),n.set(21,ae.symbolEnumMember),n.set(22,ae.symbolStruct),n.set(23,ae.symbolEvent),n.set(24,ae.symbolOperator),n.set(25,ae.symbolTypeParameter);function f(p){let a=n.get(p);return a||(console.info("No codicon found for SymbolKind "+p),a=ae.symbolProperty),a}e.toIcon=f})(gS||(gS={}));var vS;(function(e){function n(f){return!f||typeof f!="object"?!1:typeof f.id=="string"&&typeof f.title=="string"}e.is=n})(vS||(vS={}));var hS;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(hS||(hS={})),new YN;var yS;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(yS||(yS={}));var bS;(function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(bS||(bS={}));var ES;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(ES||(ES={}));var TS;(function(e){e[e.Deprecated=1]="Deprecated"})(TS||(TS={}));var SS;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(SS||(SS={}));var DS;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(DS||(DS={}));var LS;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(LS||(LS={}));var AS;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(AS||(AS={}));var CS;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(CS||(CS={}));var xS;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(xS||(xS={}));var IS;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingDelete=6]="autoClosingDelete",e[e.autoClosingOvertype=7]="autoClosingOvertype",e[e.autoClosingQuotes=8]="autoClosingQuotes",e[e.autoIndent=9]="autoIndent",e[e.automaticLayout=10]="automaticLayout",e[e.autoSurround=11]="autoSurround",e[e.bracketPairColorization=12]="bracketPairColorization",e[e.guides=13]="guides",e[e.codeLens=14]="codeLens",e[e.codeLensFontFamily=15]="codeLensFontFamily",e[e.codeLensFontSize=16]="codeLensFontSize",e[e.colorDecorators=17]="colorDecorators",e[e.columnSelection=18]="columnSelection",e[e.comments=19]="comments",e[e.contextmenu=20]="contextmenu",e[e.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",e[e.cursorBlinking=22]="cursorBlinking",e[e.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",e[e.cursorStyle=24]="cursorStyle",e[e.cursorSurroundingLines=25]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",e[e.cursorWidth=27]="cursorWidth",e[e.disableLayerHinting=28]="disableLayerHinting",e[e.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",e[e.domReadOnly=30]="domReadOnly",e[e.dragAndDrop=31]="dragAndDrop",e[e.emptySelectionClipboard=32]="emptySelectionClipboard",e[e.extraEditorClassName=33]="extraEditorClassName",e[e.fastScrollSensitivity=34]="fastScrollSensitivity",e[e.find=35]="find",e[e.fixedOverflowWidgets=36]="fixedOverflowWidgets",e[e.folding=37]="folding",e[e.foldingStrategy=38]="foldingStrategy",e[e.foldingHighlight=39]="foldingHighlight",e[e.foldingImportsByDefault=40]="foldingImportsByDefault",e[e.foldingMaximumRegions=41]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=42]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=43]="fontFamily",e[e.fontInfo=44]="fontInfo",e[e.fontLigatures=45]="fontLigatures",e[e.fontSize=46]="fontSize",e[e.fontWeight=47]="fontWeight",e[e.formatOnPaste=48]="formatOnPaste",e[e.formatOnType=49]="formatOnType",e[e.glyphMargin=50]="glyphMargin",e[e.gotoLocation=51]="gotoLocation",e[e.hideCursorInOverviewRuler=52]="hideCursorInOverviewRuler",e[e.hover=53]="hover",e[e.inDiffEditor=54]="inDiffEditor",e[e.inlineSuggest=55]="inlineSuggest",e[e.letterSpacing=56]="letterSpacing",e[e.lightbulb=57]="lightbulb",e[e.lineDecorationsWidth=58]="lineDecorationsWidth",e[e.lineHeight=59]="lineHeight",e[e.lineNumbers=60]="lineNumbers",e[e.lineNumbersMinChars=61]="lineNumbersMinChars",e[e.linkedEditing=62]="linkedEditing",e[e.links=63]="links",e[e.matchBrackets=64]="matchBrackets",e[e.minimap=65]="minimap",e[e.mouseStyle=66]="mouseStyle",e[e.mouseWheelScrollSensitivity=67]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=68]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=69]="multiCursorMergeOverlapping",e[e.multiCursorModifier=70]="multiCursorModifier",e[e.multiCursorPaste=71]="multiCursorPaste",e[e.occurrencesHighlight=72]="occurrencesHighlight",e[e.overviewRulerBorder=73]="overviewRulerBorder",e[e.overviewRulerLanes=74]="overviewRulerLanes",e[e.padding=75]="padding",e[e.parameterHints=76]="parameterHints",e[e.peekWidgetDefaultFocus=77]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=78]="definitionLinkOpensInPeek",e[e.quickSuggestions=79]="quickSuggestions",e[e.quickSuggestionsDelay=80]="quickSuggestionsDelay",e[e.readOnly=81]="readOnly",e[e.renameOnType=82]="renameOnType",e[e.renderControlCharacters=83]="renderControlCharacters",e[e.renderFinalNewline=84]="renderFinalNewline",e[e.renderLineHighlight=85]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=86]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=87]="renderValidationDecorations",e[e.renderWhitespace=88]="renderWhitespace",e[e.revealHorizontalRightPadding=89]="revealHorizontalRightPadding",e[e.roundedSelection=90]="roundedSelection",e[e.rulers=91]="rulers",e[e.scrollbar=92]="scrollbar",e[e.scrollBeyondLastColumn=93]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=94]="scrollBeyondLastLine",e[e.scrollPredominantAxis=95]="scrollPredominantAxis",e[e.selectionClipboard=96]="selectionClipboard",e[e.selectionHighlight=97]="selectionHighlight",e[e.selectOnLineNumbers=98]="selectOnLineNumbers",e[e.showFoldingControls=99]="showFoldingControls",e[e.showUnused=100]="showUnused",e[e.snippetSuggestions=101]="snippetSuggestions",e[e.smartSelect=102]="smartSelect",e[e.smoothScrolling=103]="smoothScrolling",e[e.stickyTabStops=104]="stickyTabStops",e[e.stopRenderingLineAfter=105]="stopRenderingLineAfter",e[e.suggest=106]="suggest",e[e.suggestFontSize=107]="suggestFontSize",e[e.suggestLineHeight=108]="suggestLineHeight",e[e.suggestOnTriggerCharacters=109]="suggestOnTriggerCharacters",e[e.suggestSelection=110]="suggestSelection",e[e.tabCompletion=111]="tabCompletion",e[e.tabIndex=112]="tabIndex",e[e.unicodeHighlighting=113]="unicodeHighlighting",e[e.unusualLineTerminators=114]="unusualLineTerminators",e[e.useShadowDOM=115]="useShadowDOM",e[e.useTabStops=116]="useTabStops",e[e.wordSeparators=117]="wordSeparators",e[e.wordWrap=118]="wordWrap",e[e.wordWrapBreakAfterCharacters=119]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=120]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=121]="wordWrapColumn",e[e.wordWrapOverride1=122]="wordWrapOverride1",e[e.wordWrapOverride2=123]="wordWrapOverride2",e[e.wrappingIndent=124]="wrappingIndent",e[e.wrappingStrategy=125]="wrappingStrategy",e[e.showDeprecated=126]="showDeprecated",e[e.inlayHints=127]="inlayHints",e[e.editorClassName=128]="editorClassName",e[e.pixelRatio=129]="pixelRatio",e[e.tabFocusMode=130]="tabFocusMode",e[e.layoutInfo=131]="layoutInfo",e[e.wrappingInfo=132]="wrappingInfo"})(IS||(IS={}));var NS;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(NS||(NS={}));var kS;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(kS||(kS={}));var OS;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(OS||(OS={}));var RS;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(RS||(RS={}));var wS;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(wS||(wS={}));var MS;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(MS||(MS={}));var EE;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.Semicolon=80]="Semicolon",e[e.Equal=81]="Equal",e[e.Comma=82]="Comma",e[e.Minus=83]="Minus",e[e.Period=84]="Period",e[e.Slash=85]="Slash",e[e.Backquote=86]="Backquote",e[e.BracketLeft=87]="BracketLeft",e[e.Backslash=88]="Backslash",e[e.BracketRight=89]="BracketRight",e[e.Quote=90]="Quote",e[e.OEM_8=91]="OEM_8",e[e.IntlBackslash=92]="IntlBackslash",e[e.Numpad0=93]="Numpad0",e[e.Numpad1=94]="Numpad1",e[e.Numpad2=95]="Numpad2",e[e.Numpad3=96]="Numpad3",e[e.Numpad4=97]="Numpad4",e[e.Numpad5=98]="Numpad5",e[e.Numpad6=99]="Numpad6",e[e.Numpad7=100]="Numpad7",e[e.Numpad8=101]="Numpad8",e[e.Numpad9=102]="Numpad9",e[e.NumpadMultiply=103]="NumpadMultiply",e[e.NumpadAdd=104]="NumpadAdd",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=106]="NumpadSubtract",e[e.NumpadDecimal=107]="NumpadDecimal",e[e.NumpadDivide=108]="NumpadDivide",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.AudioVolumeMute=112]="AudioVolumeMute",e[e.AudioVolumeUp=113]="AudioVolumeUp",e[e.AudioVolumeDown=114]="AudioVolumeDown",e[e.BrowserSearch=115]="BrowserSearch",e[e.BrowserHome=116]="BrowserHome",e[e.BrowserBack=117]="BrowserBack",e[e.BrowserForward=118]="BrowserForward",e[e.MediaTrackNext=119]="MediaTrackNext",e[e.MediaTrackPrevious=120]="MediaTrackPrevious",e[e.MediaStop=121]="MediaStop",e[e.MediaPlayPause=122]="MediaPlayPause",e[e.LaunchMediaPlayer=123]="LaunchMediaPlayer",e[e.LaunchMail=124]="LaunchMail",e[e.LaunchApp2=125]="LaunchApp2",e[e.Clear=126]="Clear",e[e.MAX_VALUE=127]="MAX_VALUE"})(EE||(EE={}));var TE;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(TE||(TE={}));var SE;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(SE||(SE={}));var PS;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(PS||(PS={}));var FS;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(FS||(FS={}));var GS;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(GS||(GS={}));var BS;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(BS||(BS={}));var US;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None"})(US||(US={}));var VS;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(VS||(VS={}));var WS;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(WS||(WS={}));var jS;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(jS||(jS={}));var HS;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(HS||(HS={}));var DE;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(DE||(DE={}));var JS;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(JS||(JS={}));var KS;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(KS||(KS={}));var zS;(function(e){e[e.Deprecated=1]="Deprecated"})(zS||(zS={}));var qS;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(qS||(qS={}));var XS;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(XS||(XS={}));var YS;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(YS||(YS={}));var QS;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(QS||(QS={}));class wv{static chord(n,f){return XN(n,f)}}wv.CtrlCmd=2048,wv.Shift=1024,wv.Alt=512,wv.WinCtrl=256;function $N(){return{editor:void 0,languages:void 0,CancellationTokenSource:JN,Emitter:A_,KeyCode:EE,KeyMod:wv,Position:mf,Range:yl,Selection:Qf,SelectionDirection:DE,MarkerSeverity:TE,MarkerTag:SE,Uri:Om,Token:ZN}}var ZS;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(ZS||(ZS={}));var $S;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})($S||($S={}));var eD;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(eD||(eD={}));function ek(e,n,f,p,a){if(p===0)return!0;const d=n.charCodeAt(p-1);if(e.get(d)!==0||d===13||d===10)return!0;if(a>0){const k=n.charCodeAt(p);if(e.get(k)!==0)return!0}return!1}function rk(e,n,f,p,a){if(p+a===f)return!0;const d=n.charCodeAt(p+a);if(e.get(d)!==0||d===13||d===10)return!0;if(a>0){const k=n.charCodeAt(p+a-1);if(e.get(k)!==0)return!0}return!1}function tk(e,n,f,p,a){return ek(e,n,f,p,a)&&rk(e,n,f,p,a)}class nk{constructor(n,f){this._wordSeparators=n,this._searchRegex=f,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(n){this._searchRegex.lastIndex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(n){const f=n.length;let p;do{if(this._prevMatchStartIndex+this._prevMatchLength===f||(p=this._searchRegex.exec(n),!p))return null;const a=p.index,d=p[0].length;if(a===this._prevMatchStartIndex&&d===this._prevMatchLength){if(d===0){tN(n,f,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=a,this._prevMatchLength=d,!this._wordSeparators||tk(this._wordSeparators,n,f,a,d))return p}while(p);return null}}class ak{static computeUnicodeHighlights(n,f,p){const a=p?p.startLineNumber:1,d=p?p.endLineNumber:n.getLineCount(),k=new rD(f),J=k.getCandidateCodePoints();let h;J==="allNonBasicAscii"?h=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):h=new RegExp(`${ik(Array.from(J))}`,"g");const v=new nk(null,h),A=[];let z=!1,ie,b=0,M=0,S=0;e:for(let B=a,H=d;B<=H;B++){const I=n.getLineContent(B),w=I.length;v.reset(0);do if(ie=v.next(I),ie){let x=ie.index,O=ie.index+ie[0].length;if(x>0){const F=I.charCodeAt(x-1);oE(F)&&x--}if(O+1<w){const F=I.charCodeAt(O-1);oE(F)&&O++}const q=I.substring(x,O),Z=pE(x+1,lS,I,0),ne=k.shouldHighlightNonBasicASCII(q,Z?Z.word:null);if(ne!==0){ne===3?b++:ne===2?M++:ne===1?S++:qI();const F=1e3;if(A.length>=F){z=!0;break e}A.push(new yl(B,x+1,B,O+1))}}while(ie)}return{ranges:A,hasMore:z,ambiguousCharacterCount:b,invisibleCharacterCount:M,nonBasicAsciiCharacterCount:S}}static computeUnicodeHighlightReason(n,f){const p=new rD(f);switch(p.shouldHighlightNonBasicASCII(n,null)){case 0:return null;case 2:return{kind:1};case 3:{const d=n.codePointAt(0),k=p.ambiguousCharacters.getPrimaryConfusable(d),J=Id.getLocales().filter(h=>!Id.getInstance(new Set([...f.allowedLocales,h])).isAmbiguous(d));return{kind:0,confusableWith:String.fromCodePoint(k),notAmbiguousInLocales:J}}case 1:return{kind:2}}}}function ik(e,n){return`[${YI(e.map(p=>String.fromCodePoint(p)).join(""))}]`}class rD{constructor(n){this.options=n,this.allowedCodePoints=new Set(n.allowedCodePoints),this.ambiguousCharacters=Id.getInstance(new Set(n.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const n=new Set;if(this.options.invisibleCharacters)for(const f of X_.codePoints)tD(String.fromCodePoint(f))||n.add(f);if(this.options.ambiguousCharacters)for(const f of this.ambiguousCharacters.getConfusableCodePoints())n.add(f);for(const f of this.allowedCodePoints)n.delete(f);return n}shouldHighlightNonBasicASCII(n,f){const p=n.codePointAt(0);if(this.allowedCodePoints.has(p))return 0;if(this.options.nonBasicASCII)return 1;let a=!1,d=!1;if(f)for(let k of f){const J=k.codePointAt(0),h=aN(k);a=a||h,!h&&!this.ambiguousCharacters.isAmbiguous(J)&&!X_.isInvisibleCharacter(J)&&(d=!0)}return!a&&d?0:this.options.invisibleCharacters&&!tD(n)&&X_.isInvisibleCharacter(p)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(p)?3:0}}function tD(e){return e===" "||e===`
  5. `||e===" "}var Rm=function(e,n,f,p){function a(d){return d instanceof f?d:new f(function(k){k(d)})}return new(f||(f=Promise))(function(d,k){function J(A){try{v(p.next(A))}catch(z){k(z)}}function h(A){try{v(p.throw(A))}catch(z){k(z)}}function v(A){A.done?d(A.value):a(A.value).then(J,h)}v((p=p.apply(e,n||[])).next())})};class ok extends wN{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(n){return this._lines[n-1]}getWordAtPosition(n,f){const p=pE(n.column,FN(f),this._lines[n.lineNumber-1],0);return p?new yl(n.lineNumber,p.startColumn,n.lineNumber,p.endColumn):null}words(n){const f=this._lines,p=this._wordenize.bind(this);let a=0,d="",k=0,J=[];return{*[Symbol.iterator](){for(;;)if(k<J.length){const h=d.substring(J[k].start,J[k].end);k+=1,yield h}else if(a<f.length)d=f[a],J=p(d,n),k=0,a+=1;else break}}}getLineWords(n,f){const p=this._lines[n-1],a=this._wordenize(p,f),d=[];for(const k of a)d.push({word:p.substring(k.start,k.end),startColumn:k.start+1,endColumn:k.end+1});return d}_wordenize(n,f){const p=[];let a;for(f.lastIndex=0;(a=f.exec(n))&&a[0].length!==0;)p.push({start:a.index,end:a.index+a[0].length});return p}getValueInRange(n){if(n=this._validateRange(n),n.startLineNumber===n.endLineNumber)return this._lines[n.startLineNumber-1].substring(n.startColumn-1,n.endColumn-1);const f=this._eol,p=n.startLineNumber-1,a=n.endLineNumber-1,d=[];d.push(this._lines[p].substring(n.startColumn-1));for(let k=p+1;k<a;k++)d.push(this._lines[k]);return d.push(this._lines[a].substring(0,n.endColumn-1)),d.join(f)}offsetAt(n){return n=this._validatePosition(n),this._ensureLineStarts(),this._lineStarts.getPrefixSum(n.lineNumber-2)+(n.column-1)}positionAt(n){n=Math.floor(n),n=Math.max(0,n),this._ensureLineStarts();const f=this._lineStarts.getIndexOf(n),p=this._lines[f.index].length;return{lineNumber:1+f.index,column:1+Math.min(f.remainder,p)}}_validateRange(n){const f=this._validatePosition({lineNumber:n.startLineNumber,column:n.startColumn}),p=this._validatePosition({lineNumber:n.endLineNumber,column:n.endColumn});return f.lineNumber!==n.startLineNumber||f.column!==n.startColumn||p.lineNumber!==n.endLineNumber||p.column!==n.endColumn?{startLineNumber:f.lineNumber,startColumn:f.column,endLineNumber:p.lineNumber,endColumn:p.column}:n}_validatePosition(n){if(!mf.isIPosition(n))throw new Error("bad position");let{lineNumber:f,column:p}=n,a=!1;if(f<1)f=1,p=1,a=!0;else if(f>this._lines.length)f=this._lines.length,p=this._lines[f-1].length+1,a=!0;else{const d=this._lines[f-1].length+1;p<1?(p=1,a=!0):p>d&&(p=d,a=!0)}return a?{lineNumber:f,column:p}:n}}class kg{constructor(n,f){this._host=n,this._models=Object.create(null),this._foreignModuleFactory=f,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(n){return this._models[n]}_getModels(){const n=[];return Object.keys(this._models).forEach(f=>n.push(this._models[f])),n}acceptNewModel(n){this._models[n.url]=new ok(Om.parse(n.url),n.lines,n.EOL,n.versionId)}acceptModelChanged(n,f){if(!this._models[n])return;this._models[n].onEvents(f)}acceptRemovedModel(n){this._models[n]&&delete this._models[n]}computeUnicodeHighlights(n,f,p){return Rm(this,void 0,void 0,function*(){const a=this._getModel(n);return a?ak.computeUnicodeHighlights(a,f,p):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(n,f,p,a){return Rm(this,void 0,void 0,function*(){const d=this._getModel(n),k=this._getModel(f);if(!d||!k)return null;const J=d.getLinesContent(),h=k.getLinesContent(),A=new kN(J,h,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:p,shouldMakePrettyDiff:!0,maxComputationTime:a}).computeDiff(),z=A.changes.length>0?!1:this._modelsAreIdentical(d,k);return{quitEarly:A.quitEarly,identical:z,changes:A.changes}})}_modelsAreIdentical(n,f){const p=n.getLineCount(),a=f.getLineCount();if(p!==a)return!1;for(let d=1;d<=p;d++){const k=n.getLineContent(d),J=f.getLineContent(d);if(k!==J)return!1}return!0}computeMoreMinimalEdits(n,f){return Rm(this,void 0,void 0,function*(){const p=this._getModel(n);if(!p)return f;const a=[];let d;f=f.slice(0).sort((k,J)=>{if(k.range&&J.range)return yl.compareRangesUsingStarts(k.range,J.range);const h=k.range?0:1,v=J.range?0:1;return h-v});for(let{range:k,text:J,eol:h}of f){if(typeof h=="number"&&(d=h),yl.isEmpty(k)&&!J)continue;const v=p.getValueInRange(k);if(J=J.replace(/\r\n|\n|\r/g,p.eol),v===J)continue;if(Math.max(J.length,v.length)>kg._diffLimit){a.push({range:k,text:J});continue}const A=_N(v,J,!1),z=p.offsetAt(yl.lift(k).getStartPosition());for(const ie of A){const b=p.positionAt(z+ie.originalStart),M=p.positionAt(z+ie.originalStart+ie.originalLength),S={text:J.substr(ie.modifiedStart,ie.modifiedLength),range:{startLineNumber:b.lineNumber,startColumn:b.column,endLineNumber:M.lineNumber,endColumn:M.column}};p.getValueInRange(S.range)!==S.text&&a.push(S)}}return typeof d=="number"&&a.push({eol:d,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),a})}computeLinks(n){return Rm(this,void 0,void 0,function*(){const f=this._getModel(n);return f?HN(f):null})}textualSuggest(n,f,p,a){return Rm(this,void 0,void 0,function*(){const d=new Xh(!0),k=new RegExp(p,a),J=new Set;e:for(let h of n){const v=this._getModel(h);if(v){for(let A of v.words(k))if(!(A===f||!isNaN(Number(A)))&&(J.add(A),J.size>kg._suggestionsLimit))break e}}return{words:Array.from(J),duration:d.elapsed()}})}computeWordRanges(n,f,p,a){return Rm(this,void 0,void 0,function*(){const d=this._getModel(n);if(!d)return Object.create(null);const k=new RegExp(p,a),J=Object.create(null);for(let h=f.startLineNumber;h<f.endLineNumber;h++){const v=d.getLineWords(h,k);for(const A of v){if(!isNaN(Number(A.word)))continue;let z=J[A.word];z||(z=[],J[A.word]=z),z.push({startLineNumber:h,startColumn:A.startColumn,endLineNumber:h,endColumn:A.endColumn})}}return J})}navigateValueSet(n,f,p,a,d){return Rm(this,void 0,void 0,function*(){const k=this._getModel(n);if(!k)return null;const J=new RegExp(a,d);f.startColumn===f.endColumn&&(f={startLineNumber:f.startLineNumber,startColumn:f.startColumn,endLineNumber:f.endLineNumber,endColumn:f.endColumn+1});const h=k.getValueInRange(f),v=k.getWordAtPosition({lineNumber:f.startLineNumber,column:f.startColumn},J);if(!v)return null;const A=k.getValueInRange(v);return gE.INSTANCE.navigateValueSet(f,h,v,A,p)})}loadForeignModule(n,f,p){const k={host:zI(p,(J,h)=>this._host.fhr(J,h)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(k,f),Promise.resolve(iE(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(n,f){if(!this._foreignModule||typeof this._foreignModule[n]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+n));try{return Promise.resolve(this._foreignModule[n].apply(this._foreignModule,f))}catch(p){return Promise.reject(p)}}}kg._diffLimit=1e5,kg._suggestionsLimit=1e4,typeof importScripts=="function"&&(su.monaco=$N());let LE=!1;function nD(e){if(LE)return;LE=!0;const n=new dN(f=>{self.postMessage(f)},f=>new kg(f,e));self.onmessage=f=>{n.onmessage(f.data)}}self.onmessage=e=>{LE||nD(null)};/*!-----------------------------------------------------------------------------
  6. * Copyright (c) Microsoft Corporation. All rights reserved.
  7. * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
  8. * Released under the MIT license
  9. * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
  10. *-----------------------------------------------------------------------------*/var sk=Object.defineProperty,lk=(e,n)=>{for(var f in n)sk(e,f,{get:n[f],enumerable:!0})},aD={};lk(aD,{EndOfLineState:()=>fk,IndentStyle:()=>pk,ScriptKind:()=>Mm,ScriptTarget:()=>_k,TokenClass:()=>mk,createClassifier:()=>ck,createLanguageService:()=>sD,displayPartsToString:()=>uk,flattenDiagnosticMessageText:()=>dk,typescript:()=>lD});var Gt=function(e,n,f){if(f||arguments.length===2)for(var p=0,a=n.length,d;p<a;p++)(d||!(p in n))&&(d||(d=Array.prototype.slice.call(n,0,p)),d[p]=n[p]);return e.concat(d||Array.prototype.slice.call(n))},Rn=function(){return Rn=Object.assign||function(e){for(var n,f=1,p=arguments.length;f<p;f++){n=arguments[f];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Rn.apply(this,arguments)},iD=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},Og=function(e,n){var f={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},p,a,d,k;return k={next:J(0),throw:J(1),return:J(2)},typeof Symbol=="function"&&(k[Symbol.iterator]=function(){return this}),k;function J(v){return function(A){return h([v,A])}}function h(v){if(p)throw new TypeError("Generator is already executing.");for(;f;)try{if(p=1,a&&(d=v[0]&2?a.return:v[0]?a.throw||((d=a.return)&&d.call(a),0):a.next)&&!(d=d.call(a,v[1])).done)return d;switch(a=0,d&&(v=[v[0]&2,d.value]),v[0]){case 0:case 1:d=v;break;case 4:return f.label++,{value:v[1],done:!1};case 5:f.label++,a=v[1],v=[0];continue;case 7:v=f.ops.pop(),f.trys.pop();continue;default:if(d=f.trys,!(d=d.length>0&&d[d.length-1])&&(v[0]===6||v[0]===2)){f=0;continue}if(v[0]===3&&(!d||v[1]>d[0]&&v[1]<d[3])){f.label=v[1];break}if(v[0]===6&&f.label<d[1]){f.label=d[1],d=v;break}if(d&&f.label<d[2]){f.label=d[2],f.ops.push(v);break}d[2]&&f.ops.pop(),f.trys.pop();continue}v=n.call(e,f)}catch(A){v=[6,A],a=0}finally{p=d=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},oD=function(e,n){var f={};for(var p in e)Object.prototype.hasOwnProperty.call(e,p)&&n.indexOf(p)<0&&(f[p]=e[p]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,p=Object.getOwnPropertySymbols(e);a<p.length;a++)n.indexOf(p[a])<0&&Object.prototype.propertyIsEnumerable.call(e,p[a])&&(f[p[a]]=e[p[a]]);return f},wm=function(){var e=function(n,f){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,a){p.__proto__=a}||function(p,a){for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(p[d]=a[d])},e(n,f)};return function(n,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");e(n,f);function p(){this.constructor=n}n.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}();(function(e){function n(){var M={};return M.prev=M,{head:M,tail:M,size:0}}function f(M,S){return{key:M,value:S,next:void 0,prev:void 0}}function p(M,S){return M===S||M!==M&&S!==S}function a(M){var S=M.prev;if(!S||S===M)throw new Error("Illegal state");return S}function d(M){for(;M;){var S=!M.prev;if(M=M.next,!S)return M}}function k(M,S){for(var B=M.tail;B!==M.head;B=a(B))if(p(B.key,S))return B}function J(M,S,B){var H=k(M,S);if(H){H.value=B;return}var I=f(S,B);return I.prev=M.tail,M.tail.next=I,M.tail=I,M.size++,I}function h(M,S){for(var B=M.tail;B!==M.head;B=a(B)){if(B.prev===void 0)throw new Error("Illegal state");if(p(B.key,S)){if(B.next)B.next.prev=B.prev;else{if(M.tail!==B)throw new Error("Illegal state");M.tail=B.prev}return B.prev.next=B.next,B.next=B.prev,B.prev=void 0,M.size--,B}}}function v(M){for(var S=M.tail;S!==M.head;){var B=a(S);S.next=M.head,S.prev=void 0,S=B}M.head.next=void 0,M.tail=M.head,M.size=0}function A(M,S){for(var B=M.head;B;)B=d(B),B&&S(B.value,B.key)}function z(M,S){if(M)for(var B=M.next();!B.done;B=M.next())S(B.value)}function ie(M,S){return{current:M.head,selector:S}}function b(M){return M.current=d(M.current),M.current?{value:M.selector(M.current.key,M.current.value),done:!1}:{value:void 0,done:!0}}(function(M){function S(H){var I=function(){function w(x,O){this._data=ie(x,O)}return w.prototype.next=function(){return b(this._data)},w}();return function(){function w(x){var O=this;this._mapData=n(),z(H(x),function(q){var Z=q[0],ne=q[1];return O.set(Z,ne)})}return Object.defineProperty(w.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),w.prototype.get=function(x){var O;return(O=k(this._mapData,x))===null||O===void 0?void 0:O.value},w.prototype.set=function(x,O){return J(this._mapData,x,O),this},w.prototype.has=function(x){return!!k(this._mapData,x)},w.prototype.delete=function(x){return!!h(this._mapData,x)},w.prototype.clear=function(){v(this._mapData)},w.prototype.keys=function(){return new I(this._mapData,function(x,O){return x})},w.prototype.values=function(){return new I(this._mapData,function(x,O){return O})},w.prototype.entries=function(){return new I(this._mapData,function(x,O){return[x,O]})},w.prototype.forEach=function(x){A(this._mapData,x)},w}()}M.createMapShim=S;function B(H){var I=function(){function w(x,O){this._data=ie(x,O)}return w.prototype.next=function(){return b(this._data)},w}();return function(){function w(x){var O=this;this._mapData=n(),z(H(x),function(q){return O.add(q)})}return Object.defineProperty(w.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),w.prototype.add=function(x){return J(this._mapData,x,x),this},w.prototype.has=function(x){return!!k(this._mapData,x)},w.prototype.delete=function(x){return!!h(this._mapData,x)},w.prototype.clear=function(){v(this._mapData)},w.prototype.keys=function(){return new I(this._mapData,function(x,O){return x})},w.prototype.values=function(){return new I(this._mapData,function(x,O){return O})},w.prototype.entries=function(){return new I(this._mapData,function(x,O){return[x,O]})},w.prototype.forEach=function(x){A(this._mapData,x)},w}()}M.createSetShim=B})(e.ShimCollections||(e.ShimCollections={}))})(jr||(jr={})),function(e){e.versionMajorMinor="4.5",e.version="4.5.5",function(p){p[p.LessThan=-1]="LessThan",p[p.EqualTo=0]="EqualTo",p[p.GreaterThan=1]="GreaterThan"}(e.Comparison||(e.Comparison={}));var n;(function(p){function a(){return typeof Map<"u"&&"entries"in Map.prototype&&new Map([[0,0]]).size===1?Map:void 0}p.tryGetNativeMap=a;function d(){return typeof Set<"u"&&"entries"in Set.prototype&&new Set([0]).size===1?Set:void 0}p.tryGetNativeSet=d})(n||(n={})),e.Map=f("Map","tryGetNativeMap","createMapShim"),e.Set=f("Set","tryGetNativeSet","createSetShim");function f(p,a,d){var k,J=(k=n[a]())!==null&&k!==void 0?k:e.ShimCollections===null||e.ShimCollections===void 0?void 0:e.ShimCollections[d](e.getIterator);if(J)return J;throw new Error("TypeScript requires an environment that provides a compatible native ".concat(p," implementation."))}}(jr||(jr={})),function(e){function n(se){if(se){if(et(se))return Ke(se);if(se instanceof e.Map)return se.entries();if(se instanceof e.Set)return se.values();throw new Error("Iteration not supported.")}}e.getIterator=n,e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set;function f(){return new e.Map}e.createMap=f;function p(se){var Be=new e.Map;for(var er in se)Yr.call(se,er)&&Be.set(er,se[er]);return Be}e.createMapFromTemplate=p;function a(se){return se?se.length:0}e.length=a;function d(se,Be){if(se)for(var er=0;er<se.length;er++){var vr=Be(se[er],er);if(vr)return vr}}e.forEach=d;function k(se,Be){if(se)for(var er=se.length-1;er>=0;er--){var vr=Be(se[er],er);if(vr)return vr}}e.forEachRight=k;function J(se,Be){if(se!==void 0)for(var er=0;er<se.length;er++){var vr=Be(se[er],er);if(vr!==void 0)return vr}}e.firstDefined=J;function h(se,Be){for(;;){var er=se.next();if(er.done)return;var vr=Be(er.value);if(vr!==void 0)return vr}}e.firstDefinedIterator=h;function v(se,Be,er){var vr=er;if(se)for(var qr=se.next(),Dt=0;!qr.done;qr=se.next(),Dt++)vr=Be(vr,qr.value,Dt);return vr}e.reduceLeftIterator=v;function A(se,Be,er){var vr=[];e.Debug.assertEqual(se.length,Be.length);for(var qr=0;qr<se.length;qr++)vr.push(er(se[qr],Be[qr],qr));return vr}e.zipWith=A;function z(se,Be){e.Debug.assertEqual(se.length,Be.length);var er=0;return{next:function(){return er===se.length?{value:void 0,done:!0}:(er++,{value:[se[er-1],Be[er-1]],done:!1})}}}e.zipToIterator=z;function ie(se,Be){e.Debug.assert(se.length===Be.length);for(var er=new e.Map,vr=0;vr<se.length;++vr)er.set(se[vr],Be[vr]);return er}e.zipToMap=ie;function b(se,Be){if(se.length<=1)return se;for(var er=[],vr=0,qr=se.length;vr<qr;vr++)vr&&er.push(Be),er.push(se[vr]);return er}e.intersperse=b;function M(se,Be){if(se){for(var er=0;er<se.length;er++)if(!Be(se[er],er))return!1}return!0}e.every=M;function S(se,Be){for(var er=0;er<se.length;er++){var vr=se[er];if(Be(vr,er))return vr}}e.find=S;function B(se,Be){for(var er=se.length-1;er>=0;er--){var vr=se[er];if(Be(vr,er))return vr}}e.findLast=B;function H(se,Be,er){for(var vr=er||0;vr<se.length;vr++)if(Be(se[vr],vr))return vr;return-1}e.findIndex=H;function I(se,Be,er){for(var vr=er===void 0?se.length-1:er;vr>=0;vr--)if(Be(se[vr],vr))return vr;return-1}e.findLastIndex=I;function w(se,Be){for(var er=0;er<se.length;er++){var vr=Be(se[er],er);if(vr)return vr}return e.Debug.fail()}e.findMap=w;function x(se,Be,er){if(er===void 0&&(er=Jn),se)for(var vr=0,qr=se;vr<qr.length;vr++){var Dt=qr[vr];if(er(Dt,Be))return!0}return!1}e.contains=x;function O(se,Be,er){return er===void 0&&(er=Jn),se.length===Be.length&&se.every(function(vr,qr){return er(vr,Be[qr])})}e.arraysEqual=O;function q(se,Be,er){for(var vr=er||0;vr<se.length;vr++)if(x(Be,se.charCodeAt(vr)))return vr;return-1}e.indexOfAnyCharCode=q;function Z(se,Be){var er=0;if(se)for(var vr=0;vr<se.length;vr++){var qr=se[vr];Be(qr,vr)&&er++}return er}e.countWhere=Z;function ne(se,Be){if(se){for(var er=se.length,vr=0;vr<er&&Be(se[vr]);)vr++;if(vr<er){var qr=se.slice(0,vr);for(vr++;vr<er;){var Dt=se[vr];Be(Dt)&&qr.push(Dt),vr++}return qr}}return se}e.filter=ne;function F(se,Be){for(var er=0,vr=0;vr<se.length;vr++)Be(se[vr],vr,se)&&(se[er]=se[vr],er++);se.length=er}e.filterMutate=F;function Q(se){se.length=0}e.clear=Q;function V(se,Be){var er;if(se){er=[];for(var vr=0;vr<se.length;vr++)er.push(Be(se[vr],vr))}return er}e.map=V;function re(se,Be){return{next:function(){var er=se.next();return er.done?er:{value:Be(er.value),done:!1}}}}e.mapIterator=re;function T(se,Be){if(se)for(var er=0;er<se.length;er++){var vr=se[er],qr=Be(vr,er);if(vr!==qr){var Dt=se.slice(0,er);for(Dt.push(qr),er++;er<se.length;er++)Dt.push(Be(se[er],er));return Dt}}return se}e.sameMap=T;function N(se){for(var Be=[],er=0,vr=se;er<vr.length;er++){var qr=vr[er];qr&&(et(qr)?Dr(Be,qr):Be.push(qr))}return Be}e.flatten=N;function y(se,Be){var er;if(se)for(var vr=0;vr<se.length;vr++){var qr=Be(se[vr],vr);qr&&(et(qr)?er=Dr(er,qr):er=De(er,qr))}return er||e.emptyArray}e.flatMap=y;function D(se,Be){var er=[];if(se)for(var vr=0;vr<se.length;vr++){var qr=Be(se[vr],vr);qr&&(et(qr)?Dr(er,qr):er.push(qr))}return er}e.flatMapToMutable=D;function C(se,Be){var er=se.next();if(er.done)return e.emptyIterator;var vr=qr(er.value);return{next:function(){for(;;){var Dt=vr.next();if(!Dt.done)return Dt;var Jt=se.next();if(Jt.done)return Jt;vr=qr(Jt.value)}}};function qr(Dt){var Jt=Be(Dt);return Jt===void 0?e.emptyIterator:et(Jt)?Ke(Jt):Jt}}e.flatMapIterator=C;function m(se,Be){var er;if(se)for(var vr=0;vr<se.length;vr++){var qr=se[vr],Dt=Be(qr,vr);(er||qr!==Dt||et(Dt))&&(er||(er=se.slice(0,vr)),et(Dt)?Dr(er,Dt):er.push(Dt))}return er||se}e.sameFlatMap=m;function u(se,Be){for(var er=[],vr=0;vr<se.length;vr++){var qr=Be(se[vr],vr);if(qr===void 0)return;er.push(qr)}return er}e.mapAllOrFail=u;function g(se,Be){var er=[];if(se)for(var vr=0;vr<se.length;vr++){var qr=Be(se[vr],vr);qr!==void 0&&er.push(qr)}return er}e.mapDefined=g;function P(se,Be){return{next:function(){for(;;){var er=se.next();if(er.done)return er;var vr=Be(er.value);if(vr!==void 0)return{value:vr,done:!1}}}}}e.mapDefinedIterator=P;function te(se,Be){if(se){var er=new e.Map;return se.forEach(function(vr,qr){var Dt=Be(qr,vr);if(Dt!==void 0){var Jt=Dt[0],Sn=Dt[1];Jt!==void 0&&Sn!==void 0&&er.set(Jt,Sn)}}),er}}e.mapDefinedEntries=te;function ue(se,Be){if(se){var er=new e.Set;return se.forEach(function(vr){var qr=Be(vr);qr!==void 0&&er.add(qr)}),er}}e.mapDefinedValues=ue;function X(se,Be,er){if(se.has(Be))return se.get(Be);var vr=er();return se.set(Be,vr),vr}e.getOrUpdate=X;function j(se,Be){return se.has(Be)?!1:(se.add(Be),!0)}e.tryAddToSet=j,e.emptyIterator={next:function(){return{value:void 0,done:!0}}};function Se(se){var Be=!1;return{next:function(){var er=Be;return Be=!0,er?{value:void 0,done:!0}:{value:se,done:!1}}}}e.singleIterator=Se;function Ce(se,Be,er){var vr;if(se){vr=[];for(var qr=se.length,Dt=void 0,Jt=void 0,Sn=0,ta=0;Sn<qr;){for(;ta<qr;){var xa=se[ta];if(Jt=Be(xa,ta),ta===0)Dt=Jt;else if(Jt!==Dt)break;ta++}if(Sn<ta){var Di=er(se.slice(Sn,ta),Dt,Sn,ta);Di&&vr.push(Di),Sn=ta}Dt=Jt,ta++}}return vr}e.spanMap=Ce;function R(se,Be){if(se){var er=new e.Map;return se.forEach(function(vr,qr){var Dt=Be(qr,vr),Jt=Dt[0],Sn=Dt[1];er.set(Jt,Sn)}),er}}e.mapEntries=R;function Y(se,Be){if(se)if(Be)for(var er=0,vr=se;er<vr.length;er++){var qr=vr[er];if(Be(qr))return!0}else return se.length>0;return!1}e.some=Y;function U(se,Be,er){for(var vr,qr=0;qr<se.length;qr++)Be(se[qr])?vr=vr===void 0?qr:vr:vr!==void 0&&(er(vr,qr),vr=void 0);vr!==void 0&&er(vr,se.length)}e.getRangesWhere=U;function K(se,Be){return Y(Be)?Y(se)?Gt(Gt([],se,!0),Be,!0):Be:se}e.concatenate=K;function Te(se,Be){return Be}function ge(se){return se.map(Te)}e.indicesOf=ge;function ke(se,Be,er){var vr=ge(se);Ar(se,vr,er);for(var qr=se[vr[0]],Dt=[vr[0]],Jt=1;Jt<vr.length;Jt++){var Sn=vr[Jt],ta=se[Sn];Be(qr,ta)||(Dt.push(Sn),qr=ta)}return Dt.sort(),Dt.map(function(xa){return se[xa]})}function Pe(se,Be){for(var er=[],vr=0,qr=se;vr<qr.length;vr++){var Dt=qr[vr];br(er,Dt,Be)}return er}function Ie(se,Be,er){return se.length===0?[]:se.length===1?se.slice():er?ke(se,Be,er):Pe(se,Be)}e.deduplicate=Ie;function Ge(se,Be){if(se.length===0)return e.emptyArray;for(var er=se[0],vr=[er],qr=1;qr<se.length;qr++){var Dt=se[qr];switch(Be(Dt,er)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}vr.push(er=Dt)}return vr}function he(se,Be,er){if(se.length===0){se.push(Be);return}var vr=Jr(se,Be,ht,er);vr<0&&se.splice(~vr,0,Be)}e.insertSorted=he;function ve(se,Be,er){return Ge(kr(se,Be),er||Be||dn)}e.sortAndDeduplicate=ve;function Ve(se,Be){if(se.length<2)return!0;for(var er=se[0],vr=0,qr=se.slice(1);vr<qr.length;vr++){var Dt=qr[vr];if(Be(er,Dt)===1)return!1;er=Dt}return!0}e.arrayIsSorted=Ve;function _e(se,Be,er){if(er===void 0&&(er=Jn),!se||!Be)return se===Be;if(se.length!==Be.length)return!1;for(var vr=0;vr<se.length;vr++)if(!er(se[vr],Be[vr],vr))return!1;return!0}e.arrayIsEqualTo=_e;function Le(se){var Be;if(se)for(var er=0;er<se.length;er++){var vr=se[er];(Be||!vr)&&(Be||(Be=se.slice(0,er)),vr&&Be.push(vr))}return Be||se}e.compact=Le;function qe(se,Be,er){if(!Be||!se||Be.length===0||se.length===0)return Be;var vr=[];e:for(var qr=0,Dt=0;Dt<Be.length;Dt++){Dt>0&&e.Debug.assertGreaterThanOrEqual(er(Be[Dt],Be[Dt-1]),0);r:for(var Jt=qr;qr<se.length;qr++)switch(qr>Jt&&e.Debug.assertGreaterThanOrEqual(er(se[qr],se[qr-1]),0),er(Be[Dt],se[qr])){case-1:vr.push(Be[Dt]);continue e;case 0:continue e;case 1:continue r}}return vr}e.relativeComplement=qe;function Xe(se,Be){for(var er=0,vr=0,qr=se;vr<qr.length;vr++){var Dt=qr[vr];er+=Dt[Be]}return er}e.sum=Xe;function De(se,Be){return Be===void 0?se:se===void 0?[Be]:(se.push(Be),se)}e.append=De;function Ae(se,Be){return se===void 0?Be:Be===void 0?se:et(se)?et(Be)?K(se,Be):De(se,Be):et(Be)?De(Be,se):[se,Be]}e.combine=Ae;function Ye(se,Be){return Be<0?se.length+Be:Be}function Dr(se,Be,er,vr){if(Be===void 0||Be.length===0)return se;if(se===void 0)return Be.slice(er,vr);er=er===void 0?0:Ye(Be,er),vr=vr===void 0?Be.length:Ye(Be,vr);for(var qr=er;qr<vr&&qr<Be.length;qr++)Be[qr]!==void 0&&se.push(Be[qr]);return se}e.addRange=Dr;function br(se,Be,er){return x(se,Be,er)?!1:(se.push(Be),!0)}e.pushIfUnique=br;function lr(se,Be,er){return se?(br(se,Be,er),se):[Be]}e.appendIfUnique=lr;function Ar(se,Be,er){Be.sort(function(vr,qr){return er(se[vr],se[qr])||St(vr,qr)})}function kr(se,Be){return se.length===0?se:se.slice().sort(Be)}e.sort=kr;function Ke(se){var Be=0;return{next:function(){return Be===se.length?{value:void 0,done:!0}:(Be++,{value:se[Be-1],done:!1})}}}e.arrayIterator=Ke;function Me(se){var Be=se.length;return{next:function(){return Be===0?{value:void 0,done:!0}:(Be--,{value:se[Be],done:!1})}}}e.arrayReverseIterator=Me;function Hr(se,Be){var er=ge(se);return Ar(se,er,Be),er.map(function(vr){return se[vr]})}e.stableSort=Hr;function ur(se,Be,er,vr){for(;er<vr;){if(se[er]!==Be[er])return!1;er++}return!0}e.rangeEquals=ur;function gr(se,Be){if(se&&(Be=Ye(se,Be),Be<se.length))return se[Be]}e.elementAt=gr;function de(se){return se.length===0?void 0:se[0]}e.firstOrUndefined=de;function Fe(se){return e.Debug.assert(se.length!==0),se[0]}e.first=Fe;function $e(se){return se.length===0?void 0:se[se.length-1]}e.lastOrUndefined=$e;function Sr(se){return e.Debug.assert(se.length!==0),se[se.length-1]}e.last=Sr;function Pr(se){return se&&se.length===1?se[0]:void 0}e.singleOrUndefined=Pr;function He(se){return se&&se.length===1?se[0]:se}e.singleOrMany=He;function pr(se,Be,er){var vr=se.slice(0);return vr[Be]=er,vr}e.replaceElement=pr;function Jr(se,Be,er,vr,qr){return ze(se,er(Be),er,vr,qr)}e.binarySearch=Jr;function ze(se,Be,er,vr,qr){if(!Y(se))return-1;for(var Dt=qr||0,Jt=se.length-1;Dt<=Jt;){var Sn=Dt+(Jt-Dt>>1),ta=er(se[Sn],Sn);switch(vr(ta,Be)){case-1:Dt=Sn+1;break;case 0:return Sn;case 1:Jt=Sn-1;break}}return~Dt}e.binarySearchKey=ze;function Lr(se,Be,er,vr,qr){if(se&&se.length>0){var Dt=se.length;if(Dt>0){var Jt=vr===void 0||vr<0?0:vr,Sn=qr===void 0||Jt+qr>Dt-1?Dt-1:Jt+qr,ta=void 0;for(arguments.length<=2?(ta=se[Jt],Jt++):ta=er;Jt<=Sn;)ta=Be(ta,se[Jt],Jt),Jt++;return ta}}return er}e.reduceLeft=Lr;var Yr=Object.prototype.hasOwnProperty;function lt(se,Be){return Yr.call(se,Be)}e.hasProperty=lt;function tt(se,Be){return Yr.call(se,Be)?se[Be]:void 0}e.getProperty=tt;function Rt(se){var Be=[];for(var er in se)Yr.call(se,er)&&Be.push(er);return Be}e.getOwnKeys=Rt;function cn(se){var Be=[];do for(var er=Object.getOwnPropertyNames(se),vr=0,qr=er;vr<qr.length;vr++){var Dt=qr[vr];br(Be,Dt)}while(se=Object.getPrototypeOf(se));return Be}e.getAllKeys=cn;function bn(se){var Be=[];for(var er in se)Yr.call(se,er)&&Be.push(se[er]);return Be}e.getOwnValues=bn;var In=Object.entries||function(se){for(var Be=Rt(se),er=Array(Be.length),vr=0;vr<Be.length;vr++)er[vr]=[Be[vr],se[Be[vr]]];return er};function zn(se){return se?In(se):[]}e.getEntries=zn;function ir(se,Be){for(var er=new Array(se),vr=0;vr<se;vr++)er[vr]=Be(vr);return er}e.arrayOf=ir;function Or(se,Be){for(var er=[],vr=se.next();!vr.done;vr=se.next())er.push(Be?Be(vr.value):vr.value);return er}e.arrayFrom=Or;function sr(se){for(var Be=[],er=1;er<arguments.length;er++)Be[er-1]=arguments[er];for(var vr=0,qr=Be;vr<qr.length;vr++){var Dt=qr[vr];if(Dt!==void 0)for(var Jt in Dt)lt(Dt,Jt)&&(se[Jt]=Dt[Jt])}return se}e.assign=sr;function ye(se,Be,er){if(er===void 0&&(er=Jn),se===Be)return!0;if(!se||!Be)return!1;for(var vr in se)if(Yr.call(se,vr)&&(!Yr.call(Be,vr)||!er(se[vr],Be[vr])))return!1;for(var vr in Be)if(Yr.call(Be,vr)&&!Yr.call(se,vr))return!1;return!0}e.equalOwnProperties=ye;function or(se,Be,er){er===void 0&&(er=ht);for(var vr=new e.Map,qr=0,Dt=se;qr<Dt.length;qr++){var Jt=Dt[qr],Sn=Be(Jt);Sn!==void 0&&vr.set(Sn,er(Jt))}return vr}e.arrayToMap=or;function fe(se,Be,er){er===void 0&&(er=ht);for(var vr=[],qr=0,Dt=se;qr<Dt.length;qr++){var Jt=Dt[qr];vr[Be(Jt)]=er(Jt)}return vr}e.arrayToNumericMap=fe;function je(se,Be,er){er===void 0&&(er=ht);for(var vr=Ze(),qr=0,Dt=se;qr<Dt.length;qr++){var Jt=Dt[qr];vr.add(Be(Jt),er(Jt))}return vr}e.arrayToMultiMap=je;function Ee(se,Be,er){return er===void 0&&(er=ht),Or(je(se,Be).values(),er)}e.group=Ee;function We(se){var Be={};for(var er in se)Yr.call(se,er)&&(Be[er]=se[er]);return Be}e.clone=We;function $(se,Be){var er={};for(var vr in Be)Yr.call(Be,vr)&&(er[vr]=Be[vr]);for(var vr in se)Yr.call(se,vr)&&(er[vr]=se[vr]);return er}e.extend=$;function Ne(se,Be){for(var er in Be)Yr.call(Be,er)&&(se[er]=Be[er])}e.copyProperties=Ne;function me(se,Be){return Be?Be.bind(se):void 0}e.maybeBind=me;function Ze(){var se=new e.Map;return se.add=Cr,se.remove=fr,se}e.createMultiMap=Ze;function Cr(se,Be){var er=this.get(se);return er?er.push(Be):this.set(se,er=[Be]),er}function fr(se,Be){var er=this.get(se);er&&(to(er,Be),er.length||this.delete(se))}function dr(){return Ze()}e.createUnderscoreEscapedMultiMap=dr;function et(se){return Array.isArray?Array.isArray(se):se instanceof Array}e.isArray=et;function yt(se){return et(se)?se:[se]}e.toArray=yt;function Vr(se){return typeof se=="string"}e.isString=Vr;function tr(se){return typeof se=="number"}e.isNumber=tr;function xr(se,Be){return se!==void 0&&Be(se)?se:void 0}e.tryCast=xr;function Nr(se,Be){return se!==void 0&&Be(se)?se:e.Debug.fail("Invalid cast. The supplied value ".concat(se," did not pass the test '").concat(e.Debug.getFunctionName(Be),"'."))}e.cast=Nr;function zr(se){}e.noop=zr;function gt(){return!1}e.returnFalse=gt;function vt(){return!0}e.returnTrue=vt;function ut(){}e.returnUndefined=ut;function ht(se){return se}e.identity=ht;function xt(se){return se.toLowerCase()}e.toLowerCase=xt;var wt=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function Qt(se){return wt.test(se)?se.replace(wt,xt):se}e.toFileNameLowerCase=Qt;function mt(){throw new Error("Not implemented")}e.notImplemented=mt;function rn(se){var Be;return function(){return se&&(Be=se(),se=void 0),Be}}e.memoize=rn;function sa(se){var Be=new e.Map;return function(er){var vr="".concat(typeof er,":").concat(er),qr=Be.get(vr);return qr===void 0&&!Be.has(vr)&&(qr=se(er),Be.set(vr,qr)),qr}}e.memoizeOne=sa;function ba(se,Be,er,vr,qr){if(qr){for(var Dt=[],Jt=0;Jt<arguments.length;Jt++)Dt[Jt]=arguments[Jt];return function(Sn){return Lr(Dt,function(ta,xa){return xa(ta)},Sn)}}else return vr?function(Sn){return vr(er(Be(se(Sn))))}:er?function(Sn){return er(Be(se(Sn)))}:Be?function(Sn){return Be(se(Sn))}:se?function(Sn){return se(Sn)}:function(Sn){return Sn}}e.compose=ba,function(se){se[se.None=0]="None",se[se.Normal=1]="Normal",se[se.Aggressive=2]="Aggressive",se[se.VeryAggressive=3]="VeryAggressive"}(e.AssertionLevel||(e.AssertionLevel={}));function Jn(se,Be){return se===Be}e.equateValues=Jn;function na(se,Be){return se===Be||se!==void 0&&Be!==void 0&&se.toUpperCase()===Be.toUpperCase()}e.equateStringsCaseInsensitive=na;function Wn(se,Be){return Jn(se,Be)}e.equateStringsCaseSensitive=Wn;function en(se,Be){return se===Be?0:se===void 0?-1:Be===void 0?1:se<Be?-1:1}function St(se,Be){return en(se,Be)}e.compareValues=St;function Ut(se,Be){return St(se==null?void 0:se.start,Be==null?void 0:Be.start)||St(se==null?void 0:se.length,Be==null?void 0:Be.length)}e.compareTextSpans=Ut;function qt(se,Be,er){return er(se,Be)===-1?se:Be}e.min=qt;function Mn(se,Be){return se===Be?0:se===void 0?-1:Be===void 0?1:(se=se.toUpperCase(),Be=Be.toUpperCase(),se<Be?-1:se>Be?1:0)}e.compareStringsCaseInsensitive=Mn;function dn(se,Be){return en(se,Be)}e.compareStringsCaseSensitive=dn;function oa(se){return se?Mn:dn}e.getStringComparer=oa;var pt=function(){var se,Be,er=Sn();return ta;function vr(xa,Di,$a){if(xa===Di)return 0;if(xa===void 0)return-1;if(Di===void 0)return 1;var Ji=$a(xa,Di);return Ji<0?-1:Ji>0?1:0}function qr(xa){var Di=new Intl.Collator(xa,{usage:"sort",sensitivity:"variant"}).compare;return function($a,Ji){return vr($a,Ji,Di)}}function Dt(xa){if(xa!==void 0)return Jt();return function($a,Ji){return vr($a,Ji,Di)};function Di($a,Ji){return $a.localeCompare(Ji)}}function Jt(){return function($a,Ji){return vr($a,Ji,xa)};function xa($a,Ji){return Di($a.toUpperCase(),Ji.toUpperCase())||Di($a,Ji)}function Di($a,Ji){return $a<Ji?-1:$a>Ji?1:0}}function Sn(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?qr:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?Dt:Jt}function ta(xa){return xa===void 0?se||(se=er(xa)):xa==="en-US"?Be||(Be=er(xa)):er(xa)}}(),_t,Mt;function It(){return Mt}e.getUILocale=It;function rt(se){Mt!==se&&(Mt=se,_t=void 0)}e.setUILocale=rt;function Cn(se,Be){var er=_t||(_t=pt(Mt));return er(se,Be)}e.compareStringsCaseSensitiveUI=Cn;function Qn(se,Be,er,vr){return se===Be?0:se===void 0?-1:Be===void 0?1:vr(se[er],Be[er])}e.compareProperties=Qn;function Ra(se,Be){return St(se?1:0,Be?1:0)}e.compareBooleans=Ra;function Ci(se,Be,er){for(var vr=Math.min(2,Math.floor(se.length*.34)),qr=Math.floor(se.length*.4)+1,Dt,Jt=0,Sn=Be;Jt<Sn.length;Jt++){var ta=Sn[Jt],xa=er(ta);if(xa!==void 0&&Math.abs(xa.length-se.length)<=vr){if(xa===se||xa.length<3&&xa.toLowerCase()!==se.toLowerCase())continue;var Di=_i(se,xa,qr-.1);if(Di===void 0)continue;e.Debug.assert(Di<qr),qr=Di,Dt=ta}}return Dt}e.getSpellingSuggestion=Ci;function _i(se,Be,er){for(var vr=new Array(Be.length+1),qr=new Array(Be.length+1),Dt=er+.01,Jt=0;Jt<=Be.length;Jt++)vr[Jt]=Jt;for(var Jt=1;Jt<=se.length;Jt++){var Sn=se.charCodeAt(Jt-1),ta=Math.ceil(Jt>er?Jt-er:1),xa=Math.floor(Be.length>er+Jt?er+Jt:Be.length);qr[0]=Jt;for(var Di=Jt,$a=1;$a<ta;$a++)qr[$a]=Dt;for(var $a=ta;$a<=xa;$a++){var Ji=se[Jt-1].toLowerCase()===Be[$a-1].toLowerCase()?vr[$a-1]+.1:vr[$a-1]+2,So=Sn===Be.charCodeAt($a-1)?vr[$a-1]:Math.min(vr[$a]+1,qr[$a-1]+1,Ji);qr[$a]=So,Di=Math.min(Di,So)}for(var $a=xa+1;$a<=Be.length;$a++)qr[$a]=Dt;if(Di>er)return;var cs=vr;vr=qr,qr=cs}var bt=vr[Be.length];return bt>er?void 0:bt}function va(se,Be){var er=se.length-Be.length;return er>=0&&se.indexOf(Be,er)===er}e.endsWith=va;function yi(se,Be){return va(se,Be)?se.slice(0,se.length-Be.length):se}e.removeSuffix=yi;function ro(se,Be){return va(se,Be)?se.slice(0,se.length-Be.length):void 0}e.tryRemoveSuffix=ro;function Ka(se,Be){return se.indexOf(Be)!==-1}e.stringContains=Ka;function Mi(se){for(var Be=se.length,er=Be-1;er>0;er--){var vr=se.charCodeAt(er);if(vr>=48&&vr<=57)do--er,vr=se.charCodeAt(er);while(er>0&&vr>=48&&vr<=57);else if(er>4&&(vr===110||vr===78)){if(--er,vr=se.charCodeAt(er),vr!==105&&vr!==73||(--er,vr=se.charCodeAt(er),vr!==109&&vr!==77))break;--er,vr=se.charCodeAt(er)}else break;if(vr!==45&&vr!==46)break;Be=er}return Be===se.length?se:se.slice(0,Be)}e.removeMinAndVersionNumbers=Mi;function io(se,Be){for(var er=0;er<se.length;er++)if(se[er]===Be)return ji(se,er),!0;return!1}e.orderedRemoveItem=io;function ji(se,Be){for(var er=Be;er<se.length-1;er++)se[er]=se[er+1];se.pop()}e.orderedRemoveItemAt=ji;function Hi(se,Be){se[Be]=se[se.length-1],se.pop()}e.unorderedRemoveItemAt=Hi;function to(se,Be){return No(se,function(er){return er===Be})}e.unorderedRemoveItem=to;function No(se,Be){for(var er=0;er<se.length;er++)if(Be(se[er]))return Hi(se,er),!0;return!1}function lo(se){return se?ht:Qt}e.createGetCanonicalFileName=lo;function Lo(se){var Be=se.prefix,er=se.suffix;return"".concat(Be,"*").concat(er)}e.patternText=Lo;function Ha(se,Be){return e.Debug.assert(Zi(se,Be)),Be.substring(se.prefix.length,Be.length-se.suffix.length)}e.matchedText=Ha;function Yo(se,Be,er){for(var vr,qr=-1,Dt=0,Jt=se;Dt<Jt.length;Dt++){var Sn=Jt[Dt],ta=Be(Sn);Zi(ta,er)&&ta.prefix.length>qr&&(qr=ta.prefix.length,vr=Sn)}return vr}e.findBestPatternMatch=Yo;function co(se,Be){return se.lastIndexOf(Be,0)===0}e.startsWith=co;function za(se,Be){return co(se,Be)?se.substr(Be.length):se}e.removePrefix=za;function hi(se,Be,er){return er===void 0&&(er=ht),co(er(se),er(Be))?se.substring(Be.length):void 0}e.tryRemovePrefix=hi;function Zi(se,Be){var er=se.prefix,vr=se.suffix;return Be.length>=er.length+vr.length&&co(Be,er)&&va(Be,vr)}function Mo(se,Be){return function(er){return se(er)&&Be(er)}}e.and=Mo;function Po(){for(var se=[],Be=0;Be<arguments.length;Be++)se[Be]=arguments[Be];return function(){for(var er=[],vr=0;vr<arguments.length;vr++)er[vr]=arguments[vr];for(var qr=0,Dt=se;qr<Dt.length;qr++){var Jt=Dt[qr];if(Jt.apply(void 0,er))return!0}return!1}}e.or=Po;function Fo(se){return function(){for(var Be=[],er=0;er<arguments.length;er++)Be[er]=arguments[er];return!se.apply(void 0,Be)}}e.not=Fo;function zo(se){}e.assertType=zo;function Es(se){return se===void 0?void 0:[se]}e.singleElementArray=Es;function Cs(se,Be,er,vr,qr,Dt){Dt=Dt||zr;for(var Jt=0,Sn=0,ta=se.length,xa=Be.length,Di=!1;Jt<ta&&Sn<xa;){var $a=se[Jt],Ji=Be[Sn],So=er($a,Ji);So===-1?(vr($a),Jt++,Di=!0):So===1?(qr(Ji),Sn++,Di=!0):(Dt(Ji,$a),Jt++,Sn++)}for(;Jt<ta;)vr(se[Jt++]),Di=!0;for(;Sn<xa;)qr(Be[Sn++]),Di=!0;return Di}e.enumerateInsertsAndDeletes=Cs;function hr(se,Be){for(var er=Array(se),vr=0;vr<se;vr++)er[vr]=Be(vr);return er}e.fill=hr;function dt(se){var Be=[];return tn(se,Be,void 0,0),Be}e.cartesianProduct=dt;function tn(se,Be,er,vr){for(var qr=0,Dt=se[vr];qr<Dt.length;qr++){var Jt=Dt[qr],Sn=void 0;er?(Sn=er.slice(),Sn.push(Jt)):Sn=[Jt],vr===se.length-1?Be.push(Sn):tn(se,Be,Sn,vr+1)}}function Un(se,Be,er){return er===void 0&&(er=" "),Be<=se.length?se:er.repeat(Be-se.length)+se}e.padLeft=Un;function Oe(se,Be,er){return er===void 0&&(er=" "),Be<=se.length?se:se+er.repeat(Be-se.length)}e.padRight=Oe;function oe(se,Be){for(var er=se.length,vr=0;vr<er&&Be(se[vr]);)vr++;return se.slice(0,vr)}e.takeWhile=oe,e.trimString=String.prototype.trim?function(se){return se.trim()}:function(se){return e.trimStringEnd(e.trimStringStart(se))},e.trimStringEnd=String.prototype.trimEnd?function(se){return se.trimEnd()}:mr,e.trimStringStart=String.prototype.trimStart?function(se){return se.trimStart()}:function(se){return se.replace(/^\s+/g,"")};function mr(se){for(var Be=se.length-1;Be>=0&&e.isWhiteSpaceLike(se.charCodeAt(Be));)Be--;return se.slice(0,Be+1)}}(jr||(jr={})),function(e){var n;(function(f){f[f.Off=0]="Off",f[f.Error=1]="Error",f[f.Warning=2]="Warning",f[f.Info=3]="Info",f[f.Verbose=4]="Verbose"})(n=e.LogLevel||(e.LogLevel={})),function(f){var p,a=0;f.currentLogLevel=n.Warning,f.isDebugging=!1;function d(){return p??(p=new e.Version(e.version))}f.getTypeScriptVersion=d;function k(lr){return f.currentLogLevel<=lr}f.shouldLog=k;function J(lr,Ar){f.loggingHost&&k(lr)&&f.loggingHost.log(lr,Ar)}function h(lr){J(n.Info,lr)}f.log=h,function(lr){function Ar(Hr){J(n.Error,Hr)}lr.error=Ar;function kr(Hr){J(n.Warning,Hr)}lr.warn=kr;function Ke(Hr){J(n.Info,Hr)}lr.log=Ke;function Me(Hr){J(n.Verbose,Hr)}lr.trace=Me}(h=f.log||(f.log={}));var v={};function A(){return a}f.getAssertionLevel=A;function z(lr){var Ar=a;if(a=lr,lr>Ar)for(var kr=0,Ke=e.getOwnKeys(v);kr<Ke.length;kr++){var Me=Ke[kr],Hr=v[Me];Hr!==void 0&&f[Me]!==Hr.assertion&&lr>=Hr.level&&(f[Me]=Hr,v[Me]=void 0)}}f.setAssertionLevel=z;function ie(lr){return a>=lr}f.shouldAssert=ie;function b(lr,Ar){return ie(lr)?!0:(v[Ar]={level:lr,assertion:f[Ar]},f[Ar]=e.noop,!1)}function M(lr,Ar){var kr=new Error(lr?"Debug Failure. ".concat(lr):"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(kr,Ar||M),kr}f.fail=M;function S(lr,Ar,kr){return M("".concat(Ar||"Unexpected node.",`\r
  11. Node `).concat(P(lr.kind)," was unexpected."),kr||S)}f.failBadSyntaxKind=S;function B(lr,Ar,kr,Ke){lr||(Ar=Ar?"False expression: ".concat(Ar):"False expression.",kr&&(Ar+=`\r
  12. Verbose Debug Information: `+(typeof kr=="string"?kr:kr())),M(Ar,Ke||B))}f.assert=B;function H(lr,Ar,kr,Ke,Me){if(lr!==Ar){var Hr=kr?Ke?"".concat(kr," ").concat(Ke):kr:"";M("Expected ".concat(lr," === ").concat(Ar,". ").concat(Hr),Me||H)}}f.assertEqual=H;function I(lr,Ar,kr,Ke){lr>=Ar&&M("Expected ".concat(lr," < ").concat(Ar,". ").concat(kr||""),Ke||I)}f.assertLessThan=I;function w(lr,Ar,kr){lr>Ar&&M("Expected ".concat(lr," <= ").concat(Ar),kr||w)}f.assertLessThanOrEqual=w;function x(lr,Ar,kr){lr<Ar&&M("Expected ".concat(lr," >= ").concat(Ar),kr||x)}f.assertGreaterThanOrEqual=x;function O(lr,Ar,kr){lr==null&&M(Ar,kr||O)}f.assertIsDefined=O;function q(lr,Ar,kr){return O(lr,Ar,kr||q),lr}f.checkDefined=q,f.assertDefined=q;function Z(lr,Ar,kr){for(var Ke=0,Me=lr;Ke<Me.length;Ke++){var Hr=Me[Ke];O(Hr,Ar,kr||Z)}}f.assertEachIsDefined=Z;function ne(lr,Ar,kr){return Z(lr,Ar,kr||ne),lr}f.checkEachDefined=ne,f.assertEachDefined=ne;function F(lr,Ar,kr){Ar===void 0&&(Ar="Illegal value:");var Ke=typeof lr=="object"&&e.hasProperty(lr,"kind")&&e.hasProperty(lr,"pos")&&P?"SyntaxKind: "+P(lr.kind):JSON.stringify(lr);return M("".concat(Ar," ").concat(Ke),kr||F)}f.assertNever=F;function Q(lr,Ar,kr,Ke){b(1,"assertEachNode")&&B(Ar===void 0||e.every(lr,Ar),kr||"Unexpected node.",function(){return"Node array did not pass test '".concat(C(Ar),"'.")},Ke||Q)}f.assertEachNode=Q;function V(lr,Ar,kr,Ke){b(1,"assertNode")&&B(lr!==void 0&&(Ar===void 0||Ar(lr)),kr||"Unexpected node.",function(){return"Node ".concat(P(lr==null?void 0:lr.kind)," did not pass test '").concat(C(Ar),"'.")},Ke||V)}f.assertNode=V;function re(lr,Ar,kr,Ke){b(1,"assertNotNode")&&B(lr===void 0||Ar===void 0||!Ar(lr),kr||"Unexpected node.",function(){return"Node ".concat(P(lr.kind)," should not have passed test '").concat(C(Ar),"'.")},Ke||re)}f.assertNotNode=re;function T(lr,Ar,kr,Ke){b(1,"assertOptionalNode")&&B(Ar===void 0||lr===void 0||Ar(lr),kr||"Unexpected node.",function(){return"Node ".concat(P(lr==null?void 0:lr.kind)," did not pass test '").concat(C(Ar),"'.")},Ke||T)}f.assertOptionalNode=T;function N(lr,Ar,kr,Ke){b(1,"assertOptionalToken")&&B(Ar===void 0||lr===void 0||lr.kind===Ar,kr||"Unexpected node.",function(){return"Node ".concat(P(lr==null?void 0:lr.kind)," was not a '").concat(P(Ar),"' token.")},Ke||N)}f.assertOptionalToken=N;function y(lr,Ar,kr){b(1,"assertMissingNode")&&B(lr===void 0,Ar||"Unexpected node.",function(){return"Node ".concat(P(lr.kind)," was unexpected'.")},kr||y)}f.assertMissingNode=y;function D(lr){}f.type=D;function C(lr){if(typeof lr!="function")return"";if(lr.hasOwnProperty("name"))return lr.name;var Ar=Function.prototype.toString.call(lr),kr=/^function\s+([\w\$]+)\s*\(/.exec(Ar);return kr?kr[1]:""}f.getFunctionName=C;function m(lr){return"{ name: ".concat(e.unescapeLeadingUnderscores(lr.escapedName),"; flags: ").concat(Ce(lr.flags),"; declarations: ").concat(e.map(lr.declarations,function(Ar){return P(Ar.kind)})," }")}f.formatSymbol=m;function u(lr,Ar,kr){lr===void 0&&(lr=0);var Ke=g(Ar);if(lr===0)return Ke.length>0&&Ke[0][0]===0?Ke[0][1]:"0";if(kr){for(var Me="",Hr=lr,ur=0,gr=Ke;ur<gr.length;ur++){var de=gr[ur],Fe=de[0],$e=de[1];if(Fe>lr)break;Fe!==0&&Fe&lr&&(Me="".concat(Me).concat(Me?"|":"").concat($e),Hr&=~Fe)}if(Hr===0)return Me}else for(var Sr=0,Pr=Ke;Sr<Pr.length;Sr++){var He=Pr[Sr],Fe=He[0],$e=He[1];if(Fe===lr)return $e}return lr.toString()}f.formatEnum=u;function g(lr){var Ar=[];for(var kr in lr){var Ke=lr[kr];typeof Ke=="number"&&Ar.push([Ke,kr])}return e.stableSort(Ar,function(Me,Hr){return e.compareValues(Me[0],Hr[0])})}function P(lr){return u(lr,e.SyntaxKind,!1)}f.formatSyntaxKind=P;function te(lr){return u(lr,e.SnippetKind,!1)}f.formatSnippetKind=te;function ue(lr){return u(lr,e.NodeFlags,!0)}f.formatNodeFlags=ue;function X(lr){return u(lr,e.ModifierFlags,!0)}f.formatModifierFlags=X;function j(lr){return u(lr,e.TransformFlags,!0)}f.formatTransformFlags=j;function Se(lr){return u(lr,e.EmitFlags,!0)}f.formatEmitFlags=Se;function Ce(lr){return u(lr,e.SymbolFlags,!0)}f.formatSymbolFlags=Ce;function R(lr){return u(lr,e.TypeFlags,!0)}f.formatTypeFlags=R;function Y(lr){return u(lr,e.SignatureFlags,!0)}f.formatSignatureFlags=Y;function U(lr){return u(lr,e.ObjectFlags,!0)}f.formatObjectFlags=U;function K(lr){return u(lr,e.FlowFlags,!0)}f.formatFlowFlags=K;var Te=!1,ge;function ke(){if(qe(),!ge)throw new Error("Debugging helpers could not be loaded.");return ge}function Pe(lr){return console.log(Ie(lr))}f.printControlFlowGraph=Pe;function Ie(lr){return ke().formatControlFlowGraph(lr)}f.formatControlFlowGraph=Ie;var Ge;function he(lr){"__debugFlowFlags"in lr||Object.defineProperties(lr,{__tsDebuggerDisplay:{value:function(){var Ar=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",kr=this.flags&~(2048-1);return"".concat(Ar).concat(kr?" (".concat(K(kr),")"):"")}},__debugFlowFlags:{get:function(){return u(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return Ie(this)}}})}function ve(lr){Te&&(typeof Object.setPrototypeOf=="function"?(Ge||(Ge=Object.create(Object.prototype),he(Ge)),Object.setPrototypeOf(lr,Ge)):he(lr))}f.attachFlowNodeDebugInfo=ve;var Ve;function _e(lr){"__tsDebuggerDisplay"in lr||Object.defineProperties(lr,{__tsDebuggerDisplay:{value:function(Ar){return Ar=String(Ar).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray ".concat(Ar)}}})}function Le(lr){Te&&(typeof Object.setPrototypeOf=="function"?(Ve||(Ve=Object.create(Array.prototype),_e(Ve)),Object.setPrototypeOf(lr,Ve)):_e(lr))}f.attachNodeArrayDebugInfo=Le;function qe(){if(Te)return;var lr,Ar;function kr(){return lr===void 0&&typeof WeakMap=="function"&&(lr=new WeakMap),lr}function Ke(){return Ar===void 0&&typeof WeakMap=="function"&&(Ar=new WeakMap),Ar}Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var $e=this.flags&33554432?"TransientSymbol":"Symbol",Sr=this.flags&-33554433;return"".concat($e," '").concat(e.symbolName(this),"'").concat(Sr?" (".concat(Ce(Sr),")"):"")}},__debugFlags:{get:function(){return Ce(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var $e=this.flags&98304?"NullableType":this.flags&384?"LiteralType ".concat(JSON.stringify(this.value)):this.flags&2048?"LiteralType ".concat(this.value.negative?"-":"").concat(this.value.base10Value,"n"):this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&67359327?"IntrinsicType ".concat(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",Sr=this.flags&524288?this.objectFlags&-1344:0;return"".concat($e).concat(this.symbol?" '".concat(e.symbolName(this.symbol),"'"):"").concat(Sr?" (".concat(U(Sr),")"):"")}},__debugFlags:{get:function(){return R(this.flags)}},__debugObjectFlags:{get:function(){return this.flags&524288?U(this.objectFlags):""}},__debugTypeToString:{value:function(){var $e=kr(),Sr=$e==null?void 0:$e.get(this);return Sr===void 0&&(Sr=this.checker.typeToString(this),$e==null||$e.set(this,Sr)),Sr}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return Y(this.flags)}},__debugSignatureToString:{value:function(){var $e;return($e=this.checker)===null||$e===void 0?void 0:$e.signatureToString(this)}}});for(var Me=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()],Hr=0,ur=Me;Hr<ur.length;Hr++){var gr=ur[Hr];gr.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(gr.prototype,{__tsDebuggerDisplay:{value:function(){var $e=e.isGeneratedIdentifier(this)?"GeneratedIdentifier":e.isIdentifier(this)?"Identifier '".concat(e.idText(this),"'"):e.isPrivateIdentifier(this)?"PrivateIdentifier '".concat(e.idText(this),"'"):e.isStringLiteral(this)?"StringLiteral ".concat(JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")):e.isNumericLiteral(this)?"NumericLiteral ".concat(this.text):e.isBigIntLiteral(this)?"BigIntLiteral ".concat(this.text,"n"):e.isTypeParameterDeclaration(this)?"TypeParameterDeclaration":e.isParameter(this)?"ParameterDeclaration":e.isConstructorDeclaration(this)?"ConstructorDeclaration":e.isGetAccessorDeclaration(this)?"GetAccessorDeclaration":e.isSetAccessorDeclaration(this)?"SetAccessorDeclaration":e.isCallSignatureDeclaration(this)?"CallSignatureDeclaration":e.isConstructSignatureDeclaration(this)?"ConstructSignatureDeclaration":e.isIndexSignatureDeclaration(this)?"IndexSignatureDeclaration":e.isTypePredicateNode(this)?"TypePredicateNode":e.isTypeReferenceNode(this)?"TypeReferenceNode":e.isFunctionTypeNode(this)?"FunctionTypeNode":e.isConstructorTypeNode(this)?"ConstructorTypeNode":e.isTypeQueryNode(this)?"TypeQueryNode":e.isTypeLiteralNode(this)?"TypeLiteralNode":e.isArrayTypeNode(this)?"ArrayTypeNode":e.isTupleTypeNode(this)?"TupleTypeNode":e.isOptionalTypeNode(this)?"OptionalTypeNode":e.isRestTypeNode(this)?"RestTypeNode":e.isUnionTypeNode(this)?"UnionTypeNode":e.isIntersectionTypeNode(this)?"IntersectionTypeNode":e.isConditionalTypeNode(this)?"ConditionalTypeNode":e.isInferTypeNode(this)?"InferTypeNode":e.isParenthesizedTypeNode(this)?"ParenthesizedTypeNode":e.isThisTypeNode(this)?"ThisTypeNode":e.isTypeOperatorNode(this)?"TypeOperatorNode":e.isIndexedAccessTypeNode(this)?"IndexedAccessTypeNode":e.isMappedTypeNode(this)?"MappedTypeNode":e.isLiteralTypeNode(this)?"LiteralTypeNode":e.isNamedTupleMember(this)?"NamedTupleMember":e.isImportTypeNode(this)?"ImportTypeNode":P(this.kind);return"".concat($e).concat(this.flags?" (".concat(ue(this.flags),")"):"")}},__debugKind:{get:function(){return P(this.kind)}},__debugNodeFlags:{get:function(){return ue(this.flags)}},__debugModifierFlags:{get:function(){return X(e.getEffectiveModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return j(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return Se(e.getEmitFlags(this))}},__debugGetText:{value:function($e){if(e.nodeIsSynthesized(this))return"";var Sr=Ke(),Pr=Sr==null?void 0:Sr.get(this);if(Pr===void 0){var He=e.getParseTreeNode(this),pr=He&&e.getSourceFileOfNode(He);Pr=pr?e.getSourceTextOfNodeFromSourceFile(pr,He,$e):"",Sr==null||Sr.set(this,Pr)}return Pr}}})}try{if(e.sys&&e.sys.require){var de=e.getDirectoryPath(e.resolvePath(e.sys.getExecutingFilePath())),Fe=void 0;Fe.error||(Fe.module.init(e),ge=Fe.module)}}catch{}Te=!0}f.enableDebugInfo=qe;function Xe(lr,Ar,kr,Ke,Me){var Hr=Ar?"DeprecationError: ":"DeprecationWarning: ";return Hr+="'".concat(lr,"' "),Hr+=Ke?"has been deprecated since v".concat(Ke):"is deprecated",Hr+=Ar?" and can no longer be used.":kr?" and will no longer be usable after v".concat(kr,"."):".",Hr+=Me?" ".concat(e.formatStringFromArgs(Me,[lr],0)):"",Hr}function De(lr,Ar,kr,Ke){var Me=Xe(lr,!0,Ar,kr,Ke);return function(){throw new TypeError(Me)}}function Ae(lr,Ar,kr,Ke){var Me=!1;return function(){Me||(h.warn(Xe(lr,!1,Ar,kr,Ke)),Me=!0)}}function Ye(lr,Ar){var kr,Ke;Ar===void 0&&(Ar={});var Me=typeof Ar.typeScriptVersion=="string"?new e.Version(Ar.typeScriptVersion):(kr=Ar.typeScriptVersion)!==null&&kr!==void 0?kr:d(),Hr=typeof Ar.errorAfter=="string"?new e.Version(Ar.errorAfter):Ar.errorAfter,ur=typeof Ar.warnAfter=="string"?new e.Version(Ar.warnAfter):Ar.warnAfter,gr=typeof Ar.since=="string"?new e.Version(Ar.since):(Ke=Ar.since)!==null&&Ke!==void 0?Ke:ur,de=Ar.error||Hr&&Me.compareTo(Hr)<=0,Fe=!ur||Me.compareTo(ur)>=0;return de?De(lr,Hr,gr,Ar.message):Fe?Ae(lr,Hr,gr,Ar.message):e.noop}function Dr(lr,Ar){return function(){return lr(),Ar.apply(this,arguments)}}function br(lr,Ar){var kr=Ye(C(lr),Ar);return Dr(kr,lr)}f.deprecate=br}(e.Debug||(e.Debug={}))}(jr||(jr={})),function(e){var n=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,f=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,p=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,a=/^(0|[1-9]\d*)$/,d=function(){function Q(V,re,T,N,y){if(re===void 0&&(re=0),T===void 0&&(T=0),N===void 0&&(N=""),y===void 0&&(y=""),typeof V=="string"){var D=e.Debug.checkDefined(k(V),"Invalid version");V=D.major,re=D.minor,T=D.patch,N=D.prerelease,y=D.build}e.Debug.assert(V>=0,"Invalid argument: major"),e.Debug.assert(re>=0,"Invalid argument: minor"),e.Debug.assert(T>=0,"Invalid argument: patch"),e.Debug.assert(!N||f.test(N),"Invalid argument: prerelease"),e.Debug.assert(!y||p.test(y),"Invalid argument: build"),this.major=V,this.minor=re,this.patch=T,this.prerelease=N?N.split("."):e.emptyArray,this.build=y?y.split("."):e.emptyArray}return Q.tryParse=function(V){var re=k(V);if(re){var T=re.major,N=re.minor,y=re.patch,D=re.prerelease,C=re.build;return new Q(T,N,y,D,C)}},Q.prototype.compareTo=function(V){return this===V?0:V===void 0?1:e.compareValues(this.major,V.major)||e.compareValues(this.minor,V.minor)||e.compareValues(this.patch,V.patch)||J(this.prerelease,V.prerelease)},Q.prototype.increment=function(V){switch(V){case"major":return new Q(this.major+1,0,0);case"minor":return new Q(this.major,this.minor+1,0);case"patch":return new Q(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(V)}},Q.prototype.toString=function(){var V="".concat(this.major,".").concat(this.minor,".").concat(this.patch);return e.some(this.prerelease)&&(V+="-".concat(this.prerelease.join("."))),e.some(this.build)&&(V+="+".concat(this.build.join("."))),V},Q.zero=new Q(0,0,0),Q}();e.Version=d;function k(Q){var V=n.exec(Q);if(V){var re=V[1],T=V[2],N=T===void 0?"0":T,y=V[3],D=y===void 0?"0":y,C=V[4],m=C===void 0?"":C,u=V[5],g=u===void 0?"":u;if(!(m&&!f.test(m))&&!(g&&!p.test(g)))return{major:parseInt(re,10),minor:parseInt(N,10),patch:parseInt(D,10),prerelease:m,build:g}}}function J(Q,V){if(Q===V)return 0;if(Q.length===0)return V.length===0?0:1;if(V.length===0)return-1;for(var re=Math.min(Q.length,V.length),T=0;T<re;T++){var N=Q[T],y=V[T];if(N!==y){var D=a.test(N),C=a.test(y);if(D||C){if(D!==C)return D?-1:1;var m=e.compareValues(+N,+y);if(m)return m}else{var m=e.compareStringsCaseSensitive(N,y);if(m)return m}}}return e.compareValues(Q.length,V.length)}var h=function(){function Q(V){this._alternatives=V?e.Debug.checkDefined(M(V),"Invalid range spec."):e.emptyArray}return Q.tryParse=function(V){var re=M(V);if(re){var T=new Q("");return T._alternatives=re,T}},Q.prototype.test=function(V){return typeof V=="string"&&(V=new d(V)),x(V,this._alternatives)},Q.prototype.toString=function(){return Z(this._alternatives)},Q}();e.VersionRange=h;var v=/\|\|/g,A=/\s+/g,z=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,ie=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,b=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function M(Q){for(var V=[],re=0,T=e.trimString(Q).split(v);re<T.length;re++){var N=T[re];if(N){var y=[];N=e.trimString(N);var D=ie.exec(N);if(D){if(!B(D[1],D[2],y))return}else for(var C=0,m=N.split(A);C<m.length;C++){var u=m[C],g=b.exec(e.trimString(u));if(!g||!H(g[1],g[2],y))return}V.push(y)}}return V}function S(Q){var V=z.exec(Q);if(V){var re=V[1],T=V[2],N=T===void 0?"*":T,y=V[3],D=y===void 0?"*":y,C=V[4],m=V[5],u=new d(I(re)?0:parseInt(re,10),I(re)||I(N)?0:parseInt(N,10),I(re)||I(N)||I(D)?0:parseInt(D,10),C,m);return{version:u,major:re,minor:N,patch:D}}}function B(Q,V,re){var T=S(Q);if(!T)return!1;var N=S(V);return N?(I(T.major)||re.push(w(">=",T.version)),I(N.major)||re.push(I(N.minor)?w("<",N.version.increment("major")):I(N.patch)?w("<",N.version.increment("minor")):w("<=",N.version)),!0):!1}function H(Q,V,re){var T=S(V);if(!T)return!1;var N=T.version,y=T.major,D=T.minor,C=T.patch;if(I(y))(Q==="<"||Q===">")&&re.push(w("<",d.zero));else switch(Q){case"~":re.push(w(">=",N)),re.push(w("<",N.increment(I(D)?"major":"minor")));break;case"^":re.push(w(">=",N)),re.push(w("<",N.increment(N.major>0||I(D)?"major":N.minor>0||I(C)?"minor":"patch")));break;case"<":case">=":re.push(w(Q,N));break;case"<=":case">":re.push(I(D)?w(Q==="<="?"<":">=",N.increment("major")):I(C)?w(Q==="<="?"<":">=",N.increment("minor")):w(Q,N));break;case"=":case void 0:I(D)||I(C)?(re.push(w(">=",N)),re.push(w("<",N.increment(I(D)?"major":"minor")))):re.push(w("=",N));break;default:return!1}return!0}function I(Q){return Q==="*"||Q==="x"||Q==="X"}function w(Q,V){return{operator:Q,operand:V}}function x(Q,V){if(V.length===0)return!0;for(var re=0,T=V;re<T.length;re++){var N=T[re];if(O(Q,N))return!0}return!1}function O(Q,V){for(var re=0,T=V;re<T.length;re++){var N=T[re];if(!q(Q,N.operator,N.operand))return!1}return!0}function q(Q,V,re){var T=Q.compareTo(re);switch(V){case"<":return T<0;case"<=":return T<=0;case">":return T>0;case">=":return T>=0;case"=":return T===0;default:return e.Debug.assertNever(V)}}function Z(Q){return e.map(Q,ne).join(" || ")||"*"}function ne(Q){return e.map(Q,F).join(" ")}function F(Q){return"".concat(Q.operator).concat(Q.operand)}}(jr||(jr={})),function(e){function n(J,h){return typeof J=="object"&&typeof J.timeOrigin=="number"&&typeof J.mark=="function"&&typeof J.measure=="function"&&typeof J.now=="function"&&typeof h=="function"}function f(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&n(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function p(){if(typeof process<"u"&&process.nextTick&&!process.browser&&typeof module=="object"&&!1)try{var J,h,v,A;if(n(v,A))var z,ie}catch(b){}}var a=f()||p(),d=a==null?void 0:a.performance;function k(){return a}e.tryGetNativePerformanceHooks=k,e.timestamp=d?function(){return d.now()}:Date.now?Date.now:function(){return+new Date}}(jr||(jr={})),function(e){(function(n){var f,p;function a(w,x,O,q){return w?d(x,O,q):n.nullTimer}n.createTimerIf=a;function d(w,x,O){var q=0;return{enter:Z,exit:ne};function Z(){++q===1&&z(x)}function ne(){--q===0?(z(O),ie(w,x,O)):q<0&&e.Debug.fail("enter/exit count does not match.")}}n.createTimer=d,n.nullTimer={enter:e.noop,exit:e.noop};var k=!1,J=e.timestamp(),h=new e.Map,v=new e.Map,A=new e.Map;function z(w){var x;if(k){var O=(x=v.get(w))!==null&&x!==void 0?x:0;v.set(w,O+1),h.set(w,e.timestamp()),p==null||p.mark(w)}}n.mark=z;function ie(w,x,O){var q,Z;if(k){var ne=(q=O!==void 0?h.get(O):void 0)!==null&&q!==void 0?q:e.timestamp(),F=(Z=x!==void 0?h.get(x):void 0)!==null&&Z!==void 0?Z:J,Q=A.get(w)||0;A.set(w,Q+(ne-F)),p==null||p.measure(w,x,O)}}n.measure=ie;function b(w){return v.get(w)||0}n.getCount=b;function M(w){return A.get(w)||0}n.getDuration=M;function S(w){A.forEach(function(x,O){return w(O,x)})}n.forEachMeasure=S;function B(){return k}n.isEnabled=B;function H(w){var x;return w===void 0&&(w=e.sys),k||(k=!0,f||(f=e.tryGetNativePerformanceHooks()),f&&(J=f.performance.timeOrigin,(f.shouldWriteNativeEvents||!((x=w==null?void 0:w.cpuProfilingEnabled)===null||x===void 0)&&x.call(w)||w!=null&&w.debugMode)&&(p=f.performance))),!0}n.enable=H;function I(){k&&(h.clear(),v.clear(),A.clear(),p=void 0,k=!1)}n.disable=I})(e.performance||(e.performance={}))}(jr||(jr={})),function(e){var n,f={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop},p;try{var a=(n={}.TS_ETW_MODULE_PATH)!==null&&n!==void 0?n:"./node_modules/@microsoft/typescript-etw";p=void 0}catch{p=void 0}e.perfLogger=p&&p.logEvent?p:f}(jr||(jr={})),function(e){var n;(function(f){var p,a=0,d=0,k,J=[],h,v=[];function A(ne,F,Q){if(e.Debug.assert(!e.tracing,"Tracing already started"),p===void 0)try{p=void 0}catch(y){throw new Error(`tracing requires having fs
  13. (original error: `.concat(y.message||y,")"))}k=ne,J.length=0,h===void 0&&(h=e.combinePaths(F,"legend.json")),p.existsSync(F)||p.mkdirSync(F,{recursive:!0});var V=k==="build"?".".concat(process.pid,"-").concat(++a):k==="server"?".".concat(process.pid):"",re=e.combinePaths(F,"trace".concat(V,".json")),T=e.combinePaths(F,"types".concat(V,".json"));v.push({configFilePath:Q,tracePath:re,typesPath:T}),d=p.openSync(re,"w"),e.tracing=f;var N={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};p.writeSync(d,`[
  14. `+[Rn({name:"process_name",args:{name:"tsc"}},N),Rn({name:"thread_name",args:{name:"Main"}},N),Rn(Rn({name:"TracingStartedInBrowser"},N),{cat:"disabled-by-default-devtools.timeline"})].map(function(y){return JSON.stringify(y)}).join(`,
  15. `))}f.startTracing=A;function z(){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!J.length==(k!=="server")),p.writeSync(d,`
  16. ]
  17. `),p.closeSync(d),e.tracing=void 0,J.length?q(J):v[v.length-1].typesPath=void 0}f.stopTracing=z;function ie(ne){k!=="server"&&J.push(ne)}f.recordType=ie,function(ne){ne.Parse="parse",ne.Program="program",ne.Bind="bind",ne.Check="check",ne.CheckTypes="checkTypes",ne.Emit="emit",ne.Session="session"}(f.Phase||(f.Phase={}));function b(ne,F,Q){x("I",ne,F,Q,'"s":"g"')}f.instant=b;var M=[];function S(ne,F,Q,V){V===void 0&&(V=!1),V&&x("B",ne,F,Q),M.push({phase:ne,name:F,args:Q,time:1e3*e.timestamp(),separateBeginAndEnd:V})}f.push=S;function B(){e.Debug.assert(M.length>0),w(M.length-1,1e3*e.timestamp()),M.length--}f.pop=B;function H(){for(var ne=1e3*e.timestamp(),F=M.length-1;F>=0;F--)w(F,ne);M.length=0}f.popAll=H;var I=1e3*10;function w(ne,F){var Q=M[ne],V=Q.phase,re=Q.name,T=Q.args,N=Q.time,y=Q.separateBeginAndEnd;y?x("E",V,re,T,void 0,F):I-N%I<=F-N&&x("X",V,re,T,'"dur":'.concat(F-N),N)}function x(ne,F,Q,V,re,T){T===void 0&&(T=1e3*e.timestamp()),!(k==="server"&&F==="checkTypes")&&(e.performance.mark("beginTracing"),p.writeSync(d,`,
  18. {"pid":1,"tid":1,"ph":"`.concat(ne,'","cat":"').concat(F,'","ts":').concat(T,',"name":"').concat(Q,'"')),re&&p.writeSync(d,",".concat(re)),V&&p.writeSync(d,',"args":'.concat(JSON.stringify(V))),p.writeSync(d,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function O(ne){var F=e.getSourceFileOfNode(ne);return F?{path:F.path,start:Q(e.getLineAndCharacterOfPosition(F,ne.pos)),end:Q(e.getLineAndCharacterOfPosition(F,ne.end))}:void 0;function Q(V){return{line:V.line+1,character:V.character+1}}}function q(ne){var F,Q,V,re,T,N,y,D,C,m,u,g,P,te,ue,X,j,Se,Ce,R,Y,U;e.performance.mark("beginDumpTypes");var K=v[v.length-1].typesPath,Te=p.openSync(K,"w"),ge=new e.Map;p.writeSync(Te,"[");for(var ke=ne.length,Pe=0;Pe<ke;Pe++){var Ie=ne[Pe],Ge=Ie.objectFlags,he=(F=Ie.aliasSymbol)!==null&&F!==void 0?F:Ie.symbol,ve=void 0;if(Ge&16|Ie.flags&2944)try{ve=(Q=Ie.checker)===null||Q===void 0?void 0:Q.typeToString(Ie)}catch{ve=void 0}var Ve={};if(Ie.flags&8388608){var _e=Ie;Ve={indexedAccessObjectType:(V=_e.objectType)===null||V===void 0?void 0:V.id,indexedAccessIndexType:(re=_e.indexType)===null||re===void 0?void 0:re.id}}var Le={};if(Ge&4){var qe=Ie;Le={instantiatedType:(T=qe.target)===null||T===void 0?void 0:T.id,typeArguments:(N=qe.resolvedTypeArguments)===null||N===void 0?void 0:N.map(function(Hr){return Hr.id}),referenceLocation:O(qe.node)}}var Xe={};if(Ie.flags&16777216){var De=Ie;Xe={conditionalCheckType:(y=De.checkType)===null||y===void 0?void 0:y.id,conditionalExtendsType:(D=De.extendsType)===null||D===void 0?void 0:D.id,conditionalTrueType:(m=(C=De.resolvedTrueType)===null||C===void 0?void 0:C.id)!==null&&m!==void 0?m:-1,conditionalFalseType:(g=(u=De.resolvedFalseType)===null||u===void 0?void 0:u.id)!==null&&g!==void 0?g:-1}}var Ae={};if(Ie.flags&33554432){var Ye=Ie;Ae={substitutionBaseType:(P=Ye.baseType)===null||P===void 0?void 0:P.id,substituteType:(te=Ye.substitute)===null||te===void 0?void 0:te.id}}var Dr={};if(Ge&1024){var br=Ie;Dr={reverseMappedSourceType:(ue=br.source)===null||ue===void 0?void 0:ue.id,reverseMappedMappedType:(X=br.mappedType)===null||X===void 0?void 0:X.id,reverseMappedConstraintType:(j=br.constraintType)===null||j===void 0?void 0:j.id}}var lr={};if(Ge&256){var Ar=Ie;lr={evolvingArrayElementType:Ar.elementType.id,evolvingArrayFinalType:(Se=Ar.finalArrayType)===null||Se===void 0?void 0:Se.id}}var kr=void 0,Ke=Ie.checker.getRecursionIdentity(Ie);Ke&&(kr=ge.get(Ke),kr||(kr=ge.size,ge.set(Ke,kr)));var Me=Rn(Rn(Rn(Rn(Rn(Rn(Rn({id:Ie.id,intrinsicName:Ie.intrinsicName,symbolName:(he==null?void 0:he.escapedName)&&e.unescapeLeadingUnderscores(he.escapedName),recursionId:kr,isTuple:Ge&8?!0:void 0,unionTypes:Ie.flags&1048576?(Ce=Ie.types)===null||Ce===void 0?void 0:Ce.map(function(Hr){return Hr.id}):void 0,intersectionTypes:Ie.flags&2097152?Ie.types.map(function(Hr){return Hr.id}):void 0,aliasTypeArguments:(R=Ie.aliasTypeArguments)===null||R===void 0?void 0:R.map(function(Hr){return Hr.id}),keyofType:Ie.flags&4194304?(Y=Ie.type)===null||Y===void 0?void 0:Y.id:void 0},Ve),Le),Xe),Ae),Dr),lr),{destructuringPattern:O(Ie.pattern),firstDeclaration:O((U=he==null?void 0:he.declarations)===null||U===void 0?void 0:U[0]),flags:e.Debug.formatTypeFlags(Ie.flags).split("|"),display:ve});p.writeSync(Te,JSON.stringify(Me)),Pe<ke-1&&p.writeSync(Te,`,
  19. `)}p.writeSync(Te,`]
  20. `),p.closeSync(Te),e.performance.mark("endDumpTypes"),e.performance.measure("Dump types","beginDumpTypes","endDumpTypes")}function Z(){h&&p.writeFileSync(h,JSON.stringify(v))}f.dumpLegend=Z})(n||(n={})),e.startTracing=n.startTracing,e.dumpTracingLegend=n.dumpLegend}(jr||(jr={})),function(e){(function(a){a[a.Unknown=0]="Unknown",a[a.EndOfFileToken=1]="EndOfFileToken",a[a.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",a[a.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",a[a.NewLineTrivia=4]="NewLineTrivia",a[a.WhitespaceTrivia=5]="WhitespaceTrivia",a[a.ShebangTrivia=6]="ShebangTrivia",a[a.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",a[a.NumericLiteral=8]="NumericLiteral",a[a.BigIntLiteral=9]="BigIntLiteral",a[a.StringLiteral=10]="StringLiteral",a[a.JsxText=11]="JsxText",a[a.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",a[a.RegularExpressionLiteral=13]="RegularExpressionLiteral",a[a.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",a[a.TemplateHead=15]="TemplateHead",a[a.TemplateMiddle=16]="TemplateMiddle",a[a.TemplateTail=17]="TemplateTail",a[a.OpenBraceToken=18]="OpenBraceToken",a[a.CloseBraceToken=19]="CloseBraceToken",a[a.OpenParenToken=20]="OpenParenToken",a[a.CloseParenToken=21]="CloseParenToken",a[a.OpenBracketToken=22]="OpenBracketToken",a[a.CloseBracketToken=23]="CloseBracketToken",a[a.DotToken=24]="DotToken",a[a.DotDotDotToken=25]="DotDotDotToken",a[a.SemicolonToken=26]="SemicolonToken",a[a.CommaToken=27]="CommaToken",a[a.QuestionDotToken=28]="QuestionDotToken",a[a.LessThanToken=29]="LessThanToken",a[a.LessThanSlashToken=30]="LessThanSlashToken",a[a.GreaterThanToken=31]="GreaterThanToken",a[a.LessThanEqualsToken=32]="LessThanEqualsToken",a[a.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",a[a.EqualsEqualsToken=34]="EqualsEqualsToken",a[a.ExclamationEqualsToken=35]="ExclamationEqualsToken",a[a.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",a[a.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",a[a.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",a[a.PlusToken=39]="PlusToken",a[a.MinusToken=40]="MinusToken",a[a.AsteriskToken=41]="AsteriskToken",a[a.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",a[a.SlashToken=43]="SlashToken",a[a.PercentToken=44]="PercentToken",a[a.PlusPlusToken=45]="PlusPlusToken",a[a.MinusMinusToken=46]="MinusMinusToken",a[a.LessThanLessThanToken=47]="LessThanLessThanToken",a[a.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",a[a.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",a[a.AmpersandToken=50]="AmpersandToken",a[a.BarToken=51]="BarToken",a[a.CaretToken=52]="CaretToken",a[a.ExclamationToken=53]="ExclamationToken",a[a.TildeToken=54]="TildeToken",a[a.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",a[a.BarBarToken=56]="BarBarToken",a[a.QuestionToken=57]="QuestionToken",a[a.ColonToken=58]="ColonToken",a[a.AtToken=59]="AtToken",a[a.QuestionQuestionToken=60]="QuestionQuestionToken",a[a.BacktickToken=61]="BacktickToken",a[a.HashToken=62]="HashToken",a[a.EqualsToken=63]="EqualsToken",a[a.PlusEqualsToken=64]="PlusEqualsToken",a[a.MinusEqualsToken=65]="MinusEqualsToken",a[a.AsteriskEqualsToken=66]="AsteriskEqualsToken",a[a.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",a[a.SlashEqualsToken=68]="SlashEqualsToken",a[a.PercentEqualsToken=69]="PercentEqualsToken",a[a.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",a[a.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",a[a.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",a[a.AmpersandEqualsToken=73]="AmpersandEqualsToken",a[a.BarEqualsToken=74]="BarEqualsToken",a[a.BarBarEqualsToken=75]="BarBarEqualsToken",a[a.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",a[a.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",a[a.CaretEqualsToken=78]="CaretEqualsToken",a[a.Identifier=79]="Identifier",a[a.PrivateIdentifier=80]="PrivateIdentifier",a[a.BreakKeyword=81]="BreakKeyword",a[a.CaseKeyword=82]="CaseKeyword",a[a.CatchKeyword=83]="CatchKeyword",a[a.ClassKeyword=84]="ClassKeyword",a[a.ConstKeyword=85]="ConstKeyword",a[a.ContinueKeyword=86]="ContinueKeyword",a[a.DebuggerKeyword=87]="DebuggerKeyword",a[a.DefaultKeyword=88]="DefaultKeyword",a[a.DeleteKeyword=89]="DeleteKeyword",a[a.DoKeyword=90]="DoKeyword",a[a.ElseKeyword=91]="ElseKeyword",a[a.EnumKeyword=92]="EnumKeyword",a[a.ExportKeyword=93]="ExportKeyword",a[a.ExtendsKeyword=94]="ExtendsKeyword",a[a.FalseKeyword=95]="FalseKeyword",a[a.FinallyKeyword=96]="FinallyKeyword",a[a.ForKeyword=97]="ForKeyword",a[a.FunctionKeyword=98]="FunctionKeyword",a[a.IfKeyword=99]="IfKeyword",a[a.ImportKeyword=100]="ImportKeyword",a[a.InKeyword=101]="InKeyword",a[a.InstanceOfKeyword=102]="InstanceOfKeyword",a[a.NewKeyword=103]="NewKeyword",a[a.NullKeyword=104]="NullKeyword",a[a.ReturnKeyword=105]="ReturnKeyword",a[a.SuperKeyword=106]="SuperKeyword",a[a.SwitchKeyword=107]="SwitchKeyword",a[a.ThisKeyword=108]="ThisKeyword",a[a.ThrowKeyword=109]="ThrowKeyword",a[a.TrueKeyword=110]="TrueKeyword",a[a.TryKeyword=111]="TryKeyword",a[a.TypeOfKeyword=112]="TypeOfKeyword",a[a.VarKeyword=113]="VarKeyword",a[a.VoidKeyword=114]="VoidKeyword",a[a.WhileKeyword=115]="WhileKeyword",a[a.WithKeyword=116]="WithKeyword",a[a.ImplementsKeyword=117]="ImplementsKeyword",a[a.InterfaceKeyword=118]="InterfaceKeyword",a[a.LetKeyword=119]="LetKeyword",a[a.PackageKeyword=120]="PackageKeyword",a[a.PrivateKeyword=121]="PrivateKeyword",a[a.ProtectedKeyword=122]="ProtectedKeyword",a[a.PublicKeyword=123]="PublicKeyword",a[a.StaticKeyword=124]="StaticKeyword",a[a.YieldKeyword=125]="YieldKeyword",a[a.AbstractKeyword=126]="AbstractKeyword",a[a.AsKeyword=127]="AsKeyword",a[a.AssertsKeyword=128]="AssertsKeyword",a[a.AssertKeyword=129]="AssertKeyword",a[a.AnyKeyword=130]="AnyKeyword",a[a.AsyncKeyword=131]="AsyncKeyword",a[a.AwaitKeyword=132]="AwaitKeyword",a[a.BooleanKeyword=133]="BooleanKeyword",a[a.ConstructorKeyword=134]="ConstructorKeyword",a[a.DeclareKeyword=135]="DeclareKeyword",a[a.GetKeyword=136]="GetKeyword",a[a.InferKeyword=137]="InferKeyword",a[a.IntrinsicKeyword=138]="IntrinsicKeyword",a[a.IsKeyword=139]="IsKeyword",a[a.KeyOfKeyword=140]="KeyOfKeyword",a[a.ModuleKeyword=141]="ModuleKeyword",a[a.NamespaceKeyword=142]="NamespaceKeyword",a[a.NeverKeyword=143]="NeverKeyword",a[a.ReadonlyKeyword=144]="ReadonlyKeyword",a[a.RequireKeyword=145]="RequireKeyword",a[a.NumberKeyword=146]="NumberKeyword",a[a.ObjectKeyword=147]="ObjectKeyword",a[a.SetKeyword=148]="SetKeyword",a[a.StringKeyword=149]="StringKeyword",a[a.SymbolKeyword=150]="SymbolKeyword",a[a.TypeKeyword=151]="TypeKeyword",a[a.UndefinedKeyword=152]="UndefinedKeyword",a[a.UniqueKeyword=153]="UniqueKeyword",a[a.UnknownKeyword=154]="UnknownKeyword",a[a.FromKeyword=155]="FromKeyword",a[a.GlobalKeyword=156]="GlobalKeyword",a[a.BigIntKeyword=157]="BigIntKeyword",a[a.OverrideKeyword=158]="OverrideKeyword",a[a.OfKeyword=159]="OfKeyword",a[a.QualifiedName=160]="QualifiedName",a[a.ComputedPropertyName=161]="ComputedPropertyName",a[a.TypeParameter=162]="TypeParameter",a[a.Parameter=163]="Parameter",a[a.Decorator=164]="Decorator",a[a.PropertySignature=165]="PropertySignature",a[a.PropertyDeclaration=166]="PropertyDeclaration",a[a.MethodSignature=167]="MethodSignature",a[a.MethodDeclaration=168]="MethodDeclaration",a[a.ClassStaticBlockDeclaration=169]="ClassStaticBlockDeclaration",a[a.Constructor=170]="Constructor",a[a.GetAccessor=171]="GetAccessor",a[a.SetAccessor=172]="SetAccessor",a[a.CallSignature=173]="CallSignature",a[a.ConstructSignature=174]="ConstructSignature",a[a.IndexSignature=175]="IndexSignature",a[a.TypePredicate=176]="TypePredicate",a[a.TypeReference=177]="TypeReference",a[a.FunctionType=178]="FunctionType",a[a.ConstructorType=179]="ConstructorType",a[a.TypeQuery=180]="TypeQuery",a[a.TypeLiteral=181]="TypeLiteral",a[a.ArrayType=182]="ArrayType",a[a.TupleType=183]="TupleType",a[a.OptionalType=184]="OptionalType",a[a.RestType=185]="RestType",a[a.UnionType=186]="UnionType",a[a.IntersectionType=187]="IntersectionType",a[a.ConditionalType=188]="ConditionalType",a[a.InferType=189]="InferType",a[a.ParenthesizedType=190]="ParenthesizedType",a[a.ThisType=191]="ThisType",a[a.TypeOperator=192]="TypeOperator",a[a.IndexedAccessType=193]="IndexedAccessType",a[a.MappedType=194]="MappedType",a[a.LiteralType=195]="LiteralType",a[a.NamedTupleMember=196]="NamedTupleMember",a[a.TemplateLiteralType=197]="TemplateLiteralType",a[a.TemplateLiteralTypeSpan=198]="TemplateLiteralTypeSpan",a[a.ImportType=199]="ImportType",a[a.ObjectBindingPattern=200]="ObjectBindingPattern",a[a.ArrayBindingPattern=201]="ArrayBindingPattern",a[a.BindingElement=202]="BindingElement",a[a.ArrayLiteralExpression=203]="ArrayLiteralExpression",a[a.ObjectLiteralExpression=204]="ObjectLiteralExpression",a[a.PropertyAccessExpression=205]="PropertyAccessExpression",a[a.ElementAccessExpression=206]="ElementAccessExpression",a[a.CallExpression=207]="CallExpression",a[a.NewExpression=208]="NewExpression",a[a.TaggedTemplateExpression=209]="TaggedTemplateExpression",a[a.TypeAssertionExpression=210]="TypeAssertionExpression",a[a.ParenthesizedExpression=211]="ParenthesizedExpression",a[a.FunctionExpression=212]="FunctionExpression",a[a.ArrowFunction=213]="ArrowFunction",a[a.DeleteExpression=214]="DeleteExpression",a[a.TypeOfExpression=215]="TypeOfExpression",a[a.VoidExpression=216]="VoidExpression",a[a.AwaitExpression=217]="AwaitExpression",a[a.PrefixUnaryExpression=218]="PrefixUnaryExpression",a[a.PostfixUnaryExpression=219]="PostfixUnaryExpression",a[a.BinaryExpression=220]="BinaryExpression",a[a.ConditionalExpression=221]="ConditionalExpression",a[a.TemplateExpression=222]="TemplateExpression",a[a.YieldExpression=223]="YieldExpression",a[a.SpreadElement=224]="SpreadElement",a[a.ClassExpression=225]="ClassExpression",a[a.OmittedExpression=226]="OmittedExpression",a[a.ExpressionWithTypeArguments=227]="ExpressionWithTypeArguments",a[a.AsExpression=228]="AsExpression",a[a.NonNullExpression=229]="NonNullExpression",a[a.MetaProperty=230]="MetaProperty",a[a.SyntheticExpression=231]="SyntheticExpression",a[a.TemplateSpan=232]="TemplateSpan",a[a.SemicolonClassElement=233]="SemicolonClassElement",a[a.Block=234]="Block",a[a.EmptyStatement=235]="EmptyStatement",a[a.VariableStatement=236]="VariableStatement",a[a.ExpressionStatement=237]="ExpressionStatement",a[a.IfStatement=238]="IfStatement",a[a.DoStatement=239]="DoStatement",a[a.WhileStatement=240]="WhileStatement",a[a.ForStatement=241]="ForStatement",a[a.ForInStatement=242]="ForInStatement",a[a.ForOfStatement=243]="ForOfStatement",a[a.ContinueStatement=244]="ContinueStatement",a[a.BreakStatement=245]="BreakStatement",a[a.ReturnStatement=246]="ReturnStatement",a[a.WithStatement=247]="WithStatement",a[a.SwitchStatement=248]="SwitchStatement",a[a.LabeledStatement=249]="LabeledStatement",a[a.ThrowStatement=250]="ThrowStatement",a[a.TryStatement=251]="TryStatement",a[a.DebuggerStatement=252]="DebuggerStatement",a[a.VariableDeclaration=253]="VariableDeclaration",a[a.VariableDeclarationList=254]="VariableDeclarationList",a[a.FunctionDeclaration=255]="FunctionDeclaration",a[a.ClassDeclaration=256]="ClassDeclaration",a[a.InterfaceDeclaration=257]="InterfaceDeclaration",a[a.TypeAliasDeclaration=258]="TypeAliasDeclaration",a[a.EnumDeclaration=259]="EnumDeclaration",a[a.ModuleDeclaration=260]="ModuleDeclaration",a[a.ModuleBlock=261]="ModuleBlock",a[a.CaseBlock=262]="CaseBlock",a[a.NamespaceExportDeclaration=263]="NamespaceExportDeclaration",a[a.ImportEqualsDeclaration=264]="ImportEqualsDeclaration",a[a.ImportDeclaration=265]="ImportDeclaration",a[a.ImportClause=266]="ImportClause",a[a.NamespaceImport=267]="NamespaceImport",a[a.NamedImports=268]="NamedImports",a[a.ImportSpecifier=269]="ImportSpecifier",a[a.ExportAssignment=270]="ExportAssignment",a[a.ExportDeclaration=271]="ExportDeclaration",a[a.NamedExports=272]="NamedExports",a[a.NamespaceExport=273]="NamespaceExport",a[a.ExportSpecifier=274]="ExportSpecifier",a[a.MissingDeclaration=275]="MissingDeclaration",a[a.ExternalModuleReference=276]="ExternalModuleReference",a[a.JsxElement=277]="JsxElement",a[a.JsxSelfClosingElement=278]="JsxSelfClosingElement",a[a.JsxOpeningElement=279]="JsxOpeningElement",a[a.JsxClosingElement=280]="JsxClosingElement",a[a.JsxFragment=281]="JsxFragment",a[a.JsxOpeningFragment=282]="JsxOpeningFragment",a[a.JsxClosingFragment=283]="JsxClosingFragment",a[a.JsxAttribute=284]="JsxAttribute",a[a.JsxAttributes=285]="JsxAttributes",a[a.JsxSpreadAttribute=286]="JsxSpreadAttribute",a[a.JsxExpression=287]="JsxExpression",a[a.CaseClause=288]="CaseClause",a[a.DefaultClause=289]="DefaultClause",a[a.HeritageClause=290]="HeritageClause",a[a.CatchClause=291]="CatchClause",a[a.AssertClause=292]="AssertClause",a[a.AssertEntry=293]="AssertEntry",a[a.PropertyAssignment=294]="PropertyAssignment",a[a.ShorthandPropertyAssignment=295]="ShorthandPropertyAssignment",a[a.SpreadAssignment=296]="SpreadAssignment",a[a.EnumMember=297]="EnumMember",a[a.UnparsedPrologue=298]="UnparsedPrologue",a[a.UnparsedPrepend=299]="UnparsedPrepend",a[a.UnparsedText=300]="UnparsedText",a[a.UnparsedInternalText=301]="UnparsedInternalText",a[a.UnparsedSyntheticReference=302]="UnparsedSyntheticReference",a[a.SourceFile=303]="SourceFile",a[a.Bundle=304]="Bundle",a[a.UnparsedSource=305]="UnparsedSource",a[a.InputFiles=306]="InputFiles",a[a.JSDocTypeExpression=307]="JSDocTypeExpression",a[a.JSDocNameReference=308]="JSDocNameReference",a[a.JSDocMemberName=309]="JSDocMemberName",a[a.JSDocAllType=310]="JSDocAllType",a[a.JSDocUnknownType=311]="JSDocUnknownType",a[a.JSDocNullableType=312]="JSDocNullableType",a[a.JSDocNonNullableType=313]="JSDocNonNullableType",a[a.JSDocOptionalType=314]="JSDocOptionalType",a[a.JSDocFunctionType=315]="JSDocFunctionType",a[a.JSDocVariadicType=316]="JSDocVariadicType",a[a.JSDocNamepathType=317]="JSDocNamepathType",a[a.JSDocComment=318]="JSDocComment",a[a.JSDocText=319]="JSDocText",a[a.JSDocTypeLiteral=320]="JSDocTypeLiteral",a[a.JSDocSignature=321]="JSDocSignature",a[a.JSDocLink=322]="JSDocLink",a[a.JSDocLinkCode=323]="JSDocLinkCode",a[a.JSDocLinkPlain=324]="JSDocLinkPlain",a[a.JSDocTag=325]="JSDocTag",a[a.JSDocAugmentsTag=326]="JSDocAugmentsTag",a[a.JSDocImplementsTag=327]="JSDocImplementsTag",a[a.JSDocAuthorTag=328]="JSDocAuthorTag",a[a.JSDocDeprecatedTag=329]="JSDocDeprecatedTag",a[a.JSDocClassTag=330]="JSDocClassTag",a[a.JSDocPublicTag=331]="JSDocPublicTag",a[a.JSDocPrivateTag=332]="JSDocPrivateTag",a[a.JSDocProtectedTag=333]="JSDocProtectedTag",a[a.JSDocReadonlyTag=334]="JSDocReadonlyTag",a[a.JSDocOverrideTag=335]="JSDocOverrideTag",a[a.JSDocCallbackTag=336]="JSDocCallbackTag",a[a.JSDocEnumTag=337]="JSDocEnumTag",a[a.JSDocParameterTag=338]="JSDocParameterTag",a[a.JSDocReturnTag=339]="JSDocReturnTag",a[a.JSDocThisTag=340]="JSDocThisTag",a[a.JSDocTypeTag=341]="JSDocTypeTag",a[a.JSDocTemplateTag=342]="JSDocTemplateTag",a[a.JSDocTypedefTag=343]="JSDocTypedefTag",a[a.JSDocSeeTag=344]="JSDocSeeTag",a[a.JSDocPropertyTag=345]="JSDocPropertyTag",a[a.SyntaxList=346]="SyntaxList",a[a.NotEmittedStatement=347]="NotEmittedStatement",a[a.PartiallyEmittedExpression=348]="PartiallyEmittedExpression",a[a.CommaListExpression=349]="CommaListExpression",a[a.MergeDeclarationMarker=350]="MergeDeclarationMarker",a[a.EndOfDeclarationMarker=351]="EndOfDeclarationMarker",a[a.SyntheticReferenceExpression=352]="SyntheticReferenceExpression",a[a.Count=353]="Count",a[a.FirstAssignment=63]="FirstAssignment",a[a.LastAssignment=78]="LastAssignment",a[a.FirstCompoundAssignment=64]="FirstCompoundAssignment",a[a.LastCompoundAssignment=78]="LastCompoundAssignment",a[a.FirstReservedWord=81]="FirstReservedWord",a[a.LastReservedWord=116]="LastReservedWord",a[a.FirstKeyword=81]="FirstKeyword",a[a.LastKeyword=159]="LastKeyword",a[a.FirstFutureReservedWord=117]="FirstFutureReservedWord",a[a.LastFutureReservedWord=125]="LastFutureReservedWord",a[a.FirstTypeNode=176]="FirstTypeNode",a[a.LastTypeNode=199]="LastTypeNode",a[a.FirstPunctuation=18]="FirstPunctuation",a[a.LastPunctuation=78]="LastPunctuation",a[a.FirstToken=0]="FirstToken",a[a.LastToken=159]="LastToken",a[a.FirstTriviaToken=2]="FirstTriviaToken",a[a.LastTriviaToken=7]="LastTriviaToken",a[a.FirstLiteralToken=8]="FirstLiteralToken",a[a.LastLiteralToken=14]="LastLiteralToken",a[a.FirstTemplateToken=14]="FirstTemplateToken",a[a.LastTemplateToken=17]="LastTemplateToken",a[a.FirstBinaryOperator=29]="FirstBinaryOperator",a[a.LastBinaryOperator=78]="LastBinaryOperator",a[a.FirstStatement=236]="FirstStatement",a[a.LastStatement=252]="LastStatement",a[a.FirstNode=160]="FirstNode",a[a.FirstJSDocNode=307]="FirstJSDocNode",a[a.LastJSDocNode=345]="LastJSDocNode",a[a.FirstJSDocTagNode=325]="FirstJSDocTagNode",a[a.LastJSDocTagNode=345]="LastJSDocTagNode",a[a.FirstContextualKeyword=126]="FirstContextualKeyword",a[a.LastContextualKeyword=159]="LastContextualKeyword"})(e.SyntaxKind||(e.SyntaxKind={})),function(a){a[a.None=0]="None",a[a.Let=1]="Let",a[a.Const=2]="Const",a[a.NestedNamespace=4]="NestedNamespace",a[a.Synthesized=8]="Synthesized",a[a.Namespace=16]="Namespace",a[a.OptionalChain=32]="OptionalChain",a[a.ExportContext=64]="ExportContext",a[a.ContainsThis=128]="ContainsThis",a[a.HasImplicitReturn=256]="HasImplicitReturn",a[a.HasExplicitReturn=512]="HasExplicitReturn",a[a.GlobalAugmentation=1024]="GlobalAugmentation",a[a.HasAsyncFunctions=2048]="HasAsyncFunctions",a[a.DisallowInContext=4096]="DisallowInContext",a[a.YieldContext=8192]="YieldContext",a[a.DecoratorContext=16384]="DecoratorContext",a[a.AwaitContext=32768]="AwaitContext",a[a.ThisNodeHasError=65536]="ThisNodeHasError",a[a.JavaScriptFile=131072]="JavaScriptFile",a[a.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",a[a.HasAggregatedChildData=524288]="HasAggregatedChildData",a[a.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",a[a.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",a[a.JSDoc=4194304]="JSDoc",a[a.Ambient=8388608]="Ambient",a[a.InWithStatement=16777216]="InWithStatement",a[a.JsonFile=33554432]="JsonFile",a[a.TypeCached=67108864]="TypeCached",a[a.Deprecated=134217728]="Deprecated",a[a.BlockScoped=3]="BlockScoped",a[a.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",a[a.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",a[a.ContextFlags=25358336]="ContextFlags",a[a.TypeExcludesFlags=40960]="TypeExcludesFlags",a[a.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags"}(e.NodeFlags||(e.NodeFlags={})),function(a){a[a.None=0]="None",a[a.Export=1]="Export",a[a.Ambient=2]="Ambient",a[a.Public=4]="Public",a[a.Private=8]="Private",a[a.Protected=16]="Protected",a[a.Static=32]="Static",a[a.Readonly=64]="Readonly",a[a.Abstract=128]="Abstract",a[a.Async=256]="Async",a[a.Default=512]="Default",a[a.Const=2048]="Const",a[a.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",a[a.Deprecated=8192]="Deprecated",a[a.Override=16384]="Override",a[a.HasComputedFlags=536870912]="HasComputedFlags",a[a.AccessibilityModifier=28]="AccessibilityModifier",a[a.ParameterPropertyModifier=16476]="ParameterPropertyModifier",a[a.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",a[a.TypeScriptModifier=18654]="TypeScriptModifier",a[a.ExportDefault=513]="ExportDefault",a[a.All=27647]="All"}(e.ModifierFlags||(e.ModifierFlags={})),function(a){a[a.None=0]="None",a[a.IntrinsicNamedElement=1]="IntrinsicNamedElement",a[a.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",a[a.IntrinsicElement=3]="IntrinsicElement"}(e.JsxFlags||(e.JsxFlags={})),function(a){a[a.Succeeded=1]="Succeeded",a[a.Failed=2]="Failed",a[a.Reported=4]="Reported",a[a.ReportsUnmeasurable=8]="ReportsUnmeasurable",a[a.ReportsUnreliable=16]="ReportsUnreliable",a[a.ReportsMask=24]="ReportsMask"}(e.RelationComparisonResult||(e.RelationComparisonResult={})),function(a){a[a.None=0]="None",a[a.Auto=1]="Auto",a[a.Loop=2]="Loop",a[a.Unique=3]="Unique",a[a.Node=4]="Node",a[a.KindMask=7]="KindMask",a[a.ReservedInNestedScopes=8]="ReservedInNestedScopes",a[a.Optimistic=16]="Optimistic",a[a.FileLevel=32]="FileLevel",a[a.AllowNameSubstitution=64]="AllowNameSubstitution"}(e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={})),function(a){a[a.None=0]="None",a[a.PrecedingLineBreak=1]="PrecedingLineBreak",a[a.PrecedingJSDocComment=2]="PrecedingJSDocComment",a[a.Unterminated=4]="Unterminated",a[a.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",a[a.Scientific=16]="Scientific",a[a.Octal=32]="Octal",a[a.HexSpecifier=64]="HexSpecifier",a[a.BinarySpecifier=128]="BinarySpecifier",a[a.OctalSpecifier=256]="OctalSpecifier",a[a.ContainsSeparator=512]="ContainsSeparator",a[a.UnicodeEscape=1024]="UnicodeEscape",a[a.ContainsInvalidEscape=2048]="ContainsInvalidEscape",a[a.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",a[a.NumericLiteralFlags=1008]="NumericLiteralFlags",a[a.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags"}(e.TokenFlags||(e.TokenFlags={})),function(a){a[a.Unreachable=1]="Unreachable",a[a.Start=2]="Start",a[a.BranchLabel=4]="BranchLabel",a[a.LoopLabel=8]="LoopLabel",a[a.Assignment=16]="Assignment",a[a.TrueCondition=32]="TrueCondition",a[a.FalseCondition=64]="FalseCondition",a[a.SwitchClause=128]="SwitchClause",a[a.ArrayMutation=256]="ArrayMutation",a[a.Call=512]="Call",a[a.ReduceLabel=1024]="ReduceLabel",a[a.Referenced=2048]="Referenced",a[a.Shared=4096]="Shared",a[a.Label=12]="Label",a[a.Condition=96]="Condition"}(e.FlowFlags||(e.FlowFlags={})),function(a){a[a.ExpectError=0]="ExpectError",a[a.Ignore=1]="Ignore"}(e.CommentDirectiveType||(e.CommentDirectiveType={}));var n=function(){function a(){}return a}();e.OperationCanceledException=n,function(a){a[a.RootFile=0]="RootFile",a[a.SourceFromProjectReference=1]="SourceFromProjectReference",a[a.OutputFromProjectReference=2]="OutputFromProjectReference",a[a.Import=3]="Import",a[a.ReferenceFile=4]="ReferenceFile",a[a.TypeReferenceDirective=5]="TypeReferenceDirective",a[a.LibFile=6]="LibFile",a[a.LibReferenceDirective=7]="LibReferenceDirective",a[a.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile"}(e.FileIncludeKind||(e.FileIncludeKind={})),function(a){a[a.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",a[a.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic"}(e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={})),function(a){a[a.Not=0]="Not",a[a.SafeModules=1]="SafeModules",a[a.Completely=2]="Completely"}(e.StructureIsReused||(e.StructureIsReused={})),function(a){a[a.Success=0]="Success",a[a.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",a[a.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",a[a.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",a[a.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",a[a.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped"}(e.ExitStatus||(e.ExitStatus={})),function(a){a[a.Ok=0]="Ok",a[a.NeedsOverride=1]="NeedsOverride",a[a.HasInvalidOverride=2]="HasInvalidOverride"}(e.MemberOverrideStatus||(e.MemberOverrideStatus={})),function(a){a[a.None=0]="None",a[a.Literal=1]="Literal",a[a.Subtype=2]="Subtype"}(e.UnionReduction||(e.UnionReduction={})),function(a){a[a.None=0]="None",a[a.Signature=1]="Signature",a[a.NoConstraints=2]="NoConstraints",a[a.Completions=4]="Completions",a[a.SkipBindingPatterns=8]="SkipBindingPatterns"}(e.ContextFlags||(e.ContextFlags={})),function(a){a[a.None=0]="None",a[a.NoTruncation=1]="NoTruncation",a[a.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",a[a.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",a[a.UseStructuralFallback=8]="UseStructuralFallback",a[a.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",a[a.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",a[a.UseFullyQualifiedType=64]="UseFullyQualifiedType",a[a.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",a[a.SuppressAnyReturnType=256]="SuppressAnyReturnType",a[a.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",a[a.MultilineObjectLiterals=1024]="MultilineObjectLiterals",a[a.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",a[a.UseTypeOfFunction=4096]="UseTypeOfFunction",a[a.OmitParameterModifiers=8192]="OmitParameterModifiers",a[a.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",a[a.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",a[a.NoTypeReduction=536870912]="NoTypeReduction",a[a.NoUndefinedOptionalParameterType=1073741824]="NoUndefinedOptionalParameterType",a[a.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",a[a.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",a[a.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",a[a.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",a[a.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",a[a.AllowEmptyTuple=524288]="AllowEmptyTuple",a[a.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",a[a.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",a[a.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",a[a.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",a[a.IgnoreErrors=70221824]="IgnoreErrors",a[a.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",a[a.InTypeAlias=8388608]="InTypeAlias",a[a.InInitialEntityName=16777216]="InInitialEntityName"}(e.NodeBuilderFlags||(e.NodeBuilderFlags={})),function(a){a[a.None=0]="None",a[a.NoTruncation=1]="NoTruncation",a[a.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",a[a.UseStructuralFallback=8]="UseStructuralFallback",a[a.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",a[a.UseFullyQualifiedType=64]="UseFullyQualifiedType",a[a.SuppressAnyReturnType=256]="SuppressAnyReturnType",a[a.MultilineObjectLiterals=1024]="MultilineObjectLiterals",a[a.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",a[a.UseTypeOfFunction=4096]="UseTypeOfFunction",a[a.OmitParameterModifiers=8192]="OmitParameterModifiers",a[a.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",a[a.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",a[a.NoTypeReduction=536870912]="NoTypeReduction",a[a.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",a[a.AddUndefined=131072]="AddUndefined",a[a.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",a[a.InArrayType=524288]="InArrayType",a[a.InElementType=2097152]="InElementType",a[a.InFirstTypeArgument=4194304]="InFirstTypeArgument",a[a.InTypeAlias=8388608]="InTypeAlias",a[a.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",a[a.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask"}(e.TypeFormatFlags||(e.TypeFormatFlags={})),function(a){a[a.None=0]="None",a[a.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",a[a.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",a[a.AllowAnyNodeKind=4]="AllowAnyNodeKind",a[a.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",a[a.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain"}(e.SymbolFormatFlags||(e.SymbolFormatFlags={})),function(a){a[a.Accessible=0]="Accessible",a[a.NotAccessible=1]="NotAccessible",a[a.CannotBeNamed=2]="CannotBeNamed"}(e.SymbolAccessibility||(e.SymbolAccessibility={})),function(a){a[a.UnionOrIntersection=0]="UnionOrIntersection",a[a.Spread=1]="Spread"}(e.SyntheticSymbolKind||(e.SyntheticSymbolKind={})),function(a){a[a.This=0]="This",a[a.Identifier=1]="Identifier",a[a.AssertsThis=2]="AssertsThis",a[a.AssertsIdentifier=3]="AssertsIdentifier"}(e.TypePredicateKind||(e.TypePredicateKind={})),function(a){a[a.Unknown=0]="Unknown",a[a.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",a[a.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",a[a.NumberLikeType=3]="NumberLikeType",a[a.BigIntLikeType=4]="BigIntLikeType",a[a.StringLikeType=5]="StringLikeType",a[a.BooleanType=6]="BooleanType",a[a.ArrayLikeType=7]="ArrayLikeType",a[a.ESSymbolType=8]="ESSymbolType",a[a.Promise=9]="Promise",a[a.TypeWithCallSignature=10]="TypeWithCallSignature",a[a.ObjectType=11]="ObjectType"}(e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={})),function(a){a[a.None=0]="None",a[a.FunctionScopedVariable=1]="FunctionScopedVariable",a[a.BlockScopedVariable=2]="BlockScopedVariable",a[a.Property=4]="Property",a[a.EnumMember=8]="EnumMember",a[a.Function=16]="Function",a[a.Class=32]="Class",a[a.Interface=64]="Interface",a[a.ConstEnum=128]="ConstEnum",a[a.RegularEnum=256]="RegularEnum",a[a.ValueModule=512]="ValueModule",a[a.NamespaceModule=1024]="NamespaceModule",a[a.TypeLiteral=2048]="TypeLiteral",a[a.ObjectLiteral=4096]="ObjectLiteral",a[a.Method=8192]="Method",a[a.Constructor=16384]="Constructor",a[a.GetAccessor=32768]="GetAccessor",a[a.SetAccessor=65536]="SetAccessor",a[a.Signature=131072]="Signature",a[a.TypeParameter=262144]="TypeParameter",a[a.TypeAlias=524288]="TypeAlias",a[a.ExportValue=1048576]="ExportValue",a[a.Alias=2097152]="Alias",a[a.Prototype=4194304]="Prototype",a[a.ExportStar=8388608]="ExportStar",a[a.Optional=16777216]="Optional",a[a.Transient=33554432]="Transient",a[a.Assignment=67108864]="Assignment",a[a.ModuleExports=134217728]="ModuleExports",a[a.All=67108863]="All",a[a.Enum=384]="Enum",a[a.Variable=3]="Variable",a[a.Value=111551]="Value",a[a.Type=788968]="Type",a[a.Namespace=1920]="Namespace",a[a.Module=1536]="Module",a[a.Accessor=98304]="Accessor",a[a.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",a[a.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",a[a.ParameterExcludes=111551]="ParameterExcludes",a[a.PropertyExcludes=0]="PropertyExcludes",a[a.EnumMemberExcludes=900095]="EnumMemberExcludes",a[a.FunctionExcludes=110991]="FunctionExcludes",a[a.ClassExcludes=899503]="ClassExcludes",a[a.InterfaceExcludes=788872]="InterfaceExcludes",a[a.RegularEnumExcludes=899327]="RegularEnumExcludes",a[a.ConstEnumExcludes=899967]="ConstEnumExcludes",a[a.ValueModuleExcludes=110735]="ValueModuleExcludes",a[a.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",a[a.MethodExcludes=103359]="MethodExcludes",a[a.GetAccessorExcludes=46015]="GetAccessorExcludes",a[a.SetAccessorExcludes=78783]="SetAccessorExcludes",a[a.TypeParameterExcludes=526824]="TypeParameterExcludes",a[a.TypeAliasExcludes=788968]="TypeAliasExcludes",a[a.AliasExcludes=2097152]="AliasExcludes",a[a.ModuleMember=2623475]="ModuleMember",a[a.ExportHasLocal=944]="ExportHasLocal",a[a.BlockScoped=418]="BlockScoped",a[a.PropertyOrAccessor=98308]="PropertyOrAccessor",a[a.ClassMember=106500]="ClassMember",a[a.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",a[a.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",a[a.Classifiable=2885600]="Classifiable",a[a.LateBindingContainer=6256]="LateBindingContainer"}(e.SymbolFlags||(e.SymbolFlags={})),function(a){a[a.Numeric=0]="Numeric",a[a.Literal=1]="Literal"}(e.EnumKind||(e.EnumKind={})),function(a){a[a.Instantiated=1]="Instantiated",a[a.SyntheticProperty=2]="SyntheticProperty",a[a.SyntheticMethod=4]="SyntheticMethod",a[a.Readonly=8]="Readonly",a[a.ReadPartial=16]="ReadPartial",a[a.WritePartial=32]="WritePartial",a[a.HasNonUniformType=64]="HasNonUniformType",a[a.HasLiteralType=128]="HasLiteralType",a[a.ContainsPublic=256]="ContainsPublic",a[a.ContainsProtected=512]="ContainsProtected",a[a.ContainsPrivate=1024]="ContainsPrivate",a[a.ContainsStatic=2048]="ContainsStatic",a[a.Late=4096]="Late",a[a.ReverseMapped=8192]="ReverseMapped",a[a.OptionalParameter=16384]="OptionalParameter",a[a.RestParameter=32768]="RestParameter",a[a.DeferredType=65536]="DeferredType",a[a.HasNeverType=131072]="HasNeverType",a[a.Mapped=262144]="Mapped",a[a.StripOptional=524288]="StripOptional",a[a.Unresolved=1048576]="Unresolved",a[a.Synthetic=6]="Synthetic",a[a.Discriminant=192]="Discriminant",a[a.Partial=48]="Partial"}(e.CheckFlags||(e.CheckFlags={})),function(a){a.Call="__call",a.Constructor="__constructor",a.New="__new",a.Index="__index",a.ExportStar="__export",a.Global="__global",a.Missing="__missing",a.Type="__type",a.Object="__object",a.JSXAttributes="__jsxAttributes",a.Class="__class",a.Function="__function",a.Computed="__computed",a.Resolving="__resolving__",a.ExportEquals="export=",a.Default="default",a.This="this"}(e.InternalSymbolName||(e.InternalSymbolName={})),function(a){a[a.TypeChecked=1]="TypeChecked",a[a.LexicalThis=2]="LexicalThis",a[a.CaptureThis=4]="CaptureThis",a[a.CaptureNewTarget=8]="CaptureNewTarget",a[a.SuperInstance=256]="SuperInstance",a[a.SuperStatic=512]="SuperStatic",a[a.ContextChecked=1024]="ContextChecked",a[a.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",a[a.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",a[a.CaptureArguments=8192]="CaptureArguments",a[a.EnumValuesComputed=16384]="EnumValuesComputed",a[a.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",a[a.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",a[a.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",a[a.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",a[a.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",a[a.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",a[a.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",a[a.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",a[a.AssignmentsMarked=8388608]="AssignmentsMarked",a[a.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",a[a.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",a[a.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",a[a.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer"}(e.NodeCheckFlags||(e.NodeCheckFlags={})),function(a){a[a.Any=1]="Any",a[a.Unknown=2]="Unknown",a[a.String=4]="String",a[a.Number=8]="Number",a[a.Boolean=16]="Boolean",a[a.Enum=32]="Enum",a[a.BigInt=64]="BigInt",a[a.StringLiteral=128]="StringLiteral",a[a.NumberLiteral=256]="NumberLiteral",a[a.BooleanLiteral=512]="BooleanLiteral",a[a.EnumLiteral=1024]="EnumLiteral",a[a.BigIntLiteral=2048]="BigIntLiteral",a[a.ESSymbol=4096]="ESSymbol",a[a.UniqueESSymbol=8192]="UniqueESSymbol",a[a.Void=16384]="Void",a[a.Undefined=32768]="Undefined",a[a.Null=65536]="Null",a[a.Never=131072]="Never",a[a.TypeParameter=262144]="TypeParameter",a[a.Object=524288]="Object",a[a.Union=1048576]="Union",a[a.Intersection=2097152]="Intersection",a[a.Index=4194304]="Index",a[a.IndexedAccess=8388608]="IndexedAccess",a[a.Conditional=16777216]="Conditional",a[a.Substitution=33554432]="Substitution",a[a.NonPrimitive=67108864]="NonPrimitive",a[a.TemplateLiteral=134217728]="TemplateLiteral",a[a.StringMapping=268435456]="StringMapping",a[a.AnyOrUnknown=3]="AnyOrUnknown",a[a.Nullable=98304]="Nullable",a[a.Literal=2944]="Literal",a[a.Unit=109440]="Unit",a[a.StringOrNumberLiteral=384]="StringOrNumberLiteral",a[a.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",a[a.DefinitelyFalsy=117632]="DefinitelyFalsy",a[a.PossiblyFalsy=117724]="PossiblyFalsy",a[a.Intrinsic=67359327]="Intrinsic",a[a.Primitive=131068]="Primitive",a[a.StringLike=402653316]="StringLike",a[a.NumberLike=296]="NumberLike",a[a.BigIntLike=2112]="BigIntLike",a[a.BooleanLike=528]="BooleanLike",a[a.EnumLike=1056]="EnumLike",a[a.ESSymbolLike=12288]="ESSymbolLike",a[a.VoidLike=49152]="VoidLike",a[a.DisjointDomains=469892092]="DisjointDomains",a[a.UnionOrIntersection=3145728]="UnionOrIntersection",a[a.StructuredType=3670016]="StructuredType",a[a.TypeVariable=8650752]="TypeVariable",a[a.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",a[a.InstantiablePrimitive=406847488]="InstantiablePrimitive",a[a.Instantiable=465829888]="Instantiable",a[a.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",a[a.ObjectFlagsType=3899393]="ObjectFlagsType",a[a.Simplifiable=25165824]="Simplifiable",a[a.Singleton=67358815]="Singleton",a[a.Narrowable=536624127]="Narrowable",a[a.IncludesMask=205258751]="IncludesMask",a[a.IncludesMissingType=262144]="IncludesMissingType",a[a.IncludesNonWideningType=4194304]="IncludesNonWideningType",a[a.IncludesWildcard=8388608]="IncludesWildcard",a[a.IncludesEmptyObject=16777216]="IncludesEmptyObject",a[a.IncludesInstantiable=33554432]="IncludesInstantiable",a[a.NotPrimitiveUnion=36323363]="NotPrimitiveUnion"}(e.TypeFlags||(e.TypeFlags={})),function(a){a[a.Class=1]="Class",a[a.Interface=2]="Interface",a[a.Reference=4]="Reference",a[a.Tuple=8]="Tuple",a[a.Anonymous=16]="Anonymous",a[a.Mapped=32]="Mapped",a[a.Instantiated=64]="Instantiated",a[a.ObjectLiteral=128]="ObjectLiteral",a[a.EvolvingArray=256]="EvolvingArray",a[a.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",a[a.ReverseMapped=1024]="ReverseMapped",a[a.JsxAttributes=2048]="JsxAttributes",a[a.MarkerType=4096]="MarkerType",a[a.JSLiteral=8192]="JSLiteral",a[a.FreshLiteral=16384]="FreshLiteral",a[a.ArrayLiteral=32768]="ArrayLiteral",a[a.PrimitiveUnion=65536]="PrimitiveUnion",a[a.ContainsWideningType=131072]="ContainsWideningType",a[a.ContainsObjectOrArrayLiteral=262144]="ContainsObjectOrArrayLiteral",a[a.NonInferrableType=524288]="NonInferrableType",a[a.CouldContainTypeVariablesComputed=1048576]="CouldContainTypeVariablesComputed",a[a.CouldContainTypeVariables=2097152]="CouldContainTypeVariables",a[a.ClassOrInterface=3]="ClassOrInterface",a[a.RequiresWidening=393216]="RequiresWidening",a[a.PropagatingFlags=917504]="PropagatingFlags",a[a.ObjectTypeKindMask=1343]="ObjectTypeKindMask",a[a.ContainsSpread=4194304]="ContainsSpread",a[a.ObjectRestType=8388608]="ObjectRestType",a[a.IsClassInstanceClone=16777216]="IsClassInstanceClone",a[a.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",a[a.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",a[a.IsGenericTypeComputed=4194304]="IsGenericTypeComputed",a[a.IsGenericObjectType=8388608]="IsGenericObjectType",a[a.IsGenericIndexType=16777216]="IsGenericIndexType",a[a.IsGenericType=25165824]="IsGenericType",a[a.ContainsIntersections=33554432]="ContainsIntersections",a[a.IsNeverIntersectionComputed=33554432]="IsNeverIntersectionComputed",a[a.IsNeverIntersection=67108864]="IsNeverIntersection"}(e.ObjectFlags||(e.ObjectFlags={})),function(a){a[a.Invariant=0]="Invariant",a[a.Covariant=1]="Covariant",a[a.Contravariant=2]="Contravariant",a[a.Bivariant=3]="Bivariant",a[a.Independent=4]="Independent",a[a.VarianceMask=7]="VarianceMask",a[a.Unmeasurable=8]="Unmeasurable",a[a.Unreliable=16]="Unreliable",a[a.AllowsStructuralFallback=24]="AllowsStructuralFallback"}(e.VarianceFlags||(e.VarianceFlags={})),function(a){a[a.Required=1]="Required",a[a.Optional=2]="Optional",a[a.Rest=4]="Rest",a[a.Variadic=8]="Variadic",a[a.Fixed=3]="Fixed",a[a.Variable=12]="Variable",a[a.NonRequired=14]="NonRequired",a[a.NonRest=11]="NonRest"}(e.ElementFlags||(e.ElementFlags={})),function(a){a[a.None=0]="None",a[a.IncludeUndefined=1]="IncludeUndefined",a[a.NoIndexSignatures=2]="NoIndexSignatures",a[a.Writing=4]="Writing",a[a.CacheSymbol=8]="CacheSymbol",a[a.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",a[a.ExpressionPosition=32]="ExpressionPosition",a[a.ReportDeprecated=64]="ReportDeprecated",a[a.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",a[a.Contextual=256]="Contextual",a[a.Persistent=1]="Persistent"}(e.AccessFlags||(e.AccessFlags={})),function(a){a[a.Component=0]="Component",a[a.Function=1]="Function",a[a.Mixed=2]="Mixed"}(e.JsxReferenceKind||(e.JsxReferenceKind={})),function(a){a[a.Call=0]="Call",a[a.Construct=1]="Construct"}(e.SignatureKind||(e.SignatureKind={})),function(a){a[a.None=0]="None",a[a.HasRestParameter=1]="HasRestParameter",a[a.HasLiteralTypes=2]="HasLiteralTypes",a[a.Abstract=4]="Abstract",a[a.IsInnerCallChain=8]="IsInnerCallChain",a[a.IsOuterCallChain=16]="IsOuterCallChain",a[a.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",a[a.PropagatingFlags=39]="PropagatingFlags",a[a.CallChainFlags=24]="CallChainFlags"}(e.SignatureFlags||(e.SignatureFlags={})),function(a){a[a.String=0]="String",a[a.Number=1]="Number"}(e.IndexKind||(e.IndexKind={})),function(a){a[a.Simple=0]="Simple",a[a.Array=1]="Array",a[a.Function=2]="Function",a[a.Composite=3]="Composite",a[a.Merged=4]="Merged"}(e.TypeMapKind||(e.TypeMapKind={})),function(a){a[a.NakedTypeVariable=1]="NakedTypeVariable",a[a.SpeculativeTuple=2]="SpeculativeTuple",a[a.SubstituteSource=4]="SubstituteSource",a[a.HomomorphicMappedType=8]="HomomorphicMappedType",a[a.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",a[a.MappedTypeConstraint=32]="MappedTypeConstraint",a[a.ContravariantConditional=64]="ContravariantConditional",a[a.ReturnType=128]="ReturnType",a[a.LiteralKeyof=256]="LiteralKeyof",a[a.NoConstraints=512]="NoConstraints",a[a.AlwaysStrict=1024]="AlwaysStrict",a[a.MaxValue=2048]="MaxValue",a[a.PriorityImpliesCombination=416]="PriorityImpliesCombination",a[a.Circularity=-1]="Circularity"}(e.InferencePriority||(e.InferencePriority={})),function(a){a[a.None=0]="None",a[a.NoDefault=1]="NoDefault",a[a.AnyDefault=2]="AnyDefault",a[a.SkippedGenericFunction=4]="SkippedGenericFunction"}(e.InferenceFlags||(e.InferenceFlags={})),function(a){a[a.False=0]="False",a[a.Unknown=1]="Unknown",a[a.Maybe=3]="Maybe",a[a.True=-1]="True"}(e.Ternary||(e.Ternary={})),function(a){a[a.None=0]="None",a[a.ExportsProperty=1]="ExportsProperty",a[a.ModuleExports=2]="ModuleExports",a[a.PrototypeProperty=3]="PrototypeProperty",a[a.ThisProperty=4]="ThisProperty",a[a.Property=5]="Property",a[a.Prototype=6]="Prototype",a[a.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",a[a.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",a[a.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty"}(e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}));var f;(function(a){a[a.Warning=0]="Warning",a[a.Error=1]="Error",a[a.Suggestion=2]="Suggestion",a[a.Message=3]="Message"})(f=e.DiagnosticCategory||(e.DiagnosticCategory={}));function p(a,d){d===void 0&&(d=!0);var k=f[a.category];return d?k.toLowerCase():k}e.diagnosticCategoryName=p,function(a){a[a.Classic=1]="Classic",a[a.NodeJs=2]="NodeJs",a[a.Node12=3]="Node12",a[a.NodeNext=99]="NodeNext"}(e.ModuleResolutionKind||(e.ModuleResolutionKind={})),function(a){a[a.FixedPollingInterval=0]="FixedPollingInterval",a[a.PriorityPollingInterval=1]="PriorityPollingInterval",a[a.DynamicPriorityPolling=2]="DynamicPriorityPolling",a[a.FixedChunkSizePolling=3]="FixedChunkSizePolling",a[a.UseFsEvents=4]="UseFsEvents",a[a.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory"}(e.WatchFileKind||(e.WatchFileKind={})),function(a){a[a.UseFsEvents=0]="UseFsEvents",a[a.FixedPollingInterval=1]="FixedPollingInterval",a[a.DynamicPriorityPolling=2]="DynamicPriorityPolling",a[a.FixedChunkSizePolling=3]="FixedChunkSizePolling"}(e.WatchDirectoryKind||(e.WatchDirectoryKind={})),function(a){a[a.FixedInterval=0]="FixedInterval",a[a.PriorityInterval=1]="PriorityInterval",a[a.DynamicPriority=2]="DynamicPriority",a[a.FixedChunkSize=3]="FixedChunkSize"}(e.PollingWatchKind||(e.PollingWatchKind={})),function(a){a[a.None=0]="None",a[a.CommonJS=1]="CommonJS",a[a.AMD=2]="AMD",a[a.UMD=3]="UMD",a[a.System=4]="System",a[a.ES2015=5]="ES2015",a[a.ES2020=6]="ES2020",a[a.ES2022=7]="ES2022",a[a.ESNext=99]="ESNext",a[a.Node12=100]="Node12",a[a.NodeNext=199]="NodeNext"}(e.ModuleKind||(e.ModuleKind={})),function(a){a[a.None=0]="None",a[a.Preserve=1]="Preserve",a[a.React=2]="React",a[a.ReactNative=3]="ReactNative",a[a.ReactJSX=4]="ReactJSX",a[a.ReactJSXDev=5]="ReactJSXDev"}(e.JsxEmit||(e.JsxEmit={})),function(a){a[a.Remove=0]="Remove",a[a.Preserve=1]="Preserve",a[a.Error=2]="Error"}(e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={})),function(a){a[a.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",a[a.LineFeed=1]="LineFeed"}(e.NewLineKind||(e.NewLineKind={})),function(a){a[a.Unknown=0]="Unknown",a[a.JS=1]="JS",a[a.JSX=2]="JSX",a[a.TS=3]="TS",a[a.TSX=4]="TSX",a[a.External=5]="External",a[a.JSON=6]="JSON",a[a.Deferred=7]="Deferred"}(e.ScriptKind||(e.ScriptKind={})),function(a){a[a.ES3=0]="ES3",a[a.ES5=1]="ES5",a[a.ES2015=2]="ES2015",a[a.ES2016=3]="ES2016",a[a.ES2017=4]="ES2017",a[a.ES2018=5]="ES2018",a[a.ES2019=6]="ES2019",a[a.ES2020=7]="ES2020",a[a.ES2021=8]="ES2021",a[a.ESNext=99]="ESNext",a[a.JSON=100]="JSON",a[a.Latest=99]="Latest"}(e.ScriptTarget||(e.ScriptTarget={})),function(a){a[a.Standard=0]="Standard",a[a.JSX=1]="JSX"}(e.LanguageVariant||(e.LanguageVariant={})),function(a){a[a.None=0]="None",a[a.Recursive=1]="Recursive"}(e.WatchDirectoryFlags||(e.WatchDirectoryFlags={})),function(a){a[a.nullCharacter=0]="nullCharacter",a[a.maxAsciiCharacter=127]="maxAsciiCharacter",a[a.lineFeed=10]="lineFeed",a[a.carriageReturn=13]="carriageReturn",a[a.lineSeparator=8232]="lineSeparator",a[a.paragraphSeparator=8233]="paragraphSeparator",a[a.nextLine=133]="nextLine",a[a.space=32]="space",a[a.nonBreakingSpace=160]="nonBreakingSpace",a[a.enQuad=8192]="enQuad",a[a.emQuad=8193]="emQuad",a[a.enSpace=8194]="enSpace",a[a.emSpace=8195]="emSpace",a[a.threePerEmSpace=8196]="threePerEmSpace",a[a.fourPerEmSpace=8197]="fourPerEmSpace",a[a.sixPerEmSpace=8198]="sixPerEmSpace",a[a.figureSpace=8199]="figureSpace",a[a.punctuationSpace=8200]="punctuationSpace",a[a.thinSpace=8201]="thinSpace",a[a.hairSpace=8202]="hairSpace",a[a.zeroWidthSpace=8203]="zeroWidthSpace",a[a.narrowNoBreakSpace=8239]="narrowNoBreakSpace",a[a.ideographicSpace=12288]="ideographicSpace",a[a.mathematicalSpace=8287]="mathematicalSpace",a[a.ogham=5760]="ogham",a[a._=95]="_",a[a.$=36]="$",a[a._0=48]="_0",a[a._1=49]="_1",a[a._2=50]="_2",a[a._3=51]="_3",a[a._4=52]="_4",a[a._5=53]="_5",a[a._6=54]="_6",a[a._7=55]="_7",a[a._8=56]="_8",a[a._9=57]="_9",a[a.a=97]="a",a[a.b=98]="b",a[a.c=99]="c",a[a.d=100]="d",a[a.e=101]="e",a[a.f=102]="f",a[a.g=103]="g",a[a.h=104]="h",a[a.i=105]="i",a[a.j=106]="j",a[a.k=107]="k",a[a.l=108]="l",a[a.m=109]="m",a[a.n=110]="n",a[a.o=111]="o",a[a.p=112]="p",a[a.q=113]="q",a[a.r=114]="r",a[a.s=115]="s",a[a.t=116]="t",a[a.u=117]="u",a[a.v=118]="v",a[a.w=119]="w",a[a.x=120]="x",a[a.y=121]="y",a[a.z=122]="z",a[a.A=65]="A",a[a.B=66]="B",a[a.C=67]="C",a[a.D=68]="D",a[a.E=69]="E",a[a.F=70]="F",a[a.G=71]="G",a[a.H=72]="H",a[a.I=73]="I",a[a.J=74]="J",a[a.K=75]="K",a[a.L=76]="L",a[a.M=77]="M",a[a.N=78]="N",a[a.O=79]="O",a[a.P=80]="P",a[a.Q=81]="Q",a[a.R=82]="R",a[a.S=83]="S",a[a.T=84]="T",a[a.U=85]="U",a[a.V=86]="V",a[a.W=87]="W",a[a.X=88]="X",a[a.Y=89]="Y",a[a.Z=90]="Z",a[a.ampersand=38]="ampersand",a[a.asterisk=42]="asterisk",a[a.at=64]="at",a[a.backslash=92]="backslash",a[a.backtick=96]="backtick",a[a.bar=124]="bar",a[a.caret=94]="caret",a[a.closeBrace=125]="closeBrace",a[a.closeBracket=93]="closeBracket",a[a.closeParen=41]="closeParen",a[a.colon=58]="colon",a[a.comma=44]="comma",a[a.dot=46]="dot",a[a.doubleQuote=34]="doubleQuote",a[a.equals=61]="equals",a[a.exclamation=33]="exclamation",a[a.greaterThan=62]="greaterThan",a[a.hash=35]="hash",a[a.lessThan=60]="lessThan",a[a.minus=45]="minus",a[a.openBrace=123]="openBrace",a[a.openBracket=91]="openBracket",a[a.openParen=40]="openParen",a[a.percent=37]="percent",a[a.plus=43]="plus",a[a.question=63]="question",a[a.semicolon=59]="semicolon",a[a.singleQuote=39]="singleQuote",a[a.slash=47]="slash",a[a.tilde=126]="tilde",a[a.backspace=8]="backspace",a[a.formFeed=12]="formFeed",a[a.byteOrderMark=65279]="byteOrderMark",a[a.tab=9]="tab",a[a.verticalTab=11]="verticalTab"}(e.CharacterCodes||(e.CharacterCodes={})),function(a){a.Ts=".ts",a.Tsx=".tsx",a.Dts=".d.ts",a.Js=".js",a.Jsx=".jsx",a.Json=".json",a.TsBuildInfo=".tsbuildinfo",a.Mjs=".mjs",a.Mts=".mts",a.Dmts=".d.mts",a.Cjs=".cjs",a.Cts=".cts",a.Dcts=".d.cts"}(e.Extension||(e.Extension={})),function(a){a[a.None=0]="None",a[a.ContainsTypeScript=1]="ContainsTypeScript",a[a.ContainsJsx=2]="ContainsJsx",a[a.ContainsESNext=4]="ContainsESNext",a[a.ContainsES2021=8]="ContainsES2021",a[a.ContainsES2020=16]="ContainsES2020",a[a.ContainsES2019=32]="ContainsES2019",a[a.ContainsES2018=64]="ContainsES2018",a[a.ContainsES2017=128]="ContainsES2017",a[a.ContainsES2016=256]="ContainsES2016",a[a.ContainsES2015=512]="ContainsES2015",a[a.ContainsGenerator=1024]="ContainsGenerator",a[a.ContainsDestructuringAssignment=2048]="ContainsDestructuringAssignment",a[a.ContainsTypeScriptClassSyntax=4096]="ContainsTypeScriptClassSyntax",a[a.ContainsLexicalThis=8192]="ContainsLexicalThis",a[a.ContainsRestOrSpread=16384]="ContainsRestOrSpread",a[a.ContainsObjectRestOrSpread=32768]="ContainsObjectRestOrSpread",a[a.ContainsComputedPropertyName=65536]="ContainsComputedPropertyName",a[a.ContainsBlockScopedBinding=131072]="ContainsBlockScopedBinding",a[a.ContainsBindingPattern=262144]="ContainsBindingPattern",a[a.ContainsYield=524288]="ContainsYield",a[a.ContainsAwait=1048576]="ContainsAwait",a[a.ContainsHoistedDeclarationOrCompletion=2097152]="ContainsHoistedDeclarationOrCompletion",a[a.ContainsDynamicImport=4194304]="ContainsDynamicImport",a[a.ContainsClassFields=8388608]="ContainsClassFields",a[a.ContainsPossibleTopLevelAwait=16777216]="ContainsPossibleTopLevelAwait",a[a.ContainsLexicalSuper=33554432]="ContainsLexicalSuper",a[a.ContainsUpdateExpressionForIdentifier=67108864]="ContainsUpdateExpressionForIdentifier",a[a.HasComputedFlags=536870912]="HasComputedFlags",a[a.AssertTypeScript=1]="AssertTypeScript",a[a.AssertJsx=2]="AssertJsx",a[a.AssertESNext=4]="AssertESNext",a[a.AssertES2021=8]="AssertES2021",a[a.AssertES2020=16]="AssertES2020",a[a.AssertES2019=32]="AssertES2019",a[a.AssertES2018=64]="AssertES2018",a[a.AssertES2017=128]="AssertES2017",a[a.AssertES2016=256]="AssertES2016",a[a.AssertES2015=512]="AssertES2015",a[a.AssertGenerator=1024]="AssertGenerator",a[a.AssertDestructuringAssignment=2048]="AssertDestructuringAssignment",a[a.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",a[a.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",a[a.NodeExcludes=536870912]="NodeExcludes",a[a.ArrowFunctionExcludes=557748224]="ArrowFunctionExcludes",a[a.FunctionExcludes=591310848]="FunctionExcludes",a[a.ConstructorExcludes=591306752]="ConstructorExcludes",a[a.MethodOrAccessorExcludes=574529536]="MethodOrAccessorExcludes",a[a.PropertyExcludes=570433536]="PropertyExcludes",a[a.ClassExcludes=536940544]="ClassExcludes",a[a.ModuleExcludes=589443072]="ModuleExcludes",a[a.TypeExcludes=-2]="TypeExcludes",a[a.ObjectLiteralExcludes=536973312]="ObjectLiteralExcludes",a[a.ArrayLiteralOrCallOrNewExcludes=536887296]="ArrayLiteralOrCallOrNewExcludes",a[a.VariableDeclarationListExcludes=537165824]="VariableDeclarationListExcludes",a[a.ParameterExcludes=536870912]="ParameterExcludes",a[a.CatchClauseExcludes=536903680]="CatchClauseExcludes",a[a.BindingPatternExcludes=536887296]="BindingPatternExcludes",a[a.ContainsLexicalThisOrSuper=33562624]="ContainsLexicalThisOrSuper",a[a.PropertyNamePropagatingFlags=33562624]="PropertyNamePropagatingFlags"}(e.TransformFlags||(e.TransformFlags={})),function(a){a[a.TabStop=0]="TabStop",a[a.Placeholder=1]="Placeholder",a[a.Choice=2]="Choice",a[a.Variable=3]="Variable"}(e.SnippetKind||(e.SnippetKind={})),function(a){a[a.None=0]="None",a[a.SingleLine=1]="SingleLine",a[a.AdviseOnEmitNode=2]="AdviseOnEmitNode",a[a.NoSubstitution=4]="NoSubstitution",a[a.CapturesThis=8]="CapturesThis",a[a.NoLeadingSourceMap=16]="NoLeadingSourceMap",a[a.NoTrailingSourceMap=32]="NoTrailingSourceMap",a[a.NoSourceMap=48]="NoSourceMap",a[a.NoNestedSourceMaps=64]="NoNestedSourceMaps",a[a.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",a[a.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",a[a.NoTokenSourceMaps=384]="NoTokenSourceMaps",a[a.NoLeadingComments=512]="NoLeadingComments",a[a.NoTrailingComments=1024]="NoTrailingComments",a[a.NoComments=1536]="NoComments",a[a.NoNestedComments=2048]="NoNestedComments",a[a.HelperName=4096]="HelperName",a[a.ExportName=8192]="ExportName",a[a.LocalName=16384]="LocalName",a[a.InternalName=32768]="InternalName",a[a.Indented=65536]="Indented",a[a.NoIndentation=131072]="NoIndentation",a[a.AsyncFunctionBody=262144]="AsyncFunctionBody",a[a.ReuseTempVariableScope=524288]="ReuseTempVariableScope",a[a.CustomPrologue=1048576]="CustomPrologue",a[a.NoHoisting=2097152]="NoHoisting",a[a.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",a[a.Iterator=8388608]="Iterator",a[a.NoAsciiEscaping=16777216]="NoAsciiEscaping",a[a.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",a[a.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",a[a.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",a[a.Immutable=268435456]="Immutable",a[a.IndirectCall=536870912]="IndirectCall"}(e.EmitFlags||(e.EmitFlags={})),function(a){a[a.Extends=1]="Extends",a[a.Assign=2]="Assign",a[a.Rest=4]="Rest",a[a.Decorate=8]="Decorate",a[a.Metadata=16]="Metadata",a[a.Param=32]="Param",a[a.Awaiter=64]="Awaiter",a[a.Generator=128]="Generator",a[a.Values=256]="Values",a[a.Read=512]="Read",a[a.SpreadArray=1024]="SpreadArray",a[a.Await=2048]="Await",a[a.AsyncGenerator=4096]="AsyncGenerator",a[a.AsyncDelegator=8192]="AsyncDelegator",a[a.AsyncValues=16384]="AsyncValues",a[a.ExportStar=32768]="ExportStar",a[a.ImportStar=65536]="ImportStar",a[a.ImportDefault=131072]="ImportDefault",a[a.MakeTemplateObject=262144]="MakeTemplateObject",a[a.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",a[a.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",a[a.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",a[a.CreateBinding=4194304]="CreateBinding",a[a.FirstEmitHelper=1]="FirstEmitHelper",a[a.LastEmitHelper=4194304]="LastEmitHelper",a[a.ForOfIncludes=256]="ForOfIncludes",a[a.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",a[a.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",a[a.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",a[a.SpreadIncludes=1536]="SpreadIncludes"}(e.ExternalEmitHelpers||(e.ExternalEmitHelpers={})),function(a){a[a.SourceFile=0]="SourceFile",a[a.Expression=1]="Expression",a[a.IdentifierName=2]="IdentifierName",a[a.MappedTypeParameter=3]="MappedTypeParameter",a[a.Unspecified=4]="Unspecified",a[a.EmbeddedStatement=5]="EmbeddedStatement",a[a.JsxAttributeValue=6]="JsxAttributeValue"}(e.EmitHint||(e.EmitHint={})),function(a){a[a.Parentheses=1]="Parentheses",a[a.TypeAssertions=2]="TypeAssertions",a[a.NonNullAssertions=4]="NonNullAssertions",a[a.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",a[a.Assertions=6]="Assertions",a[a.All=15]="All",a[a.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion"}(e.OuterExpressionKinds||(e.OuterExpressionKinds={})),function(a){a[a.None=0]="None",a[a.InParameters=1]="InParameters",a[a.VariablesHoistedInParameters=2]="VariablesHoistedInParameters"}(e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={})),function(a){a.Prologue="prologue",a.EmitHelpers="emitHelpers",a.NoDefaultLib="no-default-lib",a.Reference="reference",a.Type="type",a.Lib="lib",a.Prepend="prepend",a.Text="text",a.Internal="internal"}(e.BundleFileSectionKind||(e.BundleFileSectionKind={})),function(a){a[a.None=0]="None",a[a.SingleLine=0]="SingleLine",a[a.MultiLine=1]="MultiLine",a[a.PreserveLines=2]="PreserveLines",a[a.LinesMask=3]="LinesMask",a[a.NotDelimited=0]="NotDelimited",a[a.BarDelimited=4]="BarDelimited",a[a.AmpersandDelimited=8]="AmpersandDelimited",a[a.CommaDelimited=16]="CommaDelimited",a[a.AsteriskDelimited=32]="AsteriskDelimited",a[a.DelimitersMask=60]="DelimitersMask",a[a.AllowTrailingComma=64]="AllowTrailingComma",a[a.Indented=128]="Indented",a[a.SpaceBetweenBraces=256]="SpaceBetweenBraces",a[a.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",a[a.Braces=1024]="Braces",a[a.Parenthesis=2048]="Parenthesis",a[a.AngleBrackets=4096]="AngleBrackets",a[a.SquareBrackets=8192]="SquareBrackets",a[a.BracketsMask=15360]="BracketsMask",a[a.OptionalIfUndefined=16384]="OptionalIfUndefined",a[a.OptionalIfEmpty=32768]="OptionalIfEmpty",a[a.Optional=49152]="Optional",a[a.PreferNewLine=65536]="PreferNewLine",a[a.NoTrailingNewLine=131072]="NoTrailingNewLine",a[a.NoInterveningComments=262144]="NoInterveningComments",a[a.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",a[a.SingleElement=1048576]="SingleElement",a[a.SpaceAfterList=2097152]="SpaceAfterList",a[a.Modifiers=262656]="Modifiers",a[a.HeritageClauses=512]="HeritageClauses",a[a.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",a[a.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",a[a.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",a[a.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",a[a.UnionTypeConstituents=516]="UnionTypeConstituents",a[a.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",a[a.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",a[a.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",a[a.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",a[a.ImportClauseEntries=526226]="ImportClauseEntries",a[a.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",a[a.CommaListElements=528]="CommaListElements",a[a.CallExpressionArguments=2576]="CallExpressionArguments",a[a.NewExpressionArguments=18960]="NewExpressionArguments",a[a.TemplateExpressionSpans=262144]="TemplateExpressionSpans",a[a.SingleLineBlockStatements=768]="SingleLineBlockStatements",a[a.MultiLineBlockStatements=129]="MultiLineBlockStatements",a[a.VariableDeclarationList=528]="VariableDeclarationList",a[a.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",a[a.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",a[a.ClassHeritageClauses=0]="ClassHeritageClauses",a[a.ClassMembers=129]="ClassMembers",a[a.InterfaceMembers=129]="InterfaceMembers",a[a.EnumMembers=145]="EnumMembers",a[a.CaseBlockClauses=129]="CaseBlockClauses",a[a.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",a[a.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",a[a.JsxElementAttributes=262656]="JsxElementAttributes",a[a.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",a[a.HeritageClauseTypes=528]="HeritageClauseTypes",a[a.SourceFileStatements=131073]="SourceFileStatements",a[a.Decorators=2146305]="Decorators",a[a.TypeArguments=53776]="TypeArguments",a[a.TypeParameters=53776]="TypeParameters",a[a.Parameters=2576]="Parameters",a[a.IndexSignatureParameters=8848]="IndexSignatureParameters",a[a.JSDocComment=33]="JSDocComment"}(e.ListFormat||(e.ListFormat={})),function(a){a[a.None=0]="None",a[a.TripleSlashXML=1]="TripleSlashXML",a[a.SingleLine=2]="SingleLine",a[a.MultiLine=4]="MultiLine",a[a.All=7]="All",a[a.Default=7]="Default"}(e.PragmaKindFlags||(e.PragmaKindFlags={})),e.commentPragmas={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}],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}}}(jr||(jr={})),function(e){e.directorySeparator="/",e.altDirectorySeparator="\\";var n="://",f=/\\/g;function p(ve){return ve===47||ve===92}e.isAnyDirectorySeparator=p;function a(ve){return B(ve)<0}e.isUrl=a;function d(ve){return B(ve)>0}e.isRootedDiskPath=d;function k(ve){var Ve=B(ve);return Ve>0&&Ve===ve.length}e.isDiskPathRoot=k;function J(ve){return B(ve)!==0}e.pathIsAbsolute=J;function h(ve){return/^\.\.?($|[\\/])/.test(ve)}e.pathIsRelative=h;function v(ve){return!J(ve)&&!h(ve)}e.pathIsBareSpecifier=v;function A(ve){return e.stringContains(w(ve),".")}e.hasExtension=A;function z(ve,Ve){return ve.length>Ve.length&&e.endsWith(ve,Ve)}e.fileExtensionIs=z;function ie(ve,Ve){for(var _e=0,Le=Ve;_e<Le.length;_e++){var qe=Le[_e];if(z(ve,qe))return!0}return!1}e.fileExtensionIsOneOf=ie;function b(ve){return ve.length>0&&p(ve.charCodeAt(ve.length-1))}e.hasTrailingDirectorySeparator=b;function M(ve){return ve>=97&&ve<=122||ve>=65&&ve<=90}function S(ve,Ve){var _e=ve.charCodeAt(Ve);if(_e===58)return Ve+1;if(_e===37&&ve.charCodeAt(Ve+1)===51){var Le=ve.charCodeAt(Ve+2);if(Le===97||Le===65)return Ve+3}return-1}function B(ve){if(!ve)return 0;var Ve=ve.charCodeAt(0);if(Ve===47||Ve===92){if(ve.charCodeAt(1)!==Ve)return 1;var _e=ve.indexOf(Ve===47?e.directorySeparator:e.altDirectorySeparator,2);return _e<0?ve.length:_e+1}if(M(Ve)&&ve.charCodeAt(1)===58){var Le=ve.charCodeAt(2);if(Le===47||Le===92)return 3;if(ve.length===2)return 2}var qe=ve.indexOf(n);if(qe!==-1){var Xe=qe+n.length,De=ve.indexOf(e.directorySeparator,Xe);if(De!==-1){var Ae=ve.slice(0,qe),Ye=ve.slice(Xe,De);if(Ae==="file"&&(Ye===""||Ye==="localhost")&&M(ve.charCodeAt(De+1))){var Dr=S(ve,De+2);if(Dr!==-1){if(ve.charCodeAt(Dr)===47)return~(Dr+1);if(Dr===ve.length)return~Dr}}return~(De+1)}return~ve.length}return 0}function H(ve){var Ve=B(ve);return Ve<0?~Ve:Ve}e.getRootLength=H;function I(ve){ve=Q(ve);var Ve=H(ve);return Ve===ve.length?ve:(ve=P(ve),ve.slice(0,Math.max(Ve,ve.lastIndexOf(e.directorySeparator))))}e.getDirectoryPath=I;function w(ve,Ve,_e){ve=Q(ve);var Le=H(ve);if(Le===ve.length)return"";ve=P(ve);var qe=ve.slice(Math.max(H(ve),ve.lastIndexOf(e.directorySeparator)+1)),Xe=Ve!==void 0&&_e!==void 0?q(qe,Ve,_e):void 0;return Xe?qe.slice(0,qe.length-Xe.length):qe}e.getBaseFileName=w;function x(ve,Ve,_e){if(e.startsWith(Ve,".")||(Ve="."+Ve),ve.length>=Ve.length&&ve.charCodeAt(ve.length-Ve.length)===46){var Le=ve.slice(ve.length-Ve.length);if(_e(Le,Ve))return Le}}function O(ve,Ve,_e){if(typeof Ve=="string")return x(ve,Ve,_e)||"";for(var Le=0,qe=Ve;Le<qe.length;Le++){var Xe=qe[Le],De=x(ve,Xe,_e);if(De)return De}return""}function q(ve,Ve,_e){if(Ve)return O(P(ve),Ve,_e?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var Le=w(ve),qe=Le.lastIndexOf(".");return qe>=0?Le.substring(qe):""}e.getAnyExtensionFromPath=q;function Z(ve,Ve){var _e=ve.substring(0,Ve),Le=ve.substring(Ve).split(e.directorySeparator);return Le.length&&!e.lastOrUndefined(Le)&&Le.pop(),Gt([_e],Le,!0)}function ne(ve,Ve){return Ve===void 0&&(Ve=""),ve=re(Ve,ve),Z(ve,H(ve))}e.getPathComponents=ne;function F(ve){if(ve.length===0)return"";var Ve=ve[0]&&te(ve[0]);return Ve+ve.slice(1).join(e.directorySeparator)}e.getPathFromPathComponents=F;function Q(ve){var Ve=ve.indexOf("\\");return Ve===-1?ve:(f.lastIndex=Ve,ve.replace(f,e.directorySeparator))}e.normalizeSlashes=Q;function V(ve){if(!e.some(ve))return[];for(var Ve=[ve[0]],_e=1;_e<ve.length;_e++){var Le=ve[_e];if(Le&&Le!=="."){if(Le===".."){if(Ve.length>1){if(Ve[Ve.length-1]!==".."){Ve.pop();continue}}else if(Ve[0])continue}Ve.push(Le)}}return Ve}e.reducePathComponents=V;function re(ve){for(var Ve=[],_e=1;_e<arguments.length;_e++)Ve[_e-1]=arguments[_e];ve&&(ve=Q(ve));for(var Le=0,qe=Ve;Le<qe.length;Le++){var Xe=qe[Le];Xe&&(Xe=Q(Xe),!ve||H(Xe)!==0?ve=Xe:ve=te(ve)+Xe)}return ve}e.combinePaths=re;function T(ve){for(var Ve=[],_e=1;_e<arguments.length;_e++)Ve[_e-1]=arguments[_e];return D(e.some(Ve)?re.apply(void 0,Gt([ve],Ve,!1)):Q(ve))}e.resolvePath=T;function N(ve,Ve){return V(ne(ve,Ve))}e.getNormalizedPathComponents=N;function y(ve,Ve){return F(N(ve,Ve))}e.getNormalizedAbsolutePath=y;function D(ve){if(ve=Q(ve),!j.test(ve))return ve;var Ve=ve.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(Ve!==ve&&(ve=Ve,!j.test(ve)))return ve;var _e=F(V(ne(ve)));return _e&&b(ve)?te(_e):_e}e.normalizePath=D;function C(ve){return ve.length===0?"":ve.slice(1).join(e.directorySeparator)}function m(ve,Ve){return C(N(ve,Ve))}e.getNormalizedAbsolutePathWithoutRoot=m;function u(ve,Ve,_e){var Le=d(ve)?D(ve):y(ve,Ve);return _e(Le)}e.toPath=u;function g(ve){ve=Q(ve);var Ve=V(ne(ve)),_e=Ve[0],Le=Ve.slice(1);if(Le.length){var qe=_e+Le.join(e.directorySeparator);return{path:b(ve)?te(qe):qe,parts:Le}}else return{path:_e,parts:Le}}e.normalizePathAndParts=g;function P(ve){return b(ve)?ve.substr(0,ve.length-1):ve}e.removeTrailingDirectorySeparator=P;function te(ve){return b(ve)?ve:ve+e.directorySeparator}e.ensureTrailingDirectorySeparator=te;function ue(ve){return!J(ve)&&!h(ve)?"./"+ve:ve}e.ensurePathIsNonModuleName=ue;function X(ve,Ve,_e,Le){var qe=_e!==void 0&&Le!==void 0?q(ve,_e,Le):q(ve);return qe?ve.slice(0,ve.length-qe.length)+(e.startsWith(Ve,".")?Ve:"."+Ve):ve}e.changeAnyExtension=X;var j=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function Se(ve,Ve,_e){if(ve===Ve)return 0;if(ve===void 0)return-1;if(Ve===void 0)return 1;var Le=ve.substring(0,H(ve)),qe=Ve.substring(0,H(Ve)),Xe=e.compareStringsCaseInsensitive(Le,qe);if(Xe!==0)return Xe;var De=ve.substring(Le.length),Ae=Ve.substring(qe.length);if(!j.test(De)&&!j.test(Ae))return _e(De,Ae);for(var Ye=V(ne(ve)),Dr=V(ne(Ve)),br=Math.min(Ye.length,Dr.length),lr=1;lr<br;lr++){var Ar=_e(Ye[lr],Dr[lr]);if(Ar!==0)return Ar}return e.compareValues(Ye.length,Dr.length)}function Ce(ve,Ve){return Se(ve,Ve,e.compareStringsCaseSensitive)}e.comparePathsCaseSensitive=Ce;function R(ve,Ve){return Se(ve,Ve,e.compareStringsCaseInsensitive)}e.comparePathsCaseInsensitive=R;function Y(ve,Ve,_e,Le){return typeof _e=="string"?(ve=re(_e,ve),Ve=re(_e,Ve)):typeof _e=="boolean"&&(Le=_e),Se(ve,Ve,e.getStringComparer(Le))}e.comparePaths=Y;function U(ve,Ve,_e,Le){if(typeof _e=="string"?(ve=re(_e,ve),Ve=re(_e,Ve)):typeof _e=="boolean"&&(Le=_e),ve===void 0||Ve===void 0)return!1;if(ve===Ve)return!0;var qe=V(ne(ve)),Xe=V(ne(Ve));if(Xe.length<qe.length)return!1;for(var De=Le?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,Ae=0;Ae<qe.length;Ae++){var Ye=Ae===0?e.equateStringsCaseInsensitive:De;if(!Ye(qe[Ae],Xe[Ae]))return!1}return!0}e.containsPath=U;function K(ve,Ve,_e){var Le=_e(ve),qe=_e(Ve);return e.startsWith(Le,qe+"/")||e.startsWith(Le,qe+"\\")}e.startsWithDirectory=K;function Te(ve,Ve,_e,Le){var qe=V(ne(ve)),Xe=V(ne(Ve)),De;for(De=0;De<qe.length&&De<Xe.length;De++){var Ae=Le(qe[De]),Ye=Le(Xe[De]),Dr=De===0?e.equateStringsCaseInsensitive:_e;if(!Dr(Ae,Ye))break}if(De===0)return Xe;for(var br=Xe.slice(De),lr=[];De<qe.length;De++)lr.push("..");return Gt(Gt([""],lr,!0),br,!0)}e.getPathComponentsRelativeTo=Te;function ge(ve,Ve,_e){e.Debug.assert(H(ve)>0==H(Ve)>0,"Paths must either both be absolute or both be relative");var Le=typeof _e=="function"?_e:e.identity,qe=typeof _e=="boolean"?_e:!1,Xe=Te(ve,Ve,qe?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,Le);return F(Xe)}e.getRelativePathFromDirectory=ge;function ke(ve,Ve,_e){return d(ve)?Ie(Ve,ve,Ve,_e,!1):ve}e.convertToRelativePath=ke;function Pe(ve,Ve,_e){return ue(ge(I(ve),Ve,_e))}e.getRelativePathFromFile=Pe;function Ie(ve,Ve,_e,Le,qe){var Xe=Te(T(_e,ve),T(_e,Ve),e.equateStringsCaseSensitive,Le),De=Xe[0];if(qe&&d(De)){var Ae=De.charAt(0)===e.directorySeparator?"file://":"file:///";Xe[0]=Ae+De}return F(Xe)}e.getRelativePathToDirectoryOrUrl=Ie;function Ge(ve,Ve){for(;;){var _e=Ve(ve);if(_e!==void 0)return _e;var Le=I(ve);if(Le===ve)return;ve=Le}}e.forEachAncestorDirectory=Ge;function he(ve){return e.endsWith(ve,"/node_modules")}e.isNodeModulesDirectory=he}(jr||(jr={})),function(e){function n(V){for(var re=5381,T=0;T<V.length;T++)re=(re<<5)+re+V.charCodeAt(T);return re.toString()}e.generateDjb2Hash=n;function f(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}e.setStackTraceLimit=f;var p;(function(V){V[V.Created=0]="Created",V[V.Changed=1]="Changed",V[V.Deleted=2]="Deleted"})(p=e.FileWatcherEventKind||(e.FileWatcherEventKind={}));var a;(function(V){V[V.High=2e3]="High",V[V.Medium=500]="Medium",V[V.Low=250]="Low"})(a=e.PollingInterval||(e.PollingInterval={})),e.missingFileModifiedTime=new Date(0);function d(V,re){return V.getModifiedTime(re)||e.missingFileModifiedTime}e.getModifiedTime=d;function k(V){var re;return re={},re[a.Low]=V.Low,re[a.Medium]=V.Medium,re[a.High]=V.High,re}var J={Low:32,Medium:64,High:256},h=k(J);e.unchangedPollThresholds=k(J);function v(V){if(!V.getEnvironmentVariable)return;var re=y("TSC_WATCH_POLLINGINTERVAL",a);h=D("TSC_WATCH_POLLINGCHUNKSIZE",J)||h,e.unchangedPollThresholds=D("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",J)||e.unchangedPollThresholds;function T(C,m){return V.getEnvironmentVariable("".concat(C,"_").concat(m.toUpperCase()))}function N(C){var m;return u("Low"),u("Medium"),u("High"),m;function u(g){var P=T(C,g);P&&((m||(m={}))[g]=Number(P))}}function y(C,m){var u=N(C);if(u)return g("Low"),g("Medium"),g("High"),!0;return!1;function g(P){m[P]=u[P]||m[P]}}function D(C,m){var u=N(C);return(re||u)&&k(u?Rn(Rn({},m),u):m)}}e.setCustomPollingValues=v;function A(V,re,T,N,y){for(var D=T,C=re.length;N&&C;g(),C--){var m=re[T];if(m){if(m.isClosed){re[T]=void 0;continue}}else continue;N--;var u=S(m,d(V,m.fileName));if(m.isClosed){re[T]=void 0;continue}y==null||y(m,T,u),re[T]&&(D<T&&(re[D]=m,re[T]=void 0),D++)}return T;function g(){T++,T===re.length&&(D<T&&(re.length=D),T=0,D=0)}}function z(V){var re=[],T=[],N=m(a.Low),y=m(a.Medium),D=m(a.High);return C;function C(Ce,R,Y){var U={fileName:Ce,callback:R,unchangedPolls:0,mtime:d(V,Ce)};return re.push(U),ue(U,Y),{close:function(){U.isClosed=!0,e.unorderedRemoveItem(re,U)}}}function m(Ce){var R=[];return R.pollingInterval=Ce,R.pollIndex=0,R.pollScheduled=!1,R}function u(Ce){Ce.pollIndex=P(Ce,Ce.pollingInterval,Ce.pollIndex,h[Ce.pollingInterval]),Ce.length?Se(Ce.pollingInterval):(e.Debug.assert(Ce.pollIndex===0),Ce.pollScheduled=!1)}function g(Ce){P(T,a.Low,0,T.length),u(Ce),!Ce.pollScheduled&&T.length&&Se(a.Low)}function P(Ce,R,Y,U){return A(V,Ce,Y,U,K);function K(Te,ge,ke){ke?(Te.unchangedPolls=0,Ce!==T&&(Ce[ge]=void 0,X(Te))):Te.unchangedPolls!==e.unchangedPollThresholds[R]?Te.unchangedPolls++:Ce===T?(Te.unchangedPolls=1,Ce[ge]=void 0,ue(Te,a.Low)):R!==a.High&&(Te.unchangedPolls++,Ce[ge]=void 0,ue(Te,R===a.Low?a.Medium:a.High))}}function te(Ce){switch(Ce){case a.Low:return N;case a.Medium:return y;case a.High:return D}}function ue(Ce,R){te(R).push(Ce),j(R)}function X(Ce){T.push(Ce),j(a.Low)}function j(Ce){te(Ce).pollScheduled||Se(Ce)}function Se(Ce){te(Ce).pollScheduled=V.setTimeout(Ce===a.Low?g:u,Ce,te(Ce))}}e.createDynamicPriorityPollingWatchFile=z;function ie(V,re){var T=e.createMultiMap(),N=new e.Map,y=e.createGetCanonicalFileName(re);return D;function D(m,u,g,P){var te=y(m);T.add(te,u);var ue=e.getDirectoryPath(te)||".",X=N.get(ue)||C(e.getDirectoryPath(m)||".",ue,P);return X.referenceCount++,{close:function(){X.referenceCount===1?(X.close(),N.delete(ue)):X.referenceCount--,T.remove(te,u)}}}function C(m,u,g){var P=V(m,1,function(te,ue){if(e.isString(ue)){var X=e.getNormalizedAbsolutePath(ue,m),j=X&&T.get(y(X));if(j)for(var Se=0,Ce=j;Se<Ce.length;Se++){var R=Ce[Se];R(X,p.Changed)}}},!1,a.Medium,g);return P.referenceCount=0,N.set(u,P),P}}function b(V){var re=[],T=0,N;return y;function y(m,u){var g={fileName:m,callback:u,mtime:d(V,m)};return re.push(g),C(),{close:function(){g.isClosed=!0,e.unorderedRemoveItem(re,g)}}}function D(){N=void 0,T=A(V,re,T,h[a.Low]),C()}function C(){!re.length||N||(N=V.setTimeout(D,a.High))}}function M(V,re){var T=new e.Map,N=e.createMultiMap(),y=e.createGetCanonicalFileName(re);return function(D,C,m,u){var g=y(D),P=T.get(g);return P?P.refCount++:T.set(g,{watcher:V(D,function(te,ue){return e.forEach(N.get(g),function(X){return X(te,ue)})},m,u),refCount:1}),N.add(g,C),{close:function(){var te=e.Debug.checkDefined(T.get(g));N.remove(g,C),te.refCount--,!te.refCount&&(T.delete(g),e.closeFileWatcherOf(te))}}}}e.createSingleFileWatcherPerName=M;function S(V,re){var T=V.mtime.getTime(),N=re.getTime();return T!==N?(V.mtime=re,V.callback(V.fileName,B(T,N)),!0):!1}e.onWatchedFileStat=S;function B(V,re){return V===0?p.Created:re===0?p.Deleted:p.Changed}e.getFileWatcherEventKind=B,e.ignoredPaths=["/node_modules/.","/.git","/.#"],e.sysLog=e.noop;function H(V){e.sysLog=V}e.setSysLog=H;function I(V){var re=V.watchDirectory,T=V.useCaseSensitiveFileNames,N=V.getCurrentDirectory,y=V.getAccessibleSortedChildDirectories,D=V.directoryExists,C=V.realpath,m=V.setTimeout,u=V.clearTimeout,g=new e.Map,P=e.createMultiMap(),te=new e.Map,ue,X=e.getStringComparer(!T),j=e.createGetCanonicalFileName(T);return function(Pe,Ie,Ge,he){return Ge?Se(Pe,he,Ie):re(Pe,Ie,Ge,he)};function Se(Pe,Ie,Ge){var he=j(Pe),ve=g.get(he);ve?ve.refCount++:(ve={watcher:re(Pe,function(_e){ge(_e,Ie)||(Ie!=null&&Ie.synchronousWatchDirectory?(Ce(he,_e),Te(Pe,he,Ie)):R(Pe,he,_e,Ie))},!1,Ie),refCount:1,childWatches:e.emptyArray},g.set(he,ve),Te(Pe,he,Ie));var Ve=Ge&&{dirName:Pe,callback:Ge};return Ve&&P.add(he,Ve),{dirName:Pe,close:function(){var _e=e.Debug.checkDefined(g.get(he));Ve&&P.remove(he,Ve),_e.refCount--,!_e.refCount&&(g.delete(he),e.closeFileWatcherOf(_e),_e.childWatches.forEach(e.closeFileWatcher))}}}function Ce(Pe,Ie,Ge){var he,ve;e.isString(Ie)?he=Ie:ve=Ie,P.forEach(function(Ve,_e){var Le;if(!(ve&&ve.get(_e)===!0)&&(_e===Pe||e.startsWith(Pe,_e)&&Pe[_e.length]===e.directorySeparator))if(ve)if(Ge){var qe=ve.get(_e);qe?(Le=qe).push.apply(Le,Ge):ve.set(_e,Ge.slice())}else ve.set(_e,!0);else Ve.forEach(function(Xe){var De=Xe.callback;return De(he)})})}function R(Pe,Ie,Ge,he){var ve=g.get(Ie);if(ve&&D(Pe)){Y(Pe,Ie,Ge,he);return}Ce(Ie,Ge),K(ve)}function Y(Pe,Ie,Ge,he){var ve=te.get(Ie);ve?ve.fileNames.push(Ge):te.set(Ie,{dirName:Pe,options:he,fileNames:[Ge]}),ue&&(u(ue),ue=void 0),ue=m(U,1e3)}function U(){ue=void 0,e.sysLog("sysLog:: onTimerToUpdateChildWatches:: ".concat(te.size));for(var Pe=e.timestamp(),Ie=new e.Map;!ue&&te.size;){var Ge=te.entries().next();e.Debug.assert(!Ge.done);var he=Ge.value,ve=he[0],Ve=he[1],_e=Ve.dirName,Le=Ve.options,qe=Ve.fileNames;te.delete(ve);var Xe=Te(_e,ve,Le);Ce(ve,Ie,Xe?void 0:qe)}e.sysLog("sysLog:: invokingWatchers:: Elapsed:: ".concat(e.timestamp()-Pe,"ms:: ").concat(te.size)),P.forEach(function(Ae,Ye){var Dr=Ie.get(Ye);Dr&&Ae.forEach(function(br){var lr=br.callback,Ar=br.dirName;e.isArray(Dr)?Dr.forEach(lr):lr(Ar)})});var De=e.timestamp()-Pe;e.sysLog("sysLog:: Elapsed:: ".concat(De,"ms:: onTimerToUpdateChildWatches:: ").concat(te.size," ").concat(ue))}function K(Pe){if(Pe){var Ie=Pe.childWatches;Pe.childWatches=e.emptyArray;for(var Ge=0,he=Ie;Ge<he.length;Ge++){var ve=he[Ge];ve.close(),K(g.get(j(ve.dirName)))}}}function Te(Pe,Ie,Ge){var he=g.get(Ie);if(!he)return!1;var ve,Ve=e.enumerateInsertsAndDeletes(D(Pe)?e.mapDefined(y(Pe),function(qe){var Xe=e.getNormalizedAbsolutePath(qe,Pe);return!ge(Xe,Ge)&&X(Xe,e.normalizePath(C(Xe)))===0?Xe:void 0}):e.emptyArray,he.childWatches,function(qe,Xe){return X(qe,Xe.dirName)},_e,e.closeFileWatcher,Le);return he.childWatches=ve||e.emptyArray,Ve;function _e(qe){var Xe=Se(qe,Ge);Le(Xe)}function Le(qe){(ve||(ve=[])).push(qe)}}function ge(Pe,Ie){return e.some(e.ignoredPaths,function(Ge){return ke(Pe,Ge)})||O(Pe,Ie,T,N)}function ke(Pe,Ie){return e.stringContains(Pe,Ie)?!0:T?!1:e.stringContains(j(Pe),Ie)}}e.createDirectoryWatcherSupportingRecursive=I,function(V){V[V.File=0]="File",V[V.Directory=1]="Directory"}(e.FileSystemEntryKind||(e.FileSystemEntryKind={}));function w(V){return function(re,T){return V(T===p.Changed?"change":"rename","")}}e.createFileWatcherCallback=w;function x(V,re,T){return function(N){N==="rename"?re(V,T(V)?p.Created:p.Deleted):re(V,p.Changed)}}function O(V,re,T,N){return((re==null?void 0:re.excludeDirectories)||(re==null?void 0:re.excludeFiles))&&(e.matchesExclude(V,re==null?void 0:re.excludeFiles,T,N())||e.matchesExclude(V,re==null?void 0:re.excludeDirectories,T,N()))}function q(V,re,T,N,y){return function(D,C){if(D==="rename"){var m=C?e.normalizePath(e.combinePaths(V,C)):V;(!C||!O(m,T,N,y))&&re(m)}}}function Z(V){var re=V.pollingWatchFile,T=V.getModifiedTime,N=V.setTimeout,y=V.clearTimeout,D=V.fsWatch,C=V.fileExists,m=V.useCaseSensitiveFileNames,u=V.getCurrentDirectory,g=V.fsSupportsRecursiveFsWatch,P=V.directoryExists,te=V.getAccessibleSortedChildDirectories,ue=V.realpath,X=V.tscWatchFile,j=V.useNonPollingWatchers,Se=V.tscWatchDirectory,Ce=V.defaultWatchFileKind,R,Y,U,K;return{watchFile:Te,watchDirectory:Ge};function Te(Ve,_e,Le,qe){qe=Pe(qe,j);var Xe=e.Debug.checkDefined(qe.watchFile);switch(Xe){case e.WatchFileKind.FixedPollingInterval:return re(Ve,_e,a.Low,void 0);case e.WatchFileKind.PriorityPollingInterval:return re(Ve,_e,Le,void 0);case e.WatchFileKind.DynamicPriorityPolling:return ge()(Ve,_e,Le,void 0);case e.WatchFileKind.FixedChunkSizePolling:return ke()(Ve,_e,void 0,void 0);case e.WatchFileKind.UseFsEvents:return D(Ve,0,x(Ve,_e,C),!1,Le,e.getFallbackOptions(qe));case e.WatchFileKind.UseFsEventsOnParentDirectory:return U||(U=ie(D,m)),U(Ve,_e,Le,e.getFallbackOptions(qe));default:e.Debug.assertNever(Xe)}}function ge(){return R||(R=z({getModifiedTime:T,setTimeout:N}))}function ke(){return Y||(Y=b({getModifiedTime:T,setTimeout:N}))}function Pe(Ve,_e){if(Ve&&Ve.watchFile!==void 0)return Ve;switch(X){case"PriorityPollingInterval":return{watchFile:e.WatchFileKind.PriorityPollingInterval};case"DynamicPriorityPolling":return{watchFile:e.WatchFileKind.DynamicPriorityPolling};case"UseFsEvents":return Ie(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.PriorityInterval,Ve);case"UseFsEventsWithFallbackDynamicPolling":return Ie(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.DynamicPriority,Ve);case"UseFsEventsOnParentDirectory":_e=!0;default:return _e?Ie(e.WatchFileKind.UseFsEventsOnParentDirectory,e.PollingWatchKind.PriorityInterval,Ve):{watchFile:(Ce==null?void 0:Ce())||e.WatchFileKind.FixedPollingInterval}}}function Ie(Ve,_e,Le){var qe=Le==null?void 0:Le.fallbackPolling;return{watchFile:Ve,fallbackPolling:qe===void 0?_e:qe}}function Ge(Ve,_e,Le,qe){return g?D(Ve,1,q(Ve,_e,qe,m,u),Le,a.Medium,e.getFallbackOptions(qe)):(K||(K=I({useCaseSensitiveFileNames:m,getCurrentDirectory:u,directoryExists:P,getAccessibleSortedChildDirectories:te,watchDirectory:he,realpath:ue,setTimeout:N,clearTimeout:y})),K(Ve,_e,Le,qe))}function he(Ve,_e,Le,qe){e.Debug.assert(!Le);var Xe=ve(qe),De=e.Debug.checkDefined(Xe.watchDirectory);switch(De){case e.WatchDirectoryKind.FixedPollingInterval:return re(Ve,function(){return _e(Ve)},a.Medium,void 0);case e.WatchDirectoryKind.DynamicPriorityPolling:return ge()(Ve,function(){return _e(Ve)},a.Medium,void 0);case e.WatchDirectoryKind.FixedChunkSizePolling:return ke()(Ve,function(){return _e(Ve)},void 0,void 0);case e.WatchDirectoryKind.UseFsEvents:return D(Ve,1,q(Ve,_e,qe,m,u),Le,a.Medium,e.getFallbackOptions(Xe));default:e.Debug.assertNever(De)}}function ve(Ve){if(Ve&&Ve.watchDirectory!==void 0)return Ve;switch(Se){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:e.WatchDirectoryKind.FixedPollingInterval};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:e.WatchDirectoryKind.DynamicPriorityPolling};default:var _e=Ve==null?void 0:Ve.fallbackPolling;return{watchDirectory:e.WatchDirectoryKind.UseFsEvents,fallbackPolling:_e!==void 0?_e:void 0}}}}e.createSystemWatchFunctions=Z;function ne(V){var re=V.writeFile;V.writeFile=function(T,N,y){return e.writeFileEnsuringDirectories(T,N,!!y,function(D,C,m){return re.call(V,D,C,m)},function(D){return V.createDirectory(D)},function(D){return V.directoryExists(D)})}}e.patchWriteFileEnsuringDirectory=ne;function F(){if(!(typeof process>"u")){var V=process.version;if(V){var re=V.indexOf(".");if(re!==-1)return parseInt(V.substring(1,re))}}}e.getNodeMajorVersion=F,e.sys=void 0;function Q(V){e.sys=V}e.setSys=Q,e.sys&&e.sys.getEnvironmentVariable&&(v(e.sys),e.Debug.setAssertionLevel(/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)}(jr||(jr={})),function(e){function n(f,p,a,d,k,J,h){return{code:f,category:p,key:a,message:d,reportsUnnecessary:k,elidedInCompatabilityPyramid:J,reportsDeprecated:h}}e.Diagnostics={Unterminated_string_literal:n(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:n(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:n(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:n(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_to_match_the_token_here:n(1007,e.DiagnosticCategory.Error,"The_parser_expected_to_find_a_to_match_the_token_here_1007","The parser expected to find a '}' to match the '{' token here."),Trailing_comma_not_allowed:n(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:n(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:n(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:n(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:n(1013,e.DiagnosticCategory.Error,"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:n(1014,e.DiagnosticCategory.Error,"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:n(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:n(1016,e.DiagnosticCategory.Error,"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:n(1017,e.DiagnosticCategory.Error,"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:n(1018,e.DiagnosticCategory.Error,"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:n(1019,e.DiagnosticCategory.Error,"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:n(1020,e.DiagnosticCategory.Error,"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:n(1021,e.DiagnosticCategory.Error,"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:n(1022,e.DiagnosticCategory.Error,"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:n(1024,e.DiagnosticCategory.Error,"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:n(1025,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:n(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:n(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:n(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:n(1031,e.DiagnosticCategory.Error,"_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:n(1034,e.DiagnosticCategory.Error,"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:n(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:n(1036,e.DiagnosticCategory.Error,"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:n(1038,e.DiagnosticCategory.Error,"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:n(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:n(1040,e.DiagnosticCategory.Error,"_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:n(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:n(1044,e.DiagnosticCategory.Error,"_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:n(1046,e.DiagnosticCategory.Error,"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:n(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:n(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:n(1049,e.DiagnosticCategory.Error,"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:n(1051,e.DiagnosticCategory.Error,"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:n(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:n(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:n(1054,e.DiagnosticCategory.Error,"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:n(1055,e.DiagnosticCategory.Error,"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:n(1056,e.DiagnosticCategory.Error,"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:n(1058,e.DiagnosticCategory.Error,"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:n(1059,e.DiagnosticCategory.Error,"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:n(1060,e.DiagnosticCategory.Error,"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:n(1061,e.DiagnosticCategory.Error,"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:n(1062,e.DiagnosticCategory.Error,"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:n(1063,e.DiagnosticCategory.Error,"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:n(1064,e.DiagnosticCategory.Error,"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:n(1066,e.DiagnosticCategory.Error,"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:n(1068,e.DiagnosticCategory.Error,"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:n(1069,e.DiagnosticCategory.Error,"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:n(1070,e.DiagnosticCategory.Error,"_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:n(1071,e.DiagnosticCategory.Error,"_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:n(1079,e.DiagnosticCategory.Error,"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:n(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:n(1085,e.DiagnosticCategory.Error,"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:n(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:n(1090,e.DiagnosticCategory.Error,"_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:n(1091,e.DiagnosticCategory.Error,"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:n(1092,e.DiagnosticCategory.Error,"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:n(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:n(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:n(1095,e.DiagnosticCategory.Error,"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:n(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:n(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:n(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:n(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:n(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:n(1101,e.DiagnosticCategory.Error,"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:n(1102,e.DiagnosticCategory.Error,"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:n(1103,e.DiagnosticCategory.Error,"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:n(1104,e.DiagnosticCategory.Error,"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:n(1105,e.DiagnosticCategory.Error,"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:n(1106,e.DiagnosticCategory.Error,"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:n(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:n(1108,e.DiagnosticCategory.Error,"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:n(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:n(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:n(1113,e.DiagnosticCategory.Error,"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:n(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:n(1115,e.DiagnosticCategory.Error,"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:n(1116,e.DiagnosticCategory.Error,"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_in_strict_mode:n(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:n(1118,e.DiagnosticCategory.Error,"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:n(1119,e.DiagnosticCategory.Error,"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:n(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:n(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:n(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:n(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:n(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:n(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:n(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:n(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:n(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:n(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:n(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:n(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:n(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:n(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:n(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:n(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:n(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:n(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:n(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:n(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:n(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:n(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:n(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:n(1147,e.DiagnosticCategory.Error,"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:n(1148,e.DiagnosticCategory.Error,"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:n(1149,e.DiagnosticCategory.Error,"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:n(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:n(1156,e.DiagnosticCategory.Error,"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:n(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:n(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:n(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:n(1162,e.DiagnosticCategory.Error,"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:n(1163,e.DiagnosticCategory.Error,"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:n(1164,e.DiagnosticCategory.Error,"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:n(1165,e.DiagnosticCategory.Error,"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:n(1166,e.DiagnosticCategory.Error,"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:n(1168,e.DiagnosticCategory.Error,"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:n(1169,e.DiagnosticCategory.Error,"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:n(1170,e.DiagnosticCategory.Error,"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:n(1171,e.DiagnosticCategory.Error,"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:n(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:n(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:n(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:n(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:n(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:n(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:n(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:n(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:n(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:n(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:n(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:n(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:n(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:n(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:n(1186,e.DiagnosticCategory.Error,"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:n(1187,e.DiagnosticCategory.Error,"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:n(1188,e.DiagnosticCategory.Error,"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:n(1189,e.DiagnosticCategory.Error,"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:n(1190,e.DiagnosticCategory.Error,"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:n(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:n(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:n(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:n(1194,e.DiagnosticCategory.Error,"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:n(1195,e.DiagnosticCategory.Error,"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:n(1196,e.DiagnosticCategory.Error,"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:n(1197,e.DiagnosticCategory.Error,"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:n(1198,e.DiagnosticCategory.Error,"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:n(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:n(1200,e.DiagnosticCategory.Error,"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:n(1202,e.DiagnosticCategory.Error,"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:n(1203,e.DiagnosticCategory.Error,"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_the_isolatedModules_flag_is_provided_requires_using_export_type:n(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:n(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:n(1207,e.DiagnosticCategory.Error,"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."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:n(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),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:n(1210,e.DiagnosticCategory.Error,"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:n(1211,e.DiagnosticCategory.Error,"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:n(1212,e.DiagnosticCategory.Error,"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:n(1213,e.DiagnosticCategory.Error,"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:n(1214,e.DiagnosticCategory.Error,"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:n(1215,e.DiagnosticCategory.Error,"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:n(1216,e.DiagnosticCategory.Error,"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:n(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:n(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_not_allowed_in_an_ambient_context:n(1221,e.DiagnosticCategory.Error,"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:n(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:n(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:n(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:n(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:n(1226,e.DiagnosticCategory.Error,"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:n(1227,e.DiagnosticCategory.Error,"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:n(1228,e.DiagnosticCategory.Error,"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:n(1229,e.DiagnosticCategory.Error,"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:n(1230,e.DiagnosticCategory.Error,"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:n(1231,e.DiagnosticCategory.Error,"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_in_a_namespace_or_module:n(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:n(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:n(1234,e.DiagnosticCategory.Error,"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_in_a_namespace_or_module:n(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:n(1236,e.DiagnosticCategory.Error,"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:n(1237,e.DiagnosticCategory.Error,"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:n(1238,e.DiagnosticCategory.Error,"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:n(1239,e.DiagnosticCategory.Error,"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:n(1240,e.DiagnosticCategory.Error,"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:n(1241,e.DiagnosticCategory.Error,"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:n(1242,e.DiagnosticCategory.Error,"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:n(1243,e.DiagnosticCategory.Error,"_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:n(1244,e.DiagnosticCategory.Error,"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:n(1245,e.DiagnosticCategory.Error,"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:n(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:n(1247,e.DiagnosticCategory.Error,"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:n(1248,e.DiagnosticCategory.Error,"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:n(1249,e.DiagnosticCategory.Error,"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:n(1250,e.DiagnosticCategory.Error,"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:n(1251,e.DiagnosticCategory.Error,"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:n(1252,e.DiagnosticCategory.Error,"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:n(1254,e.DiagnosticCategory.Error,"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:n(1255,e.DiagnosticCategory.Error,"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:n(1257,e.DiagnosticCategory.Error,"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:n(1258,e.DiagnosticCategory.Error,"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:n(1259,e.DiagnosticCategory.Error,"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:n(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:n(1261,e.DiagnosticCategory.Error,"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:n(1262,e.DiagnosticCategory.Error,"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:n(1263,e.DiagnosticCategory.Error,"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:n(1264,e.DiagnosticCategory.Error,"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:n(1265,e.DiagnosticCategory.Error,"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:n(1266,e.DiagnosticCategory.Error,"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:n(1267,e.DiagnosticCategory.Error,"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:n(1268,e.DiagnosticCategory.Error,"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."),with_statements_are_not_allowed_in_an_async_function_block:n(1300,e.DiagnosticCategory.Error,"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:n(1308,e.DiagnosticCategory.Error,"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."),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:n(1312,e.DiagnosticCategory.Error,"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:n(1313,e.DiagnosticCategory.Error,"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:n(1314,e.DiagnosticCategory.Error,"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:n(1315,e.DiagnosticCategory.Error,"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:n(1316,e.DiagnosticCategory.Error,"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:n(1317,e.DiagnosticCategory.Error,"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:n(1318,e.DiagnosticCategory.Error,"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:n(1319,e.DiagnosticCategory.Error,"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:n(1320,e.DiagnosticCategory.Error,"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:n(1321,e.DiagnosticCategory.Error,"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:n(1322,e.DiagnosticCategory.Error,"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_node12_or_nodenext:n(1323,e.DiagnosticCategory.Error,"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', 'node12', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext:n(1324,e.DiagnosticCategory.Error,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext'."),Argument_of_dynamic_import_cannot_be_spread_element:n(1325,e.DiagnosticCategory.Error,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:n(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments."),String_literal_with_double_quotes_expected:n(1327,e.DiagnosticCategory.Error,"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:n(1328,e.DiagnosticCategory.Error,"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:n(1329,e.DiagnosticCategory.Error,"_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:n(1330,e.DiagnosticCategory.Error,"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:n(1331,e.DiagnosticCategory.Error,"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:n(1332,e.DiagnosticCategory.Error,"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:n(1333,e.DiagnosticCategory.Error,"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:n(1334,e.DiagnosticCategory.Error,"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:n(1335,e.DiagnosticCategory.Error,"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:n(1337,e.DiagnosticCategory.Error,"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:n(1338,e.DiagnosticCategory.Error,"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:n(1339,e.DiagnosticCategory.Error,"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:n(1340,e.DiagnosticCategory.Error,"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}')'?"),Type_arguments_cannot_be_used_here:n(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node12_or_nodenext:n(1343,e.DiagnosticCategory.Error,"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', 'node12', or 'nodenext'."),A_label_is_not_allowed_here:n(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:n(1345,e.DiagnosticCategory.Error,"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:n(1346,e.DiagnosticCategory.Error,"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:n(1347,e.DiagnosticCategory.Error,"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:n(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:n(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:n(1350,e.DiagnosticCategory.Message,"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:n(1351,e.DiagnosticCategory.Error,"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:n(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:n(1353,e.DiagnosticCategory.Error,"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:n(1354,e.DiagnosticCategory.Error,"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:n(1355,e.DiagnosticCategory.Error,"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:n(1356,e.DiagnosticCategory.Error,"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:n(1357,e.DiagnosticCategory.Error,"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:n(1358,e.DiagnosticCategory.Error,"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:n(1359,e.DiagnosticCategory.Error,"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."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:n(1361,e.DiagnosticCategory.Error,"_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:n(1362,e.DiagnosticCategory.Error,"_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:n(1363,e.DiagnosticCategory.Error,"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:n(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:n(1365,e.DiagnosticCategory.Message,"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:n(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:n(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Did_you_mean_0:n(1369,e.DiagnosticCategory.Message,"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:n(1371,e.DiagnosticCategory.Error,"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:n(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:n(1374,e.DiagnosticCategory.Message,"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:n(1375,e.DiagnosticCategory.Error,"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:n(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:n(1377,e.DiagnosticCategory.Message,"_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_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:n(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_o_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 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:n(1379,e.DiagnosticCategory.Error,"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:n(1380,e.DiagnosticCategory.Error,"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:n(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),Unexpected_token_Did_you_mean_or_gt:n(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `&gt;`?"),Only_named_exports_may_use_export_type:n(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list:n(1384,e.DiagnosticCategory.Error,"A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384","A 'new' expression with type arguments must always be followed by a parenthesized argument list."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:n(1385,e.DiagnosticCategory.Error,"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:n(1386,e.DiagnosticCategory.Error,"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:n(1387,e.DiagnosticCategory.Error,"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:n(1388,e.DiagnosticCategory.Error,"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:n(1389,e.DiagnosticCategory.Error,"_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:n(1390,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:n(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:n(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:n(1394,e.DiagnosticCategory.Message,"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:n(1395,e.DiagnosticCategory.Message,"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:n(1396,e.DiagnosticCategory.Message,"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:n(1397,e.DiagnosticCategory.Message,"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:n(1398,e.DiagnosticCategory.Message,"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:n(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:n(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:n(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:n(1402,e.DiagnosticCategory.Message,"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:n(1403,e.DiagnosticCategory.Message,"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:n(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:n(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:n(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:n(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:n(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:n(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:n(1410,e.DiagnosticCategory.Message,"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:n(1411,e.DiagnosticCategory.Message,"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:n(1412,e.DiagnosticCategory.Message,"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:n(1413,e.DiagnosticCategory.Message,"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:n(1414,e.DiagnosticCategory.Message,"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:n(1415,e.DiagnosticCategory.Message,"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:n(1416,e.DiagnosticCategory.Message,"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:n(1417,e.DiagnosticCategory.Message,"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:n(1418,e.DiagnosticCategory.Message,"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:n(1419,e.DiagnosticCategory.Message,"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:n(1420,e.DiagnosticCategory.Message,"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:n(1421,e.DiagnosticCategory.Message,"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:n(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:n(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:n(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:n(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:n(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:n(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:n(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:n(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:n(1430,e.DiagnosticCategory.Message,"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:n(1431,e.DiagnosticCategory.Error,"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_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:n(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or__1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:n(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:n(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:n(1435,e.DiagnosticCategory.Error,"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:n(1436,e.DiagnosticCategory.Error,"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:n(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:n(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:n(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:n(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:n(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:n(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:n(1443,e.DiagnosticCategory.Error,"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:n(1444,e.DiagnosticCategory.Error,"_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:n(1446,e.DiagnosticCategory.Error,"_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_isolatedModules_is_enabled:n(1448,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when 'isolatedModules' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:n(1449,e.DiagnosticCategory.Message,"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:n(1450,e.DiagnosticCategory.Message,"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:n(1451,e.DiagnosticCategory.Error,"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"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:n(1470,e.DiagnosticCategory.Error,"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_synchronously_Use_dynamic_import_instead:n(1471,e.DiagnosticCategory.Error,"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 synchronously. Use dynamic import instead."),The_types_of_0_are_incompatible_between_these_types:n(2200,e.DiagnosticCategory.Error,"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:n(2201,e.DiagnosticCategory.Error,"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:n(2202,e.DiagnosticCategory.Error,"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:n(2203,e.DiagnosticCategory.Error,"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:n(2204,e.DiagnosticCategory.Error,"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:n(2205,e.DiagnosticCategory.Error,"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:n(2206,e.DiagnosticCategory.Error,"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:n(2207,e.DiagnosticCategory.Error,"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."),Duplicate_identifier_0:n(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:n(2301,e.DiagnosticCategory.Error,"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:n(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:n(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:n(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:n(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:n(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:n(2307,e.DiagnosticCategory.Error,"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:n(2308,e.DiagnosticCategory.Error,"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:n(2309,e.DiagnosticCategory.Error,"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:n(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:n(2312,e.DiagnosticCategory.Error,"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:n(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:n(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:n(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:n(2316,e.DiagnosticCategory.Error,"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:n(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:n(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:n(2319,e.DiagnosticCategory.Error,"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:n(2320,e.DiagnosticCategory.Error,"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:n(2321,e.DiagnosticCategory.Error,"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:n(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:n(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:n(2324,e.DiagnosticCategory.Error,"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:n(2325,e.DiagnosticCategory.Error,"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:n(2326,e.DiagnosticCategory.Error,"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:n(2327,e.DiagnosticCategory.Error,"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:n(2328,e.DiagnosticCategory.Error,"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:n(2329,e.DiagnosticCategory.Error,"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:n(2330,e.DiagnosticCategory.Error,"_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:n(2331,e.DiagnosticCategory.Error,"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:n(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:n(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:n(2334,e.DiagnosticCategory.Error,"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:n(2335,e.DiagnosticCategory.Error,"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:n(2336,e.DiagnosticCategory.Error,"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:n(2337,e.DiagnosticCategory.Error,"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:n(2338,e.DiagnosticCategory.Error,"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:n(2339,e.DiagnosticCategory.Error,"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:n(2340,e.DiagnosticCategory.Error,"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:n(2341,e.DiagnosticCategory.Error,"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:n(2343,e.DiagnosticCategory.Error,"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:n(2344,e.DiagnosticCategory.Error,"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:n(2345,e.DiagnosticCategory.Error,"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:n(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:n(2347,e.DiagnosticCategory.Error,"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:n(2348,e.DiagnosticCategory.Error,"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:n(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:n(2350,e.DiagnosticCategory.Error,"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:n(2351,e.DiagnosticCategory.Error,"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:n(2352,e.DiagnosticCategory.Error,"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:n(2353,e.DiagnosticCategory.Error,"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:n(2354,e.DiagnosticCategory.Error,"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:n(2355,e.DiagnosticCategory.Error,"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:n(2356,e.DiagnosticCategory.Error,"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:n(2357,e.DiagnosticCategory.Error,"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:n(2358,e.DiagnosticCategory.Error,"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:n(2359,e.DiagnosticCategory.Error,"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_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or_symbol:n(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or__2360","The left-hand side of an 'in' expression must be a private identifier or of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_not_be_a_primitive:n(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361","The right-hand side of an 'in' expression must not be a primitive."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:n(2362,e.DiagnosticCategory.Error,"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:n(2363,e.DiagnosticCategory.Error,"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:n(2364,e.DiagnosticCategory.Error,"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:n(2365,e.DiagnosticCategory.Error,"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:n(2366,e.DiagnosticCategory.Error,"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_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:n(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:n(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:n(2369,e.DiagnosticCategory.Error,"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:n(2370,e.DiagnosticCategory.Error,"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:n(2371,e.DiagnosticCategory.Error,"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:n(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:n(2373,e.DiagnosticCategory.Error,"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:n(2374,e.DiagnosticCategory.Error,"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:n(2375,e.DiagnosticCategory.Error,"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_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers:n(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:n(2377,e.DiagnosticCategory.Error,"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:n(2378,e.DiagnosticCategory.Error,"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:n(2379,e.DiagnosticCategory.Error,"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:n(2380,e.DiagnosticCategory.Error,"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:n(2383,e.DiagnosticCategory.Error,"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:n(2384,e.DiagnosticCategory.Error,"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:n(2385,e.DiagnosticCategory.Error,"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:n(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:n(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:n(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:n(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:n(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:n(2391,e.DiagnosticCategory.Error,"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:n(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:n(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:n(2394,e.DiagnosticCategory.Error,"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:n(2395,e.DiagnosticCategory.Error,"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:n(2396,e.DiagnosticCategory.Error,"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:n(2397,e.DiagnosticCategory.Error,"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:n(2398,e.DiagnosticCategory.Error,"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:n(2399,e.DiagnosticCategory.Error,"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:n(2400,e.DiagnosticCategory.Error,"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."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:n(2402,e.DiagnosticCategory.Error,"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:n(2403,e.DiagnosticCategory.Error,"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:n(2404,e.DiagnosticCategory.Error,"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:n(2405,e.DiagnosticCategory.Error,"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:n(2406,e.DiagnosticCategory.Error,"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:n(2407,e.DiagnosticCategory.Error,"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:n(2408,e.DiagnosticCategory.Error,"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:n(2409,e.DiagnosticCategory.Error,"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:n(2410,e.DiagnosticCategory.Error,"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:n(2412,e.DiagnosticCategory.Error,"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:n(2411,e.DiagnosticCategory.Error,"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:n(2413,e.DiagnosticCategory.Error,"_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:n(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:n(2415,e.DiagnosticCategory.Error,"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:n(2416,e.DiagnosticCategory.Error,"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:n(2417,e.DiagnosticCategory.Error,"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:n(2418,e.DiagnosticCategory.Error,"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:n(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:n(2420,e.DiagnosticCategory.Error,"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:n(2422,e.DiagnosticCategory.Error,"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:n(2423,e.DiagnosticCategory.Error,"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:n(2425,e.DiagnosticCategory.Error,"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:n(2426,e.DiagnosticCategory.Error,"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:n(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:n(2428,e.DiagnosticCategory.Error,"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:n(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:n(2431,e.DiagnosticCategory.Error,"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:n(2432,e.DiagnosticCategory.Error,"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:n(2433,e.DiagnosticCategory.Error,"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:n(2434,e.DiagnosticCategory.Error,"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:n(2435,e.DiagnosticCategory.Error,"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:n(2436,e.DiagnosticCategory.Error,"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:n(2437,e.DiagnosticCategory.Error,"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:n(2438,e.DiagnosticCategory.Error,"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:n(2439,e.DiagnosticCategory.Error,"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:n(2440,e.DiagnosticCategory.Error,"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:n(2441,e.DiagnosticCategory.Error,"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:n(2442,e.DiagnosticCategory.Error,"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:n(2443,e.DiagnosticCategory.Error,"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:n(2444,e.DiagnosticCategory.Error,"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:n(2445,e.DiagnosticCategory.Error,"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:n(2446,e.DiagnosticCategory.Error,"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:n(2447,e.DiagnosticCategory.Error,"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:n(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:n(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:n(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:n(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:n(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:n(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:n(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:n(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:n(2458,e.DiagnosticCategory.Error,"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:n(2459,e.DiagnosticCategory.Error,"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:n(2460,e.DiagnosticCategory.Error,"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:n(2461,e.DiagnosticCategory.Error,"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:n(2462,e.DiagnosticCategory.Error,"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:n(2463,e.DiagnosticCategory.Error,"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:n(2464,e.DiagnosticCategory.Error,"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:n(2465,e.DiagnosticCategory.Error,"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:n(2466,e.DiagnosticCategory.Error,"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:n(2467,e.DiagnosticCategory.Error,"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:n(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:n(2469,e.DiagnosticCategory.Error,"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:n(2472,e.DiagnosticCategory.Error,"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:n(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:n(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),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:n(2475,e.DiagnosticCategory.Error,"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:n(2476,e.DiagnosticCategory.Error,"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:n(2477,e.DiagnosticCategory.Error,"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:n(2478,e.DiagnosticCategory.Error,"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:n(2480,e.DiagnosticCategory.Error,"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:n(2481,e.DiagnosticCategory.Error,"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:n(2483,e.DiagnosticCategory.Error,"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:n(2484,e.DiagnosticCategory.Error,"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:n(2487,e.DiagnosticCategory.Error,"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:n(2488,e.DiagnosticCategory.Error,"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:n(2489,e.DiagnosticCategory.Error,"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:n(2490,e.DiagnosticCategory.Error,"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:n(2491,e.DiagnosticCategory.Error,"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:n(2492,e.DiagnosticCategory.Error,"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:n(2493,e.DiagnosticCategory.Error,"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:n(2494,e.DiagnosticCategory.Error,"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:n(2495,e.DiagnosticCategory.Error,"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:n(2496,e.DiagnosticCategory.Error,"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:n(2497,e.DiagnosticCategory.Error,"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:n(2498,e.DiagnosticCategory.Error,"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:n(2499,e.DiagnosticCategory.Error,"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:n(2500,e.DiagnosticCategory.Error,"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:n(2501,e.DiagnosticCategory.Error,"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:n(2502,e.DiagnosticCategory.Error,"_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:n(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:n(2504,e.DiagnosticCategory.Error,"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:n(2505,e.DiagnosticCategory.Error,"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:n(2506,e.DiagnosticCategory.Error,"_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:n(2507,e.DiagnosticCategory.Error,"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:n(2508,e.DiagnosticCategory.Error,"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:n(2509,e.DiagnosticCategory.Error,"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:n(2510,e.DiagnosticCategory.Error,"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:n(2511,e.DiagnosticCategory.Error,"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:n(2512,e.DiagnosticCategory.Error,"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:n(2513,e.DiagnosticCategory.Error,"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."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:n(2515,e.DiagnosticCategory.Error,"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:n(2516,e.DiagnosticCategory.Error,"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:n(2517,e.DiagnosticCategory.Error,"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:n(2518,e.DiagnosticCategory.Error,"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:n(2519,e.DiagnosticCategory.Error,"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:n(2520,e.DiagnosticCategory.Error,"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:n(2522,e.DiagnosticCategory.Error,"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:n(2523,e.DiagnosticCategory.Error,"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:n(2524,e.DiagnosticCategory.Error,"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:n(2525,e.DiagnosticCategory.Error,"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:n(2526,e.DiagnosticCategory.Error,"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:n(2527,e.DiagnosticCategory.Error,"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:n(2528,e.DiagnosticCategory.Error,"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:n(2529,e.DiagnosticCategory.Error,"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:n(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:n(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:n(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:n(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:n(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:n(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:n(2536,e.DiagnosticCategory.Error,"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:n(2537,e.DiagnosticCategory.Error,"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:n(2538,e.DiagnosticCategory.Error,"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:n(2539,e.DiagnosticCategory.Error,"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:n(2540,e.DiagnosticCategory.Error,"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:n(2542,e.DiagnosticCategory.Error,"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:n(2543,e.DiagnosticCategory.Error,"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:n(2544,e.DiagnosticCategory.Error,"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:n(2545,e.DiagnosticCategory.Error,"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:n(2547,e.DiagnosticCategory.Error,"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:n(2548,e.DiagnosticCategory.Error,"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:n(2549,e.DiagnosticCategory.Error,"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:n(2550,e.DiagnosticCategory.Error,"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:n(2551,e.DiagnosticCategory.Error,"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:n(2552,e.DiagnosticCategory.Error,"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:n(2553,e.DiagnosticCategory.Error,"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:n(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:n(2555,e.DiagnosticCategory.Error,"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:n(2556,e.DiagnosticCategory.Error,"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:n(2558,e.DiagnosticCategory.Error,"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:n(2559,e.DiagnosticCategory.Error,"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:n(2560,e.DiagnosticCategory.Error,"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:n(2561,e.DiagnosticCategory.Error,"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:n(2562,e.DiagnosticCategory.Error,"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:n(2563,e.DiagnosticCategory.Error,"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:n(2564,e.DiagnosticCategory.Error,"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:n(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:n(2566,e.DiagnosticCategory.Error,"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:n(2567,e.DiagnosticCategory.Error,"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:n(2568,e.DiagnosticCategory.Error,"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}'?"),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:n(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Could_not_find_name_0_Did_you_mean_1:n(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:n(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:n(2574,e.DiagnosticCategory.Error,"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:n(2575,e.DiagnosticCategory.Error,"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:n(2576,e.DiagnosticCategory.Error,"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:n(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:n(2578,e.DiagnosticCategory.Error,"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:n(2580,e.DiagnosticCategory.Error,"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:n(2581,e.DiagnosticCategory.Error,"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:n(2582,e.DiagnosticCategory.Error,"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:n(2583,e.DiagnosticCategory.Error,"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:n(2584,e.DiagnosticCategory.Error,"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:n(2585,e.DiagnosticCategory.Error,"_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:n(2588,e.DiagnosticCategory.Error,"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:n(2589,e.DiagnosticCategory.Error,"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:n(2590,e.DiagnosticCategory.Error,"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:n(2591,e.DiagnosticCategory.Error,"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:n(2592,e.DiagnosticCategory.Error,"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:n(2593,e.DiagnosticCategory.Error,"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_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:n(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594","This module is declared with using '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:n(2595,e.DiagnosticCategory.Error,"_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:n(2596,e.DiagnosticCategory.Error,"_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:n(2597,e.DiagnosticCategory.Error,"_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:n(2598,e.DiagnosticCategory.Error,"_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:n(2602,e.DiagnosticCategory.Error,"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:n(2603,e.DiagnosticCategory.Error,"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:n(2604,e.DiagnosticCategory.Error,"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:n(2606,e.DiagnosticCategory.Error,"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:n(2607,e.DiagnosticCategory.Error,"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:n(2608,e.DiagnosticCategory.Error,"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:n(2609,e.DiagnosticCategory.Error,"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:n(2610,e.DiagnosticCategory.Error,"_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:n(2611,e.DiagnosticCategory.Error,"_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:n(2612,e.DiagnosticCategory.Error,"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:n(2613,e.DiagnosticCategory.Error,"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:n(2614,e.DiagnosticCategory.Error,"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:n(2615,e.DiagnosticCategory.Error,"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:n(2616,e.DiagnosticCategory.Error,"_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:n(2617,e.DiagnosticCategory.Error,"_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:n(2618,e.DiagnosticCategory.Error,"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:n(2619,e.DiagnosticCategory.Error,"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:n(2620,e.DiagnosticCategory.Error,"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:n(2621,e.DiagnosticCategory.Error,"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:n(2623,e.DiagnosticCategory.Error,"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:n(2624,e.DiagnosticCategory.Error,"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:n(2625,e.DiagnosticCategory.Error,"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:n(2626,e.DiagnosticCategory.Error,"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:n(2627,e.DiagnosticCategory.Error,"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:n(2628,e.DiagnosticCategory.Error,"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:n(2629,e.DiagnosticCategory.Error,"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:n(2630,e.DiagnosticCategory.Error,"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:n(2631,e.DiagnosticCategory.Error,"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:n(2632,e.DiagnosticCategory.Error,"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:n(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:n(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:n(2649,e.DiagnosticCategory.Error,"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:n(2651,e.DiagnosticCategory.Error,"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:n(2652,e.DiagnosticCategory.Error,"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:n(2653,e.DiagnosticCategory.Error,"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:n(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:n(2658,e.DiagnosticCategory.Error,"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:n(2659,e.DiagnosticCategory.Error,"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:n(2660,e.DiagnosticCategory.Error,"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:n(2661,e.DiagnosticCategory.Error,"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:n(2662,e.DiagnosticCategory.Error,"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:n(2663,e.DiagnosticCategory.Error,"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:n(2664,e.DiagnosticCategory.Error,"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:n(2665,e.DiagnosticCategory.Error,"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:n(2666,e.DiagnosticCategory.Error,"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:n(2667,e.DiagnosticCategory.Error,"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:n(2668,e.DiagnosticCategory.Error,"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:n(2669,e.DiagnosticCategory.Error,"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:n(2670,e.DiagnosticCategory.Error,"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:n(2671,e.DiagnosticCategory.Error,"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:n(2672,e.DiagnosticCategory.Error,"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:n(2673,e.DiagnosticCategory.Error,"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:n(2674,e.DiagnosticCategory.Error,"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:n(2675,e.DiagnosticCategory.Error,"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:n(2676,e.DiagnosticCategory.Error,"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:n(2677,e.DiagnosticCategory.Error,"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:n(2678,e.DiagnosticCategory.Error,"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:n(2679,e.DiagnosticCategory.Error,"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:n(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:n(2681,e.DiagnosticCategory.Error,"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:n(2683,e.DiagnosticCategory.Error,"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:n(2684,e.DiagnosticCategory.Error,"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:n(2685,e.DiagnosticCategory.Error,"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:n(2686,e.DiagnosticCategory.Error,"_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:n(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:n(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:n(2689,e.DiagnosticCategory.Error,"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:n(2690,e.DiagnosticCategory.Error,"_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}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:n(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:n(2692,e.DiagnosticCategory.Error,"_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:n(2693,e.DiagnosticCategory.Error,"_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:n(2694,e.DiagnosticCategory.Error,"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:n(2695,e.DiagnosticCategory.Error,"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:n(2696,e.DiagnosticCategory.Error,"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:n(2697,e.DiagnosticCategory.Error,"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:n(2698,e.DiagnosticCategory.Error,"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:n(2699,e.DiagnosticCategory.Error,"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:n(2700,e.DiagnosticCategory.Error,"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:n(2701,e.DiagnosticCategory.Error,"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:n(2702,e.DiagnosticCategory.Error,"_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:n(2703,e.DiagnosticCategory.Error,"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:n(2704,e.DiagnosticCategory.Error,"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:n(2705,e.DiagnosticCategory.Error,"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:n(2706,e.DiagnosticCategory.Error,"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:n(2707,e.DiagnosticCategory.Error,"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:n(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:n(2709,e.DiagnosticCategory.Error,"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:n(2710,e.DiagnosticCategory.Error,"_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:n(2711,e.DiagnosticCategory.Error,"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:n(2712,e.DiagnosticCategory.Error,"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:n(2713,e.DiagnosticCategory.Error,"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:n(2714,e.DiagnosticCategory.Error,"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:n(2715,e.DiagnosticCategory.Error,"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:n(2716,e.DiagnosticCategory.Error,"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:n(2717,e.DiagnosticCategory.Error,"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:n(2718,e.DiagnosticCategory.Error,"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:n(2719,e.DiagnosticCategory.Error,"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:n(2720,e.DiagnosticCategory.Error,"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:n(2721,e.DiagnosticCategory.Error,"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:n(2722,e.DiagnosticCategory.Error,"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:n(2723,e.DiagnosticCategory.Error,"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:n(2724,e.DiagnosticCategory.Error,"_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:n(2725,e.DiagnosticCategory.Error,"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:n(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:n(2727,e.DiagnosticCategory.Error,"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:n(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:n(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:n(2730,e.DiagnosticCategory.Error,"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:n(2731,e.DiagnosticCategory.Error,"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:n(2732,e.DiagnosticCategory.Error,"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:n(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:n(2734,e.DiagnosticCategory.Error,"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:n(2735,e.DiagnosticCategory.Error,"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:n(2736,e.DiagnosticCategory.Error,"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:n(2737,e.DiagnosticCategory.Error,"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:n(2738,e.DiagnosticCategory.Message,"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:n(2739,e.DiagnosticCategory.Error,"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:n(2740,e.DiagnosticCategory.Error,"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:n(2741,e.DiagnosticCategory.Error,"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:n(2742,e.DiagnosticCategory.Error,"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:n(2743,e.DiagnosticCategory.Error,"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:n(2744,e.DiagnosticCategory.Error,"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:n(2745,e.DiagnosticCategory.Error,"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:n(2746,e.DiagnosticCategory.Error,"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:n(2747,e.DiagnosticCategory.Error,"_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_the_isolatedModules_flag_is_provided:n(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:n(2749,e.DiagnosticCategory.Error,"_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:n(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:n(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:n(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:n(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:n(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:n(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:n(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:n(2757,e.DiagnosticCategory.Error,"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:n(2758,e.DiagnosticCategory.Error,"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:n(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:n(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:n(2761,e.DiagnosticCategory.Error,"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:n(2762,e.DiagnosticCategory.Error,"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:n(2763,e.DiagnosticCategory.Error,"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:n(2764,e.DiagnosticCategory.Error,"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:n(2765,e.DiagnosticCategory.Error,"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:n(2766,e.DiagnosticCategory.Error,"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:n(2767,e.DiagnosticCategory.Error,"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:n(2768,e.DiagnosticCategory.Error,"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:n(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:n(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:n(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:n(2772,e.DiagnosticCategory.Error,"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:n(2773,e.DiagnosticCategory.Error,"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:n(2774,e.DiagnosticCategory.Error,"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:n(2775,e.DiagnosticCategory.Error,"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:n(2776,e.DiagnosticCategory.Error,"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:n(2777,e.DiagnosticCategory.Error,"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:n(2778,e.DiagnosticCategory.Error,"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:n(2779,e.DiagnosticCategory.Error,"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:n(2780,e.DiagnosticCategory.Error,"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:n(2781,e.DiagnosticCategory.Error,"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:n(2782,e.DiagnosticCategory.Message,"_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:n(2783,e.DiagnosticCategory.Error,"_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:n(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:n(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:n(2786,e.DiagnosticCategory.Error,"_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:n(2787,e.DiagnosticCategory.Error,"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:n(2788,e.DiagnosticCategory.Error,"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:n(2789,e.DiagnosticCategory.Error,"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:n(2790,e.DiagnosticCategory.Error,"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:n(2791,e.DiagnosticCategory.Error,"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_node_or_to_add_aliases_to_the_paths_option:n(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', 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:n(2793,e.DiagnosticCategory.Error,"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:n(2794,e.DiagnosticCategory.Error,"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:n(2795,e.DiagnosticCategory.Error,"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:n(2796,e.DiagnosticCategory.Error,"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:n(2797,e.DiagnosticCategory.Error,"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:n(2798,e.DiagnosticCategory.Error,"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:n(2799,e.DiagnosticCategory.Error,"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:n(2800,e.DiagnosticCategory.Error,"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:n(2801,e.DiagnosticCategory.Error,"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:n(2802,e.DiagnosticCategory.Error,"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:n(2803,e.DiagnosticCategory.Error,"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:n(2804,e.DiagnosticCategory.Error,"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."),Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag:n(2805,e.DiagnosticCategory.Error,"Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_no_2805","Static fields with private names can't have initializers when the '--useDefineForClassFields' flag is not specified with a '--target' of 'esnext'. Consider adding the '--useDefineForClassFields' flag."),Private_accessor_was_defined_without_a_getter:n(2806,e.DiagnosticCategory.Error,"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:n(2807,e.DiagnosticCategory.Error,"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:n(2808,e.DiagnosticCategory.Error,"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_the_whole_assignment_in_parentheses:n(2809,e.DiagnosticCategory.Error,"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 the whole assignment in parentheses."),Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false:n(2810,e.DiagnosticCategory.Error,"Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnex_2810","Property '{0}' may not be used in a static property's initializer in the same class when 'target' is 'esnext' and 'useDefineForClassFields' is 'false'."),Initializer_for_property_0:n(2811,e.DiagnosticCategory.Error,"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:n(2812,e.DiagnosticCategory.Error,"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:n(2813,e.DiagnosticCategory.Error,"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:n(2814,e.DiagnosticCategory.Error,"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:n(2815,e.DiagnosticCategory.Error,"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:n(2816,e.DiagnosticCategory.Error,"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:n(2817,e.DiagnosticCategory.Error,"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:n(2818,e.DiagnosticCategory.Error,"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:n(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:n(2820,e.DiagnosticCategory.Error,"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:n(2821,e.DiagnosticCategory.Error,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_2821","Import assertions are only supported when the '--module' option is set to 'esnext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:n(2822,e.DiagnosticCategory.Error,"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:n(2833,e.DiagnosticCategory.Error,"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_node12_or_nodenext_Consider_adding_an_extension_to_the_import_path:n(2834,e.DiagnosticCategory.Error,"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 'node12' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Did_you_mean_0:n(2835,e.DiagnosticCategory.Error,"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 'node12' or 'nodenext'. Did you mean '{0}'?"),Import_declaration_0_is_using_private_name_1:n(4e3,e.DiagnosticCategory.Error,"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:n(4002,e.DiagnosticCategory.Error,"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:n(4004,e.DiagnosticCategory.Error,"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:n(4006,e.DiagnosticCategory.Error,"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:n(4008,e.DiagnosticCategory.Error,"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:n(4010,e.DiagnosticCategory.Error,"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:n(4012,e.DiagnosticCategory.Error,"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:n(4014,e.DiagnosticCategory.Error,"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:n(4016,e.DiagnosticCategory.Error,"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:n(4019,e.DiagnosticCategory.Error,"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:n(4020,e.DiagnosticCategory.Error,"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:n(4021,e.DiagnosticCategory.Error,"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:n(4022,e.DiagnosticCategory.Error,"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:n(4023,e.DiagnosticCategory.Error,"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:n(4024,e.DiagnosticCategory.Error,"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:n(4025,e.DiagnosticCategory.Error,"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:n(4026,e.DiagnosticCategory.Error,"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:n(4027,e.DiagnosticCategory.Error,"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:n(4028,e.DiagnosticCategory.Error,"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:n(4029,e.DiagnosticCategory.Error,"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:n(4030,e.DiagnosticCategory.Error,"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:n(4031,e.DiagnosticCategory.Error,"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:n(4032,e.DiagnosticCategory.Error,"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:n(4033,e.DiagnosticCategory.Error,"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:n(4034,e.DiagnosticCategory.Error,"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:n(4035,e.DiagnosticCategory.Error,"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:n(4036,e.DiagnosticCategory.Error,"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:n(4037,e.DiagnosticCategory.Error,"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:n(4038,e.DiagnosticCategory.Error,"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:n(4039,e.DiagnosticCategory.Error,"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:n(4040,e.DiagnosticCategory.Error,"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:n(4041,e.DiagnosticCategory.Error,"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:n(4042,e.DiagnosticCategory.Error,"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:n(4043,e.DiagnosticCategory.Error,"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:n(4044,e.DiagnosticCategory.Error,"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:n(4045,e.DiagnosticCategory.Error,"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:n(4046,e.DiagnosticCategory.Error,"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:n(4047,e.DiagnosticCategory.Error,"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:n(4048,e.DiagnosticCategory.Error,"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:n(4049,e.DiagnosticCategory.Error,"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:n(4050,e.DiagnosticCategory.Error,"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:n(4051,e.DiagnosticCategory.Error,"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:n(4052,e.DiagnosticCategory.Error,"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:n(4053,e.DiagnosticCategory.Error,"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:n(4054,e.DiagnosticCategory.Error,"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:n(4055,e.DiagnosticCategory.Error,"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:n(4056,e.DiagnosticCategory.Error,"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:n(4057,e.DiagnosticCategory.Error,"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:n(4058,e.DiagnosticCategory.Error,"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:n(4059,e.DiagnosticCategory.Error,"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:n(4060,e.DiagnosticCategory.Error,"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:n(4061,e.DiagnosticCategory.Error,"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:n(4062,e.DiagnosticCategory.Error,"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:n(4063,e.DiagnosticCategory.Error,"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:n(4064,e.DiagnosticCategory.Error,"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:n(4065,e.DiagnosticCategory.Error,"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:n(4066,e.DiagnosticCategory.Error,"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:n(4067,e.DiagnosticCategory.Error,"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:n(4068,e.DiagnosticCategory.Error,"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:n(4069,e.DiagnosticCategory.Error,"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:n(4070,e.DiagnosticCategory.Error,"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:n(4071,e.DiagnosticCategory.Error,"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:n(4072,e.DiagnosticCategory.Error,"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:n(4073,e.DiagnosticCategory.Error,"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:n(4074,e.DiagnosticCategory.Error,"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:n(4075,e.DiagnosticCategory.Error,"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:n(4076,e.DiagnosticCategory.Error,"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:n(4077,e.DiagnosticCategory.Error,"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:n(4078,e.DiagnosticCategory.Error,"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:n(4081,e.DiagnosticCategory.Error,"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:n(4082,e.DiagnosticCategory.Error,"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:n(4083,e.DiagnosticCategory.Error,"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:n(4084,e.DiagnosticCategory.Error,"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}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:n(4090,e.DiagnosticCategory.Error,"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:n(4091,e.DiagnosticCategory.Error,"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:n(4092,e.DiagnosticCategory.Error,"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:n(4094,e.DiagnosticCategory.Error,"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:n(4095,e.DiagnosticCategory.Error,"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:n(4096,e.DiagnosticCategory.Error,"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:n(4097,e.DiagnosticCategory.Error,"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:n(4098,e.DiagnosticCategory.Error,"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:n(4099,e.DiagnosticCategory.Error,"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:n(4100,e.DiagnosticCategory.Error,"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:n(4101,e.DiagnosticCategory.Error,"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:n(4102,e.DiagnosticCategory.Error,"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:n(4103,e.DiagnosticCategory.Error,"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:n(4104,e.DiagnosticCategory.Error,"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:n(4105,e.DiagnosticCategory.Error,"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:n(4106,e.DiagnosticCategory.Error,"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:n(4107,e.DiagnosticCategory.Error,"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:n(4108,e.DiagnosticCategory.Error,"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:n(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:n(4110,e.DiagnosticCategory.Error,"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:n(4111,e.DiagnosticCategory.Error,"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:n(4112,e.DiagnosticCategory.Error,"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:n(4113,e.DiagnosticCategory.Error,"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:n(4114,e.DiagnosticCategory.Error,"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:n(4115,e.DiagnosticCategory.Error,"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:n(4116,e.DiagnosticCategory.Error,"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:n(4117,e.DiagnosticCategory.Error,"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:n(4118,e.DiagnosticCategory.Error,"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:n(4119,e.DiagnosticCategory.Error,"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:n(4120,e.DiagnosticCategory.Error,"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:n(4121,e.DiagnosticCategory.Error,"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:n(4122,e.DiagnosticCategory.Error,"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:n(4123,e.DiagnosticCategory.Error,"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:n(4124,e.DiagnosticCategory.Error,"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'."),The_current_host_does_not_support_the_0_option:n(5001,e.DiagnosticCategory.Error,"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:n(5009,e.DiagnosticCategory.Error,"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:n(5010,e.DiagnosticCategory.Error,"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:n(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:n(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:n(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:n(5024,e.DiagnosticCategory.Error,"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:n(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:n(5033,e.DiagnosticCategory.Error,"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:n(5042,e.DiagnosticCategory.Error,"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:n(5047,e.DiagnosticCategory.Error,"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:n(5048,e.DiagnosticCategory.Error,"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:n(5051,e.DiagnosticCategory.Error,"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:n(5052,e.DiagnosticCategory.Error,"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:n(5053,e.DiagnosticCategory.Error,"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:n(5054,e.DiagnosticCategory.Error,"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:n(5055,e.DiagnosticCategory.Error,"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:n(5056,e.DiagnosticCategory.Error,"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:n(5057,e.DiagnosticCategory.Error,"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:n(5058,e.DiagnosticCategory.Error,"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:n(5059,e.DiagnosticCategory.Error,"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:n(5061,e.DiagnosticCategory.Error,"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:n(5062,e.DiagnosticCategory.Error,"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:n(5063,e.DiagnosticCategory.Error,"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:n(5064,e.DiagnosticCategory.Error,"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:n(5065,e.DiagnosticCategory.Error,"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:n(5066,e.DiagnosticCategory.Error,"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:n(5067,e.DiagnosticCategory.Error,"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:n(5068,e.DiagnosticCategory.Error,"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:n(5069,e.DiagnosticCategory.Error,"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_without_node_module_resolution_strategy:n(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:n(5071,e.DiagnosticCategory.Error,"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:n(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:n(5073,e.DiagnosticCategory.Error,"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:n(5074,e.DiagnosticCategory.Error,"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:n(5075,e.DiagnosticCategory.Error,"_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:n(5076,e.DiagnosticCategory.Error,"_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:n(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:n(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:n(5079,e.DiagnosticCategory.Error,"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:n(5080,e.DiagnosticCategory.Error,"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:n(5081,e.DiagnosticCategory.Error,"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:n(5082,e.DiagnosticCategory.Error,"_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:n(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:n(5084,e.DiagnosticCategory.Error,"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:n(5085,e.DiagnosticCategory.Error,"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:n(5086,e.DiagnosticCategory.Error,"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:n(5087,e.DiagnosticCategory.Error,"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:n(5088,e.DiagnosticCategory.Error,"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:n(5089,e.DiagnosticCategory.Error,"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:n(5090,e.DiagnosticCategory.Error,"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_isolatedModules_is_enabled:n(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:n(5092,e.DiagnosticCategory.Error,"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:n(5093,e.DiagnosticCategory.Error,"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:n(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later:n(5095,e.DiagnosticCategory.Error,"Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:n(6e3,e.DiagnosticCategory.Message,"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:n(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:n(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:n(6004,e.DiagnosticCategory.Message,"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:n(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:n(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:n(6007,e.DiagnosticCategory.Message,"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:n(6008,e.DiagnosticCategory.Message,"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:n(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:n(6010,e.DiagnosticCategory.Message,"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:n(6011,e.DiagnosticCategory.Message,"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:n(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:n(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:n(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:n(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:n(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:n(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:n(6019,e.DiagnosticCategory.Message,"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:n(6020,e.DiagnosticCategory.Message,"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:n(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:n(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:n(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:n(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:n(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:n(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:n(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:n(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:n(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:n(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:n(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:n(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:n(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:n(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:n(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:n(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:n(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:n(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:n(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:n(6046,e.DiagnosticCategory.Error,"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:n(6048,e.DiagnosticCategory.Error,"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:n(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:n(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:n(6052,e.DiagnosticCategory.Message,"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:n(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:n(6054,e.DiagnosticCategory.Error,"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:n(6055,e.DiagnosticCategory.Message,"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:n(6056,e.DiagnosticCategory.Message,"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:n(6058,e.DiagnosticCategory.Message,"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:n(6059,e.DiagnosticCategory.Error,"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:n(6060,e.DiagnosticCategory.Message,"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:n(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:n(6064,e.DiagnosticCategory.Error,"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:n(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:n(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:n(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:n(6070,e.DiagnosticCategory.Message,"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:n(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:n(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:n(6073,e.DiagnosticCategory.Message,"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:n(6074,e.DiagnosticCategory.Message,"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:n(6075,e.DiagnosticCategory.Message,"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:n(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:n(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:n(6078,e.DiagnosticCategory.Message,"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:n(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:n(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:n(6081,e.DiagnosticCategory.Message,"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:n(6082,e.DiagnosticCategory.Error,"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:n(6083,e.DiagnosticCategory.Message,"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:n(6084,e.DiagnosticCategory.Message,"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:n(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:n(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:n(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:n(6088,e.DiagnosticCategory.Message,"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:n(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:n(6090,e.DiagnosticCategory.Message,"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:n(6091,e.DiagnosticCategory.Message,"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:n(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:n(6093,e.DiagnosticCategory.Message,"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:n(6094,e.DiagnosticCategory.Message,"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_type_1:n(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:n(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:n(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:n(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:n(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:n(6100,e.DiagnosticCategory.Message,"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:n(6101,e.DiagnosticCategory.Message,"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:n(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:n(6104,e.DiagnosticCategory.Message,"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:n(6105,e.DiagnosticCategory.Message,"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:n(6106,e.DiagnosticCategory.Message,"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:n(6107,e.DiagnosticCategory.Message,"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:n(6108,e.DiagnosticCategory.Message,"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:n(6109,e.DiagnosticCategory.Message,"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:n(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:n(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:n(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:n(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:n(6114,e.DiagnosticCategory.Error,"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:n(6115,e.DiagnosticCategory.Message,"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:n(6116,e.DiagnosticCategory.Message,"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:n(6119,e.DiagnosticCategory.Message,"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:n(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:n(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:n(6122,e.DiagnosticCategory.Message,"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:n(6123,e.DiagnosticCategory.Message,"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:n(6124,e.DiagnosticCategory.Message,"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:n(6125,e.DiagnosticCategory.Message,"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:n(6126,e.DiagnosticCategory.Message,"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:n(6127,e.DiagnosticCategory.Message,"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:n(6128,e.DiagnosticCategory.Message,"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:n(6130,e.DiagnosticCategory.Message,"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:n(6131,e.DiagnosticCategory.Error,"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:n(6132,e.DiagnosticCategory.Message,"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:n(6133,e.DiagnosticCategory.Error,"_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:n(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:n(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:n(6136,e.DiagnosticCategory.Message,"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:n(6137,e.DiagnosticCategory.Error,"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:n(6138,e.DiagnosticCategory.Error,"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:n(6139,e.DiagnosticCategory.Message,"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:n(6140,e.DiagnosticCategory.Error,"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:n(6141,e.DiagnosticCategory.Message,"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:n(6142,e.DiagnosticCategory.Error,"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:n(6144,e.DiagnosticCategory.Message,"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:n(6145,e.DiagnosticCategory.Message,"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:n(6146,e.DiagnosticCategory.Message,"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:n(6147,e.DiagnosticCategory.Message,"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:n(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:n(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:n(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:n(6151,e.DiagnosticCategory.Message,"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:n(6152,e.DiagnosticCategory.Message,"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:n(6153,e.DiagnosticCategory.Message,"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:n(6154,e.DiagnosticCategory.Message,"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:n(6155,e.DiagnosticCategory.Message,"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:n(6156,e.DiagnosticCategory.Message,"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:n(6157,e.DiagnosticCategory.Message,"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:n(6158,e.DiagnosticCategory.Message,"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:n(6159,e.DiagnosticCategory.Message,"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:n(6160,e.DiagnosticCategory.Message,"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:n(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:n(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:n(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Do_not_truncate_error_messages:n(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:n(6166,e.DiagnosticCategory.Message,"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:n(6167,e.DiagnosticCategory.Message,"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:n(6168,e.DiagnosticCategory.Message,"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:n(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:n(6170,e.DiagnosticCategory.Message,"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:n(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:n(6179,e.DiagnosticCategory.Message,"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:n(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:n(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:n(6182,e.DiagnosticCategory.Message,"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:n(6183,e.DiagnosticCategory.Message,"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:n(6184,e.DiagnosticCategory.Message,"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:n(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:n(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:n(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:n(6189,e.DiagnosticCategory.Error,"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:n(6191,e.DiagnosticCategory.Message,"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:n(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:n(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:n(6194,e.DiagnosticCategory.Message,"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:n(6195,e.DiagnosticCategory.Message,"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:n(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:n(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:n(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:n(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:n(6200,e.DiagnosticCategory.Error,"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:n(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:n(6202,e.DiagnosticCategory.Error,"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:n(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:n(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:n(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:n(6206,e.DiagnosticCategory.Message,"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:n(6207,e.DiagnosticCategory.Message,"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:n(6208,e.DiagnosticCategory.Message,"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:n(6209,e.DiagnosticCategory.Message,"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:n(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:n(6211,e.DiagnosticCategory.Message,"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:n(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:n(6213,e.DiagnosticCategory.Message,"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:n(6214,e.DiagnosticCategory.Message,"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:n(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:n(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:n(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:n(6218,e.DiagnosticCategory.Message,"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:n(6219,e.DiagnosticCategory.Message,"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:n(6220,e.DiagnosticCategory.Message,"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:n(6221,e.DiagnosticCategory.Message,"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:n(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:n(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:n(6224,e.DiagnosticCategory.Message,"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:n(6225,e.DiagnosticCategory.Message,"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:n(6226,e.DiagnosticCategory.Message,"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:n(6227,e.DiagnosticCategory.Message,"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:n(6229,e.DiagnosticCategory.Error,"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:n(6230,e.DiagnosticCategory.Error,"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:n(6231,e.DiagnosticCategory.Error,"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:n(6232,e.DiagnosticCategory.Error,"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:n(6233,e.DiagnosticCategory.Error,"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:n(6234,e.DiagnosticCategory.Error,"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:n(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:n(6236,e.DiagnosticCategory.Error,"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:n(6237,e.DiagnosticCategory.Message,"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:n(6238,e.DiagnosticCategory.Error,"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:n(6239,e.DiagnosticCategory.Message,"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:n(6240,e.DiagnosticCategory.Message,"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:n(6241,e.DiagnosticCategory.Message,"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:n(6242,e.DiagnosticCategory.Message,"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:n(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:n(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:n(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:n(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:n(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:n(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:n(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:n(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:n(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:n(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:n(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:n(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:n(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:n(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:n(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:n(6258,e.DiagnosticCategory.Error,"_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"),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:n(6270,e.DiagnosticCategory.Message,"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:n(6271,e.DiagnosticCategory.Message,"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:n(6272,e.DiagnosticCategory.Message,"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:n(6273,e.DiagnosticCategory.Message,"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:n(6274,e.DiagnosticCategory.Message,"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:n(6275,e.DiagnosticCategory.Message,"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:n(6276,e.DiagnosticCategory.Message,"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}'."),Enable_project_compilation:n(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:n(6304,e.DiagnosticCategory.Error,"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:n(6305,e.DiagnosticCategory.Error,"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:n(6306,e.DiagnosticCategory.Error,"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:n(6307,e.DiagnosticCategory.Error,"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:n(6308,e.DiagnosticCategory.Error,"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:n(6309,e.DiagnosticCategory.Error,"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:n(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:n(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:n(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:n(6352,e.DiagnosticCategory.Message,"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:n(6353,e.DiagnosticCategory.Message,"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:n(6354,e.DiagnosticCategory.Message,"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:n(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:n(6356,e.DiagnosticCategory.Message,"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:n(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:n(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:n(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:n(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:n(6362,e.DiagnosticCategory.Message,"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:n(6363,e.DiagnosticCategory.Message,"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:n(6364,e.DiagnosticCategory.Message,"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:n(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Show_what_would_be_built_or_deleted_if_specified_with_clean:n(6367,e.DiagnosticCategory.Message,"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:n(6369,e.DiagnosticCategory.Error,"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:n(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:n(6371,e.DiagnosticCategory.Message,"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:n(6372,e.DiagnosticCategory.Message,"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:n(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:n(6374,e.DiagnosticCategory.Message,"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:n(6375,e.DiagnosticCategory.Message,"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:n(6376,e.DiagnosticCategory.Message,"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:n(6377,e.DiagnosticCategory.Error,"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}'"),Enable_incremental_compilation:n(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:n(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:n(6380,e.DiagnosticCategory.Message,"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:n(6381,e.DiagnosticCategory.Message,"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:n(6382,e.DiagnosticCategory.Message,"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:n(6383,e.DiagnosticCategory.Message,"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:n(6384,e.DiagnosticCategory.Message,"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:n(6385,e.DiagnosticCategory.Suggestion,"_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:n(6386,e.DiagnosticCategory.Message,"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:n(6387,e.DiagnosticCategory.Suggestion,"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:n(6388,e.DiagnosticCategory.Message,"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:n(6389,e.DiagnosticCategory.Message,"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:n(6390,e.DiagnosticCategory.Message,"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:n(6391,e.DiagnosticCategory.Message,"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:n(6392,e.DiagnosticCategory.Message,"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:n(6393,e.DiagnosticCategory.Message,"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:n(6394,e.DiagnosticCategory.Message,"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:n(6395,e.DiagnosticCategory.Message,"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:n(6396,e.DiagnosticCategory.Message,"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:n(6397,e.DiagnosticCategory.Message,"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:n(6398,e.DiagnosticCategory.Message,"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."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:n(6500,e.DiagnosticCategory.Message,"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:n(6501,e.DiagnosticCategory.Message,"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:n(6502,e.DiagnosticCategory.Message,"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:n(6503,e.DiagnosticCategory.Message,"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:n(6504,e.DiagnosticCategory.Error,"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:n(6505,e.DiagnosticCategory.Message,"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:n(6506,e.DiagnosticCategory.Message,"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:n(6600,e.DiagnosticCategory.Message,"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:n(6601,e.DiagnosticCategory.Message,"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:n(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:n(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:n(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:n(6605,e.DiagnosticCategory.Message,"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:n(6606,e.DiagnosticCategory.Message,"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:n(6607,e.DiagnosticCategory.Message,"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:n(6608,e.DiagnosticCategory.Message,"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:n(6609,e.DiagnosticCategory.Message,"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:n(6611,e.DiagnosticCategory.Message,"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:n(6612,e.DiagnosticCategory.Message,"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:n(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:n(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:n(6615,e.DiagnosticCategory.Message,"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:n(6616,e.DiagnosticCategory.Message,"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:n(6617,e.DiagnosticCategory.Message,"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:n(6618,e.DiagnosticCategory.Message,"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:n(6619,e.DiagnosticCategory.Message,"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:n(6620,e.DiagnosticCategory.Message,"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:n(6621,e.DiagnosticCategory.Message,"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:n(6622,e.DiagnosticCategory.Message,"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:n(6623,e.DiagnosticCategory.Message,"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:n(6624,e.DiagnosticCategory.Message,"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:n(6625,e.DiagnosticCategory.Message,"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:n(6626,e.DiagnosticCategory.Message,"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:n(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:n(6628,e.DiagnosticCategory.Message,"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:n(6629,e.DiagnosticCategory.Message,"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_TC39_stage_2_draft_decorators:n(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:n(6631,e.DiagnosticCategory.Message,"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:n(6632,e.DiagnosticCategory.Message,"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:n(6633,e.DiagnosticCategory.Message,"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:n(6634,e.DiagnosticCategory.Message,"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:n(6635,e.DiagnosticCategory.Message,"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:n(6636,e.DiagnosticCategory.Message,"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:n(6637,e.DiagnosticCategory.Message,"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:n(6638,e.DiagnosticCategory.Message,"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:n(6639,e.DiagnosticCategory.Message,"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:n(6641,e.DiagnosticCategory.Message,"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:n(6642,e.DiagnosticCategory.Message,"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:n(6643,e.DiagnosticCategory.Message,"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:n(6644,e.DiagnosticCategory.Message,"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:n(6645,e.DiagnosticCategory.Message,"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:n(6646,e.DiagnosticCategory.Message,"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:n(6647,e.DiagnosticCategory.Message,"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:n(6648,e.DiagnosticCategory.Message,"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:n(6649,e.DiagnosticCategory.Message,"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:n(6650,e.DiagnosticCategory.Message,"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:n(6651,e.DiagnosticCategory.Message,"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:n(6652,e.DiagnosticCategory.Message,"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:n(6653,e.DiagnosticCategory.Message,"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:n(6654,e.DiagnosticCategory.Message,"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:n(6655,e.DiagnosticCategory.Message,"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:n(6656,e.DiagnosticCategory.Message,"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:n(6657,e.DiagnosticCategory.Message,"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:n(6658,e.DiagnosticCategory.Message,"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:n(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:n(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:n(6661,e.DiagnosticCategory.Message,"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:n(6662,e.DiagnosticCategory.Message,"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:n(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:n(6664,e.DiagnosticCategory.Message,"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:n(6665,e.DiagnosticCategory.Message,"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:n(6666,e.DiagnosticCategory.Message,"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:n(6667,e.DiagnosticCategory.Message,"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:n(6668,e.DiagnosticCategory.Message,"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:n(6669,e.DiagnosticCategory.Message,"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:n(6670,e.DiagnosticCategory.Message,"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:n(6671,e.DiagnosticCategory.Message,"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:n(6672,e.DiagnosticCategory.Message,"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:n(6673,e.DiagnosticCategory.Message,"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:n(6674,e.DiagnosticCategory.Message,"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_a_local_variables_aren_t_read:n(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_a_local_variables_aren_t_read_6675","Enable error reporting when a local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:n(6676,e.DiagnosticCategory.Message,"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:n(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use `outFile` instead."),Specify_an_output_folder_for_all_emitted_files:n(6678,e.DiagnosticCategory.Message,"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:n(6679,e.DiagnosticCategory.Message,"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:n(6680,e.DiagnosticCategory.Message,"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:n(6681,e.DiagnosticCategory.Message,"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:n(6682,e.DiagnosticCategory.Message,"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:n(6683,e.DiagnosticCategory.Message,"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:n(6684,e.DiagnosticCategory.Message,"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:n(6685,e.DiagnosticCategory.Message,"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:n(6686,e.DiagnosticCategory.Message,"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:n(6687,e.DiagnosticCategory.Message,"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:n(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:n(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files"),Specify_the_root_folder_within_your_source_files:n(6690,e.DiagnosticCategory.Message,"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:n(6691,e.DiagnosticCategory.Message,"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:n(6692,e.DiagnosticCategory.Message,"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:n(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:n(6694,e.DiagnosticCategory.Message,"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:n(6695,e.DiagnosticCategory.Message,"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:n(6697,e.DiagnosticCategory.Message,"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:n(6698,e.DiagnosticCategory.Message,"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:n(6699,e.DiagnosticCategory.Message,"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:n(6700,e.DiagnosticCategory.Message,"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:n(6701,e.DiagnosticCategory.Message,"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:n(6702,e.DiagnosticCategory.Message,"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:n(6703,e.DiagnosticCategory.Message,"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:n(6704,e.DiagnosticCategory.Message,"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:n(6705,e.DiagnosticCategory.Message,"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:n(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the `moduleResolution` process."),Specify_the_folder_for_tsbuildinfo_incremental_compilation_files:n(6707,e.DiagnosticCategory.Message,"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707","Specify the folder for .tsbuildinfo incremental compilation files."),Specify_options_for_automatic_acquisition_of_declaration_files:n(6709,e.DiagnosticCategory.Message,"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:n(6710,e.DiagnosticCategory.Message,"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:n(6711,e.DiagnosticCategory.Message,"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:n(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:n(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging"),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:n(6714,e.DiagnosticCategory.Message,"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:n(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Include_undefined_in_index_signature_results:n(6716,e.DiagnosticCategory.Message,"Include_undefined_in_index_signature_results_6716","Include 'undefined' in index signature results"),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:n(6717,e.DiagnosticCategory.Message,"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:n(6718,e.DiagnosticCategory.Message,"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"),Type_catch_clause_variables_as_unknown_instead_of_any:n(6803,e.DiagnosticCategory.Message,"Type_catch_clause_variables_as_unknown_instead_of_any_6803","Type catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:n(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:n(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:n(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:n(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:n(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:n(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:n(6906,e.DiagnosticCategory.Message,"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:n(6907,e.DiagnosticCategory.Message,"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:n(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:n(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:n(69010,e.DiagnosticCategory.Message,"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:n(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:n(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:n(6913,e.DiagnosticCategory.Message,"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:n(6914,e.DiagnosticCategory.Message,"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:n(6915,e.DiagnosticCategory.Message,"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:n(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:n(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:n(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:n(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:n(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:n(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:n(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:n(6923,e.DiagnosticCategory.Message,"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:n(6924,e.DiagnosticCategory.Message,"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:n(6925,e.DiagnosticCategory.Message,"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:n(6926,e.DiagnosticCategory.Message,"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:n(6927,e.DiagnosticCategory.Message,"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:n(6928,e.DiagnosticCategory.Message,"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:n(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:n(6930,e.DiagnosticCategory.Message,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),Variable_0_implicitly_has_an_1_type:n(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:n(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:n(7008,e.DiagnosticCategory.Error,"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:n(7009,e.DiagnosticCategory.Error,"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:n(7010,e.DiagnosticCategory.Error,"_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:n(7011,e.DiagnosticCategory.Error,"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."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:n(7013,e.DiagnosticCategory.Error,"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:n(7014,e.DiagnosticCategory.Error,"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:n(7015,e.DiagnosticCategory.Error,"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:n(7016,e.DiagnosticCategory.Error,"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:n(7017,e.DiagnosticCategory.Error,"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:n(7018,e.DiagnosticCategory.Error,"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:n(7019,e.DiagnosticCategory.Error,"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:n(7020,e.DiagnosticCategory.Error,"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:n(7022,e.DiagnosticCategory.Error,"_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:n(7023,e.DiagnosticCategory.Error,"_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:n(7024,e.DiagnosticCategory.Error,"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:n(7025,e.DiagnosticCategory.Error,"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:n(7026,e.DiagnosticCategory.Error,"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:n(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:n(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:n(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:n(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:n(7031,e.DiagnosticCategory.Error,"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:n(7032,e.DiagnosticCategory.Error,"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:n(7033,e.DiagnosticCategory.Error,"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:n(7034,e.DiagnosticCategory.Error,"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:n(7035,e.DiagnosticCategory.Error,"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:n(7036,e.DiagnosticCategory.Error,"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:n(7037,e.DiagnosticCategory.Message,"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:n(7038,e.DiagnosticCategory.Message,"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:n(7039,e.DiagnosticCategory.Error,"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:n(7040,e.DiagnosticCategory.Error,"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:n(7041,e.DiagnosticCategory.Error,"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:n(7042,e.DiagnosticCategory.Error,"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:n(7043,e.DiagnosticCategory.Suggestion,"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:n(7044,e.DiagnosticCategory.Suggestion,"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:n(7045,e.DiagnosticCategory.Suggestion,"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:n(7046,e.DiagnosticCategory.Suggestion,"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:n(7047,e.DiagnosticCategory.Suggestion,"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:n(7048,e.DiagnosticCategory.Suggestion,"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:n(7049,e.DiagnosticCategory.Suggestion,"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:n(7050,e.DiagnosticCategory.Suggestion,"_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:n(7051,e.DiagnosticCategory.Error,"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:n(7052,e.DiagnosticCategory.Error,"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:n(7053,e.DiagnosticCategory.Error,"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:n(7054,e.DiagnosticCategory.Error,"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:n(7055,e.DiagnosticCategory.Error,"_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:n(7056,e.DiagnosticCategory.Error,"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:n(7057,e.DiagnosticCategory.Error,"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:n(7058,e.DiagnosticCategory.Error,"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:n(7059,e.DiagnosticCategory.Error,"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:n(7060,e.DiagnosticCategory.Error,"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:n(7061,e.DiagnosticCategory.Error,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),JSON_imports_are_experimental_in_ES_module_mode_imports:n(7062,e.DiagnosticCategory.Error,"JSON_imports_are_experimental_in_ES_module_mode_imports_7062","JSON imports are experimental in ES module mode imports."),You_cannot_rename_this_element:n(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:n(8001,e.DiagnosticCategory.Error,"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:n(8002,e.DiagnosticCategory.Error,"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:n(8003,e.DiagnosticCategory.Error,"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:n(8004,e.DiagnosticCategory.Error,"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:n(8005,e.DiagnosticCategory.Error,"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:n(8006,e.DiagnosticCategory.Error,"_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:n(8008,e.DiagnosticCategory.Error,"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:n(8009,e.DiagnosticCategory.Error,"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:n(8010,e.DiagnosticCategory.Error,"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:n(8011,e.DiagnosticCategory.Error,"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:n(8012,e.DiagnosticCategory.Error,"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:n(8013,e.DiagnosticCategory.Error,"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:n(8016,e.DiagnosticCategory.Error,"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:n(8017,e.DiagnosticCategory.Error,"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:n(8018,e.DiagnosticCategory.Error,"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:n(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:n(8020,e.DiagnosticCategory.Error,"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:n(8021,e.DiagnosticCategory.Error,"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:n(8022,e.DiagnosticCategory.Error,"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:n(8023,e.DiagnosticCategory.Error,"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:n(8024,e.DiagnosticCategory.Error,"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:n(8025,e.DiagnosticCategory.Error,"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:n(8026,e.DiagnosticCategory.Error,"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:n(8027,e.DiagnosticCategory.Error,"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:n(8028,e.DiagnosticCategory.Error,"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:n(8029,e.DiagnosticCategory.Error,"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:n(8030,e.DiagnosticCategory.Error,"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:n(8031,e.DiagnosticCategory.Error,"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:n(8032,e.DiagnosticCategory.Error,"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:n(8033,e.DiagnosticCategory.Error,"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:n(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:n(9005,e.DiagnosticCategory.Error,"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:n(9006,e.DiagnosticCategory.Error,"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:n(17e3,e.DiagnosticCategory.Error,"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:n(17001,e.DiagnosticCategory.Error,"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:n(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:n(17004,e.DiagnosticCategory.Error,"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:n(17005,e.DiagnosticCategory.Error,"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:n(17006,e.DiagnosticCategory.Error,"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:n(17007,e.DiagnosticCategory.Error,"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:n(17008,e.DiagnosticCategory.Error,"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:n(17009,e.DiagnosticCategory.Error,"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:n(17010,e.DiagnosticCategory.Error,"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:n(17011,e.DiagnosticCategory.Error,"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:n(17012,e.DiagnosticCategory.Error,"_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:n(17013,e.DiagnosticCategory.Error,"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:n(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:n(17015,e.DiagnosticCategory.Error,"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:n(17016,e.DiagnosticCategory.Error,"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:n(17017,e.DiagnosticCategory.Error,"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:n(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:n(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:n(18002,e.DiagnosticCategory.Error,"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:n(18003,e.DiagnosticCategory.Error,"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:n(80001,e.DiagnosticCategory.Suggestion,"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:n(80002,e.DiagnosticCategory.Suggestion,"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:n(80003,e.DiagnosticCategory.Suggestion,"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:n(80004,e.DiagnosticCategory.Suggestion,"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:n(80005,e.DiagnosticCategory.Suggestion,"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:n(80006,e.DiagnosticCategory.Suggestion,"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:n(80007,e.DiagnosticCategory.Suggestion,"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:n(80008,e.DiagnosticCategory.Suggestion,"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:n(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:n(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:n(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:n(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:n(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:n(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:n(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:n(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:n(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:n(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:n(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:n(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013",`Import '{0}' from module "{1}"`),Change_0_to_1:n(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:n(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015",`Add '{0}' to existing import declaration from "{1}"`),Declare_property_0:n(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:n(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:n(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:n(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:n(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:n(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:n(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:n(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:n(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:n(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:n(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:n(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:n(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:n(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:n(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:n(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:n(90032,e.DiagnosticCategory.Message,"Import_default_0_from_module_1_90032",`Import default '{0}' from module "{1}"`),Add_default_import_0_to_existing_import_declaration_from_1:n(90033,e.DiagnosticCategory.Message,"Add_default_import_0_to_existing_import_declaration_from_1_90033",`Add default import '{0}' to existing import declaration from "{1}"`),Add_parameter_name:n(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:n(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:n(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:n(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:n(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:n(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:n(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:n(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:n(90054,e.DiagnosticCategory.Message,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Convert_function_to_an_ES2015_class:n(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:n(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:n(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:n(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:n(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:n(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:n(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:n(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:n(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:n(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:n(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:n(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:n(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:n(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:n(95017,e.DiagnosticCategory.Message,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:n(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:n(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:n(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:n(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:n(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:n(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:n(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:n(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:n(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:n(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:n(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:n(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:n(95030,e.DiagnosticCategory.Message,"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:n(95031,e.DiagnosticCategory.Message,"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:n(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:n(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:n(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:n(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:n(95036,e.DiagnosticCategory.Message,"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:n(95037,e.DiagnosticCategory.Message,"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:n(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:n(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:n(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:n(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:n(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:n(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:n(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:n(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:n(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:n(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:n(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:n(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:n(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:n(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:n(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:n(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:n(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:n(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:n(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:n(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:n(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:n(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:n(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:n(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:n(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:n(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:n(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:n(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:n(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:n(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:n(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:n(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:n(95070,e.DiagnosticCategory.Message,"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:n(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:n(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:n(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:n(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:n(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:n(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:n(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:n(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:n(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:n(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:n(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:n(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:n(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:n(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:n(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:n(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:n(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:n(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:n(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:n(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:n(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:n(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:n(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:n(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:n(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:n(95097,e.DiagnosticCategory.Message,"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:n(95098,e.DiagnosticCategory.Message,"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:n(95099,e.DiagnosticCategory.Message,"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:n(95100,e.DiagnosticCategory.Message,"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:n(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_function_expression_0_to_arrow_function:n(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:n(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:n(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:n(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:n(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file:n(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig.json to read more about this file"),Add_a_return_statement:n(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:n(95112,e.DiagnosticCategory.Message,"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:n(95113,e.DiagnosticCategory.Message,"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:n(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:n(95115,e.DiagnosticCategory.Message,"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:n(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:n(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:n(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:n(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:n(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:n(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:n(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:n(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:n(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:n(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:n(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:n(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:n(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:n(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:n(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:n(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:n(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:n(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:n(95134,e.DiagnosticCategory.Message,"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:n(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:n(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:n(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:n(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:n(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:n(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:n(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:n(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:n(95143,e.DiagnosticCategory.Message,"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:n(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:n(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:n(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:n(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:n(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:n(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:n(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:n(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:n(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:n(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:n(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:n(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:n(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:n(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:n(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:n(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:n(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:n(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:n(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:n(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:n(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:n(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:n(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:n(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:n(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:n(95169,e.DiagnosticCategory.Message,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:n(18004,e.DiagnosticCategory.Error,"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:n(18006,e.DiagnosticCategory.Error,"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:n(18007,e.DiagnosticCategory.Error,"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:n(18009,e.DiagnosticCategory.Error,"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:n(18010,e.DiagnosticCategory.Error,"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:n(18011,e.DiagnosticCategory.Error,"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:n(18012,e.DiagnosticCategory.Error,"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:n(18013,e.DiagnosticCategory.Error,"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:n(18014,e.DiagnosticCategory.Error,"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:n(18015,e.DiagnosticCategory.Error,"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:n(18016,e.DiagnosticCategory.Error,"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:n(18017,e.DiagnosticCategory.Error,"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:n(18018,e.DiagnosticCategory.Error,"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:n(18019,e.DiagnosticCategory.Error,"_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:n(18024,e.DiagnosticCategory.Error,"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:n(18026,e.DiagnosticCategory.Error,"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:n(18027,e.DiagnosticCategory.Error,"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:n(18028,e.DiagnosticCategory.Error,"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:n(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:n(18030,e.DiagnosticCategory.Error,"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:n(18031,e.DiagnosticCategory.Error,"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:n(18032,e.DiagnosticCategory.Error,"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."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:n(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:n(18034,e.DiagnosticCategory.Message,"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:n(18035,e.DiagnosticCategory.Error,"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:n(18036,e.DiagnosticCategory.Error,"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:n(18037,e.DiagnosticCategory.Error,"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:n(18038,e.DiagnosticCategory.Error,"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:n(18039,e.DiagnosticCategory.Error,"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:n(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block.")}}(jr||(jr={})),function(e){var n;function f(Ae){return Ae>=79}e.tokenIsIdentifierOrKeyword=f;function p(Ae){return Ae===31||f(Ae)}e.tokenIsIdentifierOrKeywordOrGreaterThan=p,e.textToKeywordObj=(n={abstract:126,any:130,as:127,asserts:128,assert:129,bigint:157,boolean:133,break:81,case:82,catch:83,class:84,continue:86,const:85},n.constructor=134,n.debugger=87,n.declare=135,n.default=88,n.delete=89,n.do=90,n.else=91,n.enum=92,n.export=93,n.extends=94,n.false=95,n.finally=96,n.for=97,n.from=155,n.function=98,n.get=136,n.if=99,n.implements=117,n.import=100,n.in=101,n.infer=137,n.instanceof=102,n.interface=118,n.intrinsic=138,n.is=139,n.keyof=140,n.let=119,n.module=141,n.namespace=142,n.never=143,n.new=103,n.null=104,n.number=146,n.object=147,n.package=120,n.private=121,n.protected=122,n.public=123,n.override=158,n.readonly=144,n.require=145,n.global=156,n.return=105,n.set=148,n.static=124,n.string=149,n.super=106,n.switch=107,n.symbol=150,n.this=108,n.throw=109,n.true=110,n.try=111,n.type=151,n.typeof=112,n.undefined=152,n.unique=153,n.unknown=154,n.var=113,n.void=114,n.while=115,n.with=116,n.yield=125,n.async=131,n.await=132,n.of=159,n);var a=new e.Map(e.getEntries(e.textToKeywordObj)),d=new e.Map(e.getEntries(Rn(Rn({},e.textToKeywordObj),{"{":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}))),k=[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],J=[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],h=[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],v=[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],A=[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],z=[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],ie=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,b=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function M(Ae,Ye){if(Ae<Ye[0])return!1;for(var Dr=0,br=Ye.length,lr;Dr+1<br;){if(lr=Dr+(br-Dr)/2,lr-=lr%2,Ye[lr]<=Ae&&Ae<=Ye[lr+1])return!0;Ae<Ye[lr]?br=lr:Dr=lr+2}return!1}function S(Ae,Ye){return Ye>=2?M(Ae,A):Ye===1?M(Ae,h):M(Ae,k)}e.isUnicodeIdentifierStart=S;function B(Ae,Ye){return Ye>=2?M(Ae,z):Ye===1?M(Ae,v):M(Ae,J)}function H(Ae){var Ye=[];return Ae.forEach(function(Dr,br){Ye[Dr]=br}),Ye}var I=H(d);function w(Ae){return I[Ae]}e.tokenToString=w;function x(Ae){return d.get(Ae)}e.stringToToken=x;function O(Ae){for(var Ye=new Array,Dr=0,br=0;Dr<Ae.length;){var lr=Ae.charCodeAt(Dr);switch(Dr++,lr){case 13:Ae.charCodeAt(Dr)===10&&Dr++;case 10:Ye.push(br),br=Dr;break;default:lr>127&&y(lr)&&(Ye.push(br),br=Dr);break}}return Ye.push(br),Ye}e.computeLineStarts=O;function q(Ae,Ye,Dr,br){return Ae.getPositionOfLineAndCharacter?Ae.getPositionOfLineAndCharacter(Ye,Dr,br):Z(ne(Ae),Ye,Dr,Ae.text,br)}e.getPositionOfLineAndCharacter=q;function Z(Ae,Ye,Dr,br,lr){(Ye<0||Ye>=Ae.length)&&(lr?Ye=Ye<0?0:Ye>=Ae.length?Ae.length-1:Ye:e.Debug.fail("Bad line number. Line: ".concat(Ye,", lineStarts.length: ").concat(Ae.length," , line map is correct? ").concat(br!==void 0?e.arraysEqual(Ae,O(br)):"unknown")));var Ar=Ae[Ye]+Dr;return lr?Ar>Ae[Ye+1]?Ae[Ye+1]:typeof br=="string"&&Ar>br.length?br.length:Ar:(Ye<Ae.length-1?e.Debug.assert(Ar<Ae[Ye+1]):br!==void 0&&e.Debug.assert(Ar<=br.length),Ar)}e.computePositionOfLineAndCharacter=Z;function ne(Ae){return Ae.lineMap||(Ae.lineMap=O(Ae.text))}e.getLineStarts=ne;function F(Ae,Ye){var Dr=Q(Ae,Ye);return{line:Dr,character:Ye-Ae[Dr]}}e.computeLineAndCharacterOfPosition=F;function Q(Ae,Ye,Dr){var br=e.binarySearch(Ae,Ye,e.identity,e.compareValues,Dr);return br<0&&(br=~br-1,e.Debug.assert(br!==-1,"position cannot precede the beginning of the file")),br}e.computeLineOfPosition=Q;function V(Ae,Ye,Dr){if(Ye===Dr)return 0;var br=ne(Ae),lr=Math.min(Ye,Dr),Ar=lr===Dr,kr=Ar?Ye:Dr,Ke=Q(br,lr),Me=Q(br,kr,Ke);return Ar?Ke-Me:Me-Ke}e.getLinesBetweenPositions=V;function re(Ae,Ye){return F(ne(Ae),Ye)}e.getLineAndCharacterOfPosition=re;function T(Ae){return N(Ae)||y(Ae)}e.isWhiteSpaceLike=T;function N(Ae){return Ae===32||Ae===9||Ae===11||Ae===12||Ae===160||Ae===133||Ae===5760||Ae>=8192&&Ae<=8203||Ae===8239||Ae===8287||Ae===12288||Ae===65279}e.isWhiteSpaceSingleLine=N;function y(Ae){return Ae===10||Ae===13||Ae===8232||Ae===8233}e.isLineBreak=y;function D(Ae){return Ae>=48&&Ae<=57}function C(Ae){return D(Ae)||Ae>=65&&Ae<=70||Ae>=97&&Ae<=102}function m(Ae){return Ae<=1114111}function u(Ae){return Ae>=48&&Ae<=55}e.isOctalDigit=u;function g(Ae,Ye){var Dr=Ae.charCodeAt(Ye);switch(Dr){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 Ye===0;default:return Dr>127}}e.couldStartTrivia=g;function P(Ae,Ye,Dr,br,lr){if(e.positionIsSynthesized(Ye))return Ye;for(var Ar=!1;;){var kr=Ae.charCodeAt(Ye);switch(kr){case 13:Ae.charCodeAt(Ye+1)===10&&Ye++;case 10:if(Ye++,Dr)return Ye;Ar=!!lr;continue;case 9:case 11:case 12:case 32:Ye++;continue;case 47:if(br)break;if(Ae.charCodeAt(Ye+1)===47){for(Ye+=2;Ye<Ae.length&&!y(Ae.charCodeAt(Ye));)Ye++;Ar=!1;continue}if(Ae.charCodeAt(Ye+1)===42){for(Ye+=2;Ye<Ae.length;){if(Ae.charCodeAt(Ye)===42&&Ae.charCodeAt(Ye+1)===47){Ye+=2;break}Ye++}Ar=!1;continue}break;case 60:case 124:case 61:case 62:if(ue(Ae,Ye)){Ye=X(Ae,Ye),Ar=!1;continue}break;case 35:if(Ye===0&&Se(Ae,Ye)){Ye=Ce(Ae,Ye),Ar=!1;continue}break;case 42:if(Ar){Ye++,Ar=!1;continue}break;default:if(kr>127&&T(kr)){Ye++;continue}break}return Ye}}e.skipTrivia=P;var te=7;function ue(Ae,Ye){if(e.Debug.assert(Ye>=0),Ye===0||y(Ae.charCodeAt(Ye-1))){var Dr=Ae.charCodeAt(Ye);if(Ye+te<Ae.length){for(var br=0;br<te;br++)if(Ae.charCodeAt(Ye+br)!==Dr)return!1;return Dr===61||Ae.charCodeAt(Ye+te)===32}}return!1}function X(Ae,Ye,Dr){Dr&&Dr(e.Diagnostics.Merge_conflict_marker_encountered,Ye,te);var br=Ae.charCodeAt(Ye),lr=Ae.length;if(br===60||br===62)for(;Ye<lr&&!y(Ae.charCodeAt(Ye));)Ye++;else for(e.Debug.assert(br===124||br===61);Ye<lr;){var Ar=Ae.charCodeAt(Ye);if((Ar===61||Ar===62)&&Ar!==br&&ue(Ae,Ye))break;Ye++}return Ye}var j=/^#!.*/;function Se(Ae,Ye){return e.Debug.assert(Ye===0),j.test(Ae)}e.isShebangTrivia=Se;function Ce(Ae,Ye){var Dr=j.exec(Ae)[0];return Ye=Ye+Dr.length,Ye}e.scanShebangTrivia=Ce;function R(Ae,Ye,Dr,br,lr,Ar,kr){var Ke,Me,Hr,ur,gr=!1,de=br,Fe=kr;if(Dr===0){de=!0;var $e=Ie(Ye);$e&&(Dr=$e.length)}e:for(;Dr>=0&&Dr<Ye.length;){var Sr=Ye.charCodeAt(Dr);switch(Sr){case 13:Ye.charCodeAt(Dr+1)===10&&Dr++;case 10:if(Dr++,br)break e;de=!0,gr&&(ur=!0);continue;case 9:case 11:case 12:case 32:Dr++;continue;case 47:var Pr=Ye.charCodeAt(Dr+1),He=!1;if(Pr===47||Pr===42){var pr=Pr===47?2:3,Jr=Dr;if(Dr+=2,Pr===47)for(;Dr<Ye.length;){if(y(Ye.charCodeAt(Dr))){He=!0;break}Dr++}else for(;Dr<Ye.length;){if(Ye.charCodeAt(Dr)===42&&Ye.charCodeAt(Dr+1)===47){Dr+=2;break}Dr++}if(de){if(gr&&(Fe=lr(Ke,Me,Hr,ur,Ar,Fe),!Ae&&Fe))return Fe;Ke=Jr,Me=Dr,Hr=pr,ur=He,gr=!0}continue}break e;default:if(Sr>127&&T(Sr)){gr&&y(Sr)&&(ur=!0),Dr++;continue}break e}}return gr&&(Fe=lr(Ke,Me,Hr,ur,Ar,Fe)),Fe}function Y(Ae,Ye,Dr,br){return R(!1,Ae,Ye,!1,Dr,br)}e.forEachLeadingCommentRange=Y;function U(Ae,Ye,Dr,br){return R(!1,Ae,Ye,!0,Dr,br)}e.forEachTrailingCommentRange=U;function K(Ae,Ye,Dr,br,lr){return R(!0,Ae,Ye,!1,Dr,br,lr)}e.reduceEachLeadingCommentRange=K;function Te(Ae,Ye,Dr,br,lr){return R(!0,Ae,Ye,!0,Dr,br,lr)}e.reduceEachTrailingCommentRange=Te;function ge(Ae,Ye,Dr,br,lr,Ar){return Ar||(Ar=[]),Ar.push({kind:Dr,pos:Ae,end:Ye,hasTrailingNewLine:br}),Ar}function ke(Ae,Ye){return K(Ae,Ye,ge,void 0,void 0)}e.getLeadingCommentRanges=ke;function Pe(Ae,Ye){return Te(Ae,Ye,ge,void 0,void 0)}e.getTrailingCommentRanges=Pe;function Ie(Ae){var Ye=j.exec(Ae);if(Ye)return Ye[0]}e.getShebang=Ie;function Ge(Ae,Ye){return Ae>=65&&Ae<=90||Ae>=97&&Ae<=122||Ae===36||Ae===95||Ae>127&&S(Ae,Ye)}e.isIdentifierStart=Ge;function he(Ae,Ye,Dr){return Ae>=65&&Ae<=90||Ae>=97&&Ae<=122||Ae>=48&&Ae<=57||Ae===36||Ae===95||(Dr===1?Ae===45||Ae===58:!1)||Ae>127&&B(Ae,Ye)}e.isIdentifierPart=he;function ve(Ae,Ye,Dr){var br=_e(Ae,0);if(!Ge(br,Ye))return!1;for(var lr=Le(br);lr<Ae.length;lr+=Le(br))if(!he(br=_e(Ae,lr),Ye,Dr))return!1;return!0}e.isIdentifierText=ve;function Ve(Ae,Ye,Dr,br,lr,Ar,kr){Dr===void 0&&(Dr=0);var Ke=br,Me,Hr,ur,gr,de,Fe,$e,Sr,Pr=0;sa(Ke,Ar,kr);var He={getStartPos:function(){return ur},getTextPos:function(){return Me},getToken:function(){return de},getTokenPos:function(){return gr},getTokenText:function(){return Ke.substring(gr,Me)},getTokenValue:function(){return Fe},hasUnicodeEscape:function(){return($e&1024)!==0},hasExtendedUnicodeEscape:function(){return($e&8)!==0},hasPrecedingLineBreak:function(){return($e&1)!==0},hasPrecedingJSDocComment:function(){return($e&2)!==0},isIdentifier:function(){return de===79||de>116},isReservedWord:function(){return de>=81&&de<=116},isUnterminated:function(){return($e&4)!==0},getCommentDirectives:function(){return Sr},getNumericLiteralFlags:function(){return $e&1008},getTokenFlags:function(){return $e},reScanGreaterToken:Ne,reScanAsteriskEqualsToken:me,reScanSlashToken:Ze,reScanTemplateToken:dr,reScanTemplateHeadOrNoSubstitutionTemplate:et,scanJsxIdentifier:zr,scanJsxAttributeValue:gt,reScanJsxAttributeValue:vt,reScanJsxToken:yt,reScanLessThanToken:Vr,reScanHashToken:tr,reScanQuestionToken:xr,reScanInvalidIdentifier:We,scanJsxToken:Nr,scanJsDocToken:ut,scan:Ee,getText:mt,clearCommentDirectives:rn,setText:sa,setScriptTarget:Jn,setLanguageVariant:na,setOnError:ba,setTextPos:Wn,setInJSDocType:en,tryScan:Qt,lookAhead:wt,scanRange:xt};return e.Debug.isDebugging&&Object.defineProperty(He,"__debugShowCurrentPositionInText",{get:function(){var St=He.getText();return St.slice(0,He.getStartPos())+"║"+St.slice(He.getStartPos())}}),He;function pr(St,Ut,qt){if(Ut===void 0&&(Ut=Me),lr){var Mn=Me;Me=Ut,lr(St,qt||0),Me=Mn}}function Jr(){for(var St=Me,Ut=!1,qt=!1,Mn="";;){var dn=Ke.charCodeAt(Me);if(dn===95){$e|=512,Ut?(Ut=!1,qt=!0,Mn+=Ke.substring(St,Me)):pr(qt?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,Me,1),Me++,St=Me;continue}if(D(dn)){Ut=!0,qt=!1,Me++;continue}break}return Ke.charCodeAt(Me-1)===95&&pr(e.Diagnostics.Numeric_separators_are_not_allowed_here,Me-1,1),Mn+Ke.substring(St,Me)}function ze(){var St=Me,Ut=Jr(),qt,Mn;Ke.charCodeAt(Me)===46&&(Me++,qt=Jr());var dn=Me;if(Ke.charCodeAt(Me)===69||Ke.charCodeAt(Me)===101){Me++,$e|=16,(Ke.charCodeAt(Me)===43||Ke.charCodeAt(Me)===45)&&Me++;var oa=Me,pt=Jr();pt?(Mn=Ke.substring(dn,oa)+pt,dn=Me):pr(e.Diagnostics.Digit_expected)}var _t;if($e&512?(_t=Ut,qt&&(_t+="."+qt),Mn&&(_t+=Mn)):_t=Ke.substring(St,dn),qt!==void 0||$e&16)return Lr(St,qt===void 0&&!!($e&16)),{type:8,value:""+ +_t};Fe=_t;var Mt=je();return Lr(St),{type:Mt,value:Fe}}function Lr(St,Ut){if(Ge(_e(Ke,Me),Ae)){var qt=Me,Mn=ye().length;Mn===1&&Ke[qt]==="n"?pr(Ut?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,St,qt-St+1):(pr(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,qt,Mn),Me=qt)}}function Yr(){for(var St=Me;u(Ke.charCodeAt(Me));)Me++;return+Ke.substring(St,Me)}function lt(St,Ut){var qt=Rt(St,!1,Ut);return qt?parseInt(qt,16):-1}function tt(St,Ut){return Rt(St,!0,Ut)}function Rt(St,Ut,qt){for(var Mn=[],dn=!1,oa=!1;Mn.length<St||Ut;){var pt=Ke.charCodeAt(Me);if(qt&&pt===95){$e|=512,dn?(dn=!1,oa=!0):pr(oa?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,Me,1),Me++;continue}if(dn=qt,pt>=65&&pt<=70)pt+=97-65;else if(!(pt>=48&&pt<=57||pt>=97&&pt<=102))break;Mn.push(pt),Me++,oa=!1}return Mn.length<St&&(Mn=[]),Ke.charCodeAt(Me-1)===95&&pr(e.Diagnostics.Numeric_separators_are_not_allowed_here,Me-1,1),String.fromCharCode.apply(String,Mn)}function cn(St){St===void 0&&(St=!1);var Ut=Ke.charCodeAt(Me);Me++;for(var qt="",Mn=Me;;){if(Me>=Hr){qt+=Ke.substring(Mn,Me),$e|=4,pr(e.Diagnostics.Unterminated_string_literal);break}var dn=Ke.charCodeAt(Me);if(dn===Ut){qt+=Ke.substring(Mn,Me),Me++;break}if(dn===92&&!St){qt+=Ke.substring(Mn,Me),qt+=In(),Mn=Me;continue}if(y(dn)&&!St){qt+=Ke.substring(Mn,Me),$e|=4,pr(e.Diagnostics.Unterminated_string_literal);break}Me++}return qt}function bn(St){var Ut=Ke.charCodeAt(Me)===96;Me++;for(var qt=Me,Mn="",dn;;){if(Me>=Hr){Mn+=Ke.substring(qt,Me),$e|=4,pr(e.Diagnostics.Unterminated_template_literal),dn=Ut?14:17;break}var oa=Ke.charCodeAt(Me);if(oa===96){Mn+=Ke.substring(qt,Me),Me++,dn=Ut?14:17;break}if(oa===36&&Me+1<Hr&&Ke.charCodeAt(Me+1)===123){Mn+=Ke.substring(qt,Me),Me+=2,dn=Ut?15:16;break}if(oa===92){Mn+=Ke.substring(qt,Me),Mn+=In(St),qt=Me;continue}if(oa===13){Mn+=Ke.substring(qt,Me),Me++,Me<Hr&&Ke.charCodeAt(Me)===10&&Me++,Mn+=`
  21. `,qt=Me;continue}Me++}return e.Debug.assert(dn!==void 0),Fe=Mn,dn}function In(St){var Ut=Me;if(Me++,Me>=Hr)return pr(e.Diagnostics.Unexpected_end_of_text),"";var qt=Ke.charCodeAt(Me);switch(Me++,qt){case 48:return St&&Me<Hr&&D(Ke.charCodeAt(Me))?(Me++,$e|=2048,Ke.substring(Ut,Me)):"\0";case 98:return"\b";case 116:return" ";case 110:return`
  22. `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(St){for(var Mn=Me;Mn<Me+4;Mn++)if(Mn<Hr&&!C(Ke.charCodeAt(Mn))&&Ke.charCodeAt(Mn)!==123)return Me=Mn,$e|=2048,Ke.substring(Ut,Me)}if(Me<Hr&&Ke.charCodeAt(Me)===123){if(Me++,St&&!C(Ke.charCodeAt(Me)))return $e|=2048,Ke.substring(Ut,Me);if(St){var dn=Me,oa=tt(1,!1),pt=oa?parseInt(oa,16):-1;if(!m(pt)||Ke.charCodeAt(Me)!==125)return $e|=2048,Ke.substring(Ut,Me);Me=dn}return $e|=8,ir()}return $e|=1024,zn(4);case 120:if(St)if(C(Ke.charCodeAt(Me))){if(!C(Ke.charCodeAt(Me+1)))return Me++,$e|=2048,Ke.substring(Ut,Me)}else return $e|=2048,Ke.substring(Ut,Me);return zn(2);case 13:Me<Hr&&Ke.charCodeAt(Me)===10&&Me++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(qt)}}function zn(St){var Ut=lt(St,!1);return Ut>=0?String.fromCharCode(Ut):(pr(e.Diagnostics.Hexadecimal_digit_expected),"")}function ir(){var St=tt(1,!1),Ut=St?parseInt(St,16):-1,qt=!1;return Ut<0?(pr(e.Diagnostics.Hexadecimal_digit_expected),qt=!0):Ut>1114111&&(pr(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),qt=!0),Me>=Hr?(pr(e.Diagnostics.Unexpected_end_of_text),qt=!0):Ke.charCodeAt(Me)===125?Me++:(pr(e.Diagnostics.Unterminated_Unicode_escape_sequence),qt=!0),qt?"":De(Ut)}function Or(){if(Me+5<Hr&&Ke.charCodeAt(Me+1)===117){var St=Me;Me+=2;var Ut=lt(4,!1);return Me=St,Ut}return-1}function sr(){if(Ae>=2&&_e(Ke,Me+1)===117&&_e(Ke,Me+2)===123){var St=Me;Me+=3;var Ut=tt(1,!1),qt=Ut?parseInt(Ut,16):-1;return Me=St,qt}return-1}function ye(){for(var St="",Ut=Me;Me<Hr;){var qt=_e(Ke,Me);if(he(qt,Ae))Me+=Le(qt);else if(qt===92){if(qt=sr(),qt>=0&&he(qt,Ae)){Me+=3,$e|=8,St+=ir(),Ut=Me;continue}if(qt=Or(),!(qt>=0&&he(qt,Ae)))break;$e|=1024,St+=Ke.substring(Ut,Me),St+=De(qt),Me+=6,Ut=Me}else break}return St+=Ke.substring(Ut,Me),St}function or(){var St=Fe.length;if(St>=2&&St<=12){var Ut=Fe.charCodeAt(0);if(Ut>=97&&Ut<=122){var qt=a.get(Fe);if(qt!==void 0)return de=qt}}return de=79}function fe(St){for(var Ut="",qt=!1,Mn=!1;;){var dn=Ke.charCodeAt(Me);if(dn===95){$e|=512,qt?(qt=!1,Mn=!0):pr(Mn?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,Me,1),Me++;continue}if(qt=!0,!D(dn)||dn-48>=St)break;Ut+=Ke[Me],Me++,Mn=!1}return Ke.charCodeAt(Me-1)===95&&pr(e.Diagnostics.Numeric_separators_are_not_allowed_here,Me-1,1),Ut}function je(){if(Ke.charCodeAt(Me)===110)return Fe+="n",$e&384&&(Fe=e.parsePseudoBigInt(Fe)+"n"),Me++,9;var St=$e&128?parseInt(Fe.slice(2),2):$e&256?parseInt(Fe.slice(2),8):+Fe;return Fe=""+St,8}function Ee(){var St;ur=Me,$e=0;for(var Ut=!1;;){if(gr=Me,Me>=Hr)return de=1;var qt=_e(Ke,Me);if(qt===35&&Me===0&&Se(Ke,Me)){if(Me=Ce(Ke,Me),Ye)continue;return de=6}switch(qt){case 10:case 13:if($e|=1,Ye){Me++;continue}else return qt===13&&Me+1<Hr&&Ke.charCodeAt(Me+1)===10?Me+=2:Me++,de=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(Ye){Me++;continue}else{for(;Me<Hr&&N(Ke.charCodeAt(Me));)Me++;return de=5}case 33:return Ke.charCodeAt(Me+1)===61?Ke.charCodeAt(Me+2)===61?(Me+=3,de=37):(Me+=2,de=35):(Me++,de=53);case 34:case 39:return Fe=cn(),de=10;case 96:return de=bn(!1);case 37:return Ke.charCodeAt(Me+1)===61?(Me+=2,de=69):(Me++,de=44);case 38:return Ke.charCodeAt(Me+1)===38?Ke.charCodeAt(Me+2)===61?(Me+=3,de=76):(Me+=2,de=55):Ke.charCodeAt(Me+1)===61?(Me+=2,de=73):(Me++,de=50);case 40:return Me++,de=20;case 41:return Me++,de=21;case 42:if(Ke.charCodeAt(Me+1)===61)return Me+=2,de=66;if(Ke.charCodeAt(Me+1)===42)return Ke.charCodeAt(Me+2)===61?(Me+=3,de=67):(Me+=2,de=42);if(Me++,Pr&&!Ut&&$e&1){Ut=!0;continue}return de=41;case 43:return Ke.charCodeAt(Me+1)===43?(Me+=2,de=45):Ke.charCodeAt(Me+1)===61?(Me+=2,de=64):(Me++,de=39);case 44:return Me++,de=27;case 45:return Ke.charCodeAt(Me+1)===45?(Me+=2,de=46):Ke.charCodeAt(Me+1)===61?(Me+=2,de=65):(Me++,de=40);case 46:return D(Ke.charCodeAt(Me+1))?(Fe=ze().value,de=8):Ke.charCodeAt(Me+1)===46&&Ke.charCodeAt(Me+2)===46?(Me+=3,de=25):(Me++,de=24);case 47:if(Ke.charCodeAt(Me+1)===47){for(Me+=2;Me<Hr&&!y(Ke.charCodeAt(Me));)Me++;if(Sr=Cr(Sr,Ke.slice(gr,Me),ie,gr),Ye)continue;return de=2}if(Ke.charCodeAt(Me+1)===42){Me+=2,Ke.charCodeAt(Me)===42&&Ke.charCodeAt(Me+1)!==47&&($e|=2);for(var Mn=!1,dn=gr;Me<Hr;){var oa=Ke.charCodeAt(Me);if(oa===42&&Ke.charCodeAt(Me+1)===47){Me+=2,Mn=!0;break}Me++,y(oa)&&(dn=Me,$e|=1)}if(Sr=Cr(Sr,Ke.slice(dn,Me),b,dn),Mn||pr(e.Diagnostics.Asterisk_Slash_expected),Ye)continue;return Mn||($e|=4),de=3}return Ke.charCodeAt(Me+1)===61?(Me+=2,de=68):(Me++,de=43);case 48:if(Me+2<Hr&&(Ke.charCodeAt(Me+1)===88||Ke.charCodeAt(Me+1)===120))return Me+=2,Fe=tt(1,!0),Fe||(pr(e.Diagnostics.Hexadecimal_digit_expected),Fe="0"),Fe="0x"+Fe,$e|=64,de=je();if(Me+2<Hr&&(Ke.charCodeAt(Me+1)===66||Ke.charCodeAt(Me+1)===98))return Me+=2,Fe=fe(2),Fe||(pr(e.Diagnostics.Binary_digit_expected),Fe="0"),Fe="0b"+Fe,$e|=128,de=je();if(Me+2<Hr&&(Ke.charCodeAt(Me+1)===79||Ke.charCodeAt(Me+1)===111))return Me+=2,Fe=fe(8),Fe||(pr(e.Diagnostics.Octal_digit_expected),Fe="0"),Fe="0o"+Fe,$e|=256,de=je();if(Me+1<Hr&&u(Ke.charCodeAt(Me+1)))return Fe=""+Yr(),$e|=32,de=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return St=ze(),de=St.type,Fe=St.value,de;case 58:return Me++,de=58;case 59:return Me++,de=26;case 60:if(ue(Ke,Me)){if(Me=X(Ke,Me,pr),Ye)continue;return de=7}return Ke.charCodeAt(Me+1)===60?Ke.charCodeAt(Me+2)===61?(Me+=3,de=70):(Me+=2,de=47):Ke.charCodeAt(Me+1)===61?(Me+=2,de=32):Dr===1&&Ke.charCodeAt(Me+1)===47&&Ke.charCodeAt(Me+2)!==42?(Me+=2,de=30):(Me++,de=29);case 61:if(ue(Ke,Me)){if(Me=X(Ke,Me,pr),Ye)continue;return de=7}return Ke.charCodeAt(Me+1)===61?Ke.charCodeAt(Me+2)===61?(Me+=3,de=36):(Me+=2,de=34):Ke.charCodeAt(Me+1)===62?(Me+=2,de=38):(Me++,de=63);case 62:if(ue(Ke,Me)){if(Me=X(Ke,Me,pr),Ye)continue;return de=7}return Me++,de=31;case 63:return Ke.charCodeAt(Me+1)===46&&!D(Ke.charCodeAt(Me+2))?(Me+=2,de=28):Ke.charCodeAt(Me+1)===63?Ke.charCodeAt(Me+2)===61?(Me+=3,de=77):(Me+=2,de=60):(Me++,de=57);case 91:return Me++,de=22;case 93:return Me++,de=23;case 94:return Ke.charCodeAt(Me+1)===61?(Me+=2,de=78):(Me++,de=52);case 123:return Me++,de=18;case 124:if(ue(Ke,Me)){if(Me=X(Ke,Me,pr),Ye)continue;return de=7}return Ke.charCodeAt(Me+1)===124?Ke.charCodeAt(Me+2)===61?(Me+=3,de=75):(Me+=2,de=56):Ke.charCodeAt(Me+1)===61?(Me+=2,de=74):(Me++,de=51);case 125:return Me++,de=19;case 126:return Me++,de=54;case 64:return Me++,de=59;case 92:var pt=sr();if(pt>=0&&Ge(pt,Ae))return Me+=3,$e|=8,Fe=ir()+ye(),de=or();var _t=Or();return _t>=0&&Ge(_t,Ae)?(Me+=6,$e|=1024,Fe=String.fromCharCode(_t)+ye(),de=or()):(pr(e.Diagnostics.Invalid_character),Me++,de=0);case 35:return Me!==0&&Ke[Me+1]==="!"?(pr(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),Me++,de=0):(Ge(_e(Ke,Me+1),Ae)?(Me++,$(_e(Ke,Me),Ae)):(Fe=String.fromCharCode(_e(Ke,Me)),pr(e.Diagnostics.Invalid_character,Me++,Le(qt))),de=80);default:var Mt=$(qt,Ae);if(Mt)return de=Mt;if(N(qt)){Me+=Le(qt);continue}else if(y(qt)){$e|=1,Me+=Le(qt);continue}var It=Le(qt);return pr(e.Diagnostics.Invalid_character,Me,It),Me+=It,de=0}}}function We(){e.Debug.assert(de===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),Me=gr=ur,$e=0;var St=_e(Ke,Me),Ut=$(St,99);return Ut?de=Ut:(Me+=Le(St),de)}function $(St,Ut){var qt=St;if(Ge(qt,Ut)){for(Me+=Le(qt);Me<Hr&&he(qt=_e(Ke,Me),Ut);)Me+=Le(qt);return Fe=Ke.substring(gr,Me),qt===92&&(Fe+=ye()),or()}}function Ne(){if(de===31){if(Ke.charCodeAt(Me)===62)return Ke.charCodeAt(Me+1)===62?Ke.charCodeAt(Me+2)===61?(Me+=3,de=72):(Me+=2,de=49):Ke.charCodeAt(Me+1)===61?(Me+=2,de=71):(Me++,de=48);if(Ke.charCodeAt(Me)===61)return Me++,de=33}return de}function me(){return e.Debug.assert(de===66,"'reScanAsteriskEqualsToken' should only be called on a '*='"),Me=gr+1,de=63}function Ze(){if(de===43||de===68){for(var St=gr+1,Ut=!1,qt=!1;;){if(St>=Hr){$e|=4,pr(e.Diagnostics.Unterminated_regular_expression_literal);break}var Mn=Ke.charCodeAt(St);if(y(Mn)){$e|=4,pr(e.Diagnostics.Unterminated_regular_expression_literal);break}if(Ut)Ut=!1;else if(Mn===47&&!qt){St++;break}else Mn===91?qt=!0:Mn===92?Ut=!0:Mn===93&&(qt=!1);St++}for(;St<Hr&&he(Ke.charCodeAt(St),Ae);)St++;Me=St,Fe=Ke.substring(gr,Me),de=13}return de}function Cr(St,Ut,qt,Mn){var dn=fr(e.trimStringStart(Ut),qt);return dn===void 0?St:e.append(St,{range:{pos:Mn,end:Me},type:dn})}function fr(St,Ut){var qt=Ut.exec(St);if(qt)switch(qt[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function dr(St){return e.Debug.assert(de===19,"'reScanTemplateToken' should only be called on a '}'"),Me=gr,de=bn(St)}function et(){return Me=gr,de=bn(!0)}function yt(St){return St===void 0&&(St=!0),Me=gr=ur,de=Nr(St)}function Vr(){return de===47?(Me=gr+1,de=29):de}function tr(){return de===80?(Me=gr+1,de=62):de}function xr(){return e.Debug.assert(de===60,"'reScanQuestionToken' should only be called on a '??'"),Me=gr+1,de=57}function Nr(St){if(St===void 0&&(St=!0),ur=gr=Me,Me>=Hr)return de=1;var Ut=Ke.charCodeAt(Me);if(Ut===60)return Ke.charCodeAt(Me+1)===47?(Me+=2,de=30):(Me++,de=29);if(Ut===123)return Me++,de=18;for(var qt=0;Me<Hr&&(Ut=Ke.charCodeAt(Me),Ut!==123);){if(Ut===60){if(ue(Ke,Me))return Me=X(Ke,Me,pr),de=7;break}if(Ut===62&&pr(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,Me,1),Ut===125&&pr(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,Me,1),y(Ut)&&qt===0)qt=-1;else{if(!St&&y(Ut)&&qt>0)break;T(Ut)||(qt=Me)}Me++}return Fe=Ke.substring(ur,Me),qt===-1?12:11}function zr(){if(f(de)){for(var St=!1;Me<Hr;){var Ut=Ke.charCodeAt(Me);if(Ut===45){Fe+="-",Me++;continue}else if(Ut===58&&!St){Fe+=":",Me++,St=!0,de=79;continue}var qt=Me;if(Fe+=ye(),Me===qt)break}Fe.slice(-1)===":"&&(Fe=Fe.slice(0,-1),Me--)}return de}function gt(){switch(ur=Me,Ke.charCodeAt(Me)){case 34:case 39:return Fe=cn(!0),de=10;default:return Ee()}}function vt(){return Me=gr=ur,gt()}function ut(){if(ur=gr=Me,$e=0,Me>=Hr)return de=1;var St=_e(Ke,Me);switch(Me+=Le(St),St){case 9:case 11:case 12:case 32:for(;Me<Hr&&N(Ke.charCodeAt(Me));)Me++;return de=5;case 64:return de=59;case 13:Ke.charCodeAt(Me)===10&&Me++;case 10:return $e|=1,de=4;case 42:return de=41;case 123:return de=18;case 125:return de=19;case 91:return de=22;case 93:return de=23;case 60:return de=29;case 62:return de=31;case 61:return de=63;case 44:return de=27;case 46:return de=24;case 96:return de=61;case 35:return de=62;case 92:Me--;var Ut=sr();if(Ut>=0&&Ge(Ut,Ae))return Me+=3,$e|=8,Fe=ir()+ye(),de=or();var qt=Or();return qt>=0&&Ge(qt,Ae)?(Me+=6,$e|=1024,Fe=String.fromCharCode(qt)+ye(),de=or()):(Me++,de=0)}if(Ge(St,Ae)){for(var Mn=St;Me<Hr&&he(Mn=_e(Ke,Me),Ae)||Ke.charCodeAt(Me)===45;)Me+=Le(Mn);return Fe=Ke.substring(gr,Me),Mn===92&&(Fe+=ye()),de=or()}else return de=0}function ht(St,Ut){var qt=Me,Mn=ur,dn=gr,oa=de,pt=Fe,_t=$e,Mt=St();return(!Mt||Ut)&&(Me=qt,ur=Mn,gr=dn,de=oa,Fe=pt,$e=_t),Mt}function xt(St,Ut,qt){var Mn=Hr,dn=Me,oa=ur,pt=gr,_t=de,Mt=Fe,It=$e,rt=Sr;sa(Ke,St,Ut);var Cn=qt();return Hr=Mn,Me=dn,ur=oa,gr=pt,de=_t,Fe=Mt,$e=It,Sr=rt,Cn}function wt(St){return ht(St,!0)}function Qt(St){return ht(St,!1)}function mt(){return Ke}function rn(){Sr=void 0}function sa(St,Ut,qt){Ke=St||"",Hr=qt===void 0?Ke.length:Ut+qt,Wn(Ut||0)}function ba(St){lr=St}function Jn(St){Ae=St}function na(St){Dr=St}function Wn(St){e.Debug.assert(St>=0),Me=St,ur=St,gr=St,de=0,Fe=void 0,$e=0}function en(St){Pr+=St?1:-1}}e.createScanner=Ve;var _e=String.prototype.codePointAt?function(Ae,Ye){return Ae.codePointAt(Ye)}:function(Ye,Dr){var br=Ye.length;if(!(Dr<0||Dr>=br)){var lr=Ye.charCodeAt(Dr);if(lr>=55296&&lr<=56319&&br>Dr+1){var Ar=Ye.charCodeAt(Dr+1);if(Ar>=56320&&Ar<=57343)return(lr-55296)*1024+Ar-56320+65536}return lr}};function Le(Ae){return Ae>=65536?2:1}function qe(Ae){if(e.Debug.assert(0<=Ae&&Ae<=1114111),Ae<=65535)return String.fromCharCode(Ae);var Ye=Math.floor((Ae-65536)/1024)+55296,Dr=(Ae-65536)%1024+56320;return String.fromCharCode(Ye,Dr)}var Xe=String.fromCodePoint?function(Ae){return String.fromCodePoint(Ae)}:qe;function De(Ae){return Xe(Ae)}e.utf16EncodeAsString=De}(jr||(jr={})),function(e){function n(Re){return e.pathIsRelative(Re)||e.isRootedDiskPath(Re)}e.isExternalModuleNameRelative=n;function f(Re){return e.sortAndDeduplicate(Re,e.compareDiagnostics)}e.sortAndDeduplicateDiagnostics=f;function p(Re){switch(e.getEmitScriptTarget(Re)){case 99:return"lib.esnext.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"}}e.getDefaultLibFileName=p;function a(Re){return Re.start+Re.length}e.textSpanEnd=a;function d(Re){return Re.length===0}e.textSpanIsEmpty=d;function k(Re,Qr){return Qr>=Re.start&&Qr<a(Re)}e.textSpanContainsPosition=k;function J(Re,Qr){return Qr>=Re.pos&&Qr<=Re.end}e.textRangeContainsPositionInclusive=J;function h(Re,Qr){return Qr.start>=Re.start&&a(Qr)<=a(Re)}e.textSpanContainsTextSpan=h;function v(Re,Qr){return A(Re,Qr)!==void 0}e.textSpanOverlapsWith=v;function A(Re,Qr){var vn=S(Re,Qr);return vn&&vn.length===0?void 0:vn}e.textSpanOverlap=A;function z(Re,Qr){return b(Re.start,Re.length,Qr.start,Qr.length)}e.textSpanIntersectsWithTextSpan=z;function ie(Re,Qr,vn){return b(Re.start,Re.length,Qr,vn)}e.textSpanIntersectsWith=ie;function b(Re,Qr,vn,Xn){var gi=Re+Qr,Ia=vn+Xn;return vn<=gi&&Ia>=Re}e.decodedTextSpanIntersectsWith=b;function M(Re,Qr){return Qr<=a(Re)&&Qr>=Re.start}e.textSpanIntersectsWithPosition=M;function S(Re,Qr){var vn=Math.max(Re.start,Qr.start),Xn=Math.min(a(Re),a(Qr));return vn<=Xn?H(vn,Xn):void 0}e.textSpanIntersection=S;function B(Re,Qr){if(Re<0)throw new Error("start < 0");if(Qr<0)throw new Error("length < 0");return{start:Re,length:Qr}}e.createTextSpan=B;function H(Re,Qr){return B(Re,Qr-Re)}e.createTextSpanFromBounds=H;function I(Re){return B(Re.span.start,Re.newLength)}e.textChangeRangeNewSpan=I;function w(Re){return d(Re.span)&&Re.newLength===0}e.textChangeRangeIsUnchanged=w;function x(Re,Qr){if(Qr<0)throw new Error("newLength < 0");return{span:Re,newLength:Qr}}e.createTextChangeRange=x,e.unchangedTextChangeRange=x(B(0,0),0);function O(Re){if(Re.length===0)return e.unchangedTextChangeRange;if(Re.length===1)return Re[0];for(var Qr=Re[0],vn=Qr.span.start,Xn=a(Qr.span),gi=vn+Qr.newLength,Ia=1;Ia<Re.length;Ia++){var oo=Re[Ia],Wo=vn,Ir=Xn,Us=gi,il=oo.span.start,Ml=a(oo.span),Co=il+oo.newLength;vn=Math.min(Wo,il),Xn=Math.max(Ir,Ir+(Ml-Us)),gi=Math.max(Co,Co+(Us-Ml))}return x(H(vn,Xn),gi-vn)}e.collapseTextChangeRangesAcrossMultipleVersions=O;function q(Re){if(Re&&Re.kind===162){for(var Qr=Re;Qr;Qr=Qr.parent)if(na(Qr)||oa(Qr)||Qr.kind===257)return Qr}}e.getTypeParameterOwner=q;function Z(Re,Qr){return e.hasSyntacticModifier(Re,16476)&&Qr.kind===170}e.isParameterPropertyDeclaration=Z;function ne(Re){return Ra(Re)?e.every(Re.elements,F):!1}e.isEmptyBindingPattern=ne;function F(Re){return e.isOmittedExpression(Re)?!0:ne(Re.name)}e.isEmptyBindingElement=F;function Q(Re){for(var Qr=Re.parent;e.isBindingElement(Qr.parent);)Qr=Qr.parent.parent;return Qr.parent}e.walkUpBindingElementsAndPatterns=Q;function V(Re,Qr){e.isBindingElement(Re)&&(Re=Q(Re));var vn=Qr(Re);return Re.kind===253&&(Re=Re.parent),Re&&Re.kind===254&&(vn|=Qr(Re),Re=Re.parent),Re&&Re.kind===236&&(vn|=Qr(Re)),vn}function re(Re){return V(Re,e.getEffectiveModifierFlags)}e.getCombinedModifierFlags=re;function T(Re){return V(Re,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc)}e.getCombinedNodeFlagsAlwaysIncludeJSDoc=T;function N(Re){return V(Re,function(Qr){return Qr.flags})}e.getCombinedNodeFlags=N,e.supportedLocaleDirectories=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"];function y(Re,Qr,vn){var Xn=Re.toLowerCase(),gi=/^([a-z]+)([_\-]([a-z]+))?$/.exec(Xn);if(!gi){vn&&vn.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}var Ia=gi[1],oo=gi[3];e.contains(e.supportedLocaleDirectories,Xn)&&!Wo(Ia,oo,vn)&&Wo(Ia,void 0,vn),e.setUILocale(Re);function Wo(Ir,Us,il){var Ml=e.normalizePath(Qr.getExecutingFilePath()),Co=e.getDirectoryPath(Ml),Vs=e.combinePaths(Co,Ir);if(Us&&(Vs=Vs+"-"+Us),Vs=Qr.resolvePath(e.combinePaths(Vs,"diagnosticMessages.generated.json")),!Qr.fileExists(Vs))return!1;var Ql="";try{Ql=Qr.readFile(Vs)}catch{return il&&il.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,Vs)),!1}try{e.setLocalizedDiagnosticMessages(JSON.parse(Ql))}catch{return il&&il.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,Vs)),!1}return!0}}e.validateLocaleAndSetLanguage=y;function D(Re,Qr){if(Re)for(;Re.original!==void 0;)Re=Re.original;return!Qr||Qr(Re)?Re:void 0}e.getOriginalNode=D;function C(Re,Qr){for(;Re;){var vn=Qr(Re);if(vn==="quit")return;if(vn)return Re;Re=Re.parent}}e.findAncestor=C;function m(Re){return(Re.flags&8)===0}e.isParseTreeNode=m;function u(Re,Qr){if(Re===void 0||m(Re))return Re;for(Re=Re.original;Re;){if(m(Re))return!Qr||Qr(Re)?Re:void 0;Re=Re.original}}e.getParseTreeNode=u;function g(Re){return Re.length>=2&&Re.charCodeAt(0)===95&&Re.charCodeAt(1)===95?"_"+Re:Re}e.escapeLeadingUnderscores=g;function P(Re){var Qr=Re;return Qr.length>=3&&Qr.charCodeAt(0)===95&&Qr.charCodeAt(1)===95&&Qr.charCodeAt(2)===95?Qr.substr(1):Qr}e.unescapeLeadingUnderscores=P;function te(Re){return P(Re.escapedText)}e.idText=te;function ue(Re){return Re.valueDeclaration&&ht(Re.valueDeclaration)?te(Re.valueDeclaration.name):P(Re.escapedName)}e.symbolName=ue;function X(Re){var Qr=Re.parent.parent;if(Qr){if(Dt(Qr))return j(Qr);switch(Qr.kind){case 236:if(Qr.declarationList&&Qr.declarationList.declarations[0])return j(Qr.declarationList.declarations[0]);break;case 237:var vn=Qr.expression;switch(vn.kind===220&&vn.operatorToken.kind===63&&(vn=vn.left),vn.kind){case 205:return vn.name;case 206:var Xn=vn.argumentExpression;if(e.isIdentifier(Xn))return Xn}break;case 211:return j(Qr.expression);case 249:{if(Dt(Qr.statement)||za(Qr.statement))return j(Qr.statement);break}}}}function j(Re){var Qr=U(Re);return Qr&&e.isIdentifier(Qr)?Qr:void 0}function Se(Re,Qr){return!!(R(Re)&&e.isIdentifier(Re.name)&&te(Re.name)===te(Qr)||e.isVariableStatement(Re)&&e.some(Re.declarationList.declarations,function(vn){return Se(vn,Qr)}))}e.nodeHasName=Se;function Ce(Re){return Re.name||X(Re)}e.getNameOfJSDocTypedef=Ce;function R(Re){return!!Re.name}e.isNamedDeclaration=R;function Y(Re){switch(Re.kind){case 79:return Re;case 345:case 338:{var Qr=Re.name;if(Qr.kind===160)return Qr.right;break}case 207:case 220:{var vn=Re;switch(e.getAssignmentDeclarationKind(vn)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(vn.left);case 7:case 8:case 9:return vn.arguments[1];default:return}}case 343:return Ce(Re);case 337:return X(Re);case 270:{var Xn=Re.expression;return e.isIdentifier(Xn)?Xn:void 0}case 206:var gi=Re;if(e.isBindableStaticElementAccessExpression(gi))return gi.argumentExpression}return Re.name}e.getNonAssignedNameOfDeclaration=Y;function U(Re){if(Re!==void 0)return Y(Re)||(e.isFunctionExpression(Re)||e.isArrowFunction(Re)||e.isClassExpression(Re)?K(Re):void 0)}e.getNameOfDeclaration=U;function K(Re){if(Re.parent){if(e.isPropertyAssignment(Re.parent)||e.isBindingElement(Re.parent))return Re.parent.name;if(e.isBinaryExpression(Re.parent)&&Re===Re.parent.right){if(e.isIdentifier(Re.parent.left))return Re.parent.left;if(e.isAccessExpression(Re.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(Re.parent.left)}else if(e.isVariableDeclaration(Re.parent)&&e.isIdentifier(Re.parent.name))return Re.parent.name}else return}e.getAssignedName=K;function Te(Re,Qr){if(Re.name)if(e.isIdentifier(Re.name)){var vn=Re.name.escapedText;return $e(Re.parent,Qr).filter(function(Ia){return e.isJSDocParameterTag(Ia)&&e.isIdentifier(Ia.name)&&Ia.name.escapedText===vn})}else{var Xn=Re.parent.parameters.indexOf(Re);e.Debug.assert(Xn>-1,"Parameters should always be in their parents' parameter list");var gi=$e(Re.parent,Qr).filter(e.isJSDocParameterTag);if(Xn<gi.length)return[gi[Xn]]}return e.emptyArray}function ge(Re){return Te(Re,!1)}e.getJSDocParameterTags=ge;function ke(Re){return Te(Re,!0)}e.getJSDocParameterTagsNoCache=ke;function Pe(Re,Qr){var vn=Re.name.escapedText;return $e(Re.parent,Qr).filter(function(Xn){return e.isJSDocTemplateTag(Xn)&&Xn.typeParameters.some(function(gi){return gi.name.escapedText===vn})})}function Ie(Re){return Pe(Re,!1)}e.getJSDocTypeParameterTags=Ie;function Ge(Re){return Pe(Re,!0)}e.getJSDocTypeParameterTagsNoCache=Ge;function he(Re){return!!He(Re,e.isJSDocParameterTag)}e.hasJSDocParameterTags=he;function ve(Re){return He(Re,e.isJSDocAugmentsTag)}e.getJSDocAugmentsTag=ve;function Ve(Re){return pr(Re,e.isJSDocImplementsTag)}e.getJSDocImplementsTags=Ve;function _e(Re){return He(Re,e.isJSDocClassTag)}e.getJSDocClassTag=_e;function Le(Re){return He(Re,e.isJSDocPublicTag)}e.getJSDocPublicTag=Le;function qe(Re){return He(Re,e.isJSDocPublicTag,!0)}e.getJSDocPublicTagNoCache=qe;function Xe(Re){return He(Re,e.isJSDocPrivateTag)}e.getJSDocPrivateTag=Xe;function De(Re){return He(Re,e.isJSDocPrivateTag,!0)}e.getJSDocPrivateTagNoCache=De;function Ae(Re){return He(Re,e.isJSDocProtectedTag)}e.getJSDocProtectedTag=Ae;function Ye(Re){return He(Re,e.isJSDocProtectedTag,!0)}e.getJSDocProtectedTagNoCache=Ye;function Dr(Re){return He(Re,e.isJSDocReadonlyTag)}e.getJSDocReadonlyTag=Dr;function br(Re){return He(Re,e.isJSDocReadonlyTag,!0)}e.getJSDocReadonlyTagNoCache=br;function lr(Re){return He(Re,e.isJSDocOverrideTag,!0)}e.getJSDocOverrideTagNoCache=lr;function Ar(Re){return He(Re,e.isJSDocDeprecatedTag)}e.getJSDocDeprecatedTag=Ar;function kr(Re){return He(Re,e.isJSDocDeprecatedTag,!0)}e.getJSDocDeprecatedTagNoCache=kr;function Ke(Re){return He(Re,e.isJSDocEnumTag)}e.getJSDocEnumTag=Ke;function Me(Re){return He(Re,e.isJSDocThisTag)}e.getJSDocThisTag=Me;function Hr(Re){return He(Re,e.isJSDocReturnTag)}e.getJSDocReturnTag=Hr;function ur(Re){return He(Re,e.isJSDocTemplateTag)}e.getJSDocTemplateTag=ur;function gr(Re){var Qr=He(Re,e.isJSDocTypeTag);if(Qr&&Qr.typeExpression&&Qr.typeExpression.type)return Qr}e.getJSDocTypeTag=gr;function de(Re){var Qr=He(Re,e.isJSDocTypeTag);return!Qr&&e.isParameter(Re)&&(Qr=e.find(ge(Re),function(vn){return!!vn.typeExpression})),Qr&&Qr.typeExpression&&Qr.typeExpression.type}e.getJSDocType=de;function Fe(Re){var Qr=Hr(Re);if(Qr&&Qr.typeExpression)return Qr.typeExpression.type;var vn=gr(Re);if(vn&&vn.typeExpression){var Xn=vn.typeExpression.type;if(e.isTypeLiteralNode(Xn)){var gi=e.find(Xn.members,e.isCallSignatureDeclaration);return gi&&gi.type}if(e.isFunctionTypeNode(Xn)||e.isJSDocFunctionType(Xn))return Xn.type}}e.getJSDocReturnType=Fe;function $e(Re,Qr){var vn=Re.jsDocCache;if(vn===void 0||Qr){var Xn=e.getJSDocCommentsAndTags(Re,Qr);e.Debug.assert(Xn.length<2||Xn[0]!==Xn[1]),vn=e.flatMap(Xn,function(gi){return e.isJSDoc(gi)?gi.tags:gi}),Qr||(Re.jsDocCache=vn)}return vn}function Sr(Re){return $e(Re,!1)}e.getJSDocTags=Sr;function Pr(Re){return $e(Re,!0)}e.getJSDocTagsNoCache=Pr;function He(Re,Qr,vn){return e.find($e(Re,vn),Qr)}function pr(Re,Qr){return Sr(Re).filter(Qr)}e.getAllJSDocTags=pr;function Jr(Re,Qr){return Sr(Re).filter(function(vn){return vn.kind===Qr})}e.getAllJSDocTagsOfKind=Jr;function ze(Re){return typeof Re=="string"?Re:Re==null?void 0:Re.map(function(Qr){return Qr.kind===319?Qr.text:"{@link ".concat(Qr.name?e.entityNameToString(Qr.name)+" ":"").concat(Qr.text,"}")}).join("")}e.getTextOfJSDocComment=ze;function Lr(Re){if(e.isJSDocSignature(Re))return e.emptyArray;if(e.isJSDocTypeAlias(Re))return e.Debug.assert(Re.parent.kind===318),e.flatMap(Re.parent.tags,function(Xn){return e.isJSDocTemplateTag(Xn)?Xn.typeParameters:void 0});if(Re.typeParameters)return Re.typeParameters;if(e.isInJSFile(Re)){var Qr=e.getJSDocTypeParameterDeclarations(Re);if(Qr.length)return Qr;var vn=de(Re);if(vn&&e.isFunctionTypeNode(vn)&&vn.typeParameters)return vn.typeParameters}return e.emptyArray}e.getEffectiveTypeParameterDeclarations=Lr;function Yr(Re){return Re.constraint?Re.constraint:e.isJSDocTemplateTag(Re.parent)&&Re===Re.parent.typeParameters[0]?Re.parent.constraint:void 0}e.getEffectiveConstraintOfTypeParameter=Yr;function lt(Re){return Re.kind===79||Re.kind===80}e.isMemberName=lt;function tt(Re){return Re.kind===172||Re.kind===171}e.isGetOrSetAccessorDeclaration=tt;function Rt(Re){return e.isPropertyAccessExpression(Re)&&!!(Re.flags&32)}e.isPropertyAccessChain=Rt;function cn(Re){return e.isElementAccessExpression(Re)&&!!(Re.flags&32)}e.isElementAccessChain=cn;function bn(Re){return e.isCallExpression(Re)&&!!(Re.flags&32)}e.isCallChain=bn;function In(Re){var Qr=Re.kind;return!!(Re.flags&32)&&(Qr===205||Qr===206||Qr===207||Qr===229)}e.isOptionalChain=In;function zn(Re){return In(Re)&&!e.isNonNullExpression(Re)&&!!Re.questionDotToken}e.isOptionalChainRoot=zn;function ir(Re){return zn(Re.parent)&&Re.parent.expression===Re}e.isExpressionOfOptionalChainRoot=ir;function Or(Re){return!In(Re.parent)||zn(Re.parent)||Re!==Re.parent.expression}e.isOutermostOptionalChain=Or;function sr(Re){return Re.kind===220&&Re.operatorToken.kind===60}e.isNullishCoalesce=sr;function ye(Re){return e.isTypeReferenceNode(Re)&&e.isIdentifier(Re.typeName)&&Re.typeName.escapedText==="const"&&!Re.typeArguments}e.isConstTypeReference=ye;function or(Re){return e.skipOuterExpressions(Re,8)}e.skipPartiallyEmittedExpressions=or;function fe(Re){return e.isNonNullExpression(Re)&&!!(Re.flags&32)}e.isNonNullChain=fe;function je(Re){return Re.kind===245||Re.kind===244}e.isBreakOrContinueStatement=je;function Ee(Re){return Re.kind===273||Re.kind===272}e.isNamedExportBindings=Ee;function We(Re){switch(Re.kind){case 300:case 301:return!0;default:return!1}}e.isUnparsedTextLike=We;function $(Re){return We(Re)||Re.kind===298||Re.kind===302}e.isUnparsedNode=$;function Ne(Re){return Re.kind===345||Re.kind===338}e.isJSDocPropertyLikeTag=Ne;function me(Re){return Ze(Re.kind)}e.isNode=me;function Ze(Re){return Re>=160}e.isNodeKind=Ze;function Cr(Re){return Re>=0&&Re<=159}e.isTokenKind=Cr;function fr(Re){return Cr(Re.kind)}e.isToken=fr;function dr(Re){return Re.hasOwnProperty("pos")&&Re.hasOwnProperty("end")}e.isNodeArray=dr;function et(Re){return 8<=Re&&Re<=14}e.isLiteralKind=et;function yt(Re){return et(Re.kind)}e.isLiteralExpression=yt;function Vr(Re){return 14<=Re&&Re<=17}e.isTemplateLiteralKind=Vr;function tr(Re){return Vr(Re.kind)}e.isTemplateLiteralToken=tr;function xr(Re){var Qr=Re.kind;return Qr===16||Qr===17}e.isTemplateMiddleOrTemplateTail=xr;function Nr(Re){return e.isImportSpecifier(Re)||e.isExportSpecifier(Re)}e.isImportOrExportSpecifier=Nr;function zr(Re){switch(Re.kind){case 269:case 274:return Re.isTypeOnly||Re.parent.parent.isTypeOnly;case 267:return Re.parent.isTypeOnly;case 266:case 264:return Re.isTypeOnly;default:return!1}}e.isTypeOnlyImportOrExportDeclaration=zr;function gt(Re){return e.isStringLiteral(Re)||e.isIdentifier(Re)}e.isAssertionKey=gt;function vt(Re){return Re.kind===10||Vr(Re.kind)}e.isStringTextContainingNode=vt;function ut(Re){return e.isIdentifier(Re)&&(Re.autoGenerateFlags&7)>0}e.isGeneratedIdentifier=ut;function ht(Re){return(e.isPropertyDeclaration(Re)||_t(Re))&&e.isPrivateIdentifier(Re.name)}e.isPrivateIdentifierClassElementDeclaration=ht;function xt(Re){return e.isPropertyAccessExpression(Re)&&e.isPrivateIdentifier(Re.name)}e.isPrivateIdentifierPropertyAccessExpression=xt;function wt(Re){switch(Re){case 126:case 131:case 85:case 135:case 88:case 93:case 123:case 121:case 122:case 144:case 124:case 158:return!0}return!1}e.isModifierKind=wt;function Qt(Re){return!!(e.modifierToFlag(Re)&16476)}e.isParameterPropertyModifier=Qt;function mt(Re){return Qt(Re)||Re===124||Re===158}e.isClassMemberModifier=mt;function rn(Re){return wt(Re.kind)}e.isModifier=rn;function sa(Re){var Qr=Re.kind;return Qr===160||Qr===79}e.isEntityName=sa;function ba(Re){var Qr=Re.kind;return Qr===79||Qr===80||Qr===10||Qr===8||Qr===161}e.isPropertyName=ba;function Jn(Re){var Qr=Re.kind;return Qr===79||Qr===200||Qr===201}e.isBindingName=Jn;function na(Re){return!!Re&&qt(Re.kind)}e.isFunctionLike=na;function Wn(Re){return!!Re&&(qt(Re.kind)||e.isClassStaticBlockDeclaration(Re))}e.isFunctionLikeOrClassStaticBlockDeclaration=Wn;function en(Re){return Re&&Ut(Re.kind)}e.isFunctionLikeDeclaration=en;function St(Re){return Re.kind===110||Re.kind===95}e.isBooleanLiteral=St;function Ut(Re){switch(Re){case 255:case 168:case 170:case 171:case 172:case 212:case 213:return!0;default:return!1}}function qt(Re){switch(Re){case 167:case 173:case 321:case 174:case 175:case 178:case 315:case 179:return!0;default:return Ut(Re)}}e.isFunctionLikeKind=qt;function Mn(Re){return e.isSourceFile(Re)||e.isModuleBlock(Re)||e.isBlock(Re)&&na(Re.parent)}e.isFunctionOrModuleBlock=Mn;function dn(Re){var Qr=Re.kind;return Qr===170||Qr===166||Qr===168||Qr===171||Qr===172||Qr===175||Qr===169||Qr===233}e.isClassElement=dn;function oa(Re){return Re&&(Re.kind===256||Re.kind===225)}e.isClassLike=oa;function pt(Re){return Re&&(Re.kind===171||Re.kind===172)}e.isAccessor=pt;function _t(Re){switch(Re.kind){case 168:case 171:case 172:return!0;default:return!1}}e.isMethodOrAccessor=_t;function Mt(Re){var Qr=Re.kind;return Qr===174||Qr===173||Qr===165||Qr===167||Qr===175}e.isTypeElement=Mt;function It(Re){return Mt(Re)||dn(Re)}e.isClassOrTypeElement=It;function rt(Re){var Qr=Re.kind;return Qr===294||Qr===295||Qr===296||Qr===168||Qr===171||Qr===172}e.isObjectLiteralElementLike=rt;function Cn(Re){return e.isTypeNodeKind(Re.kind)}e.isTypeNode=Cn;function Qn(Re){switch(Re.kind){case 178:case 179:return!0}return!1}e.isFunctionOrConstructorTypeNode=Qn;function Ra(Re){if(Re){var Qr=Re.kind;return Qr===201||Qr===200}return!1}e.isBindingPattern=Ra;function Ci(Re){var Qr=Re.kind;return Qr===203||Qr===204}e.isAssignmentPattern=Ci;function _i(Re){var Qr=Re.kind;return Qr===202||Qr===226}e.isArrayBindingElement=_i;function va(Re){switch(Re.kind){case 253:case 163:case 202:return!0}return!1}e.isDeclarationBindingElement=va;function yi(Re){return ro(Re)||Mi(Re)}e.isBindingOrAssignmentPattern=yi;function ro(Re){switch(Re.kind){case 200:case 204:return!0}return!1}e.isObjectBindingOrAssignmentPattern=ro;function Ka(Re){switch(Re.kind){case 202:case 294:case 295:case 296:return!0}return!1}e.isObjectBindingOrAssignmentElement=Ka;function Mi(Re){switch(Re.kind){case 201:case 203:return!0}return!1}e.isArrayBindingOrAssignmentPattern=Mi;function io(Re){var Qr=Re.kind;return Qr===205||Qr===160||Qr===199}e.isPropertyAccessOrQualifiedNameOrImportTypeNode=io;function ji(Re){var Qr=Re.kind;return Qr===205||Qr===160}e.isPropertyAccessOrQualifiedName=ji;function Hi(Re){switch(Re.kind){case 279:case 278:case 207:case 208:case 209:case 164:return!0;default:return!1}}e.isCallLikeExpression=Hi;function to(Re){return Re.kind===207||Re.kind===208}e.isCallOrNewExpression=to;function No(Re){var Qr=Re.kind;return Qr===222||Qr===14}e.isTemplateLiteral=No;function lo(Re){return Lo(or(Re).kind)}e.isLeftHandSideExpression=lo;function Lo(Re){switch(Re){case 205:case 206:case 208:case 207:case 277:case 278:case 281:case 209:case 203:case 211:case 204:case 225:case 212:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 222:case 95:case 104:case 108:case 110:case 106:case 229:case 230:case 100:return!0;default:return!1}}function Ha(Re){return Yo(or(Re).kind)}e.isUnaryExpression=Ha;function Yo(Re){switch(Re){case 218:case 219:case 214:case 215:case 216:case 217:case 210:return!0;default:return Lo(Re)}}function co(Re){switch(Re.kind){case 219:return!0;case 218:return Re.operator===45||Re.operator===46;default:return!1}}e.isUnaryExpressionWithWrite=co;function za(Re){return hi(or(Re).kind)}e.isExpression=za;function hi(Re){switch(Re){case 221:case 223:case 213:case 220:case 224:case 228:case 226:case 349:case 348:return!0;default:return Yo(Re)}}function Zi(Re){var Qr=Re.kind;return Qr===210||Qr===228}e.isAssertionExpression=Zi;function Mo(Re){return e.isNotEmittedStatement(Re)||e.isPartiallyEmittedExpression(Re)}e.isNotEmittedOrPartiallyEmittedNode=Mo;function Po(Re,Qr){switch(Re.kind){case 241:case 242:case 243:case 239:case 240:return!0;case 249:return Qr&&Po(Re.statement,Qr)}return!1}e.isIterationStatement=Po;function Fo(Re){return e.isExportAssignment(Re)||e.isExportDeclaration(Re)}e.isScopeMarker=Fo;function zo(Re){return e.some(Re,Fo)}e.hasScopeMarker=zo;function Es(Re){return!e.isAnyImportOrReExport(Re)&&!e.isExportAssignment(Re)&&!e.hasSyntacticModifier(Re,1)&&!e.isAmbientModule(Re)}e.needsScopeMarker=Es;function Cs(Re){return e.isAnyImportOrReExport(Re)||e.isExportAssignment(Re)||e.hasSyntacticModifier(Re,1)}e.isExternalModuleIndicator=Cs;function hr(Re){return Re.kind===242||Re.kind===243}e.isForInOrOfStatement=hr;function dt(Re){return e.isBlock(Re)||za(Re)}e.isConciseBody=dt;function tn(Re){return e.isBlock(Re)}e.isFunctionBody=tn;function Un(Re){return e.isVariableDeclarationList(Re)||za(Re)}e.isForInitializer=Un;function Oe(Re){var Qr=Re.kind;return Qr===261||Qr===260||Qr===79}e.isModuleBody=Oe;function oe(Re){var Qr=Re.kind;return Qr===261||Qr===260}e.isNamespaceBody=oe;function mr(Re){var Qr=Re.kind;return Qr===79||Qr===260}e.isJSDocNamespaceBody=mr;function se(Re){var Qr=Re.kind;return Qr===268||Qr===267}e.isNamedImportBindings=se;function Be(Re){return Re.kind===260||Re.kind===259}e.isModuleOrEnumDeclaration=Be;function er(Re){return Re===213||Re===202||Re===256||Re===225||Re===169||Re===170||Re===259||Re===297||Re===274||Re===255||Re===212||Re===171||Re===266||Re===264||Re===269||Re===257||Re===284||Re===168||Re===167||Re===260||Re===263||Re===267||Re===273||Re===163||Re===294||Re===166||Re===165||Re===172||Re===295||Re===258||Re===162||Re===253||Re===343||Re===336||Re===345}function vr(Re){return Re===255||Re===275||Re===256||Re===257||Re===258||Re===259||Re===260||Re===265||Re===264||Re===271||Re===270||Re===263}function qr(Re){return Re===245||Re===244||Re===252||Re===239||Re===237||Re===235||Re===242||Re===243||Re===241||Re===238||Re===249||Re===246||Re===248||Re===250||Re===251||Re===236||Re===240||Re===247||Re===347||Re===351||Re===350}function Dt(Re){return Re.kind===162?Re.parent&&Re.parent.kind!==342||e.isInJSFile(Re):er(Re.kind)}e.isDeclaration=Dt;function Jt(Re){return vr(Re.kind)}e.isDeclarationStatement=Jt;function Sn(Re){return qr(Re.kind)}e.isStatementButNotDeclaration=Sn;function ta(Re){var Qr=Re.kind;return qr(Qr)||vr(Qr)||xa(Re)}e.isStatement=ta;function xa(Re){return Re.kind!==234||Re.parent!==void 0&&(Re.parent.kind===251||Re.parent.kind===291)?!1:!e.isFunctionBlock(Re)}function Di(Re){var Qr=Re.kind;return qr(Qr)||vr(Qr)||Qr===234}e.isStatementOrBlock=Di;function $a(Re){var Qr=Re.kind;return Qr===276||Qr===160||Qr===79}e.isModuleReference=$a;function Ji(Re){var Qr=Re.kind;return Qr===108||Qr===79||Qr===205}e.isJsxTagNameExpression=Ji;function So(Re){var Qr=Re.kind;return Qr===277||Qr===287||Qr===278||Qr===11||Qr===281}e.isJsxChild=So;function cs(Re){var Qr=Re.kind;return Qr===284||Qr===286}e.isJsxAttributeLike=cs;function bt(Re){var Qr=Re.kind;return Qr===10||Qr===287}e.isStringLiteralOrJsxExpression=bt;function Pn(Re){var Qr=Re.kind;return Qr===279||Qr===278}e.isJsxOpeningLikeElement=Pn;function da(Re){var Qr=Re.kind;return Qr===288||Qr===289}e.isCaseOrDefaultClause=da;function ei(Re){return Re.kind>=307&&Re.kind<=345}e.isJSDocNode=ei;function bi(Re){return Re.kind===318||Re.kind===317||Re.kind===319||Zt(Re)||xi(Re)||e.isJSDocTypeLiteral(Re)||e.isJSDocSignature(Re)}e.isJSDocCommentContainingNode=bi;function xi(Re){return Re.kind>=325&&Re.kind<=345}e.isJSDocTag=xi;function ka(Re){return Re.kind===172}e.isSetAccessor=ka;function mi(Re){return Re.kind===171}e.isGetAccessor=mi;function Xi(Re){var Qr=Re.jsDoc;return!!Qr&&Qr.length>0}e.hasJSDocNodes=Xi;function Gi(Re){return!!Re.type}e.hasType=Gi;function Ro(Re){return!!Re.initializer}e.hasInitializer=Ro;function ko(Re){switch(Re.kind){case 253:case 163:case 202:case 165:case 166:case 294:case 297:return!0;default:return!1}}e.hasOnlyExpressionInitializer=ko;function es(Re){return Re.kind===284||Re.kind===286||rt(Re)}e.isObjectLiteralElement=es;function as(Re){return Re.kind===177||Re.kind===227}e.isTypeReferenceType=as;var pe=1073741823;function Rr(Re){for(var Qr=pe,vn=0,Xn=Re;vn<Xn.length;vn++){var gi=Xn[vn];if(gi.length){for(var Ia=0;Ia<gi.length&&Ia<Qr&&e.isWhiteSpaceLike(gi.charCodeAt(Ia));Ia++);if(Ia<Qr&&(Qr=Ia),Qr===0)return 0}}return Qr===pe?void 0:Qr}e.guessIndentation=Rr;function ft(Re){return Re.kind===10||Re.kind===14}e.isStringLiteralLike=ft;function Zt(Re){return Re.kind===322||Re.kind===323||Re.kind===324}e.isJSDocLinkLike=Zt}(jr||(jr={})),function(e){e.resolvingEmptyArray=[],e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.noTruncationMaximumTruncationLength=1e6;function n(l,ee){var cr=l.declarations;if(cr)for(var Ur=0,Nt=cr;Ur<Nt.length;Ur++){var xn=Nt[Ur];if(xn.kind===ee)return xn}}e.getDeclarationOfKind=n;function f(){return new e.Map}e.createUnderscoreEscapedMap=f;function p(l){return!!l&&!!l.size}e.hasEntries=p;function a(l){var ee=new e.Map;if(l)for(var cr=0,Ur=l;cr<Ur.length;cr++){var Nt=Ur[cr];ee.set(Nt.escapedName,Nt)}return ee}e.createSymbolTable=a;function d(l){return(l.flags&33554432)!==0}e.isTransientSymbol=d;var k=J();function J(){var l="",ee=function(cr){return l+=cr};return{getText:function(){return l},write:ee,rawWrite:ee,writeKeyword:ee,writeOperator:ee,writePunctuation:ee,writeSpace:ee,writeStringLiteral:ee,writeLiteral:ee,writeParameter:ee,writeProperty:ee,writeSymbol:function(cr,Ur){return ee(cr)},writeTrailingSemicolon:ee,writeComment:ee,getTextPos:function(){return l.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!l.length&&e.isWhiteSpaceLike(l.charCodeAt(l.length-1))},writeLine:function(){return l+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return l=""},trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop}}function h(l,ee){return l.configFilePath!==ee.configFilePath||v(l,ee)}e.changesAffectModuleResolution=h;function v(l,ee){return z(l,ee,e.moduleResolutionOptionDeclarations)}e.optionsHaveModuleResolutionChanges=v;function A(l,ee){return z(l,ee,e.optionsAffectingProgramStructure)}e.changesAffectingProgramStructure=A;function z(l,ee,cr){return l!==ee&&cr.some(function(Ur){return!of(Bo(l,Ur),Bo(ee,Ur))})}e.optionsHaveChanges=z;function ie(l,ee){for(;;){var cr=ee(l);if(cr==="quit")return;if(cr!==void 0)return cr;if(e.isSourceFile(l))return;l=l.parent}}e.forEachAncestor=ie;function b(l,ee){for(var cr=l.entries(),Ur=cr.next();!Ur.done;Ur=cr.next()){var Nt=Ur.value,xn=Nt[0],Bn=Nt[1],ga=ee(Bn,xn);if(ga)return ga}}e.forEachEntry=b;function M(l,ee){for(var cr=l.keys(),Ur=cr.next();!Ur.done;Ur=cr.next()){var Nt=ee(Ur.value);if(Nt)return Nt}}e.forEachKey=M;function S(l,ee){l.forEach(function(cr,Ur){ee.set(Ur,cr)})}e.copyEntries=S;function B(l){var ee=k.getText();try{return l(k),k.getText()}finally{k.clear(),k.writeKeyword(ee)}}e.usingSingleLineStringWriter=B;function H(l){return l.end-l.pos}e.getFullWidth=H;function I(l,ee,cr){return l&&l.resolvedModules&&l.resolvedModules.get(ee,cr)}e.getResolvedModule=I;function w(l,ee,cr,Ur){l.resolvedModules||(l.resolvedModules=e.createModeAwareCache()),l.resolvedModules.set(ee,Ur,cr)}e.setResolvedModule=w;function x(l,ee,cr){l.resolvedTypeReferenceDirectiveNames||(l.resolvedTypeReferenceDirectiveNames=e.createModeAwareCache()),l.resolvedTypeReferenceDirectiveNames.set(ee,void 0,cr)}e.setResolvedTypeReferenceDirective=x;function O(l,ee){return l.path===ee.path&&!l.prepend==!ee.prepend&&!l.circular==!ee.circular}e.projectReferenceIsEqualTo=O;function q(l,ee){return l.isExternalLibraryImport===ee.isExternalLibraryImport&&l.extension===ee.extension&&l.resolvedFileName===ee.resolvedFileName&&l.originalPath===ee.originalPath&&Z(l.packageId,ee.packageId)}e.moduleResolutionIsEqualTo=q;function Z(l,ee){return l===ee||!!l&&!!ee&&l.name===ee.name&&l.subModuleName===ee.subModuleName&&l.version===ee.version}function ne(l){var ee=l.name,cr=l.subModuleName,Ur=l.version,Nt=cr?"".concat(ee,"/").concat(cr):ee;return"".concat(Nt,"@").concat(Ur)}e.packageIdToString=ne;function F(l,ee){return l.resolvedFileName===ee.resolvedFileName&&l.primary===ee.primary&&l.originalPath===ee.originalPath}e.typeDirectiveIsEqualTo=F;function Q(l,ee,cr,Ur,Nt){e.Debug.assert(l.length===ee.length);for(var xn=0;xn<l.length;xn++){var Bn=ee[xn],ga=cr&&cr.get(l[xn],Ur&&e.getModeForResolutionAtIndex(Ur,xn)),Ei=ga?!Bn||!Nt(ga,Bn):Bn;if(Ei)return!0}return!1}e.hasChangesInResolutions=Q;function V(l){return re(l),(l.flags&262144)!==0}e.containsParseError=V;function re(l){if(!(l.flags&524288)){var ee=(l.flags&65536)!==0||e.forEachChild(l,V);ee&&(l.flags|=262144),l.flags|=524288}}function T(l){for(;l&&l.kind!==303;)l=l.parent;return l}e.getSourceFileOfNode=T;function N(l){return T(l.valueDeclaration||Fe(l))}e.getSourceFileOfModule=N;function y(l){switch(l.kind){case 234:case 262:case 241:case 242:case 243:return!0}return!1}e.isStatementWithLocals=y;function D(l,ee){return e.Debug.assert(l>=0),e.getLineStarts(ee)[l]}e.getStartPositionOfLine=D;function C(l){var ee=T(l),cr=e.getLineAndCharacterOfPosition(ee,l.pos);return"".concat(ee.fileName,"(").concat(cr.line+1,",").concat(cr.character+1,")")}e.nodePosToString=C;function m(l,ee){e.Debug.assert(l>=0);var cr=e.getLineStarts(ee),Ur=l,Nt=ee.text;if(Ur+1===cr.length)return Nt.length-1;var xn=cr[Ur],Bn=cr[Ur+1]-1;for(e.Debug.assert(e.isLineBreak(Nt.charCodeAt(Bn)));xn<=Bn&&e.isLineBreak(Nt.charCodeAt(Bn));)Bn--;return Bn}e.getEndLinePosition=m;function u(l,ee,cr){return!(cr&&cr(ee))&&!l.identifiers.has(ee)}e.isFileLevelUniqueName=u;function g(l){return l===void 0?!0:l.pos===l.end&&l.pos>=0&&l.kind!==1}e.nodeIsMissing=g;function P(l){return!g(l)}e.nodeIsPresent=P;function te(l,ee,cr){if(ee===void 0||ee.length===0)return l;for(var Ur=0;Ur<l.length&&cr(l[Ur]);++Ur);return l.splice.apply(l,Gt([Ur,0],ee,!1)),l}function ue(l,ee,cr){if(ee===void 0)return l;for(var Ur=0;Ur<l.length&&cr(l[Ur]);++Ur);return l.splice(Ur,0,ee),l}function X(l){return zr(l)||!!(_e(l)&1048576)}function j(l,ee){return te(l,ee,zr)}e.insertStatementsAfterStandardPrologue=j;function Se(l,ee){return te(l,ee,X)}e.insertStatementsAfterCustomPrologue=Se;function Ce(l,ee){return ue(l,ee,zr)}e.insertStatementAfterStandardPrologue=Ce;function R(l,ee){return ue(l,ee,X)}e.insertStatementAfterCustomPrologue=R;function Y(l,ee,cr){if(l.charCodeAt(ee+1)===47&&ee+2<cr&&l.charCodeAt(ee+2)===47){var Ur=l.substring(ee,cr);return!!(e.fullTripleSlashReferencePathRegEx.test(Ur)||e.fullTripleSlashAMDReferencePathRegEx.test(Ur)||Qt.test(Ur)||mt.test(Ur))}return!1}e.isRecognizedTripleSlashComment=Y;function U(l,ee){return l.charCodeAt(ee+1)===42&&l.charCodeAt(ee+2)===33}e.isPinnedComment=U;function K(l,ee){var cr=new e.Map(ee.map(function(Bn){return["".concat(e.getLineAndCharacterOfPosition(l,Bn.range.end).line),Bn]})),Ur=new e.Map;return{getUnusedExpectations:Nt,markUsed:xn};function Nt(){return e.arrayFrom(cr.entries()).filter(function(Bn){var ga=Bn[0],Ei=Bn[1];return Ei.type===0&&!Ur.get(ga)}).map(function(Bn){Bn[0];var ga=Bn[1];return ga})}function xn(Bn){return cr.has("".concat(Bn))?(Ur.set("".concat(Bn),!0),!0):!1}}e.createCommentDirectivesMap=K;function Te(l,ee,cr){return g(l)?l.pos:e.isJSDocNode(l)||l.kind===11?e.skipTrivia((ee||T(l)).text,l.pos,!1,!0):cr&&e.hasJSDocNodes(l)?Te(l.jsDoc[0],ee):l.kind===346&&l._children.length>0?Te(l._children[0],ee,cr):e.skipTrivia((ee||T(l)).text,l.pos,!1,!1,qr(l))}e.getTokenPosOfNode=Te;function ge(l,ee){return g(l)||!l.decorators?Te(l,ee):e.skipTrivia((ee||T(l)).text,l.decorators.end)}e.getNonDecoratorTokenPosOfNode=ge;function ke(l,ee,cr){return cr===void 0&&(cr=!1),Ge(l.text,ee,cr)}e.getSourceTextOfNodeFromSourceFile=ke;function Pe(l){return!!e.findAncestor(l,e.isJSDocTypeExpression)}function Ie(l){return!!(e.isExportDeclaration(l)&&l.exportClause&&e.isNamespaceExport(l.exportClause)&&l.exportClause.name.escapedText==="default")}e.isExportNamespaceAsDefaultDeclaration=Ie;function Ge(l,ee,cr){if(cr===void 0&&(cr=!1),g(ee))return"";var Ur=l.substring(cr?ee.pos:e.skipTrivia(l,ee.pos),ee.end);return Pe(ee)&&(Ur=Ur.split(/\r\n|\n|\r/).map(function(Nt){return e.trimStringStart(Nt.replace(/^\s*\*/,""))}).join(`
  23. `)),Ur}e.getTextOfNodeFromSourceText=Ge;function he(l,ee){return ee===void 0&&(ee=!1),ke(T(l),l,ee)}e.getTextOfNode=he;function ve(l){return l.pos}function Ve(l,ee){return e.binarySearch(l,ee,ve,e.compareValues)}e.indexOfNode=Ve;function _e(l){var ee=l.emitNode;return ee&&ee.flags||0}e.getEmitFlags=_e;function Le(){return{es2015:{Array:["find","findIndex","fill","copyWithin","entries","keys","values"],RegExp:["flags","sticky","unicode"],Reflect:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"],ArrayConstructor:["from","of"],ObjectConstructor:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],NumberConstructor:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"],Math:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],Map:["entries","keys","values"],Set:["entries","keys","values"],Promise:e.emptyArray,PromiseConstructor:["all","race","reject","resolve"],Symbol:["for","keyFor"],WeakMap:["entries","keys","values"],WeakSet:["entries","keys","values"],Iterator:e.emptyArray,AsyncIterator:e.emptyArray,String:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],StringConstructor:["fromCodePoint","raw"]},es2016:{Array:["includes"]},es2017:{Atomics:e.emptyArray,SharedArrayBuffer:e.emptyArray,String:["padStart","padEnd"],ObjectConstructor:["values","entries","getOwnPropertyDescriptors"],DateTimeFormat:["formatToParts"]},es2018:{Promise:["finally"],RegExpMatchArray:["groups"],RegExpExecArray:["groups"],RegExp:["dotAll"],Intl:["PluralRules"],AsyncIterable:e.emptyArray,AsyncIterableIterator:e.emptyArray,AsyncGenerator:e.emptyArray,AsyncGeneratorFunction:e.emptyArray},es2019:{Array:["flat","flatMap"],ObjectConstructor:["fromEntries"],String:["trimStart","trimEnd","trimLeft","trimRight"],Symbol:["description"]},es2020:{BigInt:e.emptyArray,BigInt64Array:e.emptyArray,BigUint64Array:e.emptyArray,PromiseConstructor:["allSettled"],SymbolConstructor:["matchAll"],String:["matchAll"],DataView:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],RelativeTimeFormat:["format","formatToParts","resolvedOptions"]},es2021:{PromiseConstructor:["any"],String:["replaceAll"]},esnext:{NumberFormat:["formatToParts"]}}}e.getScriptTargetFeatures=Le,function(l){l[l.None=0]="None",l[l.NeverAsciiEscape=1]="NeverAsciiEscape",l[l.JsxAttributeEscape=2]="JsxAttributeEscape",l[l.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",l[l.AllowNumericSeparator=8]="AllowNumericSeparator"}(e.GetLiteralTextFlags||(e.GetLiteralTextFlags={}));function qe(l,ee,cr){var Ur;if(Xe(l,cr))return ke(ee,l);switch(l.kind){case 10:{var Nt=cr&2?Pu:cr&1||_e(l)&16777216?Ru:Mu;return l.singleQuote?"'"+Nt(l.text,39)+"'":'"'+Nt(l.text,34)+'"'}case 14:case 15:case 16:case 17:{var Nt=cr&1||_e(l)&16777216?Ru:Mu,xn=(Ur=l.rawText)!==null&&Ur!==void 0?Ur:bf(Nt(l.text,96));switch(l.kind){case 14:return"`"+xn+"`";case 15:return"`"+xn+"${";case 16:return"}"+xn+"${";case 17:return"}"+xn+"`"}break}case 8:case 9:return l.text;case 13:return cr&4&&l.isUnterminated?l.text+(l.text.charCodeAt(l.text.length-1)===92?" /":"/"):l.text}return e.Debug.fail("Literal kind '".concat(l.kind,"' not accounted for."))}e.getLiteralText=qe;function Xe(l,ee){return Fd(l)||!l.parent||ee&4&&l.isUnterminated?!1:e.isNumericLiteral(l)&&l.numericLiteralFlags&512?!!(ee&8):!e.isBigIntLiteral(l)}function De(l){return e.isString(l)?'"'+Mu(l)+'"':""+l}e.getTextOfConstantValue=De;function Ae(l){return e.getBaseFileName(l).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}e.makeIdentifierFromModuleName=Ae;function Ye(l){return(e.getCombinedNodeFlags(l)&3)!==0||Dr(l)}e.isBlockOrCatchScoped=Ye;function Dr(l){var ee=Md(l);return ee.kind===253&&ee.parent.kind===291}e.isCatchClauseVariableDeclarationOrBindingElement=Dr;function br(l){return e.isModuleDeclaration(l)&&(l.name.kind===10||ur(l))}e.isAmbientModule=br;function lr(l){return e.isModuleDeclaration(l)&&l.name.kind===10}e.isModuleWithStringLiteralName=lr;function Ar(l){return e.isModuleDeclaration(l)&&e.isStringLiteral(l.name)}e.isNonGlobalAmbientModule=Ar;function kr(l){return e.isModuleDeclaration(l)||e.isIdentifier(l)}e.isEffectiveModuleDeclaration=kr;function Ke(l){return Me(l.valueDeclaration)}e.isShorthandAmbientModuleSymbol=Ke;function Me(l){return!!l&&l.kind===260&&!l.body}function Hr(l){return l.kind===303||l.kind===260||e.isFunctionLikeOrClassStaticBlockDeclaration(l)}e.isBlockScopedContainerTopLevel=Hr;function ur(l){return!!(l.flags&1024)}e.isGlobalScopeAugmentation=ur;function gr(l){return br(l)&&de(l)}e.isExternalModuleAugmentation=gr;function de(l){switch(l.parent.kind){case 303:return e.isExternalModule(l.parent);case 261:return br(l.parent.parent)&&e.isSourceFile(l.parent.parent.parent)&&!e.isExternalModule(l.parent.parent.parent)}return!1}e.isModuleAugmentationExternal=de;function Fe(l){var ee;return(ee=l.declarations)===null||ee===void 0?void 0:ee.find(function(cr){return!gr(cr)&&!(e.isModuleDeclaration(cr)&&ur(cr))})}e.getNonAugmentationDeclaration=Fe;function $e(l){return l===e.ModuleKind.CommonJS||l===e.ModuleKind.Node12||l===e.ModuleKind.NodeNext}function Sr(l,ee){return e.isExternalModule(l)||ee.isolatedModules||$e(vd(ee))&&!!l.commonJsModuleIndicator}e.isEffectiveExternalModule=Sr;function Pr(l,ee){switch(l.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return l.isDeclarationFile?!1:pa(ee,"alwaysStrict")||e.startsWithUseStrict(l.statements)?!0:e.isExternalModule(l)||ee.isolatedModules?vd(ee)>=e.ModuleKind.ES2015?!0:!ee.noImplicitUseStrict:!1}e.isEffectiveStrictModeSourceFile=Pr;function He(l,ee){switch(l.kind){case 303:case 262:case 291:case 260:case 241:case 242:case 243:case 170:case 168:case 171:case 172:case 255:case 212:case 213:case 166:case 169:return!0;case 234:return!e.isFunctionLikeOrClassStaticBlockDeclaration(ee)}return!1}e.isBlockScope=He;function pr(l){switch(l.kind){case 336:case 343:case 321:return!0;default:return e.assertType(l),Jr(l)}}e.isDeclarationWithTypeParameters=pr;function Jr(l){switch(l.kind){case 173:case 174:case 167:case 175:case 178:case 179:case 315:case 256:case 225:case 257:case 258:case 342:case 255:case 168:case 170:case 171:case 172:case 212:case 213:return!0;default:return e.assertType(l),!1}}e.isDeclarationWithTypeParameterChildren=Jr;function ze(l){switch(l.kind){case 265:case 264:return!0;default:return!1}}e.isAnyImportSyntax=ze;function Lr(l){switch(l.kind){case 265:case 264:case 236:case 256:case 255:case 260:case 258:case 257:case 259:return!0;default:return!1}}e.isLateVisibilityPaintedStatement=Lr;function Yr(l){return lt(l)||e.isModuleDeclaration(l)||e.isImportTypeNode(l)||tr(l)}e.hasPossibleExternalModuleReference=Yr;function lt(l){return ze(l)||e.isExportDeclaration(l)}e.isAnyImportOrReExport=lt;function tt(l){return e.findAncestor(l.parent,function(ee){return He(ee,ee.parent)})}e.getEnclosingBlockScopeContainer=tt;function Rt(l,ee){for(var cr=tt(l);cr;)ee(cr),cr=tt(cr)}e.forEachEnclosingBlockScopeContainer=Rt;function cn(l){return!l||H(l)===0?"(Missing)":he(l)}e.declarationNameToString=cn;function bn(l){return l.declaration?cn(l.declaration.parameters[0].name):void 0}e.getNameFromIndexInfo=bn;function In(l){return l.kind===161&&!ks(l.expression)}e.isComputedNonLiteralName=In;function zn(l){switch(l.kind){case 79:case 80:return l.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(l.text);case 161:return ks(l.expression)?e.escapeLeadingUnderscores(l.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(l)}}e.getTextOfPropertyName=zn;function ir(l){switch(l.kind){case 108:return"this";case 80:case 79:return H(l)===0?e.idText(l):he(l);case 160:return ir(l.left)+"."+ir(l.right);case 205:return e.isIdentifier(l.name)||e.isPrivateIdentifier(l.name)?ir(l.expression)+"."+ir(l.name):e.Debug.assertNever(l.name);case 309:return ir(l.left)+ir(l.right);default:return e.Debug.assertNever(l)}}e.entityNameToString=ir;function Or(l,ee,cr,Ur,Nt,xn){var Bn=T(l);return ye(Bn,l,ee,cr,Ur,Nt,xn)}e.createDiagnosticForNode=Or;function sr(l,ee,cr,Ur,Nt,xn,Bn){var ga=e.skipTrivia(l.text,ee.pos);return An(l,ga,ee.end-ga,cr,Ur,Nt,xn,Bn)}e.createDiagnosticForNodeArray=sr;function ye(l,ee,cr,Ur,Nt,xn,Bn){var ga=me(l,ee);return An(l,ga.start,ga.length,cr,Ur,Nt,xn,Bn)}e.createDiagnosticForNodeInSourceFile=ye;function or(l,ee,cr){var Ur=T(l),Nt=me(Ur,l);return je(Ur,Nt.start,Nt.length,ee,cr)}e.createDiagnosticForNodeFromMessageChain=or;function fe(l,ee,cr){e.Debug.assertGreaterThanOrEqual(ee,0),e.Debug.assertGreaterThanOrEqual(cr,0),l&&(e.Debug.assertLessThanOrEqual(ee,l.text.length),e.Debug.assertLessThanOrEqual(ee+cr,l.text.length))}function je(l,ee,cr,Ur,Nt){return fe(l,ee,cr),{file:l,start:ee,length:cr,code:Ur.code,category:Ur.category,messageText:Ur.next?Ur:Ur.messageText,relatedInformation:Nt}}e.createFileDiagnosticFromMessageChain=je;function Ee(l,ee,cr){return{file:l,start:0,length:0,code:ee.code,category:ee.category,messageText:ee.next?ee:ee.messageText,relatedInformation:cr}}e.createDiagnosticForFileFromMessageChain=Ee;function We(l,ee,cr){return{file:l,start:ee.pos,length:ee.end-ee.pos,code:cr.code,category:cr.category,messageText:cr.message}}e.createDiagnosticForRange=We;function $(l,ee){var cr=e.createScanner(l.languageVersion,!0,l.languageVariant,l.text,void 0,ee);cr.scan();var Ur=cr.getTokenPos();return e.createTextSpanFromBounds(Ur,cr.getTextPos())}e.getSpanOfTokenAtPosition=$;function Ne(l,ee){var cr=e.skipTrivia(l.text,ee.pos);if(ee.body&&ee.body.kind===234){var Ur=e.getLineAndCharacterOfPosition(l,ee.body.pos).line,Nt=e.getLineAndCharacterOfPosition(l,ee.body.end).line;if(Ur<Nt)return e.createTextSpan(cr,m(Ur,l)-cr+1)}return e.createTextSpanFromBounds(cr,ee.end)}function me(l,ee){var cr=ee;switch(ee.kind){case 303:var Ur=e.skipTrivia(l.text,0,!1);return Ur===l.text.length?e.createTextSpan(0,0):$(l,Ur);case 253:case 202:case 256:case 225:case 257:case 260:case 259:case 297:case 255:case 212:case 168:case 171:case 172:case 258:case 166:case 165:case 267:cr=ee.name;break;case 213:return Ne(l,ee);case 288:case 289:var Nt=e.skipTrivia(l.text,ee.pos),xn=ee.statements.length>0?ee.statements[0].pos:ee.end;return e.createTextSpanFromBounds(Nt,xn)}if(cr===void 0)return $(l,ee.pos);e.Debug.assert(!e.isJSDoc(cr));var Bn=g(cr),ga=Bn||e.isJsxText(ee)?cr.pos:e.skipTrivia(l.text,cr.pos);return Bn?(e.Debug.assert(ga===cr.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(ga===cr.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(ga>=cr.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(ga<=cr.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(ga,cr.end)}e.getErrorSpanForNode=me;function Ze(l){return(l.externalModuleIndicator||l.commonJsModuleIndicator)!==void 0}e.isExternalOrCommonJsModule=Ze;function Cr(l){return l.scriptKind===6}e.isJsonSourceFile=Cr;function fr(l){return!!(e.getCombinedModifierFlags(l)&2048)}e.isEnumConst=fr;function dr(l){return!!(e.getCombinedModifierFlags(l)&64&&!e.isParameterPropertyDeclaration(l,l.parent))}e.isDeclarationReadonly=dr;function et(l){return!!(e.getCombinedNodeFlags(l)&2)}e.isVarConst=et;function yt(l){return!!(e.getCombinedNodeFlags(l)&1)}e.isLet=yt;function Vr(l){return l.kind===207&&l.expression.kind===106}e.isSuperCall=Vr;function tr(l){return l.kind===207&&l.expression.kind===100}e.isImportCall=tr;function xr(l){return e.isMetaProperty(l)&&l.keywordToken===100&&l.name.escapedText==="meta"}e.isImportMeta=xr;function Nr(l){return e.isImportTypeNode(l)&&e.isLiteralTypeNode(l.argument)&&e.isStringLiteral(l.argument.literal)}e.isLiteralImportTypeNode=Nr;function zr(l){return l.kind===237&&l.expression.kind===10}e.isPrologueDirective=zr;function gt(l){return!!(_e(l)&1048576)}e.isCustomPrologue=gt;function vt(l){return gt(l)&&e.isFunctionDeclaration(l)}e.isHoistedFunction=vt;function ut(l){return e.isIdentifier(l.name)&&!l.initializer}function ht(l){return gt(l)&&e.isVariableStatement(l)&&e.every(l.declarationList.declarations,ut)}e.isHoistedVariableStatement=ht;function xt(l,ee){return l.kind!==11?e.getLeadingCommentRanges(ee.text,l.pos):void 0}e.getLeadingCommentRangesOfNode=xt;function wt(l,ee){var cr=l.kind===163||l.kind===162||l.kind===212||l.kind===213||l.kind===211||l.kind===253?e.concatenate(e.getTrailingCommentRanges(ee,l.pos),e.getLeadingCommentRanges(ee,l.pos)):e.getLeadingCommentRanges(ee,l.pos);return e.filter(cr,function(Ur){return ee.charCodeAt(Ur.pos+1)===42&&ee.charCodeAt(Ur.pos+2)===42&&ee.charCodeAt(Ur.pos+3)!==47})}e.getJSDocCommentRanges=wt,e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var Qt=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var mt=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;function rn(l){if(176<=l.kind&&l.kind<=199)return!0;switch(l.kind){case 130:case 154:case 146:case 157:case 149:case 133:case 150:case 147:case 152:case 143:return!0;case 114:return l.parent.kind!==216;case 227:return!bc(l);case 162:return l.parent.kind===194||l.parent.kind===189;case 79:(l.parent.kind===160&&l.parent.right===l||l.parent.kind===205&&l.parent.name===l)&&(l=l.parent),e.Debug.assert(l.kind===79||l.kind===160||l.kind===205,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 160:case 205:case 108:{var ee=l.parent;if(ee.kind===180)return!1;if(ee.kind===199)return!ee.isTypeOf;if(176<=ee.kind&&ee.kind<=199)return!0;switch(ee.kind){case 227:return!bc(ee);case 162:return l===ee.constraint;case 342:return l===ee.constraint;case 166:case 165:case 163:case 253:return l===ee.type;case 255:case 212:case 213:case 170:case 168:case 167:case 171:case 172:return l===ee.type;case 173:case 174:case 175:return l===ee.type;case 210:return l===ee.type;case 207:case 208:return e.contains(ee.typeArguments,l);case 209:return!1}}}return!1}e.isPartOfTypeNode=rn;function sa(l,ee){for(;l;){if(l.kind===ee)return!0;l=l.parent}return!1}e.isChildOfNodeWithKind=sa;function ba(l,ee){return cr(l);function cr(Ur){switch(Ur.kind){case 246:return ee(Ur);case 262:case 234:case 238:case 239:case 240:case 241:case 242:case 243:case 247:case 248:case 288:case 289:case 249:case 251:case 291:return e.forEachChild(Ur,cr)}}}e.forEachReturnStatement=ba;function Jn(l,ee){return cr(l);function cr(Ur){switch(Ur.kind){case 223:ee(Ur);var Nt=Ur.expression;Nt&&cr(Nt);return;case 259:case 257:case 260:case 258:return;default:if(e.isFunctionLike(Ur)){if(Ur.name&&Ur.name.kind===161){cr(Ur.name.expression);return}}else rn(Ur)||e.forEachChild(Ur,cr)}}}e.forEachYieldExpression=Jn;function na(l){return l&&l.kind===182?l.elementType:l&&l.kind===177?e.singleOrUndefined(l.typeArguments):void 0}e.getRestParameterElementType=na;function Wn(l){switch(l.kind){case 257:case 256:case 225:case 181:return l.members;case 204:return l.properties}}e.getMembersOfDeclaration=Wn;function en(l){if(l)switch(l.kind){case 202:case 297:case 163:case 294:case 166:case 165:case 295:case 253:return!0}return!1}e.isVariableLike=en;function St(l){return en(l)||e.isAccessor(l)}e.isVariableLikeOrAccessor=St;function Ut(l){return l.parent.kind===254&&l.parent.parent.kind===236}e.isVariableDeclarationInVariableStatement=Ut;function qt(l){return e.isVariableDeclaration(l)?et(l)&&e.isIdentifier(l.name)&&Ut(l):e.isPropertyDeclaration(l)?If(l)&&zc(l):e.isPropertySignature(l)&&If(l)}e.isValidESSymbolDeclaration=qt;function Mn(l){switch(l.kind){case 168:case 167:case 170:case 171:case 172:case 255:case 212:return!0}return!1}e.introducesArgumentsExoticObject=Mn;function dn(l,ee){for(;;){if(ee&&ee(l),l.statement.kind!==249)return l.statement;l=l.statement}}e.unwrapInnermostStatementOfLabel=dn;function oa(l){return l&&l.kind===234&&e.isFunctionLike(l.parent)}e.isFunctionBlock=oa;function pt(l){return l&&l.kind===168&&l.parent.kind===204}e.isObjectLiteralMethod=pt;function _t(l){return(l.kind===168||l.kind===171||l.kind===172)&&(l.parent.kind===204||l.parent.kind===225)}e.isObjectLiteralOrClassExpressionMethodOrAccessor=_t;function Mt(l){return l&&l.kind===1}e.isIdentifierTypePredicate=Mt;function It(l){return l&&l.kind===0}e.isThisTypePredicate=It;function rt(l,ee,cr){return l.properties.filter(function(Ur){if(Ur.kind===294){var Nt=zn(Ur.name);return ee===Nt||!!cr&&cr===Nt}return!1})}e.getPropertyAssignment=rt;function Cn(l,ee,cr){return e.firstDefined(rt(l,ee),function(Ur){return e.isArrayLiteralExpression(Ur.initializer)?e.find(Ur.initializer.elements,function(Nt){return e.isStringLiteral(Nt)&&Nt.text===cr}):void 0})}e.getPropertyArrayElementValue=Cn;function Qn(l){if(l&&l.statements.length){var ee=l.statements[0].expression;return e.tryCast(ee,e.isObjectLiteralExpression)}}e.getTsConfigObjectLiteralExpression=Qn;function Ra(l,ee,cr){return e.firstDefined(Ci(l,ee),function(Ur){return e.isArrayLiteralExpression(Ur.initializer)?e.find(Ur.initializer.elements,function(Nt){return e.isStringLiteral(Nt)&&Nt.text===cr}):void 0})}e.getTsConfigPropArrayElementValue=Ra;function Ci(l,ee){var cr=Qn(l);return cr?rt(cr,ee):e.emptyArray}e.getTsConfigPropArray=Ci;function _i(l){return e.findAncestor(l.parent,e.isFunctionLike)}e.getContainingFunction=_i;function va(l){return e.findAncestor(l.parent,e.isFunctionLikeDeclaration)}e.getContainingFunctionDeclaration=va;function yi(l){return e.findAncestor(l.parent,e.isClassLike)}e.getContainingClass=yi;function ro(l){return e.findAncestor(l.parent,function(ee){return e.isClassLike(ee)||e.isFunctionLike(ee)?"quit":e.isClassStaticBlockDeclaration(ee)})}e.getContainingClassStaticBlock=ro;function Ka(l){return e.findAncestor(l.parent,e.isFunctionLikeOrClassStaticBlockDeclaration)}e.getContainingFunctionOrClassStaticBlock=Ka;function Mi(l,ee){for(e.Debug.assert(l.kind!==303);;){if(l=l.parent,!l)return e.Debug.fail();switch(l.kind){case 161:if(e.isClassLike(l.parent.parent))return l;l=l.parent;break;case 164:l.parent.kind===163&&e.isClassElement(l.parent.parent)?l=l.parent.parent:e.isClassElement(l.parent)&&(l=l.parent);break;case 213:if(!ee)continue;case 255:case 212:case 260:case 169:case 166:case 165:case 168:case 167:case 170:case 171:case 172:case 173:case 174:case 175:case 259:case 303:return l}}}e.getThisContainer=Mi;function io(l){e.isIdentifier(l)&&(e.isClassDeclaration(l.parent)||e.isFunctionDeclaration(l.parent))&&l.parent.name===l&&(l=l.parent);var ee=Mi(l,!0);return e.isSourceFile(ee)}e.isInTopLevelContext=io;function ji(l){var ee=Mi(l,!1);if(ee)switch(ee.kind){case 170:case 255:case 212:return ee}}e.getNewTargetContainer=ji;function Hi(l,ee){for(;;){if(l=l.parent,!l)return l;switch(l.kind){case 161:l=l.parent;break;case 255:case 212:case 213:if(!ee)continue;case 166:case 165:case 168:case 167:case 170:case 171:case 172:case 169:return l;case 164:l.parent.kind===163&&e.isClassElement(l.parent.parent)?l=l.parent.parent:e.isClassElement(l.parent)&&(l=l.parent);break}}}e.getSuperContainer=Hi;function to(l){if(l.kind===212||l.kind===213){for(var ee=l,cr=l.parent;cr.kind===211;)ee=cr,cr=cr.parent;if(cr.kind===207&&cr.expression===ee)return cr}}e.getImmediatelyInvokedFunctionExpression=to;function No(l){return l.kind===106||lo(l)}e.isSuperOrSuperProperty=No;function lo(l){var ee=l.kind;return(ee===205||ee===206)&&l.expression.kind===106}e.isSuperProperty=lo;function Lo(l){var ee=l.kind;return(ee===205||ee===206)&&l.expression.kind===108}e.isThisProperty=Lo;function Ha(l){var ee;return!!l&&e.isVariableDeclaration(l)&&((ee=l.initializer)===null||ee===void 0?void 0:ee.kind)===108}e.isThisInitializedDeclaration=Ha;function Yo(l){return!!l&&(e.isShorthandPropertyAssignment(l)||e.isPropertyAssignment(l))&&e.isBinaryExpression(l.parent.parent)&&l.parent.parent.operatorToken.kind===63&&l.parent.parent.right.kind===108}e.isThisInitializedObjectBindingExpression=Yo;function co(l){switch(l.kind){case 177:return l.typeName;case 227:return qc(l.expression)?l.expression:void 0;case 79:case 160:return l}}e.getEntityNameFromTypeNode=co;function za(l){switch(l.kind){case 209:return l.tag;case 279:case 278:return l.tagName;default:return l.expression}}e.getInvokedExpression=za;function hi(l,ee,cr){if(e.isNamedDeclaration(l)&&e.isPrivateIdentifier(l.name))return!1;switch(l.kind){case 256:return!0;case 166:return ee.kind===256;case 171:case 172:case 168:return l.body!==void 0&&ee.kind===256;case 163:return ee.body!==void 0&&(ee.kind===170||ee.kind===168||ee.kind===172)&&cr.kind===256}return!1}e.nodeCanBeDecorated=hi;function Zi(l,ee,cr){return l.decorators!==void 0&&hi(l,ee,cr)}e.nodeIsDecorated=Zi;function Mo(l,ee,cr){return Zi(l,ee,cr)||Po(l,ee)}e.nodeOrChildIsDecorated=Mo;function Po(l,ee){switch(l.kind){case 256:return e.some(l.members,function(cr){return Mo(cr,l,ee)});case 168:case 172:case 170:return e.some(l.parameters,function(cr){return Zi(cr,l,ee)});default:return!1}}e.childIsDecorated=Po;function Fo(l){if(Zi(l))return!0;var ee=Sf(l);return!!ee&&Po(ee,l)}e.classOrConstructorParameterIsDecorated=Fo;function zo(l){var ee=l.parent;return ee.kind===279||ee.kind===278||ee.kind===280?ee.tagName===l:!1}e.isJSXTagName=zo;function Es(l){switch(l.kind){case 106:case 104:case 110:case 95:case 13:case 203:case 204:case 205:case 206:case 207:case 208:case 209:case 228:case 210:case 229:case 211:case 212:case 225:case 213:case 216:case 214:case 215:case 218:case 219:case 220:case 221:case 224:case 222:case 226:case 277:case 278:case 281:case 223:case 217:case 230:return!0;case 160:for(;l.parent.kind===160;)l=l.parent;return l.parent.kind===180||e.isJSDocLinkLike(l.parent)||e.isJSDocNameReference(l.parent)||e.isJSDocMemberName(l.parent)||zo(l);case 309:for(;e.isJSDocMemberName(l.parent);)l=l.parent;return l.parent.kind===180||e.isJSDocLinkLike(l.parent)||e.isJSDocNameReference(l.parent)||e.isJSDocMemberName(l.parent)||zo(l);case 80:return e.isBinaryExpression(l.parent)&&l.parent.left===l&&l.parent.operatorToken.kind===101;case 79:if(l.parent.kind===180||e.isJSDocLinkLike(l.parent)||e.isJSDocNameReference(l.parent)||e.isJSDocMemberName(l.parent)||zo(l))return!0;case 8:case 9:case 10:case 14:case 108:return Cs(l);default:return!1}}e.isExpressionNode=Es;function Cs(l){var ee=l.parent;switch(ee.kind){case 253:case 163:case 166:case 165:case 297:case 294:case 202:return ee.initializer===l;case 237:case 238:case 239:case 240:case 246:case 247:case 248:case 288:case 250:return ee.expression===l;case 241:var cr=ee;return cr.initializer===l&&cr.initializer.kind!==254||cr.condition===l||cr.incrementor===l;case 242:case 243:var Ur=ee;return Ur.initializer===l&&Ur.initializer.kind!==254||Ur.expression===l;case 210:case 228:return l===ee.expression;case 232:return l===ee.expression;case 161:return l===ee.expression;case 164:case 287:case 286:case 296:return!0;case 227:return ee.expression===l&&bc(ee);case 295:return ee.objectAssignmentInitializer===l;default:return Es(ee)}}e.isInExpressionContext=Cs;function hr(l){for(;l.kind===160||l.kind===79;)l=l.parent;return l.kind===180}e.isPartOfTypeQuery=hr;function dt(l){return e.isNamespaceExport(l)&&!!l.parent.moduleSpecifier}e.isNamespaceReexportDeclaration=dt;function tn(l){return l.kind===264&&l.moduleReference.kind===276}e.isExternalModuleImportEqualsDeclaration=tn;function Un(l){return e.Debug.assert(tn(l)),l.moduleReference.expression}e.getExternalModuleImportEqualsDeclarationExpression=Un;function Oe(l){return ta(l)&&ml(l.initializer).arguments[0]}e.getExternalModuleRequireArgument=Oe;function oe(l){return l.kind===264&&l.moduleReference.kind!==276}e.isInternalModuleImportEqualsDeclaration=oe;function mr(l){return Be(l)}e.isSourceFileJS=mr;function se(l){return!Be(l)}e.isSourceFileNotJS=se;function Be(l){return!!l&&!!(l.flags&131072)}e.isInJSFile=Be;function er(l){return!!l&&!!(l.flags&33554432)}e.isInJsonFile=er;function vr(l){return!Cr(l)}e.isSourceFileNotJson=vr;function qr(l){return!!l&&!!(l.flags&4194304)}e.isInJSDoc=qr;function Dt(l){return e.isTypeReferenceNode(l)&&e.isIdentifier(l.typeName)&&l.typeName.escapedText==="Object"&&l.typeArguments&&l.typeArguments.length===2&&(l.typeArguments[0].kind===149||l.typeArguments[0].kind===146)}e.isJSDocIndexSignature=Dt;function Jt(l,ee){if(l.kind!==207)return!1;var cr=l,Ur=cr.expression,Nt=cr.arguments;if(Ur.kind!==79||Ur.escapedText!=="require"||Nt.length!==1)return!1;var xn=Nt[0];return!ee||e.isStringLiteralLike(xn)}e.isRequireCall=Jt;function Sn(l){return xa(l,!1)}e.isVariableDeclarationInitializedToRequire=Sn;function ta(l){return xa(l,!0)}e.isVariableDeclarationInitializedToBareOrAccessedRequire=ta;function xa(l,ee){return l.kind===202&&(l=l.parent.parent),e.isVariableDeclaration(l)&&!!l.initializer&&Jt(ee?ml(l.initializer):l.initializer,!0)}function Di(l){return e.isVariableStatement(l)&&l.declarationList.declarations.length>0&&e.every(l.declarationList.declarations,function(ee){return Sn(ee)})}e.isRequireVariableStatement=Di;function $a(l){return l===39||l===34}e.isSingleOrDoubleQuote=$a;function Ji(l,ee){return ke(ee,l).charCodeAt(0)===34}e.isStringDoubleQuoted=Ji;function So(l){return e.isBinaryExpression(l)||ul(l)||e.isIdentifier(l)||e.isCallExpression(l)}e.isAssignmentDeclaration=So;function cs(l){return Be(l)&&l.initializer&&e.isBinaryExpression(l.initializer)&&(l.initializer.operatorToken.kind===56||l.initializer.operatorToken.kind===60)&&l.name&&qc(l.name)&&mi(l.name,l.initializer.left)?l.initializer.right:l.initializer}e.getEffectiveInitializer=cs;function bt(l){var ee=cs(l);return ee&&ei(ee,Ec(l.name))}e.getDeclaredExpandoInitializer=bt;function Pn(l,ee){return e.forEach(l.properties,function(cr){return e.isPropertyAssignment(cr)&&e.isIdentifier(cr.name)&&cr.name.escapedText==="value"&&cr.initializer&&ei(cr.initializer,ee)})}function da(l){if(l&&l.parent&&e.isBinaryExpression(l.parent)&&l.parent.operatorToken.kind===63){var ee=Ec(l.parent.left);return ei(l.parent.right,ee)||bi(l.parent.left,l.parent.right,ee)}if(l&&e.isCallExpression(l)&&as(l)){var cr=Pn(l.arguments[2],l.arguments[1].text==="prototype");if(cr)return cr}}e.getAssignedExpandoInitializer=da;function ei(l,ee){if(e.isCallExpression(l)){var cr=Si(l.expression);return cr.kind===212||cr.kind===213?l:void 0}if(l.kind===212||l.kind===225||l.kind===213||e.isObjectLiteralExpression(l)&&(l.properties.length===0||ee))return l}e.getExpandoInitializer=ei;function bi(l,ee,cr){var Ur=e.isBinaryExpression(ee)&&(ee.operatorToken.kind===56||ee.operatorToken.kind===60)&&ei(ee.right,cr);if(Ur&&mi(l,ee.left))return Ur}function xi(l){var ee=e.isVariableDeclaration(l.parent)?l.parent.name:e.isBinaryExpression(l.parent)&&l.parent.operatorToken.kind===63?l.parent.left:void 0;return ee&&ei(l.right,Ec(ee))&&qc(ee)&&mi(ee,l.left)}e.isDefaultedExpandoInitializer=xi;function ka(l){if(e.isBinaryExpression(l.parent)){var ee=(l.parent.operatorToken.kind===56||l.parent.operatorToken.kind===60)&&e.isBinaryExpression(l.parent.parent)?l.parent.parent:l.parent;if(ee.operatorToken.kind===63&&e.isIdentifier(ee.left))return ee.left}else if(e.isVariableDeclaration(l.parent))return l.parent.name}e.getNameOfExpando=ka;function mi(l,ee){if($f(l)&&$f(ee))return Od(l)===Od(ee);if(e.isIdentifier(l)&&pe(ee)&&(ee.expression.kind===108||e.isIdentifier(ee.expression)&&(ee.expression.escapedText==="window"||ee.expression.escapedText==="self"||ee.expression.escapedText==="global"))){var cr=Qr(ee);return e.isPrivateIdentifier(cr)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),mi(l,cr)}return pe(l)&&pe(ee)?Ia(l)===Ia(ee)&&mi(l.expression,ee.expression):!1}e.isSameEntityName=mi;function Xi(l){for(;Xd(l,!0);)l=l.right;return l}e.getRightMostAssignedExpression=Xi;function Gi(l){return e.isIdentifier(l)&&l.escapedText==="exports"}e.isExportsIdentifier=Gi;function Ro(l){return e.isIdentifier(l)&&l.escapedText==="module"}e.isModuleIdentifier=Ro;function ko(l){return(e.isPropertyAccessExpression(l)||Rr(l))&&Ro(l.expression)&&Ia(l)==="exports"}e.isModuleExportsAccessExpression=ko;function es(l){var ee=vn(l);return ee===5||Be(l)?ee:0}e.getAssignmentDeclarationKind=es;function as(l){return e.length(l.arguments)===3&&e.isPropertyAccessExpression(l.expression)&&e.isIdentifier(l.expression.expression)&&e.idText(l.expression.expression)==="Object"&&e.idText(l.expression.name)==="defineProperty"&&ks(l.arguments[1])&&Re(l.arguments[0],!0)}e.isBindableObjectDefinePropertyCall=as;function pe(l){return e.isPropertyAccessExpression(l)||Rr(l)}e.isLiteralLikeAccess=pe;function Rr(l){return e.isElementAccessExpression(l)&&ks(l.argumentExpression)}e.isLiteralLikeElementAccess=Rr;function ft(l,ee){return e.isPropertyAccessExpression(l)&&(!ee&&l.expression.kind===108||e.isIdentifier(l.name)&&Re(l.expression,!0))||Zt(l,ee)}e.isBindableStaticAccessExpression=ft;function Zt(l,ee){return Rr(l)&&(!ee&&l.expression.kind===108||qc(l.expression)||ft(l.expression,!0))}e.isBindableStaticElementAccessExpression=Zt;function Re(l,ee){return qc(l)||ft(l,ee)}e.isBindableStaticNameExpression=Re;function Qr(l){return e.isPropertyAccessExpression(l)?l.name:l.argumentExpression}e.getNameOrArgument=Qr;function vn(l){if(e.isCallExpression(l)){if(!as(l))return 0;var ee=l.arguments[0];return Gi(ee)||ko(ee)?8:ft(ee)&&Ia(ee)==="prototype"?9:7}return l.operatorToken.kind!==63||!ul(l.left)||Xn(Xi(l))?0:Re(l.left.expression,!0)&&Ia(l.left)==="prototype"&&e.isObjectLiteralExpression(Wo(l))?6:oo(l.left)}function Xn(l){return e.isVoidExpression(l)&&e.isNumericLiteral(l.expression)&&l.expression.text==="0"}function gi(l){if(e.isPropertyAccessExpression(l))return l.name;var ee=Si(l.argumentExpression);return e.isNumericLiteral(ee)||e.isStringLiteralLike(ee)?ee:l}e.getElementOrPropertyAccessArgumentExpressionOrName=gi;function Ia(l){var ee=gi(l);if(ee){if(e.isIdentifier(ee))return ee.escapedText;if(e.isStringLiteralLike(ee)||e.isNumericLiteral(ee))return e.escapeLeadingUnderscores(ee.text)}}e.getElementOrPropertyAccessName=Ia;function oo(l){if(l.expression.kind===108)return 4;if(ko(l))return 2;if(Re(l.expression,!0)){if(Ec(l.expression))return 3;for(var ee=l;!e.isIdentifier(ee.expression);)ee=ee.expression;var cr=ee.expression;if((cr.escapedText==="exports"||cr.escapedText==="module"&&Ia(ee)==="exports")&&ft(l))return 1;if(Re(l,!0)||e.isElementAccessExpression(l)&&kd(l))return 5}return 0}e.getAssignmentDeclarationPropertyAccessKind=oo;function Wo(l){for(;e.isBinaryExpression(l.right);)l=l.right;return l.right}e.getInitializerOfBinaryExpression=Wo;function Ir(l){return e.isBinaryExpression(l)&&es(l)===3}e.isPrototypePropertyAssignment=Ir;function Us(l){return Be(l)&&l.parent&&l.parent.kind===237&&(!e.isElementAccessExpression(l)||Rr(l))&&!!e.getJSDocTypeTag(l.parent)}e.isSpecialPropertyDeclaration=Us;function il(l,ee){var cr=l.valueDeclaration;(!cr||!(ee.flags&8388608&&!(cr.flags&8388608))&&So(cr)&&!So(ee)||cr.kind!==ee.kind&&kr(cr))&&(l.valueDeclaration=ee)}e.setValueDeclaration=il;function Ml(l){if(!l||!l.valueDeclaration)return!1;var ee=l.valueDeclaration;return ee.kind===255||e.isVariableDeclaration(ee)&&ee.initializer&&e.isFunctionLike(ee.initializer)}e.isFunctionSymbol=Ml;function Co(l){var ee,cr,Ur;switch(l.kind){case 253:return l.initializer.arguments[0].text;case 265:return(ee=e.tryCast(l.moduleSpecifier,e.isStringLiteralLike))===null||ee===void 0?void 0:ee.text;case 264:return(Ur=e.tryCast((cr=e.tryCast(l.moduleReference,e.isExternalModuleReference))===null||cr===void 0?void 0:cr.expression,e.isStringLiteralLike))===null||Ur===void 0?void 0:Ur.text;default:e.Debug.assertNever(l)}}e.tryGetModuleSpecifierFromDeclaration=Co;function Vs(l){return Ql(l)||e.Debug.failBadSyntaxKind(l.parent)}e.importFromModuleSpecifier=Vs;function Ql(l){switch(l.parent.kind){case 265:case 271:return l.parent;case 276:return l.parent.parent;case 207:return tr(l.parent)||Jt(l.parent,!1)?l.parent:void 0;case 195:return e.Debug.assert(e.isStringLiteral(l)),e.tryCast(l.parent.parent,e.isImportTypeNode);default:return}}e.tryGetImportFromModuleSpecifier=Ql;function zl(l){switch(l.kind){case 265:case 271:return l.moduleSpecifier;case 264:return l.moduleReference.kind===276?l.moduleReference.expression:void 0;case 199:return Nr(l)?l.argument.literal:void 0;case 207:return l.arguments[0];case 260:return l.name.kind===10?l.name:void 0;default:return e.Debug.assertNever(l)}}e.getExternalModuleName=zl;function uc(l){switch(l.kind){case 265:return l.importClause&&e.tryCast(l.importClause.namedBindings,e.isNamespaceImport);case 264:return l;case 271:return l.exportClause&&e.tryCast(l.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(l)}}e.getNamespaceDeclarationNode=uc;function cu(l){return l.kind===265&&!!l.importClause&&!!l.importClause.name}e.isDefaultImport=cu;function no(l,ee){if(l.name){var cr=ee(l);if(cr)return cr}if(l.namedBindings){var cr=e.isNamespaceImport(l.namedBindings)?ee(l.namedBindings):e.forEach(l.namedBindings.elements,ee);if(cr)return cr}}e.forEachImportClauseDeclaration=no;function ql(l){if(l)switch(l.kind){case 163:case 168:case 167:case 295:case 294:case 166:case 165:return l.questionToken!==void 0}return!1}e.hasQuestionToken=ql;function fc(l){var ee=e.isJSDocFunctionType(l)?e.firstOrUndefined(l.parameters):void 0,cr=e.tryCast(ee&&ee.name,e.isIdentifier);return!!cr&&cr.escapedText==="new"}e.isJSDocConstructSignature=fc;function Ws(l){return l.kind===343||l.kind===336||l.kind===337}e.isJSDocTypeAlias=Ws;function xc(l){return Ws(l)||e.isTypeAliasDeclaration(l)}e.isTypeAlias=xc;function Ic(l){return e.isExpressionStatement(l)&&e.isBinaryExpression(l.expression)&&l.expression.operatorToken.kind===63?Xi(l.expression):void 0}function La(l){return e.isExpressionStatement(l)&&e.isBinaryExpression(l.expression)&&es(l.expression)!==0&&e.isBinaryExpression(l.expression.right)&&(l.expression.right.operatorToken.kind===56||l.expression.right.operatorToken.kind===60)?l.expression.right.right:void 0}function uu(l){switch(l.kind){case 236:var ee=dc(l);return ee&&ee.initializer;case 166:return l.initializer;case 294:return l.initializer}}e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=uu;function dc(l){return e.isVariableStatement(l)?e.firstOrUndefined(l.declarationList.declarations):void 0}e.getSingleVariableOfVariableStatement=dc;function Nc(l){return e.isModuleDeclaration(l)&&l.body&&l.body.kind===260?l.body:void 0}function wr(l,ee){var cr;en(l)&&e.hasInitializer(l)&&e.hasJSDocNodes(l.initializer)&&(cr=e.addRange(cr,$r(l,e.last(l.initializer.jsDoc))));for(var Ur=l;Ur&&Ur.parent;){if(e.hasJSDocNodes(Ur)&&(cr=e.addRange(cr,$r(l,e.last(Ur.jsDoc)))),Ur.kind===163){cr=e.addRange(cr,(ee?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(Ur));break}if(Ur.kind===162){cr=e.addRange(cr,(ee?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(Ur));break}Ur=Kt(Ur)}return cr||e.emptyArray}e.getJSDocCommentsAndTags=wr;function $r(l,ee){if(e.isJSDoc(ee)){var cr=e.filter(ee.tags,function(Ur){return Lt(l,Ur)});return ee.tags===cr?[ee]:cr}return Lt(l,ee)?[ee]:void 0}function Lt(l,ee){return!e.isJSDocTypeTag(ee)||!ee.parent||!e.isJSDoc(ee.parent)||!e.isParenthesizedExpression(ee.parent.parent)||ee.parent.parent===l}function Kt(l){var ee=l.parent;if(ee.kind===294||ee.kind===270||ee.kind===166||ee.kind===237&&l.kind===205||ee.kind===246||Nc(ee)||e.isBinaryExpression(l)&&l.operatorToken.kind===63)return ee;if(ee.parent&&(dc(ee.parent)===l||e.isBinaryExpression(ee)&&ee.operatorToken.kind===63))return ee.parent;if(ee.parent&&ee.parent.parent&&(dc(ee.parent.parent)||uu(ee.parent.parent)===l||La(ee.parent.parent)))return ee.parent.parent}e.getNextJSDocCommentLocation=Kt;function pn(l){if(l.symbol)return l.symbol;if(e.isIdentifier(l.name)){var ee=l.name.escapedText,cr=kn(l);if(cr){var Ur=e.find(cr.parameters,function(Nt){return Nt.name.kind===79&&Nt.name.escapedText===ee});return Ur&&Ur.symbol}}}e.getParameterSymbolFromJSDoc=pn;function fn(l){if(e.isJSDoc(l.parent)&&l.parent.tags){var ee=e.find(l.parent.tags,Ws);if(ee)return ee}return kn(l)}e.getEffectiveContainerForJSDocTemplateTag=fn;function kn(l){var ee=Kn(l);return ee&&e.isFunctionLike(ee)?ee:void 0}e.getHostSignatureFromJSDoc=kn;function Kn(l){var ee=Fa(l);if(ee)return La(ee)||Ic(ee)||uu(ee)||dc(ee)||Nc(ee)||ee}e.getEffectiveJSDocHost=Kn;function Fa(l){var ee=ua(l);if(ee){var cr=ee.parent;if(cr&&cr.jsDoc&&ee===e.lastOrUndefined(cr.jsDoc))return cr}}e.getJSDocHost=Fa;function ua(l){return e.findAncestor(l.parent,e.isJSDoc)}e.getJSDocRoot=ua;function le(l){var ee=l.name.escapedText,cr=l.parent.parent.parent.typeParameters;return cr&&e.find(cr,function(Ur){return Ur.name.escapedText===ee})}e.getTypeParameterFromJsDoc=le;function rr(l){var ee=e.lastOrUndefined(l.parameters);return!!ee&&yr(ee)}e.hasRestParameter=rr;function yr(l){var ee=e.isJSDocParameterTag(l)?l.typeExpression&&l.typeExpression.type:l.type;return l.dotDotDotToken!==void 0||!!ee&&ee.kind===316}e.isRestParameter=yr;function ct(l){return!!l.typeArguments}e.hasTypeArguments=ct,function(l){l[l.None=0]="None",l[l.Definite=1]="Definite",l[l.Compound=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={}));function jt(l){for(var ee=l.parent;;){switch(ee.kind){case 220:var cr=ee.operatorToken.kind;return ac(cr)&&ee.left===l?cr===63||du(cr)?1:2:0;case 218:case 219:var Ur=ee.operator;return Ur===45||Ur===46?2:0;case 242:case 243:return ee.initializer===l?1:0;case 211:case 203:case 224:case 229:l=ee;break;case 296:l=ee.parent;break;case 295:if(ee.name!==l)return 0;l=ee.parent;break;case 294:if(ee.name===l)return 0;l=ee.parent;break;default:return 0}ee=l.parent}}e.getAssignmentTargetKind=jt;function yn(l){return jt(l)!==0}e.isAssignmentTarget=yn;function ha(l){switch(l.kind){case 234:case 236:case 247:case 238:case 248:case 262:case 288:case 289:case 249:case 241:case 242:case 243:case 239:case 240:case 251:case 291:return!0}return!1}e.isNodeWithPossibleHoistedDeclaration=ha;function ri(l){return e.isFunctionExpression(l)||e.isArrowFunction(l)||e.isMethodOrAccessor(l)||e.isFunctionDeclaration(l)||e.isConstructorDeclaration(l)}e.isValueSignatureDeclaration=ri;function Ta(l,ee){for(;l&&l.kind===ee;)l=l.parent;return l}function Ya(l){return Ta(l,190)}e.walkUpParenthesizedTypes=Ya;function fi(l){return Ta(l,211)}e.walkUpParenthesizedExpressions=fi;function ci(l){for(var ee;l&&l.kind===190;)ee=l,l=l.parent;return[ee,l]}e.walkUpParenthesizedTypesAndGetParentAndChild=ci;function Si(l,ee){var cr=ee?17:1;return e.skipOuterExpressions(l,cr)}e.skipParentheses=Si;function Do(l){return l.kind!==205&&l.kind!==206?!1:(l=fi(l.parent),l&&l.kind===214)}e.isDeleteTarget=Do;function bo(l,ee){for(;l;){if(l===ee)return!0;l=l.parent}return!1}e.isNodeDescendantOf=bo;function Ns(l){return!e.isSourceFile(l)&&!e.isBindingPattern(l)&&e.isDeclaration(l.parent)&&l.parent.name===l}e.isDeclarationName=Ns;function Ys(l){var ee=l.parent;switch(l.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(ee))return ee.parent;case 79:if(e.isDeclaration(ee))return ee.name===l?ee:void 0;if(e.isQualifiedName(ee)){var cr=ee.parent;return e.isJSDocParameterTag(cr)&&cr.name===ee?cr:void 0}else{var Ur=ee.parent;return e.isBinaryExpression(Ur)&&es(Ur)!==0&&(Ur.left.symbol||Ur.symbol)&&e.getNameOfDeclaration(Ur)===l?Ur:void 0}case 80:return e.isDeclaration(ee)&&ee.name===l?ee:void 0;default:return}}e.getDeclarationFromName=Ys;function Nu(l){return ks(l)&&l.parent.kind===161&&e.isDeclaration(l.parent.parent)}e.isLiteralComputedPropertyDeclarationName=Nu;function gf(l){var ee=l.parent;switch(ee.kind){case 166:case 165:case 168:case 167:case 171:case 172:case 297:case 294:case 205:return ee.name===l;case 160:return ee.right===l;case 202:case 269:return ee.propertyName===l;case 274:case 284:return!0}return!1}e.isIdentifierName=gf;function Zl(l){return l.kind===264||l.kind===263||l.kind===266&&!!l.name||l.kind===267||l.kind===273||l.kind===269||l.kind===274||l.kind===270&&$l(l)||e.isBinaryExpression(l)&&es(l)===2&&$l(l)||e.isPropertyAccessExpression(l)&&e.isBinaryExpression(l.parent)&&l.parent.left===l&&l.parent.operatorToken.kind===63&&Mr(l.parent.right)||l.kind===295||l.kind===294&&Mr(l.initializer)}e.isAliasSymbolDeclaration=Zl;function jc(l){switch(l.parent.kind){case 266:case 269:case 267:case 274:case 270:case 264:return l.parent;case 160:do l=l.parent;while(l.parent.kind===160);return jc(l)}}e.getAliasDeclarationFromName=jc;function Mr(l){return qc(l)||e.isClassExpression(l)}e.isAliasableExpression=Mr;function $l(l){var ee=pc(l);return Mr(ee)}e.exportAssignmentIsAlias=$l;function pc(l){return e.isExportAssignment(l)?l.expression:l.right}e.getExportAssignmentExpression=pc;function ku(l){return l.kind===295?l.name:l.kind===294?l.initializer:l.parent.right}e.getPropertyAssignmentAliasLikeExpression=ku;function ol(l){var ee=kc(l);if(ee&&Be(l)){var cr=e.getJSDocAugmentsTag(l);if(cr)return cr.class}return ee}e.getEffectiveBaseTypeNode=ol;function kc(l){var ee=hf(l.heritageClauses,94);return ee&&ee.types.length>0?ee.types[0]:void 0}e.getClassExtendsHeritageElement=kc;function vf(l){if(Be(l))return e.getJSDocImplementsTags(l).map(function(cr){return cr.class});var ee=hf(l.heritageClauses,117);return ee==null?void 0:ee.types}e.getEffectiveImplementsTypeNodes=vf;function fo(l){return e.isInterfaceDeclaration(l)?Zf(l)||e.emptyArray:e.isClassLike(l)&&e.concatenate(e.singleElementArray(ol(l)),vf(l))||e.emptyArray}e.getAllSuperTypeNodes=fo;function Zf(l){var ee=hf(l.heritageClauses,94);return ee?ee.types:void 0}e.getInterfaceBaseTypeNodes=Zf;function hf(l,ee){if(l)for(var cr=0,Ur=l;cr<Ur.length;cr++){var Nt=Ur[cr];if(Nt.token===ee)return Nt}}e.getHeritageClause=hf;function Nd(l,ee){for(;l;){if(l.kind===ee)return l;l=l.parent}}e.getAncestor=Nd;function _s(l){return 81<=l&&l<=159}e.isKeyword=_s;function Hc(l){return 126<=l&&l<=159}e.isContextualKeyword=Hc;function Jc(l){return _s(l)&&!Hc(l)}e.isNonContextualKeyword=Jc;function zp(l){return 117<=l&&l<=125}e.isFutureReservedKeyword=zp;function dl(l){var ee=e.stringToToken(l);return ee!==void 0&&Jc(ee)}e.isStringANonContextualKeyword=dl;function qp(l){var ee=e.stringToToken(l);return ee!==void 0&&_s(ee)}e.isStringAKeyword=qp;function Rs(l){var ee=l.originalKeywordKind;return!!ee&&!Hc(ee)}e.isIdentifierANonContextualKeyword=Rs;function Ja(l){return 2<=l&&l<=7}e.isTrivia=Ja,function(l){l[l.Normal=0]="Normal",l[l.Generator=1]="Generator",l[l.Async=2]="Async",l[l.Invalid=4]="Invalid",l[l.AsyncGenerator=3]="AsyncGenerator"}(e.FunctionFlags||(e.FunctionFlags={}));function Zn(l){if(!l)return 4;var ee=0;switch(l.kind){case 255:case 212:case 168:l.asteriskToken&&(ee|=1);case 213:rc(l,256)&&(ee|=2);break}return l.body||(ee|=4),ee}e.getFunctionFlags=Zn;function Oc(l){switch(l.kind){case 255:case 212:case 213:case 168:return l.body!==void 0&&l.asteriskToken===void 0&&rc(l,256)}return!1}e.isAsyncFunction=Oc;function ks(l){return e.isStringLiteralLike(l)||e.isNumericLiteral(l)}e.isStringOrNumericLiteralLike=ks;function yf(l){return e.isPrefixUnaryExpression(l)&&(l.operator===39||l.operator===40)&&e.isNumericLiteral(l.operand)}e.isSignedNumericLiteral=yf;function Ou(l){var ee=e.getNameOfDeclaration(l);return!!ee&&kd(ee)}e.hasDynamicName=Ou;function kd(l){if(!(l.kind===161||l.kind===206))return!1;var ee=e.isElementAccessExpression(l)?Si(l.argumentExpression):l.expression;return!ks(ee)&&!yf(ee)}e.isDynamicName=kd;function Uo(l){switch(l.kind){case 79:case 80:return l.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(l.text);case 161:var ee=l.expression;return ks(ee)?e.escapeLeadingUnderscores(ee.text):yf(ee)?ee.operator===40?e.tokenToString(ee.operator)+ee.operand.text:ee.operand.text:void 0;default:return e.Debug.assertNever(l)}}e.getPropertyNameForPropertyNameNode=Uo;function $f(l){switch(l.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}e.isPropertyNameLiteral=$f;function Od(l){return e.isMemberName(l)?e.idText(l):l.text}e.getTextOfIdentifierOrLiteral=Od;function Rd(l){return e.isMemberName(l)?l.escapedText:e.escapeLeadingUnderscores(l.text)}e.getEscapedTextOfIdentifierOrLiteral=Rd;function Xp(l){return"__@".concat(e.getSymbolId(l),"@").concat(l.escapedName)}e.getPropertyNameForUniqueESSymbol=Xp;function yp(l,ee){return"__#".concat(e.getSymbolId(l),"@").concat(ee)}e.getSymbolNameForPrivateIdentifier=yp;function Xl(l){return e.startsWith(l.escapedName,"__@")}e.isKnownSymbol=Xl;function C_(l){return e.startsWith(l.escapedName,"__#")}e.isPrivateIdentifierSymbol=C_;function ed(l){return l.kind===79&&l.escapedText==="Symbol"}e.isESSymbolIdentifier=ed;function bp(l){return l.escapedText==="push"||l.escapedText==="unshift"}e.isPushOrUnshiftIdentifier=bp;function wd(l){var ee=Md(l);return ee.kind===163}e.isParameterDeclaration=wd;function Md(l){for(;l.kind===202;)l=l.parent.parent;return l}e.getRootDeclaration=Md;function Pd(l){var ee=l.kind;return ee===170||ee===212||ee===255||ee===213||ee===168||ee===171||ee===172||ee===260||ee===303}e.nodeStartsNewLexicalEnvironment=Pd;function Fd(l){return Wg(l.pos)||Wg(l.end)}e.nodeIsSynthesized=Fd;function Ep(l){return e.getParseTreeNode(l,e.isSourceFile)||l}e.getOriginalSourceFile=Ep,function(l){l[l.Left=0]="Left",l[l.Right=1]="Right"}(e.Associativity||(e.Associativity={}));function Yp(l){var ee=Bd(l),cr=l.kind===208&&l.arguments!==void 0;return Gd(l.kind,ee,cr)}e.getExpressionAssociativity=Yp;function Gd(l,ee,cr){switch(l){case 208:return cr?0:1;case 218:case 215:case 216:case 214:case 217:case 221:case 223:return 1;case 220:switch(ee){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}e.getOperatorAssociativity=Gd;function Qp(l){var ee=Bd(l),cr=l.kind===208&&l.arguments!==void 0;return fu(l.kind,ee,cr)}e.getExpressionPrecedence=Qp;function Bd(l){return l.kind===220?l.operatorToken.kind:l.kind===218||l.kind===219?l.operator:l.kind}e.getOperator=Bd,function(l){l[l.Comma=0]="Comma",l[l.Spread=1]="Spread",l[l.Yield=2]="Yield",l[l.Assignment=3]="Assignment",l[l.Conditional=4]="Conditional",l[l.Coalesce=4]="Coalesce",l[l.LogicalOR=5]="LogicalOR",l[l.LogicalAND=6]="LogicalAND",l[l.BitwiseOR=7]="BitwiseOR",l[l.BitwiseXOR=8]="BitwiseXOR",l[l.BitwiseAND=9]="BitwiseAND",l[l.Equality=10]="Equality",l[l.Relational=11]="Relational",l[l.Shift=12]="Shift",l[l.Additive=13]="Additive",l[l.Multiplicative=14]="Multiplicative",l[l.Exponentiation=15]="Exponentiation",l[l.Unary=16]="Unary",l[l.Update=17]="Update",l[l.LeftHandSide=18]="LeftHandSide",l[l.Member=19]="Member",l[l.Primary=20]="Primary",l[l.Highest=20]="Highest",l[l.Lowest=0]="Lowest",l[l.Invalid=-1]="Invalid"}(e.OperatorPrecedence||(e.OperatorPrecedence={}));function fu(l,ee,cr){switch(l){case 349:return 0;case 224:return 1;case 223:return 2;case 221:return 4;case 220:switch(ee){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 _c(ee)}case 210:case 229:case 218:case 215:case 216:case 214:case 217:return 16;case 219:return 17;case 207:return 18;case 208:return cr?19:18;case 209:case 205:case 206:case 230:return 19;case 228:return 11;case 108:case 106:case 79:case 80:case 104:case 110:case 95:case 8:case 9:case 10:case 203:case 204:case 212:case 213:case 225:case 13:case 14:case 222:case 211:case 226:case 277:case 278:case 281:return 20;default:return-1}}e.getOperatorPrecedence=fu;function _c(l){switch(l){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 127: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}e.getBinaryOperatorPrecedence=_c;function mc(l){return e.filter(l,function(ee){switch(ee.kind){case 287:return!!ee.expression;case 11:return!ee.containsOnlyTriviaWhiteSpaces;default:return!0}})}e.getSemanticJsxChildren=mc;function ec(){var l=[],ee=[],cr=new e.Map,Ur=!1;return{add:xn,lookup:Nt,getGlobalDiagnostics:Bn,getDiagnostics:ga};function Nt(Ei){var li;if(Ei.file?li=cr.get(Ei.file.fileName):li=l,!!li){var go=e.binarySearch(li,Ei,e.identity,mu);if(go>=0)return li[go]}}function xn(Ei){var li;Ei.file?(li=cr.get(Ei.file.fileName),li||(li=[],cr.set(Ei.file.fileName,li),e.insertSorted(ee,Ei.file.fileName,e.compareStringsCaseSensitive))):(Ur&&(Ur=!1,l=l.slice()),li=l),e.insertSorted(li,Ei,rm)}function Bn(){return Ur=!0,l}function ga(Ei){if(Ei)return cr.get(Ei)||[];var li=e.flatMapToMutable(ee,function(go){return cr.get(go)});return l.length&&li.unshift.apply(li,l),li}}e.createDiagnosticCollection=ec;var Ud=/\$\{/g;function bf(l){return l.replace(Ud,"\\${")}function Tp(l){return l&&!!(e.isNoSubstitutionTemplateLiteral(l)?l.templateFlags:l.head.templateFlags||e.some(l.templateSpans,function(ee){return!!ee.literal.templateFlags}))}e.hasInvalidEscape=Tp;var Sp=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ef=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Zp=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Vd=new e.Map(e.getEntries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"}));function rd(l){var ee=l.toString(16).toUpperCase(),cr=("0000"+ee).slice(-4);return"\\u"+cr}function td(l,ee,cr){if(l.charCodeAt(0)===0){var Ur=cr.charCodeAt(ee+l.length);return Ur>=48&&Ur<=57?"\\x00":"\\0"}return Vd.get(l)||rd(l.charCodeAt(0))}function Ru(l,ee){var cr=ee===96?Zp:ee===39?Ef:Sp;return l.replace(cr,td)}e.escapeString=Ru;var wu=/[^\u0000-\u007F]/g;function Mu(l,ee){return l=Ru(l,ee),wu.test(l)?l.replace(wu,function(cr){return rd(cr.charCodeAt(0))}):l}e.escapeNonAsciiString=Mu;var js=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,gc=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,nd=new e.Map(e.getEntries({'"':"&quot;","'":"&apos;"}));function x_(l){var ee=l.toString(16).toUpperCase();return"&#x"+ee+";"}function ad(l){return l.charCodeAt(0)===0?"&#0;":nd.get(l)||x_(l.charCodeAt(0))}function Pu(l,ee){var cr=ee===39?gc:js;return l.replace(cr,ad)}e.escapeJsxAttributeString=Pu;function I_(l){var ee=l.length;return ee>=2&&l.charCodeAt(0)===l.charCodeAt(ee-1)&&vc(l.charCodeAt(0))?l.substring(1,ee-1):l}e.stripQuotes=I_;function vc(l){return l===39||l===34||l===96}function Pl(l){var ee=l.charCodeAt(0);return ee>=97&&ee<=122||e.stringContains(l,"-")||e.stringContains(l,":")}e.isIntrinsicJsxName=Pl;var Sl=[""," "];function Fl(l){for(var ee=Sl[1],cr=Sl.length;cr<=l;cr++)Sl.push(Sl[cr-1]+ee);return Sl[l]}e.getIndentString=Fl;function pl(){return Sl[1].length}e.getIndentSize=pl;function Dp(l){var ee,cr,Ur,Nt,xn,Bn=!1;function ga(Eo){var zu=e.computeLineStarts(Eo);zu.length>1?(Nt=Nt+zu.length-1,xn=ee.length-Eo.length+e.last(zu),Ur=xn-ee.length===0):Ur=!1}function Ei(Eo){Eo&&Eo.length&&(Ur&&(Eo=Fl(cr)+Eo,Ur=!1),ee+=Eo,ga(Eo))}function li(Eo){Eo&&(Bn=!1),Ei(Eo)}function go(Eo){Eo&&(Bn=!0),Ei(Eo)}function wi(){ee="",cr=0,Ur=!0,Nt=0,xn=0,Bn=!1}function Is(Eo){Eo!==void 0&&(ee+=Eo,ga(Eo),Bn=!1)}function Ks(Eo){Eo&&Eo.length&&li(Eo)}function hs(Eo){(!Ur||Eo)&&(ee+=l,Nt++,xn=ee.length,Ur=!0,Bn=!1)}function ic(){return Ur?ee.length:ee.length+l.length}return wi(),{write:li,rawWrite:Is,writeLiteral:Ks,writeLine:hs,increaseIndent:function(){cr++},decreaseIndent:function(){cr--},getIndent:function(){return cr},getTextPos:function(){return ee.length},getLine:function(){return Nt},getColumn:function(){return Ur?cr*pl():ee.length-xn},getText:function(){return ee},isAtStartOfLine:function(){return Ur},hasTrailingComment:function(){return Bn},hasTrailingWhitespace:function(){return!!ee.length&&e.isWhiteSpaceLike(ee.charCodeAt(ee.length-1))},clear:wi,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return!1},writeKeyword:li,writeOperator:li,writeParameter:li,writeProperty:li,writePunctuation:li,writeSpace:li,writeStringLiteral:li,writeSymbol:function(Eo,zu){return li(Eo)},writeTrailingSemicolon:li,writeComment:go,getTextPosWithWriteLine:ic}}e.createTextWriter=Dp;function Tf(l){var ee=!1;function cr(){ee&&(l.writeTrailingSemicolon(";"),ee=!1)}return Rn(Rn({},l),{writeTrailingSemicolon:function(){ee=!0},writeLiteral:function(Ur){cr(),l.writeLiteral(Ur)},writeStringLiteral:function(Ur){cr(),l.writeStringLiteral(Ur)},writeSymbol:function(Ur,Nt){cr(),l.writeSymbol(Ur,Nt)},writePunctuation:function(Ur){cr(),l.writePunctuation(Ur)},writeKeyword:function(Ur){cr(),l.writeKeyword(Ur)},writeOperator:function(Ur){cr(),l.writeOperator(Ur)},writeParameter:function(Ur){cr(),l.writeParameter(Ur)},writeSpace:function(Ur){cr(),l.writeSpace(Ur)},writeProperty:function(Ur){cr(),l.writeProperty(Ur)},writeComment:function(Ur){cr(),l.writeComment(Ur)},writeLine:function(){cr(),l.writeLine()},increaseIndent:function(){cr(),l.increaseIndent()},decreaseIndent:function(){cr(),l.decreaseIndent()}})}e.getTrailingSemicolonDeferringWriter=Tf;function Wd(l){return l.useCaseSensitiveFileNames?l.useCaseSensitiveFileNames():!1}e.hostUsesCaseSensitiveFileNames=Wd;function id(l){return e.createGetCanonicalFileName(Wd(l))}e.hostGetCanonicalFileName=id;function mo(l,ee,cr){return ee.moduleName||ms(l,ee.fileName,cr&&cr.fileName)}e.getResolvedExternalModuleName=mo;function Dl(l,ee){return l.getCanonicalFileName(e.getNormalizedAbsolutePath(ee,l.getCurrentDirectory()))}function wo(l,ee,cr){var Ur=ee.getExternalModuleFileFromDeclaration(cr);if(!(!Ur||Ur.isDeclarationFile)){var Nt=zl(cr);if(!(Nt&&e.isStringLiteralLike(Nt)&&!e.pathIsRelative(Nt.text)&&Dl(l,Ur.path).indexOf(Dl(l,e.ensureTrailingDirectorySeparator(l.getCommonSourceDirectory())))===-1))return mo(l,Ur)}}e.getExternalModuleNameFromDeclaration=wo;function ms(l,ee,cr){var Ur=function(Ei){return l.getCanonicalFileName(Ei)},Nt=e.toPath(cr?e.getDirectoryPath(cr):l.getCommonSourceDirectory(),l.getCurrentDirectory(),Ur),xn=e.getNormalizedAbsolutePath(ee,l.getCurrentDirectory()),Bn=e.getRelativePathToDirectoryOrUrl(Nt,xn,Nt,Ur,!1),ga=Um(Bn);return cr?e.ensurePathIsNonModuleName(ga):ga}e.getExternalModuleNameFromPath=ms;function $p(l,ee,cr){var Ur=ee.getCompilerOptions(),Nt;return Ur.outDir?Nt=Um(sl(l,ee,Ur.outDir)):Nt=Um(l),Nt+cr}e.getOwnEmitOutputFilePath=$p;function Yl(l,ee){return od(l,ee.getCompilerOptions(),ee.getCurrentDirectory(),ee.getCommonSourceDirectory(),function(cr){return ee.getCanonicalFileName(cr)})}e.getDeclarationEmitOutputFilePath=Yl;function od(l,ee,cr,Ur,Nt){var xn=ee.declarationDir||ee.outDir,Bn=xn?Dn(l,xn,cr,Ur,Nt):l,ga=Ln(Bn);return Um(Bn)+ga}e.getDeclarationEmitOutputFilePathWorker=od;function Ln(l){return e.fileExtensionIsOneOf(l,[".mjs",".mts"])?".d.mts":e.fileExtensionIsOneOf(l,[".cjs",".cts"])?".d.cts":e.fileExtensionIsOneOf(l,[".json"])?".json.d.ts":".d.ts"}e.getDeclarationEmitExtensionForPath=Ln;function us(l){return l.outFile||l.out}e.outFile=us;function ii(l,ee){var cr,Ur;if(l.paths)return(cr=l.baseUrl)!==null&&cr!==void 0?cr:e.Debug.checkDefined(l.pathsBasePath||((Ur=ee.getCurrentDirectory)===null||Ur===void 0?void 0:Ur.call(ee)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}e.getPathsBasePath=ii;function Rc(l,ee,cr){var Ur=l.getCompilerOptions();if(us(Ur)){var Nt=vd(Ur),xn=Ur.emitDeclarationOnly||Nt===e.ModuleKind.AMD||Nt===e.ModuleKind.System;return e.filter(l.getSourceFiles(),function(ga){return(xn||!e.isExternalModule(ga))&&sd(ga,l,cr)})}else{var Bn=ee===void 0?l.getSourceFiles():[ee];return e.filter(Bn,function(ga){return sd(ga,l,cr)})}}e.getSourceFilesToEmit=Rc;function sd(l,ee,cr){var Ur=ee.getCompilerOptions();return!(Ur.noEmitForJsFiles&&mr(l))&&!l.isDeclarationFile&&!ee.isSourceFileFromExternalLibrary(l)&&(cr||!(Cr(l)&&ee.getResolvedProjectReferenceToRedirect(l.fileName))&&!ee.isSourceOfProjectReferenceRedirect(l.fileName))}e.sourceFileMayBeEmitted=sd;function sl(l,ee,cr){return Dn(l,cr,ee.getCurrentDirectory(),ee.getCommonSourceDirectory(),function(Ur){return ee.getCanonicalFileName(Ur)})}e.getSourceFilePathInNewDir=sl;function Dn(l,ee,cr,Ur,Nt){var xn=e.getNormalizedAbsolutePath(l,cr),Bn=Nt(xn).indexOf(Nt(Ur))===0;return xn=Bn?xn.substring(Ur.length):xn,e.combinePaths(ee,xn)}e.getSourceFilePathInNewDirWorker=Dn;function N_(l,ee,cr,Ur,Nt,xn){l.writeFile(cr,Ur,Nt,function(Bn){ee.add(nf(e.Diagnostics.Could_not_write_file_0_Colon_1,cr,Bn))},xn)}e.writeFile=N_;function rs(l,ee,cr){if(l.length>e.getRootLength(l)&&!cr(l)){var Ur=e.getDirectoryPath(l);rs(Ur,ee,cr),ee(l)}}function fs(l,ee,cr,Ur,Nt,xn){try{Ur(l,ee,cr)}catch{rs(e.getDirectoryPath(e.normalizePath(l)),Nt,xn),Ur(l,ee,cr)}}e.writeFileEnsuringDirectories=fs;function wc(l,ee){var cr=e.getLineStarts(l);return e.computeLineOfPosition(cr,ee)}e.getLineOfLocalPosition=wc;function Hs(l,ee){return e.computeLineOfPosition(l,ee)}e.getLineOfLocalPositionFromLineMap=Hs;function Sf(l){return e.find(l.members,function(ee){return e.isConstructorDeclaration(ee)&&P(ee.body)})}e.getFirstConstructorWithBody=Sf;function ws(l){if(l&&l.parameters.length>0){var ee=l.parameters.length===2&&Df(l.parameters[0]);return l.parameters[ee?1:0]}}e.getSetAccessorValueParameter=ws;function Mc(l){var ee=ws(l);return ee&&ee.type}e.getSetAccessorTypeAnnotationNode=Mc;function Qu(l){if(l.parameters.length&&!e.isJSDocSignature(l)){var ee=l.parameters[0];if(Df(ee))return ee}}e.getThisParameter=Qu;function Df(l){return hc(l.name)}e.parameterIsThisKeyword=Df;function hc(l){return!!l&&l.kind===79&&ll(l)}e.isThisIdentifier=hc;function Lf(l){if(!hc(l))return!1;for(;e.isQualifiedName(l.parent)&&l.parent.left===l;)l=l.parent;return l.parent.kind===180}e.isThisInTypeQuery=Lf;function ll(l){return l.originalKeywordKind===108}e.identifierIsThisKeyword=ll;function e_(l,ee){var cr,Ur,Nt,xn;return Ou(ee)?(cr=ee,ee.kind===171?Nt=ee:ee.kind===172?xn=ee:e.Debug.fail("Accessor has wrong kind")):e.forEach(l,function(Bn){if(e.isAccessor(Bn)&&Zu(Bn)===Zu(ee)){var ga=Uo(Bn.name),Ei=Uo(ee.name);ga===Ei&&(cr?Ur||(Ur=Bn):cr=Bn,Bn.kind===171&&!Nt&&(Nt=Bn),Bn.kind===172&&!xn&&(xn=Bn))}}),{firstAccessor:cr,secondAccessor:Ur,getAccessor:Nt,setAccessor:xn}}e.getAllAccessorDeclarations=e_;function Fu(l){if(!(!Be(l)&&e.isFunctionDeclaration(l))){var ee=l.type;return ee||!Be(l)?ee:e.isJSDocPropertyLikeTag(l)?l.typeExpression&&l.typeExpression.type:e.getJSDocType(l)}}e.getEffectiveTypeAnnotationNode=Fu;function Af(l){return l.type}e.getTypeAnnotationNode=Af;function ld(l){return e.isJSDocSignature(l)?l.type&&l.type.typeExpression&&l.type.typeExpression.type:l.type||(Be(l)?e.getJSDocReturnType(l):void 0)}e.getEffectiveReturnTypeNode=ld;function cd(l){return e.flatMap(e.getJSDocTags(l),function(ee){return Cf(ee)?ee.typeParameters:void 0})}e.getJSDocTypeParameterDeclarations=cd;function Cf(l){return e.isJSDocTemplateTag(l)&&!(l.parent.kind===318&&l.parent.tags.some(Ws))}function yc(l){var ee=ws(l);return ee&&Fu(ee)}e.getEffectiveSetAccessorTypeAnnotationNode=yc;function ud(l,ee,cr,Ur){xf(l,ee,cr.pos,Ur)}e.emitNewLineBeforeLeadingComments=ud;function xf(l,ee,cr,Ur){Ur&&Ur.length&&cr!==Ur[0].pos&&Hs(l,cr)!==Hs(l,Ur[0].pos)&&ee.writeLine()}e.emitNewLineBeforeLeadingCommentsOfPosition=xf;function Gu(l,ee,cr,Ur){cr!==Ur&&Hs(l,cr)!==Hs(l,Ur)&&ee.writeLine()}e.emitNewLineBeforeLeadingCommentOfPosition=Gu;function Js(l,ee,cr,Ur,Nt,xn,Bn,ga){if(Ur&&Ur.length>0){Nt&&cr.writeSpace(" ");for(var Ei=!1,li=0,go=Ur;li<go.length;li++){var wi=go[li];Ei&&(cr.writeSpace(" "),Ei=!1),ga(l,ee,cr,wi.pos,wi.end,Bn),wi.hasTrailingNewLine?cr.writeLine():Ei=!0}Ei&&xn&&cr.writeSpace(" ")}}e.emitComments=Js;function Gl(l,ee,cr,Ur,Nt,xn,Bn){var ga,Ei;if(Bn?Nt.pos===0&&(ga=e.filter(e.getLeadingCommentRanges(l,Nt.pos),zu)):ga=e.getLeadingCommentRanges(l,Nt.pos),ga){for(var li=[],go=void 0,wi=0,Is=ga;wi<Is.length;wi++){var Ks=Is[wi];if(go){var hs=Hs(ee,go.end),ic=Hs(ee,Ks.pos);if(ic>=hs+2)break}li.push(Ks),go=Ks}if(li.length){var hs=Hs(ee,e.last(li).end),Eo=Hs(ee,e.skipTrivia(l,Nt.pos));Eo>=hs+2&&(ud(ee,cr,Nt,ga),Js(l,ee,cr,li,!1,!0,xn,Ur),Ei={nodePos:Nt.pos,detachedCommentEndPos:e.last(li).end})}}return Ei;function zu(c_){return U(l,c_.pos)}}e.emitDetachedComments=Gl;function Kc(l,ee,cr,Ur,Nt,xn){if(l.charCodeAt(Ur+1)===42)for(var Bn=e.computeLineAndCharacterOfPosition(ee,Ur),ga=ee.length,Ei=void 0,li=Ur,go=Bn.line;li<Nt;go++){var wi=go+1===ga?l.length+1:ee[go+1];if(li!==Ur){Ei===void 0&&(Ei=Ga(l,ee[Bn.line],Ur));var Is=cr.getIndent()*pl(),Ks=Is-Ei+Ga(l,li,wi);if(Ks>0){var hs=Ks%pl(),ic=Fl((Ks-hs)/pl());for(cr.rawWrite(ic);hs;)cr.rawWrite(" "),hs--}else cr.rawWrite("")}fd(l,Nt,cr,xn,li,wi),li=wi}else cr.writeComment(l.substring(Ur,Nt))}e.writeCommentRange=Kc;function fd(l,ee,cr,Ur,Nt,xn){var Bn=Math.min(ee,xn-1),ga=e.trimString(l.substring(Nt,Bn));ga?(cr.writeComment(ga),Bn!==ee&&cr.writeLine()):cr.rawWrite(Ur)}function Ga(l,ee,cr){for(var Ur=0;ee<cr&&e.isWhiteSpaceSingleLine(l.charCodeAt(ee));ee++)l.charCodeAt(ee)===9?Ur+=pl()-Ur%pl():Ur++;return Ur}function wn(l){return jo(l)!==0}e.hasEffectiveModifiers=wn;function Ts(l){return Kd(l)!==0}e.hasSyntacticModifiers=Ts;function jd(l,ee){return!!$u(l,ee)}e.hasEffectiveModifier=jd;function rc(l,ee){return!!Qs(l,ee)}e.hasSyntacticModifier=rc;function Zu(l){return e.isClassElement(l)&&zc(l)||e.isClassStaticBlockDeclaration(l)}e.isStatic=Zu;function zc(l){return rc(l,32)}e.hasStaticModifier=zc;function Hd(l){return jd(l,16384)}e.hasOverrideModifier=Hd;function Ll(l){return rc(l,128)}e.hasAbstractModifier=Ll;function tc(l){return rc(l,2)}e.hasAmbientModifier=tc;function If(l){return jd(l,64)}e.hasEffectiveReadonlyModifier=If;function $u(l,ee){return jo(l)&ee}e.getSelectedEffectiveModifierFlags=$u;function Qs(l,ee){return Kd(l)&ee}e.getSelectedSyntacticModifierFlags=Qs;function Jd(l,ee,cr){return l.kind>=0&&l.kind<=159?0:(l.modifierFlagsCache&536870912||(l.modifierFlagsCache=Bu(l)|536870912),ee&&!(l.modifierFlagsCache&4096)&&(cr||Be(l))&&l.parent&&(l.modifierFlagsCache|=nc(l)|4096),l.modifierFlagsCache&-536875009)}function jo(l){return Jd(l,!0)}e.getEffectiveModifierFlags=jo;function Bl(l){return Jd(l,!0,!0)}e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=Bl;function Kd(l){return Jd(l,!1)}e.getSyntacticModifierFlags=Kd;function nc(l){var ee=0;return l.parent&&!e.isParameter(l)&&(Be(l)&&(e.getJSDocPublicTagNoCache(l)&&(ee|=4),e.getJSDocPrivateTagNoCache(l)&&(ee|=8),e.getJSDocProtectedTagNoCache(l)&&(ee|=16),e.getJSDocReadonlyTagNoCache(l)&&(ee|=64),e.getJSDocOverrideTagNoCache(l)&&(ee|=16384)),e.getJSDocDeprecatedTagNoCache(l)&&(ee|=8192)),ee}function Nf(l){return Bu(l)|nc(l)}e.getEffectiveModifierFlagsNoCache=Nf;function Bu(l){var ee=dd(l.modifiers);return(l.flags&4||l.kind===79&&l.isInJSDocNamespace)&&(ee|=1),ee}e.getSyntacticModifierFlagsNoCache=Bu;function dd(l){var ee=0;if(l)for(var cr=0,Ur=l;cr<Ur.length;cr++){var Nt=Ur[cr];ee|=zd(Nt.kind)}return ee}e.modifiersToFlags=dd;function zd(l){switch(l){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 128;case 93:return 1;case 135:return 2;case 85:return 2048;case 88:return 512;case 131:return 256;case 144:return 64;case 158:return 16384}return 0}e.modifierToFlag=zd;function Al(l){return l?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(l)):void 0}e.createModifiers=Al;function ts(l){return l===56||l===55||l===53}e.isLogicalOperator=ts;function du(l){return l===75||l===76||l===77}e.isLogicalOrCoalescingAssignmentOperator=du;function qd(l){return du(l.operatorToken.kind)}e.isLogicalOrCoalescingAssignmentExpression=qd;function ac(l){return l>=63&&l<=78}e.isAssignmentOperator=ac;function kf(l){var ee=Uu(l);return ee&&!ee.isImplements?ee.class:void 0}e.tryGetClassExtendingExpressionWithTypeArguments=kf;function Uu(l){return e.isExpressionWithTypeArguments(l)&&e.isHeritageClause(l.parent)&&e.isClassLike(l.parent.parent)?{class:l.parent.parent,isImplements:l.parent.token===117}:void 0}e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Uu;function Xd(l,ee){return e.isBinaryExpression(l)&&(ee?l.operatorToken.kind===63:ac(l.operatorToken.kind))&&e.isLeftHandSideExpression(l.left)}e.isAssignmentExpression=Xd;function ef(l){return Xd(l.parent)&&l.parent.left===l}e.isLeftHandSideOfAssignment=ef;function Of(l){if(Xd(l,!0)){var ee=l.left.kind;return ee===204||ee===203}return!1}e.isDestructuringAssignment=Of;function bc(l){return kf(l)!==void 0}e.isExpressionWithTypeArgumentsInClassExtendsClause=bc;function qc(l){return l.kind===79||Xc(l)}e.isEntityNameExpression=qc;function rf(l){switch(l.kind){case 79:return l;case 160:do l=l.left;while(l.kind!==79);return l;case 205:do l=l.expression;while(l.kind!==79);return l}}e.getFirstIdentifier=rf;function Vu(l){return l.kind===79||l.kind===108||l.kind===106||l.kind===230||l.kind===205&&Vu(l.expression)||l.kind===211&&Vu(l.expression)}e.isDottedName=Vu;function Xc(l){return e.isPropertyAccessExpression(l)&&e.isIdentifier(l.name)&&qc(l.expression)}e.isPropertyAccessEntityNameExpression=Xc;function Yd(l){if(e.isPropertyAccessExpression(l)){var ee=Yd(l.expression);if(ee!==void 0)return ee+"."+ir(l.name)}else if(e.isElementAccessExpression(l)){var ee=Yd(l.expression);if(ee!==void 0&&e.isPropertyName(l.argumentExpression))return ee+"."+Uo(l.argumentExpression)}else if(e.isIdentifier(l))return e.unescapeLeadingUnderscores(l.escapedText)}e.tryGetPropertyAccessOrIdentifierToString=Yd;function Ec(l){return ft(l)&&Ia(l)==="prototype"}e.isPrototypeAccess=Ec;function Wu(l){return l.parent.kind===160&&l.parent.right===l||l.parent.kind===205&&l.parent.name===l}e.isRightSideOfQualifiedNameOrPropertyAccess=Wu;function r_(l){return e.isQualifiedName(l.parent)&&l.parent.right===l||e.isPropertyAccessExpression(l.parent)&&l.parent.name===l||e.isJSDocMemberName(l.parent)&&l.parent.right===l}e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=r_;function Wa(l){return l.kind===204&&l.properties.length===0}e.isEmptyObjectLiteral=Wa;function pu(l){return l.kind===203&&l.elements.length===0}e.isEmptyArrayLiteral=pu;function gn(l){if(!(!Rf(l)||!l.declarations))for(var ee=0,cr=l.declarations;ee<cr.length;ee++){var Ur=cr[ee];if(Ur.localSymbol)return Ur.localSymbol}}e.getLocalSymbolForExportDefault=gn;function Rf(l){return l&&e.length(l.declarations)>0&&rc(l.declarations[0],512)}function Qd(l){return e.find(hu,function(ee){return e.fileExtensionIs(l,ee)})}e.tryExtractTSExtension=Qd;function Zd(l){for(var ee=[],cr=l.length,Ur=0;Ur<cr;Ur++){var Nt=l.charCodeAt(Ur);Nt<128?ee.push(Nt):Nt<2048?(ee.push(Nt>>6|192),ee.push(Nt&63|128)):Nt<65536?(ee.push(Nt>>12|224),ee.push(Nt>>6&63|128),ee.push(Nt&63|128)):Nt<131072?(ee.push(Nt>>18|240),ee.push(Nt>>12&63|128),ee.push(Nt>>6&63|128),ee.push(Nt&63|128)):e.Debug.assert(!1,"Unexpected code point")}return ee}var Pc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function $d(l){for(var ee="",cr=Zd(l),Ur=0,Nt=cr.length,xn,Bn,ga,Ei;Ur<Nt;)xn=cr[Ur]>>2,Bn=(cr[Ur]&3)<<4|cr[Ur+1]>>4,ga=(cr[Ur+1]&15)<<2|cr[Ur+2]>>6,Ei=cr[Ur+2]&63,Ur+1>=Nt?ga=Ei=64:Ur+2>=Nt&&(Ei=64),ee+=Pc.charAt(xn)+Pc.charAt(Bn)+Pc.charAt(ga)+Pc.charAt(Ei),Ur+=3;return ee}e.convertToBase64=$d;function k_(l){for(var ee="",cr=0,Ur=l.length;cr<Ur;){var Nt=l[cr];if(Nt<128)ee+=String.fromCharCode(Nt),cr++;else if((Nt&192)===192){var xn=Nt&63;cr++;for(var Bn=l[cr];(Bn&192)===128;)xn=xn<<6|Bn&63,cr++,Bn=l[cr];ee+=String.fromCharCode(xn)}else ee+=String.fromCharCode(Nt),cr++}return ee}function Yc(l,ee){return l&&l.base64encode?l.base64encode(ee):$d(ee)}e.base64encode=Yc;function Lp(l,ee){if(l&&l.base64decode)return l.base64decode(ee);for(var cr=ee.length,Ur=[],Nt=0;Nt<cr&&ee.charCodeAt(Nt)!==Pc.charCodeAt(64);){var xn=Pc.indexOf(ee[Nt]),Bn=Pc.indexOf(ee[Nt+1]),ga=Pc.indexOf(ee[Nt+2]),Ei=Pc.indexOf(ee[Nt+3]),li=(xn&63)<<2|Bn>>4&3,go=(Bn&15)<<4|ga>>2&15,wi=(ga&3)<<6|Ei&63;go===0&&ga!==0?Ur.push(li):wi===0&&Ei!==0?Ur.push(li,go):Ur.push(li,go,wi),Nt+=4}return k_(Ur)}e.base64decode=Lp;function pd(l,ee){try{var cr=ee.readFile(l);if(!cr)return{};var Ur=e.parseConfigFileTextToJson(l,cr);return Ur.error?{}:Ur.config}catch{return{}}}e.readJson=pd;function Ap(l,ee){return!ee.directoryExists||ee.directoryExists(l)}e.directoryProbablyExists=Ap;var Ul=`\r
  24. `,wf=`
  25. `;function _d(l,ee){switch(l.newLine){case 0:return Ul;case 1:return wf}return ee?ee():e.sys?e.sys.newLine:Ul}e.getNewLineCharacter=_d;function Fc(l,ee){return ee===void 0&&(ee=l),e.Debug.assert(ee>=l||ee===-1),{pos:l,end:ee}}e.createRange=Fc;function Qc(l,ee){return Fc(l.pos,ee)}e.moveRangeEnd=Qc;function Mf(l,ee){return Fc(ee,l.end)}e.moveRangePos=Mf;function E(l){return l.decorators&&l.decorators.length>0?Mf(l,l.decorators.end):l}e.moveRangePastDecorators=E;function Qe(l){return l.modifiers&&l.modifiers.length>0?Mf(l,l.modifiers.end):E(l)}e.moveRangePastModifiers=Qe;function nt(l){return l.pos===l.end}e.isCollapsedRange=nt;function Ot(l,ee){return Fc(l,l+e.tokenToString(ee).length)}e.createTokenRange=Ot;function fa(l,ee){return ti(l,l,ee)}e.rangeIsOnSingleLine=fa;function Oa(l,ee,cr){return os(is(l,cr,!1),is(ee,cr,!1),cr)}e.rangeStartPositionsAreOnSameLine=Oa;function ia(l,ee,cr){return os(l.end,ee.end,cr)}e.rangeEndPositionsAreOnSameLine=ia;function ti(l,ee,cr){return os(is(l,cr,!1),ee.end,cr)}e.rangeStartIsOnSameLineAsRangeEnd=ti;function Na(l,ee,cr){return os(l.end,is(ee,cr,!1),cr)}e.rangeEndIsOnSameLineAsRangeStart=Na;function Ua(l,ee,cr,Ur){var Nt=is(ee,cr,Ur);return e.getLinesBetweenPositions(cr,l.end,Nt)}e.getLinesBetweenRangeEndAndRangeStart=Ua;function Go(l,ee,cr){return e.getLinesBetweenPositions(cr,l.end,ee.end)}e.getLinesBetweenRangeEndPositions=Go;function cl(l,ee){return!os(l.pos,l.end,ee)}e.isNodeArrayMultiLine=cl;function os(l,ee,cr){return e.getLinesBetweenPositions(cr,l,ee)===0}e.positionsAreOnSameLine=os;function is(l,ee,cr){return Wg(l.pos)?-1:e.skipTrivia(ee.text,l.pos,!1,cr)}e.getStartPositionOfRange=is;function Vl(l,ee,cr,Ur){var Nt=e.skipTrivia(cr.text,l,!1,Ur),xn=$c(Nt,ee,cr);return e.getLinesBetweenPositions(cr,xn??ee,Nt)}e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=Vl;function Zc(l,ee,cr,Ur){var Nt=e.skipTrivia(cr.text,l,!1,Ur);return e.getLinesBetweenPositions(cr,l,Math.min(ee,Nt))}e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=Zc;function $c(l,ee,cr){for(ee===void 0&&(ee=0);l-- >ee;)if(!e.isWhiteSpaceLike(cr.text.charCodeAt(l)))return l}function md(l){var ee=e.getParseTreeNode(l);if(ee)switch(ee.parent.kind){case 259:case 260:return ee===ee.parent.name}return!1}e.isDeclarationNameOfEnumOrNamespace=md;function t_(l){return e.filter(l.declarations,tf)}e.getInitializedVariables=t_;function tf(l){return l.initializer!==void 0}function Pf(l){return l.watch&&l.hasOwnProperty("watch")}e.isWatchSet=Pf;function n_(l){l.close()}e.closeFileWatcher=n_;function gd(l){return l.flags&33554432?l.checkFlags:0}e.getCheckFlags=gd;function Wl(l,ee){if(ee===void 0&&(ee=!1),l.valueDeclaration){var cr=ee&&l.declarations&&e.find(l.declarations,function(ga){return ga.kind===172})||l.valueDeclaration,Ur=e.getCombinedModifierFlags(cr);return l.parent&&l.parent.flags&32?Ur:Ur&-29}if(gd(l)&6){var Nt=l.checkFlags,xn=Nt&1024?8:Nt&256?4:16,Bn=Nt&2048?32:0;return xn|Bn}return l.flags&4194304?36:0}e.getDeclarationModifierFlagsFromSymbol=Wl;function ep(l,ee){return l.flags&2097152?ee.getAliasedSymbol(l):l}e.skipAlias=ep;function a_(l){return l.exportSymbol?l.exportSymbol.flags|l.flags:l.flags}e.getCombinedLocalAndExportSymbolFlags=a_;function xe(l){return at(l)===1}e.isWriteOnlyAccess=xe;function Er(l){return at(l)!==0}e.isWriteAccess=Er;var Fr;(function(l){l[l.Read=0]="Read",l[l.Write=1]="Write",l[l.ReadWrite=2]="ReadWrite"})(Fr||(Fr={}));function at(l){var ee=l.parent;if(!ee)return 0;switch(ee.kind){case 211:return at(ee);case 219:case 218:var cr=ee.operator;return cr===45||cr===46?ga():0;case 220:var Ur=ee,Nt=Ur.left,xn=Ur.operatorToken;return Nt===l&&ac(xn.kind)?xn.kind===63?1:ga():0;case 205:return ee.name!==l?0:at(ee);case 294:{var Bn=at(ee.parent);return l===ee.name?Ct(Bn):Bn}case 295:return l===ee.objectAssignmentInitializer?0:at(ee.parent);case 203:return at(ee);default:return 0}function ga(){return ee.parent&&fi(ee.parent).kind===237?1:2}}function Ct(l){switch(l){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(l)}}function Xt(l,ee){if(!l||!ee||Object.keys(l).length!==Object.keys(ee).length)return!1;for(var cr in l)if(typeof l[cr]=="object"){if(!Xt(l[cr],ee[cr]))return!1}else if(typeof l[cr]!="function"&&l[cr]!==ee[cr])return!1;return!0}e.compareDataObjects=Xt;function On(l,ee){l.forEach(ee),l.clear()}e.clearMap=On;function $n(l,ee,cr){var Ur=cr.onDeleteValue,Nt=cr.onExistingValue;l.forEach(function(xn,Bn){var ga=ee.get(Bn);ga===void 0?(l.delete(Bn),Ur(xn,Bn)):Nt&&Nt(xn,ga,Bn)})}e.mutateMapSkippingNewValues=$n;function wa(l,ee,cr){$n(l,ee,cr);var Ur=cr.createNewValue;ee.forEach(function(Nt,xn){l.has(xn)||l.set(xn,Ur(xn,Nt))})}e.mutateMap=wa;function Ea(l){if(l.flags&32){var ee=Ki(l);return!!ee&&rc(ee,128)}return!1}e.isAbstractConstructorSymbol=Ea;function Ki(l){var ee;return(ee=l.declarations)===null||ee===void 0?void 0:ee.find(e.isClassLike)}e.getClassLikeDeclarationOfSymbol=Ki;function Qo(l){return l.flags&3899393?l.objectFlags:0}e.getObjectFlags=Qo;function $i(l,ee){return ee.getSignaturesOfType(l,0).length!==0||ee.getSignaturesOfType(l,1).length!==0}e.typeHasCallOrConstructSignatures=$i;function Ho(l,ee){return!!e.forEachAncestorDirectory(l,function(cr){return ee(cr)?!0:void 0})}e.forSomeAncestorDirectory=Ho;function gs(l){return!!l&&!!l.declarations&&!!l.declarations[0]&&e.isNamespaceExportDeclaration(l.declarations[0])}e.isUMDExportSymbol=gs;function _l(l){var ee=l.moduleSpecifier;return e.isStringLiteral(ee)?ee.text:he(ee)}e.showModuleSpecifier=_l;function xs(l){var ee;return e.forEachChild(l,function(cr){P(cr)&&(ee=cr)},function(cr){for(var Ur=cr.length-1;Ur>=0;Ur--)if(P(cr[Ur])){ee=cr[Ur];break}}),ee}e.getLastChild=xs;function Cl(l,ee,cr){return cr===void 0&&(cr=!0),l.has(ee)?!1:(l.set(ee,cr),!0)}e.addToSeen=Cl;function bl(l){return e.isClassLike(l)||e.isInterfaceDeclaration(l)||e.isTypeLiteralNode(l)}e.isObjectTypeDeclaration=bl;function ju(l){return l>=176&&l<=199||l===130||l===154||l===146||l===157||l===147||l===133||l===149||l===150||l===114||l===152||l===143||l===227||l===310||l===311||l===312||l===313||l===314||l===315||l===316}e.isTypeNodeKind=ju;function ul(l){return l.kind===205||l.kind===206}e.isAccessExpression=ul;function Ms(l){return l.kind===205?l.name:(e.Debug.assert(l.kind===206),l.argumentExpression)}e.getNameOfAccessExpression=Ms;function Ff(l){switch(l.kind){case"text":case"internal":return!0;default:return!1}}e.isBundleFileTextLike=Ff;function _u(l){return l.kind===268||l.kind===272}e.isNamedImportsOrExports=_u;function ml(l){for(;ul(l);)l=l.expression;return l}e.getLeftmostAccessExpression=ml;function _(l,ee){for(;;){switch(l.kind){case 219:l=l.operand;continue;case 220:l=l.left;continue;case 221:l=l.condition;continue;case 209:l=l.tag;continue;case 207:if(ee)return l;case 228:case 206:case 205:case 229:case 348:l=l.expression;continue}return l}}e.getLeftmostExpression=_;function W(l,ee){this.flags=l,this.escapedName=ee,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function be(l,ee){this.flags=ee,(e.Debug.isDebugging||e.tracing)&&(this.checker=l)}function nr(l,ee){this.flags=ee,e.Debug.isDebugging&&(this.checker=l)}function Br(l,ee,cr){this.pos=ee,this.end=cr,this.kind=l,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function Ht(l,ee,cr){this.pos=ee,this.end=cr,this.kind=l,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function an(l,ee,cr){this.pos=ee,this.end=cr,this.kind=l,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function si(l,ee,cr){this.fileName=l,this.text=ee,this.skipTrivia=cr||function(Ur){return Ur}}e.objectAllocator={getNodeConstructor:function(){return Br},getTokenConstructor:function(){return Ht},getIdentifierConstructor:function(){return an},getPrivateIdentifierConstructor:function(){return Br},getSourceFileConstructor:function(){return Br},getSymbolConstructor:function(){return W},getTypeConstructor:function(){return be},getSignatureConstructor:function(){return nr},getSourceMapSourceConstructor:function(){return si}};function Io(l){e.objectAllocator=l}e.setObjectAllocator=Io;function vs(l,ee,cr){return cr===void 0&&(cr=0),l.replace(/{(\d+)}/g,function(Ur,Nt){return""+e.Debug.checkDefined(ee[+Nt+cr])})}e.formatStringFromArgs=vs;function rp(l){e.localizedDiagnosticMessages=l}e.setLocalizedDiagnosticMessages=rp;function Gc(l){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[l.key]||l.message}e.getLocaleSpecificMessage=Gc;function Pm(l,ee,cr,Ur){fe(void 0,ee,cr);var Nt=Gc(Ur);return arguments.length>4&&(Nt=vs(Nt,arguments,4)),{file:void 0,start:ee,length:cr,messageText:Nt,category:Ur.category,code:Ur.code,reportsUnnecessary:Ur.reportsUnnecessary,fileName:l}}e.createDetachedDiagnostic=Pm;function tp(l){return l.file===void 0&&l.start!==void 0&&l.length!==void 0&&typeof l.fileName=="string"}function Fm(l,ee){var cr=ee.fileName||"",Ur=ee.text.length;e.Debug.assertEqual(l.fileName,cr),e.Debug.assertLessThanOrEqual(l.start,Ur),e.Debug.assertLessThanOrEqual(l.start+l.length,Ur);var Nt={file:ee,start:l.start,length:l.length,messageText:l.messageText,category:l.category,code:l.code,reportsUnnecessary:l.reportsUnnecessary};if(l.relatedInformation){Nt.relatedInformation=[];for(var xn=0,Bn=l.relatedInformation;xn<Bn.length;xn++){var ga=Bn[xn];tp(ga)&&ga.fileName===cr?(e.Debug.assertLessThanOrEqual(ga.start,Ur),e.Debug.assertLessThanOrEqual(ga.start+ga.length,Ur),Nt.relatedInformation.push(Fm(ga,ee))):Nt.relatedInformation.push(ga)}}return Nt}function Mv(l,ee){for(var cr=[],Ur=0,Nt=l;Ur<Nt.length;Ur++){var xn=Nt[Ur];cr.push(Fm(xn,ee))}return cr}e.attachFileToDiagnostics=Mv;function An(l,ee,cr,Ur){fe(l,ee,cr);var Nt=Gc(Ur);return arguments.length>4&&(Nt=vs(Nt,arguments,4)),{file:l,start:ee,length:cr,messageText:Nt,category:Ur.category,code:Ur.code,reportsUnnecessary:Ur.reportsUnnecessary,reportsDeprecated:Ur.reportsDeprecated}}e.createFileDiagnostic=An;function Gf(l,ee){var cr=Gc(ee);return arguments.length>2&&(cr=vs(cr,arguments,2)),cr}e.formatMessage=Gf;function nf(l){var ee=Gc(l);return arguments.length>1&&(ee=vs(ee,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:ee,category:l.category,code:l.code,reportsUnnecessary:l.reportsUnnecessary,reportsDeprecated:l.reportsDeprecated}}e.createCompilerDiagnostic=nf;function O_(l,ee){return{file:void 0,start:void 0,length:void 0,code:l.code,category:l.category,messageText:l.next?l:l.messageText,relatedInformation:ee}}e.createCompilerDiagnosticFromMessageChain=O_;function Cp(l,ee){var cr=Gc(ee);return arguments.length>2&&(cr=vs(cr,arguments,2)),{messageText:cr,category:ee.category,code:ee.code,next:l===void 0||Array.isArray(l)?l:[l]}}e.chainDiagnosticMessages=Cp;function Gm(l,ee){for(var cr=l;cr.next;)cr=cr.next[0];cr.next=[ee]}e.concatenateDiagnosticMessageChains=Gm;function Hu(l){return l.file?l.file.path:void 0}function rm(l,ee){return mu(l,ee)||Pv(l,ee)||0}e.compareDiagnostics=rm;function mu(l,ee){return e.compareStringsCaseSensitive(Hu(l),Hu(ee))||e.compareValues(l.start,ee.start)||e.compareValues(l.length,ee.length)||e.compareValues(l.code,ee.code)||i_(l.messageText,ee.messageText)||0}e.compareDiagnosticsSkipRelatedInformation=mu;function Pv(l,ee){return!l.relatedInformation&&!ee.relatedInformation?0:l.relatedInformation&&ee.relatedInformation?e.compareValues(l.relatedInformation.length,ee.relatedInformation.length)||e.forEach(l.relatedInformation,function(cr,Ur){var Nt=ee.relatedInformation[Ur];return rm(cr,Nt)})||0:l.relatedInformation?-1:1}function i_(l,ee){if(typeof l=="string"&&typeof ee=="string")return e.compareStringsCaseSensitive(l,ee);if(typeof l=="string")return-1;if(typeof ee=="string")return 1;var cr=e.compareStringsCaseSensitive(l.messageText,ee.messageText);if(cr)return cr;if(!l.next&&!ee.next)return 0;if(!l.next)return-1;if(!ee.next)return 1;for(var Ur=Math.min(l.next.length,ee.next.length),Nt=0;Nt<Ur;Nt++)if(cr=i_(l.next[Nt],ee.next[Nt]),cr)return cr;return l.next.length<ee.next.length?-1:l.next.length>ee.next.length?1:0}function tm(l){return l===4||l===2||l===1||l===6?1:0}e.getLanguageVariant=tm;function o_(l){return l.target||l.module===e.ModuleKind.Node12&&7||l.module===e.ModuleKind.NodeNext&&99||0}e.getEmitScriptTarget=o_;function vd(l){return typeof l.module=="number"?l.module:o_(l)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}e.getEmitModuleKind=vd;function Bm(l){var ee=l.moduleResolution;if(ee===void 0)switch(vd(l)){case e.ModuleKind.CommonJS:ee=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node12:ee=e.ModuleResolutionKind.Node12;break;case e.ModuleKind.NodeNext:ee=e.ModuleResolutionKind.NodeNext;break;default:ee=e.ModuleResolutionKind.Classic;break}return ee}e.getEmitModuleResolutionKind=Bm;function Ju(l){switch(vd(l)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return!0;default:return!1}}e.hasJsonModuleEmitEnabled=Ju;function Fv(l){return l.allowUnreachableCode===!1}e.unreachableCodeIsError=Fv;function wg(l){return l.allowUnusedLabels===!1}e.unusedLabelIsError=wg;function xl(l){return!!(Pg(l)&&l.declarationMap)}e.getAreDeclarationMapsEnabled=xl;function Mg(l){if(l.esModuleInterop!==void 0)return l.esModuleInterop;switch(vd(l)){case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return!0}}e.getESModuleInterop=Mg;function xp(l){var ee=vd(l);return l.allowSyntheticDefaultImports!==void 0?l.allowSyntheticDefaultImports:Mg(l)||ee===e.ModuleKind.System}e.getAllowSyntheticDefaultImports=xp;function Pg(l){return!!(l.declaration||l.composite)}e.getEmitDeclarations=Pg;function Ku(l){return!!(l.preserveConstEnums||l.isolatedModules)}e.shouldPreserveConstEnums=Ku;function un(l){return!!(l.incremental||l.composite)}e.isIncrementalCompilation=un;function pa(l,ee){return l[ee]===void 0?!!l.strict:!!l[ee]}e.getStrictOptionValue=pa;function Hn(l){return l.allowJs===void 0?!!l.checkJs:l.allowJs}e.getAllowJSCompilerOption=Hn;function Sa(l){return l.useDefineForClassFields===void 0?o_(l)===99:l.useDefineForClassFields}e.getUseDefineForClassFields=Sa;function Za(l,ee){return z(ee,l,e.semanticDiagnosticsOptionDeclarations)}e.compilerOptionsAffectSemanticDiagnostics=Za;function zi(l,ee){return z(ee,l,e.affectsEmitOptionDeclarations)}e.compilerOptionsAffectEmit=zi;function Bo(l,ee){return ee.strictFlag?pa(l,ee.name):l[ee.name]}e.getCompilerOptionValue=Bo;function Zs(l){var ee=l.jsx;return ee===2||ee===4||ee===5}e.getJSXTransformEnabled=Zs;function gl(l,ee){var cr=ee==null?void 0:ee.pragmas.get("jsximportsource"),Ur=e.isArray(cr)?cr[cr.length-1]:cr;return l.jsx===4||l.jsx===5||l.jsxImportSource||Ur?(Ur==null?void 0:Ur.arguments.factory)||l.jsxImportSource||"react":void 0}e.getJSXImplicitImportBase=gl;function jl(l,ee){return l?"".concat(l,"/").concat(ee.jsx===5?"jsx-dev-runtime":"jsx-runtime"):void 0}e.getJSXRuntimeImport=jl;function vl(l){for(var ee=!1,cr=0;cr<l.length;cr++)if(l.charCodeAt(cr)===42)if(!ee)ee=!0;else return!1;return!0}e.hasZeroOrOneAsteriskCharacter=vl;function Bf(l,ee){var cr,Ur,Nt,xn=!1;return{getSymlinkedFiles:function(){return Nt},getSymlinkedDirectories:function(){return cr},getSymlinkedDirectoriesByRealpath:function(){return Ur},setSymlinkedFile:function(ga,Ei){return(Nt||(Nt=new e.Map)).set(ga,Ei)},setSymlinkedDirectory:function(ga,Ei){var li=e.toPath(ga,l,ee);hy(li)||(li=e.ensureTrailingDirectorySeparator(li),Ei!==!1&&!(cr!=null&&cr.has(li))&&(Ur||(Ur=e.createMultiMap())).add(e.ensureTrailingDirectorySeparator(Ei.realPath),ga),(cr||(cr=new e.Map)).set(li,Ei))},setSymlinkedDirectoryFromSymlinkedFile:function(ga,Ei){this.setSymlinkedFile(e.toPath(ga,l,ee),Ei);var li=po(Ei,ga,l,ee)||e.emptyArray,go=li[0],wi=li[1];go&&wi&&this.setSymlinkedDirectory(wi,{real:go,realPath:e.toPath(go,l,ee)})},setSymlinksFromResolutions:function(ga,Ei){var li=this,go;e.Debug.assert(!xn),xn=!0;for(var wi=0,Is=ga;wi<Is.length;wi++){var Ks=Is[wi];(go=Ks.resolvedModules)===null||go===void 0||go.forEach(function(hs){return Bn(li,hs)})}Ei==null||Ei.forEach(function(hs){return Bn(li,hs)})},hasProcessedResolutions:function(){return xn}};function Bn(ga,Ei){if(!(!Ei||!Ei.originalPath||!Ei.resolvedFileName)){var li=Ei.resolvedFileName,go=Ei.originalPath;ga.setSymlinkedFile(e.toPath(go,l,ee),li);var wi=po(li,go,l,ee)||e.emptyArray,Is=wi[0],Ks=wi[1];Is&&Ks&&ga.setSymlinkedDirectory(Ks,{real:Is,realPath:e.toPath(Is,l,ee)})}}}e.createSymlinkCache=Bf;function po(l,ee,cr,Ur){for(var Nt=e.getPathComponents(e.getNormalizedAbsolutePath(l,cr)),xn=e.getPathComponents(e.getNormalizedAbsolutePath(ee,cr)),Bn=!1;Nt.length>=2&&xn.length>=2&&!s_(Nt[Nt.length-2],Ur)&&!s_(xn[xn.length-2],Ur)&&Ur(Nt[Nt.length-1])===Ur(xn[xn.length-1]);)Nt.pop(),xn.pop(),Bn=!0;return Bn?[e.getPathFromPathComponents(Nt),e.getPathFromPathComponents(xn)]:void 0}function s_(l,ee){return l!==void 0&&(ee(l)==="node_modules"||e.startsWith(l,"@"))}function np(l){return e.isAnyDirectorySeparator(l.charCodeAt(0))?l.slice(1):void 0}function nm(l,ee,cr){var Ur=e.tryRemovePrefix(l,ee,cr);return Ur===void 0?void 0:np(Ur)}e.tryRemoveDirectoryPrefix=nm;var am=/[^\w\s\/]/g;function CE(l){return l.replace(am,xE)}e.regExpEscape=CE;function xE(l){return"\\"+l}var ny=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var Fg="(?!(".concat(e.commonPackageFolders.join("|"),")(/|$))"),Gv={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/".concat(Fg,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(l){return Bv(l,Gv.singleAsteriskRegexFragment)}},Gg={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/".concat(Fg,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(l){return Bv(l,Gg.singleAsteriskRegexFragment)}},gu={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(l){return Bv(l,gu.singleAsteriskRegexFragment)}},Bg={files:Gv,directories:Gg,exclude:gu};function Ip(l,ee,cr){var Ur=R_(l,ee,cr);if(!(!Ur||!Ur.length)){var Nt=Ur.map(function(Bn){return"(".concat(Bn,")")}).join("|"),xn=cr==="exclude"?"($|/)":"$";return"^(".concat(Nt,")").concat(xn)}}e.getRegularExpressionForWildcard=Ip;function R_(l,ee,cr){if(!(l===void 0||l.length===0))return e.flatMap(l,function(Ur){return Ur&&vu(Ur,ee,cr,Bg[cr])})}e.getRegularExpressionsForWildcards=R_;function l_(l){return!/[.*?]/.test(l)}e.isImplicitGlob=l_;function IE(l,ee,cr){var Ur=l&&vu(l,ee,cr,Bg[cr]);return Ur&&"^(".concat(Ur,")").concat(cr==="exclude"?"($|/)":"$")}e.getPatternFromSpec=IE;function vu(l,ee,cr,Ur){var Nt=Ur.singleAsteriskRegexFragment,xn=Ur.doubleAsteriskRegexFragment,Bn=Ur.replaceWildcardCharacter,ga="",Ei=!1,li=e.getNormalizedPathComponents(l,ee),go=e.last(li);if(!(cr!=="exclude"&&go==="**")){li[0]=e.removeTrailingDirectorySeparator(li[0]),l_(go)&&li.push("**","*");for(var wi=0,Is=0,Ks=li;Is<Ks.length;Is++){var hs=Ks[Is];if(hs==="**")ga+=xn;else if(cr==="directories"&&(ga+="(",wi++),Ei&&(ga+=e.directorySeparator),cr!=="exclude"){var ic="";hs.charCodeAt(0)===42?(ic+="([^./]"+Nt+")?",hs=hs.substr(1)):hs.charCodeAt(0)===63&&(ic+="[^./]",hs=hs.substr(1)),ic+=hs.replace(am,Bn),ic!==hs&&(ga+=Fg),ga+=ic}else ga+=hs.replace(am,Bn);Ei=!0}for(;wi>0;)ga+=")?",wi--;return ga}}function Bv(l,ee){return l==="*"?ee:l==="?"?"[^/]":"\\"+l}function Uv(l,ee,cr,Ur,Nt){l=e.normalizePath(l),Nt=e.normalizePath(Nt);var xn=e.combinePaths(Nt,l);return{includeFilePatterns:e.map(R_(cr,xn,"files"),function(Bn){return"^".concat(Bn,"$")}),includeFilePattern:Ip(cr,xn,"files"),includeDirectoryPattern:Ip(cr,xn,"directories"),excludePattern:Ip(ee,xn,"exclude"),basePaths:Ug(l,cr,Ur)}}e.getFileMatcherPatterns=Uv;function im(l,ee){return new RegExp(l,ee?"":"i")}e.getRegexFromPattern=im;function af(l,ee,cr,Ur,Nt,xn,Bn,ga,Ei){l=e.normalizePath(l),xn=e.normalizePath(xn);for(var li=Uv(l,cr,Ur,Nt,xn),go=li.includeFilePatterns&&li.includeFilePatterns.map(function(ap){return im(ap,Nt)}),wi=li.includeDirectoryPattern&&im(li.includeDirectoryPattern,Nt),Is=li.excludePattern&&im(li.excludePattern,Nt),Ks=go?go.map(function(){return[]}):[[]],hs=new e.Map,ic=e.createGetCanonicalFileName(Nt),Eo=0,zu=li.basePaths;Eo<zu.length;Eo++){var c_=zu[Eo];sm(c_,e.combinePaths(xn,c_),Bn)}return e.flatten(Ks);function sm(ap,Jm,Ii){var jg=ic(Ei(Jm));if(!hs.has(jg)){hs.set(jg,!0);for(var Ni=ga(ap),Qv=Ni.files,Zv=Ni.directories,u_=function(eh){var qm=e.combinePaths(ap,eh),Xm=e.combinePaths(Jm,eh);if(ee&&!e.fileExtensionIsOneOf(qm,ee)||Is&&Is.test(Xm))return"continue";if(!go)Ks[0].push(qm);else{var Hg=e.findIndex(go,function(w_){return w_.test(Xm)});Hg!==-1&&Ks[Hg].push(qm)}},Km=0,Ps=e.sort(Qv,e.compareStringsCaseSensitive);Km<Ps.length;Km++){var oc=Ps[Km];u_(oc)}if(!(Ii!==void 0&&(Ii--,Ii===0)))for(var tu=0,$v=e.sort(Zv,e.compareStringsCaseSensitive);tu<$v.length;tu++){var oc=$v[tu],zm=e.combinePaths(ap,oc),ip=e.combinePaths(Jm,oc);(!wi||wi.test(ip))&&(!Is||!Is.test(ip))&&sm(zm,ip,Ii)}}}}e.matchFiles=af;function Ug(l,ee,cr){var Ur=[l];if(ee){for(var Nt=[],xn=0,Bn=ee;xn<Bn.length;xn++){var ga=Bn[xn],Ei=e.isRootedDiskPath(ga)?ga:e.normalizePath(e.combinePaths(l,ga));Nt.push(Il(Ei))}Nt.sort(e.getStringComparer(!cr));for(var li=function(Ks){e.every(Ur,function(hs){return!e.containsPath(hs,Ks,l,!cr)})&&Ur.push(Ks)},go=0,wi=Nt;go<wi.length;go++){var Is=wi[go];li(Is)}}return Ur}function Il(l){var ee=e.indexOfAnyCharCode(l,ny);return ee<0?e.hasExtension(l)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(l)):l:l.substring(0,l.lastIndexOf(e.directorySeparator,ee))}function ay(l,ee){return ee||iy(l)||3}e.ensureScriptKind=ay;function iy(l){var ee=l.substr(l.lastIndexOf("."));switch(ee.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}}e.getScriptKindFromFileName=iy,e.supportedTSExtensions=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],e.supportedTSExtensionsFlat=e.flatten(e.supportedTSExtensions);var NE=Gt(Gt([],e.supportedTSExtensions,!0),[[".json"]],!1),hu=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx",".cts",".mts"];e.supportedJSExtensions=[[".js",".jsx"],[".mjs"],[".cjs"]],e.supportedJSExtensionsFlat=e.flatten(e.supportedJSExtensions);var Np=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],oy=Gt(Gt([],Np,!0),[[".json"]],!1);function sy(l,ee){var cr=l&&Hn(l);if(!ee||ee.length===0)return cr?Np:e.supportedTSExtensions;var Ur=cr?Np:e.supportedTSExtensions,Nt=e.flatten(Ur),xn=Gt(Gt([],Ur,!0),e.mapDefined(ee,function(Bn){return Bn.scriptKind===7||cr&&cy(Bn.scriptKind)&&Nt.indexOf(Bn.extension)===-1?[Bn.extension]:void 0}),!0);return xn}e.getSupportedExtensions=sy;function ly(l,ee){return!l||!l.resolveJsonModule?ee:ee===Np?oy:ee===e.supportedTSExtensions?NE:Gt(Gt([],ee,!0),[[".json"]],!1)}e.getSupportedExtensionsWithJsonIfResolveJsonModule=ly;function cy(l){return l===1||l===2}function kE(l){return e.some(e.supportedJSExtensionsFlat,function(ee){return e.fileExtensionIs(l,ee)})}e.hasJSFileExtension=kE;function Vv(l){return e.some(e.supportedTSExtensionsFlat,function(ee){return e.fileExtensionIs(l,ee)})}e.hasTSFileExtension=Vv;function OE(l,ee,cr){if(!l)return!1;for(var Ur=sy(ee,cr),Nt=0,xn=e.flatten(ly(ee,Ur));Nt<xn.length;Nt++){var Bn=xn[Nt];if(e.fileExtensionIs(l,Bn))return!0}return!1}e.isSupportedSourceFileName=OE;function Vg(l){var ee=l.match(/\//g);return ee?ee.length:0}function uy(l,ee){return e.compareValues(Vg(l),Vg(ee))}e.compareNumberOfDirectorySeparators=uy;var Wv=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function Um(l){for(var ee=0,cr=Wv;ee<cr.length;ee++){var Ur=cr[ee],Nt=fy(l,Ur);if(Nt!==void 0)return Nt}return l}e.removeFileExtension=Um;function fy(l,ee){return e.fileExtensionIs(l,ee)?jv(l,ee):void 0}e.tryRemoveExtension=fy;function jv(l,ee){return l.substring(0,l.length-ee.length)}e.removeExtension=jv;function RE(l,ee){return e.changeAnyExtension(l,ee,Wv,!1)}e.changeExtension=RE;function om(l){var ee=l.indexOf("*");return ee===-1?l:l.indexOf("*",ee+1)!==-1?void 0:{prefix:l.substr(0,ee),suffix:l.substr(ee+1)}}e.tryParsePattern=om;function dy(l){return e.mapDefined(e.getOwnKeys(l),function(ee){return om(ee)})}e.tryParsePatterns=dy;function Wg(l){return!(l>=0)}e.positionIsSynthesized=Wg;function py(l){return l===".ts"||l===".tsx"||l===".d.ts"||l===".cts"||l===".mts"||l===".d.mts"||l===".d.cts"}e.extensionIsTS=py;function _y(l){return py(l)||l===".json"}e.resolutionExtensionIsTSOrJson=_y;function my(l){var ee=Hv(l);return ee!==void 0?ee:e.Debug.fail("File ".concat(l," has unknown extension."))}e.extensionFromPath=my;function wE(l){return Hv(l)!==void 0}e.isAnySupportedFileExtension=wE;function Hv(l){return e.find(Wv,function(ee){return e.fileExtensionIs(l,ee)})}e.tryGetExtensionFromPath=Hv;function ME(l,ee){return l.checkJsDirective?l.checkJsDirective.enabled:ee.checkJs}e.isCheckJsEnabledForFile=ME,e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray};function Vm(l,ee){for(var cr=[],Ur=0,Nt=l;Ur<Nt.length;Ur++){var xn=Nt[Ur];if(xn===ee)return ee;e.isString(xn)||cr.push(xn)}return e.findBestPatternMatch(cr,function(Bn){return Bn},ee)}e.matchPatternOrExact=Vm;function Jv(l,ee){var cr=l.indexOf(ee);return e.Debug.assert(cr!==-1),l.slice(cr)}e.sliceAfter=Jv;function Kv(l){for(var ee,cr=[],Ur=1;Ur<arguments.length;Ur++)cr[Ur-1]=arguments[Ur];return cr.length&&(l.relatedInformation||(l.relatedInformation=[]),e.Debug.assert(l.relatedInformation!==e.emptyArray,"Diagnostic had empty array singleton for related info, but is still being constructed!"),(ee=l.relatedInformation).push.apply(ee,cr)),l}e.addRelatedInfo=Kv;function PE(l,ee){e.Debug.assert(l.length!==0);for(var cr=ee(l[0]),Ur=cr,Nt=1;Nt<l.length;Nt++){var xn=ee(l[Nt]);xn<cr?cr=xn:xn>Ur&&(Ur=xn)}return{min:cr,max:Ur}}e.minAndMax=PE;function FE(l){return{pos:Te(l),end:l.end}}e.rangeOfNode=FE;function eu(l,ee){var cr=ee.pos-1,Ur=e.skipTrivia(l.text,ee.end)+1;return{pos:cr,end:Ur}}e.rangeOfTypeParameters=eu;function Tc(l,ee,cr){return ee.skipLibCheck&&l.isDeclarationFile||ee.skipDefaultLibCheck&&l.hasNoDefaultLib||cr.isSourceOfProjectReferenceRedirect(l.fileName)}e.skipTypeChecking=Tc;function of(l,ee){return l===ee||typeof l=="object"&&l!==null&&typeof ee=="object"&&ee!==null&&e.equalOwnProperties(l,ee,of)}e.isJsonEqual=of;function yu(l){var ee;switch(l.charCodeAt(1)){case 98:case 66:ee=1;break;case 111:case 79:ee=3;break;case 120:case 88:ee=4;break;default:for(var cr=l.length-1,Ur=0;l.charCodeAt(Ur)===48;)Ur++;return l.slice(Ur,cr)||"0"}for(var Nt=2,xn=l.length-1,Bn=(xn-Nt)*ee,ga=new Uint16Array((Bn>>>4)+(Bn&15?1:0)),Ei=xn-1,li=0;Ei>=Nt;Ei--,li+=ee){var go=li>>>4,wi=l.charCodeAt(Ei),Is=wi<=57?wi-48:10+wi-(wi<=70?65:97),Ks=Is<<(li&15);ga[go]|=Ks;var hs=Ks>>>16;hs&&(ga[go+1]|=hs)}for(var ic="",Eo=ga.length-1,zu=!0;zu;){var c_=0;zu=!1;for(var go=Eo;go>=0;go--){var sm=c_<<16|ga[go],ap=sm/10|0;ga[go]=ap,c_=sm-ap*10,ap&&!zu&&(Eo=go,zu=!0)}ic=c_+ic}return ic}e.parsePseudoBigInt=yu;function gy(l){var ee=l.negative,cr=l.base10Value;return(ee&&cr!=="0"?"-":"")+cr}e.pseudoBigIntToString=gy;function Wm(l){return!!(l.flags&8388608)||hr(l)||vy(l)||ru(l)||!(Es(l)||jm(l))}e.isValidTypeOnlyAliasUseSite=Wm;function jm(l){return e.isIdentifier(l)&&e.isShorthandPropertyAssignment(l.parent)&&l.parent.name===l}function ru(l){for(;l.kind===79||l.kind===205;)l=l.parent;if(l.kind!==161)return!1;if(rc(l.parent,128))return!0;var ee=l.parent.parent.kind;return ee===257||ee===181}function vy(l){if(l.kind!==79)return!1;var ee=e.findAncestor(l.parent,function(cr){switch(cr.kind){case 290:return!0;case 205:case 227:return!1;default:return"quit"}});return(ee==null?void 0:ee.token)===117||(ee==null?void 0:ee.parent.kind)===257}function zv(l){return e.isTypeReferenceNode(l)&&e.isIdentifier(l.typeName)}e.isIdentifierTypeReference=zv;function GE(l,ee){if(ee===void 0&&(ee=e.equateValues),l.length<2)return!0;for(var cr=l[0],Ur=1,Nt=l.length;Ur<Nt;Ur++){var xn=l[Ur];if(!ee(cr,xn))return!1}return!0}e.arrayIsHomogeneous=GE;function El(l,ee){return l.pos=ee,l}e.setTextRangePos=El;function Sc(l,ee){return l.end=ee,l}e.setTextRangeEnd=Sc;function sf(l,ee,cr){return Sc(El(l,ee),cr)}e.setTextRangePosEnd=sf;function hd(l,ee,cr){return sf(l,ee,ee+cr)}e.setTextRangePosWidth=hd;function Hm(l,ee){return l&&(l.flags=ee),l}e.setNodeFlags=Hm;function Yi(l,ee){return l&&ee&&(l.parent=ee),l}e.setParent=Yi;function BE(l,ee){if(l)for(var cr=0,Ur=l;cr<Ur.length;cr++){var Nt=Ur[cr];Yi(Nt,ee)}return l}e.setEachParent=BE;function UE(l,ee){if(!l)return l;return e.forEachChildRecursively(l,e.isJSDocNode(l)?cr:Nt),l;function cr(xn,Bn){if(ee&&xn.parent===Bn)return"skip";Yi(xn,Bn)}function Ur(xn){if(e.hasJSDocNodes(xn))for(var Bn=0,ga=xn.jsDoc;Bn<ga.length;Bn++){var Ei=ga[Bn];cr(Ei,xn),e.forEachChildRecursively(Ei,cr)}}function Nt(xn,Bn){return cr(xn,Bn)||Ur(xn)}}e.setParentRecursive=UE;function VE(l){return!e.isOmittedExpression(l)}function kp(l){return e.isArrayLiteralExpression(l)&&e.every(l.elements,VE)}e.isPackedArrayLiteral=kp;function Nl(l){for(e.Debug.assertIsDefined(l.parent);;){var ee=l.parent;if(e.isParenthesizedExpression(ee)){l=ee;continue}if(e.isExpressionStatement(ee)||e.isVoidExpression(ee)||e.isForStatement(ee)&&(ee.initializer===l||ee.incrementor===l))return!0;if(e.isCommaListExpression(ee)){if(l!==e.last(ee.elements))return!0;l=ee;continue}if(e.isBinaryExpression(ee)&&ee.operatorToken.kind===27){if(l===ee.left)return!0;l=ee;continue}return!1}}e.expressionResultIsUnused=Nl;function hy(l){return e.some(e.ignoredPaths,function(ee){return e.stringContains(l,ee)})}e.containsIgnoredPath=hy;function qv(l){if(l.parent){switch(l.kind){case 162:var ee=l.parent;return ee.kind===189?void 0:ee.typeParameters;case 163:return l.parent.parameters;case 198:return l.parent.templateSpans;case 232:return l.parent.templateSpans;case 164:return l.parent.decorators;case 290:return l.parent.heritageClauses}var cr=l.parent;if(e.isJSDocTag(l))return e.isJSDocTypeLiteral(l.parent)?void 0:l.parent.tags;switch(cr.kind){case 181:case 257:return e.isTypeElement(l)?cr.members:void 0;case 186:case 187:return cr.types;case 183:case 203:case 349:case 268:case 272:return cr.elements;case 204:case 285:return cr.properties;case 207:case 208:return e.isTypeNode(l)?cr.typeArguments:cr.expression===l?void 0:cr.arguments;case 277:case 281:return e.isJsxChild(l)?cr.children:void 0;case 279:case 278:return e.isTypeNode(l)?cr.typeArguments:void 0;case 234:case 288:case 289:case 261:return cr.statements;case 262:return cr.clauses;case 256:case 225:return e.isClassElement(l)?cr.members:void 0;case 259:return e.isEnumMember(l)?cr.members:void 0;case 303:return cr.statements}}}e.getContainingNodeArray=qv;function WE(l){if(!l.typeParameters){if(e.some(l.parameters,function(cr){return!Fu(cr)}))return!0;if(l.kind!==213){var ee=e.firstOrUndefined(l.parameters);if(!(ee&&Df(ee)))return!0}}return!1}e.hasContextSensitiveParameters=WE;function Xv(l){return l==="Infinity"||l==="-Infinity"||l==="NaN"}e.isInfinityOrNaNString=Xv;function Yv(l){return l.kind===253&&l.parent.kind===291}e.isCatchClauseVariableDeclaration=Yv;function yy(l){var ee=l.valueDeclaration&&Md(l.valueDeclaration);return!!ee&&(e.isParameter(ee)||Yv(ee))}e.isParameterOrCatchClauseVariable=yy;function jE(l){return l.kind===212||l.kind===213}e.isFunctionExpressionOrArrowFunction=jE;function HE(l){return l.replace(/\$/gm,"\\$")}e.escapeSnippetText=HE}(jr||(jr={})),function(e){function n(){var f,p,a,d,k;return{createBaseSourceFileNode:J,createBaseIdentifierNode:h,createBasePrivateIdentifierNode:v,createBaseTokenNode:A,createBaseNode:z};function J(ie){return new(k||(k=e.objectAllocator.getSourceFileConstructor()))(ie,-1,-1)}function h(ie){return new(a||(a=e.objectAllocator.getIdentifierConstructor()))(ie,-1,-1)}function v(ie){return new(d||(d=e.objectAllocator.getPrivateIdentifierConstructor()))(ie,-1,-1)}function A(ie){return new(p||(p=e.objectAllocator.getTokenConstructor()))(ie,-1,-1)}function z(ie){return new(f||(f=e.objectAllocator.getNodeConstructor()))(ie,-1,-1)}}e.createBaseNodeFactory=n}(jr||(jr={})),function(e){function n(f){var p,a;return{getParenthesizeLeftSideOfBinaryForOperator:d,getParenthesizeRightSideOfBinaryForOperator:k,parenthesizeLeftSideOfBinary:z,parenthesizeRightSideOfBinary:ie,parenthesizeExpressionOfComputedPropertyName:b,parenthesizeConditionOfConditionalExpression:M,parenthesizeBranchOfConditionalExpression:S,parenthesizeExpressionOfExportDefault:B,parenthesizeExpressionOfNew:H,parenthesizeLeftSideOfAccess:I,parenthesizeOperandOfPostfixUnary:w,parenthesizeOperandOfPrefixUnary:x,parenthesizeExpressionsOfCommaDelimitedList:O,parenthesizeExpressionForDisallowedComma:q,parenthesizeExpressionOfExpressionStatement:Z,parenthesizeConciseBodyOfArrowFunction:ne,parenthesizeMemberOfConditionalType:F,parenthesizeMemberOfElementType:Q,parenthesizeElementTypeOfArrayType:V,parenthesizeConstituentTypesOfUnionOrIntersectionType:re,parenthesizeTypeArguments:N};function d(y){p||(p=new e.Map);var D=p.get(y);return D||(D=function(C){return z(y,C)},p.set(y,D)),D}function k(y){a||(a=new e.Map);var D=a.get(y);return D||(D=function(C){return ie(y,void 0,C)},a.set(y,D)),D}function J(y,D,C,m){var u=e.getOperatorPrecedence(220,y),g=e.getOperatorAssociativity(220,y),P=e.skipPartiallyEmittedExpressions(D);if(!C&&D.kind===213&&u>3)return!0;var te=e.getExpressionPrecedence(P);switch(e.compareValues(te,u)){case-1:return!(!C&&g===1&&D.kind===223);case 1:return!1;case 0:if(C)return g===1;if(e.isBinaryExpression(P)&&P.operatorToken.kind===y){if(h(y))return!1;if(y===39){var ue=m?v(m):0;if(e.isLiteralKind(ue)&&ue===v(P))return!1}}var X=e.getExpressionAssociativity(P);return X===0}}function h(y){return y===41||y===51||y===50||y===52}function v(y){if(y=e.skipPartiallyEmittedExpressions(y),e.isLiteralKind(y.kind))return y.kind;if(y.kind===220&&y.operatorToken.kind===39){if(y.cachedLiteralKind!==void 0)return y.cachedLiteralKind;var D=v(y.left),C=e.isLiteralKind(D)&&D===v(y.right)?D:0;return y.cachedLiteralKind=C,C}return 0}function A(y,D,C,m){var u=e.skipPartiallyEmittedExpressions(D);return u.kind===211?D:J(y,D,C,m)?f.createParenthesizedExpression(D):D}function z(y,D){return A(y,D,!0)}function ie(y,D,C){return A(y,C,!1,D)}function b(y){return e.isCommaSequence(y)?f.createParenthesizedExpression(y):y}function M(y){var D=e.getOperatorPrecedence(221,57),C=e.skipPartiallyEmittedExpressions(y),m=e.getExpressionPrecedence(C);return e.compareValues(m,D)!==1?f.createParenthesizedExpression(y):y}function S(y){var D=e.skipPartiallyEmittedExpressions(y);return e.isCommaSequence(D)?f.createParenthesizedExpression(y):y}function B(y){var D=e.skipPartiallyEmittedExpressions(y),C=e.isCommaSequence(D);if(!C)switch(e.getLeftmostExpression(D,!1).kind){case 225:case 212:C=!0}return C?f.createParenthesizedExpression(y):y}function H(y){var D=e.getLeftmostExpression(y,!0);switch(D.kind){case 207:return f.createParenthesizedExpression(y);case 208:return D.arguments?y:f.createParenthesizedExpression(y)}return I(y)}function I(y){var D=e.skipPartiallyEmittedExpressions(y);return e.isLeftHandSideExpression(D)&&(D.kind!==208||D.arguments)?y:e.setTextRange(f.createParenthesizedExpression(y),y)}function w(y){return e.isLeftHandSideExpression(y)?y:e.setTextRange(f.createParenthesizedExpression(y),y)}function x(y){return e.isUnaryExpression(y)?y:e.setTextRange(f.createParenthesizedExpression(y),y)}function O(y){var D=e.sameMap(y,q);return e.setTextRange(f.createNodeArray(D,y.hasTrailingComma),y)}function q(y){var D=e.skipPartiallyEmittedExpressions(y),C=e.getExpressionPrecedence(D),m=e.getOperatorPrecedence(220,27);return C>m?y:e.setTextRange(f.createParenthesizedExpression(y),y)}function Z(y){var D=e.skipPartiallyEmittedExpressions(y);if(e.isCallExpression(D)){var C=D.expression,m=e.skipPartiallyEmittedExpressions(C).kind;if(m===212||m===213){var u=f.updateCallExpression(D,e.setTextRange(f.createParenthesizedExpression(C),C),D.typeArguments,D.arguments);return f.restoreOuterExpressions(y,u,8)}}var g=e.getLeftmostExpression(D,!1).kind;return g===204||g===212?e.setTextRange(f.createParenthesizedExpression(y),y):y}function ne(y){return!e.isBlock(y)&&(e.isCommaSequence(y)||e.getLeftmostExpression(y,!1).kind===204)?e.setTextRange(f.createParenthesizedExpression(y),y):y}function F(y){return y.kind===188?f.createParenthesizedType(y):y}function Q(y){switch(y.kind){case 186:case 187:case 178:case 179:return f.createParenthesizedType(y)}return F(y)}function V(y){switch(y.kind){case 180:case 192:case 189:return f.createParenthesizedType(y)}return Q(y)}function re(y){return f.createNodeArray(e.sameMap(y,Q))}function T(y,D){return D===0&&e.isFunctionOrConstructorTypeNode(y)&&y.typeParameters?f.createParenthesizedType(y):y}function N(y){if(e.some(y))return f.createNodeArray(e.sameMap(y,T))}}e.createParenthesizerRules=n,e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(f){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(f){return e.identity},parenthesizeLeftSideOfBinary:function(f,p){return p},parenthesizeRightSideOfBinary:function(f,p,a){return a},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(f){return e.cast(f,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(f){return e.cast(f,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(f){return e.cast(f,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(f){return e.cast(f,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(f){return e.cast(f,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeMemberOfConditionalType:e.identity,parenthesizeMemberOfElementType:e.identity,parenthesizeElementTypeOfArrayType:e.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:function(f){return e.cast(f,e.isNodeArray)},parenthesizeTypeArguments:function(f){return f&&e.cast(f,e.isNodeArray)}}}(jr||(jr={})),function(e){function n(f){return{convertToFunctionBlock:p,convertToFunctionExpression:a,convertToArrayAssignmentElement:d,convertToObjectAssignmentElement:k,convertToAssignmentPattern:J,convertToObjectAssignmentPattern:h,convertToArrayAssignmentPattern:v,convertToAssignmentElementTarget:A};function p(z,ie){if(e.isBlock(z))return z;var b=f.createReturnStatement(z);e.setTextRange(b,z);var M=f.createBlock([b],ie);return e.setTextRange(M,z),M}function a(z){if(!z.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var ie=f.createFunctionExpression(z.modifiers,z.asteriskToken,z.name,z.typeParameters,z.parameters,z.type,z.body);return e.setOriginalNode(ie,z),e.setTextRange(ie,z),e.getStartsOnNewLine(z)&&e.setStartsOnNewLine(ie,!0),ie}function d(z){if(e.isBindingElement(z)){if(z.dotDotDotToken)return e.Debug.assertNode(z.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(f.createSpreadElement(z.name),z),z);var ie=A(z.name);return z.initializer?e.setOriginalNode(e.setTextRange(f.createAssignment(ie,z.initializer),z),z):ie}return e.cast(z,e.isExpression)}function k(z){if(e.isBindingElement(z)){if(z.dotDotDotToken)return e.Debug.assertNode(z.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(f.createSpreadAssignment(z.name),z),z);if(z.propertyName){var ie=A(z.name);return e.setOriginalNode(e.setTextRange(f.createPropertyAssignment(z.propertyName,z.initializer?f.createAssignment(ie,z.initializer):ie),z),z)}return e.Debug.assertNode(z.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(f.createShorthandPropertyAssignment(z.name,z.initializer),z),z)}return e.cast(z,e.isObjectLiteralElementLike)}function J(z){switch(z.kind){case 201:case 203:return v(z);case 200:case 204:return h(z)}}function h(z){return e.isObjectBindingPattern(z)?e.setOriginalNode(e.setTextRange(f.createObjectLiteralExpression(e.map(z.elements,k)),z),z):e.cast(z,e.isObjectLiteralExpression)}function v(z){return e.isArrayBindingPattern(z)?e.setOriginalNode(e.setTextRange(f.createArrayLiteralExpression(e.map(z.elements,d)),z),z):e.cast(z,e.isArrayLiteralExpression)}function A(z){return e.isBindingPattern(z)?J(z):e.cast(z,e.isExpression)}}e.createNodeConverters=n,e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}}(jr||(jr={})),function(e){var n=0;(function(V){V[V.None=0]="None",V[V.NoParenthesizerRules=1]="NoParenthesizerRules",V[V.NoNodeConverters=2]="NoNodeConverters",V[V.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",V[V.NoOriginalNode=8]="NoOriginalNode"})(e.NodeFactoryFlags||(e.NodeFactoryFlags={}));function f(V,re){var T=V&8?p:a,N=e.memoize(function(){return V&1?e.nullParenthesizerRules:e.createParenthesizerRules(Se)}),y=e.memoize(function(){return V&2?e.nullNodeConverters:e.createNodeConverters(Se)}),D=e.memoizeOne(function(_){return function(W,be){return Ia(W,_,be)}}),C=e.memoizeOne(function(_){return function(W){return Qr(_,W)}}),m=e.memoizeOne(function(_){return function(W){return Xn(W,_)}}),u=e.memoizeOne(function(_){return function(){return I_(_)}}),g=e.memoizeOne(function(_){return function(W){return vc(_,W)}}),P=e.memoizeOne(function(_){return function(W,be){return Pl(_,W,be)}}),te=e.memoizeOne(function(_){return function(W,be){return Af(_,W,be)}}),ue=e.memoizeOne(function(_){return function(W,be,nr){return ld(_,W,be,nr)}}),X=e.memoizeOne(function(_){return function(W,be,nr){return cd(_,W,be,nr)}}),j=e.memoizeOne(function(_){return function(W,be,nr,Br){return Cf(_,W,be,nr,Br)}}),Se={get parenthesizer(){return N()},get converters(){return y()},createNodeArray:Ce,createNumericLiteral:_e,createBigIntLiteral:Le,createStringLiteral:Xe,createStringLiteralFromNode:De,createRegularExpressionLiteral:Ae,createLiteralLikeNode:Ye,createIdentifier:lr,updateIdentifier:Ar,createTempVariable:kr,createLoopVariable:Ke,createUniqueName:Me,getGeneratedNameForNode:Hr,createPrivateIdentifier:ur,createToken:de,createSuper:Fe,createThis:$e,createNull:Sr,createTrue:Pr,createFalse:He,createModifier:pr,createModifiersFromModifierFlags:Jr,createQualifiedName:ze,updateQualifiedName:Lr,createComputedPropertyName:Yr,updateComputedPropertyName:lt,createTypeParameterDeclaration:tt,updateTypeParameterDeclaration:Rt,createParameterDeclaration:cn,updateParameterDeclaration:bn,createDecorator:In,updateDecorator:zn,createPropertySignature:ir,updatePropertySignature:Or,createPropertyDeclaration:sr,updatePropertyDeclaration:ye,createMethodSignature:or,updateMethodSignature:fe,createMethodDeclaration:je,updateMethodDeclaration:Ee,createConstructorDeclaration:Ne,updateConstructorDeclaration:me,createGetAccessorDeclaration:Ze,updateGetAccessorDeclaration:Cr,createSetAccessorDeclaration:fr,updateSetAccessorDeclaration:dr,createCallSignature:et,updateCallSignature:yt,createConstructSignature:Vr,updateConstructSignature:tr,createIndexSignature:xr,updateIndexSignature:Nr,createClassStaticBlockDeclaration:We,updateClassStaticBlockDeclaration:$,createTemplateLiteralTypeSpan:zr,updateTemplateLiteralTypeSpan:gt,createKeywordTypeNode:vt,createTypePredicateNode:ut,updateTypePredicateNode:ht,createTypeReferenceNode:xt,updateTypeReferenceNode:wt,createFunctionTypeNode:Qt,updateFunctionTypeNode:mt,createConstructorTypeNode:rn,updateConstructorTypeNode:Jn,createTypeQueryNode:en,updateTypeQueryNode:St,createTypeLiteralNode:Ut,updateTypeLiteralNode:qt,createArrayTypeNode:Mn,updateArrayTypeNode:dn,createTupleTypeNode:oa,updateTupleTypeNode:pt,createNamedTupleMember:_t,updateNamedTupleMember:Mt,createOptionalTypeNode:It,updateOptionalTypeNode:rt,createRestTypeNode:Cn,updateRestTypeNode:Qn,createUnionTypeNode:_i,updateUnionTypeNode:va,createIntersectionTypeNode:yi,updateIntersectionTypeNode:ro,createConditionalTypeNode:Ka,updateConditionalTypeNode:Mi,createInferTypeNode:io,updateInferTypeNode:ji,createImportTypeNode:No,updateImportTypeNode:lo,createParenthesizedType:Lo,updateParenthesizedType:Ha,createThisTypeNode:Yo,createTypeOperatorNode:co,updateTypeOperatorNode:za,createIndexedAccessTypeNode:hi,updateIndexedAccessTypeNode:Zi,createMappedTypeNode:Mo,updateMappedTypeNode:Po,createLiteralTypeNode:Fo,updateLiteralTypeNode:zo,createTemplateLiteralType:Hi,updateTemplateLiteralType:to,createObjectBindingPattern:Es,updateObjectBindingPattern:Cs,createArrayBindingPattern:hr,updateArrayBindingPattern:dt,createBindingElement:tn,updateBindingElement:Un,createArrayLiteralExpression:oe,updateArrayLiteralExpression:mr,createObjectLiteralExpression:se,updateObjectLiteralExpression:Be,createPropertyAccessExpression:V&4?function(_,W){return e.setEmitFlags(er(_,W),131072)}:er,updatePropertyAccessExpression:vr,createPropertyAccessChain:V&4?function(_,W,be){return e.setEmitFlags(qr(_,W,be),131072)}:qr,updatePropertyAccessChain:Dt,createElementAccessExpression:Jt,updateElementAccessExpression:Sn,createElementAccessChain:ta,updateElementAccessChain:xa,createCallExpression:Di,updateCallExpression:$a,createCallChain:Ji,updateCallChain:So,createNewExpression:cs,updateNewExpression:bt,createTaggedTemplateExpression:Pn,updateTaggedTemplateExpression:da,createTypeAssertion:ei,updateTypeAssertion:bi,createParenthesizedExpression:xi,updateParenthesizedExpression:ka,createFunctionExpression:mi,updateFunctionExpression:Xi,createArrowFunction:Gi,updateArrowFunction:Ro,createDeleteExpression:ko,updateDeleteExpression:es,createTypeOfExpression:as,updateTypeOfExpression:pe,createVoidExpression:Rr,updateVoidExpression:ft,createAwaitExpression:Zt,updateAwaitExpression:Re,createPrefixUnaryExpression:Qr,updatePrefixUnaryExpression:vn,createPostfixUnaryExpression:Xn,updatePostfixUnaryExpression:gi,createBinaryExpression:Ia,updateBinaryExpression:Wo,createConditionalExpression:Ir,updateConditionalExpression:Us,createTemplateExpression:il,updateTemplateExpression:Ml,createTemplateHead:Ql,createTemplateMiddle:zl,createTemplateTail:uc,createNoSubstitutionTemplateLiteral:cu,createTemplateLiteralLikeNode:Vs,createYieldExpression:no,updateYieldExpression:ql,createSpreadElement:fc,updateSpreadElement:Ws,createClassExpression:xc,updateClassExpression:Ic,createOmittedExpression:La,createExpressionWithTypeArguments:uu,updateExpressionWithTypeArguments:dc,createAsExpression:Nc,updateAsExpression:wr,createNonNullExpression:$r,updateNonNullExpression:Lt,createNonNullChain:Kt,updateNonNullChain:pn,createMetaProperty:fn,updateMetaProperty:kn,createTemplateSpan:Kn,updateTemplateSpan:Fa,createSemicolonClassElement:ua,createBlock:le,updateBlock:rr,createVariableStatement:yr,updateVariableStatement:ct,createEmptyStatement:jt,createExpressionStatement:yn,updateExpressionStatement:ha,createIfStatement:ri,updateIfStatement:Ta,createDoStatement:Ya,updateDoStatement:fi,createWhileStatement:ci,updateWhileStatement:Si,createForStatement:Do,updateForStatement:bo,createForInStatement:Ns,updateForInStatement:Ys,createForOfStatement:Nu,updateForOfStatement:gf,createContinueStatement:Zl,updateContinueStatement:jc,createBreakStatement:Mr,updateBreakStatement:$l,createReturnStatement:pc,updateReturnStatement:ku,createWithStatement:ol,updateWithStatement:kc,createSwitchStatement:vf,updateSwitchStatement:fo,createLabeledStatement:Zf,updateLabeledStatement:hf,createThrowStatement:Nd,updateThrowStatement:_s,createTryStatement:Hc,updateTryStatement:Jc,createDebuggerStatement:zp,createVariableDeclaration:dl,updateVariableDeclaration:qp,createVariableDeclarationList:Rs,updateVariableDeclarationList:Ja,createFunctionDeclaration:Zn,updateFunctionDeclaration:Oc,createClassDeclaration:ks,updateClassDeclaration:yf,createInterfaceDeclaration:Ou,updateInterfaceDeclaration:kd,createTypeAliasDeclaration:Uo,updateTypeAliasDeclaration:$f,createEnumDeclaration:Od,updateEnumDeclaration:Rd,createModuleDeclaration:Xp,updateModuleDeclaration:yp,createModuleBlock:Xl,updateModuleBlock:C_,createCaseBlock:ed,updateCaseBlock:bp,createNamespaceExportDeclaration:wd,updateNamespaceExportDeclaration:Md,createImportEqualsDeclaration:Pd,updateImportEqualsDeclaration:Fd,createImportDeclaration:Ep,updateImportDeclaration:Yp,createImportClause:Gd,updateImportClause:Qp,createAssertClause:Bd,updateAssertClause:fu,createAssertEntry:_c,updateAssertEntry:mc,createNamespaceImport:ec,updateNamespaceImport:Ud,createNamespaceExport:bf,updateNamespaceExport:Tp,createNamedImports:Sp,updateNamedImports:Ef,createImportSpecifier:Zp,updateImportSpecifier:Vd,createExportAssignment:rd,updateExportAssignment:td,createExportDeclaration:Ru,updateExportDeclaration:wu,createNamedExports:Mu,updateNamedExports:js,createExportSpecifier:gc,updateExportSpecifier:nd,createMissingDeclaration:x_,createExternalModuleReference:ad,updateExternalModuleReference:Pu,get createJSDocAllType(){return u(310)},get createJSDocUnknownType(){return u(311)},get createJSDocNonNullableType(){return g(313)},get updateJSDocNonNullableType(){return P(313)},get createJSDocNullableType(){return g(312)},get updateJSDocNullableType(){return P(312)},get createJSDocOptionalType(){return g(314)},get updateJSDocOptionalType(){return P(314)},get createJSDocVariadicType(){return g(316)},get updateJSDocVariadicType(){return P(316)},get createJSDocNamepathType(){return g(317)},get updateJSDocNamepathType(){return P(317)},createJSDocFunctionType:Sl,updateJSDocFunctionType:Fl,createJSDocTypeLiteral:pl,updateJSDocTypeLiteral:Dp,createJSDocTypeExpression:Tf,updateJSDocTypeExpression:Wd,createJSDocSignature:id,updateJSDocSignature:mo,createJSDocTemplateTag:ms,updateJSDocTemplateTag:$p,createJSDocTypedefTag:Yl,updateJSDocTypedefTag:od,createJSDocParameterTag:Ln,updateJSDocParameterTag:us,createJSDocPropertyTag:ii,updateJSDocPropertyTag:Rc,createJSDocCallbackTag:sd,updateJSDocCallbackTag:sl,createJSDocAugmentsTag:Dn,updateJSDocAugmentsTag:N_,createJSDocImplementsTag:rs,updateJSDocImplementsTag:Fu,createJSDocSeeTag:fs,updateJSDocSeeTag:wc,createJSDocNameReference:Hs,updateJSDocNameReference:Sf,createJSDocMemberName:ws,updateJSDocMemberName:Mc,createJSDocLink:Qu,updateJSDocLink:Df,createJSDocLinkCode:hc,updateJSDocLinkCode:Lf,createJSDocLinkPlain:ll,updateJSDocLinkPlain:e_,get createJSDocTypeTag(){return X(341)},get updateJSDocTypeTag(){return j(341)},get createJSDocReturnTag(){return X(339)},get updateJSDocReturnTag(){return j(339)},get createJSDocThisTag(){return X(340)},get updateJSDocThisTag(){return j(340)},get createJSDocEnumTag(){return X(337)},get updateJSDocEnumTag(){return j(337)},get createJSDocAuthorTag(){return te(328)},get updateJSDocAuthorTag(){return ue(328)},get createJSDocClassTag(){return te(330)},get updateJSDocClassTag(){return ue(330)},get createJSDocPublicTag(){return te(331)},get updateJSDocPublicTag(){return ue(331)},get createJSDocPrivateTag(){return te(332)},get updateJSDocPrivateTag(){return ue(332)},get createJSDocProtectedTag(){return te(333)},get updateJSDocProtectedTag(){return ue(333)},get createJSDocReadonlyTag(){return te(334)},get updateJSDocReadonlyTag(){return ue(334)},get createJSDocOverrideTag(){return te(335)},get updateJSDocOverrideTag(){return ue(335)},get createJSDocDeprecatedTag(){return te(329)},get updateJSDocDeprecatedTag(){return ue(329)},createJSDocUnknownTag:yc,updateJSDocUnknownTag:ud,createJSDocText:xf,updateJSDocText:Gu,createJSDocComment:Js,updateJSDocComment:Gl,createJsxElement:Kc,updateJsxElement:fd,createJsxSelfClosingElement:Ga,updateJsxSelfClosingElement:wn,createJsxOpeningElement:Ts,updateJsxOpeningElement:jd,createJsxClosingElement:rc,updateJsxClosingElement:Zu,createJsxFragment:zc,createJsxText:Ll,updateJsxText:tc,createJsxOpeningFragment:If,createJsxJsxClosingFragment:$u,updateJsxFragment:Hd,createJsxAttribute:Qs,updateJsxAttribute:Jd,createJsxAttributes:jo,updateJsxAttributes:Bl,createJsxSpreadAttribute:Kd,updateJsxSpreadAttribute:nc,createJsxExpression:Nf,updateJsxExpression:Bu,createCaseClause:dd,updateCaseClause:zd,createDefaultClause:Al,updateDefaultClause:ts,createHeritageClause:du,updateHeritageClause:qd,createCatchClause:ac,updateCatchClause:kf,createPropertyAssignment:Uu,updatePropertyAssignment:ef,createShorthandPropertyAssignment:Of,updateShorthandPropertyAssignment:qc,createSpreadAssignment:rf,updateSpreadAssignment:Vu,createEnumMember:Xc,updateEnumMember:Yd,createSourceFile:Ec,updateSourceFile:r_,createBundle:Wa,updateBundle:pu,createUnparsedSource:gn,createUnparsedPrologue:Qd,createUnparsedPrepend:Zd,createUnparsedTextLike:Pc,createUnparsedSyntheticReference:$d,createInputFiles:k_,createSyntheticExpression:Yc,createSyntaxList:Lp,createNotEmittedStatement:pd,createPartiallyEmittedExpression:Ap,updatePartiallyEmittedExpression:Ul,createCommaListExpression:_d,updateCommaListExpression:Fc,createEndOfDeclarationMarker:Qc,createMergeDeclarationMarker:Mf,createSyntheticReferenceExpression:E,updateSyntheticReferenceExpression:Qe,cloneNode:nt,get createComma(){return D(27)},get createAssignment(){return D(63)},get createLogicalOr(){return D(56)},get createLogicalAnd(){return D(55)},get createBitwiseOr(){return D(51)},get createBitwiseXor(){return D(52)},get createBitwiseAnd(){return D(50)},get createStrictEquality(){return D(36)},get createStrictInequality(){return D(37)},get createEquality(){return D(34)},get createInequality(){return D(35)},get createLessThan(){return D(29)},get createLessThanEquals(){return D(32)},get createGreaterThan(){return D(31)},get createGreaterThanEquals(){return D(33)},get createLeftShift(){return D(47)},get createRightShift(){return D(48)},get createUnsignedRightShift(){return D(49)},get createAdd(){return D(39)},get createSubtract(){return D(40)},get createMultiply(){return D(41)},get createDivide(){return D(43)},get createModulo(){return D(44)},get createExponent(){return D(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 m(45)},get createPostfixDecrement(){return m(46)},createImmediatelyInvokedFunctionExpression:Ot,createImmediatelyInvokedArrowFunction:fa,createVoidZero:Oa,createExportDefault:ia,createExternalModuleExport:ti,createTypeCheck:Na,createMethodCall:Ua,createGlobalMethodCall:is,createFunctionBindCall:Go,createFunctionCallCall:cl,createFunctionApplyCall:os,createArraySliceCall:Vl,createArrayConcatCall:Zc,createObjectDefinePropertyCall:$c,createReflectGetCall:md,createReflectSetCall:t_,createPropertyDescriptor:Pf,createCallBinding:xe,createAssignmentTargetWrapper:Er,inlineExpressions:Fr,getInternalName:Ct,getLocalName:Xt,getExportName:On,getDeclarationName:$n,getNamespaceMemberName:wa,getExternalModuleOrNamespaceExportName:Ea,restoreOuterExpressions:Wl,restoreEnclosingLabel:ep,createUseStrictPrologue:$i,copyPrologue:Ki,copyStandardPrologue:Ho,copyCustomPrologue:gs,ensureUseStrict:_l,liftToBlock:xs,mergeLexicalEnvironment:bl,updateModifiers:ju};return Se;function Ce(_,W){if(_===void 0||_===e.emptyArray)_=[];else if(e.isNodeArray(_)){if(W===void 0||_.hasTrailingComma===W)return _.transformFlags===void 0&&b(_),e.Debug.attachNodeArrayDebugInfo(_),_;var be=_.slice();return be.pos=_.pos,be.end=_.end,be.hasTrailingComma=W,be.transformFlags=_.transformFlags,e.Debug.attachNodeArrayDebugInfo(be),be}var nr=_.length,Br=nr>=1&&nr<=4?_.slice():_;return e.setTextRangePosEnd(Br,-1,-1),Br.hasTrailingComma=!!W,b(Br),e.Debug.attachNodeArrayDebugInfo(Br),Br}function R(_){return re.createBaseNode(_)}function Y(_,W,be){var nr=R(_);return nr.decorators=ul(W),nr.modifiers=ul(be),nr.transformFlags|=ie(nr.decorators)|ie(nr.modifiers),nr.symbol=void 0,nr.localSymbol=void 0,nr.locals=void 0,nr.nextContainer=void 0,nr}function U(_,W,be,nr){var Br=Y(_,W,be);if(nr=Ms(nr),Br.name=nr,nr)switch(Br.kind){case 168:case 171:case 172:case 166:case 294:if(e.isIdentifier(nr)){Br.transformFlags|=v(nr);break}default:Br.transformFlags|=z(nr);break}return Br}function K(_,W,be,nr,Br){var Ht=U(_,W,be,nr);return Ht.typeParameters=ul(Br),Ht.transformFlags|=ie(Ht.typeParameters),Br&&(Ht.transformFlags|=1),Ht}function Te(_,W,be,nr,Br,Ht,an){var si=K(_,W,be,nr,Br);return si.parameters=Ce(Ht),si.type=an,si.transformFlags|=ie(si.parameters)|z(si.type),an&&(si.transformFlags|=1),si}function ge(_,W){return W.typeArguments&&(_.typeArguments=W.typeArguments),T(_,W)}function ke(_,W,be,nr,Br,Ht,an,si){var Io=Te(_,W,be,nr,Br,Ht,an);return Io.body=si,Io.transformFlags|=z(Io.body)&-16777217,si||(Io.transformFlags|=1),Io}function Pe(_,W){return W.exclamationToken&&(_.exclamationToken=W.exclamationToken),W.typeArguments&&(_.typeArguments=W.typeArguments),ge(_,W)}function Ie(_,W,be,nr,Br,Ht){var an=K(_,W,be,nr,Br);return an.heritageClauses=ul(Ht),an.transformFlags|=ie(an.heritageClauses),an}function Ge(_,W,be,nr,Br,Ht,an){var si=Ie(_,W,be,nr,Br,Ht);return si.members=Ce(an),si.transformFlags|=ie(si.members),si}function he(_,W,be,nr,Br){var Ht=U(_,W,be,nr);return Ht.initializer=Br,Ht.transformFlags|=z(Ht.initializer),Ht}function ve(_,W,be,nr,Br,Ht){var an=he(_,W,be,nr,Ht);return an.type=Br,an.transformFlags|=z(Br),Br&&(an.transformFlags|=1),an}function Ve(_,W){var be=gr(_);return be.text=W,be}function _e(_,W){W===void 0&&(W=0);var be=Ve(8,typeof _=="number"?_+"":_);return be.numericLiteralFlags=W,W&384&&(be.transformFlags|=512),be}function Le(_){var W=Ve(9,typeof _=="string"?_:e.pseudoBigIntToString(_)+"n");return W.transformFlags|=4,W}function qe(_,W){var be=Ve(10,_);return be.singleQuote=W,be}function Xe(_,W,be){var nr=qe(_,W);return nr.hasExtendedUnicodeEscape=be,be&&(nr.transformFlags|=512),nr}function De(_){var W=qe(e.getTextOfIdentifierOrLiteral(_),void 0);return W.textSourceNode=_,W}function Ae(_){var W=Ve(13,_);return W}function Ye(_,W){switch(_){case 8:return _e(W,0);case 9:return Le(W);case 10:return Xe(W,void 0);case 11:return Ll(W,!1);case 12:return Ll(W,!0);case 13:return Ae(W);case 14:return Vs(_,W,void 0,0)}}function Dr(_,W){W===void 0&&_&&(W=e.stringToToken(_)),W===79&&(W=void 0);var be=re.createBaseIdentifierNode(79);return be.originalKeywordKind=W,be.escapedText=e.escapeLeadingUnderscores(_),be}function br(_,W){var be=Dr(_,void 0);return be.autoGenerateFlags=W,be.autoGenerateId=n,n++,be}function lr(_,W,be){var nr=Dr(_,be);return W&&(nr.typeArguments=Ce(W)),nr.originalKeywordKind===132&&(nr.transformFlags|=16777216),nr}function Ar(_,W){return _.typeArguments!==W?T(lr(e.idText(_),W),_):_}function kr(_,W){var be=1;W&&(be|=8);var nr=br("",be);return _&&_(nr),nr}function Ke(_){var W=2;return _&&(W|=8),br("",W)}function Me(_,W){return W===void 0&&(W=0),e.Debug.assert(!(W&7),"Argument out of range: flags"),e.Debug.assert((W&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),br(_,3|W)}function Hr(_,W){W===void 0&&(W=0),e.Debug.assert(!(W&7),"Argument out of range: flags");var be=br(_&&e.isIdentifier(_)?e.idText(_):"",4|W);return be.original=_,be}function ur(_){e.startsWith(_,"#")||e.Debug.fail("First character of private identifier must be #: "+_);var W=re.createBasePrivateIdentifierNode(80);return W.escapedText=e.escapeLeadingUnderscores(_),W.transformFlags|=8388608,W}function gr(_){return re.createBaseTokenNode(_)}function de(_){e.Debug.assert(_>=0&&_<=159,"Invalid token"),e.Debug.assert(_<=14||_>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(_<=8||_>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(_!==79,"Invalid token. Use 'createIdentifier' to create identifiers");var W=gr(_),be=0;switch(_){case 131:be=192;break;case 123:case 121:case 122:case 144:case 126:case 135:case 85:case 130:case 146:case 157:case 143:case 147:case 158:case 149:case 133:case 150:case 114:case 154:case 152:be=1;break;case 106:be=33554944;break;case 124:be=512;break;case 108:be=8192;break}return be&&(W.transformFlags|=be),W}function Fe(){return de(106)}function $e(){return de(108)}function Sr(){return de(104)}function Pr(){return de(110)}function He(){return de(95)}function pr(_){return de(_)}function Jr(_){var W=[];return _&1&&W.push(pr(93)),_&2&&W.push(pr(135)),_&512&&W.push(pr(88)),_&2048&&W.push(pr(85)),_&4&&W.push(pr(123)),_&8&&W.push(pr(121)),_&16&&W.push(pr(122)),_&128&&W.push(pr(126)),_&32&&W.push(pr(124)),_&16384&&W.push(pr(158)),_&64&&W.push(pr(144)),_&256&&W.push(pr(131)),W}function ze(_,W){var be=R(160);return be.left=_,be.right=Ms(W),be.transformFlags|=z(be.left)|v(be.right),be}function Lr(_,W,be){return _.left!==W||_.right!==be?T(ze(W,be),_):_}function Yr(_){var W=R(161);return W.expression=N().parenthesizeExpressionOfComputedPropertyName(_),W.transformFlags|=z(W.expression)|512|65536,W}function lt(_,W){return _.expression!==W?T(Yr(W),_):_}function tt(_,W,be){var nr=U(162,void 0,void 0,_);return nr.constraint=W,nr.default=be,nr.transformFlags=1,nr}function Rt(_,W,be,nr){return _.name!==W||_.constraint!==be||_.default!==nr?T(tt(W,be,nr),_):_}function cn(_,W,be,nr,Br,Ht,an){var si=ve(163,_,W,nr,Ht,an&&N().parenthesizeExpressionForDisallowedComma(an));return si.dotDotDotToken=be,si.questionToken=Br,e.isThisIdentifier(si.name)?si.transformFlags=1:(si.transformFlags|=z(si.dotDotDotToken)|z(si.questionToken),Br&&(si.transformFlags|=1),e.modifiersToFlags(si.modifiers)&16476&&(si.transformFlags|=4096),(an||be)&&(si.transformFlags|=512)),si}function bn(_,W,be,nr,Br,Ht,an,si){return _.decorators!==W||_.modifiers!==be||_.dotDotDotToken!==nr||_.name!==Br||_.questionToken!==Ht||_.type!==an||_.initializer!==si?T(cn(W,be,nr,Br,Ht,an,si),_):_}function In(_){var W=R(164);return W.expression=N().parenthesizeLeftSideOfAccess(_),W.transformFlags|=z(W.expression)|1|4096,W}function zn(_,W){return _.expression!==W?T(In(W),_):_}function ir(_,W,be,nr){var Br=U(165,void 0,_,W);return Br.type=nr,Br.questionToken=be,Br.transformFlags=1,Br}function Or(_,W,be,nr,Br){return _.modifiers!==W||_.name!==be||_.questionToken!==nr||_.type!==Br?T(ir(W,be,nr,Br),_):_}function sr(_,W,be,nr,Br,Ht){var an=ve(166,_,W,be,Br,Ht);return an.questionToken=nr&&e.isQuestionToken(nr)?nr:void 0,an.exclamationToken=nr&&e.isExclamationToken(nr)?nr:void 0,an.transformFlags|=z(an.questionToken)|z(an.exclamationToken)|8388608,(e.isComputedPropertyName(an.name)||e.hasStaticModifier(an)&&an.initializer)&&(an.transformFlags|=4096),(nr||e.modifiersToFlags(an.modifiers)&2)&&(an.transformFlags|=1),an}function ye(_,W,be,nr,Br,Ht,an){return _.decorators!==W||_.modifiers!==be||_.name!==nr||_.questionToken!==(Br!==void 0&&e.isQuestionToken(Br)?Br:void 0)||_.exclamationToken!==(Br!==void 0&&e.isExclamationToken(Br)?Br:void 0)||_.type!==Ht||_.initializer!==an?T(sr(W,be,nr,Br,Ht,an),_):_}function or(_,W,be,nr,Br,Ht){var an=Te(167,void 0,_,W,nr,Br,Ht);return an.questionToken=be,an.transformFlags=1,an}function fe(_,W,be,nr,Br,Ht,an){return _.modifiers!==W||_.name!==be||_.questionToken!==nr||_.typeParameters!==Br||_.parameters!==Ht||_.type!==an?ge(or(W,be,nr,Br,Ht,an),_):_}function je(_,W,be,nr,Br,Ht,an,si,Io){var vs=ke(168,_,W,nr,Ht,an,si,Io);return vs.asteriskToken=be,vs.questionToken=Br,vs.transformFlags|=z(vs.asteriskToken)|z(vs.questionToken)|512,Br&&(vs.transformFlags|=1),e.modifiersToFlags(vs.modifiers)&256?be?vs.transformFlags|=64:vs.transformFlags|=128:be&&(vs.transformFlags|=1024),vs}function Ee(_,W,be,nr,Br,Ht,an,si,Io,vs){return _.decorators!==W||_.modifiers!==be||_.asteriskToken!==nr||_.name!==Br||_.questionToken!==Ht||_.typeParameters!==an||_.parameters!==si||_.type!==Io||_.body!==vs?Pe(je(W,be,nr,Br,Ht,an,si,Io,vs),_):_}function We(_,W,be){var nr=K(169,_,W,void 0,void 0);return nr.body=be,nr.transformFlags=z(be)|8388608,nr}function $(_,W,be,nr){return _.decorators!==W||_.modifier!==be||_.body!==nr?T(We(W,be,nr),_):_}function Ne(_,W,be,nr){var Br=ke(170,_,W,void 0,void 0,be,void 0,nr);return Br.transformFlags|=512,Br}function me(_,W,be,nr,Br){return _.decorators!==W||_.modifiers!==be||_.parameters!==nr||_.body!==Br?Pe(Ne(W,be,nr,Br),_):_}function Ze(_,W,be,nr,Br,Ht){return ke(171,_,W,be,void 0,nr,Br,Ht)}function Cr(_,W,be,nr,Br,Ht,an){return _.decorators!==W||_.modifiers!==be||_.name!==nr||_.parameters!==Br||_.type!==Ht||_.body!==an?Pe(Ze(W,be,nr,Br,Ht,an),_):_}function fr(_,W,be,nr,Br){return ke(172,_,W,be,void 0,nr,void 0,Br)}function dr(_,W,be,nr,Br,Ht){return _.decorators!==W||_.modifiers!==be||_.name!==nr||_.parameters!==Br||_.body!==Ht?Pe(fr(W,be,nr,Br,Ht),_):_}function et(_,W,be){var nr=Te(173,void 0,void 0,void 0,_,W,be);return nr.transformFlags=1,nr}function yt(_,W,be,nr){return _.typeParameters!==W||_.parameters!==be||_.type!==nr?ge(et(W,be,nr),_):_}function Vr(_,W,be){var nr=Te(174,void 0,void 0,void 0,_,W,be);return nr.transformFlags=1,nr}function tr(_,W,be,nr){return _.typeParameters!==W||_.parameters!==be||_.type!==nr?ge(Vr(W,be,nr),_):_}function xr(_,W,be,nr){var Br=Te(175,_,W,void 0,void 0,be,nr);return Br.transformFlags=1,Br}function Nr(_,W,be,nr,Br){return _.parameters!==nr||_.type!==Br||_.decorators!==W||_.modifiers!==be?ge(xr(W,be,nr,Br),_):_}function zr(_,W){var be=R(198);return be.type=_,be.literal=W,be.transformFlags=1,be}function gt(_,W,be){return _.type!==W||_.literal!==be?T(zr(W,be),_):_}function vt(_){return de(_)}function ut(_,W,be){var nr=R(176);return nr.assertsModifier=_,nr.parameterName=Ms(W),nr.type=be,nr.transformFlags=1,nr}function ht(_,W,be,nr){return _.assertsModifier!==W||_.parameterName!==be||_.type!==nr?T(ut(W,be,nr),_):_}function xt(_,W){var be=R(177);return be.typeName=Ms(_),be.typeArguments=W&&N().parenthesizeTypeArguments(Ce(W)),be.transformFlags=1,be}function wt(_,W,be){return _.typeName!==W||_.typeArguments!==be?T(xt(W,be),_):_}function Qt(_,W,be){var nr=Te(178,void 0,void 0,void 0,_,W,be);return nr.transformFlags=1,nr}function mt(_,W,be,nr){return _.typeParameters!==W||_.parameters!==be||_.type!==nr?ge(Qt(W,be,nr),_):_}function rn(){for(var _=[],W=0;W<arguments.length;W++)_[W]=arguments[W];return _.length===4?sa.apply(void 0,_):_.length===3?ba.apply(void 0,_):e.Debug.fail("Incorrect number of arguments specified.")}function sa(_,W,be,nr){var Br=Te(179,void 0,_,void 0,W,be,nr);return Br.transformFlags=1,Br}function ba(_,W,be){return sa(void 0,_,W,be)}function Jn(){for(var _=[],W=0;W<arguments.length;W++)_[W]=arguments[W];return _.length===5?na.apply(void 0,_):_.length===4?Wn.apply(void 0,_):e.Debug.fail("Incorrect number of arguments specified.")}function na(_,W,be,nr,Br){return _.modifiers!==W||_.typeParameters!==be||_.parameters!==nr||_.type!==Br?ge(rn(W,be,nr,Br),_):_}function Wn(_,W,be,nr){return na(_,_.modifiers,W,be,nr)}function en(_){var W=R(180);return W.exprName=_,W.transformFlags=1,W}function St(_,W){return _.exprName!==W?T(en(W),_):_}function Ut(_){var W=R(181);return W.members=Ce(_),W.transformFlags=1,W}function qt(_,W){return _.members!==W?T(Ut(W),_):_}function Mn(_){var W=R(182);return W.elementType=N().parenthesizeElementTypeOfArrayType(_),W.transformFlags=1,W}function dn(_,W){return _.elementType!==W?T(Mn(W),_):_}function oa(_){var W=R(183);return W.elements=Ce(_),W.transformFlags=1,W}function pt(_,W){return _.elements!==W?T(oa(W),_):_}function _t(_,W,be,nr){var Br=R(196);return Br.dotDotDotToken=_,Br.name=W,Br.questionToken=be,Br.type=nr,Br.transformFlags=1,Br}function Mt(_,W,be,nr,Br){return _.dotDotDotToken!==W||_.name!==be||_.questionToken!==nr||_.type!==Br?T(_t(W,be,nr,Br),_):_}function It(_){var W=R(184);return W.type=N().parenthesizeElementTypeOfArrayType(_),W.transformFlags=1,W}function rt(_,W){return _.type!==W?T(It(W),_):_}function Cn(_){var W=R(185);return W.type=_,W.transformFlags=1,W}function Qn(_,W){return _.type!==W?T(Cn(W),_):_}function Ra(_,W){var be=R(_);return be.types=N().parenthesizeConstituentTypesOfUnionOrIntersectionType(W),be.transformFlags=1,be}function Ci(_,W){return _.types!==W?T(Ra(_.kind,W),_):_}function _i(_){return Ra(186,_)}function va(_,W){return Ci(_,W)}function yi(_){return Ra(187,_)}function ro(_,W){return Ci(_,W)}function Ka(_,W,be,nr){var Br=R(188);return Br.checkType=N().parenthesizeMemberOfConditionalType(_),Br.extendsType=N().parenthesizeMemberOfConditionalType(W),Br.trueType=be,Br.falseType=nr,Br.transformFlags=1,Br}function Mi(_,W,be,nr,Br){return _.checkType!==W||_.extendsType!==be||_.trueType!==nr||_.falseType!==Br?T(Ka(W,be,nr,Br),_):_}function io(_){var W=R(189);return W.typeParameter=_,W.transformFlags=1,W}function ji(_,W){return _.typeParameter!==W?T(io(W),_):_}function Hi(_,W){var be=R(197);return be.head=_,be.templateSpans=Ce(W),be.transformFlags=1,be}function to(_,W,be){return _.head!==W||_.templateSpans!==be?T(Hi(W,be),_):_}function No(_,W,be,nr){nr===void 0&&(nr=!1);var Br=R(199);return Br.argument=_,Br.qualifier=W,Br.typeArguments=be&&N().parenthesizeTypeArguments(be),Br.isTypeOf=nr,Br.transformFlags=1,Br}function lo(_,W,be,nr,Br){return Br===void 0&&(Br=_.isTypeOf),_.argument!==W||_.qualifier!==be||_.typeArguments!==nr||_.isTypeOf!==Br?T(No(W,be,nr,Br),_):_}function Lo(_){var W=R(190);return W.type=_,W.transformFlags=1,W}function Ha(_,W){return _.type!==W?T(Lo(W),_):_}function Yo(){var _=R(191);return _.transformFlags=1,_}function co(_,W){var be=R(192);return be.operator=_,be.type=N().parenthesizeMemberOfElementType(W),be.transformFlags=1,be}function za(_,W){return _.type!==W?T(co(_.operator,W),_):_}function hi(_,W){var be=R(193);return be.objectType=N().parenthesizeMemberOfElementType(_),be.indexType=W,be.transformFlags=1,be}function Zi(_,W,be){return _.objectType!==W||_.indexType!==be?T(hi(W,be),_):_}function Mo(_,W,be,nr,Br,Ht){var an=R(194);return an.readonlyToken=_,an.typeParameter=W,an.nameType=be,an.questionToken=nr,an.type=Br,an.members=Ht&&Ce(Ht),an.transformFlags=1,an}function Po(_,W,be,nr,Br,Ht,an){return _.readonlyToken!==W||_.typeParameter!==be||_.nameType!==nr||_.questionToken!==Br||_.type!==Ht||_.members!==an?T(Mo(W,be,nr,Br,Ht,an),_):_}function Fo(_){var W=R(195);return W.literal=_,W.transformFlags=1,W}function zo(_,W){return _.literal!==W?T(Fo(W),_):_}function Es(_){var W=R(200);return W.elements=Ce(_),W.transformFlags|=ie(W.elements)|512|262144,W.transformFlags&16384&&(W.transformFlags|=32832),W}function Cs(_,W){return _.elements!==W?T(Es(W),_):_}function hr(_){var W=R(201);return W.elements=Ce(_),W.transformFlags|=ie(W.elements)|512|262144,W}function dt(_,W){return _.elements!==W?T(hr(W),_):_}function tn(_,W,be,nr){var Br=he(202,void 0,void 0,be,nr&&N().parenthesizeExpressionForDisallowedComma(nr));return Br.propertyName=Ms(W),Br.dotDotDotToken=_,Br.transformFlags|=z(Br.dotDotDotToken)|512,Br.propertyName&&(Br.transformFlags|=e.isIdentifier(Br.propertyName)?v(Br.propertyName):z(Br.propertyName)),_&&(Br.transformFlags|=16384),Br}function Un(_,W,be,nr,Br){return _.propertyName!==be||_.dotDotDotToken!==W||_.name!==nr||_.initializer!==Br?T(tn(W,be,nr,Br),_):_}function Oe(_){var W=R(_);return W}function oe(_,W){var be=Oe(203),nr=_&&e.lastOrUndefined(_),Br=Ce(_,nr&&e.isOmittedExpression(nr)?!0:void 0);return be.elements=N().parenthesizeExpressionsOfCommaDelimitedList(Br),be.multiLine=W,be.transformFlags|=ie(be.elements),be}function mr(_,W){return _.elements!==W?T(oe(W,_.multiLine),_):_}function se(_,W){var be=Oe(204);return be.properties=Ce(_),be.multiLine=W,be.transformFlags|=ie(be.properties),be}function Be(_,W){return _.properties!==W?T(se(W,_.multiLine),_):_}function er(_,W){var be=Oe(205);return be.expression=N().parenthesizeLeftSideOfAccess(_),be.name=Ms(W),be.transformFlags=z(be.expression)|(e.isIdentifier(be.name)?v(be.name):z(be.name)),e.isSuperKeyword(_)&&(be.transformFlags|=192),be}function vr(_,W,be){return e.isPropertyAccessChain(_)?Dt(_,W,_.questionDotToken,e.cast(be,e.isIdentifier)):_.expression!==W||_.name!==be?T(er(W,be),_):_}function qr(_,W,be){var nr=Oe(205);return nr.flags|=32,nr.expression=N().parenthesizeLeftSideOfAccess(_),nr.questionDotToken=W,nr.name=Ms(be),nr.transformFlags|=16|z(nr.expression)|z(nr.questionDotToken)|(e.isIdentifier(nr.name)?v(nr.name):z(nr.name)),nr}function Dt(_,W,be,nr){return e.Debug.assert(!!(_.flags&32),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),_.expression!==W||_.questionDotToken!==be||_.name!==nr?T(qr(W,be,nr),_):_}function Jt(_,W){var be=Oe(206);return be.expression=N().parenthesizeLeftSideOfAccess(_),be.argumentExpression=Ff(W),be.transformFlags|=z(be.expression)|z(be.argumentExpression),e.isSuperKeyword(_)&&(be.transformFlags|=192),be}function Sn(_,W,be){return e.isElementAccessChain(_)?xa(_,W,_.questionDotToken,be):_.expression!==W||_.argumentExpression!==be?T(Jt(W,be),_):_}function ta(_,W,be){var nr=Oe(206);return nr.flags|=32,nr.expression=N().parenthesizeLeftSideOfAccess(_),nr.questionDotToken=W,nr.argumentExpression=Ff(be),nr.transformFlags|=z(nr.expression)|z(nr.questionDotToken)|z(nr.argumentExpression)|16,nr}function xa(_,W,be,nr){return e.Debug.assert(!!(_.flags&32),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),_.expression!==W||_.questionDotToken!==be||_.argumentExpression!==nr?T(ta(W,be,nr),_):_}function Di(_,W,be){var nr=Oe(207);return nr.expression=N().parenthesizeLeftSideOfAccess(_),nr.typeArguments=ul(W),nr.arguments=N().parenthesizeExpressionsOfCommaDelimitedList(Ce(be)),nr.transformFlags|=z(nr.expression)|ie(nr.typeArguments)|ie(nr.arguments),nr.typeArguments&&(nr.transformFlags|=1),e.isImportKeyword(nr.expression)?nr.transformFlags|=4194304:e.isSuperProperty(nr.expression)&&(nr.transformFlags|=8192),nr}function $a(_,W,be,nr){return e.isCallChain(_)?So(_,W,_.questionDotToken,be,nr):_.expression!==W||_.typeArguments!==be||_.arguments!==nr?T(Di(W,be,nr),_):_}function Ji(_,W,be,nr){var Br=Oe(207);return Br.flags|=32,Br.expression=N().parenthesizeLeftSideOfAccess(_),Br.questionDotToken=W,Br.typeArguments=ul(be),Br.arguments=N().parenthesizeExpressionsOfCommaDelimitedList(Ce(nr)),Br.transformFlags|=z(Br.expression)|z(Br.questionDotToken)|ie(Br.typeArguments)|ie(Br.arguments)|16,Br.typeArguments&&(Br.transformFlags|=1),e.isSuperProperty(Br.expression)&&(Br.transformFlags|=8192),Br}function So(_,W,be,nr,Br){return e.Debug.assert(!!(_.flags&32),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),_.expression!==W||_.questionDotToken!==be||_.typeArguments!==nr||_.arguments!==Br?T(Ji(W,be,nr,Br),_):_}function cs(_,W,be){var nr=Oe(208);return nr.expression=N().parenthesizeExpressionOfNew(_),nr.typeArguments=ul(W),nr.arguments=be?N().parenthesizeExpressionsOfCommaDelimitedList(be):void 0,nr.transformFlags|=z(nr.expression)|ie(nr.typeArguments)|ie(nr.arguments)|16,nr.typeArguments&&(nr.transformFlags|=1),nr}function bt(_,W,be,nr){return _.expression!==W||_.typeArguments!==be||_.arguments!==nr?T(cs(W,be,nr),_):_}function Pn(_,W,be){var nr=Oe(209);return nr.tag=N().parenthesizeLeftSideOfAccess(_),nr.typeArguments=ul(W),nr.template=be,nr.transformFlags|=z(nr.tag)|ie(nr.typeArguments)|z(nr.template)|512,nr.typeArguments&&(nr.transformFlags|=1),e.hasInvalidEscape(nr.template)&&(nr.transformFlags|=64),nr}function da(_,W,be,nr){return _.tag!==W||_.typeArguments!==be||_.template!==nr?T(Pn(W,be,nr),_):_}function ei(_,W){var be=Oe(210);return be.expression=N().parenthesizeOperandOfPrefixUnary(W),be.type=_,be.transformFlags|=z(be.expression)|z(be.type)|1,be}function bi(_,W,be){return _.type!==W||_.expression!==be?T(ei(W,be),_):_}function xi(_){var W=Oe(211);return W.expression=_,W.transformFlags=z(W.expression),W}function ka(_,W){return _.expression!==W?T(xi(W),_):_}function mi(_,W,be,nr,Br,Ht,an){var si=ke(212,void 0,_,be,nr,Br,Ht,an);return si.asteriskToken=W,si.transformFlags|=z(si.asteriskToken),si.typeParameters&&(si.transformFlags|=1),e.modifiersToFlags(si.modifiers)&256?si.asteriskToken?si.transformFlags|=64:si.transformFlags|=128:si.asteriskToken&&(si.transformFlags|=1024),si}function Xi(_,W,be,nr,Br,Ht,an,si){return _.name!==nr||_.modifiers!==W||_.asteriskToken!==be||_.typeParameters!==Br||_.parameters!==Ht||_.type!==an||_.body!==si?Pe(mi(W,be,nr,Br,Ht,an,si),_):_}function Gi(_,W,be,nr,Br,Ht){var an=ke(213,void 0,_,void 0,W,be,nr,N().parenthesizeConciseBodyOfArrowFunction(Ht));return an.equalsGreaterThanToken=Br??de(38),an.transformFlags|=z(an.equalsGreaterThanToken)|512,e.modifiersToFlags(an.modifiers)&256&&(an.transformFlags|=8320),an}function Ro(_,W,be,nr,Br,Ht,an){return _.modifiers!==W||_.typeParameters!==be||_.parameters!==nr||_.type!==Br||_.equalsGreaterThanToken!==Ht||_.body!==an?Pe(Gi(W,be,nr,Br,Ht,an),_):_}function ko(_){var W=Oe(214);return W.expression=N().parenthesizeOperandOfPrefixUnary(_),W.transformFlags|=z(W.expression),W}function es(_,W){return _.expression!==W?T(ko(W),_):_}function as(_){var W=Oe(215);return W.expression=N().parenthesizeOperandOfPrefixUnary(_),W.transformFlags|=z(W.expression),W}function pe(_,W){return _.expression!==W?T(as(W),_):_}function Rr(_){var W=Oe(216);return W.expression=N().parenthesizeOperandOfPrefixUnary(_),W.transformFlags|=z(W.expression),W}function ft(_,W){return _.expression!==W?T(Rr(W),_):_}function Zt(_){var W=Oe(217);return W.expression=N().parenthesizeOperandOfPrefixUnary(_),W.transformFlags|=z(W.expression)|128|64|1048576,W}function Re(_,W){return _.expression!==W?T(Zt(W),_):_}function Qr(_,W){var be=Oe(218);return be.operator=_,be.operand=N().parenthesizeOperandOfPrefixUnary(W),be.transformFlags|=z(be.operand),(_===45||_===46)&&e.isIdentifier(be.operand)&&!e.isGeneratedIdentifier(be.operand)&&!e.isLocalName(be.operand)&&(be.transformFlags|=67108864),be}function vn(_,W){return _.operand!==W?T(Qr(_.operator,W),_):_}function Xn(_,W){var be=Oe(219);return be.operator=W,be.operand=N().parenthesizeOperandOfPostfixUnary(_),be.transformFlags|=z(be.operand),e.isIdentifier(be.operand)&&!e.isGeneratedIdentifier(be.operand)&&!e.isLocalName(be.operand)&&(be.transformFlags|=67108864),be}function gi(_,W){return _.operand!==W?T(Xn(W,_.operator),_):_}function Ia(_,W,be){var nr=Oe(220),Br=_u(W),Ht=Br.kind;return nr.left=N().parenthesizeLeftSideOfBinary(Ht,_),nr.operatorToken=Br,nr.right=N().parenthesizeRightSideOfBinary(Ht,nr.left,be),nr.transformFlags|=z(nr.left)|z(nr.operatorToken)|z(nr.right),Ht===60?nr.transformFlags|=16:Ht===63?e.isObjectLiteralExpression(nr.left)?nr.transformFlags|=2624|oo(nr.left):e.isArrayLiteralExpression(nr.left)&&(nr.transformFlags|=2560|oo(nr.left)):Ht===42||Ht===67?nr.transformFlags|=256:e.isLogicalOrCoalescingAssignmentOperator(Ht)&&(nr.transformFlags|=8),nr}function oo(_){if(_.transformFlags&32768)return 32768;if(_.transformFlags&64)for(var W=0,be=e.getElementsOfBindingOrAssignmentPattern(_);W<be.length;W++){var nr=be[W],Br=e.getTargetOfBindingOrAssignmentElement(nr);if(Br&&e.isAssignmentPattern(Br)){if(Br.transformFlags&32768)return 32768;if(Br.transformFlags&64){var Ht=oo(Br);if(Ht)return Ht}}}return 0}function Wo(_,W,be,nr){return _.left!==W||_.operatorToken!==be||_.right!==nr?T(Ia(W,be,nr),_):_}function Ir(_,W,be,nr,Br){var Ht=Oe(221);return Ht.condition=N().parenthesizeConditionOfConditionalExpression(_),Ht.questionToken=W??de(57),Ht.whenTrue=N().parenthesizeBranchOfConditionalExpression(be),Ht.colonToken=nr??de(58),Ht.whenFalse=N().parenthesizeBranchOfConditionalExpression(Br),Ht.transformFlags|=z(Ht.condition)|z(Ht.questionToken)|z(Ht.whenTrue)|z(Ht.colonToken)|z(Ht.whenFalse),Ht}function Us(_,W,be,nr,Br,Ht){return _.condition!==W||_.questionToken!==be||_.whenTrue!==nr||_.colonToken!==Br||_.whenFalse!==Ht?T(Ir(W,be,nr,Br,Ht),_):_}function il(_,W){var be=Oe(222);return be.head=_,be.templateSpans=Ce(W),be.transformFlags|=z(be.head)|ie(be.templateSpans)|512,be}function Ml(_,W,be){return _.head!==W||_.templateSpans!==be?T(il(W,be),_):_}function Co(_,W,be,nr){nr===void 0&&(nr=0),e.Debug.assert(!(nr&-2049),"Unsupported template flags.");var Br=void 0;if(be!==void 0&&be!==W&&(Br=h(_,be),typeof Br=="object"))return e.Debug.fail("Invalid raw text");if(W===void 0){if(Br===void 0)return e.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");W=Br}else Br!==void 0&&e.Debug.assert(W===Br,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return Vs(_,W,be,nr)}function Vs(_,W,be,nr){var Br=gr(_);return Br.text=W,Br.rawText=be,Br.templateFlags=nr&2048,Br.transformFlags|=512,Br.templateFlags&&(Br.transformFlags|=64),Br}function Ql(_,W,be){return Co(15,_,W,be)}function zl(_,W,be){return Co(16,_,W,be)}function uc(_,W,be){return Co(17,_,W,be)}function cu(_,W,be){return Co(14,_,W,be)}function no(_,W){e.Debug.assert(!_||!!W,"A `YieldExpression` with an asteriskToken must have an expression.");var be=Oe(223);return be.expression=W&&N().parenthesizeExpressionForDisallowedComma(W),be.asteriskToken=_,be.transformFlags|=z(be.expression)|z(be.asteriskToken)|512|64|524288,be}function ql(_,W,be){return _.expression!==be||_.asteriskToken!==W?T(no(W,be),_):_}function fc(_){var W=Oe(224);return W.expression=N().parenthesizeExpressionForDisallowedComma(_),W.transformFlags|=z(W.expression)|512|16384,W}function Ws(_,W){return _.expression!==W?T(fc(W),_):_}function xc(_,W,be,nr,Br,Ht){var an=Ge(225,_,W,be,nr,Br,Ht);return an.transformFlags|=512,an}function Ic(_,W,be,nr,Br,Ht,an){return _.decorators!==W||_.modifiers!==be||_.name!==nr||_.typeParameters!==Br||_.heritageClauses!==Ht||_.members!==an?T(xc(W,be,nr,Br,Ht,an),_):_}function La(){return Oe(226)}function uu(_,W){var be=R(227);return be.expression=N().parenthesizeLeftSideOfAccess(_),be.typeArguments=W&&N().parenthesizeTypeArguments(W),be.transformFlags|=z(be.expression)|ie(be.typeArguments)|512,be}function dc(_,W,be){return _.expression!==W||_.typeArguments!==be?T(uu(W,be),_):_}function Nc(_,W){var be=Oe(228);return be.expression=_,be.type=W,be.transformFlags|=z(be.expression)|z(be.type)|1,be}function wr(_,W,be){return _.expression!==W||_.type!==be?T(Nc(W,be),_):_}function $r(_){var W=Oe(229);return W.expression=N().parenthesizeLeftSideOfAccess(_),W.transformFlags|=z(W.expression)|1,W}function Lt(_,W){return e.isNonNullChain(_)?pn(_,W):_.expression!==W?T($r(W),_):_}function Kt(_){var W=Oe(229);return W.flags|=32,W.expression=N().parenthesizeLeftSideOfAccess(_),W.transformFlags|=z(W.expression)|1,W}function pn(_,W){return e.Debug.assert(!!(_.flags&32),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),_.expression!==W?T(Kt(W),_):_}function fn(_,W){var be=Oe(230);switch(be.keywordToken=_,be.name=W,be.transformFlags|=z(be.name),_){case 103:be.transformFlags|=512;break;case 100:be.transformFlags|=4;break;default:return e.Debug.assertNever(_)}return be}function kn(_,W){return _.name!==W?T(fn(_.keywordToken,W),_):_}function Kn(_,W){var be=R(232);return be.expression=_,be.literal=W,be.transformFlags|=z(be.expression)|z(be.literal)|512,be}function Fa(_,W,be){return _.expression!==W||_.literal!==be?T(Kn(W,be),_):_}function ua(){var _=R(233);return _.transformFlags|=512,_}function le(_,W){var be=R(234);return be.statements=Ce(_),be.multiLine=W,be.transformFlags|=ie(be.statements),be}function rr(_,W){return _.statements!==W?T(le(W,_.multiLine),_):_}function yr(_,W){var be=Y(236,void 0,_);return be.declarationList=e.isArray(W)?Rs(W):W,be.transformFlags|=z(be.declarationList),e.modifiersToFlags(be.modifiers)&2&&(be.transformFlags=1),be}function ct(_,W,be){return _.modifiers!==W||_.declarationList!==be?T(yr(W,be),_):_}function jt(){return R(235)}function yn(_){var W=R(237);return W.expression=N().parenthesizeExpressionOfExpressionStatement(_),W.transformFlags|=z(W.expression),W}function ha(_,W){return _.expression!==W?T(yn(W),_):_}function ri(_,W,be){var nr=R(238);return nr.expression=_,nr.thenStatement=ml(W),nr.elseStatement=ml(be),nr.transformFlags|=z(nr.expression)|z(nr.thenStatement)|z(nr.elseStatement),nr}function Ta(_,W,be,nr){return _.expression!==W||_.thenStatement!==be||_.elseStatement!==nr?T(ri(W,be,nr),_):_}function Ya(_,W){var be=R(239);return be.statement=ml(_),be.expression=W,be.transformFlags|=z(be.statement)|z(be.expression),be}function fi(_,W,be){return _.statement!==W||_.expression!==be?T(Ya(W,be),_):_}function ci(_,W){var be=R(240);return be.expression=_,be.statement=ml(W),be.transformFlags|=z(be.expression)|z(be.statement),be}function Si(_,W,be){return _.expression!==W||_.statement!==be?T(ci(W,be),_):_}function Do(_,W,be,nr){var Br=R(241);return Br.initializer=_,Br.condition=W,Br.incrementor=be,Br.statement=ml(nr),Br.transformFlags|=z(Br.initializer)|z(Br.condition)|z(Br.incrementor)|z(Br.statement),Br}function bo(_,W,be,nr,Br){return _.initializer!==W||_.condition!==be||_.incrementor!==nr||_.statement!==Br?T(Do(W,be,nr,Br),_):_}function Ns(_,W,be){var nr=R(242);return nr.initializer=_,nr.expression=W,nr.statement=ml(be),nr.transformFlags|=z(nr.initializer)|z(nr.expression)|z(nr.statement),nr}function Ys(_,W,be,nr){return _.initializer!==W||_.expression!==be||_.statement!==nr?T(Ns(W,be,nr),_):_}function Nu(_,W,be,nr){var Br=R(243);return Br.awaitModifier=_,Br.initializer=W,Br.expression=N().parenthesizeExpressionForDisallowedComma(be),Br.statement=ml(nr),Br.transformFlags|=z(Br.awaitModifier)|z(Br.initializer)|z(Br.expression)|z(Br.statement)|512,_&&(Br.transformFlags|=64),Br}function gf(_,W,be,nr,Br){return _.awaitModifier!==W||_.initializer!==be||_.expression!==nr||_.statement!==Br?T(Nu(W,be,nr,Br),_):_}function Zl(_){var W=R(244);return W.label=Ms(_),W.transformFlags|=z(W.label)|2097152,W}function jc(_,W){return _.label!==W?T(Zl(W),_):_}function Mr(_){var W=R(245);return W.label=Ms(_),W.transformFlags|=z(W.label)|2097152,W}function $l(_,W){return _.label!==W?T(Mr(W),_):_}function pc(_){var W=R(246);return W.expression=_,W.transformFlags|=z(W.expression)|64|2097152,W}function ku(_,W){return _.expression!==W?T(pc(W),_):_}function ol(_,W){var be=R(247);return be.expression=_,be.statement=ml(W),be.transformFlags|=z(be.expression)|z(be.statement),be}function kc(_,W,be){return _.expression!==W||_.statement!==be?T(ol(W,be),_):_}function vf(_,W){var be=R(248);return be.expression=N().parenthesizeExpressionForDisallowedComma(_),be.caseBlock=W,be.transformFlags|=z(be.expression)|z(be.caseBlock),be}function fo(_,W,be){return _.expression!==W||_.caseBlock!==be?T(vf(W,be),_):_}function Zf(_,W){var be=R(249);return be.label=Ms(_),be.statement=ml(W),be.transformFlags|=z(be.label)|z(be.statement),be}function hf(_,W,be){return _.label!==W||_.statement!==be?T(Zf(W,be),_):_}function Nd(_){var W=R(250);return W.expression=_,W.transformFlags|=z(W.expression),W}function _s(_,W){return _.expression!==W?T(Nd(W),_):_}function Hc(_,W,be){var nr=R(251);return nr.tryBlock=_,nr.catchClause=W,nr.finallyBlock=be,nr.transformFlags|=z(nr.tryBlock)|z(nr.catchClause)|z(nr.finallyBlock),nr}function Jc(_,W,be,nr){return _.tryBlock!==W||_.catchClause!==be||_.finallyBlock!==nr?T(Hc(W,be,nr),_):_}function zp(){return R(252)}function dl(_,W,be,nr){var Br=ve(253,void 0,void 0,_,be,nr&&N().parenthesizeExpressionForDisallowedComma(nr));return Br.exclamationToken=W,Br.transformFlags|=z(Br.exclamationToken),W&&(Br.transformFlags|=1),Br}function qp(_,W,be,nr,Br){return _.name!==W||_.type!==nr||_.exclamationToken!==be||_.initializer!==Br?T(dl(W,be,nr,Br),_):_}function Rs(_,W){W===void 0&&(W=0);var be=R(254);return be.flags|=W&3,be.declarations=Ce(_),be.transformFlags|=ie(be.declarations)|2097152,W&3&&(be.transformFlags|=131584),be}function Ja(_,W){return _.declarations!==W?T(Rs(W,_.flags),_):_}function Zn(_,W,be,nr,Br,Ht,an,si){var Io=ke(255,_,W,nr,Br,Ht,an,si);return Io.asteriskToken=be,!Io.body||e.modifiersToFlags(Io.modifiers)&2?Io.transformFlags=1:(Io.transformFlags|=z(Io.asteriskToken)|2097152,e.modifiersToFlags(Io.modifiers)&256?Io.asteriskToken?Io.transformFlags|=64:Io.transformFlags|=128:Io.asteriskToken&&(Io.transformFlags|=1024)),Io}function Oc(_,W,be,nr,Br,Ht,an,si,Io){return _.decorators!==W||_.modifiers!==be||_.asteriskToken!==nr||_.name!==Br||_.typeParameters!==Ht||_.parameters!==an||_.type!==si||_.body!==Io?Pe(Zn(W,be,nr,Br,Ht,an,si,Io),_):_}function ks(_,W,be,nr,Br,Ht){var an=Ge(256,_,W,be,nr,Br,Ht);return e.modifiersToFlags(an.modifiers)&2?an.transformFlags=1:(an.transformFlags|=512,an.transformFlags&4096&&(an.transformFlags|=1)),an}function yf(_,W,be,nr,Br,Ht,an){return _.decorators!==W||_.modifiers!==be||_.name!==nr||_.typeParameters!==Br||_.heritageClauses!==Ht||_.members!==an?T(ks(W,be,nr,Br,Ht,an),_):_}function Ou(_,W,be,nr,Br,Ht){var an=Ie(257,_,W,be,nr,Br);return an.members=Ce(Ht),an.transformFlags=1,an}function kd(_,W,be,nr,Br,Ht,an){return _.decorators!==W||_.modifiers!==be||_.name!==nr||_.typeParameters!==Br||_.heritageClauses!==Ht||_.members!==an?T(Ou(W,be,nr,Br,Ht,an),_):_}function Uo(_,W,be,nr,Br){var Ht=K(258,_,W,be,nr);return Ht.type=Br,Ht.transformFlags=1,Ht}function $f(_,W,be,nr,Br,Ht){return _.decorators!==W||_.modifiers!==be||_.name!==nr||_.typeParameters!==Br||_.type!==Ht?T(Uo(W,be,nr,Br,Ht),_):_}function Od(_,W,be,nr){var Br=U(259,_,W,be);return Br.members=Ce(nr),Br.transformFlags|=ie(Br.members)|1,Br.transformFlags&=-16777217,Br}function Rd(_,W,be,nr,Br){return _.decorators!==W||_.modifiers!==be||_.name!==nr||_.members!==Br?T(Od(W,be,nr,Br),_):_}function Xp(_,W,be,nr,Br){Br===void 0&&(Br=0);var Ht=Y(260,_,W);return Ht.flags|=Br&1044,Ht.name=be,Ht.body=nr,e.modifiersToFlags(Ht.modifiers)&2?Ht.transformFlags=1:Ht.transformFlags|=z(Ht.name)|z(Ht.body)|1,Ht.transformFlags&=-16777217,Ht}function yp(_,W,be,nr,Br){return _.decorators!==W||_.modifiers!==be||_.name!==nr||_.body!==Br?T(Xp(W,be,nr,Br,_.flags),_):_}function Xl(_){var W=R(261);return W.statements=Ce(_),W.transformFlags|=ie(W.statements),W}function C_(_,W){return _.statements!==W?T(Xl(W),_):_}function ed(_){var W=R(262);return W.clauses=Ce(_),W.transformFlags|=ie(W.clauses),W}function bp(_,W){return _.clauses!==W?T(ed(W),_):_}function wd(_){var W=U(263,void 0,void 0,_);return W.transformFlags=1,W}function Md(_,W){return _.name!==W?T(wd(W),_):_}function Pd(_,W,be,nr,Br){var Ht=U(264,_,W,nr);return Ht.isTypeOnly=be,Ht.moduleReference=Br,Ht.transformFlags|=z(Ht.moduleReference),e.isExternalModuleReference(Ht.moduleReference)||(Ht.transformFlags|=1),Ht.transformFlags&=-16777217,Ht}function Fd(_,W,be,nr,Br,Ht){return _.decorators!==W||_.modifiers!==be||_.isTypeOnly!==nr||_.name!==Br||_.moduleReference!==Ht?T(Pd(W,be,nr,Br,Ht),_):_}function Ep(_,W,be,nr,Br){var Ht=Y(265,_,W);return Ht.importClause=be,Ht.moduleSpecifier=nr,Ht.assertClause=Br,Ht.transformFlags|=z(Ht.importClause)|z(Ht.moduleSpecifier),Ht.transformFlags&=-16777217,Ht}function Yp(_,W,be,nr,Br,Ht){return _.decorators!==W||_.modifiers!==be||_.importClause!==nr||_.moduleSpecifier!==Br||_.assertClause!==Ht?T(Ep(W,be,nr,Br,Ht),_):_}function Gd(_,W,be){var nr=R(266);return nr.isTypeOnly=_,nr.name=W,nr.namedBindings=be,nr.transformFlags|=z(nr.name)|z(nr.namedBindings),_&&(nr.transformFlags|=1),nr.transformFlags&=-16777217,nr}function Qp(_,W,be,nr){return _.isTypeOnly!==W||_.name!==be||_.namedBindings!==nr?T(Gd(W,be,nr),_):_}function Bd(_,W){var be=R(292);return be.elements=_,be.multiLine=W,be.transformFlags|=4,be}function fu(_,W,be){return _.elements!==W||_.multiLine!==be?T(Bd(W,be),_):_}function _c(_,W){var be=R(293);return be.name=_,be.value=W,be.transformFlags|=4,be}function mc(_,W,be){return _.name!==W||_.value!==be?T(_c(W,be),_):_}function ec(_){var W=R(267);return W.name=_,W.transformFlags|=z(W.name),W.transformFlags&=-16777217,W}function Ud(_,W){return _.name!==W?T(ec(W),_):_}function bf(_){var W=R(273);return W.name=_,W.transformFlags|=z(W.name)|4,W.transformFlags&=-16777217,W}function Tp(_,W){return _.name!==W?T(bf(W),_):_}function Sp(_){var W=R(268);return W.elements=Ce(_),W.transformFlags|=ie(W.elements),W.transformFlags&=-16777217,W}function Ef(_,W){return _.elements!==W?T(Sp(W),_):_}function Zp(_,W,be){var nr=R(269);return nr.isTypeOnly=_,nr.propertyName=W,nr.name=be,nr.transformFlags|=z(nr.propertyName)|z(nr.name),nr.transformFlags&=-16777217,nr}function Vd(_,W,be,nr){return _.isTypeOnly!==W||_.propertyName!==be||_.name!==nr?T(Zp(W,be,nr),_):_}function rd(_,W,be,nr){var Br=Y(270,_,W);return Br.isExportEquals=be,Br.expression=be?N().parenthesizeRightSideOfBinary(63,void 0,nr):N().parenthesizeExpressionOfExportDefault(nr),Br.transformFlags|=z(Br.expression),Br.transformFlags&=-16777217,Br}function td(_,W,be,nr){return _.decorators!==W||_.modifiers!==be||_.expression!==nr?T(rd(W,be,_.isExportEquals,nr),_):_}function Ru(_,W,be,nr,Br,Ht){var an=Y(271,_,W);return an.isTypeOnly=be,an.exportClause=nr,an.moduleSpecifier=Br,an.assertClause=Ht,an.transformFlags|=z(an.exportClause)|z(an.moduleSpecifier),an.transformFlags&=-16777217,an}function wu(_,W,be,nr,Br,Ht,an){return _.decorators!==W||_.modifiers!==be||_.isTypeOnly!==nr||_.exportClause!==Br||_.moduleSpecifier!==Ht||_.assertClause!==an?T(Ru(W,be,nr,Br,Ht,an),_):_}function Mu(_){var W=R(272);return W.elements=Ce(_),W.transformFlags|=ie(W.elements),W.transformFlags&=-16777217,W}function js(_,W){return _.elements!==W?T(Mu(W),_):_}function gc(_,W,be){var nr=R(274);return nr.isTypeOnly=_,nr.propertyName=Ms(W),nr.name=Ms(be),nr.transformFlags|=z(nr.propertyName)|z(nr.name),nr.transformFlags&=-16777217,nr}function nd(_,W,be,nr){return _.isTypeOnly!==W||_.propertyName!==be||_.name!==nr?T(gc(W,be,nr),_):_}function x_(){var _=Y(275,void 0,void 0);return _}function ad(_){var W=R(276);return W.expression=_,W.transformFlags|=z(W.expression),W.transformFlags&=-16777217,W}function Pu(_,W){return _.expression!==W?T(ad(W),_):_}function I_(_){return R(_)}function vc(_,W){var be=R(_);return be.type=W,be}function Pl(_,W,be){return W.type!==be?T(vc(_,be),W):W}function Sl(_,W){var be=Te(315,void 0,void 0,void 0,void 0,_,W);return be}function Fl(_,W,be){return _.parameters!==W||_.type!==be?T(Sl(W,be),_):_}function pl(_,W){W===void 0&&(W=!1);var be=R(320);return be.jsDocPropertyTags=ul(_),be.isArrayType=W,be}function Dp(_,W,be){return _.jsDocPropertyTags!==W||_.isArrayType!==be?T(pl(W,be),_):_}function Tf(_){var W=R(307);return W.type=_,W}function Wd(_,W){return _.type!==W?T(Tf(W),_):_}function id(_,W,be){var nr=R(321);return nr.typeParameters=ul(_),nr.parameters=Ce(W),nr.type=be,nr}function mo(_,W,be,nr){return _.typeParameters!==W||_.parameters!==be||_.type!==nr?T(id(W,be,nr),_):_}function Dl(_){var W=d(_.kind);return _.tagName.escapedText===e.escapeLeadingUnderscores(W)?_.tagName:lr(W)}function wo(_,W,be){var nr=R(_);return nr.tagName=W,nr.comment=be,nr}function ms(_,W,be,nr){var Br=wo(342,_??lr("template"),nr);return Br.constraint=W,Br.typeParameters=Ce(be),Br}function $p(_,W,be,nr,Br){return W===void 0&&(W=Dl(_)),_.tagName!==W||_.constraint!==be||_.typeParameters!==nr||_.comment!==Br?T(ms(W,be,nr,Br),_):_}function Yl(_,W,be,nr){var Br=wo(343,_??lr("typedef"),nr);return Br.typeExpression=W,Br.fullName=be,Br.name=e.getJSDocTypeAliasName(be),Br}function od(_,W,be,nr,Br){return W===void 0&&(W=Dl(_)),_.tagName!==W||_.typeExpression!==be||_.fullName!==nr||_.comment!==Br?T(Yl(W,be,nr,Br),_):_}function Ln(_,W,be,nr,Br,Ht){var an=wo(338,_??lr("param"),Ht);return an.typeExpression=nr,an.name=W,an.isNameFirst=!!Br,an.isBracketed=be,an}function us(_,W,be,nr,Br,Ht,an){return W===void 0&&(W=Dl(_)),_.tagName!==W||_.name!==be||_.isBracketed!==nr||_.typeExpression!==Br||_.isNameFirst!==Ht||_.comment!==an?T(Ln(W,be,nr,Br,Ht,an),_):_}function ii(_,W,be,nr,Br,Ht){var an=wo(345,_??lr("prop"),Ht);return an.typeExpression=nr,an.name=W,an.isNameFirst=!!Br,an.isBracketed=be,an}function Rc(_,W,be,nr,Br,Ht,an){return W===void 0&&(W=Dl(_)),_.tagName!==W||_.name!==be||_.isBracketed!==nr||_.typeExpression!==Br||_.isNameFirst!==Ht||_.comment!==an?T(ii(W,be,nr,Br,Ht,an),_):_}function sd(_,W,be,nr){var Br=wo(336,_??lr("callback"),nr);return Br.typeExpression=W,Br.fullName=be,Br.name=e.getJSDocTypeAliasName(be),Br}function sl(_,W,be,nr,Br){return W===void 0&&(W=Dl(_)),_.tagName!==W||_.typeExpression!==be||_.fullName!==nr||_.comment!==Br?T(sd(W,be,nr,Br),_):_}function Dn(_,W,be){var nr=wo(326,_??lr("augments"),be);return nr.class=W,nr}function N_(_,W,be,nr){return W===void 0&&(W=Dl(_)),_.tagName!==W||_.class!==be||_.comment!==nr?T(Dn(W,be,nr),_):_}function rs(_,W,be){var nr=wo(327,_??lr("implements"),be);return nr.class=W,nr}function fs(_,W,be){var nr=wo(344,_??lr("see"),be);return nr.name=W,nr}function wc(_,W,be,nr){return _.tagName!==W||_.name!==be||_.comment!==nr?T(fs(W,be,nr),_):_}function Hs(_){var W=R(308);return W.name=_,W}function Sf(_,W){return _.name!==W?T(Hs(W),_):_}function ws(_,W){var be=R(309);return be.left=_,be.right=W,be.transformFlags|=z(be.left)|z(be.right),be}function Mc(_,W,be){return _.left!==W||_.right!==be?T(ws(W,be),_):_}function Qu(_,W){var be=R(322);return be.name=_,be.text=W,be}function Df(_,W,be){return _.name!==W?T(Qu(W,be),_):_}function hc(_,W){var be=R(323);return be.name=_,be.text=W,be}function Lf(_,W,be){return _.name!==W?T(hc(W,be),_):_}function ll(_,W){var be=R(324);return be.name=_,be.text=W,be}function e_(_,W,be){return _.name!==W?T(ll(W,be),_):_}function Fu(_,W,be,nr){return W===void 0&&(W=Dl(_)),_.tagName!==W||_.class!==be||_.comment!==nr?T(rs(W,be,nr),_):_}function Af(_,W,be){var nr=wo(_,W??lr(d(_)),be);return nr}function ld(_,W,be,nr){return be===void 0&&(be=Dl(W)),W.tagName!==be||W.comment!==nr?T(Af(_,be,nr),W):W}function cd(_,W,be,nr){var Br=wo(_,W??lr(d(_)),nr);return Br.typeExpression=be,Br}function Cf(_,W,be,nr,Br){return be===void 0&&(be=Dl(W)),W.tagName!==be||W.typeExpression!==nr||W.comment!==Br?T(cd(_,be,nr,Br),W):W}function yc(_,W){var be=wo(325,_,W);return be}function ud(_,W,be){return _.tagName!==W||_.comment!==be?T(yc(W,be),_):_}function xf(_){var W=R(319);return W.text=_,W}function Gu(_,W){return _.text!==W?T(xf(W),_):_}function Js(_,W){var be=R(318);return be.comment=_,be.tags=ul(W),be}function Gl(_,W,be){return _.comment!==W||_.tags!==be?T(Js(W,be),_):_}function Kc(_,W,be){var nr=R(277);return nr.openingElement=_,nr.children=Ce(W),nr.closingElement=be,nr.transformFlags|=z(nr.openingElement)|ie(nr.children)|z(nr.closingElement)|2,nr}function fd(_,W,be,nr){return _.openingElement!==W||_.children!==be||_.closingElement!==nr?T(Kc(W,be,nr),_):_}function Ga(_,W,be){var nr=R(278);return nr.tagName=_,nr.typeArguments=ul(W),nr.attributes=be,nr.transformFlags|=z(nr.tagName)|ie(nr.typeArguments)|z(nr.attributes)|2,nr.typeArguments&&(nr.transformFlags|=1),nr}function wn(_,W,be,nr){return _.tagName!==W||_.typeArguments!==be||_.attributes!==nr?T(Ga(W,be,nr),_):_}function Ts(_,W,be){var nr=R(279);return nr.tagName=_,nr.typeArguments=ul(W),nr.attributes=be,nr.transformFlags|=z(nr.tagName)|ie(nr.typeArguments)|z(nr.attributes)|2,W&&(nr.transformFlags|=1),nr}function jd(_,W,be,nr){return _.tagName!==W||_.typeArguments!==be||_.attributes!==nr?T(Ts(W,be,nr),_):_}function rc(_){var W=R(280);return W.tagName=_,W.transformFlags|=z(W.tagName)|2,W}function Zu(_,W){return _.tagName!==W?T(rc(W),_):_}function zc(_,W,be){var nr=R(281);return nr.openingFragment=_,nr.children=Ce(W),nr.closingFragment=be,nr.transformFlags|=z(nr.openingFragment)|ie(nr.children)|z(nr.closingFragment)|2,nr}function Hd(_,W,be,nr){return _.openingFragment!==W||_.children!==be||_.closingFragment!==nr?T(zc(W,be,nr),_):_}function Ll(_,W){var be=R(11);return be.text=_,be.containsOnlyTriviaWhiteSpaces=!!W,be.transformFlags|=2,be}function tc(_,W,be){return _.text!==W||_.containsOnlyTriviaWhiteSpaces!==be?T(Ll(W,be),_):_}function If(){var _=R(282);return _.transformFlags|=2,_}function $u(){var _=R(283);return _.transformFlags|=2,_}function Qs(_,W){var be=R(284);return be.name=_,be.initializer=W,be.transformFlags|=z(be.name)|z(be.initializer)|2,be}function Jd(_,W,be){return _.name!==W||_.initializer!==be?T(Qs(W,be),_):_}function jo(_){var W=R(285);return W.properties=Ce(_),W.transformFlags|=ie(W.properties)|2,W}function Bl(_,W){return _.properties!==W?T(jo(W),_):_}function Kd(_){var W=R(286);return W.expression=_,W.transformFlags|=z(W.expression)|2,W}function nc(_,W){return _.expression!==W?T(Kd(W),_):_}function Nf(_,W){var be=R(287);return be.dotDotDotToken=_,be.expression=W,be.transformFlags|=z(be.dotDotDotToken)|z(be.expression)|2,be}function Bu(_,W){return _.expression!==W?T(Nf(_.dotDotDotToken,W),_):_}function dd(_,W){var be=R(288);return be.expression=N().parenthesizeExpressionForDisallowedComma(_),be.statements=Ce(W),be.transformFlags|=z(be.expression)|ie(be.statements),be}function zd(_,W,be){return _.expression!==W||_.statements!==be?T(dd(W,be),_):_}function Al(_){var W=R(289);return W.statements=Ce(_),W.transformFlags=ie(W.statements),W}function ts(_,W){return _.statements!==W?T(Al(W),_):_}function du(_,W){var be=R(290);switch(be.token=_,be.types=Ce(W),be.transformFlags|=ie(be.types),_){case 94:be.transformFlags|=512;break;case 117:be.transformFlags|=1;break;default:return e.Debug.assertNever(_)}return be}function qd(_,W){return _.types!==W?T(du(_.token,W),_):_}function ac(_,W){var be=R(291);return(typeof _=="string"||_&&!e.isVariableDeclaration(_))&&(_=dl(_,void 0,void 0,void 0)),be.variableDeclaration=_,be.block=W,be.transformFlags|=z(be.variableDeclaration)|z(be.block),_||(be.transformFlags|=32),be}function kf(_,W,be){return _.variableDeclaration!==W||_.block!==be?T(ac(W,be),_):_}function Uu(_,W){var be=U(294,void 0,void 0,_);return be.initializer=N().parenthesizeExpressionForDisallowedComma(W),be.transformFlags|=z(be.name)|z(be.initializer),be}function Xd(_,W){return W.decorators&&(_.decorators=W.decorators),W.modifiers&&(_.modifiers=W.modifiers),W.questionToken&&(_.questionToken=W.questionToken),W.exclamationToken&&(_.exclamationToken=W.exclamationToken),T(_,W)}function ef(_,W,be){return _.name!==W||_.initializer!==be?Xd(Uu(W,be),_):_}function Of(_,W){var be=U(295,void 0,void 0,_);return be.objectAssignmentInitializer=W&&N().parenthesizeExpressionForDisallowedComma(W),be.transformFlags|=z(be.objectAssignmentInitializer)|512,be}function bc(_,W){return W.decorators&&(_.decorators=W.decorators),W.modifiers&&(_.modifiers=W.modifiers),W.equalsToken&&(_.equalsToken=W.equalsToken),W.questionToken&&(_.questionToken=W.questionToken),W.exclamationToken&&(_.exclamationToken=W.exclamationToken),T(_,W)}function qc(_,W,be){return _.name!==W||_.objectAssignmentInitializer!==be?bc(Of(W,be),_):_}function rf(_){var W=R(296);return W.expression=N().parenthesizeExpressionForDisallowedComma(_),W.transformFlags|=z(W.expression)|64|32768,W}function Vu(_,W){return _.expression!==W?T(rf(W),_):_}function Xc(_,W){var be=R(297);return be.name=Ms(_),be.initializer=W&&N().parenthesizeExpressionForDisallowedComma(W),be.transformFlags|=z(be.name)|z(be.initializer)|1,be}function Yd(_,W,be){return _.name!==W||_.initializer!==be?T(Xc(W,be),_):_}function Ec(_,W,be){var nr=re.createBaseSourceFileNode(303);return nr.statements=Ce(_),nr.endOfFileToken=W,nr.flags|=be,nr.fileName="",nr.text="",nr.languageVersion=0,nr.languageVariant=0,nr.scriptKind=0,nr.isDeclarationFile=!1,nr.hasNoDefaultLib=!1,nr.transformFlags|=ie(nr.statements)|z(nr.endOfFileToken),nr}function Wu(_,W,be,nr,Br,Ht,an){var si=re.createBaseSourceFileNode(303);for(var Io in _)Io==="emitNode"||e.hasProperty(si,Io)||!e.hasProperty(_,Io)||(si[Io]=_[Io]);return si.flags|=_.flags,si.statements=Ce(W),si.endOfFileToken=_.endOfFileToken,si.isDeclarationFile=be,si.referencedFiles=nr,si.typeReferenceDirectives=Br,si.hasNoDefaultLib=Ht,si.libReferenceDirectives=an,si.transformFlags=ie(si.statements)|z(si.endOfFileToken),si.impliedNodeFormat=_.impliedNodeFormat,si}function r_(_,W,be,nr,Br,Ht,an){return be===void 0&&(be=_.isDeclarationFile),nr===void 0&&(nr=_.referencedFiles),Br===void 0&&(Br=_.typeReferenceDirectives),Ht===void 0&&(Ht=_.hasNoDefaultLib),an===void 0&&(an=_.libReferenceDirectives),_.statements!==W||_.isDeclarationFile!==be||_.referencedFiles!==nr||_.typeReferenceDirectives!==Br||_.hasNoDefaultLib!==Ht||_.libReferenceDirectives!==an?T(Wu(_,W,be,nr,Br,Ht,an),_):_}function Wa(_,W){W===void 0&&(W=e.emptyArray);var be=R(304);return be.prepends=W,be.sourceFiles=_,be}function pu(_,W,be){return be===void 0&&(be=e.emptyArray),_.sourceFiles!==W||_.prepends!==be?T(Wa(W,be),_):_}function gn(_,W,be){var nr=R(305);return nr.prologues=_,nr.syntheticReferences=W,nr.texts=be,nr.fileName="",nr.text="",nr.referencedFiles=e.emptyArray,nr.libReferenceDirectives=e.emptyArray,nr.getLineAndCharacterOfPosition=function(Br){return e.getLineAndCharacterOfPosition(nr,Br)},nr}function Rf(_,W){var be=R(_);return be.data=W,be}function Qd(_){return Rf(298,_)}function Zd(_,W){var be=Rf(299,_);return be.texts=W,be}function Pc(_,W){return Rf(W?301:300,_)}function $d(_){var W=R(302);return W.data=_.data,W.section=_,W}function k_(){var _=R(306);return _.javascriptText="",_.declarationText="",_}function Yc(_,W,be){W===void 0&&(W=!1);var nr=R(231);return nr.type=_,nr.isSpread=W,nr.tupleNameSource=be,nr}function Lp(_){var W=R(346);return W._children=_,W}function pd(_){var W=R(347);return W.original=_,e.setTextRange(W,_),W}function Ap(_,W){var be=R(348);return be.expression=_,be.original=W,be.transformFlags|=z(be.expression)|1,e.setTextRange(be,W),be}function Ul(_,W){return _.expression!==W?T(Ap(W,_.original),_):_}function wf(_){if(e.nodeIsSynthesized(_)&&!e.isParseTreeNode(_)&&!_.original&&!_.emitNode&&!_.id){if(e.isCommaListExpression(_))return _.elements;if(e.isBinaryExpression(_)&&e.isCommaToken(_.operatorToken))return[_.left,_.right]}return _}function _d(_){var W=R(349);return W.elements=Ce(e.sameFlatMap(_,wf)),W.transformFlags|=ie(W.elements),W}function Fc(_,W){return _.elements!==W?T(_d(W),_):_}function Qc(_){var W=R(351);return W.emitNode={},W.original=_,W}function Mf(_){var W=R(350);return W.emitNode={},W.original=_,W}function E(_,W){var be=R(352);return be.expression=_,be.thisArg=W,be.transformFlags|=z(be.expression)|z(be.thisArg),be}function Qe(_,W,be){return _.expression!==W||_.thisArg!==be?T(E(W,be),_):_}function nt(_){if(_===void 0)return _;var W=e.isSourceFile(_)?re.createBaseSourceFileNode(303):e.isIdentifier(_)?re.createBaseIdentifierNode(79):e.isPrivateIdentifier(_)?re.createBasePrivateIdentifierNode(80):e.isNodeKind(_.kind)?re.createBaseNode(_.kind):re.createBaseTokenNode(_.kind);W.flags|=_.flags&-9,W.transformFlags=_.transformFlags,ne(W,_);for(var be in _)W.hasOwnProperty(be)||!_.hasOwnProperty(be)||(W[be]=_[be]);return W}function Ot(_,W,be){return Di(mi(void 0,void 0,void 0,void 0,W?[W]:[],void 0,le(_,!0)),void 0,be?[be]:[])}function fa(_,W,be){return Di(Gi(void 0,void 0,W?[W]:[],void 0,void 0,le(_,!0)),void 0,be?[be]:[])}function Oa(){return Rr(_e("0"))}function ia(_){return rd(void 0,void 0,!1,_)}function ti(_){return Ru(void 0,void 0,!1,Mu([gc(!1,void 0,_)]))}function Na(_,W){return W==="undefined"?Se.createStrictEquality(_,Oa()):Se.createStrictEquality(as(_),Xe(W))}function Ua(_,W,be){return e.isCallChain(_)?Ji(qr(_,void 0,W),void 0,void 0,be):Di(er(_,W),void 0,be)}function Go(_,W,be){return Ua(_,"bind",Gt([W],be,!0))}function cl(_,W,be){return Ua(_,"call",Gt([W],be,!0))}function os(_,W,be){return Ua(_,"apply",[W,be])}function is(_,W,be){return Ua(lr(_),W,be)}function Vl(_,W){return Ua(_,"slice",W===void 0?[]:[Ff(W)])}function Zc(_,W){return Ua(_,"concat",W)}function $c(_,W,be){return is("Object","defineProperty",[_,Ff(W),be])}function md(_,W,be){return is("Reflect","get",be?[_,W,be]:[_,W])}function t_(_,W,be,nr){return is("Reflect","set",nr?[_,W,be,nr]:[_,W,be])}function tf(_,W,be){return be?(_.push(Uu(W,be)),!0):!1}function Pf(_,W){var be=[];tf(be,"enumerable",Ff(_.enumerable)),tf(be,"configurable",Ff(_.configurable));var nr=tf(be,"writable",Ff(_.writable));nr=tf(be,"value",_.value)||nr;var Br=tf(be,"get",_.get);return Br=tf(be,"set",_.set)||Br,e.Debug.assert(!(nr&&Br),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),se(be,!W)}function n_(_,W){switch(_.kind){case 211:return ka(_,W);case 210:return bi(_,_.type,W);case 228:return wr(_,W,_.type);case 229:return Lt(_,W);case 348:return Ul(_,W)}}function gd(_){return e.isParenthesizedExpression(_)&&e.nodeIsSynthesized(_)&&e.nodeIsSynthesized(e.getSourceMapRange(_))&&e.nodeIsSynthesized(e.getCommentRange(_))&&!e.some(e.getSyntheticLeadingComments(_))&&!e.some(e.getSyntheticTrailingComments(_))}function Wl(_,W,be){return be===void 0&&(be=15),_&&e.isOuterExpression(_,be)&&!gd(_)?n_(_,Wl(_.expression,W)):W}function ep(_,W,be){if(!W)return _;var nr=hf(W,W.label,e.isLabeledStatement(W.statement)?ep(_,W.statement):_);return be&&be(W),nr}function a_(_,W){var be=e.skipParentheses(_);switch(be.kind){case 79:return W;case 108:case 8:case 9:case 10:return!1;case 203:var nr=be.elements;return nr.length!==0;case 204:return be.properties.length>0;default:return!0}}function xe(_,W,be,nr){nr===void 0&&(nr=!1);var Br=e.skipOuterExpressions(_,15),Ht,an;return e.isSuperProperty(Br)?(Ht=$e(),an=Br):e.isSuperKeyword(Br)?(Ht=$e(),an=be!==void 0&&be<2?e.setTextRange(lr("_super"),Br):Br):e.getEmitFlags(Br)&4096?(Ht=Oa(),an=N().parenthesizeLeftSideOfAccess(Br)):e.isPropertyAccessExpression(Br)?a_(Br.expression,nr)?(Ht=kr(W),an=er(e.setTextRange(Se.createAssignment(Ht,Br.expression),Br.expression),Br.name),e.setTextRange(an,Br)):(Ht=Br.expression,an=Br):e.isElementAccessExpression(Br)?a_(Br.expression,nr)?(Ht=kr(W),an=Jt(e.setTextRange(Se.createAssignment(Ht,Br.expression),Br.expression),Br.argumentExpression),e.setTextRange(an,Br)):(Ht=Br.expression,an=Br):(Ht=Oa(),an=N().parenthesizeLeftSideOfAccess(_)),{target:an,thisArg:Ht}}function Er(_,W){return er(xi(se([fr(void 0,void 0,"value",[cn(void 0,void 0,void 0,_,void 0,void 0,void 0)],le([yn(W)]))])),"value")}function Fr(_){return _.length>10?_d(_):e.reduceLeft(_,Se.createComma)}function at(_,W,be,nr){nr===void 0&&(nr=0);var Br=e.getNameOfDeclaration(_);if(Br&&e.isIdentifier(Br)&&!e.isGeneratedIdentifier(Br)){var Ht=e.setParent(e.setTextRange(nt(Br),Br),Br.parent);return nr|=e.getEmitFlags(Br),be||(nr|=48),W||(nr|=1536),nr&&e.setEmitFlags(Ht,nr),Ht}return Hr(_)}function Ct(_,W,be){return at(_,W,be,49152)}function Xt(_,W,be){return at(_,W,be,16384)}function On(_,W,be){return at(_,W,be,8192)}function $n(_,W,be){return at(_,W,be)}function wa(_,W,be,nr){var Br=er(_,e.nodeIsSynthesized(W)?W:nt(W));e.setTextRange(Br,W);var Ht=0;return nr||(Ht|=48),be||(Ht|=1536),Ht&&e.setEmitFlags(Br,Ht),Br}function Ea(_,W,be,nr){return _&&e.hasSyntacticModifier(W,1)?wa(_,at(W),be,nr):On(W,be,nr)}function Ki(_,W,be,nr){var Br=Ho(_,W,be);return gs(_,W,Br,nr)}function Qo(_){return e.isStringLiteral(_.expression)&&_.expression.text==="use strict"}function $i(){return e.startOnNewLine(yn(Xe("use strict")))}function Ho(_,W,be){e.Debug.assert(W.length===0,"Prologue directives should be at the first statement in the target statements array");for(var nr=!1,Br=0,Ht=_.length;Br<Ht;){var an=_[Br];if(e.isPrologueDirective(an))Qo(an)&&(nr=!0),W.push(an);else break;Br++}return be&&!nr&&W.push($i()),Br}function gs(_,W,be,nr,Br){Br===void 0&&(Br=e.returnTrue);for(var Ht=_.length;be!==void 0&&be<Ht;){var an=_[be];if(e.getEmitFlags(an)&1048576&&Br(an))e.append(W,nr?e.visitNode(an,nr,e.isStatement):an);else break;be++}return be}function _l(_){var W=e.findUseStrictPrologue(_);return W?_:e.setTextRange(Ce(Gt([$i()],_,!0)),_)}function xs(_){return e.Debug.assert(e.every(_,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(_)||le(_)}function Cl(_,W,be){for(var nr=be;nr<_.length&&W(_[nr]);)nr++;return nr}function bl(_,W){if(!e.some(W))return _;var be=Cl(_,e.isPrologueDirective,0),nr=Cl(_,e.isHoistedFunction,be),Br=Cl(_,e.isHoistedVariableStatement,nr),Ht=Cl(W,e.isPrologueDirective,0),an=Cl(W,e.isHoistedFunction,Ht),si=Cl(W,e.isHoistedVariableStatement,an),Io=Cl(W,e.isCustomPrologue,si);e.Debug.assert(Io===W.length,"Expected declarations to be valid standard or custom prologues");var vs=e.isNodeArray(_)?_.slice():_;if(Io>si&&vs.splice.apply(vs,Gt([Br,0],W.slice(si,Io),!1)),si>an&&vs.splice.apply(vs,Gt([nr,0],W.slice(an,si),!1)),an>Ht&&vs.splice.apply(vs,Gt([be,0],W.slice(Ht,an),!1)),Ht>0)if(be===0)vs.splice.apply(vs,Gt([0,0],W.slice(0,Ht),!1));else{for(var rp=new e.Map,Gc=0;Gc<be;Gc++){var Pm=_[Gc];rp.set(Pm.expression.text,!0)}for(var Gc=Ht-1;Gc>=0;Gc--){var tp=W[Gc];rp.has(tp.expression.text)||vs.unshift(tp)}}return e.isNodeArray(_)?e.setTextRange(Ce(vs,_.hasTrailingComma),_):_}function ju(_,W){var be;return typeof W=="number"&&(W=Jr(W)),e.isParameter(_)?bn(_,_.decorators,W,_.dotDotDotToken,_.name,_.questionToken,_.type,_.initializer):e.isPropertySignature(_)?Or(_,W,_.name,_.questionToken,_.type):e.isPropertyDeclaration(_)?ye(_,_.decorators,W,_.name,(be=_.questionToken)!==null&&be!==void 0?be:_.exclamationToken,_.type,_.initializer):e.isMethodSignature(_)?fe(_,W,_.name,_.questionToken,_.typeParameters,_.parameters,_.type):e.isMethodDeclaration(_)?Ee(_,_.decorators,W,_.asteriskToken,_.name,_.questionToken,_.typeParameters,_.parameters,_.type,_.body):e.isConstructorDeclaration(_)?me(_,_.decorators,W,_.parameters,_.body):e.isGetAccessorDeclaration(_)?Cr(_,_.decorators,W,_.name,_.parameters,_.type,_.body):e.isSetAccessorDeclaration(_)?dr(_,_.decorators,W,_.name,_.parameters,_.body):e.isIndexSignatureDeclaration(_)?Nr(_,_.decorators,W,_.parameters,_.type):e.isFunctionExpression(_)?Xi(_,W,_.asteriskToken,_.name,_.typeParameters,_.parameters,_.type,_.body):e.isArrowFunction(_)?Ro(_,W,_.typeParameters,_.parameters,_.type,_.equalsGreaterThanToken,_.body):e.isClassExpression(_)?Ic(_,_.decorators,W,_.name,_.typeParameters,_.heritageClauses,_.members):e.isVariableStatement(_)?ct(_,W,_.declarationList):e.isFunctionDeclaration(_)?Oc(_,_.decorators,W,_.asteriskToken,_.name,_.typeParameters,_.parameters,_.type,_.body):e.isClassDeclaration(_)?yf(_,_.decorators,W,_.name,_.typeParameters,_.heritageClauses,_.members):e.isInterfaceDeclaration(_)?kd(_,_.decorators,W,_.name,_.typeParameters,_.heritageClauses,_.members):e.isTypeAliasDeclaration(_)?$f(_,_.decorators,W,_.name,_.typeParameters,_.type):e.isEnumDeclaration(_)?Rd(_,_.decorators,W,_.name,_.members):e.isModuleDeclaration(_)?yp(_,_.decorators,W,_.name,_.body):e.isImportEqualsDeclaration(_)?Fd(_,_.decorators,W,_.isTypeOnly,_.name,_.moduleReference):e.isImportDeclaration(_)?Yp(_,_.decorators,W,_.importClause,_.moduleSpecifier,_.assertClause):e.isExportAssignment(_)?td(_,_.decorators,W,_.expression):e.isExportDeclaration(_)?wu(_,_.decorators,W,_.isTypeOnly,_.exportClause,_.moduleSpecifier,_.assertClause):e.Debug.assertNever(_)}function ul(_){return _?Ce(_):void 0}function Ms(_){return typeof _=="string"?lr(_):_}function Ff(_){return typeof _=="string"?Xe(_):typeof _=="number"?_e(_):typeof _=="boolean"?_?Pr():He():_}function _u(_){return typeof _=="number"?de(_):_}function ml(_){return _&&e.isNotEmittedStatement(_)?e.setTextRange(ne(jt(),_),_):_}}e.createNodeFactory=f;function p(V,re){return V!==re&&e.setTextRange(V,re),V}function a(V,re){return V!==re&&(ne(V,re),e.setTextRange(V,re)),V}function d(V){switch(V){case 341:return"type";case 339:return"returns";case 340:return"this";case 337:return"enum";case 328:return"author";case 330:return"class";case 331:return"public";case 332:return"private";case 333:return"protected";case 334:return"readonly";case 335:return"override";case 342:return"template";case 343:return"typedef";case 338:return"param";case 345:return"prop";case 336:return"callback";case 326:return"augments";case 327:return"implements";default:return e.Debug.fail("Unsupported kind: ".concat(e.Debug.formatSyntaxKind(V)))}}var k,J={};function h(V,re){switch(k||(k=e.createScanner(99,!1,0)),V){case 14:k.setText("`"+re+"`");break;case 15:k.setText("`"+re+"${");break;case 16:k.setText("}"+re+"${");break;case 17:k.setText("}"+re+"`");break}var T=k.scan();if(T===19&&(T=k.reScanTemplateToken(!1)),k.isUnterminated())return k.setText(void 0),J;var N;switch(T){case 14:case 15:case 16:case 17:N=k.getTokenValue();break}return N===void 0||k.scan()!==1?(k.setText(void 0),J):(k.setText(void 0),N)}function v(V){return z(V)&-16777217}function A(V,re){return re|V.transformFlags&33562624}function z(V){if(!V)return 0;var re=V.transformFlags&~M(V.kind);return e.isNamedDeclaration(V)&&e.isPropertyName(V.name)?A(V.name,re):re}function ie(V){return V?V.transformFlags:0}function b(V){for(var re=0,T=0,N=V;T<N.length;T++){var y=N[T];re|=z(y)}V.transformFlags=re}function M(V){if(V>=176&&V<=199)return-2;switch(V){case 207:case 208:case 203:return 536887296;case 260:return 589443072;case 163:return 536870912;case 213:return 557748224;case 212:case 255:return 591310848;case 254:return 537165824;case 256:case 225:return 536940544;case 170:return 591306752;case 166:return 570433536;case 168:case 171:case 172:return 574529536;case 130:case 146:case 157:case 143:case 149:case 147:case 133:case 150:case 114:case 162:case 165:case 167:case 173:case 174:case 175:case 257:case 258:return-2;case 204:return 536973312;case 291:return 536903680;case 200:case 201:return 536887296;case 210:case 228:case 348:case 211:case 106:return 536870912;case 205:case 206:return 536870912;default:return 536870912}}e.getTransformFlagsSubtreeExclusions=M;var S=e.createBaseNodeFactory();function B(V){return V.flags|=8,V}var H={createBaseSourceFileNode:function(V){return B(S.createBaseSourceFileNode(V))},createBaseIdentifierNode:function(V){return B(S.createBaseIdentifierNode(V))},createBasePrivateIdentifierNode:function(V){return B(S.createBasePrivateIdentifierNode(V))},createBaseTokenNode:function(V){return B(S.createBaseTokenNode(V))},createBaseNode:function(V){return B(S.createBaseNode(V))}};e.factory=f(4,H);function I(V,re,T){var N,y,D,C,m,u,g,P,te,ue;e.isString(V)?(D="",C=V,m=V.length,u=re,g=T):(e.Debug.assert(re==="js"||re==="dts"),D=(re==="js"?V.javascriptPath:V.declarationPath)||"",u=re==="js"?V.javascriptMapPath:V.declarationMapPath,P=function(){return re==="js"?V.javascriptText:V.declarationText},te=function(){return re==="js"?V.javascriptMapText:V.declarationMapText},m=function(){return P().length},V.buildInfo&&V.buildInfo.bundle&&(e.Debug.assert(T===void 0||typeof T=="boolean"),N=T,y=re==="js"?V.buildInfo.bundle.js:V.buildInfo.bundle.dts,ue=V.oldFileOfCurrentEmit));var X=ue?x(e.Debug.assertDefined(y)):w(y,N,m);return X.fileName=D,X.sourceMapPath=u,X.oldFileOfCurrentEmit=ue,P&&te?(Object.defineProperty(X,"text",{get:P}),Object.defineProperty(X,"sourceMapText",{get:te})):(e.Debug.assert(!ue),X.text=C??"",X.sourceMapText=g),X}e.createUnparsedSourceFile=I;function w(V,re,T){for(var N,y,D,C,m,u,g,P,te=0,ue=V?V.sections:e.emptyArray;te<ue.length;te++){var X=ue[te];switch(X.kind){case"prologue":N=e.append(N,e.setTextRange(e.factory.createUnparsedPrologue(X.data),X));break;case"emitHelpers":y=e.append(y,e.getAllUnscopedEmitHelpers().get(X.data));break;case"no-default-lib":P=!0;break;case"reference":D=e.append(D,{pos:-1,end:-1,fileName:X.data});break;case"type":C=e.append(C,X.data);break;case"lib":m=e.append(m,{pos:-1,end:-1,fileName:X.data});break;case"prepend":for(var j=void 0,Se=0,Ce=X.texts;Se<Ce.length;Se++){var R=Ce[Se];(!re||R.kind!=="internal")&&(j=e.append(j,e.setTextRange(e.factory.createUnparsedTextLike(R.data,R.kind==="internal"),R)))}u=e.addRange(u,j),g=e.append(g,e.factory.createUnparsedPrepend(X.data,j??e.emptyArray));break;case"internal":if(re){g||(g=[]);break}case"text":g=e.append(g,e.setTextRange(e.factory.createUnparsedTextLike(X.data,X.kind==="internal"),X));break;default:e.Debug.assertNever(X)}}if(!g){var Y=e.factory.createUnparsedTextLike(void 0,!1);e.setTextRangePosWidth(Y,0,typeof T=="function"?T():T),g=[Y]}var U=e.parseNodeFactory.createUnparsedSource(N??e.emptyArray,void 0,g);return e.setEachParent(N,U),e.setEachParent(g,U),e.setEachParent(u,U),U.hasNoDefaultLib=P,U.helpers=y,U.referencedFiles=D||e.emptyArray,U.typeReferenceDirectives=C,U.libReferenceDirectives=m||e.emptyArray,U}function x(V){for(var re,T,N=0,y=V.sections;N<y.length;N++){var D=y[N];switch(D.kind){case"internal":case"text":re=e.append(re,e.setTextRange(e.factory.createUnparsedTextLike(D.data,D.kind==="internal"),D));break;case"no-default-lib":case"reference":case"type":case"lib":T=e.append(T,e.setTextRange(e.factory.createUnparsedSyntheticReference(D),D));break;case"prologue":case"emitHelpers":case"prepend":break;default:e.Debug.assertNever(D)}}var C=e.factory.createUnparsedSource(e.emptyArray,T,re??e.emptyArray);return e.setEachParent(T,C),e.setEachParent(re,C),C.helpers=e.map(V.sources&&V.sources.helpers,function(m){return e.getAllUnscopedEmitHelpers().get(m)}),C}function O(V,re,T,N,y,D,C,m,u,g,P){var te=e.parseNodeFactory.createInputFiles();if(e.isString(V))te.javascriptText=V,te.javascriptMapPath=T,te.javascriptMapText=N,te.declarationText=re,te.declarationMapPath=y,te.declarationMapText=D,te.javascriptPath=C,te.declarationPath=m,te.buildInfoPath=u,te.buildInfo=g,te.oldFileOfCurrentEmit=P;else{var ue=new e.Map,X=function(R){if(R!==void 0){var Y=ue.get(R);return Y===void 0&&(Y=V(R),ue.set(R,Y!==void 0?Y:!1)),Y!==!1?Y:void 0}},j=function(R){var Y=X(R);return Y!==void 0?Y:"/* Input file ".concat(R,` was missing */\r
  26. `)},Se,Ce=function(R){if(Se===void 0){var Y=R();Se=Y!==void 0?e.getBuildInfo(Y):!1}return Se||void 0};te.javascriptPath=re,te.javascriptMapPath=T,te.declarationPath=e.Debug.assertDefined(N),te.declarationMapPath=y,te.buildInfoPath=D,Object.defineProperties(te,{javascriptText:{get:function(){return j(re)}},javascriptMapText:{get:function(){return X(T)}},declarationText:{get:function(){return j(e.Debug.assertDefined(N))}},declarationMapText:{get:function(){return X(y)}},buildInfo:{get:function(){return Ce(function(){return X(D)})}}})}return te}e.createInputFiles=O;var q;function Z(V,re,T){return new(q||(q=e.objectAllocator.getSourceMapSourceConstructor()))(V,re,T)}e.createSourceMapSource=Z;function ne(V,re){if(V.original=re,re){var T=re.emitNode;T&&(V.emitNode=F(T,V.emitNode))}return V}e.setOriginalNode=ne;function F(V,re){var T=V.flags,N=V.leadingComments,y=V.trailingComments,D=V.commentRange,C=V.sourceMapRange,m=V.tokenSourceMapRanges,u=V.constantValue,g=V.helpers,P=V.startsOnNewLine;if(re||(re={}),N&&(re.leadingComments=e.addRange(N.slice(),re.leadingComments)),y&&(re.trailingComments=e.addRange(y.slice(),re.trailingComments)),T&&(re.flags=T&-268435457),D&&(re.commentRange=D),C&&(re.sourceMapRange=C),m&&(re.tokenSourceMapRanges=Q(m,re.tokenSourceMapRanges)),u!==void 0&&(re.constantValue=u),g)for(var te=0,ue=g;te<ue.length;te++){var X=ue[te];re.helpers=e.appendIfUnique(re.helpers,X)}return P!==void 0&&(re.startsOnNewLine=P),re}function Q(V,re){re||(re=[]);for(var T in V)re[T]=V[T];return re}}(jr||(jr={})),function(e){function n(y){var D;if(y.emitNode)e.Debug.assert(!(y.emitNode.flags&268435456),"Invalid attempt to mutate an immutable node.");else{if(e.isParseTreeNode(y)){if(y.kind===303)return y.emitNode={annotatedNodes:[y]};var C=(D=e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(y))))!==null&&D!==void 0?D:e.Debug.fail("Could not determine parsed source file.");n(C).annotatedNodes.push(y)}y.emitNode={}}return y.emitNode}e.getOrCreateEmitNode=n;function f(y){var D,C,m=(C=(D=e.getSourceFileOfNode(e.getParseTreeNode(y)))===null||D===void 0?void 0:D.emitNode)===null||C===void 0?void 0:C.annotatedNodes;if(m)for(var u=0,g=m;u<g.length;u++){var P=g[u];P.emitNode=void 0}}e.disposeEmitNodes=f;function p(y){var D=n(y);return D.flags|=1536,D.leadingComments=void 0,D.trailingComments=void 0,y}e.removeAllComments=p;function a(y,D){return n(y).flags=D,y}e.setEmitFlags=a;function d(y,D){var C=n(y);return C.flags=C.flags|D,y}e.addEmitFlags=d;function k(y){var D,C;return(C=(D=y.emitNode)===null||D===void 0?void 0:D.sourceMapRange)!==null&&C!==void 0?C:y}e.getSourceMapRange=k;function J(y,D){return n(y).sourceMapRange=D,y}e.setSourceMapRange=J;function h(y,D){var C,m;return(m=(C=y.emitNode)===null||C===void 0?void 0:C.tokenSourceMapRanges)===null||m===void 0?void 0:m[D]}e.getTokenSourceMapRange=h;function v(y,D,C){var m,u=n(y),g=(m=u.tokenSourceMapRanges)!==null&&m!==void 0?m:u.tokenSourceMapRanges=[];return g[D]=C,y}e.setTokenSourceMapRange=v;function A(y){var D;return(D=y.emitNode)===null||D===void 0?void 0:D.startsOnNewLine}e.getStartsOnNewLine=A;function z(y,D){return n(y).startsOnNewLine=D,y}e.setStartsOnNewLine=z;function ie(y){var D,C;return(C=(D=y.emitNode)===null||D===void 0?void 0:D.commentRange)!==null&&C!==void 0?C:y}e.getCommentRange=ie;function b(y,D){return n(y).commentRange=D,y}e.setCommentRange=b;function M(y){var D;return(D=y.emitNode)===null||D===void 0?void 0:D.leadingComments}e.getSyntheticLeadingComments=M;function S(y,D){return n(y).leadingComments=D,y}e.setSyntheticLeadingComments=S;function B(y,D,C,m){return S(y,e.append(M(y),{kind:D,pos:-1,end:-1,hasTrailingNewLine:m,text:C}))}e.addSyntheticLeadingComment=B;function H(y){var D;return(D=y.emitNode)===null||D===void 0?void 0:D.trailingComments}e.getSyntheticTrailingComments=H;function I(y,D){return n(y).trailingComments=D,y}e.setSyntheticTrailingComments=I;function w(y,D,C,m){return I(y,e.append(H(y),{kind:D,pos:-1,end:-1,hasTrailingNewLine:m,text:C}))}e.addSyntheticTrailingComment=w;function x(y,D){S(y,M(D)),I(y,H(D));var C=n(D);return C.leadingComments=void 0,C.trailingComments=void 0,y}e.moveSyntheticComments=x;function O(y){var D;return(D=y.emitNode)===null||D===void 0?void 0:D.constantValue}e.getConstantValue=O;function q(y,D){var C=n(y);return C.constantValue=D,y}e.setConstantValue=q;function Z(y,D){var C=n(y);return C.helpers=e.append(C.helpers,D),y}e.addEmitHelper=Z;function ne(y,D){if(e.some(D))for(var C=n(y),m=0,u=D;m<u.length;m++){var g=u[m];C.helpers=e.appendIfUnique(C.helpers,g)}return y}e.addEmitHelpers=ne;function F(y,D){var C,m=(C=y.emitNode)===null||C===void 0?void 0:C.helpers;return m?e.orderedRemoveItem(m,D):!1}e.removeEmitHelper=F;function Q(y){var D;return(D=y.emitNode)===null||D===void 0?void 0:D.helpers}e.getEmitHelpers=Q;function V(y,D,C){var m=y.emitNode,u=m&&m.helpers;if(e.some(u)){for(var g=n(D),P=0,te=0;te<u.length;te++){var ue=u[te];C(ue)?(P++,g.helpers=e.appendIfUnique(g.helpers,ue)):P>0&&(u[te-P]=ue)}P>0&&(u.length-=P)}}e.moveEmitHelpers=V;function re(y){var D;return(D=y.emitNode)===null||D===void 0?void 0:D.snippetElement}e.getSnippetElement=re;function T(y,D){var C=n(y);return C.snippetElement=D,y}e.setSnippetElement=T;function N(y){return n(y).flags|=134217728,y}e.ignoreSourceNewlines=N}(jr||(jr={})),function(e){function n(J){var h=J.factory,v=e.memoize(function(){return e.setEmitFlags(h.createTrue(),268435456)}),A=e.memoize(function(){return e.setEmitFlags(h.createFalse(),268435456)});return{getUnscopedHelperName:z,createDecorateHelper:ie,createMetadataHelper:b,createParamHelper:M,createAssignHelper:S,createAwaitHelper:B,createAsyncGeneratorHelper:H,createAsyncDelegatorHelper:I,createAsyncValuesHelper:w,createRestHelper:x,createAwaiterHelper:O,createExtendsHelper:q,createTemplateObjectHelper:Z,createSpreadArrayHelper:ne,createValuesHelper:F,createReadHelper:Q,createGeneratorHelper:V,createCreateBindingHelper:re,createImportStarHelper:T,createImportStarCallbackHelper:N,createImportDefaultHelper:y,createExportStarHelper:D,createClassPrivateFieldGetHelper:C,createClassPrivateFieldSetHelper:m,createClassPrivateFieldInHelper:u};function z(g){return e.setEmitFlags(h.createIdentifier(g),4098)}function ie(g,P,te,ue){J.requestEmitHelper(e.decorateHelper);var X=[];return X.push(h.createArrayLiteralExpression(g,!0)),X.push(P),te&&(X.push(te),ue&&X.push(ue)),h.createCallExpression(z("__decorate"),void 0,X)}function b(g,P){return J.requestEmitHelper(e.metadataHelper),h.createCallExpression(z("__metadata"),void 0,[h.createStringLiteral(g),P])}function M(g,P,te){return J.requestEmitHelper(e.paramHelper),e.setTextRange(h.createCallExpression(z("__param"),void 0,[h.createNumericLiteral(P+""),g]),te)}function S(g){return e.getEmitScriptTarget(J.getCompilerOptions())>=2?h.createCallExpression(h.createPropertyAccessExpression(h.createIdentifier("Object"),"assign"),void 0,g):(J.requestEmitHelper(e.assignHelper),h.createCallExpression(z("__assign"),void 0,g))}function B(g){return J.requestEmitHelper(e.awaitHelper),h.createCallExpression(z("__await"),void 0,[g])}function H(g,P){return J.requestEmitHelper(e.awaitHelper),J.requestEmitHelper(e.asyncGeneratorHelper),(g.emitNode||(g.emitNode={})).flags|=786432,h.createCallExpression(z("__asyncGenerator"),void 0,[P?h.createThis():h.createVoidZero(),h.createIdentifier("arguments"),g])}function I(g){return J.requestEmitHelper(e.awaitHelper),J.requestEmitHelper(e.asyncDelegator),h.createCallExpression(z("__asyncDelegator"),void 0,[g])}function w(g){return J.requestEmitHelper(e.asyncValues),h.createCallExpression(z("__asyncValues"),void 0,[g])}function x(g,P,te,ue){J.requestEmitHelper(e.restHelper);for(var X=[],j=0,Se=0;Se<P.length-1;Se++){var Ce=e.getPropertyNameOfBindingOrAssignmentElement(P[Se]);if(Ce)if(e.isComputedPropertyName(Ce)){e.Debug.assertIsDefined(te,"Encountered computed property name but 'computedTempVariables' argument was not provided.");var R=te[j];j++,X.push(h.createConditionalExpression(h.createTypeCheck(R,"symbol"),void 0,R,void 0,h.createAdd(R,h.createStringLiteral(""))))}else X.push(h.createStringLiteralFromNode(Ce))}return h.createCallExpression(z("__rest"),void 0,[g,e.setTextRange(h.createArrayLiteralExpression(X),ue)])}function O(g,P,te,ue){J.requestEmitHelper(e.awaiterHelper);var X=h.createFunctionExpression(void 0,h.createToken(41),void 0,void 0,[],void 0,ue);return(X.emitNode||(X.emitNode={})).flags|=786432,h.createCallExpression(z("__awaiter"),void 0,[g?h.createThis():h.createVoidZero(),P?h.createIdentifier("arguments"):h.createVoidZero(),te?e.createExpressionFromEntityName(h,te):h.createVoidZero(),X])}function q(g){return J.requestEmitHelper(e.extendsHelper),h.createCallExpression(z("__extends"),void 0,[g,h.createUniqueName("_super",48)])}function Z(g,P){return J.requestEmitHelper(e.templateObjectHelper),h.createCallExpression(z("__makeTemplateObject"),void 0,[g,P])}function ne(g,P,te){return J.requestEmitHelper(e.spreadArrayHelper),h.createCallExpression(z("__spreadArray"),void 0,[g,P,te?v():A()])}function F(g){return J.requestEmitHelper(e.valuesHelper),h.createCallExpression(z("__values"),void 0,[g])}function Q(g,P){return J.requestEmitHelper(e.readHelper),h.createCallExpression(z("__read"),void 0,P!==void 0?[g,h.createNumericLiteral(P+"")]:[g])}function V(g){return J.requestEmitHelper(e.generatorHelper),h.createCallExpression(z("__generator"),void 0,[h.createThis(),g])}function re(g,P,te){return J.requestEmitHelper(e.createBindingHelper),h.createCallExpression(z("__createBinding"),void 0,Gt([h.createIdentifier("exports"),g,P],te?[te]:[],!0))}function T(g){return J.requestEmitHelper(e.importStarHelper),h.createCallExpression(z("__importStar"),void 0,[g])}function N(){return J.requestEmitHelper(e.importStarHelper),z("__importStar")}function y(g){return J.requestEmitHelper(e.importDefaultHelper),h.createCallExpression(z("__importDefault"),void 0,[g])}function D(g,P){return P===void 0&&(P=h.createIdentifier("exports")),J.requestEmitHelper(e.exportStarHelper),J.requestEmitHelper(e.createBindingHelper),h.createCallExpression(z("__exportStar"),void 0,[g,P])}function C(g,P,te,ue){J.requestEmitHelper(e.classPrivateFieldGetHelper);var X;return ue?X=[g,P,h.createStringLiteral(te),ue]:X=[g,P,h.createStringLiteral(te)],h.createCallExpression(z("__classPrivateFieldGet"),void 0,X)}function m(g,P,te,ue,X){J.requestEmitHelper(e.classPrivateFieldSetHelper);var j;return X?j=[g,P,te,h.createStringLiteral(ue),X]:j=[g,P,te,h.createStringLiteral(ue)],h.createCallExpression(z("__classPrivateFieldSet"),void 0,j)}function u(g,P){return J.requestEmitHelper(e.classPrivateFieldInHelper),h.createCallExpression(z("__classPrivateFieldIn"),void 0,[g,P])}}e.createEmitHelperFactory=n;function f(J,h){return J===h||J.priority===h.priority?0:J.priority===void 0?1:h.priority===void 0?-1:e.compareValues(J.priority,h.priority)}e.compareEmitHelpers=f;function p(J){for(var h=[],v=1;v<arguments.length;v++)h[v-1]=arguments[v];return function(A){for(var z="",ie=0;ie<h.length;ie++)z+=J[ie],z+=A(h[ie]);return z+=J[J.length-1],z}}e.helperString=p,e.decorateHelper={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:`
  27. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  28. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  29. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  30. 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;
  31. return c > 3 && r && Object.defineProperty(target, key, r), r;
  32. };`},e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:`
  33. var __metadata = (this && this.__metadata) || function (k, v) {
  34. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
  35. };`},e.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:`
  36. var __param = (this && this.__param) || function (paramIndex, decorator) {
  37. return function (target, key) { decorator(target, key, paramIndex); }
  38. };`},e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:`
  39. var __assign = (this && this.__assign) || function () {
  40. __assign = Object.assign || function(t) {
  41. for (var s, i = 1, n = arguments.length; i < n; i++) {
  42. s = arguments[i];
  43. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
  44. t[p] = s[p];
  45. }
  46. return t;
  47. };
  48. return __assign.apply(this, arguments);
  49. };`},e.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:`
  50. var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],text:`
  51. var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
  52. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  53. var g = generator.apply(thisArg, _arguments || []), i, q = [];
  54. return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
  55. 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); }); }; }
  56. function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
  57. function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
  58. function fulfill(value) { resume("next", value); }
  59. function reject(value) { resume("throw", value); }
  60. function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
  61. };`},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],text:`
  62. var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
  63. var i, p;
  64. return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
  65. function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
  66. };`},e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:`
  67. var __asyncValues = (this && this.__asyncValues) || function (o) {
  68. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  69. var m = o[Symbol.asyncIterator], i;
  70. 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);
  71. 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); }); }; }
  72. function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
  73. };`},e.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:`
  74. var __rest = (this && this.__rest) || function (s, e) {
  75. var t = {};
  76. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
  77. t[p] = s[p];
  78. if (s != null && typeof Object.getOwnPropertySymbols === "function")
  79. for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
  80. if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
  81. t[p[i]] = s[p[i]];
  82. }
  83. return t;
  84. };`},e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:`
  85. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  86. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  87. return new (P || (P = Promise))(function (resolve, reject) {
  88. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  89. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  90. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  91. step((generator = generator.apply(thisArg, _arguments || [])).next());
  92. });
  93. };`},e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:`
  94. var __extends = (this && this.__extends) || (function () {
  95. var extendStatics = function (d, b) {
  96. extendStatics = Object.setPrototypeOf ||
  97. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  98. function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
  99. return extendStatics(d, b);
  100. };
  101. return function (d, b) {
  102. if (typeof b !== "function" && b !== null)
  103. throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
  104. extendStatics(d, b);
  105. function __() { this.constructor = d; }
  106. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  107. };
  108. })();`},e.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:`
  109. var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
  110. if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
  111. return cooked;
  112. };`},e.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:`
  113. var __read = (this && this.__read) || function (o, n) {
  114. var m = typeof Symbol === "function" && o[Symbol.iterator];
  115. if (!m) return o;
  116. var i = m.call(o), r, ar = [], e;
  117. try {
  118. while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  119. }
  120. catch (error) { e = { error: error }; }
  121. finally {
  122. try {
  123. if (r && !r.done && (m = i["return"])) m.call(i);
  124. }
  125. finally { if (e) throw e.error; }
  126. }
  127. return ar;
  128. };`},e.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:`
  129. var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
  130. if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
  131. if (ar || !(i in from)) {
  132. if (!ar) ar = Array.prototype.slice.call(from, 0, i);
  133. ar[i] = from[i];
  134. }
  135. }
  136. return to.concat(ar || Array.prototype.slice.call(from));
  137. };`},e.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:`
  138. var __values = (this && this.__values) || function(o) {
  139. var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
  140. if (m) return m.call(o);
  141. if (o && typeof o.length === "number") return {
  142. next: function () {
  143. if (o && i >= o.length) o = void 0;
  144. return { value: o && o[i++], done: !o };
  145. }
  146. };
  147. throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
  148. };`},e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:`
  149. var __generator = (this && this.__generator) || function (thisArg, body) {
  150. var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
  151. return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
  152. function verb(n) { return function (v) { return step([n, v]); }; }
  153. function step(op) {
  154. if (f) throw new TypeError("Generator is already executing.");
  155. while (_) try {
  156. 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;
  157. if (y = 0, t) op = [op[0] & 2, t.value];
  158. switch (op[0]) {
  159. case 0: case 1: t = op; break;
  160. case 4: _.label++; return { value: op[1], done: false };
  161. case 5: _.label++; y = op[1]; op = [0]; continue;
  162. case 7: op = _.ops.pop(); _.trys.pop(); continue;
  163. default:
  164. if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
  165. if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
  166. if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
  167. if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
  168. if (t[2]) _.ops.pop();
  169. _.trys.pop(); continue;
  170. }
  171. op = body.call(thisArg, _);
  172. } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
  173. if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
  174. }
  175. };`},e.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:`
  176. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  177. if (k2 === undefined) k2 = k;
  178. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  179. }) : (function(o, m, k, k2) {
  180. if (k2 === undefined) k2 = k;
  181. o[k2] = m[k];
  182. }));`},e.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:`
  183. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  184. Object.defineProperty(o, "default", { enumerable: true, value: v });
  185. }) : function(o, v) {
  186. o["default"] = v;
  187. });`},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:`
  188. var __importStar = (this && this.__importStar) || function (mod) {
  189. if (mod && mod.__esModule) return mod;
  190. var result = {};
  191. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  192. __setModuleDefault(result, mod);
  193. return result;
  194. };`},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:`
  195. var __importDefault = (this && this.__importDefault) || function (mod) {
  196. return (mod && mod.__esModule) ? mod : { "default": mod };
  197. };`},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],priority:2,text:`
  198. var __exportStar = (this && this.__exportStar) || function(m, exports) {
  199. for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
  200. };`},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:`
  201. var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
  202. if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
  203. 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");
  204. return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
  205. };`},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:`
  206. var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
  207. if (kind === "m") throw new TypeError("Private method is not writable");
  208. if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
  209. 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");
  210. return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
  211. };`},e.classPrivateFieldInHelper={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:`
  212. var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {
  213. if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
  214. return typeof state === "function" ? receiver === state : state.has(receiver);
  215. };`};var a;function d(){return a||(a=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.classPrivateFieldInHelper,e.createBindingHelper,e.setModuleDefaultHelper],function(J){return J.name}))}e.getAllUnscopedEmitHelpers=d,e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:p(iD([`
  216. const `," = name => super[name];"],[`
  217. const `," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:p(iD([`
  218. const `,` = (function (geti, seti) {
  219. const cache = Object.create(null);
  220. return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
  221. })(name => super[name], (name, value) => super[name] = value);`],[`
  222. const `,` = (function (geti, seti) {
  223. const cache = Object.create(null);
  224. return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
  225. })(name => super[name], (name, value) => super[name] = value);`]),"_superIndex")};function k(J,h){return e.isCallExpression(J)&&e.isIdentifier(J.expression)&&(e.getEmitFlags(J.expression)&4096)!==0&&J.expression.escapedText===h}e.isCallToHelper=k}(jr||(jr={})),function(e){function n(Ir){return Ir.kind===8}e.isNumericLiteral=n;function f(Ir){return Ir.kind===9}e.isBigIntLiteral=f;function p(Ir){return Ir.kind===10}e.isStringLiteral=p;function a(Ir){return Ir.kind===11}e.isJsxText=a;function d(Ir){return Ir.kind===13}e.isRegularExpressionLiteral=d;function k(Ir){return Ir.kind===14}e.isNoSubstitutionTemplateLiteral=k;function J(Ir){return Ir.kind===15}e.isTemplateHead=J;function h(Ir){return Ir.kind===16}e.isTemplateMiddle=h;function v(Ir){return Ir.kind===17}e.isTemplateTail=v;function A(Ir){return Ir.kind===25}e.isDotDotDotToken=A;function z(Ir){return Ir.kind===27}e.isCommaToken=z;function ie(Ir){return Ir.kind===39}e.isPlusToken=ie;function b(Ir){return Ir.kind===40}e.isMinusToken=b;function M(Ir){return Ir.kind===41}e.isAsteriskToken=M;function S(Ir){return Ir.kind===53}e.isExclamationToken=S;function B(Ir){return Ir.kind===57}e.isQuestionToken=B;function H(Ir){return Ir.kind===58}e.isColonToken=H;function I(Ir){return Ir.kind===28}e.isQuestionDotToken=I;function w(Ir){return Ir.kind===38}e.isEqualsGreaterThanToken=w;function x(Ir){return Ir.kind===79}e.isIdentifier=x;function O(Ir){return Ir.kind===80}e.isPrivateIdentifier=O;function q(Ir){return Ir.kind===93}e.isExportModifier=q;function Z(Ir){return Ir.kind===131}e.isAsyncModifier=Z;function ne(Ir){return Ir.kind===128}e.isAssertsKeyword=ne;function F(Ir){return Ir.kind===132}e.isAwaitKeyword=F;function Q(Ir){return Ir.kind===144}e.isReadonlyKeyword=Q;function V(Ir){return Ir.kind===124}e.isStaticModifier=V;function re(Ir){return Ir.kind===126}e.isAbstractModifier=re;function T(Ir){return Ir.kind===106}e.isSuperKeyword=T;function N(Ir){return Ir.kind===100}e.isImportKeyword=N;function y(Ir){return Ir.kind===160}e.isQualifiedName=y;function D(Ir){return Ir.kind===161}e.isComputedPropertyName=D;function C(Ir){return Ir.kind===162}e.isTypeParameterDeclaration=C;function m(Ir){return Ir.kind===163}e.isParameter=m;function u(Ir){return Ir.kind===164}e.isDecorator=u;function g(Ir){return Ir.kind===165}e.isPropertySignature=g;function P(Ir){return Ir.kind===166}e.isPropertyDeclaration=P;function te(Ir){return Ir.kind===167}e.isMethodSignature=te;function ue(Ir){return Ir.kind===168}e.isMethodDeclaration=ue;function X(Ir){return Ir.kind===169}e.isClassStaticBlockDeclaration=X;function j(Ir){return Ir.kind===170}e.isConstructorDeclaration=j;function Se(Ir){return Ir.kind===171}e.isGetAccessorDeclaration=Se;function Ce(Ir){return Ir.kind===172}e.isSetAccessorDeclaration=Ce;function R(Ir){return Ir.kind===173}e.isCallSignatureDeclaration=R;function Y(Ir){return Ir.kind===174}e.isConstructSignatureDeclaration=Y;function U(Ir){return Ir.kind===175}e.isIndexSignatureDeclaration=U;function K(Ir){return Ir.kind===176}e.isTypePredicateNode=K;function Te(Ir){return Ir.kind===177}e.isTypeReferenceNode=Te;function ge(Ir){return Ir.kind===178}e.isFunctionTypeNode=ge;function ke(Ir){return Ir.kind===179}e.isConstructorTypeNode=ke;function Pe(Ir){return Ir.kind===180}e.isTypeQueryNode=Pe;function Ie(Ir){return Ir.kind===181}e.isTypeLiteralNode=Ie;function Ge(Ir){return Ir.kind===182}e.isArrayTypeNode=Ge;function he(Ir){return Ir.kind===183}e.isTupleTypeNode=he;function ve(Ir){return Ir.kind===196}e.isNamedTupleMember=ve;function Ve(Ir){return Ir.kind===184}e.isOptionalTypeNode=Ve;function _e(Ir){return Ir.kind===185}e.isRestTypeNode=_e;function Le(Ir){return Ir.kind===186}e.isUnionTypeNode=Le;function qe(Ir){return Ir.kind===187}e.isIntersectionTypeNode=qe;function Xe(Ir){return Ir.kind===188}e.isConditionalTypeNode=Xe;function De(Ir){return Ir.kind===189}e.isInferTypeNode=De;function Ae(Ir){return Ir.kind===190}e.isParenthesizedTypeNode=Ae;function Ye(Ir){return Ir.kind===191}e.isThisTypeNode=Ye;function Dr(Ir){return Ir.kind===192}e.isTypeOperatorNode=Dr;function br(Ir){return Ir.kind===193}e.isIndexedAccessTypeNode=br;function lr(Ir){return Ir.kind===194}e.isMappedTypeNode=lr;function Ar(Ir){return Ir.kind===195}e.isLiteralTypeNode=Ar;function kr(Ir){return Ir.kind===199}e.isImportTypeNode=kr;function Ke(Ir){return Ir.kind===198}e.isTemplateLiteralTypeSpan=Ke;function Me(Ir){return Ir.kind===197}e.isTemplateLiteralTypeNode=Me;function Hr(Ir){return Ir.kind===200}e.isObjectBindingPattern=Hr;function ur(Ir){return Ir.kind===201}e.isArrayBindingPattern=ur;function gr(Ir){return Ir.kind===202}e.isBindingElement=gr;function de(Ir){return Ir.kind===203}e.isArrayLiteralExpression=de;function Fe(Ir){return Ir.kind===204}e.isObjectLiteralExpression=Fe;function $e(Ir){return Ir.kind===205}e.isPropertyAccessExpression=$e;function Sr(Ir){return Ir.kind===206}e.isElementAccessExpression=Sr;function Pr(Ir){return Ir.kind===207}e.isCallExpression=Pr;function He(Ir){return Ir.kind===208}e.isNewExpression=He;function pr(Ir){return Ir.kind===209}e.isTaggedTemplateExpression=pr;function Jr(Ir){return Ir.kind===210}e.isTypeAssertionExpression=Jr;function ze(Ir){return Ir.kind===211}e.isParenthesizedExpression=ze;function Lr(Ir){return Ir.kind===212}e.isFunctionExpression=Lr;function Yr(Ir){return Ir.kind===213}e.isArrowFunction=Yr;function lt(Ir){return Ir.kind===214}e.isDeleteExpression=lt;function tt(Ir){return Ir.kind===215}e.isTypeOfExpression=tt;function Rt(Ir){return Ir.kind===216}e.isVoidExpression=Rt;function cn(Ir){return Ir.kind===217}e.isAwaitExpression=cn;function bn(Ir){return Ir.kind===218}e.isPrefixUnaryExpression=bn;function In(Ir){return Ir.kind===219}e.isPostfixUnaryExpression=In;function zn(Ir){return Ir.kind===220}e.isBinaryExpression=zn;function ir(Ir){return Ir.kind===221}e.isConditionalExpression=ir;function Or(Ir){return Ir.kind===222}e.isTemplateExpression=Or;function sr(Ir){return Ir.kind===223}e.isYieldExpression=sr;function ye(Ir){return Ir.kind===224}e.isSpreadElement=ye;function or(Ir){return Ir.kind===225}e.isClassExpression=or;function fe(Ir){return Ir.kind===226}e.isOmittedExpression=fe;function je(Ir){return Ir.kind===227}e.isExpressionWithTypeArguments=je;function Ee(Ir){return Ir.kind===228}e.isAsExpression=Ee;function We(Ir){return Ir.kind===229}e.isNonNullExpression=We;function $(Ir){return Ir.kind===230}e.isMetaProperty=$;function Ne(Ir){return Ir.kind===231}e.isSyntheticExpression=Ne;function me(Ir){return Ir.kind===348}e.isPartiallyEmittedExpression=me;function Ze(Ir){return Ir.kind===349}e.isCommaListExpression=Ze;function Cr(Ir){return Ir.kind===232}e.isTemplateSpan=Cr;function fr(Ir){return Ir.kind===233}e.isSemicolonClassElement=fr;function dr(Ir){return Ir.kind===234}e.isBlock=dr;function et(Ir){return Ir.kind===236}e.isVariableStatement=et;function yt(Ir){return Ir.kind===235}e.isEmptyStatement=yt;function Vr(Ir){return Ir.kind===237}e.isExpressionStatement=Vr;function tr(Ir){return Ir.kind===238}e.isIfStatement=tr;function xr(Ir){return Ir.kind===239}e.isDoStatement=xr;function Nr(Ir){return Ir.kind===240}e.isWhileStatement=Nr;function zr(Ir){return Ir.kind===241}e.isForStatement=zr;function gt(Ir){return Ir.kind===242}e.isForInStatement=gt;function vt(Ir){return Ir.kind===243}e.isForOfStatement=vt;function ut(Ir){return Ir.kind===244}e.isContinueStatement=ut;function ht(Ir){return Ir.kind===245}e.isBreakStatement=ht;function xt(Ir){return Ir.kind===246}e.isReturnStatement=xt;function wt(Ir){return Ir.kind===247}e.isWithStatement=wt;function Qt(Ir){return Ir.kind===248}e.isSwitchStatement=Qt;function mt(Ir){return Ir.kind===249}e.isLabeledStatement=mt;function rn(Ir){return Ir.kind===250}e.isThrowStatement=rn;function sa(Ir){return Ir.kind===251}e.isTryStatement=sa;function ba(Ir){return Ir.kind===252}e.isDebuggerStatement=ba;function Jn(Ir){return Ir.kind===253}e.isVariableDeclaration=Jn;function na(Ir){return Ir.kind===254}e.isVariableDeclarationList=na;function Wn(Ir){return Ir.kind===255}e.isFunctionDeclaration=Wn;function en(Ir){return Ir.kind===256}e.isClassDeclaration=en;function St(Ir){return Ir.kind===257}e.isInterfaceDeclaration=St;function Ut(Ir){return Ir.kind===258}e.isTypeAliasDeclaration=Ut;function qt(Ir){return Ir.kind===259}e.isEnumDeclaration=qt;function Mn(Ir){return Ir.kind===260}e.isModuleDeclaration=Mn;function dn(Ir){return Ir.kind===261}e.isModuleBlock=dn;function oa(Ir){return Ir.kind===262}e.isCaseBlock=oa;function pt(Ir){return Ir.kind===263}e.isNamespaceExportDeclaration=pt;function _t(Ir){return Ir.kind===264}e.isImportEqualsDeclaration=_t;function Mt(Ir){return Ir.kind===265}e.isImportDeclaration=Mt;function It(Ir){return Ir.kind===266}e.isImportClause=It;function rt(Ir){return Ir.kind===292}e.isAssertClause=rt;function Cn(Ir){return Ir.kind===293}e.isAssertEntry=Cn;function Qn(Ir){return Ir.kind===267}e.isNamespaceImport=Qn;function Ra(Ir){return Ir.kind===273}e.isNamespaceExport=Ra;function Ci(Ir){return Ir.kind===268}e.isNamedImports=Ci;function _i(Ir){return Ir.kind===269}e.isImportSpecifier=_i;function va(Ir){return Ir.kind===270}e.isExportAssignment=va;function yi(Ir){return Ir.kind===271}e.isExportDeclaration=yi;function ro(Ir){return Ir.kind===272}e.isNamedExports=ro;function Ka(Ir){return Ir.kind===274}e.isExportSpecifier=Ka;function Mi(Ir){return Ir.kind===275}e.isMissingDeclaration=Mi;function io(Ir){return Ir.kind===347}e.isNotEmittedStatement=io;function ji(Ir){return Ir.kind===352}e.isSyntheticReference=ji;function Hi(Ir){return Ir.kind===350}e.isMergeDeclarationMarker=Hi;function to(Ir){return Ir.kind===351}e.isEndOfDeclarationMarker=to;function No(Ir){return Ir.kind===276}e.isExternalModuleReference=No;function lo(Ir){return Ir.kind===277}e.isJsxElement=lo;function Lo(Ir){return Ir.kind===278}e.isJsxSelfClosingElement=Lo;function Ha(Ir){return Ir.kind===279}e.isJsxOpeningElement=Ha;function Yo(Ir){return Ir.kind===280}e.isJsxClosingElement=Yo;function co(Ir){return Ir.kind===281}e.isJsxFragment=co;function za(Ir){return Ir.kind===282}e.isJsxOpeningFragment=za;function hi(Ir){return Ir.kind===283}e.isJsxClosingFragment=hi;function Zi(Ir){return Ir.kind===284}e.isJsxAttribute=Zi;function Mo(Ir){return Ir.kind===285}e.isJsxAttributes=Mo;function Po(Ir){return Ir.kind===286}e.isJsxSpreadAttribute=Po;function Fo(Ir){return Ir.kind===287}e.isJsxExpression=Fo;function zo(Ir){return Ir.kind===288}e.isCaseClause=zo;function Es(Ir){return Ir.kind===289}e.isDefaultClause=Es;function Cs(Ir){return Ir.kind===290}e.isHeritageClause=Cs;function hr(Ir){return Ir.kind===291}e.isCatchClause=hr;function dt(Ir){return Ir.kind===294}e.isPropertyAssignment=dt;function tn(Ir){return Ir.kind===295}e.isShorthandPropertyAssignment=tn;function Un(Ir){return Ir.kind===296}e.isSpreadAssignment=Un;function Oe(Ir){return Ir.kind===297}e.isEnumMember=Oe;function oe(Ir){return Ir.kind===299}e.isUnparsedPrepend=oe;function mr(Ir){return Ir.kind===303}e.isSourceFile=mr;function se(Ir){return Ir.kind===304}e.isBundle=se;function Be(Ir){return Ir.kind===305}e.isUnparsedSource=Be;function er(Ir){return Ir.kind===307}e.isJSDocTypeExpression=er;function vr(Ir){return Ir.kind===308}e.isJSDocNameReference=vr;function qr(Ir){return Ir.kind===309}e.isJSDocMemberName=qr;function Dt(Ir){return Ir.kind===322}e.isJSDocLink=Dt;function Jt(Ir){return Ir.kind===323}e.isJSDocLinkCode=Jt;function Sn(Ir){return Ir.kind===324}e.isJSDocLinkPlain=Sn;function ta(Ir){return Ir.kind===310}e.isJSDocAllType=ta;function xa(Ir){return Ir.kind===311}e.isJSDocUnknownType=xa;function Di(Ir){return Ir.kind===312}e.isJSDocNullableType=Di;function $a(Ir){return Ir.kind===313}e.isJSDocNonNullableType=$a;function Ji(Ir){return Ir.kind===314}e.isJSDocOptionalType=Ji;function So(Ir){return Ir.kind===315}e.isJSDocFunctionType=So;function cs(Ir){return Ir.kind===316}e.isJSDocVariadicType=cs;function bt(Ir){return Ir.kind===317}e.isJSDocNamepathType=bt;function Pn(Ir){return Ir.kind===318}e.isJSDoc=Pn;function da(Ir){return Ir.kind===320}e.isJSDocTypeLiteral=da;function ei(Ir){return Ir.kind===321}e.isJSDocSignature=ei;function bi(Ir){return Ir.kind===326}e.isJSDocAugmentsTag=bi;function xi(Ir){return Ir.kind===328}e.isJSDocAuthorTag=xi;function ka(Ir){return Ir.kind===330}e.isJSDocClassTag=ka;function mi(Ir){return Ir.kind===336}e.isJSDocCallbackTag=mi;function Xi(Ir){return Ir.kind===331}e.isJSDocPublicTag=Xi;function Gi(Ir){return Ir.kind===332}e.isJSDocPrivateTag=Gi;function Ro(Ir){return Ir.kind===333}e.isJSDocProtectedTag=Ro;function ko(Ir){return Ir.kind===334}e.isJSDocReadonlyTag=ko;function es(Ir){return Ir.kind===335}e.isJSDocOverrideTag=es;function as(Ir){return Ir.kind===329}e.isJSDocDeprecatedTag=as;function pe(Ir){return Ir.kind===344}e.isJSDocSeeTag=pe;function Rr(Ir){return Ir.kind===337}e.isJSDocEnumTag=Rr;function ft(Ir){return Ir.kind===338}e.isJSDocParameterTag=ft;function Zt(Ir){return Ir.kind===339}e.isJSDocReturnTag=Zt;function Re(Ir){return Ir.kind===340}e.isJSDocThisTag=Re;function Qr(Ir){return Ir.kind===341}e.isJSDocTypeTag=Qr;function vn(Ir){return Ir.kind===342}e.isJSDocTemplateTag=vn;function Xn(Ir){return Ir.kind===343}e.isJSDocTypedefTag=Xn;function gi(Ir){return Ir.kind===325}e.isJSDocUnknownTag=gi;function Ia(Ir){return Ir.kind===345}e.isJSDocPropertyTag=Ia;function oo(Ir){return Ir.kind===327}e.isJSDocImplementsTag=oo;function Wo(Ir){return Ir.kind===346}e.isSyntaxList=Wo}(jr||(jr={})),function(e){function n(ur){return ur.createExportDeclaration(void 0,void 0,!1,ur.createNamedExports([]),void 0)}e.createEmptyExports=n;function f(ur,gr,de,Fe){if(e.isComputedPropertyName(de))return e.setTextRange(ur.createElementAccessExpression(gr,de.expression),Fe);var $e=e.setTextRange(e.isMemberName(de)?ur.createPropertyAccessExpression(gr,de):ur.createElementAccessExpression(gr,de),de);return e.getOrCreateEmitNode($e).flags|=64,$e}e.createMemberAccessForPropertyName=f;function p(ur,gr){var de=e.parseNodeFactory.createIdentifier(ur||"React");return e.setParent(de,e.getParseTreeNode(gr)),de}function a(ur,gr,de){if(e.isQualifiedName(gr)){var Fe=a(ur,gr.left,de),$e=ur.createIdentifier(e.idText(gr.right));return $e.escapedText=gr.right.escapedText,ur.createPropertyAccessExpression(Fe,$e)}else return p(e.idText(gr),de)}function d(ur,gr,de,Fe){return gr?a(ur,gr,Fe):ur.createPropertyAccessExpression(p(de,Fe),"createElement")}e.createJsxFactoryExpression=d;function k(ur,gr,de,Fe){return gr?a(ur,gr,Fe):ur.createPropertyAccessExpression(p(de,Fe),"Fragment")}function J(ur,gr,de,Fe,$e,Sr){var Pr=[de];if(Fe&&Pr.push(Fe),$e&&$e.length>0)if(Fe||Pr.push(ur.createNull()),$e.length>1)for(var He=0,pr=$e;He<pr.length;He++){var Jr=pr[He];y(Jr),Pr.push(Jr)}else Pr.push($e[0]);return e.setTextRange(ur.createCallExpression(gr,void 0,Pr),Sr)}e.createExpressionForJsxElement=J;function h(ur,gr,de,Fe,$e,Sr,Pr){var He=k(ur,de,Fe,Sr),pr=[He,ur.createNull()];if($e&&$e.length>0)if($e.length>1)for(var Jr=0,ze=$e;Jr<ze.length;Jr++){var Lr=ze[Jr];y(Lr),pr.push(Lr)}else pr.push($e[0]);return e.setTextRange(ur.createCallExpression(d(ur,gr,Fe,Sr),void 0,pr),Pr)}e.createExpressionForJsxFragment=h;function v(ur,gr,de){if(e.isVariableDeclarationList(gr)){var Fe=e.first(gr.declarations),$e=ur.updateVariableDeclaration(Fe,Fe.name,void 0,void 0,de);return e.setTextRange(ur.createVariableStatement(void 0,ur.updateVariableDeclarationList(gr,[$e])),gr)}else{var Sr=e.setTextRange(ur.createAssignment(gr,de),gr);return e.setTextRange(ur.createExpressionStatement(Sr),gr)}}e.createForOfBindingStatement=v;function A(ur,gr,de){return e.isBlock(gr)?ur.updateBlock(gr,e.setTextRange(ur.createNodeArray(Gt([de],gr.statements,!0)),gr.statements)):ur.createBlock(ur.createNodeArray([gr,de]),!0)}e.insertLeadingStatement=A;function z(ur,gr){if(e.isQualifiedName(gr)){var de=z(ur,gr.left),Fe=e.setParent(e.setTextRange(ur.cloneNode(gr.right),gr.right),gr.right.parent);return e.setTextRange(ur.createPropertyAccessExpression(de,Fe),gr)}else return e.setParent(e.setTextRange(ur.cloneNode(gr),gr),gr.parent)}e.createExpressionFromEntityName=z;function ie(ur,gr){return e.isIdentifier(gr)?ur.createStringLiteralFromNode(gr):e.isComputedPropertyName(gr)?e.setParent(e.setTextRange(ur.cloneNode(gr.expression),gr.expression),gr.expression.parent):e.setParent(e.setTextRange(ur.cloneNode(gr),gr),gr.parent)}e.createExpressionForPropertyName=ie;function b(ur,gr,de,Fe,$e){var Sr=e.getAllAccessorDeclarations(gr,de),Pr=Sr.firstAccessor,He=Sr.getAccessor,pr=Sr.setAccessor;if(de===Pr)return e.setTextRange(ur.createObjectDefinePropertyCall(Fe,ie(ur,de.name),ur.createPropertyDescriptor({enumerable:ur.createFalse(),configurable:!0,get:He&&e.setTextRange(e.setOriginalNode(ur.createFunctionExpression(He.modifiers,void 0,void 0,void 0,He.parameters,void 0,He.body),He),He),set:pr&&e.setTextRange(e.setOriginalNode(ur.createFunctionExpression(pr.modifiers,void 0,void 0,void 0,pr.parameters,void 0,pr.body),pr),pr)},!$e)),Pr)}function M(ur,gr,de){return e.setOriginalNode(e.setTextRange(ur.createAssignment(f(ur,de,gr.name,gr.name),gr.initializer),gr),gr)}function S(ur,gr,de){return e.setOriginalNode(e.setTextRange(ur.createAssignment(f(ur,de,gr.name,gr.name),ur.cloneNode(gr.name)),gr),gr)}function B(ur,gr,de){return e.setOriginalNode(e.setTextRange(ur.createAssignment(f(ur,de,gr.name,gr.name),e.setOriginalNode(e.setTextRange(ur.createFunctionExpression(gr.modifiers,gr.asteriskToken,void 0,void 0,gr.parameters,void 0,gr.body),gr),gr)),gr),gr)}function H(ur,gr,de,Fe){switch(de.name&&e.isPrivateIdentifier(de.name)&&e.Debug.failBadSyntaxKind(de.name,"Private identifiers are not allowed in object literals."),de.kind){case 171:case 172:return b(ur,gr.properties,de,Fe,!!gr.multiLine);case 294:return M(ur,de,Fe);case 295:return S(ur,de,Fe);case 168:return B(ur,de,Fe)}}e.createExpressionForObjectLiteralElementLike=H;function I(ur,gr,de,Fe,$e){var Sr=gr.operator;e.Debug.assert(Sr===45||Sr===46,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");var Pr=ur.createTempVariable(Fe);de=ur.createAssignment(Pr,de),e.setTextRange(de,gr.operand);var He=e.isPrefixUnaryExpression(gr)?ur.createPrefixUnaryExpression(Sr,Pr):ur.createPostfixUnaryExpression(Pr,Sr);return e.setTextRange(He,gr),$e&&(He=ur.createAssignment($e,He),e.setTextRange(He,gr)),de=ur.createComma(de,He),e.setTextRange(de,gr),e.isPostfixUnaryExpression(gr)&&(de=ur.createComma(de,Pr),e.setTextRange(de,gr)),de}e.expandPreOrPostfixIncrementOrDecrementExpression=I;function w(ur){return(e.getEmitFlags(ur)&32768)!==0}e.isInternalName=w;function x(ur){return(e.getEmitFlags(ur)&16384)!==0}e.isLocalName=x;function O(ur){return(e.getEmitFlags(ur)&8192)!==0}e.isExportName=O;function q(ur){return e.isStringLiteral(ur.expression)&&ur.expression.text==="use strict"}function Z(ur){for(var gr=0,de=ur;gr<de.length;gr++){var Fe=de[gr];if(e.isPrologueDirective(Fe)){if(q(Fe))return Fe}else break}}e.findUseStrictPrologue=Z;function ne(ur){var gr=e.firstOrUndefined(ur);return gr!==void 0&&e.isPrologueDirective(gr)&&q(gr)}e.startsWithUseStrict=ne;function F(ur){return ur.kind===220&&ur.operatorToken.kind===27||ur.kind===349}e.isCommaSequence=F;function Q(ur){return e.isParenthesizedExpression(ur)&&e.isInJSFile(ur)&&!!e.getJSDocTypeTag(ur)}e.isJSDocTypeAssertion=Q;function V(ur){var gr=e.getJSDocType(ur);return e.Debug.assertIsDefined(gr),gr}e.getJSDocTypeAssertionType=V;function re(ur,gr){switch(gr===void 0&&(gr=15),ur.kind){case 211:return gr&16&&Q(ur)?!1:(gr&1)!==0;case 210:case 228:return(gr&2)!==0;case 229:return(gr&4)!==0;case 348:return(gr&8)!==0}return!1}e.isOuterExpression=re;function T(ur,gr){for(gr===void 0&&(gr=15);re(ur,gr);)ur=ur.expression;return ur}e.skipOuterExpressions=T;function N(ur){return T(ur,6)}e.skipAssertions=N;function y(ur){return e.setStartsOnNewLine(ur,!0)}e.startOnNewLine=y;function D(ur){var gr=e.getOriginalNode(ur,e.isSourceFile),de=gr&&gr.emitNode;return de&&de.externalHelpersModuleName}e.getExternalHelpersModuleName=D;function C(ur){var gr=e.getOriginalNode(ur,e.isSourceFile),de=gr&&gr.emitNode;return!!de&&(!!de.externalHelpersModuleName||!!de.externalHelpers)}e.hasRecordedExternalHelpers=C;function m(ur,gr,de,Fe,$e,Sr,Pr){if(Fe.importHelpers&&e.isEffectiveExternalModule(de,Fe)){var He=void 0,pr=e.getEmitModuleKind(Fe);if(pr>=e.ModuleKind.ES2015&&pr<=e.ModuleKind.ESNext||de.impliedNodeFormat===e.ModuleKind.ESNext){var Jr=e.getEmitHelpers(de);if(Jr){for(var ze=[],Lr=0,Yr=Jr;Lr<Yr.length;Lr++){var lt=Yr[Lr];if(!lt.scoped){var tt=lt.importName;tt&&e.pushIfUnique(ze,tt)}}if(e.some(ze)){ze.sort(e.compareStringsCaseSensitive),He=ur.createNamedImports(e.map(ze,function(zn){return e.isFileLevelUniqueName(de,zn)?ur.createImportSpecifier(!1,void 0,ur.createIdentifier(zn)):ur.createImportSpecifier(!1,ur.createIdentifier(zn),gr.getUnscopedHelperName(zn))}));var Rt=e.getOriginalNode(de,e.isSourceFile),cn=e.getOrCreateEmitNode(Rt);cn.externalHelpers=!0}}}else{var bn=u(ur,de,Fe,$e,Sr||Pr);bn&&(He=ur.createNamespaceImport(bn))}if(He){var In=ur.createImportDeclaration(void 0,void 0,ur.createImportClause(!1,void 0,He),ur.createStringLiteral(e.externalHelpersModuleNameText),void 0);return e.addEmitFlags(In,67108864),In}}}e.createExternalHelpersImportDeclarationIfNeeded=m;function u(ur,gr,de,Fe,$e){if(de.importHelpers&&e.isEffectiveExternalModule(gr,de)){var Sr=D(gr);if(Sr)return Sr;var Pr=e.getEmitModuleKind(de),He=(Fe||e.getESModuleInterop(de)&&$e)&&Pr!==e.ModuleKind.System&&(Pr<e.ModuleKind.ES2015||gr.impliedNodeFormat===e.ModuleKind.CommonJS);if(!He){var pr=e.getEmitHelpers(gr);if(pr)for(var Jr=0,ze=pr;Jr<ze.length;Jr++){var Lr=ze[Jr];if(!Lr.scoped){He=!0;break}}}if(He){var Yr=e.getOriginalNode(gr,e.isSourceFile),lt=e.getOrCreateEmitNode(Yr);return lt.externalHelpersModuleName||(lt.externalHelpersModuleName=ur.createUniqueName(e.externalHelpersModuleNameText))}}}e.getOrCreateExternalHelpersModuleNameIfNeeded=u;function g(ur,gr,de){var Fe=e.getNamespaceDeclarationNode(gr);if(Fe&&!e.isDefaultImport(gr)&&!e.isExportNamespaceAsDefaultDeclaration(gr)){var $e=Fe.name;return e.isGeneratedIdentifier($e)?$e:ur.createIdentifier(e.getSourceTextOfNodeFromSourceFile(de,$e)||e.idText($e))}if(gr.kind===265&&gr.importClause||gr.kind===271&&gr.moduleSpecifier)return ur.getGeneratedNameForNode(gr)}e.getLocalNameForExternalImport=g;function P(ur,gr,de,Fe,$e,Sr){var Pr=e.getExternalModuleName(gr);if(Pr&&e.isStringLiteral(Pr))return X(gr,Fe,ur,$e,Sr)||te(ur,Pr,de)||ur.cloneNode(Pr)}e.getExternalModuleNameLiteral=P;function te(ur,gr,de){var Fe=de.renamedDependencies&&de.renamedDependencies.get(gr.text);return Fe?ur.createStringLiteral(Fe):void 0}function ue(ur,gr,de,Fe){if(gr){if(gr.moduleName)return ur.createStringLiteral(gr.moduleName);if(!gr.isDeclarationFile&&e.outFile(Fe))return ur.createStringLiteral(e.getExternalModuleNameFromPath(de,gr.fileName))}}e.tryGetModuleNameFromFile=ue;function X(ur,gr,de,Fe,$e){return ue(de,Fe.getExternalModuleFileFromDeclaration(ur),gr,$e)}function j(ur){if(e.isDeclarationBindingElement(ur))return ur.initializer;if(e.isPropertyAssignment(ur)){var gr=ur.initializer;return e.isAssignmentExpression(gr,!0)?gr.right:void 0}if(e.isShorthandPropertyAssignment(ur))return ur.objectAssignmentInitializer;if(e.isAssignmentExpression(ur,!0))return ur.right;if(e.isSpreadElement(ur))return j(ur.expression)}e.getInitializerOfBindingOrAssignmentElement=j;function Se(ur){if(e.isDeclarationBindingElement(ur))return ur.name;if(e.isObjectLiteralElementLike(ur)){switch(ur.kind){case 294:return Se(ur.initializer);case 295:return ur.name;case 296:return Se(ur.expression)}return}return e.isAssignmentExpression(ur,!0)?Se(ur.left):e.isSpreadElement(ur)?Se(ur.expression):ur}e.getTargetOfBindingOrAssignmentElement=Se;function Ce(ur){switch(ur.kind){case 163:case 202:return ur.dotDotDotToken;case 224:case 296:return ur}}e.getRestIndicatorOfBindingOrAssignmentElement=Ce;function R(ur){var gr=Y(ur);return e.Debug.assert(!!gr||e.isSpreadAssignment(ur),"Invalid property name for binding element."),gr}e.getPropertyNameOfBindingOrAssignmentElement=R;function Y(ur){switch(ur.kind){case 202:if(ur.propertyName){var gr=ur.propertyName;return e.isPrivateIdentifier(gr)?e.Debug.failBadSyntaxKind(gr):e.isComputedPropertyName(gr)&&U(gr.expression)?gr.expression:gr}break;case 294:if(ur.name){var gr=ur.name;return e.isPrivateIdentifier(gr)?e.Debug.failBadSyntaxKind(gr):e.isComputedPropertyName(gr)&&U(gr.expression)?gr.expression:gr}break;case 296:return ur.name&&e.isPrivateIdentifier(ur.name)?e.Debug.failBadSyntaxKind(ur.name):ur.name}var de=Se(ur);if(de&&e.isPropertyName(de))return de}e.tryGetPropertyNameOfBindingOrAssignmentElement=Y;function U(ur){var gr=ur.kind;return gr===10||gr===8}function K(ur){switch(ur.kind){case 200:case 201:case 203:return ur.elements;case 204:return ur.properties}}e.getElementsOfBindingOrAssignmentPattern=K;function Te(ur){if(ur)for(var gr=ur;;){if(e.isIdentifier(gr)||!gr.body)return e.isIdentifier(gr)?gr:gr.name;gr=gr.body}}e.getJSDocTypeAliasName=Te;function ge(ur){var gr=ur.kind;return gr===163||gr===165||gr===166||gr===167||gr===168||gr===170||gr===171||gr===172||gr===175||gr===212||gr===213||gr===225||gr===236||gr===255||gr===256||gr===257||gr===258||gr===259||gr===260||gr===264||gr===265||gr===270||gr===271}e.canHaveModifiers=ge,e.isTypeNodeOrTypeParameterDeclaration=e.or(e.isTypeNode,e.isTypeParameterDeclaration),e.isQuestionOrExclamationToken=e.or(e.isQuestionToken,e.isExclamationToken),e.isIdentifierOrThisTypeNode=e.or(e.isIdentifier,e.isThisTypeNode),e.isReadonlyKeywordOrPlusOrMinusToken=e.or(e.isReadonlyKeyword,e.isPlusToken,e.isMinusToken),e.isQuestionOrPlusOrMinusToken=e.or(e.isQuestionToken,e.isPlusToken,e.isMinusToken),e.isModuleName=e.or(e.isIdentifier,e.isStringLiteral);function ke(ur){var gr=ur.kind;return gr===104||gr===110||gr===95||e.isLiteralExpression(ur)||e.isPrefixUnaryExpression(ur)}e.isLiteralTypeLikeExpression=ke;function Pe(ur){return ur===42}function Ie(ur){return ur===41||ur===43||ur===44}function Ge(ur){return Pe(ur)||Ie(ur)}function he(ur){return ur===39||ur===40}function ve(ur){return he(ur)||Ge(ur)}function Ve(ur){return ur===47||ur===48||ur===49}function _e(ur){return Ve(ur)||ve(ur)}function Le(ur){return ur===29||ur===32||ur===31||ur===33||ur===102||ur===101}function qe(ur){return Le(ur)||_e(ur)}function Xe(ur){return ur===34||ur===36||ur===35||ur===37}function De(ur){return Xe(ur)||qe(ur)}function Ae(ur){return ur===50||ur===51||ur===52}function Ye(ur){return Ae(ur)||De(ur)}function Dr(ur){return ur===55||ur===56}function br(ur){return Dr(ur)||Ye(ur)}function lr(ur){return ur===60||br(ur)||e.isAssignmentOperator(ur)}function Ar(ur){return lr(ur)||ur===27}function kr(ur){return Ar(ur.kind)}e.isBinaryOperatorToken=kr;var Ke;(function(ur){function gr(ze,Lr,Yr,lt,tt,Rt,cn){var bn=Lr>0?tt[Lr-1]:void 0;return e.Debug.assertEqual(Yr[Lr],gr),tt[Lr]=ze.onEnter(lt[Lr],bn,cn),Yr[Lr]=He(ze,gr),Lr}ur.enter=gr;function de(ze,Lr,Yr,lt,tt,Rt,cn){e.Debug.assertEqual(Yr[Lr],de),e.Debug.assertIsDefined(ze.onLeft),Yr[Lr]=He(ze,de);var bn=ze.onLeft(lt[Lr].left,tt[Lr],lt[Lr]);return bn?(Jr(Lr,lt,bn),pr(Lr,Yr,lt,tt,bn)):Lr}ur.left=de;function Fe(ze,Lr,Yr,lt,tt,Rt,cn){return e.Debug.assertEqual(Yr[Lr],Fe),e.Debug.assertIsDefined(ze.onOperator),Yr[Lr]=He(ze,Fe),ze.onOperator(lt[Lr].operatorToken,tt[Lr],lt[Lr]),Lr}ur.operator=Fe;function $e(ze,Lr,Yr,lt,tt,Rt,cn){e.Debug.assertEqual(Yr[Lr],$e),e.Debug.assertIsDefined(ze.onRight),Yr[Lr]=He(ze,$e);var bn=ze.onRight(lt[Lr].right,tt[Lr],lt[Lr]);return bn?(Jr(Lr,lt,bn),pr(Lr,Yr,lt,tt,bn)):Lr}ur.right=$e;function Sr(ze,Lr,Yr,lt,tt,Rt,cn){e.Debug.assertEqual(Yr[Lr],Sr),Yr[Lr]=He(ze,Sr);var bn=ze.onExit(lt[Lr],tt[Lr]);if(Lr>0){if(Lr--,ze.foldState){var In=Yr[Lr]===Sr?"right":"left";tt[Lr]=ze.foldState(tt[Lr],bn,In)}}else Rt.value=bn;return Lr}ur.exit=Sr;function Pr(ze,Lr,Yr,lt,tt,Rt,cn){return e.Debug.assertEqual(Yr[Lr],Pr),Lr}ur.done=Pr;function He(ze,Lr){switch(Lr){case gr:if(ze.onLeft)return de;case de:if(ze.onOperator)return Fe;case Fe:if(ze.onRight)return $e;case $e:return Sr;case Sr:return Pr;case Pr:return Pr;default:e.Debug.fail("Invalid state")}}ur.nextState=He;function pr(ze,Lr,Yr,lt,tt){return ze++,Lr[ze]=gr,Yr[ze]=tt,lt[ze]=void 0,ze}function Jr(ze,Lr,Yr){if(e.Debug.shouldAssert(2))for(;ze>=0;)e.Debug.assert(Lr[ze]!==Yr,"Circular traversal detected."),ze--}})(Ke||(Ke={}));var Me=function(){function ur(gr,de,Fe,$e,Sr,Pr){this.onEnter=gr,this.onLeft=de,this.onOperator=Fe,this.onRight=$e,this.onExit=Sr,this.foldState=Pr}return ur}();function Hr(ur,gr,de,Fe,$e,Sr){var Pr=new Me(ur,gr,de,Fe,$e,Sr);return He;function He(pr,Jr){for(var ze={value:void 0},Lr=[Ke.enter],Yr=[pr],lt=[void 0],tt=0;Lr[tt]!==Ke.done;)tt=Lr[tt](Pr,tt,Lr,Yr,lt,ze,Jr);return e.Debug.assertEqual(tt,0),ze.value}}e.createBinaryExpressionTrampoline=Hr}(jr||(jr={})),function(e){function n(f,p){return p?e.setTextRangePosEnd(f,p.pos,p.end):f}e.setTextRange=n}(jr||(jr={})),function(e){var n;(function(m){m[m.None=0]="None",m[m.Yield=1]="Yield",m[m.Await=2]="Await",m[m.Type=4]="Type",m[m.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",m[m.JSDoc=32]="JSDoc"})(n||(n={}));var f;(function(m){m[m.TryParse=0]="TryParse",m[m.Lookahead=1]="Lookahead",m[m.Reparse=2]="Reparse"})(f||(f={}));var p,a,d,k,J;e.parseBaseNodeFactory={createBaseSourceFileNode:function(m){return new(J||(J=e.objectAllocator.getSourceFileConstructor()))(m,-1,-1)},createBaseIdentifierNode:function(m){return new(d||(d=e.objectAllocator.getIdentifierConstructor()))(m,-1,-1)},createBasePrivateIdentifierNode:function(m){return new(k||(k=e.objectAllocator.getPrivateIdentifierConstructor()))(m,-1,-1)},createBaseTokenNode:function(m){return new(a||(a=e.objectAllocator.getTokenConstructor()))(m,-1,-1)},createBaseNode:function(m){return new(p||(p=e.objectAllocator.getNodeConstructor()))(m,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory);function h(m,u){return u&&m(u)}function v(m,u,g){if(g){if(u)return u(g);for(var P=0,te=g;P<te.length;P++){var ue=te[P],X=m(ue);if(X)return X}}}function A(m,u){return m.charCodeAt(u+1)===42&&m.charCodeAt(u+2)===42&&m.charCodeAt(u+3)!==47}e.isJSDocLikeText=A;function z(m,u,g){if(!(!m||m.kind<=159))switch(m.kind){case 160:return h(u,m.left)||h(u,m.right);case 162:return h(u,m.name)||h(u,m.constraint)||h(u,m.default)||h(u,m.expression);case 295:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||h(u,m.questionToken)||h(u,m.exclamationToken)||h(u,m.equalsToken)||h(u,m.objectAssignmentInitializer);case 296:return h(u,m.expression);case 163:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.dotDotDotToken)||h(u,m.name)||h(u,m.questionToken)||h(u,m.type)||h(u,m.initializer);case 166:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||h(u,m.questionToken)||h(u,m.exclamationToken)||h(u,m.type)||h(u,m.initializer);case 165:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||h(u,m.questionToken)||h(u,m.type)||h(u,m.initializer);case 294:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||h(u,m.questionToken)||h(u,m.initializer);case 253:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||h(u,m.exclamationToken)||h(u,m.type)||h(u,m.initializer);case 202:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.dotDotDotToken)||h(u,m.propertyName)||h(u,m.name)||h(u,m.initializer);case 178:case 179:case 173:case 174:case 175:return v(u,g,m.decorators)||v(u,g,m.modifiers)||v(u,g,m.typeParameters)||v(u,g,m.parameters)||h(u,m.type);case 168:case 167:case 170:case 171:case 172:case 212:case 255:case 213:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.asteriskToken)||h(u,m.name)||h(u,m.questionToken)||h(u,m.exclamationToken)||v(u,g,m.typeParameters)||v(u,g,m.parameters)||h(u,m.type)||h(u,m.equalsGreaterThanToken)||h(u,m.body);case 169:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.body);case 177:return h(u,m.typeName)||v(u,g,m.typeArguments);case 176:return h(u,m.assertsModifier)||h(u,m.parameterName)||h(u,m.type);case 180:return h(u,m.exprName);case 181:return v(u,g,m.members);case 182:return h(u,m.elementType);case 183:return v(u,g,m.elements);case 186:case 187:return v(u,g,m.types);case 188:return h(u,m.checkType)||h(u,m.extendsType)||h(u,m.trueType)||h(u,m.falseType);case 189:return h(u,m.typeParameter);case 199:return h(u,m.argument)||h(u,m.qualifier)||v(u,g,m.typeArguments);case 190:case 192:return h(u,m.type);case 193:return h(u,m.objectType)||h(u,m.indexType);case 194:return h(u,m.readonlyToken)||h(u,m.typeParameter)||h(u,m.nameType)||h(u,m.questionToken)||h(u,m.type)||v(u,g,m.members);case 195:return h(u,m.literal);case 196:return h(u,m.dotDotDotToken)||h(u,m.name)||h(u,m.questionToken)||h(u,m.type);case 200:case 201:return v(u,g,m.elements);case 203:return v(u,g,m.elements);case 204:return v(u,g,m.properties);case 205:return h(u,m.expression)||h(u,m.questionDotToken)||h(u,m.name);case 206:return h(u,m.expression)||h(u,m.questionDotToken)||h(u,m.argumentExpression);case 207:case 208:return h(u,m.expression)||h(u,m.questionDotToken)||v(u,g,m.typeArguments)||v(u,g,m.arguments);case 209:return h(u,m.tag)||h(u,m.questionDotToken)||v(u,g,m.typeArguments)||h(u,m.template);case 210:return h(u,m.type)||h(u,m.expression);case 211:return h(u,m.expression);case 214:return h(u,m.expression);case 215:return h(u,m.expression);case 216:return h(u,m.expression);case 218:return h(u,m.operand);case 223:return h(u,m.asteriskToken)||h(u,m.expression);case 217:return h(u,m.expression);case 219:return h(u,m.operand);case 220:return h(u,m.left)||h(u,m.operatorToken)||h(u,m.right);case 228:return h(u,m.expression)||h(u,m.type);case 229:return h(u,m.expression);case 230:return h(u,m.name);case 221:return h(u,m.condition)||h(u,m.questionToken)||h(u,m.whenTrue)||h(u,m.colonToken)||h(u,m.whenFalse);case 224:return h(u,m.expression);case 234:case 261:return v(u,g,m.statements);case 303:return v(u,g,m.statements)||h(u,m.endOfFileToken);case 236:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.declarationList);case 254:return v(u,g,m.declarations);case 237:return h(u,m.expression);case 238:return h(u,m.expression)||h(u,m.thenStatement)||h(u,m.elseStatement);case 239:return h(u,m.statement)||h(u,m.expression);case 240:return h(u,m.expression)||h(u,m.statement);case 241:return h(u,m.initializer)||h(u,m.condition)||h(u,m.incrementor)||h(u,m.statement);case 242:return h(u,m.initializer)||h(u,m.expression)||h(u,m.statement);case 243:return h(u,m.awaitModifier)||h(u,m.initializer)||h(u,m.expression)||h(u,m.statement);case 244:case 245:return h(u,m.label);case 246:return h(u,m.expression);case 247:return h(u,m.expression)||h(u,m.statement);case 248:return h(u,m.expression)||h(u,m.caseBlock);case 262:return v(u,g,m.clauses);case 288:return h(u,m.expression)||v(u,g,m.statements);case 289:return v(u,g,m.statements);case 249:return h(u,m.label)||h(u,m.statement);case 250:return h(u,m.expression);case 251:return h(u,m.tryBlock)||h(u,m.catchClause)||h(u,m.finallyBlock);case 291:return h(u,m.variableDeclaration)||h(u,m.block);case 164:return h(u,m.expression);case 256:case 225:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||v(u,g,m.typeParameters)||v(u,g,m.heritageClauses)||v(u,g,m.members);case 257:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||v(u,g,m.typeParameters)||v(u,g,m.heritageClauses)||v(u,g,m.members);case 258:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||v(u,g,m.typeParameters)||h(u,m.type);case 259:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||v(u,g,m.members);case 297:return h(u,m.name)||h(u,m.initializer);case 260:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||h(u,m.body);case 264:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.name)||h(u,m.moduleReference);case 265:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.importClause)||h(u,m.moduleSpecifier)||h(u,m.assertClause);case 266:return h(u,m.name)||h(u,m.namedBindings);case 292:return v(u,g,m.elements);case 293:return h(u,m.name)||h(u,m.value);case 263:return h(u,m.name);case 267:return h(u,m.name);case 273:return h(u,m.name);case 268:case 272:return v(u,g,m.elements);case 271:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.exportClause)||h(u,m.moduleSpecifier)||h(u,m.assertClause);case 269:case 274:return h(u,m.propertyName)||h(u,m.name);case 270:return v(u,g,m.decorators)||v(u,g,m.modifiers)||h(u,m.expression);case 222:return h(u,m.head)||v(u,g,m.templateSpans);case 232:return h(u,m.expression)||h(u,m.literal);case 197:return h(u,m.head)||v(u,g,m.templateSpans);case 198:return h(u,m.type)||h(u,m.literal);case 161:return h(u,m.expression);case 290:return v(u,g,m.types);case 227:return h(u,m.expression)||v(u,g,m.typeArguments);case 276:return h(u,m.expression);case 275:return v(u,g,m.decorators);case 349:return v(u,g,m.elements);case 277:return h(u,m.openingElement)||v(u,g,m.children)||h(u,m.closingElement);case 281:return h(u,m.openingFragment)||v(u,g,m.children)||h(u,m.closingFragment);case 278:case 279:return h(u,m.tagName)||v(u,g,m.typeArguments)||h(u,m.attributes);case 285:return v(u,g,m.properties);case 284:return h(u,m.name)||h(u,m.initializer);case 286:return h(u,m.expression);case 287:return h(u,m.dotDotDotToken)||h(u,m.expression);case 280:return h(u,m.tagName);case 184:case 185:case 307:case 313:case 312:case 314:case 316:return h(u,m.type);case 315:return v(u,g,m.parameters)||h(u,m.type);case 318:return(typeof m.comment=="string"?void 0:v(u,g,m.comment))||v(u,g,m.tags);case 344:return h(u,m.tagName)||h(u,m.name)||(typeof m.comment=="string"?void 0:v(u,g,m.comment));case 308:return h(u,m.name);case 309:return h(u,m.left)||h(u,m.right);case 338:case 345:return h(u,m.tagName)||(m.isNameFirst?h(u,m.name)||h(u,m.typeExpression)||(typeof m.comment=="string"?void 0:v(u,g,m.comment)):h(u,m.typeExpression)||h(u,m.name)||(typeof m.comment=="string"?void 0:v(u,g,m.comment)));case 328:return h(u,m.tagName)||(typeof m.comment=="string"?void 0:v(u,g,m.comment));case 327:return h(u,m.tagName)||h(u,m.class)||(typeof m.comment=="string"?void 0:v(u,g,m.comment));case 326:return h(u,m.tagName)||h(u,m.class)||(typeof m.comment=="string"?void 0:v(u,g,m.comment));case 342:return h(u,m.tagName)||h(u,m.constraint)||v(u,g,m.typeParameters)||(typeof m.comment=="string"?void 0:v(u,g,m.comment));case 343:return h(u,m.tagName)||(m.typeExpression&&m.typeExpression.kind===307?h(u,m.typeExpression)||h(u,m.fullName)||(typeof m.comment=="string"?void 0:v(u,g,m.comment)):h(u,m.fullName)||h(u,m.typeExpression)||(typeof m.comment=="string"?void 0:v(u,g,m.comment)));case 336:return h(u,m.tagName)||h(u,m.fullName)||h(u,m.typeExpression)||(typeof m.comment=="string"?void 0:v(u,g,m.comment));case 339:case 341:case 340:case 337:return h(u,m.tagName)||h(u,m.typeExpression)||(typeof m.comment=="string"?void 0:v(u,g,m.comment));case 321:return e.forEach(m.typeParameters,u)||e.forEach(m.parameters,u)||h(u,m.type);case 322:case 323:case 324:return h(u,m.name);case 320:return e.forEach(m.jsDocPropertyTags,u);case 325:case 330:case 331:case 332:case 333:case 334:case 329:return h(u,m.tagName)||(typeof m.comment=="string"?void 0:v(u,g,m.comment));case 348:return h(u,m.expression)}}e.forEachChild=z;function ie(m,u,g){for(var P=b(m),te=[];te.length<P.length;)te.push(m);for(;P.length!==0;){var ue=P.pop(),X=te.pop();if(e.isArray(ue)){if(g){var j=g(ue,X);if(j){if(j==="skip")continue;return j}}for(var Se=ue.length-1;Se>=0;--Se)P.push(ue[Se]),te.push(X)}else{var j=u(ue,X);if(j){if(j==="skip")continue;return j}if(ue.kind>=160)for(var Ce=0,R=b(ue);Ce<R.length;Ce++){var Y=R[Ce];P.push(Y),te.push(ue)}}}}e.forEachChildRecursively=ie;function b(m){var u=[];return z(m,g,g),u;function g(P){u.unshift(P)}}function M(m,u,g,P,te){P===void 0&&(P=!1),e.tracing===null||e.tracing===void 0||e.tracing.push("parse","createSourceFile",{path:m},!0),e.performance.mark("beforeParse");var ue;return e.perfLogger.logStartParseSourceFile(m),g===100?ue=O.parseSourceFile(m,u,g,void 0,P,6):ue=O.parseSourceFile(m,u,g,void 0,P,te),e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),ue}e.createSourceFile=M;function S(m,u){return O.parseIsolatedEntityName(m,u)}e.parseIsolatedEntityName=S;function B(m,u){return O.parseJsonText(m,u)}e.parseJsonText=B;function H(m){return m.externalModuleIndicator!==void 0}e.isExternalModule=H;function I(m,u,g,P){P===void 0&&(P=!1);var te=q.updateSourceFile(m,u,g,P);return te.flags|=m.flags&3145728,te}e.updateSourceFile=I;function w(m,u,g){var P=O.JSDocParser.parseIsolatedJSDocComment(m,u,g);return P&&P.jsDoc&&O.fixupParentReferences(P.jsDoc),P}e.parseIsolatedJSDocComment=w;function x(m,u,g){return O.JSDocParser.parseJSDocTypeExpressionForTests(m,u,g)}e.parseJSDocTypeExpressionForTests=x;var O;(function(m){var u=e.createScanner(99,!0),g=20480,P,te,ue,X,j;function Se(xe){return ve++,xe}var Ce={createBaseSourceFileNode:function(xe){return Se(new j(xe,0,0))},createBaseIdentifierNode:function(xe){return Se(new ue(xe,0,0))},createBasePrivateIdentifierNode:function(xe){return Se(new X(xe,0,0))},createBaseTokenNode:function(xe){return Se(new te(xe,0,0))},createBaseNode:function(xe){return Se(new P(xe,0,0))}},R=e.createNodeFactory(11,Ce),Y,U,K,Te,ge,ke,Pe,Ie,Ge,he,ve,Ve,_e,Le,qe,Xe,De,Ae=!0,Ye=!1;function Dr(xe,Er,Fr,at,Ct,Xt){var On;if(Ct===void 0&&(Ct=!1),Xt=e.ensureScriptKind(xe,Xt),Xt===6){var $n=lr(xe,Er,Fr,at,Ct);return e.convertToObjectWorker($n,(On=$n.statements[0])===null||On===void 0?void 0:On.expression,$n.parseDiagnostics,!1,void 0,void 0),$n.referencedFiles=e.emptyArray,$n.typeReferenceDirectives=e.emptyArray,$n.libReferenceDirectives=e.emptyArray,$n.amdDependencies=e.emptyArray,$n.hasNoDefaultLib=!1,$n.pragmas=e.emptyMap,$n}Ar(xe,Er,Fr,at,Xt);var wa=Ke(Fr,Ct,Xt);return kr(),wa}m.parseSourceFile=Dr;function br(xe,Er){Ar("",xe,Er,void 0,1),fr();var Fr=Pn(!0),at=me()===1&&!Pe.length;return kr(),at?Fr:void 0}m.parseIsolatedEntityName=br;function lr(xe,Er,Fr,at,Ct){Fr===void 0&&(Fr=2),Ct===void 0&&(Ct=!1),Ar(xe,Er,Fr,at,6),U=De,fr();var Xt=$(),On,$n;if(me()===1)On=It([],Xt,Xt),$n=dn();else{for(var wa=void 0;me()!==1;){var Ea=void 0;switch(me()){case 22:Ea=od();break;case 110:case 95:case 104:Ea=dn();break;case 40:ht(function(){return fr()===8&&fr()!==58})?Ea=Ep():Ea=us();break;case 8:case 10:if(ht(function(){return fr()!==58})){Ea=ko();break}default:Ea=us();break}wa&&e.isArray(wa)?wa.push(Ea):wa?wa=[wa,Ea]:(wa=Ea,me()!==1&&or(e.Diagnostics.Unexpected_token))}var Ki=e.isArray(wa)?rt(R.createArrayLiteralExpression(wa),Xt):e.Debug.checkDefined(wa),Qo=R.createExpressionStatement(Ki);rt(Qo,Xt),On=It([Qo],Xt),$n=qt(1,e.Diagnostics.Unexpected_token)}var $i=Fe(xe,2,6,!1,On,$n,U);Ct&&de($i),$i.nodeCount=ve,$i.identifierCount=Le,$i.identifiers=Ve,$i.parseDiagnostics=e.attachFileToDiagnostics(Pe,$i),Ie&&($i.jsDocDiagnostics=e.attachFileToDiagnostics(Ie,$i));var Ho=$i;return kr(),Ho}m.parseJsonText=lr;function Ar(xe,Er,Fr,at,Ct){switch(P=e.objectAllocator.getNodeConstructor(),te=e.objectAllocator.getTokenConstructor(),ue=e.objectAllocator.getIdentifierConstructor(),X=e.objectAllocator.getPrivateIdentifierConstructor(),j=e.objectAllocator.getSourceFileConstructor(),Y=e.normalizePath(xe),K=Er,Te=Fr,Ge=at,ge=Ct,ke=e.getLanguageVariant(Ct),Pe=[],qe=0,Ve=new e.Map,_e=new e.Map,Le=0,ve=0,U=0,Ae=!0,ge){case 1:case 2:De=131072;break;case 6:De=33685504;break;default:De=0;break}Ye=!1,u.setText(K),u.setOnError(We),u.setScriptTarget(Te),u.setLanguageVariant(ke)}function kr(){u.clearCommentDirectives(),u.setText(""),u.setOnError(void 0),K=void 0,Te=void 0,Ge=void 0,ge=void 0,ke=void 0,U=0,Pe=void 0,Ie=void 0,qe=0,Ve=void 0,Xe=void 0,Ae=!0}function Ke(xe,Er,Fr){var at=Z(Y);at&&(De|=8388608),U=De,fr();var Ct=Un(0,Ga);e.Debug.assert(me()===1);var Xt=ur(dn()),On=Fe(Y,xe,Fr,at,Ct,Xt,U);return ne(On,K),F(On,$n),On.commentDirectives=u.getCommentDirectives(),On.nodeCount=ve,On.identifierCount=Le,On.identifiers=Ve,On.parseDiagnostics=e.attachFileToDiagnostics(Pe,On),Ie&&(On.jsDocDiagnostics=e.attachFileToDiagnostics(Ie,On)),Er&&de(On),On;function $n(wa,Ea,Ki){Pe.push(e.createDetachedDiagnostic(Y,wa,Ea,Ki))}}function Me(xe,Er){return Er?ur(xe):xe}var Hr=!1;function ur(xe){e.Debug.assert(!xe.jsDoc);var Er=e.mapDefined(e.getJSDocCommentRanges(xe,K),function(Fr){return a_.parseJSDocComment(xe,Fr.pos,Fr.end-Fr.pos)});return Er.length&&(xe.jsDoc=Er),Hr&&(Hr=!1,xe.flags|=134217728),xe}function gr(xe){var Er=Ge,Fr=q.createSyntaxCursor(xe);Ge={currentNode:Ho};var at=[],Ct=Pe;Pe=[];for(var Xt=0,On=Qo(xe.statements,0),$n=function(){var gs=xe.statements[Xt],_l=xe.statements[On];e.addRange(at,xe.statements,Xt,On),Xt=$i(xe.statements,On);var xs=e.findIndex(Ct,function(bl){return bl.start>=gs.pos}),Cl=xs>=0?e.findIndex(Ct,function(bl){return bl.start>=_l.pos},xs):-1;xs>=0&&e.addRange(Pe,Ct,xs,Cl>=0?Cl:void 0),ut(function(){var bl=De;for(De|=32768,u.setTextPos(_l.pos),fr();me()!==1;){var ju=u.getStartPos(),ul=Oe(0,Ga);if(at.push(ul),ju===u.getStartPos()&&fr(),Xt>=0){var Ms=xe.statements[Xt];if(ul.end===Ms.pos)break;ul.end>Ms.pos&&(Xt=$i(xe.statements,Xt+1))}}De=bl},2),On=Xt>=0?Qo(xe.statements,Xt):-1};On!==-1;)$n();if(Xt>=0){var wa=xe.statements[Xt];e.addRange(at,xe.statements,Xt);var Ea=e.findIndex(Ct,function(gs){return gs.start>=wa.pos});Ea>=0&&e.addRange(Pe,Ct,Ea)}return Ge=Er,R.updateSourceFile(xe,e.setTextRange(R.createNodeArray(at),xe.statements));function Ki(gs){return!(gs.flags&32768)&&!!(gs.transformFlags&16777216)}function Qo(gs,_l){for(var xs=_l;xs<gs.length;xs++)if(Ki(gs[xs]))return xs;return-1}function $i(gs,_l){for(var xs=_l;xs<gs.length;xs++)if(!Ki(gs[xs]))return xs;return-1}function Ho(gs){var _l=Fr.currentNode(gs);return Ae&&_l&&Ki(_l)&&(_l.intersectsChange=!0),_l}}function de(xe){e.setParentRecursive(xe,!0)}m.fixupParentReferences=de;function Fe(xe,Er,Fr,at,Ct,Xt,On){var $n=R.createSourceFile(Ct,Xt,On);return e.setTextRangePosWidth($n,0,K.length),md($n),!at&&H($n)&&$n.transformFlags&16777216&&($n=gr($n)),$n.text=K,$n.bindDiagnostics=[],$n.bindSuggestionDiagnostics=void 0,$n.languageVersion=Er,$n.fileName=xe,$n.languageVariant=e.getLanguageVariant(Fr),$n.isDeclarationFile=at,$n.scriptKind=Fr,$n}function $e(xe,Er){xe?De|=Er:De&=~Er}function Sr(xe){$e(xe,4096)}function Pr(xe){$e(xe,8192)}function He(xe){$e(xe,16384)}function pr(xe){$e(xe,32768)}function Jr(xe,Er){var Fr=xe&De;if(Fr){$e(!1,Fr);var at=Er();return $e(!0,Fr),at}return Er()}function ze(xe,Er){var Fr=xe&~De;if(Fr){$e(!0,Fr);var at=Er();return $e(!1,Fr),at}return Er()}function Lr(xe){return Jr(4096,xe)}function Yr(xe){return ze(4096,xe)}function lt(xe){return ze(8192,xe)}function tt(xe){return ze(16384,xe)}function Rt(xe){return ze(32768,xe)}function cn(xe){return Jr(32768,xe)}function bn(xe){return ze(40960,xe)}function In(xe){return Jr(40960,xe)}function zn(xe){return(De&xe)!==0}function ir(){return zn(8192)}function Or(){return zn(4096)}function sr(){return zn(16384)}function ye(){return zn(32768)}function or(xe,Er){je(u.getTokenPos(),u.getTextPos(),xe,Er)}function fe(xe,Er,Fr,at){var Ct=e.lastOrUndefined(Pe);(!Ct||xe!==Ct.start)&&Pe.push(e.createDetachedDiagnostic(Y,xe,Er,Fr,at)),Ye=!0}function je(xe,Er,Fr,at){fe(xe,Er-xe,Fr,at)}function Ee(xe,Er,Fr){je(xe.pos,xe.end,Er,Fr)}function We(xe,Er){fe(u.getTextPos(),Er,xe)}function $(){return u.getStartPos()}function Ne(){return u.hasPrecedingJSDocComment()}function me(){return he}function Ze(){return he=u.scan()}function Cr(xe){return fr(),xe()}function fr(){return e.isKeyword(he)&&(u.hasUnicodeEscape()||u.hasExtendedUnicodeEscape())&&je(u.getTokenPos(),u.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),Ze()}function dr(){return he=u.scanJsDocToken()}function et(){return he=u.reScanGreaterToken()}function yt(){return he=u.reScanSlashToken()}function Vr(xe){return he=u.reScanTemplateToken(xe)}function tr(){return he=u.reScanTemplateHeadOrNoSubstitutionTemplate()}function xr(){return he=u.reScanLessThanToken()}function Nr(){return he=u.reScanHashToken()}function zr(){return he=u.scanJsxIdentifier()}function gt(){return he=u.scanJsxToken()}function vt(){return he=u.scanJsxAttributeValue()}function ut(xe,Er){var Fr=he,at=Pe.length,Ct=Ye,Xt=De,On=Er!==0?u.lookAhead(xe):u.tryScan(xe);return e.Debug.assert(Xt===De),(!On||Er!==0)&&(he=Fr,Er!==2&&(Pe.length=at),Ye=Ct),On}function ht(xe){return ut(xe,1)}function xt(xe){return ut(xe,0)}function wt(){return me()===79?!0:me()>116}function Qt(){return me()===79?!0:me()===125&&ir()||me()===132&&ye()?!1:me()>116}function mt(xe,Er,Fr){return Fr===void 0&&(Fr=!0),me()===xe?(Fr&&fr(),!0):(Er?or(Er):or(e.Diagnostics._0_expected,e.tokenToString(xe)),!1)}var rn=Object.keys(e.textToKeywordObj).filter(function(xe){return xe.length>2});function sa(xe){var Er;if(e.isTaggedTemplateExpression(xe)){je(e.skipTrivia(K,xe.template.pos),xe.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);return}var Fr=e.isIdentifier(xe)?e.idText(xe):void 0;if(!Fr||!e.isIdentifierText(Fr,Te)){or(e.Diagnostics._0_expected,e.tokenToString(26));return}var at=e.skipTrivia(K,xe.pos);switch(Fr){case"const":case"let":case"var":je(at,xe.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":ba(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);return;case"is":je(at,u.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":ba(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);return;case"type":ba(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63);return}var Ct=(Er=e.getSpellingSuggestion(Fr,rn,function(Xt){return Xt}))!==null&&Er!==void 0?Er:Jn(Fr);if(Ct){je(at,xe.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,Ct);return}me()!==0&&je(at,xe.end,e.Diagnostics.Unexpected_keyword_or_identifier)}function ba(xe,Er,Fr){me()===Fr?or(Er):or(xe,u.getTokenValue())}function Jn(xe){for(var Er=0,Fr=rn;Er<Fr.length;Er++){var at=Fr[Er];if(xe.length>at.length+2&&e.startsWith(xe,at))return"".concat(at," ").concat(xe.slice(at.length))}}function na(xe,Er,Fr){if(me()===59&&!u.hasPrecedingLineBreak()){or(e.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(me()===20){or(e.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation),fr();return}if(Er&&!pt()){Fr?or(e.Diagnostics._0_expected,e.tokenToString(26)):or(e.Diagnostics.Expected_for_property_initializer);return}if(!_t()){if(Fr){me()===18&&or(e.Diagnostics._0_expected,e.tokenToString(26));return}sa(xe)}}function Wn(xe){return me()===xe?(dr(),!0):(or(e.Diagnostics._0_expected,e.tokenToString(xe)),!1)}function en(xe){return me()===xe?(fr(),!0):!1}function St(xe){if(me()===xe)return dn()}function Ut(xe){if(me()===xe)return oa()}function qt(xe,Er,Fr){return St(xe)||Cn(xe,!1,Er||e.Diagnostics._0_expected,Fr||e.tokenToString(xe))}function Mn(xe){return Ut(xe)||Cn(xe,!1,e.Diagnostics._0_expected,e.tokenToString(xe))}function dn(){var xe=$(),Er=me();return fr(),rt(R.createToken(Er),xe)}function oa(){var xe=$(),Er=me();return dr(),rt(R.createToken(Er),xe)}function pt(){return me()===26?!0:me()===19||me()===1||u.hasPrecedingLineBreak()}function _t(){return pt()?(me()===26&&fr(),!0):!1}function Mt(){return _t()||mt(26)}function It(xe,Er,Fr,at){var Ct=R.createNodeArray(xe,at);return e.setTextRangePosEnd(Ct,Er,Fr??u.getStartPos()),Ct}function rt(xe,Er,Fr){return e.setTextRangePosEnd(xe,Er,Fr??u.getStartPos()),De&&(xe.flags|=De),Ye&&(Ye=!1,xe.flags|=65536),xe}function Cn(xe,Er,Fr,at){Er?fe(u.getStartPos(),0,Fr,at):Fr&&or(Fr,at);var Ct=$(),Xt=xe===79?R.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(xe)?R.createTemplateLiteralLikeNode(xe,"","",void 0):xe===8?R.createNumericLiteral("",void 0):xe===10?R.createStringLiteral("",void 0):xe===275?R.createMissingDeclaration():R.createToken(xe);return rt(Xt,Ct)}function Qn(xe){var Er=Ve.get(xe);return Er===void 0&&Ve.set(xe,Er=xe),Er}function Ra(xe,Er,Fr){if(xe){Le++;var at=$(),Ct=me(),Xt=Qn(u.getTokenValue());return Ze(),rt(R.createIdentifier(Xt,void 0,Ct),at)}if(me()===80)return or(Fr||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ra(!0);if(me()===0&&u.tryScan(function(){return u.reScanInvalidIdentifier()===79}))return Ra(!0);Le++;var On=me()===1,$n=u.isReservedWord(),wa=u.getTokenText(),Ea=$n?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return Cn(79,On,Er||Ea,wa)}function Ci(xe){return Ra(wt(),void 0,xe)}function _i(xe,Er){return Ra(Qt(),xe,Er)}function va(xe){return Ra(e.tokenIsIdentifierOrKeyword(me()),xe)}function yi(){return e.tokenIsIdentifierOrKeyword(me())||me()===10||me()===8}function ro(){return e.tokenIsIdentifierOrKeyword(me())||me()===10}function Ka(xe){if(me()===10||me()===8){var Er=ko();return Er.text=Qn(Er.text),Er}return xe&&me()===22?io():me()===80?Hi():va()}function Mi(){return Ka(!0)}function io(){var xe=$();mt(22);var Er=Lr(Rs);return mt(23),rt(R.createComputedPropertyName(Er),xe)}function ji(xe){var Er=_e.get(xe);return Er===void 0&&_e.set(xe,Er=xe),Er}function Hi(){var xe=$(),Er=R.createPrivateIdentifier(ji(u.getTokenText()));return fr(),rt(Er,xe)}function to(xe){return me()===xe&&xt(lo)}function No(){return fr(),u.hasPrecedingLineBreak()?!1:co()}function lo(){switch(me()){case 85:return fr()===92;case 93:return fr(),me()===88?ht(za):me()===151?ht(Ha):Lo();case 88:return za();case 124:case 136:case 148:return fr(),co();default:return No()}}function Lo(){return me()!==41&&me()!==127&&me()!==18&&co()}function Ha(){return fr(),Lo()}function Yo(){return e.isModifierKind(me())&&xt(lo)}function co(){return me()===22||me()===18||me()===41||me()===25||yi()}function za(){return fr(),me()===84||me()===98||me()===118||me()===126&&ht(yc)||me()===131&&ht(ud)}function hi(xe,Er){var Fr=oe(xe);if(Fr)return!0;switch(xe){case 0:case 1:case 3:return!(me()===26&&Er)&&Gl();case 2:return me()===82||me()===88;case 4:return ht(wr);case 5:return ht(qd)||me()===26&&!Er;case 6:return me()===22||yi();case 12:switch(me()){case 22:case 41:case 25:case 24:return!0;default:return yi()}case 18:return yi();case 9:return me()===22||me()===25||yi();case 24:return ro();case 7:return me()===18?ht(Zi):Er?Qt()&&!zo():zp()&&!zo();case 8:return $u();case 10:return me()===27||me()===25||$u();case 19:return Qt();case 15:switch(me()){case 27:case 24:return!0}case 11:return me()===25||dl();case 16:return Vs(!1);case 17:return Vs(!0);case 20:case 21:return me()===27||bo();case 22:return Rf();case 23:return e.tokenIsIdentifierOrKeyword(me());case 13:return e.tokenIsIdentifierOrKeyword(me())||me()===18;case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Zi(){if(e.Debug.assert(me()===18),fr()===19){var xe=fr();return xe===27||xe===18||xe===94||xe===117}return!0}function Mo(){return fr(),Qt()}function Po(){return fr(),e.tokenIsIdentifierOrKeyword(me())}function Fo(){return fr(),e.tokenIsIdentifierOrKeywordOrGreaterThan(me())}function zo(){return me()===117||me()===94?ht(Es):!1}function Es(){return fr(),dl()}function Cs(){return fr(),bo()}function hr(xe){if(me()===1)return!0;switch(xe){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return me()===19;case 3:return me()===19||me()===82||me()===88;case 7:return me()===18||me()===94||me()===117;case 8:return dt();case 19:return me()===31||me()===20||me()===18||me()===94||me()===117;case 11:return me()===21||me()===26;case 15:case 21:case 10:return me()===23;case 17:case 16:case 18:return me()===21||me()===23;case 20:return me()!==27;case 22:return me()===18||me()===19;case 13:return me()===31||me()===43;case 14:return me()===29&&ht(Fc);default:return!1}}function dt(){return!!(pt()||bp(me())||me()===38)}function tn(){for(var xe=0;xe<25;xe++)if(qe&1<<xe&&(hi(xe,!0)||hr(xe)))return!0;return!1}function Un(xe,Er){var Fr=qe;qe|=1<<xe;for(var at=[],Ct=$();!hr(xe);){if(hi(xe,!1)){at.push(Oe(xe,Er));continue}if(xa(xe))break}return qe=Fr,It(at,Ct)}function Oe(xe,Er){var Fr=oe(xe);return Fr?mr(Fr):Er()}function oe(xe){if(!(!Ge||!se(xe)||Ye)){var Er=Ge.currentNode(u.getStartPos());if(!(e.nodeIsMissing(Er)||Er.intersectsChange||e.containsParseError(Er))){var Fr=Er.flags&25358336;if(Fr===De&&Be(Er,xe))return Er.jsDocCache&&(Er.jsDocCache=void 0),Er}}}function mr(xe){return u.setTextPos(xe.end),fr(),xe}function se(xe){switch(xe){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 Be(xe,Er){switch(Er){case 5:return er(xe);case 2:return vr(xe);case 0:case 1:case 3:return qr(xe);case 6:return Dt(xe);case 4:return Jt(xe);case 8:return Sn(xe);case 17:case 16:return ta(xe)}return!1}function er(xe){if(xe)switch(xe.kind){case 170:case 175:case 171:case 172:case 166:case 233:return!0;case 168:var Er=xe,Fr=Er.name.kind===79&&Er.name.originalKeywordKind===134;return!Fr}return!1}function vr(xe){if(xe)switch(xe.kind){case 288:case 289:return!0}return!1}function qr(xe){if(xe)switch(xe.kind){case 255:case 236:case 234:case 238:case 237:case 250:case 246:case 248:case 245:case 244:case 242:case 243:case 241:case 240:case 247:case 235:case 251:case 249:case 239:case 252:case 265:case 264:case 271:case 270:case 260:case 256:case 257:case 259:case 258:return!0}return!1}function Dt(xe){return xe.kind===297}function Jt(xe){if(xe)switch(xe.kind){case 174:case 167:case 175:case 165:case 173:return!0}return!1}function Sn(xe){if(xe.kind!==253)return!1;var Er=xe;return Er.initializer===void 0}function ta(xe){if(xe.kind!==163)return!1;var Er=xe;return Er.initializer===void 0}function xa(xe){return Di(xe),tn()?!0:(fr(),!1)}function Di(xe){switch(xe){case 0:return me()===88?or(e.Diagnostics._0_expected,e.tokenToString(93)):or(e.Diagnostics.Declaration_or_statement_expected);case 1:return or(e.Diagnostics.Declaration_or_statement_expected);case 2:return or(e.Diagnostics.case_or_default_expected);case 3:return or(e.Diagnostics.Statement_expected);case 18:case 4:return or(e.Diagnostics.Property_or_signature_expected);case 5:return or(e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return or(e.Diagnostics.Enum_member_expected);case 7:return or(e.Diagnostics.Expression_expected);case 8:return e.isKeyword(me())?or(e.Diagnostics._0_is_not_allowed_as_a_variable_declaration_name,e.tokenToString(me())):or(e.Diagnostics.Variable_declaration_expected);case 9:return or(e.Diagnostics.Property_destructuring_pattern_expected);case 10:return or(e.Diagnostics.Array_element_destructuring_pattern_expected);case 11:return or(e.Diagnostics.Argument_expression_expected);case 12:return or(e.Diagnostics.Property_assignment_expected);case 15:return or(e.Diagnostics.Expression_or_comma_expected);case 17:return or(e.Diagnostics.Parameter_declaration_expected);case 16:return e.isKeyword(me())?or(e.Diagnostics._0_is_not_allowed_as_a_parameter_name,e.tokenToString(me())):or(e.Diagnostics.Parameter_declaration_expected);case 19:return or(e.Diagnostics.Type_parameter_declaration_expected);case 20:return or(e.Diagnostics.Type_argument_expected);case 21:return or(e.Diagnostics.Type_expected);case 22:return or(e.Diagnostics.Unexpected_token_expected);case 23:return or(e.Diagnostics.Identifier_expected);case 13:return or(e.Diagnostics.Identifier_expected);case 14:return or(e.Diagnostics.Identifier_expected);default:return[void 0]}}function $a(xe,Er,Fr){var at=qe;qe|=1<<xe;for(var Ct=[],Xt=$(),On=-1;;){if(hi(xe,!1)){var $n=u.getStartPos();if(Ct.push(Oe(xe,Er)),On=u.getTokenPos(),en(27))continue;if(On=-1,hr(xe))break;mt(27,Ji(xe)),Fr&&me()===26&&!u.hasPrecedingLineBreak()&&fr(),$n===u.getStartPos()&&fr();continue}if(hr(xe)||xa(xe))break}return qe=at,It(Ct,Xt,void 0,On>=0)}function Ji(xe){return xe===6?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function So(){var xe=It([],$());return xe.isMissingList=!0,xe}function cs(xe){return!!xe.isMissingList}function bt(xe,Er,Fr,at){if(mt(Fr)){var Ct=$a(xe,Er);return mt(at),Ct}return So()}function Pn(xe,Er){for(var Fr=$(),at=xe?va(Er):_i(Er),Ct=$();en(24);){if(me()===29){at.jsdocDotPos=Ct;break}Ct=$(),at=rt(R.createQualifiedName(at,ei(xe,!1)),Fr)}return at}function da(xe,Er){return rt(R.createQualifiedName(xe,Er),xe.pos)}function ei(xe,Er){if(u.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(me())){var Fr=ht(Cf);if(Fr)return Cn(79,!0,e.Diagnostics.Identifier_expected)}if(me()===80){var at=Hi();return Er?at:Cn(79,!0,e.Diagnostics.Identifier_expected)}return xe?va():_i()}function bi(xe){var Er=$(),Fr=[],at;do at=Ro(xe),Fr.push(at);while(at.literal.kind===16);return It(Fr,Er)}function xi(xe){var Er=$();return rt(R.createTemplateExpression(es(xe),bi(xe)),Er)}function ka(){var xe=$();return rt(R.createTemplateLiteralType(es(!1),mi()),xe)}function mi(){var xe=$(),Er=[],Fr;do Fr=Xi(),Er.push(Fr);while(Fr.literal.kind===16);return It(Er,xe)}function Xi(){var xe=$();return rt(R.createTemplateLiteralTypeSpan(_s(),Gi(!1)),xe)}function Gi(xe){return me()===19?(Vr(xe),as()):qt(17,e.Diagnostics._0_expected,e.tokenToString(19))}function Ro(xe){var Er=$();return rt(R.createTemplateSpan(Lr(Rs),Gi(xe)),Er)}function ko(){return Rr(me())}function es(xe){xe&&tr();var Er=Rr(me());return e.Debug.assert(Er.kind===15,"Template head has wrong token kind"),Er}function as(){var xe=Rr(me());return e.Debug.assert(xe.kind===16||xe.kind===17,"Template fragment has wrong token kind"),xe}function pe(xe){var Er=xe===14||xe===17,Fr=u.getTokenText();return Fr.substring(1,Fr.length-(u.isUnterminated()?0:Er?1:2))}function Rr(xe){var Er=$(),Fr=e.isTemplateLiteralKind(xe)?R.createTemplateLiteralLikeNode(xe,u.getTokenValue(),pe(xe),u.getTokenFlags()&2048):xe===8?R.createNumericLiteral(u.getTokenValue(),u.getNumericLiteralFlags()):xe===10?R.createStringLiteral(u.getTokenValue(),void 0,u.hasExtendedUnicodeEscape()):e.isLiteralKind(xe)?R.createLiteralLikeNode(xe,u.getTokenValue()):e.Debug.fail();return u.hasExtendedUnicodeEscape()&&(Fr.hasExtendedUnicodeEscape=!0),u.isUnterminated()&&(Fr.isUnterminated=!0),fr(),rt(Fr,Er)}function ft(){return Pn(!0,e.Diagnostics.Type_expected)}function Zt(){if(!u.hasPrecedingLineBreak()&&xr()===29)return bt(20,_s,29,31)}function Re(){var xe=$();return rt(R.createTypeReferenceNode(ft(),Zt()),xe)}function Qr(xe){switch(xe.kind){case 177:return e.nodeIsMissing(xe.typeName);case 178:case 179:{var Er=xe,Fr=Er.parameters,at=Er.type;return cs(Fr)||Qr(at)}case 190:return Qr(xe.type);default:return!1}}function vn(xe){return fr(),rt(R.createTypePredicateNode(void 0,xe,_s()),xe.pos)}function Xn(){var xe=$();return fr(),rt(R.createThisTypeNode(),xe)}function gi(){var xe=$();return fr(),rt(R.createJSDocAllType(),xe)}function Ia(){var xe=$();return fr(),rt(R.createJSDocNonNullableType(Do()),xe)}function oo(){var xe=$();return fr(),me()===27||me()===19||me()===21||me()===31||me()===63||me()===51?rt(R.createJSDocUnknownType(),xe):rt(R.createJSDocNullableType(_s()),xe)}function Wo(){var xe=$(),Er=Ne();if(ht(wf)){fr();var Fr=Ws(36),at=no(58,!1);return Me(rt(R.createJSDocFunctionType(Fr,at),xe),Er)}return rt(R.createTypeReferenceNode(va(),void 0),xe)}function Ir(){var xe=$(),Er;return(me()===108||me()===103)&&(Er=va(),mt(58)),rt(R.createParameterDeclaration(void 0,void 0,void 0,Er,void 0,Us(),void 0),xe)}function Us(){u.setInJSDocType(!0);var xe=$();if(en(141)){var Er=R.createJSDocNamepathType(void 0);e:for(;;)switch(me()){case 19:case 1:case 27:case 5:break e;default:dr()}return u.setInJSDocType(!1),rt(Er,xe)}var Fr=en(25),at=Zf();return u.setInJSDocType(!1),Fr&&(at=rt(R.createJSDocVariadicType(at),xe)),me()===63?(fr(),rt(R.createJSDocOptionalType(at),xe)):at}function il(){var xe=$();return mt(112),rt(R.createTypeQueryNode(Pn(!0)),xe)}function Ml(){var xe=$(),Er=_i(),Fr,at;en(94)&&(bo()||!dl()?Fr=_s():at=_c());var Ct=en(63)?_s():void 0,Xt=R.createTypeParameterDeclaration(Er,Fr,Ct);return Xt.expression=at,rt(Xt,xe)}function Co(){if(me()===29)return bt(19,Ml,29,31)}function Vs(xe){return me()===25||$u()||e.isModifierKind(me())||me()===59||bo(!xe)}function Ql(xe){var Er=Qs(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return e.getFullWidth(Er)===0&&!e.some(xe)&&e.isModifierKind(me())&&fr(),Er}function zl(){return cu(!0)}function uc(){return cu(!1)}function cu(xe){var Er=$(),Fr=Ne(),at=xe?Rt(ef):ef();if(me()===108){var Ct=R.createParameterDeclaration(at,void 0,void 0,Ra(!0),void 0,Jc(),void 0);return at&&Ee(at[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),Me(rt(Ct,Er),Fr)}var Xt=Ae;Ae=!1;var On=bc(),$n=Me(rt(R.createParameterDeclaration(at,On,St(25),Ql(On),St(57),Jc(),Ja()),Er),Fr);return Ae=Xt,$n}function no(xe,Er){if(ql(xe,Er))return Zf()}function ql(xe,Er){return xe===38?(mt(xe),!0):en(58)?!0:Er&&me()===38?(or(e.Diagnostics._0_expected,e.tokenToString(58)),fr(),!0):!1}function fc(xe){var Er=ir(),Fr=ye();Pr(!!(xe&1)),pr(!!(xe&2));var at=xe&32?$a(17,Ir):$a(16,Fr?zl:uc);return Pr(Er),pr(Fr),at}function Ws(xe){if(!mt(20))return So();var Er=fc(xe);return mt(21),Er}function xc(){en(27)||Mt()}function Ic(xe){var Er=$(),Fr=Ne();xe===174&&mt(103);var at=Co(),Ct=Ws(4),Xt=no(58,!0);xc();var On=xe===173?R.createCallSignature(at,Ct,Xt):R.createConstructSignature(at,Ct,Xt);return Me(rt(On,Er),Fr)}function La(){return me()===22&&ht(uu)}function uu(){if(fr(),me()===25||me()===23)return!0;if(e.isModifierKind(me())){if(fr(),Qt())return!0}else if(Qt())fr();else return!1;return me()===58||me()===27?!0:me()!==57?!1:(fr(),me()===58||me()===27||me()===23)}function dc(xe,Er,Fr,at){var Ct=bt(16,uc,22,23),Xt=Jc();xc();var On=R.createIndexSignature(Fr,at,Ct,Xt);return Me(rt(On,xe),Er)}function Nc(xe,Er,Fr){var at=Mi(),Ct=St(57),Xt;if(me()===20||me()===29){var On=Co(),$n=Ws(4),wa=no(58,!0);Xt=R.createMethodSignature(Fr,at,Ct,On,$n,wa)}else{var wa=Jc();Xt=R.createPropertySignature(Fr,at,Ct,wa),me()===63&&(Xt.initializer=Ja())}return xc(),Me(rt(Xt,xe),Er)}function wr(){if(me()===20||me()===29||me()===136||me()===148)return!0;for(var xe=!1;e.isModifierKind(me());)xe=!0,fr();return me()===22?!0:(yi()&&(xe=!0,fr()),xe?me()===20||me()===29||me()===57||me()===58||me()===27||pt():!1)}function $r(){if(me()===20||me()===29)return Ic(173);if(me()===103&&ht(Lt))return Ic(174);var xe=$(),Er=Ne(),Fr=bc();return to(136)?du(xe,Er,void 0,Fr,171):to(148)?du(xe,Er,void 0,Fr,172):La()?dc(xe,Er,void 0,Fr):Nc(xe,Er,Fr)}function Lt(){return fr(),me()===20||me()===29}function Kt(){return fr()===24}function pn(){switch(fr()){case 20:case 29:case 24:return!0}return!1}function fn(){var xe=$();return rt(R.createTypeLiteralNode(kn()),xe)}function kn(){var xe;return mt(18)?(xe=Un(4,$r),mt(19)):xe=So(),xe}function Kn(){return fr(),me()===39||me()===40?fr()===144:(me()===144&&fr(),me()===22&&Mo()&&fr()===101)}function Fa(){var xe=$(),Er=va();mt(101);var Fr=_s();return rt(R.createTypeParameterDeclaration(Er,Fr,void 0),xe)}function ua(){var xe=$();mt(18);var Er;(me()===144||me()===39||me()===40)&&(Er=dn(),Er.kind!==144&&mt(144)),mt(22);var Fr=Fa(),at=en(127)?_s():void 0;mt(23);var Ct;(me()===57||me()===39||me()===40)&&(Ct=dn(),Ct.kind!==57&&mt(57));var Xt=Jc();Mt();var On=Un(4,$r);return mt(19),rt(R.createMappedTypeNode(Er,Fr,at,Ct,Xt,On),xe)}function le(){var xe=$();if(en(25))return rt(R.createRestTypeNode(_s()),xe);var Er=_s();if(e.isJSDocNullableType(Er)&&Er.pos===Er.type.pos){var Fr=R.createOptionalTypeNode(Er.type);return e.setTextRange(Fr,Er),Fr.flags=Er.flags,Fr}return Er}function rr(){return fr()===58||me()===57&&fr()===58}function yr(){return me()===25?e.tokenIsIdentifierOrKeyword(fr())&&rr():e.tokenIsIdentifierOrKeyword(me())&&rr()}function ct(){if(ht(yr)){var xe=$(),Er=Ne(),Fr=St(25),at=va(),Ct=St(57);mt(58);var Xt=le(),On=R.createNamedTupleMember(Fr,at,Ct,Xt);return Me(rt(On,xe),Er)}return le()}function jt(){var xe=$();return rt(R.createTupleTypeNode(bt(21,ct,22,23)),xe)}function yn(){var xe=$();mt(20);var Er=_s();return mt(21),rt(R.createParenthesizedType(Er),xe)}function ha(){var xe;if(me()===126){var Er=$();fr();var Fr=rt(R.createToken(126),Er);xe=It([Fr],Er)}return xe}function ri(){var xe=$(),Er=Ne(),Fr=ha(),at=en(103),Ct=Co(),Xt=Ws(4),On=no(38,!1),$n=at?R.createConstructorTypeNode(Fr,Ct,Xt,On):R.createFunctionTypeNode(Ct,Xt,On);return at||($n.modifiers=Fr),Me(rt($n,xe),Er)}function Ta(){var xe=dn();return me()===24?void 0:xe}function Ya(xe){var Er=$();xe&&fr();var Fr=me()===110||me()===95||me()===104?dn():Rr(me());return xe&&(Fr=rt(R.createPrefixUnaryExpression(40,Fr),Er)),rt(R.createLiteralTypeNode(Fr),Er)}function fi(){return fr(),me()===100}function ci(){U|=1048576;var xe=$(),Er=en(112);mt(100),mt(20);var Fr=_s();mt(21);var at=en(24)?ft():void 0,Ct=Zt();return rt(R.createImportTypeNode(Fr,at,Ct,Er),xe)}function Si(){return fr(),me()===8||me()===9}function Do(){switch(me()){case 130:case 154:case 149:case 146:case 157:case 150:case 133:case 152:case 143:case 147:return xt(Ta)||Re();case 66:u.reScanAsteriskEqualsToken();case 41:return gi();case 60:u.reScanQuestionToken();case 57:return oo();case 98:return Wo();case 53:return Ia();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return Ya();case 40:return ht(Si)?Ya(!0):Re();case 114:return dn();case 108:{var xe=Xn();return me()===139&&!u.hasPrecedingLineBreak()?vn(xe):xe}case 112:return ht(fi)?ci():il();case 18:return ht(Kn)?ua():fn();case 22:return jt();case 20:return yn();case 100:return ci();case 128:return ht(Cf)?Nd():Re();case 15:return ka();default:return Re()}}function bo(xe){switch(me()){case 130:case 154:case 149:case 146:case 157:case 133:case 144:case 150:case 153:case 114:case 152:case 104:case 108:case 112:case 143:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 147:case 41:case 57:case 53:case 25:case 137:case 100:case 128:case 14:case 15:return!0;case 98:return!xe;case 40:return!xe&&ht(Si);case 20:return!xe&&ht(Ns);default:return Qt()}}function Ns(){return fr(),me()===21||Vs(!1)||bo()}function Ys(){for(var xe=$(),Er=Do();!u.hasPrecedingLineBreak();)switch(me()){case 53:fr(),Er=rt(R.createJSDocNonNullableType(Er),xe);break;case 57:if(ht(Cs))return Er;fr(),Er=rt(R.createJSDocNullableType(Er),xe);break;case 22:if(mt(22),bo()){var Fr=_s();mt(23),Er=rt(R.createIndexedAccessTypeNode(Er,Fr),xe)}else mt(23),Er=rt(R.createArrayTypeNode(Er),xe);break;default:return Er}return Er}function Nu(xe){var Er=$();return mt(xe),rt(R.createTypeOperatorNode(xe,jc()),Er)}function gf(){var xe=$();return rt(R.createTypeParameterDeclaration(_i(),void 0,void 0),xe)}function Zl(){var xe=$();return mt(137),rt(R.createInferTypeNode(gf()),xe)}function jc(){var xe=me();switch(xe){case 140:case 153:case 144:return Nu(xe);case 137:return Zl()}return Ys()}function Mr(xe){if(kc()){var Er=ri(),Fr=void 0;return e.isFunctionTypeNode(Er)?Fr=xe?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Fr=xe?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Ee(Er,Fr),Er}}function $l(xe,Er,Fr){var at=$(),Ct=xe===51,Xt=en(xe),On=Xt&&Mr(Ct)||Er();if(me()===xe||Xt){for(var $n=[On];en(xe);)$n.push(Mr(Ct)||Er());On=rt(Fr(It($n,at)),at)}return On}function pc(){return $l(50,jc,R.createIntersectionTypeNode)}function ku(){return $l(51,pc,R.createUnionTypeNode)}function ol(){return fr(),me()===103}function kc(){return me()===29||me()===20&&ht(fo)?!0:me()===103||me()===126&&ht(ol)}function vf(){if(e.isModifierKind(me())&&bc(),Qt()||me()===108)return fr(),!0;if(me()===22||me()===18){var xe=Pe.length;return Qs(),xe===Pe.length}return!1}function fo(){return fr(),!!(me()===21||me()===25||vf()&&(me()===58||me()===27||me()===57||me()===63||me()===21&&(fr(),me()===38)))}function Zf(){var xe=$(),Er=Qt()&&xt(hf),Fr=_s();return Er?rt(R.createTypePredicateNode(void 0,Er,Fr),xe):Fr}function hf(){var xe=_i();if(me()===139&&!u.hasPrecedingLineBreak())return fr(),xe}function Nd(){var xe=$(),Er=qt(128),Fr=me()===108?Xn():_i(),at=en(139)?_s():void 0;return rt(R.createTypePredicateNode(Er,Fr,at),xe)}function _s(){return Jr(40960,Hc)}function Hc(xe){if(kc())return ri();var Er=$(),Fr=ku();if(!xe&&!u.hasPrecedingLineBreak()&&en(94)){var at=Hc(!0);mt(57);var Ct=Hc();mt(58);var Xt=Hc();return rt(R.createConditionalTypeNode(Fr,at,Ct,Xt),Er)}return Fr}function Jc(){return en(58)?_s():void 0}function zp(){switch(me()){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 ht(pn);default:return Qt()}}function dl(){if(zp())return!0;switch(me()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 132:case 125:case 80:return!0;default:return Md()?!0:Qt()}}function qp(){return me()!==18&&me()!==98&&me()!==84&&me()!==59&&dl()}function Rs(){var xe=sr();xe&&He(!1);for(var Er=$(),Fr=Zn(),at;at=St(27);)Fr=Pd(Fr,at,Zn(),Er);return xe&&He(!0),Fr}function Ja(){return en(63)?Zn():void 0}function Zn(){if(Oc())return yf();var xe=kd()||Rd();if(xe)return xe;var Er=$(),Fr=ed(0);return Fr.kind===79&&me()===38?Ou(Er,Fr,void 0):e.isLeftHandSideExpression(Fr)&&e.isAssignmentOperator(et())?Pd(Fr,dn(),Zn(),Er):C_(Fr,Er)}function Oc(){return me()===125?ir()?!0:ht(xf):!1}function ks(){return fr(),!u.hasPrecedingLineBreak()&&Qt()}function yf(){var xe=$();return fr(),!u.hasPrecedingLineBreak()&&(me()===41||dl())?rt(R.createYieldExpression(St(41),Zn()),xe):rt(R.createYieldExpression(void 0,void 0),xe)}function Ou(xe,Er,Fr){e.Debug.assert(me()===38,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var at=R.createParameterDeclaration(void 0,void 0,void 0,Er,void 0,void 0,void 0);rt(at,Er.pos);var Ct=It([at],at.pos,at.end),Xt=qt(38),On=Xl(!!Fr),$n=R.createArrowFunction(Fr,void 0,Ct,void 0,Xt,On);return ur(rt($n,xe))}function kd(){var xe=Uo();if(xe!==0)return xe===1?yp(!0):xt(Od)}function Uo(){return me()===20||me()===29||me()===131?ht($f):me()===38?1:0}function $f(){if(me()===131&&(fr(),u.hasPrecedingLineBreak()||me()!==20&&me()!==29))return 0;var xe=me(),Er=fr();if(xe===20){if(Er===21){var Fr=fr();switch(Fr){case 38:case 58:case 18:return 1;default:return 0}}if(Er===22||Er===18)return 2;if(Er===25||e.isModifierKind(Er)&&Er!==131&&ht(Mo))return 1;if(!Qt()&&Er!==108)return 0;switch(fr()){case 58:return 1;case 57:return fr(),me()===58||me()===27||me()===63||me()===21?1:0;case 27:case 63:case 21:return 2}return 0}else{if(e.Debug.assert(xe===29),!Qt())return 0;if(ke===1){var at=ht(function(){var Ct=fr();if(Ct===94){var Xt=fr();switch(Xt){case 63:case 31:return!1;default:return!0}}else if(Ct===27)return!0;return!1});return at?1:0}return 2}}function Od(){var xe=u.getTokenPos();if(!(Xe!=null&&Xe.has(xe))){var Er=yp(!1);return Er||(Xe||(Xe=new e.Set)).add(xe),Er}}function Rd(){if(me()===131&&ht(Xp)===1){var xe=$(),Er=qc(),Fr=ed(0);return Ou(xe,Fr,Er)}}function Xp(){if(me()===131){if(fr(),u.hasPrecedingLineBreak()||me()===38)return 0;var xe=ed(0);if(!u.hasPrecedingLineBreak()&&xe.kind===79&&me()===38)return 1}return 0}function yp(xe){var Er=$(),Fr=Ne(),at=qc(),Ct=e.some(at,e.isAsyncModifier)?2:0,Xt=Co(),On;if(mt(20)){if(On=fc(Ct),!mt(21)&&!xe)return}else{if(!xe)return;On=So()}var $n=no(58,!1);if(!($n&&!xe&&Qr($n))){var wa=$n&&e.isJSDocFunctionType($n);if(!(!xe&&me()!==38&&(wa||me()!==18))){var Ea=me(),Ki=qt(38),Qo=Ea===38||Ea===18?Xl(e.some(at,e.isAsyncModifier)):_i(),$i=R.createArrowFunction(at,Xt,On,$n,Ki,Qo);return Me(rt($i,Er),Fr)}}}function Xl(xe){if(me()===18)return Dn(xe?2:0);if(me()!==26&&me()!==98&&me()!==84&&Gl()&&!qp())return Dn(16|(xe?2:0));var Er=Ae;Ae=!1;var Fr=xe?Rt(Zn):cn(Zn);return Ae=Er,Fr}function C_(xe,Er){var Fr=St(57);if(!Fr)return xe;var at;return rt(R.createConditionalExpression(xe,Fr,Jr(g,Zn),at=qt(58),e.nodeIsPresent(at)?Zn():Cn(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),Er)}function ed(xe){var Er=$(),Fr=_c();return wd(xe,Fr,Er)}function bp(xe){return xe===101||xe===159}function wd(xe,Er,Fr){for(;;){et();var at=e.getBinaryOperatorPrecedence(me()),Ct=me()===42?at>=xe:at>xe;if(!Ct||me()===101&&Or())break;if(me()===127){if(u.hasPrecedingLineBreak())break;fr(),Er=Fd(Er,_s())}else Er=Pd(Er,dn(),ed(at),Fr)}return Er}function Md(){return Or()&&me()===101?!1:e.getBinaryOperatorPrecedence(me())>0}function Pd(xe,Er,Fr,at){return rt(R.createBinaryExpression(xe,Er,Fr),at)}function Fd(xe,Er){return rt(R.createAsExpression(xe,Er),xe.pos)}function Ep(){var xe=$();return rt(R.createPrefixUnaryExpression(me(),Cr(mc)),xe)}function Yp(){var xe=$();return rt(R.createDeleteExpression(Cr(mc)),xe)}function Gd(){var xe=$();return rt(R.createTypeOfExpression(Cr(mc)),xe)}function Qp(){var xe=$();return rt(R.createVoidExpression(Cr(mc)),xe)}function Bd(){return me()===132?ye()?!0:ht(xf):!1}function fu(){var xe=$();return rt(R.createAwaitExpression(Cr(mc)),xe)}function _c(){if(ec()){var xe=$(),Er=Ud();return me()===42?wd(e.getBinaryOperatorPrecedence(me()),Er,xe):Er}var Fr=me(),at=mc();if(me()===42){var xe=e.skipTrivia(K,at.pos),Ct=at.end;at.kind===210?je(xe,Ct,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):je(xe,Ct,e.Diagnostics.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,e.tokenToString(Fr))}return at}function mc(){switch(me()){case 39:case 40:case 54:case 53:return Ep();case 89:return Yp();case 112:return Gd();case 114:return Qp();case 29:return ad();case 132:if(Bd())return fu();default:return Ud()}}function ec(){switch(me()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 132:return!1;case 29:if(ke!==1)return!1;default:return!0}}function Ud(){if(me()===45||me()===46){var xe=$();return rt(R.createPrefixUnaryExpression(me(),Cr(bf)),xe)}else if(ke===1&&me()===29&&ht(Fo))return Ef(!0);var Er=bf();if(e.Debug.assert(e.isLeftHandSideExpression(Er)),(me()===45||me()===46)&&!u.hasPrecedingLineBreak()){var Fr=me();return fr(),rt(R.createPostfixUnaryExpression(Er,Fr),Er.pos)}return Er}function bf(){var xe=$(),Er;return me()===100?ht(Lt)?(U|=1048576,Er=dn()):ht(Kt)?(fr(),fr(),Er=rt(R.createMetaProperty(100,va()),xe),U|=2097152):Er=Tp():Er=me()===106?Sp():Tp(),Tf(xe,Er)}function Tp(){var xe=$(),Er=Dl();return Fl(xe,Er,!0)}function Sp(){var xe=$(),Er=dn();if(me()===29){var Fr=$(),at=xt(id);at!==void 0&&je(Fr,$(),e.Diagnostics.super_may_not_use_type_arguments)}return me()===20||me()===24||me()===22?Er:(qt(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),rt(R.createPropertyAccessExpression(Er,ei(!0,!0)),xe))}function Ef(xe,Er,Fr){var at=$(),Ct=Ru(xe),Xt;if(Ct.kind===279){var On=rd(Ct),$n=void 0,wa=On[On.length-1];if((wa==null?void 0:wa.kind)===277&&!C(wa.openingElement.tagName,wa.closingElement.tagName)&&C(Ct.tagName,wa.closingElement.tagName)){var Ea=wa.children.end,Ki=rt(R.createJsxElement(wa.openingElement,wa.children,rt(R.createJsxClosingElement(rt(R.createIdentifier(""),Ea,Ea)),Ea,Ea)),wa.openingElement.pos,Ea);On=It(Gt(Gt([],On.slice(0,On.length-1),!0),[Ki],!1),On.pos,Ea),$n=wa.closingElement}else $n=nd(Ct,xe),C(Ct.tagName,$n.tagName)||(Fr&&e.isJsxOpeningElement(Fr)&&C($n.tagName,Fr.tagName)?Ee(Ct.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(K,Ct.tagName)):Ee($n.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(K,Ct.tagName)));Xt=rt(R.createJsxElement(Ct,On,$n),at)}else Ct.kind===282?Xt=rt(R.createJsxFragment(Ct,rd(Ct),x_(xe)),at):(e.Debug.assert(Ct.kind===278),Xt=Ct);if(xe&&me()===29){var Qo=typeof Er>"u"?Xt.pos:Er,$i=xt(function(){return Ef(!0,Qo)});if($i){var Ho=Cn(27,!1);return e.setTextRangePosWidth(Ho,$i.pos,0),je(e.skipTrivia(K,Qo),$i.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),rt(R.createBinaryExpression(Xt,Ho,$i),at)}}return Xt}function Zp(){var xe=$(),Er=R.createJsxText(u.getTokenValue(),he===12);return he=u.scanJsxToken(),rt(Er,xe)}function Vd(xe,Er){switch(Er){case 1:if(e.isJsxOpeningFragment(xe))Ee(xe,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var Fr=xe.tagName,at=e.skipTrivia(K,Fr.pos);je(at,Fr.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(K,xe.tagName))}return;case 30:case 7:return;case 11:case 12:return Zp();case 18:return Mu(!1);case 29:return Ef(!1,void 0,xe);default:return e.Debug.assertNever(Er)}}function rd(xe){var Er=[],Fr=$(),at=qe;for(qe|=16384;;){var Ct=Vd(xe,he=u.reScanJsxToken());if(!Ct||(Er.push(Ct),e.isJsxOpeningElement(xe)&&(Ct==null?void 0:Ct.kind)===277&&!C(Ct.openingElement.tagName,Ct.closingElement.tagName)&&C(xe.tagName,Ct.closingElement.tagName)))break}return qe=at,It(Er,Fr)}function td(){var xe=$();return rt(R.createJsxAttributes(Un(13,js)),xe)}function Ru(xe){var Er=$();if(mt(29),me()===31)return gt(),rt(R.createJsxOpeningFragment(),Er);var Fr=wu(),at=De&131072?void 0:gn(),Ct=td(),Xt;return me()===31?(gt(),Xt=R.createJsxOpeningElement(Fr,at,Ct)):(mt(43),mt(31,void 0,!1)&&(xe?fr():gt()),Xt=R.createJsxSelfClosingElement(Fr,at,Ct)),rt(Xt,Er)}function wu(){var xe=$();zr();for(var Er=me()===108?dn():va();en(24);)Er=rt(R.createPropertyAccessExpression(Er,ei(!0,!1)),xe);return Er}function Mu(xe){var Er=$();if(mt(18)){var Fr,at;return me()!==19&&(Fr=St(25),at=Rs()),xe?mt(19):mt(19,void 0,!1)&&gt(),rt(R.createJsxExpression(Fr,at),Er)}}function js(){if(me()===18)return gc();zr();var xe=$();return rt(R.createJsxAttribute(va(),me()!==63?void 0:vt()===10?ko():Mu(!0)),xe)}function gc(){var xe=$();mt(18),mt(25);var Er=Rs();return mt(19),rt(R.createJsxSpreadAttribute(Er),xe)}function nd(xe,Er){var Fr=$();mt(30);var at=wu();return mt(31,void 0,!1)&&(Er||!C(xe.tagName,at)?fr():gt()),rt(R.createJsxClosingElement(at),Fr)}function x_(xe){var Er=$();return mt(30),e.tokenIsIdentifierOrKeyword(me())&&Ee(wu(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),mt(31,void 0,!1)&&(xe?fr():gt()),rt(R.createJsxJsxClosingFragment(),Er)}function ad(){var xe=$();mt(29);var Er=_s();mt(31);var Fr=mc();return rt(R.createTypeAssertion(Er,Fr),xe)}function Pu(){return fr(),e.tokenIsIdentifierOrKeyword(me())||me()===22||pl()}function I_(){return me()===28&&ht(Pu)}function vc(xe){if(xe.flags&32)return!0;if(e.isNonNullExpression(xe)){for(var Er=xe.expression;e.isNonNullExpression(Er)&&!(Er.flags&32);)Er=Er.expression;if(Er.flags&32){for(;e.isNonNullExpression(xe);)xe.flags|=32,xe=xe.expression;return!0}}return!1}function Pl(xe,Er,Fr){var at=ei(!0,!0),Ct=Fr||vc(Er),Xt=Ct?R.createPropertyAccessChain(Er,Fr,at):R.createPropertyAccessExpression(Er,at);return Ct&&e.isPrivateIdentifier(Xt.name)&&Ee(Xt.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),rt(Xt,xe)}function Sl(xe,Er,Fr){var at;if(me()===23)at=Cn(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var Ct=Lr(Rs);e.isStringOrNumericLiteralLike(Ct)&&(Ct.text=Qn(Ct.text)),at=Ct}mt(23);var Xt=Fr||vc(Er)?R.createElementAccessChain(Er,Fr,at):R.createElementAccessExpression(Er,at);return rt(Xt,xe)}function Fl(xe,Er,Fr){for(;;){var at=void 0,Ct=!1;if(Fr&&I_()?(at=qt(28),Ct=e.tokenIsIdentifierOrKeyword(me())):Ct=en(24),Ct){Er=Pl(xe,Er,at);continue}if(!at&&me()===53&&!u.hasPrecedingLineBreak()){fr(),Er=rt(R.createNonNullExpression(Er),xe);continue}if((at||!sr())&&en(22)){Er=Sl(xe,Er,at);continue}if(pl()){Er=Dp(xe,Er,at,void 0);continue}return Er}}function pl(){return me()===14||me()===15}function Dp(xe,Er,Fr,at){var Ct=R.createTaggedTemplateExpression(Er,at,me()===14?(tr(),ko()):xi(!0));return(Fr||Er.flags&32)&&(Ct.flags|=32),Ct.questionDotToken=Fr,rt(Ct,xe)}function Tf(xe,Er){for(;;){Er=Fl(xe,Er,!0);var Fr=St(28);if(!(De&131072)&&(me()===29||me()===47)){var at=xt(id);if(at){if(pl()){Er=Dp(xe,Er,Fr,at);continue}var Ct=Wd(),Xt=Fr||vc(Er)?R.createCallChain(Er,Fr,at,Ct):R.createCallExpression(Er,at,Ct);Er=rt(Xt,xe);continue}}else if(me()===20){var Ct=Wd(),Xt=Fr||vc(Er)?R.createCallChain(Er,Fr,void 0,Ct):R.createCallExpression(Er,void 0,Ct);Er=rt(Xt,xe);continue}if(Fr){var On=Cn(79,!1,e.Diagnostics.Identifier_expected);Er=rt(R.createPropertyAccessChain(Er,Fr,On),xe)}break}return Er}function Wd(){mt(20);var xe=$a(11,Yl);return mt(21),xe}function id(){if(!(De&131072)&&xr()===29){fr();var xe=$a(20,_s);if(mt(31))return xe&&mo()?xe:void 0}}function mo(){switch(me()){case 20:case 14:case 15:case 24:case 21:case 23:case 58:case 26:case 57:case 34:case 36:case 35:case 37:case 55:case 56:case 60:case 52:case 50:case 51:case 19:case 1:return!0;case 27:case 18:default:return!1}}function Dl(){switch(me()){case 8:case 9:case 10:case 14:return ko();case 108:case 106:case 104:case 110:case 95:return dn();case 20:return wo();case 22:return od();case 18:return us();case 131:if(!ht(ud))break;return ii();case 84:return Vu();case 98:return ii();case 103:return sd();case 43:case 68:if(yt()===13)return ko();break;case 15:return xi(!1);case 80:return Hi()}return _i(e.Diagnostics.Expression_expected)}function wo(){var xe=$(),Er=Ne();mt(20);var Fr=Lr(Rs);return mt(21),Me(rt(R.createParenthesizedExpression(Fr),xe),Er)}function ms(){var xe=$();mt(25);var Er=Zn();return rt(R.createSpreadElement(Er),xe)}function $p(){return me()===25?ms():me()===27?rt(R.createOmittedExpression(),$()):Zn()}function Yl(){return Jr(g,$p)}function od(){var xe=$();mt(22);var Er=u.hasPrecedingLineBreak(),Fr=$a(15,$p);return mt(23),rt(R.createArrayLiteralExpression(Fr,Er),xe)}function Ln(){var xe=$(),Er=Ne();if(St(25)){var Fr=Zn();return Me(rt(R.createSpreadAssignment(Fr),xe),Er)}var at=ef(),Ct=bc();if(to(136))return du(xe,Er,at,Ct,171);if(to(148))return du(xe,Er,at,Ct,172);var Xt=St(41),On=Qt(),$n=Mi(),wa=St(57),Ea=St(53);if(Xt||me()===20||me()===29)return zd(xe,Er,at,Ct,Xt,$n,wa,Ea);var Ki,Qo=On&&me()!==58;if(Qo){var $i=St(63),Ho=$i?Lr(Zn):void 0;Ki=R.createShorthandPropertyAssignment($n,Ho),Ki.equalsToken=$i}else{mt(58);var gs=Lr(Zn);Ki=R.createPropertyAssignment($n,gs)}return Ki.decorators=at,Ki.modifiers=Ct,Ki.questionToken=wa,Ki.exclamationToken=Ea,Me(rt(Ki,xe),Er)}function us(){var xe=$(),Er=u.getTokenPos();mt(18);var Fr=u.hasPrecedingLineBreak(),at=$a(12,Ln,!0);if(!mt(19)){var Ct=e.lastOrUndefined(Pe);Ct&&Ct.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(Ct,e.createDetachedDiagnostic(Y,Er,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return rt(R.createObjectLiteralExpression(at,Fr),xe)}function ii(){var xe=sr();He(!1);var Er=$(),Fr=Ne(),at=bc();mt(98);var Ct=St(41),Xt=Ct?1:0,On=e.some(at,e.isAsyncModifier)?2:0,$n=Xt&&On?bn(Rc):Xt?lt(Rc):On?Rt(Rc):Rc(),wa=Co(),Ea=Ws(Xt|On),Ki=no(58,!1),Qo=Dn(Xt|On);He(xe);var $i=R.createFunctionExpression(at,Ct,$n,wa,Ea,Ki,Qo);return Me(rt($i,Er),Fr)}function Rc(){return wt()?Ci():void 0}function sd(){var xe=$();if(mt(103),en(24)){var Er=va();return rt(R.createMetaProperty(103,Er),xe)}for(var Fr=$(),at=Dl(),Ct;;){at=Fl(Fr,at,!1),Ct=xt(id),pl()&&(e.Debug.assert(!!Ct,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),at=Dp(Fr,at,void 0,Ct),Ct=void 0);break}var Xt;return me()===20?Xt=Wd():Ct&&je(xe,u.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list),rt(R.createNewExpression(at,Ct,Xt),xe)}function sl(xe,Er){var Fr=$(),at=Ne(),Ct=u.getTokenPos();if(mt(18,Er)||xe){var Xt=u.hasPrecedingLineBreak(),On=Un(1,Ga);if(!mt(19)){var $n=e.lastOrUndefined(Pe);$n&&$n.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo($n,e.createDetachedDiagnostic(Y,Ct,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}var wa=Me(rt(R.createBlock(On,Xt),Fr),at);return me()===63&&(or(e.Diagnostics.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_the_whole_assignment_in_parentheses),fr()),wa}else{var On=So();return Me(rt(R.createBlock(On,void 0),Fr),at)}}function Dn(xe,Er){var Fr=ir();Pr(!!(xe&1));var at=ye();pr(!!(xe&2));var Ct=Ae;Ae=!1;var Xt=sr();Xt&&He(!1);var On=sl(!!(xe&16),Er);return Xt&&He(!0),Ae=Ct,Pr(Fr),pr(at),On}function N_(){var xe=$(),Er=Ne();return mt(26),Me(rt(R.createEmptyStatement(),xe),Er)}function rs(){var xe=$(),Er=Ne();mt(99),mt(20);var Fr=Lr(Rs);mt(21);var at=Ga(),Ct=en(91)?Ga():void 0;return Me(rt(R.createIfStatement(Fr,at,Ct),xe),Er)}function fs(){var xe=$(),Er=Ne();mt(90);var Fr=Ga();mt(115),mt(20);var at=Lr(Rs);return mt(21),en(26),Me(rt(R.createDoStatement(Fr,at),xe),Er)}function wc(){var xe=$(),Er=Ne();mt(115),mt(20);var Fr=Lr(Rs);mt(21);var at=Ga();return Me(rt(R.createWhileStatement(Fr,at),xe),Er)}function Hs(){var xe=$(),Er=Ne();mt(97);var Fr=St(132);mt(20);var at;me()!==26&&(me()===113||me()===119||me()===85?at=Bl(!0):at=Yr(Rs));var Ct;if(Fr?mt(159):en(159)){var Xt=Lr(Zn);mt(21),Ct=R.createForOfStatement(Fr,at,Xt,Ga())}else if(en(101)){var Xt=Lr(Rs);mt(21),Ct=R.createForInStatement(at,Xt,Ga())}else{mt(26);var On=me()!==26&&me()!==21?Lr(Rs):void 0;mt(26);var $n=me()!==21?Lr(Rs):void 0;mt(21),Ct=R.createForStatement(at,On,$n,Ga())}return Me(rt(Ct,xe),Er)}function Sf(xe){var Er=$(),Fr=Ne();mt(xe===245?81:86);var at=pt()?void 0:_i();Mt();var Ct=xe===245?R.createBreakStatement(at):R.createContinueStatement(at);return Me(rt(Ct,Er),Fr)}function ws(){var xe=$(),Er=Ne();mt(105);var Fr=pt()?void 0:Lr(Rs);return Mt(),Me(rt(R.createReturnStatement(Fr),xe),Er)}function Mc(){var xe=$(),Er=Ne();mt(116),mt(20);var Fr=Lr(Rs);mt(21);var at=ze(16777216,Ga);return Me(rt(R.createWithStatement(Fr,at),xe),Er)}function Qu(){var xe=$();mt(82);var Er=Lr(Rs);mt(58);var Fr=Un(3,Ga);return rt(R.createCaseClause(Er,Fr),xe)}function Df(){var xe=$();mt(88),mt(58);var Er=Un(3,Ga);return rt(R.createDefaultClause(Er),xe)}function hc(){return me()===82?Qu():Df()}function Lf(){var xe=$();mt(18);var Er=Un(2,hc);return mt(19),rt(R.createCaseBlock(Er),xe)}function ll(){var xe=$(),Er=Ne();mt(107),mt(20);var Fr=Lr(Rs);mt(21);var at=Lf();return Me(rt(R.createSwitchStatement(Fr,at),xe),Er)}function e_(){var xe=$(),Er=Ne();mt(109);var Fr=u.hasPrecedingLineBreak()?void 0:Lr(Rs);return Fr===void 0&&(Le++,Fr=rt(R.createIdentifier(""),$())),_t()||sa(Fr),Me(rt(R.createThrowStatement(Fr),xe),Er)}function Fu(){var xe=$(),Er=Ne();mt(111);var Fr=sl(!1),at=me()===83?Af():void 0,Ct;return(!at||me()===96)&&(mt(96),Ct=sl(!1)),Me(rt(R.createTryStatement(Fr,at,Ct),xe),Er)}function Af(){var xe=$();mt(83);var Er;en(20)?(Er=jo(),mt(21)):Er=void 0;var Fr=sl(!1);return rt(R.createCatchClause(Er,Fr),xe)}function ld(){var xe=$(),Er=Ne();return mt(87),Mt(),Me(rt(R.createDebuggerStatement(),xe),Er)}function cd(){var xe=$(),Er=Ne(),Fr,at=me()===20,Ct=Lr(Rs);return e.isIdentifier(Ct)&&en(58)?Fr=R.createLabeledStatement(Ct,Ga()):(_t()||sa(Ct),Fr=R.createExpressionStatement(Ct),at&&(Er=!1)),Me(rt(Fr,xe),Er)}function Cf(){return fr(),e.tokenIsIdentifierOrKeyword(me())&&!u.hasPrecedingLineBreak()}function yc(){return fr(),me()===84&&!u.hasPrecedingLineBreak()}function ud(){return fr(),me()===98&&!u.hasPrecedingLineBreak()}function xf(){return fr(),(e.tokenIsIdentifierOrKeyword(me())||me()===8||me()===9||me()===10)&&!u.hasPrecedingLineBreak()}function Gu(){for(;;)switch(me()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 151:return ks();case 141:case 142:return Zu();case 126:case 131:case 135:case 121:case 122:case 123:case 144:if(fr(),u.hasPrecedingLineBreak())return!1;continue;case 156:return fr(),me()===18||me()===79||me()===93;case 100:return fr(),me()===10||me()===41||me()===18||e.tokenIsIdentifierOrKeyword(me());case 93:var xe=fr();if(xe===151&&(xe=ht(fr)),xe===63||xe===41||xe===18||xe===88||xe===127)return!0;continue;case 124:fr();continue;default:return!1}}function Js(){return ht(Gu)}function Gl(){switch(me()){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 Js()||ht(pn);case 85:case 93:return Js();case 131:case 135:case 118:case 141:case 142:case 151:case 156:return!0;case 123:case 121:case 122:case 124:case 144:return Js()||!ht(Cf);default:return dl()}}function Kc(){return fr(),wt()||me()===18||me()===22}function fd(){return ht(Kc)}function Ga(){switch(me()){case 26:return N_();case 18:return sl(!1);case 113:return nc($(),Ne(),void 0,void 0);case 119:if(fd())return nc($(),Ne(),void 0,void 0);break;case 98:return Nf($(),Ne(),void 0,void 0);case 84:return Xc($(),Ne(),void 0,void 0);case 99:return rs();case 90:return fs();case 115:return wc();case 97:return Hs();case 86:return Sf(244);case 81:return Sf(245);case 105:return ws();case 116:return Mc();case 107:return ll();case 109:return e_();case 111:case 83:case 96:return Fu();case 87:return ld();case 59:return Ts();case 131:case 118:case 151:case 141:case 142:case 135:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 124:case 144:case 156:if(Js())return Ts();break}return cd()}function wn(xe){return xe.kind===135}function Ts(){var xe=e.some(ht(function(){return ef(),bc()}),wn);if(xe){var Er=jd();if(Er)return Er}var Fr=$(),at=Ne(),Ct=ef(),Xt=bc();if(xe){for(var On=0,$n=Xt;On<$n.length;On++){var wa=$n[On];wa.flags|=8388608}return ze(8388608,function(){return rc(Fr,at,Ct,Xt)})}else return rc(Fr,at,Ct,Xt)}function jd(){return ze(8388608,function(){var xe=oe(qe);if(xe)return mr(xe)})}function rc(xe,Er,Fr,at){switch(me()){case 113:case 119:case 85:return nc(xe,Er,Fr,at);case 98:return Nf(xe,Er,Fr,at);case 84:return Xc(xe,Er,Fr,at);case 118:return Zd(xe,Er,Fr,at);case 151:return Pc(xe,Er,Fr,at);case 92:return k_(xe,Er,Fr,at);case 156:case 141:case 142:return Ap(xe,Er,Fr,at);case 100:return Mf(xe,Er,Fr,at);case 93:switch(fr(),me()){case 88:case 63:return $c(xe,Er,Fr,at);case 127:return Qc(xe,Er,Fr,at);default:return Zc(xe,Er,Fr,at)}default:if(Fr||at){var Ct=Cn(275,!0,e.Diagnostics.Declaration_expected);return e.setTextRangePos(Ct,xe),Ct.decorators=Fr,Ct.modifiers=at,Ct}return}}function Zu(){return fr(),!u.hasPrecedingLineBreak()&&(Qt()||me()===10)}function zc(xe,Er){if(me()!==18&&pt()){Mt();return}return Dn(xe,Er)}function Hd(){var xe=$();if(me()===27)return rt(R.createOmittedExpression(),xe);var Er=St(25),Fr=Qs(),at=Ja();return rt(R.createBindingElement(Er,void 0,Fr,at),xe)}function Ll(){var xe=$(),Er=St(25),Fr=wt(),at=Mi(),Ct;Fr&&me()!==58?(Ct=at,at=void 0):(mt(58),Ct=Qs());var Xt=Ja();return rt(R.createBindingElement(Er,at,Ct,Xt),xe)}function tc(){var xe=$();mt(18);var Er=$a(9,Ll);return mt(19),rt(R.createObjectBindingPattern(Er),xe)}function If(){var xe=$();mt(22);var Er=$a(10,Hd);return mt(23),rt(R.createArrayBindingPattern(Er),xe)}function $u(){return me()===18||me()===22||me()===80||wt()}function Qs(xe){return me()===22?If():me()===18?tc():Ci(xe)}function Jd(){return jo(!0)}function jo(xe){var Er=$(),Fr=Ne(),at=Qs(e.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations),Ct;xe&&at.kind===79&&me()===53&&!u.hasPrecedingLineBreak()&&(Ct=dn());var Xt=Jc(),On=bp(me())?void 0:Ja(),$n=R.createVariableDeclaration(at,Ct,Xt,On);return Me(rt($n,Er),Fr)}function Bl(xe){var Er=$(),Fr=0;switch(me()){case 113:break;case 119:Fr|=1;break;case 85:Fr|=2;break;default:e.Debug.fail()}fr();var at;if(me()===159&&ht(Kd))at=So();else{var Ct=Or();Sr(xe),at=$a(8,xe?jo:Jd),Sr(Ct)}return rt(R.createVariableDeclarationList(at,Fr),Er)}function Kd(){return Mo()&&fr()===21}function nc(xe,Er,Fr,at){var Ct=Bl(!1);Mt();var Xt=R.createVariableStatement(at,Ct);return Xt.decorators=Fr,Me(rt(Xt,xe),Er)}function Nf(xe,Er,Fr,at){var Ct=ye(),Xt=e.modifiersToFlags(at);mt(98);var On=St(41),$n=Xt&512?Rc():Ci(),wa=On?1:0,Ea=Xt&256?2:0,Ki=Co();Xt&1&&pr(!0);var Qo=Ws(wa|Ea),$i=no(58,!1),Ho=zc(wa|Ea,e.Diagnostics.or_expected);pr(Ct);var gs=R.createFunctionDeclaration(Fr,at,On,$n,Ki,Qo,$i,Ho);return Me(rt(gs,xe),Er)}function Bu(){if(me()===134)return mt(134);if(me()===10&&ht(fr)===20)return xt(function(){var xe=ko();return xe.text==="constructor"?xe:void 0})}function dd(xe,Er,Fr,at){return xt(function(){if(Bu()){var Ct=Co(),Xt=Ws(0),On=no(58,!1),$n=zc(0,e.Diagnostics.or_expected),wa=R.createConstructorDeclaration(Fr,at,Xt,$n);return wa.typeParameters=Ct,wa.type=On,Me(rt(wa,xe),Er)}})}function zd(xe,Er,Fr,at,Ct,Xt,On,$n,wa){var Ea=Ct?1:0,Ki=e.some(at,e.isAsyncModifier)?2:0,Qo=Co(),$i=Ws(Ea|Ki),Ho=no(58,!1),gs=zc(Ea|Ki,wa),_l=R.createMethodDeclaration(Fr,at,Ct,Xt,On,Qo,$i,Ho,gs);return _l.exclamationToken=$n,Me(rt(_l,xe),Er)}function Al(xe,Er,Fr,at,Ct,Xt){var On=!Xt&&!u.hasPrecedingLineBreak()?St(53):void 0,$n=Jc(),wa=Jr(45056,Ja);na(Ct,$n,wa);var Ea=R.createPropertyDeclaration(Fr,at,Ct,Xt||On,$n,wa);return Me(rt(Ea,xe),Er)}function ts(xe,Er,Fr,at){var Ct=St(41),Xt=Mi(),On=St(57);return Ct||me()===20||me()===29?zd(xe,Er,Fr,at,Ct,Xt,On,void 0,e.Diagnostics.or_expected):Al(xe,Er,Fr,at,Xt,On)}function du(xe,Er,Fr,at,Ct){var Xt=Mi(),On=Co(),$n=Ws(0),wa=no(58,!1),Ea=zc(0),Ki=Ct===171?R.createGetAccessorDeclaration(Fr,at,Xt,$n,wa,Ea):R.createSetAccessorDeclaration(Fr,at,Xt,$n,Ea);return Ki.typeParameters=On,wa&&Ki.kind===172&&(Ki.type=wa),Me(rt(Ki,xe),Er)}function qd(){var xe;if(me()===59)return!0;for(;e.isModifierKind(me());){if(xe=me(),e.isClassMemberModifier(xe))return!0;fr()}if(me()===41||(yi()&&(xe=me(),fr()),me()===22))return!0;if(xe!==void 0){if(!e.isKeyword(xe)||xe===148||xe===136)return!0;switch(me()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return pt()}}return!1}function ac(xe,Er,Fr,at){qt(124);var Ct=kf();return Me(rt(R.createClassStaticBlockDeclaration(Fr,at,Ct),xe),Er)}function kf(){var xe=ir(),Er=ye();Pr(!1),pr(!0);var Fr=sl(!1);return Pr(xe),pr(Er),Fr}function Uu(){if(ye()&&me()===132){var xe=$(),Er=_i(e.Diagnostics.Expression_expected);fr();var Fr=Fl(xe,Er,!0);return Tf(xe,Fr)}return bf()}function Xd(){var xe=$();if(en(59)){var Er=tt(Uu);return rt(R.createDecorator(Er),xe)}}function ef(){for(var xe=$(),Er,Fr;Fr=Xd();)Er=e.append(Er,Fr);return Er&&It(Er,xe)}function Of(xe,Er,Fr){var at=$(),Ct=me();if(me()===85&&xe){if(!xt(No))return}else{if(Er&&me()===124&&ht(_d))return;if(Fr&&me()===124)return;if(!Yo())return}return rt(R.createToken(Ct),at)}function bc(xe,Er){for(var Fr=$(),at,Ct,Xt=!1;Ct=Of(xe,Er,Xt);)Ct.kind===124&&(Xt=!0),at=e.append(at,Ct);return at&&It(at,Fr)}function qc(){var xe;if(me()===131){var Er=$();fr();var Fr=rt(R.createToken(131),Er);xe=It([Fr],Er)}return xe}function rf(){var xe=$();if(me()===26)return fr(),rt(R.createSemicolonClassElement(),xe);var Er=Ne(),Fr=ef(),at=bc(!0,!0);if(me()===124&&ht(_d))return ac(xe,Er,Fr,at);if(to(136))return du(xe,Er,Fr,at,171);if(to(148))return du(xe,Er,Fr,at,172);if(me()===134||me()===10){var Ct=dd(xe,Er,Fr,at);if(Ct)return Ct}if(La())return dc(xe,Er,Fr,at);if(e.tokenIsIdentifierOrKeyword(me())||me()===10||me()===8||me()===41||me()===22){var Xt=e.some(at,wn);if(Xt){for(var On=0,$n=at;On<$n.length;On++){var wa=$n[On];wa.flags|=8388608}return ze(8388608,function(){return ts(xe,Er,Fr,at)})}else return ts(xe,Er,Fr,at)}if(Fr||at){var Ea=Cn(79,!0,e.Diagnostics.Declaration_expected);return Al(xe,Er,Fr,at,Ea,void 0)}return e.Debug.fail("Should not have attempted to parse class member declaration.")}function Vu(){return Yd($(),Ne(),void 0,void 0,225)}function Xc(xe,Er,Fr,at){return Yd(xe,Er,Fr,at,256)}function Yd(xe,Er,Fr,at,Ct){var Xt=ye();mt(84);var On=Ec(),$n=Co();e.some(at,e.isExportModifier)&&pr(!0);var wa=r_(),Ea;mt(18)?(Ea=Qd(),mt(19)):Ea=So(),pr(Xt);var Ki=Ct===256?R.createClassDeclaration(Fr,at,On,$n,wa,Ea):R.createClassExpression(Fr,at,On,$n,wa,Ea);return Me(rt(Ki,xe),Er)}function Ec(){return wt()&&!Wu()?Ra(wt()):void 0}function Wu(){return me()===117&&ht(Po)}function r_(){if(Rf())return Un(22,Wa)}function Wa(){var xe=$(),Er=me();e.Debug.assert(Er===94||Er===117),fr();var Fr=$a(7,pu);return rt(R.createHeritageClause(Er,Fr),xe)}function pu(){var xe=$(),Er=bf(),Fr=gn();return rt(R.createExpressionWithTypeArguments(Er,Fr),xe)}function gn(){return me()===29?bt(20,_s,29,31):void 0}function Rf(){return me()===94||me()===117}function Qd(){return Un(5,rf)}function Zd(xe,Er,Fr,at){mt(118);var Ct=_i(),Xt=Co(),On=r_(),$n=kn(),wa=R.createInterfaceDeclaration(Fr,at,Ct,Xt,On,$n);return Me(rt(wa,xe),Er)}function Pc(xe,Er,Fr,at){mt(151);var Ct=_i(),Xt=Co();mt(63);var On=me()===138&&xt(Ta)||_s();Mt();var $n=R.createTypeAliasDeclaration(Fr,at,Ct,Xt,On);return Me(rt($n,xe),Er)}function $d(){var xe=$(),Er=Ne(),Fr=Mi(),at=Lr(Ja);return Me(rt(R.createEnumMember(Fr,at),xe),Er)}function k_(xe,Er,Fr,at){mt(92);var Ct=_i(),Xt;mt(18)?(Xt=In(function(){return $a(6,$d)}),mt(19)):Xt=So();var On=R.createEnumDeclaration(Fr,at,Ct,Xt);return Me(rt(On,xe),Er)}function Yc(){var xe=$(),Er;return mt(18)?(Er=Un(1,Ga),mt(19)):Er=So(),rt(R.createModuleBlock(Er),xe)}function Lp(xe,Er,Fr,at,Ct){var Xt=Ct&16,On=_i(),$n=en(24)?Lp($(),!1,void 0,void 0,4|Xt):Yc(),wa=R.createModuleDeclaration(Fr,at,On,$n,Ct);return Me(rt(wa,xe),Er)}function pd(xe,Er,Fr,at){var Ct=0,Xt;me()===156?(Xt=_i(),Ct|=1024):(Xt=ko(),Xt.text=Qn(Xt.text));var On;me()===18?On=Yc():Mt();var $n=R.createModuleDeclaration(Fr,at,Xt,On,Ct);return Me(rt($n,xe),Er)}function Ap(xe,Er,Fr,at){var Ct=0;if(me()===156)return pd(xe,Er,Fr,at);if(en(142))Ct|=16;else if(mt(141),me()===10)return pd(xe,Er,Fr,at);return Lp(xe,Er,Fr,at,Ct)}function Ul(){return me()===145&&ht(wf)}function wf(){return fr()===20}function _d(){return fr()===18}function Fc(){return fr()===43}function Qc(xe,Er,Fr,at){mt(127),mt(142);var Ct=_i();Mt();var Xt=R.createNamespaceExportDeclaration(Ct);return Xt.decorators=Fr,Xt.modifiers=at,Me(rt(Xt,xe),Er)}function Mf(xe,Er,Fr,at){mt(100);var Ct=u.getStartPos(),Xt;Qt()&&(Xt=_i());var On=!1;if(me()!==155&&(Xt==null?void 0:Xt.escapedText)==="type"&&(Qt()||nt())&&(On=!0,Xt=Qt()?_i():void 0),Xt&&!Ot())return fa(xe,Er,Fr,at,Xt,On);var $n;(Xt||me()===41||me()===18)&&($n=Oa(Xt,Ct,On),mt(155));var wa=Na(),Ea;me()===129&&!u.hasPrecedingLineBreak()&&(Ea=Qe()),Mt();var Ki=R.createImportDeclaration(Fr,at,$n,wa,Ea);return Me(rt(Ki,xe),Er)}function E(){var xe=$(),Er=e.tokenIsIdentifierOrKeyword(me())?va():Rr(10);mt(58);var Fr=Rr(10);return rt(R.createAssertEntry(Er,Fr),xe)}function Qe(){var xe=$();mt(129);var Er=u.getTokenPos();if(mt(18)){var Fr=u.hasPrecedingLineBreak(),at=$a(24,E,!0);if(!mt(19)){var Ct=e.lastOrUndefined(Pe);Ct&&Ct.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(Ct,e.createDetachedDiagnostic(Y,Er,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return rt(R.createAssertClause(at,Fr),xe)}else{var at=It([],$(),void 0,!1);return rt(R.createAssertClause(at,!1),xe)}}function nt(){return me()===41||me()===18}function Ot(){return me()===27||me()===155}function fa(xe,Er,Fr,at,Ct,Xt){mt(63);var On=ia();Mt();var $n=R.createImportEqualsDeclaration(Fr,at,Xt,Ct,On),wa=Me(rt($n,xe),Er);return wa}function Oa(xe,Er,Fr){var at;return(!xe||en(27))&&(at=me()===41?Ua():Go(268)),rt(R.createImportClause(Fr,xe,at),Er)}function ia(){return Ul()?ti():Pn(!1)}function ti(){var xe=$();mt(145),mt(20);var Er=Na();return mt(21),rt(R.createExternalModuleReference(Er),xe)}function Na(){if(me()===10){var xe=ko();return xe.text=Qn(xe.text),xe}else return Rs()}function Ua(){var xe=$();mt(41),mt(127);var Er=_i();return rt(R.createNamespaceImport(Er),xe)}function Go(xe){var Er=$(),Fr=xe===268?R.createNamedImports(bt(23,os,18,19)):R.createNamedExports(bt(23,cl,18,19));return rt(Fr,Er)}function cl(){return is(274)}function os(){return is(269)}function is(xe){var Er=$(),Fr=e.isKeyword(me())&&!Qt(),at=u.getTokenPos(),Ct=u.getTextPos(),Xt=!1,On,$n=!0,wa=va();if(wa.escapedText==="type")if(me()===127){var Ea=va();if(me()===127){var Ki=va();e.tokenIsIdentifierOrKeyword(me())?(Xt=!0,On=Ea,wa=$i(),$n=!1):(On=wa,wa=Ki,$n=!1)}else e.tokenIsIdentifierOrKeyword(me())?(On=wa,$n=!1,wa=$i()):(Xt=!0,wa=Ea)}else e.tokenIsIdentifierOrKeyword(me())&&(Xt=!0,wa=$i());$n&&me()===127&&(On=wa,mt(127),wa=$i()),xe===269&&Fr&&je(at,Ct,e.Diagnostics.Identifier_expected);var Qo=xe===269?R.createImportSpecifier(Xt,On,wa):R.createExportSpecifier(Xt,On,wa);return rt(Qo,Er);function $i(){return Fr=e.isKeyword(me())&&!Qt(),at=u.getTokenPos(),Ct=u.getTextPos(),va()}}function Vl(xe){return rt(R.createNamespaceExport(va()),xe)}function Zc(xe,Er,Fr,at){var Ct=ye();pr(!0);var Xt,On,$n,wa=en(151),Ea=$();en(41)?(en(127)&&(Xt=Vl(Ea)),mt(155),On=Na()):(Xt=Go(272),(me()===155||me()===10&&!u.hasPrecedingLineBreak())&&(mt(155),On=Na())),On&&me()===129&&!u.hasPrecedingLineBreak()&&($n=Qe()),Mt(),pr(Ct);var Ki=R.createExportDeclaration(Fr,at,wa,Xt,On,$n);return Me(rt(Ki,xe),Er)}function $c(xe,Er,Fr,at){var Ct=ye();pr(!0);var Xt;en(63)?Xt=!0:mt(88);var On=Zn();Mt(),pr(Ct);var $n=R.createExportAssignment(Fr,at,Xt,On);return Me(rt($n,xe),Er)}function md(xe){xe.externalModuleIndicator=e.forEach(xe.statements,t_)||tf(xe)}function t_(xe){return n_(xe,93)||e.isImportEqualsDeclaration(xe)&&e.isExternalModuleReference(xe.moduleReference)||e.isImportDeclaration(xe)||e.isExportAssignment(xe)||e.isExportDeclaration(xe)?xe:void 0}function tf(xe){return xe.flags&2097152?Pf(xe):void 0}function Pf(xe){return gd(xe)?xe:z(xe,Pf)}function n_(xe,Er){return e.some(xe.modifiers,function(Fr){return Fr.kind===Er})}function gd(xe){return e.isMetaProperty(xe)&&xe.keywordToken===100&&xe.name.escapedText==="meta"}var Wl;(function(xe){xe[xe.SourceElements=0]="SourceElements",xe[xe.BlockStatements=1]="BlockStatements",xe[xe.SwitchClauses=2]="SwitchClauses",xe[xe.SwitchClauseStatements=3]="SwitchClauseStatements",xe[xe.TypeMembers=4]="TypeMembers",xe[xe.ClassMembers=5]="ClassMembers",xe[xe.EnumMembers=6]="EnumMembers",xe[xe.HeritageClauseElement=7]="HeritageClauseElement",xe[xe.VariableDeclarations=8]="VariableDeclarations",xe[xe.ObjectBindingElements=9]="ObjectBindingElements",xe[xe.ArrayBindingElements=10]="ArrayBindingElements",xe[xe.ArgumentExpressions=11]="ArgumentExpressions",xe[xe.ObjectLiteralMembers=12]="ObjectLiteralMembers",xe[xe.JsxAttributes=13]="JsxAttributes",xe[xe.JsxChildren=14]="JsxChildren",xe[xe.ArrayLiteralMembers=15]="ArrayLiteralMembers",xe[xe.Parameters=16]="Parameters",xe[xe.JSDocParameters=17]="JSDocParameters",xe[xe.RestProperties=18]="RestProperties",xe[xe.TypeParameters=19]="TypeParameters",xe[xe.TypeArguments=20]="TypeArguments",xe[xe.TupleElementTypes=21]="TupleElementTypes",xe[xe.HeritageClauses=22]="HeritageClauses",xe[xe.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",xe[xe.AssertEntries=24]="AssertEntries",xe[xe.Count=25]="Count"})(Wl||(Wl={}));var ep;(function(xe){xe[xe.False=0]="False",xe[xe.True=1]="True",xe[xe.Unknown=2]="Unknown"})(ep||(ep={}));var a_;(function(xe){function Er(Ea,Ki,Qo){Ar("file.js",Ea,99,void 0,1),u.setText(Ea,Ki,Qo),he=u.scan();var $i=Fr(),Ho=Fe("file.js",99,1,!1,[],R.createToken(1),0),gs=e.attachFileToDiagnostics(Pe,Ho);return Ie&&(Ho.jsDocDiagnostics=e.attachFileToDiagnostics(Ie,Ho)),kr(),$i?{jsDocTypeExpression:$i,diagnostics:gs}:void 0}xe.parseJSDocTypeExpressionForTests=Er;function Fr(Ea){var Ki=$(),Qo=(Ea?en:mt)(18),$i=ze(4194304,Us);(!Ea||Qo)&&Wn(19);var Ho=R.createJSDocTypeExpression($i);return de(Ho),rt(Ho,Ki)}xe.parseJSDocTypeExpression=Fr;function at(){for(var Ea=$(),Ki=en(18),Qo=$(),$i=Pn(!1);me()===80;)Nr(),dr(),$i=rt(R.createJSDocMemberName($i,_i()),Qo);Ki&&Wn(19);var Ho=R.createJSDocNameReference($i);return de(Ho),rt(Ho,Ea)}xe.parseJSDocNameReference=at;function Ct(Ea,Ki,Qo){Ar("",Ea,99,void 0,1);var $i=ze(4194304,function(){return wa(Ki,Qo)}),Ho={languageVariant:0,text:Ea},gs=e.attachFileToDiagnostics(Pe,Ho);return kr(),$i?{jsDoc:$i,diagnostics:gs}:void 0}xe.parseIsolatedJSDocComment=Ct;function Xt(Ea,Ki,Qo){var $i=he,Ho=Pe.length,gs=Ye,_l=ze(4194304,function(){return wa(Ki,Qo)});return e.setParent(_l,Ea),De&131072&&(Ie||(Ie=[]),Ie.push.apply(Ie,Pe)),he=$i,Pe.length=Ho,Ye=gs,_l}xe.parseJSDocComment=Xt;var On;(function(Ea){Ea[Ea.BeginningOfLine=0]="BeginningOfLine",Ea[Ea.SawAsterisk=1]="SawAsterisk",Ea[Ea.SavingComments=2]="SavingComments",Ea[Ea.SavingBackticks=3]="SavingBackticks"})(On||(On={}));var $n;(function(Ea){Ea[Ea.Property=1]="Property",Ea[Ea.Parameter=2]="Parameter",Ea[Ea.CallbackParameter=4]="CallbackParameter"})($n||($n={}));function wa(Ea,Ki){Ea===void 0&&(Ea=0);var Qo=K,$i=Ki===void 0?Qo.length:Ea+Ki;if(Ki=$i-Ea,e.Debug.assert(Ea>=0),e.Debug.assert(Ea<=$i),e.Debug.assert($i<=Qo.length),!A(Qo,Ea))return;var Ho,gs,_l,xs,Cl,bl=[],ju=[];return u.scanRange(Ea+3,Ki-5,function(){var un=1,pa,Hn=Ea-(Qo.lastIndexOf(`
  226. `,Ea)+1)+4;function Sa(vl){pa||(pa=Hn),bl.push(vl),Hn+=vl.length}for(dr();xp(5););xp(4)&&(un=0,Hn=0);e:for(;;){switch(me()){case 59:un===0||un===1?(Ms(bl),Cl||(Cl=$()),si(_(Hn)),un=0,pa=void 0):Sa(u.getTokenText());break;case 4:bl.push(u.getTokenText()),un=0,Hn=0;break;case 41:var Za=u.getTokenText();un===1||un===2?(un=2,Sa(Za)):(un=1,Hn+=Za.length);break;case 5:var zi=u.getTokenText();un===2?bl.push(zi):pa!==void 0&&Hn+zi.length>pa&&bl.push(zi.slice(pa-Hn)),Hn+=zi.length;break;case 1:break e;case 18:un=2;var Bo=u.getStartPos(),Zs=u.getTextPos()-1,gl=Br(Zs);if(gl){xs||ul(bl),ju.push(rt(R.createJSDocText(bl.join("")),xs??Ea,Bo)),ju.push(gl),bl=[],xs=u.getTextPos();break}default:un=2,Sa(u.getTokenText());break}dr()}Ms(bl),ju.length&&bl.length&&ju.push(rt(R.createJSDocText(bl.join("")),xs??Ea,Cl)),ju.length&&Ho&&e.Debug.assertIsDefined(Cl,"having parsed tags implies that the end of the comment span should be set");var jl=Ho&&It(Ho,gs,_l);return rt(R.createJSDocComment(ju.length?It(ju,Ea,Cl):bl.length?bl.join(""):void 0,jl),Ea,$i)});function ul(un){for(;un.length&&(un[0]===`
  227. `||un[0]==="\r");)un.shift()}function Ms(un){for(;un.length&&un[un.length-1].trim()==="";)un.pop()}function Ff(){for(;;){if(dr(),me()===1)return!0;if(!(me()===5||me()===4))return!1}}function _u(){if(!((me()===5||me()===4)&&ht(Ff)))for(;me()===5||me()===4;)dr()}function ml(){if((me()===5||me()===4)&&ht(Ff))return"";for(var un=u.hasPrecedingLineBreak(),pa=!1,Hn="";un&&me()===41||me()===5||me()===4;)Hn+=u.getTokenText(),me()===4?(un=!0,pa=!0,Hn=""):me()===41&&(un=!1),dr();return pa?Hn:""}function _(un){e.Debug.assert(me()===59);var pa=u.getTokenPos();dr();var Hn=Ku(void 0),Sa=ml(),Za;switch(Hn.escapedText){case"author":Za=An(pa,Hn,un,Sa);break;case"implements":Za=nf(pa,Hn,un,Sa);break;case"augments":case"extends":Za=O_(pa,Hn,un,Sa);break;case"class":case"constructor":Za=Hu(pa,R.createJSDocClassTag,Hn,un,Sa);break;case"public":Za=Hu(pa,R.createJSDocPublicTag,Hn,un,Sa);break;case"private":Za=Hu(pa,R.createJSDocPrivateTag,Hn,un,Sa);break;case"protected":Za=Hu(pa,R.createJSDocProtectedTag,Hn,un,Sa);break;case"readonly":Za=Hu(pa,R.createJSDocReadonlyTag,Hn,un,Sa);break;case"override":Za=Hu(pa,R.createJSDocOverrideTag,Hn,un,Sa);break;case"deprecated":Hr=!0,Za=Hu(pa,R.createJSDocDeprecatedTag,Hn,un,Sa);break;case"this":Za=rm(pa,Hn,un,Sa);break;case"enum":Za=mu(pa,Hn,un,Sa);break;case"arg":case"argument":case"param":return Gc(pa,Hn,2,un);case"return":case"returns":Za=tp(pa,Hn,un,Sa);break;case"template":Za=Mg(pa,Hn,un,Sa);break;case"type":Za=Fm(pa,Hn,un,Sa);break;case"typedef":Za=Pv(pa,Hn,un,Sa);break;case"callback":Za=o_(pa,Hn,un,Sa);break;case"see":Za=Mv(pa,Hn,un,Sa);break;default:Za=an(pa,Hn,un,Sa);break}return Za}function W(un,pa,Hn,Sa){return Sa||(Hn+=pa-un),be(Hn,Sa.slice(Hn))}function be(un,pa){var Hn=$(),Sa=[],Za=[],zi,Bo=0,Zs=!0,gl;function jl(nm){gl||(gl=un),Sa.push(nm),un+=nm.length}pa!==void 0&&(pa!==""&&jl(pa),Bo=1);var vl=me();e:for(;;){switch(vl){case 4:Bo=0,Sa.push(u.getTokenText()),un=0;break;case 59:if(Bo===3||Bo===2&&(!Zs||ht(nr))){Sa.push(u.getTokenText());break}u.setTextPos(u.getTextPos()-1);case 1:break e;case 5:if(Bo===2||Bo===3)jl(u.getTokenText());else{var Bf=u.getTokenText();gl!==void 0&&un+Bf.length>gl&&Sa.push(Bf.slice(gl-un)),un+=Bf.length}break;case 18:Bo=2;var po=u.getStartPos(),s_=u.getTextPos()-1,np=Br(s_);np?(Za.push(rt(R.createJSDocText(Sa.join("")),zi??Hn,po)),Za.push(np),Sa=[],zi=u.getTextPos()):jl(u.getTokenText());break;case 61:Bo===3?Bo=2:Bo=3,jl(u.getTokenText());break;case 41:if(Bo===0){Bo=1,un+=1;break}default:Bo!==3&&(Bo=2),jl(u.getTokenText());break}Zs=me()===5,vl=dr()}if(ul(Sa),Ms(Sa),Za.length)return Sa.length&&Za.push(rt(R.createJSDocText(Sa.join("")),zi??Hn)),It(Za,Hn,u.getTextPos());if(Sa.length)return Sa.join("")}function nr(){var un=dr();return un===5||un===4}function Br(un){var pa=xt(Ht);if(pa){dr(),_u();var Hn=$(),Sa=e.tokenIsIdentifierOrKeyword(me())?Pn(!0):void 0;if(Sa)for(;me()===80;)Nr(),dr(),Sa=rt(R.createJSDocMemberName(Sa,_i()),Hn);for(var Za=[];me()!==19&&me()!==4&&me()!==1;)Za.push(u.getTokenText()),dr();var zi=pa==="link"?R.createJSDocLink:pa==="linkcode"?R.createJSDocLinkCode:R.createJSDocLinkPlain;return rt(zi(Sa,Za.join("")),un,u.getTextPos())}}function Ht(){if(ml(),me()===18&&dr()===59&&e.tokenIsIdentifierOrKeyword(dr())){var un=u.getTokenValue();if(un==="link"||un==="linkcode"||un==="linkplain")return un}}function an(un,pa,Hn,Sa){return rt(R.createJSDocUnknownTag(pa,W(un,$(),Hn,Sa)),un)}function si(un){un&&(Ho?Ho.push(un):(Ho=[un],gs=un.pos),_l=un.end)}function Io(){return ml(),me()===18?Fr():void 0}function vs(){var un=xp(22);un&&_u();var pa=xp(61),Hn=Pg();return pa&&Mn(61),un&&(_u(),St(63)&&Rs(),mt(23)),{name:Hn,isBracketed:un}}function rp(un){switch(un.kind){case 147:return!0;case 182:return rp(un.elementType);default:return e.isTypeReferenceNode(un)&&e.isIdentifier(un.typeName)&&un.typeName.escapedText==="Object"&&!un.typeArguments}}function Gc(un,pa,Hn,Sa){var Za=Io(),zi=!Za;ml();var Bo=vs(),Zs=Bo.name,gl=Bo.isBracketed,jl=ml();zi&&!ht(Ht)&&(Za=Io());var vl=W(un,$(),Sa,jl),Bf=Hn!==4&&Pm(Za,Zs,Hn,Sa);Bf&&(Za=Bf,zi=!0);var po=Hn===1?R.createJSDocPropertyTag(pa,Zs,gl,Za,zi,vl):R.createJSDocParameterTag(pa,Zs,gl,Za,zi,vl);return rt(po,un)}function Pm(un,pa,Hn,Sa){if(un&&rp(un.type)){for(var Za=$(),zi=void 0,Bo=void 0;zi=xt(function(){return Ju(Hn,Sa,pa)});)(zi.kind===338||zi.kind===345)&&(Bo=e.append(Bo,zi));if(Bo){var Zs=rt(R.createJSDocTypeLiteral(Bo,un.type.kind===182),Za);return rt(R.createJSDocTypeExpression(Zs),Za)}}}function tp(un,pa,Hn,Sa){e.some(Ho,e.isJSDocReturnTag)&&je(pa.pos,u.getTokenPos(),e.Diagnostics._0_tag_already_specified,pa.escapedText);var Za=Io();return rt(R.createJSDocReturnTag(pa,Za,W(un,$(),Hn,Sa)),un)}function Fm(un,pa,Hn,Sa){e.some(Ho,e.isJSDocTypeTag)&&je(pa.pos,u.getTokenPos(),e.Diagnostics._0_tag_already_specified,pa.escapedText);var Za=Fr(!0),zi=Hn!==void 0&&Sa!==void 0?W(un,$(),Hn,Sa):void 0;return rt(R.createJSDocTypeTag(pa,Za,zi),un)}function Mv(un,pa,Hn,Sa){var Za=me()===22||ht(function(){return dr()===59&&e.tokenIsIdentifierOrKeyword(dr())&&u.getTokenValue()==="link"}),zi=Za?void 0:at(),Bo=Hn!==void 0&&Sa!==void 0?W(un,$(),Hn,Sa):void 0;return rt(R.createJSDocSeeTag(pa,zi,Bo),un)}function An(un,pa,Hn,Sa){var Za=$(),zi=Gf(),Bo=u.getStartPos(),Zs=W(un,Bo,Hn,Sa);Zs||(Bo=u.getStartPos());var gl=typeof Zs!="string"?It(e.concatenate([rt(zi,Za,Bo)],Zs),Za):zi.text+Zs;return rt(R.createJSDocAuthorTag(pa,gl),un)}function Gf(){for(var un=[],pa=!1,Hn=u.getToken();Hn!==1&&Hn!==4;){if(Hn===29)pa=!0;else{if(Hn===59&&!pa)break;if(Hn===31&&pa){un.push(u.getTokenText()),u.setTextPos(u.getTokenPos()+1);break}}un.push(u.getTokenText()),Hn=dr()}return R.createJSDocText(un.join(""))}function nf(un,pa,Hn,Sa){var Za=Cp();return rt(R.createJSDocImplementsTag(pa,Za,W(un,$(),Hn,Sa)),un)}function O_(un,pa,Hn,Sa){var Za=Cp();return rt(R.createJSDocAugmentsTag(pa,Za,W(un,$(),Hn,Sa)),un)}function Cp(){var un=en(18),pa=$(),Hn=Gm(),Sa=gn(),Za=R.createExpressionWithTypeArguments(Hn,Sa),zi=rt(Za,pa);return un&&mt(19),zi}function Gm(){for(var un=$(),pa=Ku();en(24);){var Hn=Ku();pa=rt(R.createPropertyAccessExpression(pa,Hn),un)}return pa}function Hu(un,pa,Hn,Sa,Za){return rt(pa(Hn,W(un,$(),Sa,Za)),un)}function rm(un,pa,Hn,Sa){var Za=Fr(!0);return _u(),rt(R.createJSDocThisTag(pa,Za,W(un,$(),Hn,Sa)),un)}function mu(un,pa,Hn,Sa){var Za=Fr(!0);return _u(),rt(R.createJSDocEnumTag(pa,Za,W(un,$(),Hn,Sa)),un)}function Pv(un,pa,Hn,Sa){var Za,zi=Io();ml();var Bo=i_();_u();var Zs=be(Hn),gl;if(!zi||rp(zi.type)){for(var jl=void 0,vl=void 0,Bf=void 0,po=!1;jl=xt(function(){return Bm(Hn)});)if(po=!0,jl.kind===341)if(vl){or(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var s_=e.lastOrUndefined(Pe);s_&&e.addRelatedInfo(s_,e.createDetachedDiagnostic(Y,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}else vl=jl;else Bf=e.append(Bf,jl);if(po){var np=zi&&zi.type.kind===182,nm=R.createJSDocTypeLiteral(Bf,np);zi=vl&&vl.typeExpression&&!rp(vl.typeExpression.type)?vl.typeExpression:rt(nm,un),gl=zi.end}}gl=gl||Zs!==void 0?$():((Za=Bo??zi)!==null&&Za!==void 0?Za:pa).end,Zs||(Zs=W(un,gl,Hn,Sa));var am=R.createJSDocTypedefTag(pa,zi,Bo,Zs);return rt(am,un,gl)}function i_(un){var pa=u.getTokenPos();if(e.tokenIsIdentifierOrKeyword(me())){var Hn=Ku();if(en(24)){var Sa=i_(!0),Za=R.createModuleDeclaration(void 0,void 0,Hn,Sa,un?4:void 0);return rt(Za,pa)}return un&&(Hn.isInJSDocNamespace=!0),Hn}}function tm(un){for(var pa=$(),Hn,Sa;Hn=xt(function(){return Ju(4,un)});)Sa=e.append(Sa,Hn);return It(Sa||[],pa)}function o_(un,pa,Hn,Sa){var Za=i_();_u();var zi=be(Hn),Bo=tm(Hn),Zs=xt(function(){if(xp(59)){var jl=_(Hn);if(jl&&jl.kind===339)return jl}}),gl=rt(R.createJSDocSignature(void 0,Bo,Zs),un);return zi||(zi=W(un,$(),Hn,Sa)),rt(R.createJSDocCallbackTag(pa,gl,Za,zi),un)}function vd(un,pa){for(;!e.isIdentifier(un)||!e.isIdentifier(pa);)if(!e.isIdentifier(un)&&!e.isIdentifier(pa)&&un.right.escapedText===pa.right.escapedText)un=un.left,pa=pa.left;else return!1;return un.escapedText===pa.escapedText}function Bm(un){return Ju(1,un)}function Ju(un,pa,Hn){for(var Sa=!0,Za=!1;;)switch(dr()){case 59:if(Sa){var zi=Fv(un,pa);return zi&&(zi.kind===338||zi.kind===345)&&un!==4&&Hn&&(e.isIdentifier(zi.name)||!vd(Hn,zi.name.left))?!1:zi}Za=!1;break;case 4:Sa=!0,Za=!1;break;case 41:Za&&(Sa=!1),Za=!0;break;case 79:Sa=!1;break;case 1:return!1}}function Fv(un,pa){e.Debug.assert(me()===59);var Hn=u.getStartPos();dr();var Sa=Ku();_u();var Za;switch(Sa.escapedText){case"type":return un===1&&Fm(Hn,Sa);case"prop":case"property":Za=1;break;case"arg":case"argument":case"param":Za=6;break;default:return!1}return un&Za?Gc(Hn,Sa,un,pa):!1}function wg(){var un=$(),pa=xp(22);pa&&_u();var Hn=Ku(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Sa;if(pa&&(_u(),mt(63),Sa=ze(4194304,Us),mt(23)),!e.nodeIsMissing(Hn))return rt(R.createTypeParameterDeclaration(Hn,void 0,Sa),un)}function xl(){var un=$(),pa=[];do{_u();var Hn=wg();Hn!==void 0&&pa.push(Hn),ml()}while(xp(27));return It(pa,un)}function Mg(un,pa,Hn,Sa){var Za=me()===18?Fr():void 0,zi=xl();return rt(R.createJSDocTemplateTag(pa,Za,zi,W(un,$(),Hn,Sa)),un)}function xp(un){return me()===un?(dr(),!0):!1}function Pg(){var un=Ku();for(en(22)&&mt(23);en(24);){var pa=Ku();en(22)&&mt(23),un=da(un,pa)}return un}function Ku(un){if(!e.tokenIsIdentifierOrKeyword(me()))return Cn(79,!un,un||e.Diagnostics.Identifier_expected);Le++;var pa=u.getTokenPos(),Hn=u.getTextPos(),Sa=me(),Za=Qn(u.getTokenValue()),zi=rt(R.createIdentifier(Za,void 0,Sa),pa,Hn);return dr(),zi}}})(a_=m.JSDocParser||(m.JSDocParser={}))})(O||(O={}));var q;(function(m){function u(K,Te,ge,ke){if(ke=ke||e.Debug.shouldAssert(2),R(K,Te,ge,ke),e.textChangeRangeIsUnchanged(ge))return K;if(K.statements.length===0)return O.parseSourceFile(K.fileName,Te,K.languageVersion,void 0,!0,K.scriptKind);var Pe=K;e.Debug.assert(!Pe.hasBeenIncrementallyParsed),Pe.hasBeenIncrementallyParsed=!0,O.fixupParentReferences(Pe);var Ie=K.text,Ge=Y(K),he=Se(K,ge);R(K,Te,he,ke),e.Debug.assert(he.span.start<=ge.span.start),e.Debug.assert(e.textSpanEnd(he.span)===e.textSpanEnd(ge.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(he))===e.textSpanEnd(e.textChangeRangeNewSpan(ge)));var ve=e.textChangeRangeNewSpan(he).length-he.span.length;j(Pe,he.span.start,e.textSpanEnd(he.span),e.textSpanEnd(e.textChangeRangeNewSpan(he)),ve,Ie,Te,ke);var Ve=O.parseSourceFile(K.fileName,Te,K.languageVersion,Ge,!0,K.scriptKind);return Ve.commentDirectives=g(K.commentDirectives,Ve.commentDirectives,he.span.start,e.textSpanEnd(he.span),ve,Ie,Te,ke),Ve.impliedNodeFormat=K.impliedNodeFormat,Ve}m.updateSourceFile=u;function g(K,Te,ge,ke,Pe,Ie,Ge,he){if(!K)return Te;for(var ve,Ve=!1,_e=0,Le=K;_e<Le.length;_e++){var qe=Le[_e],Xe=qe.range,De=qe.type;if(Xe.end<ge)ve=e.append(ve,qe);else if(Xe.pos>ke){Ye();var Ae={range:{pos:Xe.pos+Pe,end:Xe.end+Pe},type:De};ve=e.append(ve,Ae),he&&e.Debug.assert(Ie.substring(Xe.pos,Xe.end)===Ge.substring(Ae.range.pos,Ae.range.end))}}return Ye(),ve;function Ye(){Ve||(Ve=!0,ve?Te&&ve.push.apply(ve,Te):ve=Te)}}function P(K,Te,ge,ke,Pe,Ie){Te?he(K):Ge(K);return;function Ge(ve){var Ve="";if(Ie&&te(ve)&&(Ve=ke.substring(ve.pos,ve.end)),ve._children&&(ve._children=void 0),e.setTextRangePosEnd(ve,ve.pos+ge,ve.end+ge),Ie&&te(ve)&&e.Debug.assert(Ve===Pe.substring(ve.pos,ve.end)),z(ve,Ge,he),e.hasJSDocNodes(ve))for(var _e=0,Le=ve.jsDoc;_e<Le.length;_e++){var qe=Le[_e];Ge(qe)}X(ve,Ie)}function he(ve){ve._children=void 0,e.setTextRangePosEnd(ve,ve.pos+ge,ve.end+ge);for(var Ve=0,_e=ve;Ve<_e.length;Ve++){var Le=_e[Ve];Ge(Le)}}}function te(K){switch(K.kind){case 10:case 8:case 79:return!0}return!1}function ue(K,Te,ge,ke,Pe){e.Debug.assert(K.end>=Te,"Adjusting an element that was entirely before the change range"),e.Debug.assert(K.pos<=ge,"Adjusting an element that was entirely after the change range"),e.Debug.assert(K.pos<=K.end);var Ie=Math.min(K.pos,ke),Ge=K.end>=ge?K.end+Pe:Math.min(K.end,ke);e.Debug.assert(Ie<=Ge),K.parent&&(e.Debug.assertGreaterThanOrEqual(Ie,K.parent.pos),e.Debug.assertLessThanOrEqual(Ge,K.parent.end)),e.setTextRangePosEnd(K,Ie,Ge)}function X(K,Te){if(Te){var ge=K.pos,ke=function(he){e.Debug.assert(he.pos>=ge),ge=he.end};if(e.hasJSDocNodes(K))for(var Pe=0,Ie=K.jsDoc;Pe<Ie.length;Pe++){var Ge=Ie[Pe];ke(Ge)}z(K,ke),e.Debug.assert(ge<=K.end)}}function j(K,Te,ge,ke,Pe,Ie,Ge,he){ve(K);return;function ve(_e){if(e.Debug.assert(_e.pos<=_e.end),_e.pos>ge){P(_e,!1,Pe,Ie,Ge,he);return}var Le=_e.end;if(Le>=Te){if(_e.intersectsChange=!0,_e._children=void 0,ue(_e,Te,ge,ke,Pe),z(_e,ve,Ve),e.hasJSDocNodes(_e))for(var qe=0,Xe=_e.jsDoc;qe<Xe.length;qe++){var De=Xe[qe];ve(De)}X(_e,he);return}e.Debug.assert(Le<Te)}function Ve(_e){if(e.Debug.assert(_e.pos<=_e.end),_e.pos>ge){P(_e,!0,Pe,Ie,Ge,he);return}var Le=_e.end;if(Le>=Te){_e.intersectsChange=!0,_e._children=void 0,ue(_e,Te,ge,ke,Pe);for(var qe=0,Xe=_e;qe<Xe.length;qe++){var De=Xe[qe];ve(De)}return}e.Debug.assert(Le<Te)}}function Se(K,Te){for(var ge=1,ke=Te.span.start,Pe=0;ke>0&&Pe<=ge;Pe++){var Ie=Ce(K,ke);e.Debug.assert(Ie.pos<=ke);var Ge=Ie.pos;ke=Math.max(0,Ge-1)}var he=e.createTextSpanFromBounds(ke,e.textSpanEnd(Te.span)),ve=Te.newLength+(Te.span.start-ke);return e.createTextChangeRange(he,ve)}function Ce(K,Te){var ge=K,ke;if(z(K,Ge),ke){var Pe=Ie(ke);Pe.pos>ge.pos&&(ge=Pe)}return ge;function Ie(he){for(;;){var ve=e.getLastChild(he);if(ve)he=ve;else return he}}function Ge(he){if(!e.nodeIsMissing(he))if(he.pos<=Te){if(he.pos>=ge.pos&&(ge=he),Te<he.end)return z(he,Ge),!0;e.Debug.assert(he.end<=Te),ke=he}else return e.Debug.assert(he.pos>Te),!0}}function R(K,Te,ge,ke){var Pe=K.text;if(ge&&(e.Debug.assert(Pe.length-ge.span.length+ge.newLength===Te.length),ke||e.Debug.shouldAssert(3))){var Ie=Pe.substr(0,ge.span.start),Ge=Te.substr(0,ge.span.start);e.Debug.assert(Ie===Ge);var he=Pe.substring(e.textSpanEnd(ge.span),Pe.length),ve=Te.substring(e.textSpanEnd(e.textChangeRangeNewSpan(ge)),Te.length);e.Debug.assert(he===ve)}}function Y(K){var Te=K.statements,ge=0;e.Debug.assert(ge<Te.length);var ke=Te[ge],Pe=-1;return{currentNode:function(Ge){return Ge!==Pe&&(ke&&ke.end===Ge&&ge<Te.length-1&&(ge++,ke=Te[ge]),(!ke||ke.pos!==Ge)&&Ie(Ge)),Pe=Ge,e.Debug.assert(!ke||ke.pos===Ge),ke}};function Ie(Ge){Te=void 0,ge=-1,ke=void 0,z(K,he,ve);return;function he(Ve){return Ge>=Ve.pos&&Ge<Ve.end?(z(Ve,he,ve),!0):!1}function ve(Ve){if(Ge>=Ve.pos&&Ge<Ve.end)for(var _e=0;_e<Ve.length;_e++){var Le=Ve[_e];if(Le){if(Le.pos===Ge)return Te=Ve,ge=_e,ke=Le,!0;if(Le.pos<Ge&&Ge<Le.end)return z(Le,he,ve),!0}}return!1}}}m.createSyntaxCursor=Y;var U;(function(K){K[K.Value=-1]="Value"})(U||(U={}))})(q||(q={}));function Z(m){return e.fileExtensionIsOneOf(m,[".d.ts",".d.mts",".d.cts"])}e.isDeclarationFileName=Z;function ne(m,u){for(var g=[],P=0,te=e.getLeadingCommentRanges(u,0)||e.emptyArray;P<te.length;P++){var ue=te[P],X=u.substring(ue.pos,ue.end);N(g,ue,X)}m.pragmas=new e.Map;for(var j=0,Se=g;j<Se.length;j++){var Ce=Se[j];if(m.pragmas.has(Ce.name)){var R=m.pragmas.get(Ce.name);R instanceof Array?R.push(Ce.args):m.pragmas.set(Ce.name,[R,Ce.args]);continue}m.pragmas.set(Ce.name,Ce.args)}}e.processCommentPragmas=ne;function F(m,u){m.checkJsDirective=void 0,m.referencedFiles=[],m.typeReferenceDirectives=[],m.libReferenceDirectives=[],m.amdDependencies=[],m.hasNoDefaultLib=!1,m.pragmas.forEach(function(g,P){switch(P){case"reference":{var te=m.referencedFiles,ue=m.typeReferenceDirectives,X=m.libReferenceDirectives;e.forEach(e.toArray(g),function(R){var Y=R.arguments,U=Y.types,K=Y.lib,Te=Y.path;R.arguments["no-default-lib"]?m.hasNoDefaultLib=!0:U?ue.push({pos:U.pos,end:U.end,fileName:U.value}):K?X.push({pos:K.pos,end:K.end,fileName:K.value}):Te?te.push({pos:Te.pos,end:Te.end,fileName:Te.value}):u(R.range.pos,R.range.end-R.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)});break}case"amd-dependency":{m.amdDependencies=e.map(e.toArray(g),function(R){return{name:R.arguments.name,path:R.arguments.path}});break}case"amd-module":{if(g instanceof Array)for(var j=0,Se=g;j<Se.length;j++){var Ce=Se[j];m.moduleName&&u(Ce.range.pos,Ce.range.end-Ce.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),m.moduleName=Ce.arguments.name}else m.moduleName=g.arguments.name;break}case"ts-nocheck":case"ts-check":{e.forEach(e.toArray(g),function(R){(!m.checkJsDirective||R.range.pos>m.checkJsDirective.pos)&&(m.checkJsDirective={enabled:P==="ts-check",end:R.range.end,pos:R.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}})}e.processPragmasIntoFields=F;var Q=new e.Map;function V(m){if(Q.has(m))return Q.get(m);var u=new RegExp("(\\s".concat(m,`\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`),"im");return Q.set(m,u),u}var re=/^\/\/\/\s*<(\S+)\s.*?\/>/im,T=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function N(m,u,g){var P=u.kind===2&&re.exec(g);if(P){var te=P[1].toLowerCase(),ue=e.commentPragmas[te];if(!ue||!(ue.kind&1))return;if(ue.args){for(var X={},j=0,Se=ue.args;j<Se.length;j++){var Ce=Se[j],R=V(Ce.name),Y=R.exec(g);if(!Y&&!Ce.optional)return;if(Y){var U=Y[2]||Y[3];if(Ce.captureSpan){var K=u.pos+Y.index+Y[1].length+1;X[Ce.name]={value:U,pos:K,end:K+U.length}}else X[Ce.name]=U}}m.push({name:te,args:{arguments:X,range:u}})}else m.push({name:te,args:{arguments:{},range:u}});return}var Te=u.kind===2&&T.exec(g);if(Te)return y(m,u,2,Te);if(u.kind===3)for(var ge=/@(\S+)(\s+.*)?$/gim,ke=void 0;ke=ge.exec(g);)y(m,u,4,ke)}function y(m,u,g,P){if(P){var te=P[1].toLowerCase(),ue=e.commentPragmas[te];if(!(!ue||!(ue.kind&g))){var X=P[2],j=D(ue,X);j!=="fail"&&m.push({name:te,args:{arguments:j,range:u}})}}}function D(m,u){if(!u)return{};if(!m.args)return{};for(var g=e.trimString(u).split(/\s+/),P={},te=0;te<m.args.length;te++){var ue=m.args[te];if(!g[te]&&!ue.optional)return"fail";if(ue.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");P[ue.name]=g[te]}return P}function C(m,u){return m.kind!==u.kind?!1:m.kind===79?m.escapedText===u.escapedText:m.kind===108?!0:m.name.escapedText===u.name.escapedText&&C(m.expression,u.expression)}e.tagNamesAreEquivalent=C}(jr||(jr={})),function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean",defaultValueDescription:"false"};var n=new e.Map(e.getEntries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5}));e.inverseJsxOptionMap=new e.Map(e.arrayFrom(e.mapIterator(n.entries(),function(tr){var xr=tr[0],Nr=tr[1];return[""+Nr,xr]})));var f=[["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"],["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"],["es2020.bigint","lib.es2020.bigint.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"],["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"],["esnext.array","lib.es2019.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.es2021.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"]];e.libs=f.map(function(tr){return tr[0]}),e.libMap=new e.Map(f),e.optionsForWatch=[{name:"watchFile",type:new e.Map(e.getEntries({fixedpollinginterval:e.WatchFileKind.FixedPollingInterval,prioritypollinginterval:e.WatchFileKind.PriorityPollingInterval,dynamicprioritypolling:e.WatchFileKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchFileKind.FixedChunkSizePolling,usefsevents:e.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:e.WatchFileKind.UseFsEventsOnParentDirectory})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_the_TypeScript_watch_mode_works},{name:"watchDirectory",type:new e.Map(e.getEntries({usefsevents:e.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:e.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:e.WatchDirectoryKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchDirectoryKind.FixedChunkSizePolling})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality},{name:"fallbackPolling",type:new e.Map(e.getEntries({fixedinterval:e.PollingWatchKind.FixedInterval,priorityinterval:e.PollingWatchKind.PriorityInterval,dynamicpriority:e.PollingWatchKind.DynamicPriority,fixedchunksize:e.PollingWatchKind.FixedChunkSize})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers},{name:"synchronousWatchDirectory",type:"boolean",category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:"false"},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:me},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:me},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_files_from_the_watch_mode_s_processing}],e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message,defaultValueDescription:"false"},{name:"help",shortName:"?",type:"boolean",defaultValueDescription:"false"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files,defaultValueDescription:"false"},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:"false"},{name:"listFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:"false"},{name:"explainFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:"false"},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:"false"},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:"true"},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:"false"},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_compiler_performance_information_after_building,defaultValueDescription:"false"},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:"false"},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Projects,description:e.Diagnostics.Enable_incremental_compilation,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.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:"false"},{name:"locale",type:"string",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:e.Diagnostics.Platform_specific}],e.targetOptionDeclaration={name:"target",shortName:"t",type:new e.Map(e.getEntries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:"ES3"};var p=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options,defaultValueDescription:"false"},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version,defaultValueDescription:"false"},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:"false"},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.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:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:"false"},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building,defaultValueDescription:"false"},{name:"listFilesOnly",type:"boolean",category:e.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,isCommandLineOnly:!0,description:e.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:"false"},e.targetOptionDeclaration,{name:"module",shortName:"m",type:new e.Map(e.getEntries({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,es2020:e.ModuleKind.ES2020,es2022:e.ModuleKind.ES2022,esnext:e.ModuleKind.ESNext,node12:e.ModuleKind.Node12,nodenext:e.ModuleKind.NodeNext})),affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_what_module_code_is_generated},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.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:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:"false"},{name:"checkJs",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:"false"},{name:"jsx",type:n,affectsSourceFile:!0,affectsEmit:!0,affectsModuleResolution:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_what_JSX_code_is_generated,defaultValueDescription:"undefined"},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,defaultValueDescription:"false",description:e.Diagnostics.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:"false"},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:"false",description:e.Diagnostics.Create_source_map_files_for_emitted_JavaScript_files},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.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,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_root_folder_within_your_source_files,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:"false",description:e.Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:e.Diagnostics.Specify_the_folder_for_tsbuildinfo_incremental_compilation_files},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:"false",description:e.Diagnostics.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:"false"},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:"false"},{name:"importsNotUsedAsValues",type:new e.Map(e.getEntries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:"false"},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:"false"},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_all_strict_type_checking_options,defaultValueDescription:"false"},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Type_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:"false"},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_use_strict_is_always_emitted,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_a_local_variables_aren_t_read,defaultValueDescription:"false"},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:"false"},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:"false"},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:"false"},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:"false"},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Include_undefined_in_index_signature_results,defaultValueDescription:"false"},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:"false"},{name:"noPropertyAccessFromIndexSignature",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:"false"},{name:"moduleResolution",type:new e.Map(e.getEntries({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic,node12:e.ModuleResolutionKind.Node12,nodenext:e.ModuleResolutionKind.NodeNext})),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:e.Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.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:e.Diagnostics.Modules,description:e.Diagnostics.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:e.Diagnostics.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:"false"},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:"false"},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:"false"},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:"false"},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:"false"},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators,defaultValueDescription:"false"},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:"false"},{name:"jsxFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.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:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsModuleResolution:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.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:e.Diagnostics.Modules,description:e.Diagnostics.Enable_importing_json_files,defaultValueDescription:"false"},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:e.Diagnostics.Backwards_Compatibility,paramType:e.Diagnostics.FILE,transpileOptionValue:void 0,description:e.Diagnostics.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:"false"},{name:"charset",type:"string",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:"false"},{name:"newLine",type:new e.Map(e.getEntries({crlf:0,lf:1})),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Emit,description:e.Diagnostics.Set_the_newline_character_for_emitting_files,defaultValueDescription:e.Diagnostics.Platform_specific},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_truncating_types_in_error_messages,defaultValueDescription:"false"},{name:"noLib",type:"boolean",category:e.Diagnostics.Language_and_Environment,affectsProgramStructure:!0,description:e.Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:"false"},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:"false"},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:"false"},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:e.Diagnostics.Editor_Support,description:e.Diagnostics.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:"false"},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:"false"},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:"false"},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:"false"},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:"false"},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:"false"},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:"false"},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:"false"},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_all_d_ts_files,defaultValueDescription:"false"},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unused_labels,defaultValueDescription:"undefined"},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unreachable_code,defaultValueDescription:"undefined"},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:"false"},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:"false"},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:"false"},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.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,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:"false"},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:e.Diagnostics.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:"false"},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:"false"},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins,category:e.Diagnostics.Editor_Support}];e.optionDeclarations=Gt(Gt([],e.commonOptionsWithBuild,!0),p,!0),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter(function(tr){return!!tr.affectsSemanticDiagnostics}),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter(function(tr){return!!tr.affectsEmit}),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter(function(tr){return!!tr.affectsModuleResolution}),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter(function(tr){return!!tr.affectsSourceFile||!!tr.affectsModuleResolution||!!tr.affectsBindDiagnostics}),e.optionsAffectingProgramStructure=e.optionDeclarations.filter(function(tr){return!!tr.affectsProgramStructure}),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter(function(tr){return e.hasProperty(tr,"transpileOptionValue")}),e.optionsForBuild=[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean",defaultValueDescription:"false"},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:"false"},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:"false"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:"false"}],e.buildOpts=Gt(Gt([],e.commonOptionsWithBuild,!0),e.optionsForBuild,!0),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean",defaultValueDescription:"false"},{name:"enable",type:"boolean",defaultValueDescription:"false"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:"false"}];function a(tr){var xr=new e.Map,Nr=new e.Map;return e.forEach(tr,function(zr){xr.set(zr.name.toLowerCase(),zr),zr.shortName&&Nr.set(zr.shortName,zr.name)}),{optionsNameMap:xr,shortOptionNames:Nr}}e.createOptionNameMap=a;var d;function k(){return d||(d=a(e.optionDeclarations))}e.getOptionsNameMap=k;var J={diagnostic:e.Diagnostics.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:O};e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function h(tr){return tr&&tr.enableAutoDiscovery!==void 0&&tr.enable===void 0?{enable:tr.enableAutoDiscovery,include:tr.include||[],exclude:tr.exclude||[]}:tr}e.convertEnableAutoDiscoveryToEnable=h;function v(tr){return A(tr,e.createCompilerDiagnostic)}e.createCompilerDiagnosticForInvalidCustomType=v;function A(tr,xr){var Nr=e.arrayFrom(tr.type.keys()).map(function(zr){return"'".concat(zr,"'")}).join(", ");return xr(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--".concat(tr.name),Nr)}function z(tr,xr,Nr){return Or(tr,e.trimString(xr||""),Nr)}e.parseCustomTypeOption=z;function ie(tr,xr,Nr){if(xr===void 0&&(xr=""),xr=e.trimString(xr),!e.startsWith(xr,"-")){if(xr==="")return[];var zr=xr.split(",");switch(tr.element.type){case"number":return e.mapDefined(zr,function(gt){return ir(tr.element,parseInt(gt),Nr)});case"string":return e.mapDefined(zr,function(gt){return ir(tr.element,gt||"",Nr)});default:return e.mapDefined(zr,function(gt){return z(tr.element,gt,Nr)})}}}e.parseListTypeOption=ie;function b(tr){return tr.name}function M(tr,xr,Nr,zr){var gt;if(!((gt=xr.alternateMode)===null||gt===void 0)&&gt.getOptionsNameMap().optionsNameMap.has(tr.toLowerCase()))return Nr(xr.alternateMode.diagnostic,tr);var vt=e.getSpellingSuggestion(tr,xr.optionDeclarations,b);return vt?Nr(xr.unknownDidYouMeanDiagnostic,zr||tr,vt.name):Nr(xr.unknownOptionDiagnostic,zr||tr)}function S(tr,xr,Nr){var zr={},gt,vt=[],ut=[];return ht(xr),{options:zr,watchOptions:gt,fileNames:vt,errors:ut};function ht(wt){for(var Qt=0;Qt<wt.length;){var mt=wt[Qt];if(Qt++,mt.charCodeAt(0)===64)xt(mt.slice(1));else if(mt.charCodeAt(0)===45){var rn=mt.slice(mt.charCodeAt(1)===45?2:1),sa=w(tr.getOptionsNameMap,rn,!0);if(sa)Qt=B(wt,Qt,tr,sa,zr,ut);else{var ba=w(u.getOptionsNameMap,rn,!0);ba?Qt=B(wt,Qt,u,ba,gt||(gt={}),ut):ut.push(M(rn,tr,e.createCompilerDiagnostic,mt))}}else vt.push(mt)}}function xt(wt){var Qt=N(wt,Nr||function(ba){return e.sys.readFile(ba)});if(!e.isString(Qt)){ut.push(Qt);return}for(var mt=[],rn=0;;){for(;rn<Qt.length&&Qt.charCodeAt(rn)<=32;)rn++;if(rn>=Qt.length)break;var sa=rn;if(Qt.charCodeAt(sa)===34){for(rn++;rn<Qt.length&&Qt.charCodeAt(rn)!==34;)rn++;rn<Qt.length?(mt.push(Qt.substring(sa+1,rn)),rn++):ut.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,wt))}else{for(;Qt.charCodeAt(rn)>32;)rn++;mt.push(Qt.substring(sa,rn))}}ht(mt)}}e.parseCommandLineWorker=S;function B(tr,xr,Nr,zr,gt,vt){if(zr.isTSConfigOnly){var ut=tr[xr];ut==="null"?(gt[zr.name]=void 0,xr++):zr.type==="boolean"?ut==="false"?(gt[zr.name]=ir(zr,!1,vt),xr++):(ut==="true"&&xr++,vt.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,zr.name))):(vt.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,zr.name)),ut&&!e.startsWith(ut,"-")&&xr++)}else if(!tr[xr]&&zr.type!=="boolean"&&vt.push(e.createCompilerDiagnostic(Nr.optionTypeMismatchDiagnostic,zr.name,K(zr))),tr[xr]!=="null")switch(zr.type){case"number":gt[zr.name]=ir(zr,parseInt(tr[xr]),vt),xr++;break;case"boolean":var ut=tr[xr];gt[zr.name]=ir(zr,ut!=="false",vt),(ut==="false"||ut==="true")&&xr++;break;case"string":gt[zr.name]=ir(zr,tr[xr]||"",vt),xr++;break;case"list":var ht=ie(zr,tr[xr],vt);gt[zr.name]=ht||[],ht&&xr++;break;default:gt[zr.name]=z(zr,tr[xr],vt),xr++;break}else gt[zr.name]=void 0,xr++;return xr}e.compilerOptionsDidYouMeanDiagnostics={alternateMode:J,getOptionsNameMap:k,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument};function H(tr,xr){return S(e.compilerOptionsDidYouMeanDiagnostics,tr,xr)}e.parseCommandLine=H;function I(tr,xr){return w(k,tr,xr)}e.getOptionFromName=I;function w(tr,xr,Nr){Nr===void 0&&(Nr=!1),xr=xr.toLowerCase();var zr=tr(),gt=zr.optionsNameMap,vt=zr.shortOptionNames;if(Nr){var ut=vt.get(xr);ut!==void 0&&(xr=ut)}return gt.get(xr)}var x;function O(){return x||(x=a(e.buildOpts))}var q={diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:k},Z={alternateMode:q,getOptionsNameMap:O,optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function ne(tr){var xr=S(Z,tr),Nr=xr.options,zr=xr.watchOptions,gt=xr.fileNames,vt=xr.errors,ut=Nr;return gt.length===0&&gt.push("."),ut.clean&&ut.force&&vt.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),ut.clean&&ut.verbose&&vt.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),ut.clean&&ut.watch&&vt.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),ut.watch&&ut.dry&&vt.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:ut,watchOptions:zr,projects:gt,errors:vt}}e.parseBuildCommand=ne;function F(tr){var xr=e.createCompilerDiagnostic.apply(void 0,arguments);return xr.messageText}e.getDiagnosticText=F;function Q(tr,xr,Nr,zr,gt,vt){var ut=N(tr,function(wt){return Nr.readFile(wt)});if(!e.isString(ut)){Nr.onUnRecoverableConfigFileDiagnostic(ut);return}var ht=e.parseJsonText(tr,ut),xt=Nr.getCurrentDirectory();return ht.path=e.toPath(tr,xt,e.createGetCanonicalFileName(Nr.useCaseSensitiveFileNames)),ht.resolvedPath=ht.path,ht.originalFileName=ht.fileName,Dr(ht,Nr,e.getNormalizedAbsolutePath(e.getDirectoryPath(tr),xt),xr,e.getNormalizedAbsolutePath(tr,xt),void 0,vt,zr,gt)}e.getParsedCommandLineOfConfigFile=Q;function V(tr,xr){var Nr=N(tr,xr);return e.isString(Nr)?re(tr,Nr):{config:{},error:Nr}}e.readConfigFile=V;function re(tr,xr){var Nr=e.parseJsonText(tr,xr);return{config:R(Nr,Nr.parseDiagnostics,!1,void 0),error:Nr.parseDiagnostics.length?Nr.parseDiagnostics[0]:void 0}}e.parseConfigFileTextToJson=re;function T(tr,xr){var Nr=N(tr,xr);return e.isString(Nr)?e.parseJsonText(tr,Nr):{fileName:tr,parseDiagnostics:[Nr]}}e.readJsonConfigFile=T;function N(tr,xr){var Nr;try{Nr=xr(tr)}catch(zr){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,tr,zr.message)}return Nr===void 0?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,tr):Nr}e.tryReadFile=N;function y(tr){return e.arrayToMap(tr,b)}var D={optionDeclarations:e.typeAcquisitionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1},C;function m(){return C||(C=a(e.optionsForWatch))}var u={getOptionsNameMap:m,optionDeclarations:e.optionsForWatch,unknownOptionDiagnostic:e.Diagnostics.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Watch_option_0_requires_a_value_of_type_1},g;function P(){return g||(g=y(e.optionDeclarations))}var te;function ue(){return te||(te=y(e.optionsForWatch))}var X;function j(){return X||(X=y(e.typeAcquisitionDeclarations))}var Se;function Ce(){return Se===void 0&&(Se={name:void 0,type:"object",elementOptions:y([{name:"compilerOptions",type:"object",elementOptions:P(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:ue(),extraKeyDiagnostics:u},{name:"typingOptions",type:"object",elementOptions:j(),extraKeyDiagnostics:D},{name:"typeAcquisition",type:"object",elementOptions:j(),extraKeyDiagnostics:D},{name:"extends",type:"string",category:e.Diagnostics.File_Management},{name:"references",type:"list",element:{name:"references",type:"object"},category:e.Diagnostics.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:e.Diagnostics.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},e.compileOnSaveCommandLineOption])}),Se}function R(tr,xr,Nr,zr){var gt,vt=(gt=tr.statements[0])===null||gt===void 0?void 0:gt.expression,ut=Nr?Ce():void 0;if(vt&&vt.kind!==204){if(xr.push(e.createDiagnosticForNodeInSourceFile(tr,vt,e.Diagnostics.The_root_value_of_a_0_file_must_be_an_object,e.getBaseFileName(tr.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),e.isArrayLiteralExpression(vt)){var ht=e.find(vt.elements,e.isObjectLiteralExpression);if(ht)return U(tr,ht,xr,!0,ut,zr)}return{}}return U(tr,vt,xr,!0,ut,zr)}function Y(tr,xr){var Nr;return U(tr,(Nr=tr.statements[0])===null||Nr===void 0?void 0:Nr.expression,xr,!0,void 0,void 0)}e.convertToObject=Y;function U(tr,xr,Nr,zr,gt,vt){if(!xr)return zr?{}:void 0;return wt(xr,gt);function ut(mt){return gt&&gt.elementOptions===mt}function ht(mt,rn,sa,ba){for(var Jn=zr?{}:void 0,na=function(Ut){if(Ut.kind!==294)return Nr.push(e.createDiagnosticForNodeInSourceFile(tr,Ut,e.Diagnostics.Property_assignment_expected)),"continue";Ut.questionToken&&Nr.push(e.createDiagnosticForNodeInSourceFile(tr,Ut.questionToken,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),Qt(Ut.name)||Nr.push(e.createDiagnosticForNodeInSourceFile(tr,Ut.name,e.Diagnostics.String_literal_with_double_quotes_expected));var qt=e.isComputedNonLiteralName(Ut.name)?void 0:e.getTextOfPropertyName(Ut.name),Mn=qt&&e.unescapeLeadingUnderscores(qt),dn=Mn&&rn?rn.get(Mn):void 0;Mn&&sa&&!dn&&(rn?Nr.push(M(Mn,sa,function(_t,Mt,It){return e.createDiagnosticForNodeInSourceFile(tr,Ut.name,_t,Mt,It)})):Nr.push(e.createDiagnosticForNodeInSourceFile(tr,Ut.name,sa.unknownOptionDiagnostic,Mn)));var oa=wt(Ut.initializer,dn);if(typeof Mn<"u"&&(zr&&(Jn[Mn]=oa),vt&&(ba||ut(rn)))){var pt=Te(dn,oa);ba?pt&&vt.onSetValidOptionKeyValueInParent(ba,dn,oa):ut(rn)&&(pt?vt.onSetValidOptionKeyValueInRoot(Mn,Ut.name,oa,Ut.initializer):dn||vt.onSetUnknownOptionKeyValueInRoot(Mn,Ut.name,oa,Ut.initializer))}},Wn=0,en=mt.properties;Wn<en.length;Wn++){var St=en[Wn];na(St)}return Jn}function xt(mt,rn){if(!zr){mt.forEach(function(sa){return wt(sa,rn)});return}return e.filter(mt.map(function(sa){return wt(sa,rn)}),function(sa){return sa!==void 0})}function wt(mt,rn){var sa;switch(mt.kind){case 110:return Mn(rn&&rn.type!=="boolean"),qt(!0);case 95:return Mn(rn&&rn.type!=="boolean"),qt(!1);case 104:return Mn(rn&&rn.name==="extends"),qt(null);case 10:Qt(mt)||Nr.push(e.createDiagnosticForNodeInSourceFile(tr,mt,e.Diagnostics.String_literal_with_double_quotes_expected)),Mn(rn&&e.isString(rn.type)&&rn.type!=="string");var ba=mt.text;if(rn&&!e.isString(rn.type)){var Jn=rn;Jn.type.has(ba.toLowerCase())||(Nr.push(A(Jn,function(dn,oa,pt){return e.createDiagnosticForNodeInSourceFile(tr,mt,dn,oa,pt)})),sa=!0)}return qt(ba);case 8:return Mn(rn&&rn.type!=="number"),qt(Number(mt.text));case 218:if(mt.operator!==40||mt.operand.kind!==8)break;return Mn(rn&&rn.type!=="number"),qt(-Number(mt.operand.text));case 204:Mn(rn&&rn.type!=="object");var na=mt;if(rn){var Wn=rn,en=Wn.elementOptions,St=Wn.extraKeyDiagnostics,Ut=Wn.name;return qt(ht(na,en,St,Ut))}else return qt(ht(na,void 0,void 0,void 0));case 203:return Mn(rn&&rn.type!=="list"),qt(xt(mt.elements,rn&&rn.element))}rn?Mn(!0):Nr.push(e.createDiagnosticForNodeInSourceFile(tr,mt,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));return;function qt(dn){var oa;if(!sa){var pt=(oa=rn==null?void 0:rn.extraValidation)===null||oa===void 0?void 0:oa.call(rn,dn);if(pt){Nr.push(e.createDiagnosticForNodeInSourceFile.apply(void 0,Gt([tr,mt],pt,!1)));return}}return dn}function Mn(dn){dn&&(Nr.push(e.createDiagnosticForNodeInSourceFile(tr,mt,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,rn.name,K(rn))),sa=!0)}}function Qt(mt){return e.isStringLiteral(mt)&&e.isStringDoubleQuoted(mt,tr)}}e.convertToObjectWorker=U;function K(tr){return tr.type==="list"?"Array":e.isString(tr.type)?tr.type:"string"}function Te(tr,xr){if(tr){if(lr(xr))return!0;if(tr.type==="list")return e.isArray(xr);var Nr=e.isString(tr.type)?tr.type:"string";return typeof xr===Nr}return!1}function ge(tr,xr,Nr){var zr,gt,vt,ut=e.createGetCanonicalFileName(Nr.useCaseSensitiveFileNames),ht=e.map(e.filter(tr.fileNames,!((gt=(zr=tr.options.configFile)===null||zr===void 0?void 0:zr.configFileSpecs)===null||gt===void 0)&&gt.validatedIncludeSpecs?Ie(xr,tr.options.configFile.configFileSpecs.validatedIncludeSpecs,tr.options.configFile.configFileSpecs.validatedExcludeSpecs,Nr):e.returnTrue),function(mt){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(xr,Nr.getCurrentDirectory()),e.getNormalizedAbsolutePath(mt,Nr.getCurrentDirectory()),ut)}),xt=ve(tr.options,{configFilePath:e.getNormalizedAbsolutePath(xr,Nr.getCurrentDirectory()),useCaseSensitiveFileNames:Nr.useCaseSensitiveFileNames}),wt=tr.watchOptions&&Ve(tr.watchOptions),Qt=Rn(Rn({compilerOptions:Rn(Rn({},ke(xt)),{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:wt&&ke(wt),references:e.map(tr.projectReferences,function(mt){return Rn(Rn({},mt),{path:mt.originalPath?mt.originalPath:"",originalPath:void 0})}),files:e.length(ht)?ht:void 0},!((vt=tr.options.configFile)===null||vt===void 0)&&vt.configFileSpecs?{include:Pe(tr.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:tr.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:tr.compileOnSave?!0:void 0});return Qt}e.convertToTSConfig=ge;function ke(tr){return Rn({},e.arrayFrom(tr.entries()).reduce(function(xr,Nr){var zr;return Rn(Rn({},xr),(zr={},zr[Nr[0]]=Nr[1],zr))},{}))}function Pe(tr){if(e.length(tr)){if(e.length(tr)!==1)return tr;if(tr[0]!=="**/*")return tr}}function Ie(tr,xr,Nr,zr){if(!xr)return e.returnTrue;var gt=e.getFileMatcherPatterns(tr,Nr,xr,zr.useCaseSensitiveFileNames,zr.getCurrentDirectory()),vt=gt.excludePattern&&e.getRegexFromPattern(gt.excludePattern,zr.useCaseSensitiveFileNames),ut=gt.includeFilePattern&&e.getRegexFromPattern(gt.includeFilePattern,zr.useCaseSensitiveFileNames);return ut?vt?function(ht){return!(ut.test(ht)&&!vt.test(ht))}:function(ht){return!ut.test(ht)}:vt?function(ht){return vt.test(ht)}:e.returnTrue}function Ge(tr){if(!(tr.type==="string"||tr.type==="number"||tr.type==="boolean"||tr.type==="object"))return tr.type==="list"?Ge(tr.element):tr.type}function he(tr,xr){return e.forEachEntry(xr,function(Nr,zr){if(Nr===tr)return zr})}function ve(tr,xr){return _e(tr,k(),xr)}function Ve(tr){return _e(tr,m())}function _e(tr,xr,Nr){var zr=xr.optionsNameMap,gt=new e.Map,vt=Nr&&e.createGetCanonicalFileName(Nr.useCaseSensitiveFileNames),ut=function(xt){if(e.hasProperty(tr,xt)){if(zr.has(xt)&&(zr.get(xt).category===e.Diagnostics.Command_line_Options||zr.get(xt).category===e.Diagnostics.Output_Formatting))return"continue";var wt=tr[xt],Qt=zr.get(xt.toLowerCase());if(Qt){var mt=Ge(Qt);mt?Qt.type==="list"?gt.set(xt,wt.map(function(rn){return he(rn,mt)})):gt.set(xt,he(wt,mt)):Nr&&Qt.isFilePath?gt.set(xt,e.getRelativePathFromFile(Nr.configFilePath,e.getNormalizedAbsolutePath(wt,e.getDirectoryPath(Nr.configFilePath)),vt)):gt.set(xt,wt)}}};for(var ht in tr)ut(ht);return gt}function Le(tr,xr){var Nr=qe(tr);return gt();function zr(vt){return Array(vt+1).join(" ")}function gt(){var vt=[],ut=zr(2);return p.forEach(function(ht){if(Nr.has(ht.name)){var xt=Nr.get(ht.name),wt=Vr(ht);xt!==wt?vt.push("".concat(ut).concat(ht.name,": ").concat(xt)):e.hasProperty(e.defaultInitCompilerOptions,ht.name)&&vt.push("".concat(ut).concat(ht.name,": ").concat(wt))}}),vt.join(xr)+xr}}e.getCompilerOptionsDiffValue=Le;function qe(tr){var xr=e.extend(tr,e.defaultInitCompilerOptions);return ve(xr)}function Xe(tr,xr,Nr){var zr=qe(tr);return ut();function gt(ht){return Array(ht+1).join(" ")}function vt(ht){var xt=ht.category,wt=ht.name,Qt=ht.isCommandLineOnly,mt=[e.Diagnostics.Command_line_Options,e.Diagnostics.Editor_Support,e.Diagnostics.Compiler_Diagnostics,e.Diagnostics.Backwards_Compatibility,e.Diagnostics.Watch_and_Build_Modes,e.Diagnostics.Output_Formatting];return!Qt&&xt!==void 0&&(!mt.includes(xt)||zr.has(wt))}function ut(){for(var ht=e.createMultiMap(),xt=0,wt=e.optionDeclarations;xt<wt.length;xt++){var Qt=wt[xt],mt=Qt.category;vt(Qt)&&ht.add(e.getLocaleSpecificMessage(mt),Qt)}var rn=0,sa=0,ba=[];ht.forEach(function(oa,pt){ba.length!==0&&ba.push({value:""}),ba.push({value:"/* ".concat(pt," */")});for(var _t=0,Mt=oa;_t<Mt.length;_t++){var It=Mt[_t],rt=void 0;zr.has(It.name)?rt='"'.concat(It.name,'": ').concat(JSON.stringify(zr.get(It.name))).concat((sa+=1)===zr.size?"":","):rt='// "'.concat(It.name,'": ').concat(JSON.stringify(Vr(It)),","),ba.push({value:rt,description:"/* ".concat(It.description&&e.getLocaleSpecificMessage(It.description)||It.name," */")}),rn=Math.max(rt.length,rn)}});var Jn=gt(2),na=[];na.push("{"),na.push("".concat(Jn,'"compilerOptions": {')),na.push("".concat(Jn).concat(Jn,"/* ").concat(e.getLocaleSpecificMessage(e.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file)," */")),na.push("");for(var Wn=0,en=ba;Wn<en.length;Wn++){var St=en[Wn],Ut=St.value,qt=St.description,Mn=qt===void 0?"":qt;na.push(Ut&&"".concat(Jn).concat(Jn).concat(Ut).concat(Mn&&gt(rn-Ut.length+2)+Mn))}if(xr.length){na.push("".concat(Jn,"},")),na.push("".concat(Jn,'"files": ['));for(var dn=0;dn<xr.length;dn++)na.push("".concat(Jn).concat(Jn).concat(JSON.stringify(xr[dn])).concat(dn===xr.length-1?"":","));na.push("".concat(Jn,"]"))}else na.push("".concat(Jn,"}"));return na.push("}"),na.join(Nr)+Nr}}e.generateTSConfig=Xe;function De(tr,xr){var Nr={},zr=k().optionsNameMap;for(var gt in tr)e.hasProperty(tr,gt)&&(Nr[gt]=Ae(zr.get(gt.toLowerCase()),tr[gt],xr));return Nr.configFilePath&&(Nr.configFilePath=xr(Nr.configFilePath)),Nr}e.convertToOptionsWithAbsolutePaths=De;function Ae(tr,xr,Nr){if(tr&&!lr(xr)){if(tr.type==="list"){var zr=xr;if(tr.element.isFilePath&&zr.length)return zr.map(Nr)}else if(tr.isFilePath)return Nr(xr)}return xr}function Ye(tr,xr,Nr,zr,gt,vt,ut,ht,xt){return kr(tr,void 0,xr,Nr,zr,xt,gt,vt,ut,ht)}e.parseJsonConfigFileContent=Ye;function Dr(tr,xr,Nr,zr,gt,vt,ut,ht,xt){return kr(void 0,tr,xr,Nr,zr,xt,gt,vt,ut,ht)}e.parseJsonSourceFileConfigFileContent=Dr;function br(tr,xr){xr&&Object.defineProperty(tr,"configFile",{enumerable:!1,writable:!1,value:xr})}e.setConfigFileInOptions=br;function lr(tr){return tr==null}function Ar(tr,xr){return e.getDirectoryPath(e.getNormalizedAbsolutePath(tr,xr))}function kr(tr,xr,Nr,zr,gt,vt,ut,ht,xt,wt){gt===void 0&&(gt={}),ht===void 0&&(ht=[]),xt===void 0&&(xt=[]),e.Debug.assert(tr===void 0&&xr!==void 0||tr!==void 0&&xr===void 0);var Qt=[],mt=Fe(tr,xr,Nr,zr,ut,ht,Qt,wt),rn=mt.raw,sa=e.extend(gt,mt.options||{}),ba=vt&&mt.watchOptions?e.extend(vt,mt.watchOptions):mt.watchOptions||vt;sa.configFilePath=ut&&e.normalizeSlashes(ut);var Jn=Wn();xr&&(xr.configFileSpecs=Jn),br(sa,xr);var na=e.normalizePath(ut?Ar(ut,zr):zr);return{options:sa,watchOptions:ba,fileNames:en(na),projectReferences:St(na),typeAcquisition:mt.typeAcquisition||lt(),raw:rn,errors:Qt,wildcardDirectories:Ze(Jn,na,Nr.useCaseSensitiveFileNames),compileOnSave:!!rn.compileOnSave};function Wn(){var oa=Mn("references",function(Mi){return typeof Mi=="object"},"object"),pt=Ut(qt("files"));if(pt){var _t=oa==="no-prop"||e.isArray(oa)&&oa.length===0,Mt=e.hasProperty(rn,"extends");if(pt.length===0&&_t&&!Mt)if(xr){var It=ut||"tsconfig.json",rt=e.Diagnostics.The_files_list_in_config_file_0_is_empty,Cn=e.firstDefined(e.getTsConfigPropArray(xr,"files"),function(Mi){return Mi.initializer}),Qn=Cn?e.createDiagnosticForNodeInSourceFile(xr,Cn,rt,It):e.createCompilerDiagnostic(rt,It);Qt.push(Qn)}else dn(e.Diagnostics.The_files_list_in_config_file_0_is_empty,ut||"tsconfig.json")}var Ra=Ut(qt("include")),Ci=qt("exclude"),_i=Ut(Ci);if(Ci==="no-prop"&&rn.compilerOptions){var va=rn.compilerOptions.outDir,yi=rn.compilerOptions.declarationDir;(va||yi)&&(_i=[va,yi].filter(function(Mi){return!!Mi}))}pt===void 0&&Ra===void 0&&(Ra=["**/*"]);var ro,Ka;return Ra&&(ro=Ne(Ra,Qt,!0,xr,"include")),_i&&(Ka=Ne(_i,Qt,!1,xr,"exclude")),{filesSpecs:pt,includeSpecs:Ra,excludeSpecs:_i,validatedFilesSpec:e.filter(pt,e.isString),validatedIncludeSpecs:ro,validatedExcludeSpecs:Ka,pathPatterns:void 0}}function en(oa){var pt=fe(Jn,oa,sa,Nr,xt);return Hr(pt,ur(rn),ht)&&Qt.push(Me(Jn,ut)),pt}function St(oa){var pt,_t=Mn("references",function(Cn){return typeof Cn=="object"},"object");if(e.isArray(_t))for(var Mt=0,It=_t;Mt<It.length;Mt++){var rt=It[Mt];typeof rt.path!="string"?dn(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(pt||(pt=[])).push({path:e.getNormalizedAbsolutePath(rt.path,oa),originalPath:rt.path,prepend:rt.prepend,circular:rt.circular})}return pt}function Ut(oa){return e.isArray(oa)?oa:void 0}function qt(oa){return Mn(oa,e.isString,"string")}function Mn(oa,pt,_t){if(e.hasProperty(rn,oa)&&!lr(rn[oa]))if(e.isArray(rn[oa])){var Mt=rn[oa];return!xr&&!e.every(Mt,pt)&&Qt.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,oa,_t)),Mt}else return dn(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,oa,"Array"),"not-array";return"no-prop"}function dn(oa,pt,_t){xr||Qt.push(e.createCompilerDiagnostic(oa,pt,_t))}}function Ke(tr){return tr.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function Me(tr,xr){var Nr=tr.includeSpecs,zr=tr.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,xr||"tsconfig.json",JSON.stringify(Nr||[]),JSON.stringify(zr||[]))}function Hr(tr,xr,Nr){return tr.length===0&&xr&&(!Nr||Nr.length===0)}function ur(tr){return!e.hasProperty(tr,"files")&&!e.hasProperty(tr,"references")}e.canJsonReportNoInputFiles=ur;function gr(tr,xr,Nr,zr,gt){var vt=zr.length;return Hr(tr,gt)?zr.push(Me(Nr,xr)):e.filterMutate(zr,function(ut){return!Ke(ut)}),vt!==zr.length}e.updateErrorForNoInputFiles=gr;function de(tr){return!!tr.options}function Fe(tr,xr,Nr,zr,gt,vt,ut,ht){var xt;zr=e.normalizeSlashes(zr);var wt=e.getNormalizedAbsolutePath(gt||"",zr);if(vt.indexOf(wt)>=0)return ut.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,Gt(Gt([],vt,!0),[wt],!1).join(" -> "))),{raw:tr||Y(xr,ut)};var Qt=tr?$e(tr,Nr,zr,gt,ut):Sr(xr,Nr,zr,gt,ut);if(!((xt=Qt.options)===null||xt===void 0)&&xt.paths&&(Qt.options.pathsBasePath=zr),Qt.extendedConfigPath){vt=vt.concat([wt]);var mt=He(xr,Qt.extendedConfigPath,Nr,vt,ut,ht);if(mt&&de(mt)){var rn=mt.raw,sa=Qt.raw,ba,Jn=function(na){!sa[na]&&rn[na]&&(sa[na]=e.map(rn[na],function(Wn){return e.isRootedDiskPath(Wn)?Wn:e.combinePaths(ba||(ba=e.convertToRelativePath(e.getDirectoryPath(Qt.extendedConfigPath),zr,e.createGetCanonicalFileName(Nr.useCaseSensitiveFileNames))),Wn)}))};Jn("include"),Jn("exclude"),Jn("files"),sa.compileOnSave===void 0&&(sa.compileOnSave=rn.compileOnSave),Qt.options=e.assign({},mt.options,Qt.options),Qt.watchOptions=Qt.watchOptions&&mt.watchOptions?e.assign({},mt.watchOptions,Qt.watchOptions):Qt.watchOptions||mt.watchOptions}}return Qt}function $e(tr,xr,Nr,zr,gt){e.hasProperty(tr,"excludes")&&gt.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var vt=Yr(tr.compilerOptions,Nr,gt,zr),ut=tt(tr.typeAcquisition||tr.typingOptions,Nr,gt,zr),ht=Rt(tr.watchOptions,Nr,gt);tr.compileOnSave=pr(tr,Nr,gt);var xt;if(tr.extends)if(!e.isString(tr.extends))gt.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));else{var wt=zr?Ar(zr,Nr):Nr;xt=Pr(tr.extends,xr,wt,gt,e.createCompilerDiagnostic)}return{raw:tr,options:vt,watchOptions:ht,typeAcquisition:ut,extendedConfigPath:xt}}function Sr(tr,xr,Nr,zr,gt){var vt=Lr(zr),ut,ht,xt,wt,Qt,mt={onSetValidOptionKeyValueInParent:function(sa,ba,Jn){var na;switch(sa){case"compilerOptions":na=vt;break;case"watchOptions":na=xt||(xt={});break;case"typeAcquisition":na=ut||(ut=lt(zr));break;case"typingOptions":na=ht||(ht=lt(zr));break;default:e.Debug.fail("Unknown option")}na[ba.name]=In(ba,Nr,Jn)},onSetValidOptionKeyValueInRoot:function(sa,ba,Jn,na){switch(sa){case"extends":var Wn=zr?Ar(zr,Nr):Nr;wt=Pr(Jn,xr,Wn,gt,function(en,St){return e.createDiagnosticForNodeInSourceFile(tr,na,en,St)});return}},onSetUnknownOptionKeyValueInRoot:function(sa,ba,Jn,na){sa==="excludes"&&gt.push(e.createDiagnosticForNodeInSourceFile(tr,ba,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)),e.find(p,function(Wn){return Wn.name===sa})&&(Qt=e.append(Qt,ba))}},rn=R(tr,gt,!0,mt);return ut||(ht?ut=ht.enableAutoDiscovery!==void 0?{enable:ht.enableAutoDiscovery,include:ht.include,exclude:ht.exclude}:ht:ut=lt(zr)),Qt&&rn&&rn.compilerOptions===void 0&&gt.push(e.createDiagnosticForNodeInSourceFile(tr,Qt[0],e.Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,e.getTextOfPropertyName(Qt[0]))),{raw:rn,options:vt,watchOptions:xt,typeAcquisition:ut,extendedConfigPath:wt}}function Pr(tr,xr,Nr,zr,gt){if(tr=e.normalizeSlashes(tr),e.isRootedDiskPath(tr)||e.startsWith(tr,"./")||e.startsWith(tr,"../")){var vt=e.getNormalizedAbsolutePath(tr,Nr);if(!xr.fileExists(vt)&&!e.endsWith(vt,".json")&&(vt="".concat(vt,".json"),!xr.fileExists(vt))){zr.push(gt(e.Diagnostics.File_0_not_found,tr));return}return vt}var ut=e.nodeModuleNameResolver(tr,e.combinePaths(Nr,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},xr,void 0,void 0,!0);if(ut.resolvedModule)return ut.resolvedModule.resolvedFileName;zr.push(gt(e.Diagnostics.File_0_not_found,tr))}function He(tr,xr,Nr,zr,gt,vt){var ut,ht=Nr.useCaseSensitiveFileNames?xr:e.toFileNameLowerCase(xr),xt,wt,Qt;if(vt&&(xt=vt.get(ht))?(wt=xt.extendedResult,Qt=xt.extendedConfig):(wt=T(xr,function(mt){return Nr.readFile(mt)}),wt.parseDiagnostics.length||(Qt=Fe(void 0,wt,Nr,e.getDirectoryPath(xr),e.getBaseFileName(xr),zr,gt,vt)),vt&&vt.set(ht,{extendedResult:wt,extendedConfig:Qt})),tr&&(tr.extendedSourceFiles=[wt.fileName],wt.extendedSourceFiles&&(ut=tr.extendedSourceFiles).push.apply(ut,wt.extendedSourceFiles)),wt.parseDiagnostics.length){gt.push.apply(gt,wt.parseDiagnostics);return}return Qt}function pr(tr,xr,Nr){if(!e.hasProperty(tr,e.compileOnSaveCommandLineOption.name))return!1;var zr=bn(e.compileOnSaveCommandLineOption,tr.compileOnSave,xr,Nr);return typeof zr=="boolean"&&zr}function Jr(tr,xr,Nr){var zr=[],gt=Yr(tr,xr,zr,Nr);return{options:gt,errors:zr}}e.convertCompilerOptionsFromJson=Jr;function ze(tr,xr,Nr){var zr=[],gt=tt(tr,xr,zr,Nr);return{options:gt,errors:zr}}e.convertTypeAcquisitionFromJson=ze;function Lr(tr){var xr=tr&&e.getBaseFileName(tr)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{};return xr}function Yr(tr,xr,Nr,zr){var gt=Lr(zr);return cn(P(),tr,xr,gt,e.compilerOptionsDidYouMeanDiagnostics,Nr),zr&&(gt.configFilePath=e.normalizeSlashes(zr)),gt}function lt(tr){return{enable:!!tr&&e.getBaseFileName(tr)==="jsconfig.json",include:[],exclude:[]}}function tt(tr,xr,Nr,zr){var gt=lt(zr),vt=h(tr);return cn(j(),vt,xr,gt,D,Nr),gt}function Rt(tr,xr,Nr){return cn(ue(),tr,xr,void 0,u,Nr)}function cn(tr,xr,Nr,zr,gt,vt){if(xr){for(var ut in xr){var ht=tr.get(ut);ht?(zr||(zr={}))[ht.name]=bn(ht,xr[ut],Nr,vt):vt.push(M(ut,gt,e.createCompilerDiagnostic))}return zr}}function bn(tr,xr,Nr,zr){if(Te(tr,xr)){var gt=tr.type;if(gt==="list"&&e.isArray(xr))return sr(tr,xr,Nr,zr);if(!e.isString(gt))return Or(tr,xr,zr);var vt=ir(tr,xr,zr);return lr(vt)?vt:zn(tr,Nr,vt)}else zr.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,tr.name,K(tr)))}e.convertJsonOption=bn;function In(tr,xr,Nr){if(!lr(Nr)){if(tr.type==="list"){var zr=tr;return zr.element.isFilePath||!e.isString(zr.element.type)?e.filter(e.map(Nr,function(gt){return In(zr.element,xr,gt)}),function(gt){return!!gt}):Nr}else if(!e.isString(tr.type))return tr.type.get(e.isString(Nr)?Nr.toLowerCase():Nr);return zn(tr,xr,Nr)}}function zn(tr,xr,Nr){return tr.isFilePath&&(Nr=e.getNormalizedAbsolutePath(Nr,xr),Nr===""&&(Nr=".")),Nr}function ir(tr,xr,Nr){var zr;if(!lr(xr)){var gt=(zr=tr.extraValidation)===null||zr===void 0?void 0:zr.call(tr,xr);if(!gt)return xr;Nr.push(e.createCompilerDiagnostic.apply(void 0,gt))}}function Or(tr,xr,Nr){if(!lr(xr)){var zr=xr.toLowerCase(),gt=tr.type.get(zr);if(gt!==void 0)return ir(tr,gt,Nr);Nr.push(v(tr))}}function sr(tr,xr,Nr,zr){return e.filter(e.map(xr,function(gt){return bn(tr.element,gt,Nr,zr)}),function(gt){return!!gt})}var ye=/(^|\/)\*\*\/?$/,or=/^[^*?]*(?=\/[^/]*[*?])/;function fe(tr,xr,Nr,zr,gt){gt===void 0&&(gt=e.emptyArray),xr=e.normalizePath(xr);var vt=e.createGetCanonicalFileName(zr.useCaseSensitiveFileNames),ut=new e.Map,ht=new e.Map,xt=new e.Map,wt=tr.validatedFilesSpec,Qt=tr.validatedIncludeSpecs,mt=tr.validatedExcludeSpecs,rn=e.getSupportedExtensions(Nr,gt),sa=e.getSupportedExtensionsWithJsonIfResolveJsonModule(Nr,rn);if(wt)for(var ba=0,Jn=wt;ba<Jn.length;ba++){var na=Jn[ba],Wn=e.getNormalizedAbsolutePath(na,xr);ut.set(vt(Wn),Wn)}var en;if(Qt&&Qt.length>0)for(var St=function(oa){if(e.fileExtensionIs(oa,".json")){if(!en){var pt=Qt.filter(function(Cn){return e.endsWith(Cn,".json")}),_t=e.map(e.getRegularExpressionsForWildcards(pt,xr,"files"),function(Cn){return"^".concat(Cn,"$")});en=_t?_t.map(function(Cn){return e.getRegexFromPattern(Cn,zr.useCaseSensitiveFileNames)}):e.emptyArray}var Mt=e.findIndex(en,function(Cn){return Cn.test(oa)});if(Mt!==-1){var It=vt(oa);!ut.has(It)&&!xt.has(It)&&xt.set(It,oa)}return"continue"}if(fr(oa,ut,ht,rn,vt))return"continue";dr(oa,ht,rn,vt);var rt=vt(oa);!ut.has(rt)&&!ht.has(rt)&&ht.set(rt,oa)},Ut=0,qt=zr.readDirectory(xr,e.flatten(sa),mt,Qt,void 0);Ut<qt.length;Ut++){var Wn=qt[Ut];St(Wn)}var Mn=e.arrayFrom(ut.values()),dn=e.arrayFrom(ht.values());return Mn.concat(dn,e.arrayFrom(xt.values()))}e.getFileNamesFromConfigSpecs=fe;function je(tr,xr,Nr,zr,gt){var vt=xr.validatedFilesSpec,ut=xr.validatedIncludeSpecs,ht=xr.validatedExcludeSpecs;if(!e.length(ut)||!e.length(ht))return!1;Nr=e.normalizePath(Nr);var xt=e.createGetCanonicalFileName(zr);if(vt)for(var wt=0,Qt=vt;wt<Qt.length;wt++){var mt=Qt[wt];if(xt(e.getNormalizedAbsolutePath(mt,Nr))===tr)return!1}return $(tr,ht,zr,gt,Nr)}e.isExcludedFile=je;function Ee(tr){var xr=e.startsWith(tr,"**/")?0:tr.indexOf("/**/");if(xr===-1)return!1;var Nr=e.endsWith(tr,"/..")?tr.length:tr.lastIndexOf("/../");return Nr>xr}function We(tr,xr,Nr,zr){return $(tr,e.filter(xr,function(gt){return!Ee(gt)}),Nr,zr)}e.matchesExclude=We;function $(tr,xr,Nr,zr,gt){var vt=e.getRegularExpressionForWildcard(xr,e.combinePaths(e.normalizePath(zr),gt),"exclude"),ut=vt&&e.getRegexFromPattern(vt,Nr);return ut?ut.test(tr)?!0:!e.hasExtension(tr)&&ut.test(e.ensureTrailingDirectorySeparator(tr)):!1}function Ne(tr,xr,Nr,zr,gt){return tr.filter(function(ut){if(!e.isString(ut))return!1;var ht=me(ut,Nr);return ht!==void 0&&xr.push(vt.apply(void 0,ht)),ht===void 0});function vt(ut,ht){var xt=e.getTsConfigPropArrayElementValue(zr,gt,ht);return xt?e.createDiagnosticForNodeInSourceFile(zr,xt,ut,ht):e.createCompilerDiagnostic(ut,ht)}}function me(tr,xr){if(xr&&ye.test(tr))return[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,tr];if(Ee(tr))return[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,tr]}function Ze(tr,xr,Nr){var zr=tr.validatedIncludeSpecs,gt=tr.validatedExcludeSpecs,vt=e.getRegularExpressionForWildcard(gt,xr,"exclude"),ut=vt&&new RegExp(vt,Nr?"":"i"),ht={};if(zr!==void 0){for(var xt=[],wt=0,Qt=zr;wt<Qt.length;wt++){var mt=Qt[wt],rn=e.normalizePath(e.combinePaths(xr,mt));if(!(ut&&ut.test(rn))){var sa=Cr(rn,Nr);if(sa){var ba=sa.key,Jn=sa.flags,na=ht[ba];(na===void 0||na<Jn)&&(ht[ba]=Jn,Jn===1&&xt.push(ba))}}}for(var ba in ht)if(e.hasProperty(ht,ba))for(var Wn=0,en=xt;Wn<en.length;Wn++){var St=en[Wn];ba!==St&&e.containsPath(St,ba,xr,!Nr)&&delete ht[ba]}}return ht}function Cr(tr,xr){var Nr=or.exec(tr);if(Nr){var zr=tr.indexOf("?"),gt=tr.indexOf("*"),vt=tr.lastIndexOf(e.directorySeparator);return{key:xr?Nr[0]:e.toFileNameLowerCase(Nr[0]),flags:zr!==-1&&zr<vt||gt!==-1&&gt<vt?1:0}}if(e.isImplicitGlob(tr))return{key:xr?tr:e.toFileNameLowerCase(tr),flags:1}}function fr(tr,xr,Nr,zr,gt){var vt=e.forEach(zr,function(Qt){return e.fileExtensionIsOneOf(tr,Qt)?Qt:void 0});if(!vt)return!1;for(var ut=0,ht=vt;ut<ht.length;ut++){var xt=ht[ut];if(e.fileExtensionIs(tr,xt))return!1;var wt=gt(e.changeExtension(tr,xt));if(xr.has(wt)||Nr.has(wt)){if(xt===".d.ts"&&(e.fileExtensionIs(tr,".js")||e.fileExtensionIs(tr,".jsx")))continue;return!0}}return!1}function dr(tr,xr,Nr,zr){var gt=e.forEach(Nr,function(xt){return e.fileExtensionIsOneOf(tr,xt)?xt:void 0});if(gt)for(var vt=gt.length-1;vt>=0;vt--){var ut=gt[vt];if(e.fileExtensionIs(tr,ut))return;var ht=zr(e.changeExtension(tr,ut));xr.delete(ht)}}function et(tr){var xr={};for(var Nr in tr)if(tr.hasOwnProperty(Nr)){var zr=I(Nr);zr!==void 0&&(xr[Nr]=yt(tr[Nr],zr))}return xr}e.convertCompilerOptionsForTelemetry=et;function yt(tr,xr){switch(xr.type){case"object":return"";case"string":return"";case"number":return typeof tr=="number"?tr:"";case"boolean":return typeof tr=="boolean"?tr:"";case"list":var Nr=xr.element;return e.isArray(tr)?tr.map(function(zr){return yt(zr,Nr)}):"";default:return e.forEachEntry(xr.type,function(zr,gt){if(zr===tr)return gt})}}function Vr(tr){switch(tr.type){case"number":return 1;case"boolean":return!0;case"string":return tr.isFilePath?"./":"";case"list":return[];case"object":return{};default:var xr=tr.type.keys().next();return xr.done?e.Debug.fail("Expected 'option.type' to have entries."):xr.value}}}(jr||(jr={})),function(e){function n(sr){sr.trace(e.formatMessage.apply(void 0,arguments))}e.trace=n;function f(sr,ye){return!!sr.traceResolution&&ye.trace!==void 0}e.isTraceEnabled=f;function p(sr,ye){var or;if(ye&&sr){var fe=sr.packageJsonContent;typeof fe.name=="string"&&typeof fe.version=="string"&&(or={name:fe.name,subModuleName:ye.path.slice(sr.packageDirectory.length+e.directorySeparator.length),version:fe.version})}return ye&&{path:ye.path,extension:ye.ext,packageId:or}}function a(sr){return p(void 0,sr)}function d(sr){if(sr)return e.Debug.assert(sr.packageId===void 0),{path:sr.path,ext:sr.extension}}var k;(function(sr){sr[sr.TypeScript=0]="TypeScript",sr[sr.JavaScript=1]="JavaScript",sr[sr.Json=2]="Json",sr[sr.TSConfig=3]="TSConfig",sr[sr.DtsOnly=4]="DtsOnly"})(k||(k={}));function J(sr){if(sr)return e.Debug.assert(e.extensionIsTS(sr.extension)),{fileName:sr.path,packageId:sr.packageId}}function h(sr,ye,or,fe){var je;return fe?((je=fe.failedLookupLocations).push.apply(je,or),fe):{resolvedModule:sr&&{resolvedFileName:sr.path,originalPath:sr.originalPath===!0?void 0:sr.originalPath,extension:sr.extension,isExternalLibraryImport:ye,packageId:sr.packageId},failedLookupLocations:or}}function v(sr,ye,or,fe){if(!e.hasProperty(sr,ye)){fe.traceEnabled&&n(fe.host,e.Diagnostics.package_json_does_not_have_a_0_field,ye);return}var je=sr[ye];if(typeof je!==or||je===null){fe.traceEnabled&&n(fe.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,ye,or,je===null?"null":typeof je);return}return je}function A(sr,ye,or,fe){var je=v(sr,ye,"string",fe);if(je!==void 0){if(!je){fe.traceEnabled&&n(fe.host,e.Diagnostics.package_json_had_a_falsy_0_field,ye);return}var Ee=e.normalizePath(e.combinePaths(or,je));return fe.traceEnabled&&n(fe.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,ye,je,Ee),Ee}}function z(sr,ye,or){return A(sr,"typings",ye,or)||A(sr,"types",ye,or)}function ie(sr,ye,or){return A(sr,"tsconfig",ye,or)}function b(sr,ye,or){return A(sr,"main",ye,or)}function M(sr,ye){var or=v(sr,"typesVersions","object",ye);if(or!==void 0)return ye.traceEnabled&&n(ye.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),or}function S(sr,ye){var or=M(sr,ye);if(or!==void 0){if(ye.traceEnabled)for(var fe in or)e.hasProperty(or,fe)&&!e.VersionRange.tryParse(fe)&&n(ye.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,fe);var je=H(or);if(!je){ye.traceEnabled&&n(ye.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor);return}var Ee=je.version,We=je.paths;if(typeof We!="object"){ye.traceEnabled&&n(ye.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['".concat(Ee,"']"),"object",typeof We);return}return je}}var B;function H(sr){B||(B=new e.Version(e.version));for(var ye in sr)if(e.hasProperty(sr,ye)){var or=e.VersionRange.tryParse(ye);if(or!==void 0&&or.test(B))return{version:ye,paths:sr[ye]}}}e.getPackageJsonTypesVersionsPaths=H;function I(sr,ye){if(sr.typeRoots)return sr.typeRoots;var or;if(sr.configFilePath?or=e.getDirectoryPath(sr.configFilePath):ye.getCurrentDirectory&&(or=ye.getCurrentDirectory()),or!==void 0)return w(or,ye)}e.getEffectiveTypeRoots=I;function w(sr,ye){if(!ye.directoryExists)return[e.combinePaths(sr,x)];var or;return e.forEachAncestorDirectory(e.normalizePath(sr),function(fe){var je=e.combinePaths(fe,x);ye.directoryExists(je)&&(or||(or=[])).push(je)}),or}var x=e.combinePaths("node_modules","@types");function O(sr,ye,or){var fe=typeof or.useCaseSensitiveFileNames=="function"?or.useCaseSensitiveFileNames():or.useCaseSensitiveFileNames;return e.comparePaths(sr,ye,!fe)===0}function q(sr,ye,or,fe,je,Ee){var We=f(or,fe);je&&(or=je.commandLine.options);var $=ye?e.getDirectoryPath(ye):void 0,Ne=$?Ee&&Ee.getOrCreateCacheForDirectory($,je):void 0,me=Ne&&Ne.get(sr,void 0);if(me)return We&&(n(fe,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1,sr,ye),je&&n(fe,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,je.sourceFile.fileName),n(fe,e.Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,sr,$),zr(me)),me;var Ze=I(or,fe);We&&(ye===void 0?Ze===void 0?n(fe,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,sr):n(fe,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,sr,Ze):Ze===void 0?n(fe,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,sr,ye):n(fe,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,sr,ye,Ze),je&&n(fe,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,je.sourceFile.fileName));var Cr=[],fr=e.getEmitModuleResolutionKind(or)===e.ModuleResolutionKind.Node12?j.Node12Default:e.getEmitModuleResolutionKind(or)===e.ModuleResolutionKind.NodeNext?j.NodeNextDefault:j.None,dr={compilerOptions:or,host:fe,traceEnabled:We,failedLookupLocations:Cr,packageJsonInfoCache:Ee,features:fr,conditions:["node","require","types"]},et=gt(),yt=!0;et||(et=vt(),yt=!1);var Vr;if(et){var tr=et.fileName,xr=et.packageId,Nr=or.preserveSymlinks?tr:Ie(tr,fe,We);Vr={primary:yt,resolvedFileName:Nr,originalPath:O(tr,Nr,fe)?void 0:tr,packageId:xr,isExternalLibraryImport:he(tr)}}return me={resolvedTypeReferenceDirective:Vr,failedLookupLocations:Cr},Ne==null||Ne.set(sr,void 0,me),We&&zr(me),me;function zr(ut){var ht;!((ht=ut.resolvedTypeReferenceDirective)===null||ht===void 0)&&ht.resolvedFileName?ut.resolvedTypeReferenceDirective.packageId?n(fe,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,sr,ut.resolvedTypeReferenceDirective.resolvedFileName,e.packageIdToString(ut.resolvedTypeReferenceDirective.packageId),ut.resolvedTypeReferenceDirective.primary):n(fe,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,sr,ut.resolvedTypeReferenceDirective.resolvedFileName,ut.resolvedTypeReferenceDirective.primary):n(fe,e.Diagnostics.Type_reference_directive_0_was_not_resolved,sr)}function gt(){if(Ze&&Ze.length)return We&&n(fe,e.Diagnostics.Resolving_with_primary_search_path_0,Ze.join(", ")),e.firstDefined(Ze,function(ut){var ht=e.combinePaths(ut,sr),xt=e.getDirectoryPath(ht),wt=e.directoryProbablyExists(xt,fe);return!wt&&We&&n(fe,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,xt),J(Ye(k.DtsOnly,ht,!wt,dr))});We&&n(fe,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function vt(){var ut=ye&&e.getDirectoryPath(ye);if(ut!==void 0){We&&n(fe,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,ut);var ht;if(e.isExternalModuleNameRelative(sr)){var wt=e.normalizePathAndParts(e.combinePaths(ut,sr)).path;ht=Ge(k.DtsOnly,wt,!1,dr,!0)}else{var xt=Pr(k.DtsOnly,sr,ut,dr,void 0,void 0);ht=xt&&xt.value}return J(ht)}else We&&n(fe,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}e.resolveTypeReferenceDirective=q;function Z(sr,ye){if(sr.types)return sr.types;var or=[];if(ye.directoryExists&&ye.getDirectories){var fe=I(sr,ye);if(fe)for(var je=0,Ee=fe;je<Ee.length;je++){var We=Ee[je];if(ye.directoryExists(We))for(var $=0,Ne=ye.getDirectories(We);$<Ne.length;$++){var me=Ne[$],Ze=e.normalizePath(me),Cr=e.combinePaths(We,Ze,"package.json"),fr=ye.fileExists(Cr)&&e.readJson(Cr,ye).typings===null;if(!fr){var dr=e.getBaseFileName(Ze);dr.charCodeAt(0)!==46&&or.push(dr)}}}}return or}e.getAutomaticTypeDirectiveNames=Z;function ne(sr){var ye=new e.Map,or=new e.Map;return{getOwnMap:fe,redirectsMap:or,getOrCreateMapOfCacheRedirects:We,clear:$,setOwnOptions:je,setOwnMap:Ee};function fe(){return ye}function je(Ne){sr=Ne}function Ee(Ne){ye=Ne}function We(Ne){if(!Ne)return ye;var me=Ne.sourceFile.path,Ze=or.get(me);return Ze||(Ze=!sr||e.optionsHaveModuleResolutionChanges(sr,Ne.commandLine.options)?new e.Map:ye,or.set(me,Ze)),Ze}function $(){ye.clear(),or.clear()}}e.createCacheWithRedirects=ne;function F(sr,ye){var or;return{getPackageJsonInfo:fe,setPackageJsonInfo:je,clear:Ee,entries:We};function fe($){return or==null?void 0:or.get(e.toPath($,sr,ye))}function je($,Ne){(or||(or=new e.Map)).set(e.toPath($,sr,ye),Ne)}function Ee(){or=void 0}function We(){var $=or==null?void 0:or.entries();return $?e.arrayFrom($):[]}}function Q(sr,ye,or,fe){var je=sr.getOrCreateMapOfCacheRedirects(ye),Ee=je.get(or);return Ee||(Ee=fe(),je.set(or,Ee)),Ee}function V(sr,ye,or){if(sr.configFile){if(ye.redirectsMap.size===0)e.Debug.assert(!or||or.redirectsMap.size===0),e.Debug.assert(ye.getOwnMap().size===0),e.Debug.assert(!or||or.getOwnMap().size===0),ye.redirectsMap.set(sr.configFile.path,ye.getOwnMap()),or==null||or.redirectsMap.set(sr.configFile.path,or.getOwnMap());else{e.Debug.assert(!or||or.redirectsMap.size>0);var fe={sourceFile:sr.configFile,commandLine:{options:sr}};ye.setOwnMap(ye.getOrCreateMapOfCacheRedirects(fe)),or==null||or.setOwnMap(or.getOrCreateMapOfCacheRedirects(fe))}ye.setOwnOptions(sr),or==null||or.setOwnOptions(sr)}}function re(sr,ye,or){return{getOrCreateCacheForDirectory:Ee,clear:fe,update:je};function fe(){or.clear()}function je(We){V(We,or)}function Ee(We,$){var Ne=e.toPath(We,sr,ye);return Q(or,$,Ne,function(){return T()})}}function T(){var sr=new e.Map,ye=new e.Map,or={get:function(je,Ee){return sr.get(fe(je,Ee))},set:function(je,Ee,We){return sr.set(fe(je,Ee),We),or},delete:function(je,Ee){return sr.delete(fe(je,Ee)),or},has:function(je,Ee){return sr.has(fe(je,Ee))},forEach:function(je){return sr.forEach(function(Ee,We){var $=ye.get(We),Ne=$[0],me=$[1];return je(Ee,Ne,me)})},size:function(){return sr.size}};return or;function fe(je,Ee){var We=Ee===void 0?je:"".concat(Ee,"|").concat(je);return ye.set(We,[je,Ee]),We}}e.createModeAwareCache=T;function N(sr,ye,or){e.Debug.assert(ye.length===or.length);for(var fe=T(),je=0;je<ye.length;++je)fe.set(ye[je],e.getModeForResolutionAtIndex(sr,je),or[je]);return fe}e.zipToModeAwareCache=N;function y(sr,ye,or,fe,je){var Ee=re(sr,ye,fe||(fe=ne(or)));je||(je=ne(or));var We=F(sr,ye);return Rn(Rn(Rn({},We),Ee),{getOrCreateCacheForModuleName:me,clear:$,update:Ne,getPackageJsonInfoCache:function(){return We}});function $(){Ee.clear(),je.clear(),We.clear()}function Ne(Cr){V(Cr,fe,je)}function me(Cr,fr,dr){return e.Debug.assert(!e.isExternalModuleNameRelative(Cr)),Q(je,dr,fr===void 0?Cr:"".concat(fr,"|").concat(Cr),Ze)}function Ze(){var Cr=new e.Map;return{get:fr,set:dr};function fr(yt){return Cr.get(e.toPath(yt,sr,ye))}function dr(yt,Vr){var tr=e.toPath(yt,sr,ye);if(!Cr.has(tr)){Cr.set(tr,Vr);for(var xr=Vr.resolvedModule&&(Vr.resolvedModule.originalPath||Vr.resolvedModule.resolvedFileName),Nr=xr&&et(tr,xr),zr=tr;zr!==Nr;){var gt=e.getDirectoryPath(zr);if(gt===zr||Cr.has(gt))break;Cr.set(gt,Vr),zr=gt}}}function et(yt,Vr){for(var tr=e.toPath(e.getDirectoryPath(Vr),sr,ye),xr=0,Nr=Math.min(yt.length,tr.length);xr<Nr&&yt.charCodeAt(xr)===tr.charCodeAt(xr);)xr++;if(xr===yt.length&&(tr.length===xr||tr[xr]===e.directorySeparator))return yt;var zr=e.getRootLength(yt);if(!(xr<zr)){var gt=yt.lastIndexOf(e.directorySeparator,xr-1);if(gt!==-1)return yt.substr(0,Math.max(gt,zr))}}}}e.createModuleResolutionCache=y;function D(sr,ye,or,fe,je){var Ee=re(sr,ye,je||(je=ne(or)));return fe||(fe=F(sr,ye)),Rn(Rn(Rn({},fe),Ee),{clear:We});function We(){Ee.clear(),fe.clear()}}e.createTypeReferenceDirectiveResolutionCache=D;function C(sr,ye,or,fe){var je=e.getDirectoryPath(ye),Ee=or&&or.getOrCreateCacheForDirectory(je);if(Ee)return Ee.get(sr,fe)}e.resolveModuleNameFromCache=C;function m(sr,ye,or,fe,je,Ee,We){var $=f(or,fe);Ee&&(or=Ee.commandLine.options),$&&(n(fe,e.Diagnostics.Resolving_module_0_from_1,sr,ye),Ee&&n(fe,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,Ee.sourceFile.fileName));var Ne=e.getDirectoryPath(ye),me=je&&je.getOrCreateCacheForDirectory(Ne,Ee),Ze=me&&me.get(sr,We);if(Ze)$&&n(fe,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,sr,Ne);else{var Cr=or.moduleResolution;if(Cr===void 0){switch(e.getEmitModuleKind(or)){case e.ModuleKind.CommonJS:Cr=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node12:Cr=e.ModuleResolutionKind.Node12;break;case e.ModuleKind.NodeNext:Cr=e.ModuleResolutionKind.NodeNext;break;default:Cr=e.ModuleResolutionKind.Classic;break}$&&n(fe,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[Cr])}else $&&n(fe,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[Cr]);switch(e.perfLogger.logStartResolveModule(sr),Cr){case e.ModuleResolutionKind.Node12:Ze=Se(sr,ye,or,fe,je,Ee,We);break;case e.ModuleResolutionKind.NodeNext:Ze=Ce(sr,ye,or,fe,je,Ee,We);break;case e.ModuleResolutionKind.NodeJs:Ze=ke(sr,ye,or,fe,je,Ee);break;case e.ModuleResolutionKind.Classic:Ze=zn(sr,ye,or,fe,je,Ee);break;default:return e.Debug.fail("Unexpected moduleResolution: ".concat(Cr))}Ze&&Ze.resolvedModule&&e.perfLogger.logInfoEvent('Module "'.concat(sr,'" resolved to "').concat(Ze.resolvedModule.resolvedFileName,'"')),e.perfLogger.logStopResolveModule(Ze&&Ze.resolvedModule?""+Ze.resolvedModule.resolvedFileName:"null"),me&&(me.set(sr,We,Ze),e.isExternalModuleNameRelative(sr)||je.getOrCreateCacheForModuleName(sr,We,Ee).set(Ne,Ze))}return $&&(Ze.resolvedModule?Ze.resolvedModule.packageId?n(fe,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,sr,Ze.resolvedModule.resolvedFileName,e.packageIdToString(Ze.resolvedModule.packageId)):n(fe,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,sr,Ze.resolvedModule.resolvedFileName):n(fe,e.Diagnostics.Module_name_0_was_not_resolved,sr)),Ze}e.resolveModuleName=m;function u(sr,ye,or,fe,je){var Ee=g(sr,ye,fe,je);return Ee?Ee.value:e.isExternalModuleNameRelative(ye)?P(sr,ye,or,fe,je):te(sr,ye,fe,je)}function g(sr,ye,or,fe){var je,Ee=fe.compilerOptions,We=Ee.baseUrl,$=Ee.paths,Ne=Ee.configFile;if($&&!e.pathIsRelative(ye)){fe.traceEnabled&&(We&&n(fe.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,We,ye),n(fe.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,ye));var me=e.getPathsBasePath(fe.compilerOptions,fe.host),Ze=Ne!=null&&Ne.configFileSpecs?(je=Ne.configFileSpecs).pathPatterns||(je.pathPatterns=e.tryParsePatterns($)):void 0;return Lr(sr,ye,me,$,Ze,or,!1,fe)}}function P(sr,ye,or,fe,je){if(je.compilerOptions.rootDirs){je.traceEnabled&&n(je.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,ye);for(var Ee=e.normalizePath(e.combinePaths(or,ye)),We,$,Ne=0,me=je.compilerOptions.rootDirs;Ne<me.length;Ne++){var Ze=me[Ne],Cr=e.normalizePath(Ze);e.endsWith(Cr,e.directorySeparator)||(Cr+=e.directorySeparator);var fr=e.startsWith(Ee,Cr)&&($===void 0||$.length<Cr.length);je.traceEnabled&&n(je.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,Cr,Ee,fr),fr&&($=Cr,We=Ze)}if($){je.traceEnabled&&n(je.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,Ee,$);var dr=Ee.substr($.length);je.traceEnabled&&n(je.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,dr,$,Ee);var et=fe(sr,Ee,!e.directoryProbablyExists(or,je.host),je);if(et)return et;je.traceEnabled&&n(je.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var yt=0,Vr=je.compilerOptions.rootDirs;yt<Vr.length;yt++){var Ze=Vr[yt];if(Ze!==We){var tr=e.combinePaths(e.normalizePath(Ze),dr);je.traceEnabled&&n(je.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,dr,Ze,tr);var xr=e.getDirectoryPath(tr),Nr=fe(sr,tr,!e.directoryProbablyExists(xr,je.host),je);if(Nr)return Nr}}je.traceEnabled&&n(je.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}}}function te(sr,ye,or,fe){var je=fe.compilerOptions.baseUrl;if(je){fe.traceEnabled&&n(fe.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,je,ye);var Ee=e.normalizePath(e.combinePaths(je,ye));return fe.traceEnabled&&n(fe.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,ye,je,Ee),or(sr,Ee,!e.directoryProbablyExists(e.getDirectoryPath(Ee),fe.host),fe)}}function ue(sr,ye,or){var fe=ge(sr,ye,or),je=fe.resolvedModule,Ee=fe.failedLookupLocations;if(!je)throw new Error("Could not resolve JS module '".concat(sr,"' starting at '").concat(ye,"'. Looked in: ").concat(Ee.join(", ")));return je.resolvedFileName}e.resolveJSModule=ue;function X(sr,ye,or){return ge(sr,ye,or).resolvedModule}e.tryResolveJSModule=X;var j;(function(sr){sr[sr.None=0]="None",sr[sr.Imports=2]="Imports",sr[sr.SelfName=4]="SelfName",sr[sr.Exports=8]="Exports",sr[sr.ExportsPatternTrailers=16]="ExportsPatternTrailers",sr[sr.AllFeatures=30]="AllFeatures",sr[sr.Node12Default=14]="Node12Default",sr[sr.NodeNextDefault=30]="NodeNextDefault",sr[sr.EsmMode=32]="EsmMode"})(j||(j={}));function Se(sr,ye,or,fe,je,Ee,We){return R(j.Node12Default,sr,ye,or,fe,je,Ee,We)}function Ce(sr,ye,or,fe,je,Ee,We){return R(j.NodeNextDefault,sr,ye,or,fe,je,Ee,We)}function R(sr,ye,or,fe,je,Ee,We,$){var Ne=e.getDirectoryPath(or),me=$===e.ModuleKind.ESNext?j.EsmMode:0;return Pe(sr|me,ye,Ne,fe,je,Ee,fe.resolveJsonModule?K:U,We)}var Y=[k.JavaScript],U=[k.TypeScript,k.JavaScript],K=Gt(Gt([],U,!0),[k.Json],!1),Te=[k.TSConfig];function ge(sr,ye,or){return Pe(j.None,sr,ye,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},or,void 0,Y,void 0)}function ke(sr,ye,or,fe,je,Ee,We){return Pe(j.None,sr,e.getDirectoryPath(ye),or,fe,je,We?Te:or.resolveJsonModule?K:U,Ee)}e.nodeModuleNameResolver=ke;function Pe(sr,ye,or,fe,je,Ee,We,$){var Ne,me,Ze=f(fe,je),Cr=[],fr={compilerOptions:fe,host:je,traceEnabled:Ze,failedLookupLocations:Cr,packageJsonInfoCache:Ee,features:sr,conditions:sr&j.EsmMode?["node","import","types"]:["node","require","types"]},dr=e.forEach(We,function(yt){return et(yt)});return h((Ne=dr==null?void 0:dr.value)===null||Ne===void 0?void 0:Ne.resolved,(me=dr==null?void 0:dr.value)===null||me===void 0?void 0:me.isExternalLibraryImport,Cr,fr.resultFromCache);function et(yt){var Vr=function(wt,Qt,mt,rn){return Ge(wt,Qt,mt,rn,!0)},tr=u(yt,ye,or,Vr,fr);if(tr)return Or({resolved:tr,isExternalLibraryImport:he(tr.path)});if(e.isExternalModuleNameRelative(ye)){var vt=e.normalizePathAndParts(e.combinePaths(or,ye)),ut=vt.path,ht=vt.parts,xt=Ge(yt,ut,!1,fr,!0);return xt&&Or({resolved:xt,isExternalLibraryImport:e.contains(ht,"node_modules")})}else{var xr;if(sr&j.Imports&&e.startsWith(ye,"#")&&(xr=de(yt,ye,or,fr,Ee,$)),!xr&&sr&j.SelfName&&(xr=ur(yt,ye,or,fr,Ee,$)),xr||(Ze&&n(je,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,ye,k[yt]),xr=Pr(yt,ye,or,fr,Ee,$)),!xr)return;var Nr=xr.value;if(!fe.preserveSymlinks&&Nr&&!Nr.originalPath){var zr=Ie(Nr.path,je,Ze),gt=O(zr,Nr.path,je)?void 0:Nr.path;Nr=Rn(Rn({},Nr),{path:zr,originalPath:gt})}return{value:Nr&&{resolved:Nr,isExternalLibraryImport:!0}}}}}function Ie(sr,ye,or){if(!ye.realpath)return sr;var fe=e.normalizePath(ye.realpath(sr));return or&&n(ye,e.Diagnostics.Resolving_real_path_for_0_result_1,sr,fe),e.Debug.assert(ye.fileExists(fe),"".concat(sr," linked to nonexistent file ").concat(fe)),fe}function Ge(sr,ye,or,fe,je){if(fe.traceEnabled&&n(fe.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,ye,k[sr]),!e.hasTrailingDirectorySeparator(ye)){if(!or){var Ee=e.getDirectoryPath(ye);e.directoryProbablyExists(Ee,fe.host)||(fe.traceEnabled&&n(fe.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Ee),or=!0)}var We=Le(sr,ye,or,fe);if(We){var $=je?ve(We.path):void 0,Ne=$?br($,!1,fe):void 0;return p(Ne,We)}}if(!or){var me=e.directoryProbablyExists(ye,fe.host);me||(fe.traceEnabled&&n(fe.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,ye),or=!0)}return Ye(sr,ye,or,fe,je)}e.nodeModulesPathPart="/node_modules/";function he(sr){return e.stringContains(sr,e.nodeModulesPathPart)}e.pathContainsNodeModules=he;function ve(sr){var ye=e.normalizePath(sr),or=ye.lastIndexOf(e.nodeModulesPathPart);if(or!==-1){var fe=or+e.nodeModulesPathPart.length,je=Ve(ye,fe);return ye.charCodeAt(fe)===64&&(je=Ve(ye,je)),ye.slice(0,je)}}e.parseNodeModuleFromPath=ve;function Ve(sr,ye){var or=sr.indexOf(e.directorySeparator,ye+1);return or===-1?ye:or}function _e(sr,ye,or,fe){return a(Le(sr,ye,or,fe))}function Le(sr,ye,or,fe){if(sr===k.Json||sr===k.TSConfig){var je=e.tryRemoveExtension(ye,".json"),Ee=je?ye.substring(je.length):"";return je===void 0&&sr===k.Json?void 0:De(je||ye,sr,Ee,or,fe)}if(!(fe.features&j.EsmMode)){var We=De(ye,sr,"",or,fe);if(We)return We}return qe(sr,ye,or,fe)}function qe(sr,ye,or,fe){if(e.hasJSFileExtension(ye)||e.fileExtensionIs(ye,".json")&&fe.compilerOptions.resolveJsonModule){var je=e.removeFileExtension(ye),Ee=ye.substring(je.length);return fe.traceEnabled&&n(fe.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,ye,Ee),De(je,sr,Ee,or,fe)}}function Xe(sr,ye,or,fe){if((sr===k.TypeScript||sr===k.DtsOnly)&&e.fileExtensionIsOneOf(ye,[".d.ts",".d.cts",".d.mts"])){var je=Ae(ye,or,fe);return je!==void 0?{path:ye,ext:e.forEach([".d.ts",".d.cts",".d.mts"],function(Ee){return e.fileExtensionIs(ye,Ee)?Ee:void 0})}:void 0}return qe(sr,ye,or,fe)}function De(sr,ye,or,fe,je){if(!fe){var Ee=e.getDirectoryPath(sr);Ee&&(fe=!e.directoryProbablyExists(Ee,je.host))}switch(ye){case k.DtsOnly:switch(or){case".mjs":case".mts":case".d.mts":return We(".d.mts");case".cjs":case".cts":case".d.cts":return We(".d.cts");case".json":return sr+=".json",We(".d.ts");default:return We(".d.ts")}case k.TypeScript:switch(or){case".mjs":case".mts":case".d.mts":return We(".mts")||We(".d.mts");case".cjs":case".cts":case".d.cts":return We(".cts")||We(".d.cts");case".json":return sr+=".json",We(".d.ts");default:return We(".ts")||We(".tsx")||We(".d.ts")}case k.JavaScript:switch(or){case".mjs":case".mts":case".d.mts":return We(".mjs");case".cjs":case".cts":case".d.cts":return We(".cjs");case".json":return We(".json");default:return We(".js")||We(".jsx")}case k.TSConfig:case k.Json:return We(".json")}function We($){var Ne=Ae(sr+$,fe,je);return Ne===void 0?void 0:{path:Ne,ext:$}}}function Ae(sr,ye,or){if(!ye){if(or.host.fileExists(sr))return or.traceEnabled&&n(or.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,sr),sr;or.traceEnabled&&n(or.host,e.Diagnostics.File_0_does_not_exist,sr)}or.failedLookupLocations.push(sr)}function Ye(sr,ye,or,fe,je){je===void 0&&(je=!0);var Ee=je?br(ye,or,fe):void 0,We=Ee&&Ee.packageJsonContent,$=Ee&&Ee.versionPaths;return p(Ee,lr(sr,ye,or,fe,We,$))}function Dr(sr,ye,or,fe){var je={host:or,compilerOptions:fe,traceEnabled:f(fe,or),failedLookupLocations:[],packageJsonInfoCache:ye,features:0,conditions:[]},Ee=e.getPathComponents(sr);for(Ee.pop();Ee.length>0;){var We=br(e.getPathFromPathComponents(Ee),!1,je);if(We)return We;Ee.pop()}}e.getPackageScopeForPath=Dr;function br(sr,ye,or){var fe,je,Ee,We=or.host,$=or.traceEnabled,Ne=e.combinePaths(sr,"package.json");if(ye){or.failedLookupLocations.push(Ne);return}var me=(fe=or.packageJsonInfoCache)===null||fe===void 0?void 0:fe.getPackageJsonInfo(Ne);if(me!==void 0){if(typeof me!="boolean")return $&&n(We,e.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,Ne),me;me&&$&&n(We,e.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,Ne),or.failedLookupLocations.push(Ne);return}var Ze=e.directoryProbablyExists(sr,We);if(Ze&&We.fileExists(Ne)){var Cr=e.readJson(Ne,We);$&&n(We,e.Diagnostics.Found_package_json_at_0,Ne);var fr=S(Cr,or),dr={packageDirectory:sr,packageJsonContent:Cr,versionPaths:fr};return(je=or.packageJsonInfoCache)===null||je===void 0||je.setPackageJsonInfo(Ne,dr),dr}else Ze&&$&&n(We,e.Diagnostics.File_0_does_not_exist,Ne),(Ee=or.packageJsonInfoCache)===null||Ee===void 0||Ee.setPackageJsonInfo(Ne,Ze),or.failedLookupLocations.push(Ne)}e.getPackageJsonInfo=br;function lr(sr,ye,or,fe,je,Ee){var We;if(je)switch(sr){case k.JavaScript:case k.Json:We=b(je,ye,fe);break;case k.TypeScript:We=z(je,ye,fe)||b(je,ye,fe);break;case k.DtsOnly:We=z(je,ye,fe);break;case k.TSConfig:We=ie(je,ye,fe);break;default:return e.Debug.assertNever(sr)}var $=function(et,yt,Vr,tr){var xr=Ae(yt,Vr,tr);if(xr){var Nr=Ar(et,xr);if(Nr)return a(Nr);tr.traceEnabled&&n(tr.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,xr)}var zr=et===k.DtsOnly?k.TypeScript:et;return Ge(zr,yt,Vr,tr,!1)},Ne=We?!e.directoryProbablyExists(e.getDirectoryPath(We),fe.host):void 0,me=or||!e.directoryProbablyExists(ye,fe.host),Ze=e.combinePaths(ye,sr===k.TSConfig?"tsconfig":"index");if(Ee&&(!We||e.containsPath(ye,We))){var Cr=e.getRelativePathFromDirectory(ye,We||Ze,!1);fe.traceEnabled&&n(fe.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,Ee.version,e.version,Cr);var fr=Lr(sr,Cr,ye,Ee.paths,void 0,$,Ne||me,fe);if(fr)return d(fr.value)}var dr=We&&d($(sr,We,Ne,fe));if(dr)return dr;if(!(fe.features&j.EsmMode))return Le(sr,Ze,me,fe)}function Ar(sr,ye){var or=e.tryGetExtensionFromPath(ye);return or!==void 0&&kr(sr,or)?{path:ye,ext:or}:void 0}function kr(sr,ye){switch(sr){case k.JavaScript:return ye===".js"||ye===".jsx";case k.TSConfig:case k.Json:return ye===".json";case k.TypeScript:return ye===".ts"||ye===".tsx"||ye===".d.ts";case k.DtsOnly:return ye===".d.ts"}}function Ke(sr){var ye=sr.indexOf(e.directorySeparator);return sr[0]==="@"&&(ye=sr.indexOf(e.directorySeparator,ye+1)),ye===-1?{packageName:sr,rest:""}:{packageName:sr.slice(0,ye),rest:sr.slice(ye+1)}}e.parsePackageName=Ke;function Me(sr){return e.every(e.getOwnKeys(sr),function(ye){return e.startsWith(ye,".")})}e.allKeysStartWithDot=Me;function Hr(sr){return!e.some(e.getOwnKeys(sr),function(ye){return e.startsWith(ye,".")})}function ur(sr,ye,or,fe,je,Ee){var We,$,Ne=typeof fe.host.useCaseSensitiveFileNames=="function"?fe.host.useCaseSensitiveFileNames():fe.host.useCaseSensitiveFileNames,me=e.toPath(e.combinePaths(or,"dummy"),($=(We=fe.host).getCurrentDirectory)===null||$===void 0?void 0:$.call(We),e.createGetCanonicalFileName(Ne===void 0?!0:Ne)),Ze=Dr(me,fe.packageJsonInfoCache,fe.host,fe.compilerOptions);if(!(!Ze||!Ze.packageJsonContent.exports)&&typeof Ze.packageJsonContent.name=="string"){var Cr=e.getPathComponents(ye),fr=e.getPathComponents(Ze.packageJsonContent.name);if(e.every(fr,function(et,yt){return Cr[yt]===et})){var dr=Cr.slice(fr.length);return gr(Ze,sr,e.length(dr)?".".concat(e.directorySeparator).concat(dr.join(e.directorySeparator)):".",fe,je,Ee)}}}function gr(sr,ye,or,fe,je,Ee){if(sr.packageJsonContent.exports){if(or==="."){var We=void 0;if(typeof sr.packageJsonContent.exports=="string"||Array.isArray(sr.packageJsonContent.exports)||typeof sr.packageJsonContent.exports=="object"&&Hr(sr.packageJsonContent.exports)?We=sr.packageJsonContent.exports:e.hasProperty(sr.packageJsonContent.exports,".")&&(We=sr.packageJsonContent.exports["."]),We){var $=$e(ye,fe,je,Ee,or,sr,!1);return $(We,"",!1)}}else if(Me(sr.packageJsonContent.exports)){if(typeof sr.packageJsonContent.exports!="object")return fe.traceEnabled&&n(fe.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,or,sr.packageDirectory),Or(void 0);var Ne=Fe(ye,fe,je,Ee,or,sr.packageJsonContent.exports,sr,!1);if(Ne)return Ne}return fe.traceEnabled&&n(fe.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,or,sr.packageDirectory),Or(void 0)}}function de(sr,ye,or,fe,je,Ee){var We,$;if(ye==="#"||e.startsWith(ye,"#/"))return fe.traceEnabled&&n(fe.host,e.Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions,ye),Or(void 0);var Ne=typeof fe.host.useCaseSensitiveFileNames=="function"?fe.host.useCaseSensitiveFileNames():fe.host.useCaseSensitiveFileNames,me=e.toPath(e.combinePaths(or,"dummy"),($=(We=fe.host).getCurrentDirectory)===null||$===void 0?void 0:$.call(We),e.createGetCanonicalFileName(Ne===void 0?!0:Ne)),Ze=Dr(me,fe.packageJsonInfoCache,fe.host,fe.compilerOptions);if(!Ze)return fe.traceEnabled&&n(fe.host,e.Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,me),Or(void 0);if(!Ze.packageJsonContent.imports)return fe.traceEnabled&&n(fe.host,e.Diagnostics.package_json_scope_0_has_no_imports_defined,Ze.packageDirectory),Or(void 0);var Cr=Fe(sr,fe,je,Ee,ye,Ze.packageJsonContent.imports,Ze,!0);return Cr||(fe.traceEnabled&&n(fe.host,e.Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,ye,Ze.packageDirectory),Or(void 0))}function Fe(sr,ye,or,fe,je,Ee,We,$){var Ne=$e(sr,ye,or,fe,je,We,$);if(!e.endsWith(je,e.directorySeparator)&&je.indexOf("*")===-1&&e.hasProperty(Ee,je)){var me=Ee[je];return Ne(me,"",!1)}for(var Ze=e.sort(e.filter(e.getOwnKeys(Ee),function(tr){return tr.indexOf("*")!==-1||e.endsWith(tr,"/")}),function(tr,xr){return tr.length-xr.length}),Cr=0,fr=Ze;Cr<fr.length;Cr++){var dr=fr[Cr];if(ye.features&j.ExportsPatternTrailers&&Vr(dr,je)){var me=Ee[dr],et=dr.indexOf("*"),yt=je.substring(dr.substring(0,et).length,je.length-(dr.length-1-et));return Ne(me,yt,!0)}else if(e.endsWith(dr,"*")&&e.startsWith(je,dr.substring(0,dr.length-1))){var me=Ee[dr],yt=je.substring(dr.length-1);return Ne(me,yt,!0)}else if(e.startsWith(je,dr)){var me=Ee[dr],yt=je.substring(dr.length);return Ne(me,yt,!1)}}function Vr(tr,xr){if(e.endsWith(tr,"*"))return!1;var Nr=tr.indexOf("*");return Nr===-1?!1:e.startsWith(xr,tr.substring(0,Nr))&&e.endsWith(xr,tr.substring(Nr+1))}}function $e(sr,ye,or,fe,je,Ee,We){return $;function $(Ne,me,Ze){var Cr,fr;if(typeof Ne=="string"){if(!Ze&&me.length>0&&!e.endsWith(Ne,"/"))return ye.traceEnabled&&n(ye.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Ee.packageDirectory,je),Or(void 0);if(!e.startsWith(Ne,"./")){if(We&&!e.startsWith(Ne,"../")&&!e.startsWith(Ne,"/")&&!e.isRootedDiskPath(Ne)){var dr=Ze?Ne.replace(/\*/g,me):Ne+me,et=Pe(ye.features,dr,Ee.packageDirectory+"/",ye.compilerOptions,ye.host,or,[sr],fe);return Or(et.resolvedModule?{path:et.resolvedModule.resolvedFileName,extension:et.resolvedModule.extension,packageId:et.resolvedModule.packageId,originalPath:et.resolvedModule.originalPath}:void 0)}return ye.traceEnabled&&n(ye.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Ee.packageDirectory,je),Or(void 0)}var yt=e.pathIsRelative(Ne)?e.getPathComponents(Ne).slice(1):e.getPathComponents(Ne),Vr=yt.slice(1);if(Vr.indexOf("..")>=0||Vr.indexOf(".")>=0||Vr.indexOf("node_modules")>=0)return ye.traceEnabled&&n(ye.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Ee.packageDirectory,je),Or(void 0);var tr=e.combinePaths(Ee.packageDirectory,Ne),xr=e.getPathComponents(me);if(xr.indexOf("..")>=0||xr.indexOf(".")>=0||xr.indexOf("node_modules")>=0)return ye.traceEnabled&&n(ye.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Ee.packageDirectory,je),Or(void 0);var Nr=e.getNormalizedAbsolutePath(Ze?tr.replace(/\*/g,me):tr+me,(fr=(Cr=ye.host).getCurrentDirectory)===null||fr===void 0?void 0:fr.call(Cr));return Or(p(Ee,Xe(sr,Nr,!1,ye)))}else if(typeof Ne=="object"&&Ne!==null)if(Array.isArray(Ne)){if(!e.length(Ne))return ye.traceEnabled&&n(ye.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Ee.packageDirectory,je),Or(void 0);for(var ht=0,xt=Ne;ht<xt.length;ht++){var wt=xt[ht],et=$(wt,me,Ze);if(et)return et}}else{for(var zr=0,gt=e.getOwnKeys(Ne);zr<gt.length;zr++){var vt=gt[zr];if(vt==="default"||ye.conditions.indexOf(vt)>=0||Sr(ye.conditions,vt)){var ut=Ne[vt],et=$(ut,me,Ze);if(et)return et}}return}else if(Ne===null)return ye.traceEnabled&&n(ye.host,e.Diagnostics.package_json_scope_0_explicitly_maps_specifier_1_to_null,Ee.packageDirectory,je),Or(void 0);return ye.traceEnabled&&n(ye.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Ee.packageDirectory,je),Or(void 0)}}function Sr(sr,ye){if(sr.indexOf("types")===-1||!e.startsWith(ye,"types@"))return!1;var or=e.VersionRange.tryParse(ye.substring(6));return or?or.test(e.version):!1}e.isApplicableVersionedTypesKey=Sr;function Pr(sr,ye,or,fe,je,Ee){return pr(sr,ye,or,fe,!1,je,Ee)}function He(sr,ye,or){return pr(k.DtsOnly,sr,ye,or,!0,void 0,void 0)}function pr(sr,ye,or,fe,je,Ee,We){var $=Ee&&Ee.getOrCreateCacheForModuleName(ye,fe.features===0?void 0:fe.features&j.EsmMode?e.ModuleKind.ESNext:e.ModuleKind.CommonJS,We);return e.forEachAncestorDirectory(e.normalizeSlashes(or),function(Ne){if(e.getBaseFileName(Ne)!=="node_modules"){var me=In($,ye,Ne,fe);return me||Or(Jr(sr,ye,Ne,fe,je,Ee,We))}})}function Jr(sr,ye,or,fe,je,Ee,We){var $=e.combinePaths(or,"node_modules"),Ne=e.directoryProbablyExists($,fe.host);!Ne&&fe.traceEnabled&&n(fe.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,$);var me=je?void 0:ze(sr,ye,$,Ne,fe,Ee,We);if(me)return me;if(sr===k.TypeScript||sr===k.DtsOnly){var Ze=e.combinePaths($,"@types"),Cr=Ne;return Ne&&!e.directoryProbablyExists(Ze,fe.host)&&(fe.traceEnabled&&n(fe.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Ze),Cr=!1),ze(k.DtsOnly,lt(ye,fe),Ze,Cr,fe,Ee,We)}}function ze(sr,ye,or,fe,je,Ee,We){var $=e.normalizePath(e.combinePaths(or,ye)),Ne=br($,!fe,je);if(!(je.features&j.Exports)&&Ne){var me=Le(sr,$,!fe,je);if(me)return a(me);var Ze=lr(sr,$,!fe,je,Ne.packageJsonContent,Ne.versionPaths);return p(Ne,Ze)}var Cr=Ke(ye),fr=Cr.packageName,dr=Cr.rest,et=function(xr,Nr,zr,gt){var vt;if(Ne&&Ne.packageJsonContent.exports&&gt.features&j.Exports)return(vt=gr(Ne,xr,e.combinePaths(".",dr),gt,Ee,We))===null||vt===void 0?void 0:vt.value;var ut=Le(xr,Nr,zr,gt)||lr(xr,Nr,zr,gt,Ne&&Ne.packageJsonContent,Ne&&Ne.versionPaths);return p(Ne,ut)};if(dr!==""){var yt=e.combinePaths(or,fr);if(Ne=br(yt,!fe,je),Ne&&Ne.versionPaths){je.traceEnabled&&n(je.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,Ne.versionPaths.version,e.version,dr);var Vr=fe&&e.directoryProbablyExists(yt,je.host),tr=Lr(sr,dr,yt,Ne.versionPaths.paths,void 0,et,!Vr,je);if(tr)return tr.value}}return et(sr,$,!fe,je)}function Lr(sr,ye,or,fe,je,Ee,We,$){je||(je=e.tryParsePatterns(fe));var Ne=e.matchPatternOrExact(je,ye);if(Ne){var me=e.isString(Ne)?void 0:e.matchedText(Ne,ye),Ze=e.isString(Ne)?Ne:e.patternText(Ne);$.traceEnabled&&n($.host,e.Diagnostics.Module_name_0_matched_pattern_1,ye,Ze);var Cr=e.forEach(fe[Ze],function(fr){var dr=me?fr.replace("*",me):fr,et=e.normalizePath(e.combinePaths(or,dr));$.traceEnabled&&n($.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,fr,dr);var yt=e.tryGetExtensionFromPath(fr);if(yt!==void 0){var Vr=Ae(et,We,$);if(Vr!==void 0)return a({path:Vr,ext:yt})}return Ee(sr,et,We||!e.directoryProbablyExists(e.getDirectoryPath(et),$.host),$)});return{value:Cr}}}var Yr="__";function lt(sr,ye){var or=Rt(sr);return ye.traceEnabled&&or!==sr&&n(ye.host,e.Diagnostics.Scoped_package_detected_looking_in_0,or),or}function tt(sr){return"@types/".concat(Rt(sr))}e.getTypesPackageName=tt;function Rt(sr){if(e.startsWith(sr,"@")){var ye=sr.replace(e.directorySeparator,Yr);if(ye!==sr)return ye.slice(1)}return sr}e.mangleScopedPackageName=Rt;function cn(sr){var ye=e.removePrefix(sr,"@types/");return ye!==sr?bn(ye):sr}e.getPackageNameFromTypesPackageName=cn;function bn(sr){return e.stringContains(sr,Yr)?"@"+sr.replace(Yr,e.directorySeparator):sr}e.unmangleScopedPackageName=bn;function In(sr,ye,or,fe){var je=sr&&sr.get(or);if(je)return fe.traceEnabled&&n(fe.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,ye,or),fe.resultFromCache=je,{value:je.resolvedModule&&{path:je.resolvedModule.resolvedFileName,originalPath:je.resolvedModule.originalPath||!0,extension:je.resolvedModule.extension,packageId:je.resolvedModule.packageId}}}function zn(sr,ye,or,fe,je,Ee){var We=f(or,fe),$=[],Ne={compilerOptions:or,host:fe,traceEnabled:We,failedLookupLocations:$,packageJsonInfoCache:je,features:j.None,conditions:[]},me=e.getDirectoryPath(ye),Ze=Cr(k.TypeScript)||Cr(k.JavaScript);return h(Ze&&Ze.value,!1,$,Ne.resultFromCache);function Cr(fr){var dr=u(fr,sr,me,_e,Ne);if(dr)return{value:dr};if(e.isExternalModuleNameRelative(sr)){var Vr=e.normalizePath(e.combinePaths(me,sr));return Or(_e(fr,Vr,!1,Ne))}else{var et=je&&je.getOrCreateCacheForModuleName(sr,void 0,Ee),yt=e.forEachAncestorDirectory(me,function(tr){var xr=In(et,sr,tr,Ne);if(xr)return xr;var Nr=e.normalizePath(e.combinePaths(tr,sr));return Or(_e(fr,Nr,!1,Ne))});if(yt)return yt;if(fr===k.TypeScript)return He(sr,me,Ne)}}}e.classicNameResolver=zn;function ir(sr,ye,or,fe,je,Ee){var We=f(or,fe);We&&n(fe,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,ye,sr,je);var $=[],Ne={compilerOptions:or,host:fe,traceEnabled:We,failedLookupLocations:$,packageJsonInfoCache:Ee,features:j.None,conditions:[]},me=Jr(k.DtsOnly,sr,je,Ne,!1,void 0,void 0);return h(me,!0,$,Ne.resultFromCache)}e.loadModuleFromGlobalCache=ir;function Or(sr){return sr!==void 0?{value:sr}:void 0}}(jr||(jr={})),function(e){(function(S){S[S.NonInstantiated=0]="NonInstantiated",S[S.Instantiated=1]="Instantiated",S[S.ConstEnumOnly=2]="ConstEnumOnly"})(e.ModuleInstanceState||(e.ModuleInstanceState={}));function n(S,B){return S.body&&!S.body.parent&&(e.setParent(S.body,S),e.setParentRecursive(S.body,!1)),S.body?f(S.body,B):1}e.getModuleInstanceState=n;function f(S,B){B===void 0&&(B=new e.Map);var H=e.getNodeId(S);if(B.has(H))return B.get(H)||0;B.set(H,void 0);var I=p(S,B);return B.set(H,I),I}function p(S,B){switch(S.kind){case 257:case 258:return 0;case 259:if(e.isEnumConst(S))return 2;break;case 265:case 264:if(!e.hasSyntacticModifier(S,1))return 0;break;case 271:var H=S;if(!H.moduleSpecifier&&H.exportClause&&H.exportClause.kind===272){for(var I=0,w=0,x=H.exportClause.elements;w<x.length;w++){var O=x[w],q=a(O,B);if(q>I&&(I=q),I===1)return I}return I}break;case 261:{var Z=0;return e.forEachChild(S,function(ne){var F=f(ne,B);switch(F){case 0:return;case 2:Z=2;return;case 1:return Z=1,!0;default:e.Debug.assertNever(F)}}),Z}case 260:return n(S,B);case 79:if(S.isInJSDocNamespace)return 0}return 1}function a(S,B){for(var H=S.propertyName||S.name,I=S.parent;I;){if(e.isBlock(I)||e.isModuleBlock(I)||e.isSourceFile(I)){for(var w=I.statements,x=void 0,O=0,q=w;O<q.length;O++){var Z=q[O];if(e.nodeHasName(Z,H)){Z.parent||(e.setParent(Z,I),e.setParentRecursive(Z,!1));var ne=f(Z,B);if((x===void 0||ne>x)&&(x=ne),x===1)return x}}if(x!==void 0)return x}I=I.parent}return 1}var d;(function(S){S[S.None=0]="None",S[S.IsContainer=1]="IsContainer",S[S.IsBlockScopedContainer=2]="IsBlockScopedContainer",S[S.IsControlFlowContainer=4]="IsControlFlowContainer",S[S.IsFunctionLike=8]="IsFunctionLike",S[S.IsFunctionExpression=16]="IsFunctionExpression",S[S.HasLocals=32]="HasLocals",S[S.IsInterface=64]="IsInterface",S[S.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor"})(d||(d={}));function k(S){return e.Debug.attachFlowNodeDebugInfo(S),S}var J=v();function h(S,B){e.tracing===null||e.tracing===void 0||e.tracing.push("bind","bindSourceFile",{path:S.path},!0),e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+S.fileName),J(S,B),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind"),e.tracing===null||e.tracing===void 0||e.tracing.pop()}e.bindSourceFile=h;function v(){var S,B,H,I,w,x,O,q,Z,ne,F,Q,V,re,T,N,y,D,C,m,u,g,P=!1,te=0,ue,X,j={flags:1},Se={flags:1},Ce=fr();function R(pe,Rr,ft,Zt,Re){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(pe)||S,pe,Rr,ft,Zt,Re)}function Y(pe,Rr){S=pe,B=Rr,H=e.getEmitScriptTarget(B),g=U(S,Rr),X=new e.Set,te=0,ue=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(j),e.Debug.attachFlowNodeDebugInfo(Se),S.locals||(Ha(S),S.symbolCount=te,S.classifiableNames=X,pt()),S=void 0,B=void 0,H=void 0,I=void 0,w=void 0,x=void 0,O=void 0,q=void 0,Z=void 0,ne=!1,F=void 0,Q=void 0,V=void 0,re=void 0,T=void 0,N=void 0,y=void 0,C=void 0,m=!1,P=!1,u=0}return Y;function U(pe,Rr){return e.getStrictOptionValue(Rr,"alwaysStrict")&&!pe.isDeclarationFile?!0:!!pe.externalModuleIndicator}function K(pe,Rr){return te++,new ue(pe,Rr)}function Te(pe,Rr,ft){pe.flags|=ft,Rr.symbol=pe,pe.declarations=e.appendIfUnique(pe.declarations,Rr),ft&1955&&!pe.exports&&(pe.exports=e.createSymbolTable()),ft&6240&&!pe.members&&(pe.members=e.createSymbolTable()),pe.constEnumOnlyModule&&pe.flags&304&&(pe.constEnumOnlyModule=!1),ft&111551&&e.setValueDeclaration(pe,Rr)}function ge(pe){if(pe.kind===270)return pe.isExportEquals?"export=":"default";var Rr=e.getNameOfDeclaration(pe);if(Rr){if(e.isAmbientModule(pe)){var ft=e.getTextOfIdentifierOrLiteral(Rr);return e.isGlobalScopeAugmentation(pe)?"__global":'"'.concat(ft,'"')}if(Rr.kind===161){var Zt=Rr.expression;if(e.isStringOrNumericLiteralLike(Zt))return e.escapeLeadingUnderscores(Zt.text);if(e.isSignedNumericLiteral(Zt))return e.tokenToString(Zt.operator)+Zt.operand.text;e.Debug.fail("Only computed properties with literal names have declaration names")}if(e.isPrivateIdentifier(Rr)){var Re=e.getContainingClass(pe);if(!Re)return;var Qr=Re.symbol;return e.getSymbolNameForPrivateIdentifier(Qr,Rr.escapedText)}return e.isPropertyNameLiteral(Rr)?e.getEscapedTextOfIdentifierOrLiteral(Rr):void 0}switch(pe.kind){case 170:return"__constructor";case 178:case 173:case 321:return"__call";case 179:case 174:return"__new";case 175:return"__index";case 271:return"__export";case 303:return"export=";case 220:if(e.getAssignmentDeclarationKind(pe)===2)return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 315:return e.isJSDocConstructSignature(pe)?"__new":"__call";case 163:e.Debug.assert(pe.parent.kind===315,"Impossible parameter parent kind",function(){return"parent is: ".concat(e.SyntaxKind?e.SyntaxKind[pe.parent.kind]:pe.parent.kind,", expected JSDocFunctionType")});var vn=pe.parent,Xn=vn.parameters.indexOf(pe);return"arg"+Xn}}function ke(pe){return e.isNamedDeclaration(pe)?e.declarationNameToString(pe.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(ge(pe)))}function Pe(pe,Rr,ft,Zt,Re,Qr,vn){e.Debug.assert(vn||!e.hasDynamicName(ft));var Xn=e.hasSyntacticModifier(ft,512)||e.isExportSpecifier(ft)&&ft.name.escapedText==="default",gi=vn?"__computed":Xn&&Rr?"default":ge(ft),Ia;if(gi===void 0)Ia=K(0,"__missing");else if(Ia=pe.get(gi),Zt&2885600&&X.add(gi),!Ia)pe.set(gi,Ia=K(0,gi)),Qr&&(Ia.isReplaceableByMethod=!0);else{if(Qr&&!Ia.isReplaceableByMethod)return Ia;if(Ia.flags&Re){if(Ia.isReplaceableByMethod)pe.set(gi,Ia=K(0,gi));else if(!(Zt&3&&Ia.flags&67108864)){e.isNamedDeclaration(ft)&&e.setParent(ft.name,ft);var oo=Ia.flags&2?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,Wo=!0;(Ia.flags&384||Zt&384)&&(oo=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Wo=!1);var Ir=!1;e.length(Ia.declarations)&&(Xn||Ia.declarations&&Ia.declarations.length&&ft.kind===270&&!ft.isExportEquals)&&(oo=e.Diagnostics.A_module_cannot_have_multiple_default_exports,Wo=!1,Ir=!0);var Us=[];e.isTypeAliasDeclaration(ft)&&e.nodeIsMissing(ft.type)&&e.hasSyntacticModifier(ft,1)&&Ia.flags&2887656&&Us.push(R(ft,e.Diagnostics.Did_you_mean_0,"export type { ".concat(e.unescapeLeadingUnderscores(ft.name.escapedText)," }")));var il=e.getNameOfDeclaration(ft)||ft;e.forEach(Ia.declarations,function(Co,Vs){var Ql=e.getNameOfDeclaration(Co)||Co,zl=R(Ql,oo,Wo?ke(Co):void 0);S.bindDiagnostics.push(Ir?e.addRelatedInfo(zl,R(il,Vs===0?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):zl),Ir&&Us.push(R(Ql,e.Diagnostics.The_first_export_default_is_here))});var Ml=R(il,oo,Wo?ke(ft):void 0);S.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,Gt([Ml],Us,!1))),Ia=K(0,gi)}}}return Te(Ia,ft,Zt),Ia.parent?e.Debug.assert(Ia.parent===Rr,"Existing symbol parent should match new one"):Ia.parent=Rr,Ia}function Ie(pe,Rr,ft){var Zt=!!(e.getCombinedModifierFlags(pe)&1)||Ge(pe);if(Rr&2097152)return pe.kind===274||pe.kind===264&&Zt?Pe(w.symbol.exports,w.symbol,pe,Rr,ft):Pe(w.locals,void 0,pe,Rr,ft);if(e.isJSDocTypeAlias(pe)&&e.Debug.assert(e.isInJSFile(pe)),!e.isAmbientModule(pe)&&(Zt||w.flags&64)){if(!w.locals||e.hasSyntacticModifier(pe,512)&&!ge(pe))return Pe(w.symbol.exports,w.symbol,pe,Rr,ft);var Re=Rr&111551?1048576:0,Qr=Pe(w.locals,void 0,pe,Re,ft);return Qr.exportSymbol=Pe(w.symbol.exports,w.symbol,pe,Rr,ft),pe.localSymbol=Qr,Qr}else return Pe(w.locals,void 0,pe,Rr,ft)}function Ge(pe){if(pe.parent&&e.isModuleDeclaration(pe)&&(pe=pe.parent),!e.isJSDocTypeAlias(pe))return!1;if(!e.isJSDocEnumTag(pe)&&pe.fullName)return!0;var Rr=e.getNameOfDeclaration(pe);return Rr?!!(e.isPropertyAccessEntityNameExpression(Rr.parent)&&$a(Rr.parent)||e.isDeclaration(Rr.parent)&&e.getCombinedModifierFlags(Rr.parent)&1):!1}function he(pe,Rr){var ft=w,Zt=x,Re=O;if(Rr&1?(pe.kind!==213&&(x=w),w=O=pe,Rr&32&&(w.locals=e.createSymbolTable()),mt(w)):Rr&2&&(O=pe,O.locals=void 0),Rr&4){var Qr=F,vn=Q,Xn=V,gi=re,Ia=y,oo=C,Wo=m,Ir=Rr&16&&!e.hasSyntacticModifier(pe,256)&&!pe.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(pe);Ir||(F=k({flags:2}),Rr&144&&(F.node=pe)),re=Ir||pe.kind===170||pe.kind===169||e.isInJSFile(pe)&&(pe.kind===255||pe.kind===212)?lr():void 0,y=void 0,Q=void 0,V=void 0,C=void 0,m=!1,Le(pe),pe.flags&=-2817,!(F.flags&1)&&Rr&8&&e.nodeIsPresent(pe.body)&&(pe.flags|=256,m&&(pe.flags|=512),pe.endFlowNode=F),pe.kind===303&&(pe.flags|=u,pe.endFlowNode=F),re&&(Me(re,F),F=Fe(re),(pe.kind===170||pe.kind===169||e.isInJSFile(pe)&&(pe.kind===255||pe.kind===212))&&(pe.returnFlowNode=F)),Ir||(F=Qr),Q=vn,V=Xn,re=gi,y=Ia,C=oo,m=Wo}else Rr&64?(ne=!1,Le(pe),pe.flags=ne?pe.flags|128:pe.flags&-129):Le(pe);w=ft,x=Zt,O=Re}function ve(pe){Ve(pe,function(Rr){return Rr.kind===255?Ha(Rr):void 0}),Ve(pe,function(Rr){return Rr.kind!==255?Ha(Rr):void 0})}function Ve(pe,Rr){Rr===void 0&&(Rr=Ha),pe!==void 0&&e.forEach(pe,Rr)}function _e(pe){e.forEachChild(pe,Ha,Ve)}function Le(pe){var Rr=P;if(P=!1,as(pe)){_e(pe),Yo(pe),P=Rr;return}switch(pe.kind>=236&&pe.kind<=252&&!B.allowUnreachableCode&&(pe.flowNode=F),pe.kind){case 240:Yr(pe);break;case 239:lt(pe);break;case 241:tt(pe);break;case 242:case 243:Rt(pe);break;case 238:cn(pe);break;case 246:case 250:bn(pe);break;case 245:case 244:ir(pe);break;case 251:Or(pe);break;case 248:sr(pe);break;case 262:ye(pe);break;case 288:or(pe);break;case 237:fe(pe);break;case 249:Ee(pe);break;case 218:me(pe);break;case 219:Ze(pe);break;case 220:if(e.isDestructuringAssignment(pe)){P=Rr,Cr(pe);return}Ce(pe);break;case 214:dr(pe);break;case 221:et(pe);break;case 253:Vr(pe);break;case 205:case 206:xt(pe);break;case 207:wt(pe);break;case 229:ht(pe);break;case 343:case 336:case 337:xr(pe);break;case 303:{ve(pe.statements),Ha(pe.endOfFileToken);break}case 234:case 261:ve(pe.statements);break;case 202:tr(pe);break;case 204:case 203:case 294:case 224:P=Rr;default:_e(pe);break}Yo(pe),P=Rr}function qe(pe){switch(pe.kind){case 79:case 80:case 108:case 205:case 206:return De(pe);case 207:return Ae(pe);case 211:case 229:return qe(pe.expression);case 220:return Dr(pe);case 218:return pe.operator===53&&qe(pe.operand);case 215:return qe(pe.expression)}return!1}function Xe(pe){return e.isDottedName(pe)||(e.isPropertyAccessExpression(pe)||e.isNonNullExpression(pe)||e.isParenthesizedExpression(pe))&&Xe(pe.expression)||e.isBinaryExpression(pe)&&pe.operatorToken.kind===27&&Xe(pe.right)||e.isElementAccessExpression(pe)&&e.isStringOrNumericLiteralLike(pe.argumentExpression)&&Xe(pe.expression)||e.isAssignmentExpression(pe)&&Xe(pe.left)}function De(pe){return Xe(pe)||e.isOptionalChain(pe)&&De(pe.expression)}function Ae(pe){if(pe.arguments)for(var Rr=0,ft=pe.arguments;Rr<ft.length;Rr++){var Zt=ft[Rr];if(De(Zt))return!0}return!!(pe.expression.kind===205&&De(pe.expression.expression))}function Ye(pe,Rr){return e.isTypeOfExpression(pe)&&br(pe.expression)&&e.isStringLiteralLike(Rr)}function Dr(pe){switch(pe.operatorToken.kind){case 63:case 75:case 76:case 77:return De(pe.left);case 34:case 35:case 36:case 37:return br(pe.left)||br(pe.right)||Ye(pe.right,pe.left)||Ye(pe.left,pe.right);case 102:return br(pe.left);case 101:return qe(pe.right);case 27:return qe(pe.right)}return!1}function br(pe){switch(pe.kind){case 211:return br(pe.expression);case 220:switch(pe.operatorToken.kind){case 63:return br(pe.left);case 27:return br(pe.right)}}return De(pe)}function lr(){return k({flags:4,antecedents:void 0})}function Ar(){return k({flags:8,antecedents:void 0})}function kr(pe,Rr,ft){return k({flags:1024,target:pe,antecedents:Rr,antecedent:ft})}function Ke(pe){pe.flags|=pe.flags&2048?4096:2048}function Me(pe,Rr){!(Rr.flags&1)&&!e.contains(pe.antecedents,Rr)&&((pe.antecedents||(pe.antecedents=[])).push(Rr),Ke(Rr))}function Hr(pe,Rr,ft){return Rr.flags&1?Rr:ft?(ft.kind===110&&pe&64||ft.kind===95&&pe&32)&&!e.isExpressionOfOptionalChainRoot(ft)&&!e.isNullishCoalesce(ft.parent)?j:qe(ft)?(Ke(Rr),k({flags:pe,antecedent:Rr,node:ft})):Rr:pe&32?Rr:j}function ur(pe,Rr,ft,Zt){return Ke(pe),k({flags:128,antecedent:pe,switchStatement:Rr,clauseStart:ft,clauseEnd:Zt})}function gr(pe,Rr,ft){Ke(Rr);var Zt=k({flags:pe,antecedent:Rr,node:ft});return y&&Me(y,Zt),Zt}function de(pe,Rr){return Ke(pe),k({flags:512,antecedent:pe,node:Rr})}function Fe(pe){var Rr=pe.antecedents;return Rr?Rr.length===1?Rr[0]:pe:j}function $e(pe){var Rr=pe.parent;switch(Rr.kind){case 238:case 240:case 239:return Rr.expression===pe;case 241:case 221:return Rr.condition===pe}return!1}function Sr(pe){for(;;)if(pe.kind===211)pe=pe.expression;else if(pe.kind===218&&pe.operator===53)pe=pe.operand;else return pe.kind===220&&(pe.operatorToken.kind===55||pe.operatorToken.kind===56||pe.operatorToken.kind===60)}function Pr(pe){return pe=e.skipParentheses(pe),e.isBinaryExpression(pe)&&e.isLogicalOrCoalescingAssignmentOperator(pe.operatorToken.kind)}function He(pe){for(;e.isParenthesizedExpression(pe.parent)||e.isPrefixUnaryExpression(pe.parent)&&pe.parent.operator===53;)pe=pe.parent;return!$e(pe)&&!Pr(pe.parent)&&!Sr(pe.parent)&&!(e.isOptionalChain(pe.parent)&&pe.parent.expression===pe)}function pr(pe,Rr,ft,Zt){var Re=T,Qr=N;T=ft,N=Zt,pe(Rr),T=Re,N=Qr}function Jr(pe,Rr,ft){pr(Ha,pe,Rr,ft),(!pe||!Pr(pe)&&!Sr(pe)&&!(e.isOptionalChain(pe)&&e.isOutermostOptionalChain(pe)))&&(Me(Rr,Hr(32,F,pe)),Me(ft,Hr(64,F,pe)))}function ze(pe,Rr,ft){var Zt=Q,Re=V;Q=Rr,V=ft,Ha(pe),Q=Zt,V=Re}function Lr(pe,Rr){for(var ft=C;ft&&pe.parent.kind===249;)ft.continueTarget=Rr,ft=ft.next,pe=pe.parent;return Rr}function Yr(pe){var Rr=Lr(pe,Ar()),ft=lr(),Zt=lr();Me(Rr,F),F=Rr,Jr(pe.expression,ft,Zt),F=Fe(ft),ze(pe.statement,Zt,Rr),Me(Rr,F),F=Fe(Zt)}function lt(pe){var Rr=Ar(),ft=Lr(pe,lr()),Zt=lr();Me(Rr,F),F=Rr,ze(pe.statement,Zt,ft),Me(ft,F),F=Fe(ft),Jr(pe.expression,Rr,Zt),F=Fe(Zt)}function tt(pe){var Rr=Lr(pe,Ar()),ft=lr(),Zt=lr();Ha(pe.initializer),Me(Rr,F),F=Rr,Jr(pe.condition,ft,Zt),F=Fe(ft),ze(pe.statement,Zt,Rr),Ha(pe.incrementor),Me(Rr,F),F=Fe(Zt)}function Rt(pe){var Rr=Lr(pe,Ar()),ft=lr();Ha(pe.expression),Me(Rr,F),F=Rr,pe.kind===243&&Ha(pe.awaitModifier),Me(ft,F),Ha(pe.initializer),pe.initializer.kind!==254&&$(pe.initializer),ze(pe.statement,ft,Rr),Me(Rr,F),F=Fe(ft)}function cn(pe){var Rr=lr(),ft=lr(),Zt=lr();Jr(pe.expression,Rr,ft),F=Fe(Rr),Ha(pe.thenStatement),Me(Zt,F),F=Fe(ft),Ha(pe.elseStatement),Me(Zt,F),F=Fe(Zt)}function bn(pe){Ha(pe.expression),pe.kind===246&&(m=!0,re&&Me(re,F)),F=j}function In(pe){for(var Rr=C;Rr;Rr=Rr.next)if(Rr.name===pe)return Rr}function zn(pe,Rr,ft){var Zt=pe.kind===245?Rr:ft;Zt&&(Me(Zt,F),F=j)}function ir(pe){if(Ha(pe.label),pe.label){var Rr=In(pe.label.escapedText);Rr&&(Rr.referenced=!0,zn(pe,Rr.breakTarget,Rr.continueTarget))}else zn(pe,Q,V)}function Or(pe){var Rr=re,ft=y,Zt=lr(),Re=lr(),Qr=lr();if(pe.finallyBlock&&(re=Re),Me(Qr,F),y=Qr,Ha(pe.tryBlock),Me(Zt,F),pe.catchClause&&(F=Fe(Qr),Qr=lr(),Me(Qr,F),y=Qr,Ha(pe.catchClause),Me(Zt,F)),re=Rr,y=ft,pe.finallyBlock){var vn=lr();vn.antecedents=e.concatenate(e.concatenate(Zt.antecedents,Qr.antecedents),Re.antecedents),F=vn,Ha(pe.finallyBlock),F.flags&1?F=j:(re&&Re.antecedents&&Me(re,kr(vn,Re.antecedents,F)),y&&Qr.antecedents&&Me(y,kr(vn,Qr.antecedents,F)),F=Zt.antecedents?kr(vn,Zt.antecedents,F):j)}else F=Fe(Zt)}function sr(pe){var Rr=lr();Ha(pe.expression);var ft=Q,Zt=D;Q=Rr,D=F,Ha(pe.caseBlock),Me(Rr,F);var Re=e.forEach(pe.caseBlock.clauses,function(Qr){return Qr.kind===289});pe.possiblyExhaustive=!Re&&!Rr.antecedents,Re||Me(Rr,ur(D,pe,0,0)),Q=ft,D=Zt,F=Fe(Rr)}function ye(pe){for(var Rr=pe.clauses,ft=qe(pe.parent.expression),Zt=j,Re=0;Re<Rr.length;Re++){for(var Qr=Re;!Rr[Re].statements.length&&Re+1<Rr.length;)Ha(Rr[Re]),Re++;var vn=lr();Me(vn,ft?ur(D,pe.parent,Qr,Re+1):D),Me(vn,Zt),F=Fe(vn);var Xn=Rr[Re];Ha(Xn),Zt=F,!(F.flags&1)&&Re!==Rr.length-1&&B.noFallthroughCasesInSwitch&&(Xn.fallthroughFlowNode=F)}}function or(pe){var Rr=F;F=D,Ha(pe.expression),F=Rr,Ve(pe.statements)}function fe(pe){Ha(pe.expression),je(pe.expression)}function je(pe){if(pe.kind===207){var Rr=pe;Rr.expression.kind!==106&&e.isDottedName(Rr.expression)&&(F=de(F,Rr))}}function Ee(pe){var Rr=lr();C={next:C,name:pe.label.escapedText,breakTarget:Rr,continueTarget:void 0,referenced:!1},Ha(pe.label),Ha(pe.statement),!C.referenced&&!B.allowUnusedLabels&&No(e.unusedLabelIsError(B),pe.label,e.Diagnostics.Unused_label),C=C.next,Me(Rr,F),F=Fe(Rr)}function We(pe){pe.kind===220&&pe.operatorToken.kind===63?$(pe.left):$(pe)}function $(pe){if(Xe(pe))F=gr(16,F,pe);else if(pe.kind===203)for(var Rr=0,ft=pe.elements;Rr<ft.length;Rr++){var Zt=ft[Rr];Zt.kind===224?$(Zt.expression):We(Zt)}else if(pe.kind===204)for(var Re=0,Qr=pe.properties;Re<Qr.length;Re++){var vn=Qr[Re];vn.kind===294?We(vn.initializer):vn.kind===295?$(vn.name):vn.kind===296&&$(vn.expression)}}function Ne(pe,Rr,ft){var Zt=lr();pe.operatorToken.kind===55||pe.operatorToken.kind===76?Jr(pe.left,Zt,ft):Jr(pe.left,Rr,Zt),F=Fe(Zt),Ha(pe.operatorToken),e.isLogicalOrCoalescingAssignmentOperator(pe.operatorToken.kind)?(pr(Ha,pe.right,Rr,ft),$(pe.left),Me(Rr,Hr(32,F,pe)),Me(ft,Hr(64,F,pe))):Jr(pe.right,Rr,ft)}function me(pe){if(pe.operator===53){var Rr=T;T=N,N=Rr,_e(pe),N=T,T=Rr}else _e(pe),(pe.operator===45||pe.operator===46)&&$(pe.operand)}function Ze(pe){_e(pe),(pe.operator===45||pe.operator===46)&&$(pe.operand)}function Cr(pe){P?(P=!1,Ha(pe.operatorToken),Ha(pe.right),P=!0,Ha(pe.left)):(P=!0,Ha(pe.left),P=!1,Ha(pe.operatorToken),Ha(pe.right)),$(pe.left)}function fr(){return e.createBinaryExpressionTrampoline(pe,Rr,ft,Zt,Re,void 0);function pe(vn,Xn){if(Xn){Xn.stackIndex++,e.setParent(vn,I);var gi=g;hi(vn);var Ia=I;I=vn,Xn.skip=!1,Xn.inStrictModeStack[Xn.stackIndex]=gi,Xn.parentStack[Xn.stackIndex]=Ia}else Xn={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var oo=vn.operatorToken.kind;if(oo===55||oo===56||oo===60||e.isLogicalOrCoalescingAssignmentOperator(oo)){if(He(vn)){var Wo=lr();Ne(vn,Wo,Wo),F=Fe(Wo)}else Ne(vn,T,N);Xn.skip=!0}return Xn}function Rr(vn,Xn,gi){if(!Xn.skip)return Qr(vn)}function ft(vn,Xn,gi){Xn.skip||(vn.kind===27&&je(gi.left),Ha(vn))}function Zt(vn,Xn,gi){if(!Xn.skip)return Qr(vn)}function Re(vn,Xn){if(!Xn.skip){var gi=vn.operatorToken.kind;if(e.isAssignmentOperator(gi)&&!e.isAssignmentTarget(vn)&&($(vn.left),gi===63&&vn.left.kind===206)){var Ia=vn.left;br(Ia.expression)&&(F=gr(256,F,vn))}}var oo=Xn.inStrictModeStack[Xn.stackIndex],Wo=Xn.parentStack[Xn.stackIndex];oo!==void 0&&(g=oo),Wo!==void 0&&(I=Wo),Xn.skip=!1,Xn.stackIndex--}function Qr(vn){if(vn&&e.isBinaryExpression(vn)&&!e.isDestructuringAssignment(vn))return vn;Ha(vn)}}function dr(pe){_e(pe),pe.expression.kind===205&&$(pe.expression)}function et(pe){var Rr=lr(),ft=lr(),Zt=lr();Jr(pe.condition,Rr,ft),F=Fe(Rr),Ha(pe.questionToken),Ha(pe.whenTrue),Me(Zt,F),F=Fe(ft),Ha(pe.colonToken),Ha(pe.whenFalse),Me(Zt,F),F=Fe(Zt)}function yt(pe){var Rr=e.isOmittedExpression(pe)?void 0:pe.name;if(e.isBindingPattern(Rr))for(var ft=0,Zt=Rr.elements;ft<Zt.length;ft++){var Re=Zt[ft];yt(Re)}else F=gr(16,F,pe)}function Vr(pe){_e(pe),(pe.initializer||e.isForInOrOfStatement(pe.parent.parent))&&yt(pe)}function tr(pe){e.isBindingPattern(pe.name)?(Ve(pe.decorators),Ve(pe.modifiers),Ha(pe.dotDotDotToken),Ha(pe.propertyName),Ha(pe.initializer),Ha(pe.name)):_e(pe)}function xr(pe){Ha(pe.tagName),pe.kind!==337&&pe.fullName&&(e.setParent(pe.fullName,pe),e.setParentRecursive(pe.fullName,!1)),typeof pe.comment!="string"&&Ve(pe.comment)}function Nr(pe){_e(pe);var Rr=e.getHostSignatureFromJSDoc(pe);Rr&&Rr.kind!==168&&Te(Rr.symbol,Rr,32)}function zr(pe,Rr,ft){pr(Ha,pe,Rr,ft),(!e.isOptionalChain(pe)||e.isOutermostOptionalChain(pe))&&(Me(Rr,Hr(32,F,pe)),Me(ft,Hr(64,F,pe)))}function gt(pe){switch(pe.kind){case 205:Ha(pe.questionDotToken),Ha(pe.name);break;case 206:Ha(pe.questionDotToken),Ha(pe.argumentExpression);break;case 207:Ha(pe.questionDotToken),Ve(pe.typeArguments),Ve(pe.arguments);break}}function vt(pe,Rr,ft){var Zt=e.isOptionalChainRoot(pe)?lr():void 0;zr(pe.expression,Zt||Rr,ft),Zt&&(F=Fe(Zt)),pr(gt,pe,Rr,ft),e.isOutermostOptionalChain(pe)&&(Me(Rr,Hr(32,F,pe)),Me(ft,Hr(64,F,pe)))}function ut(pe){if(He(pe)){var Rr=lr();vt(pe,Rr,Rr),F=Fe(Rr)}else vt(pe,T,N)}function ht(pe){e.isOptionalChain(pe)?ut(pe):_e(pe)}function xt(pe){e.isOptionalChain(pe)?ut(pe):_e(pe)}function wt(pe){if(e.isOptionalChain(pe))ut(pe);else{var Rr=e.skipParentheses(pe.expression);Rr.kind===212||Rr.kind===213?(Ve(pe.typeArguments),Ve(pe.arguments),Ha(pe.expression)):(_e(pe),pe.expression.kind===106&&(F=de(F,pe)))}if(pe.expression.kind===205){var ft=pe.expression;e.isIdentifier(ft.name)&&br(ft.expression)&&e.isPushOrUnshiftIdentifier(ft.name)&&(F=gr(256,F,pe))}}function Qt(pe){switch(pe.kind){case 225:case 256:case 259:case 204:case 181:case 320:case 285:return 1;case 257:return 65;case 260:case 258:case 194:return 33;case 303:return 37;case 171:case 172:case 168:if(e.isObjectLiteralOrClassExpressionMethodOrAccessor(pe))return 173;case 170:case 255:case 167:case 173:case 321:case 315:case 178:case 174:case 175:case 179:case 169:return 45;case 212:case 213:return 61;case 261:return 4;case 166:return pe.initializer?4:0;case 291:case 241:case 242:case 243:case 262:return 2;case 234:return e.isFunctionLike(pe.parent)||e.isClassStaticBlockDeclaration(pe.parent)?0:2}return 0}function mt(pe){q&&(q.nextContainer=pe),q=pe}function rn(pe,Rr,ft){switch(w.kind){case 260:return Ie(pe,Rr,ft);case 303:return ba(pe,Rr,ft);case 225:case 256:return sa(pe,Rr,ft);case 259:return Pe(w.symbol.exports,w.symbol,pe,Rr,ft);case 181:case 320:case 204:case 257:case 285:return Pe(w.symbol.members,w.symbol,pe,Rr,ft);case 178:case 179:case 173:case 174:case 321:case 175:case 168:case 167:case 170:case 171:case 172:case 255:case 212:case 213:case 315:case 343:case 336:case 169:case 258:case 194:return Pe(w.locals,void 0,pe,Rr,ft)}}function sa(pe,Rr,ft){return e.isStatic(pe)?Pe(w.symbol.exports,w.symbol,pe,Rr,ft):Pe(w.symbol.members,w.symbol,pe,Rr,ft)}function ba(pe,Rr,ft){return e.isExternalModule(S)?Ie(pe,Rr,ft):Pe(S.locals,void 0,pe,Rr,ft)}function Jn(pe){var Rr=e.isSourceFile(pe)?pe:e.tryCast(pe.body,e.isModuleBlock);return!!Rr&&Rr.statements.some(function(ft){return e.isExportDeclaration(ft)||e.isExportAssignment(ft)})}function na(pe){pe.flags&8388608&&!Jn(pe)?pe.flags|=64:pe.flags&=-65}function Wn(pe){if(na(pe),e.isAmbientModule(pe))if(e.hasSyntacticModifier(pe,1)&&to(pe,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(pe))en(pe);else{var Rr=void 0;if(pe.name.kind===10){var ft=pe.name.text;Rr=e.tryParsePattern(ft),Rr===void 0&&to(pe.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,ft)}var Zt=rn(pe,512,110735);S.patternAmbientModules=e.append(S.patternAmbientModules,Rr&&!e.isString(Rr)?{pattern:Rr,symbol:Zt}:void 0)}else{var Re=en(pe);if(Re!==0){var Zt=pe.symbol;Zt.constEnumOnlyModule=!(Zt.flags&304)&&Re===2&&Zt.constEnumOnlyModule!==!1}}}function en(pe){var Rr=n(pe),ft=Rr!==0;return rn(pe,ft?512:1024,ft?110735:0),Rr}function St(pe){var Rr=K(131072,ge(pe));Te(Rr,pe,131072);var ft=K(2048,"__type");Te(ft,pe,2048),ft.members=e.createSymbolTable(),ft.members.set(Rr.escapedName,Rr)}function Ut(pe){var Rr;if(function(oo){oo[oo.Property=1]="Property",oo[oo.Accessor=2]="Accessor"}(Rr||(Rr={})),g&&!e.isAssignmentTarget(pe))for(var ft=new e.Map,Zt=0,Re=pe.properties;Zt<Re.length;Zt++){var Qr=Re[Zt];if(!(Qr.kind===296||Qr.name.kind!==79)){var vn=Qr.name,Xn=Qr.kind===294||Qr.kind===295||Qr.kind===168?1:2,gi=ft.get(vn.escapedText);if(!gi){ft.set(vn.escapedText,Xn);continue}if(Xn===1&&gi===1){var Ia=e.getErrorSpanForNode(S,vn);S.bindDiagnostics.push(e.createFileDiagnostic(S,Ia.start,Ia.length,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}}return dn(pe,4096,"__object")}function qt(pe){return dn(pe,4096,"__jsxAttributes")}function Mn(pe,Rr,ft){return rn(pe,Rr,ft)}function dn(pe,Rr,ft){var Zt=K(Rr,ft);return Rr&106508&&(Zt.parent=w.symbol),Te(Zt,pe,Rr),Zt}function oa(pe,Rr,ft){switch(O.kind){case 260:Ie(pe,Rr,ft);break;case 303:if(e.isExternalOrCommonJsModule(w)){Ie(pe,Rr,ft);break}default:O.locals||(O.locals=e.createSymbolTable(),mt(O)),Pe(O.locals,void 0,pe,Rr,ft)}}function pt(){if(Z){for(var pe=w,Rr=q,ft=O,Zt=I,Re=F,Qr=0,vn=Z;Qr<vn.length;Qr++){var Xn=vn[Qr],gi=Xn.parent.parent;w=e.findAncestor(gi.parent,function(Ir){return!!(Qt(Ir)&1)})||S,O=e.getEnclosingBlockScopeContainer(gi)||S,F=k({flags:2}),I=Xn,Ha(Xn.typeExpression);var Ia=e.getNameOfDeclaration(Xn);if((e.isJSDocEnumTag(Xn)||!Xn.fullName)&&Ia&&e.isPropertyAccessEntityNameExpression(Ia.parent)){var oo=$a(Ia.parent);if(oo){xa(S.symbol,Ia.parent,oo,!!e.findAncestor(Ia,function(Ir){return e.isPropertyAccessExpression(Ir)&&Ir.name.escapedText==="prototype"}),!1);var Wo=w;switch(e.getAssignmentDeclarationPropertyAccessKind(Ia.parent)){case 1:case 2:e.isExternalOrCommonJsModule(S)?w=S:w=void 0;break;case 4:w=Ia.parent.expression;break;case 3:w=Ia.parent.expression.name;break;case 5:w=b(S,Ia.parent.expression)?S:e.isPropertyAccessExpression(Ia.parent.expression)?Ia.parent.expression.name:Ia.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}w&&Ie(Xn,524288,788968),w=Wo}}else e.isJSDocEnumTag(Xn)||!Xn.fullName||Xn.fullName.kind===79?(I=Xn.parent,oa(Xn,524288,788968)):Ha(Xn.fullName)}w=pe,q=Rr,O=ft,I=Zt,F=Re}}function _t(pe){!S.parseDiagnostics.length&&!(pe.flags&8388608)&&!(pe.flags&4194304)&&!e.isIdentifierName(pe)&&(g&&pe.originalKeywordKind>=117&&pe.originalKeywordKind<=125?S.bindDiagnostics.push(R(pe,Mt(pe),e.declarationNameToString(pe))):pe.originalKeywordKind===132?e.isExternalModule(S)&&e.isInTopLevelContext(pe)?S.bindDiagnostics.push(R(pe,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(pe))):pe.flags&32768&&S.bindDiagnostics.push(R(pe,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(pe))):pe.originalKeywordKind===125&&pe.flags&8192&&S.bindDiagnostics.push(R(pe,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(pe))))}function Mt(pe){return e.getContainingClass(pe)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:S.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function It(pe){pe.escapedText==="#constructor"&&(S.parseDiagnostics.length||S.bindDiagnostics.push(R(pe,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(pe))))}function rt(pe){g&&e.isLeftHandSideExpression(pe.left)&&e.isAssignmentOperator(pe.operatorToken.kind)&&Ci(pe,pe.left)}function Cn(pe){g&&pe.variableDeclaration&&Ci(pe,pe.variableDeclaration.name)}function Qn(pe){if(g&&pe.expression.kind===79){var Rr=e.getErrorSpanForNode(S,pe.expression);S.bindDiagnostics.push(e.createFileDiagnostic(S,Rr.start,Rr.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Ra(pe){return e.isIdentifier(pe)&&(pe.escapedText==="eval"||pe.escapedText==="arguments")}function Ci(pe,Rr){if(Rr&&Rr.kind===79){var ft=Rr;if(Ra(ft)){var Zt=e.getErrorSpanForNode(S,Rr);S.bindDiagnostics.push(e.createFileDiagnostic(S,Zt.start,Zt.length,_i(pe),e.idText(ft)))}}}function _i(pe){return e.getContainingClass(pe)?e.Diagnostics.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:S.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function va(pe){g&&Ci(pe,pe.name)}function yi(pe){return e.getContainingClass(pe)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:S.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function ro(pe){if(H<2&&O.kind!==303&&O.kind!==260&&!e.isFunctionLikeOrClassStaticBlockDeclaration(O)){var Rr=e.getErrorSpanForNode(S,pe);S.bindDiagnostics.push(e.createFileDiagnostic(S,Rr.start,Rr.length,yi(pe)))}}function Ka(pe){g&&pe.numericLiteralFlags&32&&S.bindDiagnostics.push(R(pe,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}function Mi(pe){g&&Ci(pe,pe.operand)}function io(pe){g&&(pe.operator===45||pe.operator===46)&&Ci(pe,pe.operand)}function ji(pe){g&&to(pe,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}function Hi(pe){g&&e.getEmitScriptTarget(B)>=2&&(e.isDeclarationStatement(pe.statement)||e.isVariableStatement(pe.statement))&&to(pe.label,e.Diagnostics.A_label_is_not_allowed_here)}function to(pe,Rr,ft,Zt,Re){var Qr=e.getSpanOfTokenAtPosition(S,pe.pos);S.bindDiagnostics.push(e.createFileDiagnostic(S,Qr.start,Qr.length,Rr,ft,Zt,Re))}function No(pe,Rr,ft){lo(pe,Rr,Rr,ft)}function lo(pe,Rr,ft,Zt){Lo(pe,{pos:e.getTokenPosOfNode(Rr,S),end:ft.end},Zt)}function Lo(pe,Rr,ft){var Zt=e.createFileDiagnostic(S,Rr.pos,Rr.end-Rr.pos,ft);pe?S.bindDiagnostics.push(Zt):S.bindSuggestionDiagnostics=e.append(S.bindSuggestionDiagnostics,Rn(Rn({},Zt),{category:e.DiagnosticCategory.Suggestion}))}function Ha(pe){if(pe){e.setParent(pe,I);var Rr=g;if(hi(pe),pe.kind>159){var ft=I;I=pe;var Zt=Qt(pe);Zt===0?Le(pe):he(pe,Zt),I=ft}else{var ft=I;pe.kind===1&&(I=pe),Yo(pe),I=ft}g=Rr}}function Yo(pe){if(e.hasJSDocNodes(pe))if(e.isInJSFile(pe))for(var Rr=0,ft=pe.jsDoc;Rr<ft.length;Rr++){var Zt=ft[Rr];Ha(Zt)}else for(var Re=0,Qr=pe.jsDoc;Re<Qr.length;Re++){var Zt=Qr[Re];e.setParent(Zt,pe),e.setParentRecursive(Zt,!1)}}function co(pe){if(!g)for(var Rr=0,ft=pe;Rr<ft.length;Rr++){var Zt=ft[Rr];if(!e.isPrologueDirective(Zt))return;if(za(Zt)){g=!0;return}}}function za(pe){var Rr=e.getSourceTextOfNodeFromSourceFile(S,pe.expression);return Rr==='"use strict"'||Rr==="'use strict'"}function hi(pe){switch(pe.kind){case 79:if(pe.isInJSDocNamespace){for(var Rr=pe.parent;Rr&&!e.isJSDocTypeAlias(Rr);)Rr=Rr.parent;oa(Rr,524288,788968);break}case 108:return F&&(e.isExpression(pe)||I.kind===295)&&(pe.flowNode=F),_t(pe);case 160:F&&e.isPartOfTypeQuery(pe)&&(pe.flowNode=F);break;case 230:case 106:pe.flowNode=F;break;case 80:return It(pe);case 205:case 206:var ft=pe;F&&Xe(ft)&&(ft.flowNode=F),e.isSpecialPropertyDeclaration(ft)&&er(ft),e.isInJSFile(ft)&&S.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(ft)&&!M(O,"module")&&Pe(S.locals,void 0,ft.expression,134217729,111550);break;case 220:var Zt=e.getAssignmentDeclarationKind(pe);switch(Zt){case 1:Un(pe);break;case 2:Oe(pe);break;case 3:Dt(pe.left,pe);break;case 6:vr(pe);break;case 4:mr(pe);break;case 5:var Re=pe.left.expression;if(e.isInJSFile(pe)&&e.isIdentifier(Re)){var Qr=M(O,Re.escapedText);if(e.isThisInitializedDeclaration(Qr==null?void 0:Qr.valueDeclaration)){mr(pe);break}}Sn(pe);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return rt(pe);case 291:return Cn(pe);case 214:return Qn(pe);case 8:return Ka(pe);case 219:return Mi(pe);case 218:return io(pe);case 247:return ji(pe);case 249:return Hi(pe);case 191:ne=!0;return;case 176:break;case 162:return ko(pe);case 163:return ka(pe);case 253:return xi(pe);case 202:return pe.flowNode=F,xi(pe);case 166:case 165:return Zi(pe);case 294:case 295:return Gi(pe,4,0);case 297:return Gi(pe,8,900095);case 173:case 174:case 175:return rn(pe,131072,0);case 168:case 167:return Gi(pe,8192|(pe.questionToken?16777216:0),e.isObjectLiteralMethod(pe)?0:103359);case 255:return mi(pe);case 170:return rn(pe,16384,0);case 171:return Gi(pe,32768,46015);case 172:return Gi(pe,65536,78783);case 178:case 315:case 321:case 179:return St(pe);case 181:case 320:case 194:return Mo(pe);case 330:return Nr(pe);case 204:return Ut(pe);case 212:case 213:return Xi(pe);case 207:var vn=e.getAssignmentDeclarationKind(pe);switch(vn){case 7:return Jt(pe);case 8:return tn(pe);case 9:return qr(pe);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(pe)&&da(pe);break;case 225:case 256:return g=!0,ei(pe);case 257:return oa(pe,64,788872);case 258:return oa(pe,524288,788968);case 259:return bi(pe);case 260:return Wn(pe);case 285:return qt(pe);case 284:return Mn(pe,4,0);case 264:case 267:case 269:case 274:return rn(pe,2097152,2097152);case 263:return Es(pe);case 266:return hr(pe);case 271:return Cs(pe);case 270:return zo(pe);case 303:return co(pe.statements),Po();case 234:if(!e.isFunctionLikeOrClassStaticBlockDeclaration(pe.parent))return;case 261:return co(pe.statements);case 338:if(pe.parent.kind===321)return ka(pe);if(pe.parent.kind!==320)break;case 345:var Xn=pe,gi=Xn.isBracketed||Xn.typeExpression&&Xn.typeExpression.type.kind===314?16777220:4;return rn(Xn,gi,0);case 343:case 336:case 337:return(Z||(Z=[])).push(pe)}}function Zi(pe){return Gi(pe,4|(pe.questionToken?16777216:0),0)}function Mo(pe){return dn(pe,2048,"__type")}function Po(){if(na(S),e.isExternalModule(S))Fo();else if(e.isJsonSourceFile(S)){Fo();var pe=S.symbol;Pe(S.symbol.exports,S.symbol,S,4,67108863),S.symbol=pe}}function Fo(){dn(S,512,'"'.concat(e.removeFileExtension(S.fileName),'"'))}function zo(pe){if(!w.symbol||!w.symbol.exports)dn(pe,111551,ge(pe));else{var Rr=e.exportAssignmentIsAlias(pe)?2097152:4,ft=Pe(w.symbol.exports,w.symbol,pe,Rr,67108863);pe.isExportEquals&&e.setValueDeclaration(ft,pe)}}function Es(pe){pe.modifiers&&pe.modifiers.length&&S.bindDiagnostics.push(R(pe,e.Diagnostics.Modifiers_cannot_appear_here));var Rr=e.isSourceFile(pe.parent)?e.isExternalModule(pe.parent)?pe.parent.isDeclarationFile?void 0:e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:e.Diagnostics.Global_module_exports_may_only_appear_in_module_files:e.Diagnostics.Global_module_exports_may_only_appear_at_top_level;Rr?S.bindDiagnostics.push(R(pe,Rr)):(S.symbol.globalExports=S.symbol.globalExports||e.createSymbolTable(),Pe(S.symbol.globalExports,S.symbol,pe,2097152,2097152))}function Cs(pe){!w.symbol||!w.symbol.exports?dn(pe,8388608,ge(pe)):pe.exportClause?e.isNamespaceExport(pe.exportClause)&&(e.setParent(pe.exportClause,pe),Pe(w.symbol.exports,w.symbol,pe.exportClause,2097152,2097152)):Pe(w.symbol.exports,w.symbol,pe,8388608,0)}function hr(pe){pe.name&&rn(pe,2097152,2097152)}function dt(pe){return S.externalModuleIndicator?!1:(S.commonJsModuleIndicator||(S.commonJsModuleIndicator=pe,Fo()),!0)}function tn(pe){if(dt(pe)){var Rr=Pn(pe.arguments[0],void 0,function(Zt,Re){return Re&&Te(Re,Zt,67110400),Re});if(Rr){var ft=1048580;Pe(Rr.exports,Rr,pe,ft,0)}}}function Un(pe){if(dt(pe)){var Rr=Pn(pe.left.expression,void 0,function(Re,Qr){return Qr&&Te(Qr,Re,67110400),Qr});if(Rr){var ft=e.isAliasableExpression(pe.right)&&(e.isExportsIdentifier(pe.left.expression)||e.isModuleExportsAccessExpression(pe.left.expression)),Zt=ft?2097152:1048580;e.setParent(pe.left,pe),Pe(Rr.exports,Rr,pe.left,Zt,0)}}}function Oe(pe){if(dt(pe)){var Rr=e.getRightMostAssignedExpression(pe.right);if(!(e.isEmptyObjectLiteral(Rr)||w===S&&b(S,Rr))){if(e.isObjectLiteralExpression(Rr)&&e.every(Rr.properties,e.isShorthandPropertyAssignment)){e.forEach(Rr.properties,oe);return}var ft=e.exportAssignmentIsAlias(pe)?2097152:1049092,Zt=Pe(S.symbol.exports,S.symbol,pe,ft|67108864,0);e.setValueDeclaration(Zt,pe)}}}function oe(pe){Pe(S.symbol.exports,S.symbol,pe,69206016,0)}function mr(pe){e.Debug.assert(e.isInJSFile(pe));var Rr=e.isBinaryExpression(pe)&&e.isPropertyAccessExpression(pe.left)&&e.isPrivateIdentifier(pe.left.name)||e.isPropertyAccessExpression(pe)&&e.isPrivateIdentifier(pe.name);if(!Rr){var ft=e.getThisContainer(pe,!1);switch(ft.kind){case 255:case 212:var Zt=ft.symbol;if(e.isBinaryExpression(ft.parent)&&ft.parent.operatorToken.kind===63){var Re=ft.parent.left;e.isBindableStaticAccessExpression(Re)&&e.isPrototypeAccess(Re.expression)&&(Zt=bt(Re.expression.expression,x))}Zt&&Zt.valueDeclaration&&(Zt.members=Zt.members||e.createSymbolTable(),e.hasDynamicName(pe)?se(pe,Zt,Zt.members):Pe(Zt.members,Zt,pe,67108868,0),Te(Zt,Zt.valueDeclaration,32));break;case 170:case 166:case 168:case 171:case 172:case 169:var Qr=ft.parent,vn=e.isStatic(ft)?Qr.symbol.exports:Qr.symbol.members;e.hasDynamicName(pe)?se(pe,Qr.symbol,vn):Pe(vn,Qr.symbol,pe,67108868,0,!0);break;case 303:if(e.hasDynamicName(pe))break;ft.commonJsModuleIndicator?Pe(ft.symbol.exports,ft.symbol,pe,1048580,0):rn(pe,1,111550);break;default:e.Debug.failBadSyntaxKind(ft)}}}function se(pe,Rr,ft){Pe(ft,Rr,pe,4,0,!0,!0),Be(pe,Rr)}function Be(pe,Rr){Rr&&(Rr.assignmentDeclarationMembers||(Rr.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(pe),pe)}function er(pe){pe.expression.kind===108?mr(pe):e.isBindableStaticAccessExpression(pe)&&pe.parent.parent.kind===303&&(e.isPrototypeAccess(pe.expression)?Dt(pe,pe.parent):ta(pe))}function vr(pe){e.setParent(pe.left,pe),e.setParent(pe.right,pe),Ji(pe.left.expression,pe.left,!1,!0)}function qr(pe){var Rr=bt(pe.arguments[0].expression);Rr&&Rr.valueDeclaration&&Te(Rr,Rr.valueDeclaration,32),Di(pe,Rr,!0)}function Dt(pe,Rr){var ft=pe.expression,Zt=ft.expression;e.setParent(Zt,ft),e.setParent(ft,pe),e.setParent(pe,Rr),Ji(Zt,pe,!0,!0)}function Jt(pe){var Rr=bt(pe.arguments[0]),ft=pe.parent.parent.kind===303;Rr=xa(Rr,pe.arguments[0],ft,!1,!1),Di(pe,Rr,!1)}function Sn(pe){var Rr,ft=bt(pe.left.expression,w)||bt(pe.left.expression,O);if(!(!e.isInJSFile(pe)&&!e.isFunctionSymbol(ft))){var Zt=e.getLeftmostAccessExpression(pe.left);if(!(e.isIdentifier(Zt)&&((Rr=M(w,Zt.escapedText))===null||Rr===void 0?void 0:Rr.flags)&2097152))if(e.setParent(pe.left,pe),e.setParent(pe.right,pe),e.isIdentifier(pe.left.expression)&&w===S&&b(S,pe.left.expression))Un(pe);else if(e.hasDynamicName(pe)){dn(pe,67108868,"__computed");var Re=xa(ft,pe.left.expression,$a(pe.left),!1,!1);Be(pe,Re)}else ta(e.cast(pe.left,e.isBindableStaticNameExpression))}}function ta(pe){e.Debug.assert(!e.isIdentifier(pe)),e.setParent(pe.expression,pe),Ji(pe.expression,pe,!1,!1)}function xa(pe,Rr,ft,Zt,Re){if((pe==null?void 0:pe.flags)&2097152)return pe;if(ft&&!Zt){var Qr=67110400,vn=110735;pe=Pn(Rr,pe,function(Xn,gi,Ia){if(gi)return Te(gi,Xn,Qr),gi;var oo=Ia?Ia.exports:S.jsGlobalAugmentations||(S.jsGlobalAugmentations=e.createSymbolTable());return Pe(oo,Ia,Xn,Qr,vn)})}return Re&&pe&&pe.valueDeclaration&&Te(pe,pe.valueDeclaration,32),pe}function Di(pe,Rr,ft){if(!(!Rr||!So(Rr))){var Zt=ft?Rr.members||(Rr.members=e.createSymbolTable()):Rr.exports||(Rr.exports=e.createSymbolTable()),Re=0,Qr=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(pe))?(Re=8192,Qr=103359):e.isCallExpression(pe)&&e.isBindableObjectDefinePropertyCall(pe)&&(e.some(pe.arguments[2].properties,function(vn){var Xn=e.getNameOfDeclaration(vn);return!!Xn&&e.isIdentifier(Xn)&&e.idText(Xn)==="set"})&&(Re|=65540,Qr|=78783),e.some(pe.arguments[2].properties,function(vn){var Xn=e.getNameOfDeclaration(vn);return!!Xn&&e.isIdentifier(Xn)&&e.idText(Xn)==="get"})&&(Re|=32772,Qr|=46015)),Re===0&&(Re=4,Qr=0),Pe(Zt,Rr,pe,Re|67108864,Qr&-67108865)}}function $a(pe){return e.isBinaryExpression(pe.parent)?cs(pe.parent).parent.kind===303:pe.parent.parent.kind===303}function Ji(pe,Rr,ft,Zt){var Re=bt(pe,w)||bt(pe,O),Qr=$a(Rr);Re=xa(Re,Rr.expression,Qr,ft,Zt),Di(Rr,Re,ft)}function So(pe){if(pe.flags&1072)return!0;var Rr=pe.valueDeclaration;if(Rr&&e.isCallExpression(Rr))return!!e.getAssignedExpandoInitializer(Rr);var ft=Rr?e.isVariableDeclaration(Rr)?Rr.initializer:e.isBinaryExpression(Rr)?Rr.right:e.isPropertyAccessExpression(Rr)&&e.isBinaryExpression(Rr.parent)?Rr.parent.right:void 0:void 0;if(ft=ft&&e.getRightMostAssignedExpression(ft),ft){var Zt=e.isPrototypeAccess(e.isVariableDeclaration(Rr)?Rr.name:e.isBinaryExpression(Rr)?Rr.left:Rr);return!!e.getExpandoInitializer(e.isBinaryExpression(ft)&&(ft.operatorToken.kind===56||ft.operatorToken.kind===60)?ft.right:ft,Zt)}return!1}function cs(pe){for(;e.isBinaryExpression(pe.parent);)pe=pe.parent;return pe.parent}function bt(pe,Rr){if(Rr===void 0&&(Rr=w),e.isIdentifier(pe))return M(Rr,pe.escapedText);var ft=bt(pe.expression);return ft&&ft.exports&&ft.exports.get(e.getElementOrPropertyAccessName(pe))}function Pn(pe,Rr,ft){if(b(S,pe))return S.symbol;if(e.isIdentifier(pe))return ft(pe,bt(pe),Rr);var Zt=Pn(pe.expression,Rr,ft),Re=e.getNameOrArgument(pe);return e.isPrivateIdentifier(Re)&&e.Debug.fail("unexpected PrivateIdentifier"),ft(Re,Zt&&Zt.exports&&Zt.exports.get(e.getElementOrPropertyAccessName(pe)),Zt)}function da(pe){!S.commonJsModuleIndicator&&e.isRequireCall(pe,!1)&&dt(pe)}function ei(pe){if(pe.kind===256)oa(pe,32,899503);else{var Rr=pe.name?pe.name.escapedText:"__class";dn(pe,32,Rr),pe.name&&X.add(pe.name.escapedText)}var ft=pe.symbol,Zt=K(4194308,"prototype"),Re=ft.exports.get(Zt.escapedName);Re&&(pe.name&&e.setParent(pe.name,pe),S.bindDiagnostics.push(R(Re.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(Zt)))),ft.exports.set(Zt.escapedName,Zt),Zt.parent=ft}function bi(pe){return e.isEnumConst(pe)?oa(pe,128,899967):oa(pe,256,899327)}function xi(pe){g&&Ci(pe,pe.name),e.isBindingPattern(pe.name)||(e.isInJSFile(pe)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(pe)&&!e.getJSDocTypeTag(pe)?rn(pe,2097152,2097152):e.isBlockOrCatchScoped(pe)?oa(pe,2,111551):e.isParameterDeclaration(pe)?rn(pe,1,111551):rn(pe,1,111550))}function ka(pe){if(!(pe.kind===338&&w.kind!==321)&&(g&&!(pe.flags&8388608)&&Ci(pe,pe.name),e.isBindingPattern(pe.name)?dn(pe,1,"__"+pe.parent.parameters.indexOf(pe)):rn(pe,1,111551),e.isParameterPropertyDeclaration(pe,pe.parent))){var Rr=pe.parent.parent;Pe(Rr.symbol.members,Rr.symbol,pe,4|(pe.questionToken?16777216:0),0)}}function mi(pe){!S.isDeclarationFile&&!(pe.flags&8388608)&&e.isAsyncFunction(pe)&&(u|=2048),va(pe),g?(ro(pe),oa(pe,16,110991)):rn(pe,16,110991)}function Xi(pe){!S.isDeclarationFile&&!(pe.flags&8388608)&&e.isAsyncFunction(pe)&&(u|=2048),F&&(pe.flowNode=F),va(pe);var Rr=pe.name?pe.name.escapedText:"__function";return dn(pe,16,Rr)}function Gi(pe,Rr,ft){return!S.isDeclarationFile&&!(pe.flags&8388608)&&e.isAsyncFunction(pe)&&(u|=2048),F&&e.isObjectLiteralOrClassExpressionMethodOrAccessor(pe)&&(pe.flowNode=F),e.hasDynamicName(pe)?dn(pe,Rr,"__computed"):rn(pe,Rr,ft)}function Ro(pe){var Rr=e.findAncestor(pe,function(ft){return ft.parent&&e.isConditionalTypeNode(ft.parent)&&ft.parent.extendsType===ft});return Rr&&Rr.parent}function ko(pe){if(e.isJSDocTemplateTag(pe.parent)){var Rr=e.getEffectiveContainerForJSDocTemplateTag(pe.parent);Rr?(Rr.locals||(Rr.locals=e.createSymbolTable()),Pe(Rr.locals,void 0,pe,262144,526824)):rn(pe,262144,526824)}else if(pe.parent.kind===189){var ft=Ro(pe.parent);ft?(ft.locals||(ft.locals=e.createSymbolTable()),Pe(ft.locals,void 0,pe,262144,526824)):dn(pe,262144,ge(pe))}else rn(pe,262144,526824)}function es(pe){var Rr=n(pe);return Rr===1||Rr===2&&e.shouldPreserveConstEnums(B)}function as(pe){if(!(F.flags&1))return!1;if(F===j){var Rr=e.isStatementButNotDeclaration(pe)&&pe.kind!==235||pe.kind===256||pe.kind===260&&es(pe);if(Rr&&(F=Se,!B.allowUnreachableCode)){var ft=e.unreachableCodeIsError(B)&&!(pe.flags&8388608)&&(!e.isVariableStatement(pe)||!!(e.getCombinedNodeFlags(pe.declarationList)&3)||pe.declarationList.declarations.some(function(Zt){return!!Zt.initializer}));A(pe,function(Zt,Re){return lo(ft,Zt,Re,e.Diagnostics.Unreachable_code_detected)})}}return!0}}function A(S,B){if(e.isStatement(S)&&z(S)&&e.isBlock(S.parent)){var H=S.parent.statements,I=e.sliceAfter(H,S);e.getRangesWhere(I,z,function(w,x){return B(I[w],I[x-1])})}else B(S,S)}function z(S){return!e.isFunctionDeclaration(S)&&!ie(S)&&!e.isEnumDeclaration(S)&&!(e.isVariableStatement(S)&&!(e.getCombinedNodeFlags(S)&3)&&S.declarationList.declarations.some(function(B){return!B.initializer}))}function ie(S){switch(S.kind){case 257:case 258:return!0;case 260:return n(S)!==1;case 259:return e.hasSyntacticModifier(S,2048);default:return!1}}function b(S,B){for(var H=0,I=[B];I.length&&H<100;){if(H++,B=I.shift(),e.isExportsIdentifier(B)||e.isModuleExportsAccessExpression(B))return!0;if(e.isIdentifier(B)){var w=M(S,B.escapedText);if(w&&w.valueDeclaration&&e.isVariableDeclaration(w.valueDeclaration)&&w.valueDeclaration.initializer){var x=w.valueDeclaration.initializer;I.push(x),e.isAssignmentExpression(x,!0)&&(I.push(x.left),I.push(x.right))}}}return!1}e.isExportsOrModuleExportsOrAlias=b;function M(S,B){var H=S.locals&&S.locals.get(B);return H?H.exportSymbol||H:e.isSourceFile(S)&&S.jsGlobalAugmentations&&S.jsGlobalAugmentations.has(B)?S.jsGlobalAugmentations.get(B):S.symbol&&S.symbol.exports&&S.symbol.exports.get(B)}}(jr||(jr={})),function(e){function n(f,p,a,d,k,J,h,v,A,z){return ie;function ie(b){b===void 0&&(b=function(){return!0});var M=[],S=[];return{walkType:function(V){try{return B(V),{visitedTypes:e.getOwnValues(M),visitedSymbols:e.getOwnValues(S)}}finally{e.clear(M),e.clear(S)}},walkSymbol:function(V){try{return Q(V),{visitedTypes:e.getOwnValues(M),visitedSymbols:e.getOwnValues(S)}}finally{e.clear(M),e.clear(S)}}};function B(V){if(V&&!M[V.id]){M[V.id]=V;var re=Q(V.symbol);if(!re){if(V.flags&524288){var T=V,N=T.objectFlags;N&4&&H(V),N&32&&q(V),N&3&&ne(V),N&24&&F(T)}V.flags&262144&&I(V),V.flags&3145728&&w(V),V.flags&4194304&&x(V),V.flags&8388608&&O(V)}}}function H(V){B(V.target),e.forEach(z(V),B)}function I(V){B(v(V))}function w(V){e.forEach(V.types,B)}function x(V){B(V.type)}function O(V){B(V.objectType),B(V.indexType),B(V.constraint)}function q(V){B(V.typeParameter),B(V.constraintType),B(V.templateType),B(V.modifiersType)}function Z(V){var re=p(V);re&&B(re.type),e.forEach(V.typeParameters,B);for(var T=0,N=V.parameters;T<N.length;T++){var y=N[T];Q(y)}B(f(V)),B(a(V))}function ne(V){F(V),e.forEach(V.typeParameters,B),e.forEach(d(V),B),B(V.thisType)}function F(V){for(var re=k(V),T=0,N=re.indexInfos;T<N.length;T++){var y=N[T];B(y.keyType),B(y.type)}for(var D=0,C=re.callSignatures;D<C.length;D++){var m=C[D];Z(m)}for(var u=0,g=re.constructSignatures;u<g.length;u++){var m=g[u];Z(m)}for(var P=0,te=re.properties;P<te.length;P++){var ue=te[P];Q(ue)}}function Q(V){if(!V)return!1;var re=e.getSymbolId(V);if(S[re])return!1;if(S[re]=V,!b(V))return!0;var T=J(V);return B(T),V.exports&&V.exports.forEach(Q),e.forEach(V.declarations,function(N){if(N.type&&N.type.kind===180){var y=N.type,D=h(A(y.exprName));Q(D)}}),!1}}}e.createGetSymbolWalker=n}(jr||(jr={})),function(e){var n=/^".+"$/,f="(anonymous)",p=1,a=1,d=1,k=1,J;(function(j){j[j.AllowsSyncIterablesFlag=1]="AllowsSyncIterablesFlag",j[j.AllowsAsyncIterablesFlag=2]="AllowsAsyncIterablesFlag",j[j.AllowsStringInputFlag=4]="AllowsStringInputFlag",j[j.ForOfFlag=8]="ForOfFlag",j[j.YieldStarFlag=16]="YieldStarFlag",j[j.SpreadFlag=32]="SpreadFlag",j[j.DestructuringFlag=64]="DestructuringFlag",j[j.PossiblyOutOfBounds=128]="PossiblyOutOfBounds",j[j.Element=1]="Element",j[j.Spread=33]="Spread",j[j.Destructuring=65]="Destructuring",j[j.ForOf=13]="ForOf",j[j.ForAwaitOf=15]="ForAwaitOf",j[j.YieldStar=17]="YieldStar",j[j.AsyncYieldStar=19]="AsyncYieldStar",j[j.GeneratorReturnType=1]="GeneratorReturnType",j[j.AsyncGeneratorReturnType=2]="AsyncGeneratorReturnType"})(J||(J={}));var h;(function(j){j[j.Yield=0]="Yield",j[j.Return=1]="Return",j[j.Next=2]="Next"})(h||(h={}));var v;(function(j){j[j.Normal=0]="Normal",j[j.FunctionReturn=1]="FunctionReturn",j[j.GeneratorNext=2]="GeneratorNext",j[j.GeneratorYield=3]="GeneratorYield"})(v||(v={}));var A;(function(j){j[j.None=0]="None",j[j.TypeofEQString=1]="TypeofEQString",j[j.TypeofEQNumber=2]="TypeofEQNumber",j[j.TypeofEQBigInt=4]="TypeofEQBigInt",j[j.TypeofEQBoolean=8]="TypeofEQBoolean",j[j.TypeofEQSymbol=16]="TypeofEQSymbol",j[j.TypeofEQObject=32]="TypeofEQObject",j[j.TypeofEQFunction=64]="TypeofEQFunction",j[j.TypeofEQHostObject=128]="TypeofEQHostObject",j[j.TypeofNEString=256]="TypeofNEString",j[j.TypeofNENumber=512]="TypeofNENumber",j[j.TypeofNEBigInt=1024]="TypeofNEBigInt",j[j.TypeofNEBoolean=2048]="TypeofNEBoolean",j[j.TypeofNESymbol=4096]="TypeofNESymbol",j[j.TypeofNEObject=8192]="TypeofNEObject",j[j.TypeofNEFunction=16384]="TypeofNEFunction",j[j.TypeofNEHostObject=32768]="TypeofNEHostObject",j[j.EQUndefined=65536]="EQUndefined",j[j.EQNull=131072]="EQNull",j[j.EQUndefinedOrNull=262144]="EQUndefinedOrNull",j[j.NEUndefined=524288]="NEUndefined",j[j.NENull=1048576]="NENull",j[j.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",j[j.Truthy=4194304]="Truthy",j[j.Falsy=8388608]="Falsy",j[j.All=16777215]="All",j[j.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",j[j.BaseStringFacts=12582401]="BaseStringFacts",j[j.StringStrictFacts=16317953]="StringStrictFacts",j[j.StringFacts=16776705]="StringFacts",j[j.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",j[j.EmptyStringFacts=12582401]="EmptyStringFacts",j[j.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",j[j.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",j[j.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",j[j.BaseNumberFacts=12582146]="BaseNumberFacts",j[j.NumberStrictFacts=16317698]="NumberStrictFacts",j[j.NumberFacts=16776450]="NumberFacts",j[j.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",j[j.ZeroNumberFacts=12582146]="ZeroNumberFacts",j[j.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",j[j.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",j[j.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",j[j.BaseBigIntFacts=12581636]="BaseBigIntFacts",j[j.BigIntStrictFacts=16317188]="BigIntStrictFacts",j[j.BigIntFacts=16775940]="BigIntFacts",j[j.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",j[j.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",j[j.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",j[j.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",j[j.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",j[j.BaseBooleanFacts=12580616]="BaseBooleanFacts",j[j.BooleanStrictFacts=16316168]="BooleanStrictFacts",j[j.BooleanFacts=16774920]="BooleanFacts",j[j.FalseStrictFacts=12121864]="FalseStrictFacts",j[j.FalseFacts=12580616]="FalseFacts",j[j.TrueStrictFacts=7927560]="TrueStrictFacts",j[j.TrueFacts=16774920]="TrueFacts",j[j.SymbolStrictFacts=7925520]="SymbolStrictFacts",j[j.SymbolFacts=16772880]="SymbolFacts",j[j.ObjectStrictFacts=7888800]="ObjectStrictFacts",j[j.ObjectFacts=16736160]="ObjectFacts",j[j.FunctionStrictFacts=7880640]="FunctionStrictFacts",j[j.FunctionFacts=16728e3]="FunctionFacts",j[j.UndefinedFacts=9830144]="UndefinedFacts",j[j.NullFacts=9363232]="NullFacts",j[j.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",j[j.AllTypeofNE=556800]="AllTypeofNE",j[j.EmptyObjectFacts=16777215]="EmptyObjectFacts"})(A||(A={}));var z=new e.Map(e.getEntries({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64})),ie=new e.Map(e.getEntries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),b;(function(j){j[j.Type=0]="Type",j[j.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",j[j.DeclaredType=2]="DeclaredType",j[j.ResolvedReturnType=3]="ResolvedReturnType",j[j.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",j[j.EnumTagType=5]="EnumTagType",j[j.ResolvedTypeArguments=6]="ResolvedTypeArguments",j[j.ResolvedBaseTypes=7]="ResolvedBaseTypes"})(b||(b={}));var M;(function(j){j[j.Normal=0]="Normal",j[j.Contextual=1]="Contextual",j[j.Inferential=2]="Inferential",j[j.SkipContextSensitive=4]="SkipContextSensitive",j[j.SkipGenericFunctions=8]="SkipGenericFunctions",j[j.IsForSignatureHelp=16]="IsForSignatureHelp"})(M||(M={}));var S;(function(j){j[j.BivariantCallback=1]="BivariantCallback",j[j.StrictCallback=2]="StrictCallback",j[j.IgnoreReturnTypes=4]="IgnoreReturnTypes",j[j.StrictArity=8]="StrictArity",j[j.Callback=3]="Callback"})(S||(S={}));var B;(function(j){j[j.None=0]="None",j[j.Source=1]="Source",j[j.Target=2]="Target",j[j.PropertyCheck=4]="PropertyCheck",j[j.UnionIntersectionCheck=8]="UnionIntersectionCheck",j[j.InPropertyCheck=16]="InPropertyCheck"})(B||(B={}));var H;(function(j){j[j.None=0]="None",j[j.Source=1]="Source",j[j.Target=2]="Target",j[j.Both=3]="Both"})(H||(H={}));var I;(function(j){j[j.IncludeReadonly=1]="IncludeReadonly",j[j.ExcludeReadonly=2]="ExcludeReadonly",j[j.IncludeOptional=4]="IncludeOptional",j[j.ExcludeOptional=8]="ExcludeOptional"})(I||(I={}));var w;(function(j){j[j.None=0]="None",j[j.Source=1]="Source",j[j.Target=2]="Target",j[j.Both=3]="Both"})(w||(w={}));var x;(function(j){j.resolvedExports="resolvedExports",j.resolvedMembers="resolvedMembers"})(x||(x={}));var O;(function(j){j[j.Local=0]="Local",j[j.Parameter=1]="Parameter"})(O||(O={}));var q=e.and(u,m),Z;(function(j){j[j.GetAccessor=1]="GetAccessor",j[j.SetAccessor=2]="SetAccessor",j[j.PropertyAssignment=4]="PropertyAssignment",j[j.Method=8]="Method",j[j.PrivateStatic=16]="PrivateStatic",j[j.GetOrSetAccessor=3]="GetOrSetAccessor",j[j.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod"})(Z||(Z={}));var ne;(function(j){j[j.None=0]="None",j[j.ExportValue=1]="ExportValue",j[j.ExportType=2]="ExportType",j[j.ExportNamespace=4]="ExportNamespace"})(ne||(ne={}));var F;(function(j){j[j.None=0]="None",j[j.StrongArityForUntypedJS=1]="StrongArityForUntypedJS",j[j.VoidIsNonOptional=2]="VoidIsNonOptional"})(F||(F={}));var Q;(function(j){j[j.Uppercase=0]="Uppercase",j[j.Lowercase=1]="Lowercase",j[j.Capitalize=2]="Capitalize",j[j.Uncapitalize=3]="Uncapitalize"})(Q||(Q={}));var V=new e.Map(e.getEntries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3}));function re(){}function T(){this.flags=0}function N(j){return j.id||(j.id=a,a++),j.id}e.getNodeId=N;function y(j){return j.id||(j.id=p,p++),j.id}e.getSymbolId=y;function D(j,Se){var Ce=e.getModuleInstanceState(j);return Ce===1||Se&&Ce===2}e.isInstantiatedModule=D;function C(j,Se){var Ce=e.memoize(function(){var r=new e.Map;return j.getSourceFiles().forEach(function(t){t.resolvedModules&&t.resolvedModules.forEach(function(i){i&&i.packageId&&r.set(i.packageId.name,i.extension===".d.ts"||!!r.get(i.packageId.name))})}),r}),R,Y,U,K=e.objectAllocator.getSymbolConstructor(),Te=e.objectAllocator.getTypeConstructor(),ge=e.objectAllocator.getSignatureConstructor(),ke=0,Pe=0,Ie=0,Ge=0,he=0,ve=0,Ve=0,_e,Le=e.createSymbolTable(),qe=[1],Xe=j.getCompilerOptions(),De=e.getEmitScriptTarget(Xe),Ae=e.getEmitModuleKind(Xe),Ye=e.getUseDefineForClassFields(Xe),Dr=e.getAllowSyntheticDefaultImports(Xe),br=e.getStrictOptionValue(Xe,"strictNullChecks"),lr=e.getStrictOptionValue(Xe,"strictFunctionTypes"),Ar=e.getStrictOptionValue(Xe,"strictBindCallApply"),kr=e.getStrictOptionValue(Xe,"strictPropertyInitialization"),Ke=e.getStrictOptionValue(Xe,"noImplicitAny"),Me=e.getStrictOptionValue(Xe,"noImplicitThis"),Hr=e.getStrictOptionValue(Xe,"useUnknownInCatchVariables"),ur=!!Xe.keyofStringsOnly,gr=Xe.suppressExcessPropertyErrors?0:16384,de=Xe.exactOptionalPropertyTypes,Fe=y6(),$e=M8(),Sr=k_(),Pr=e.createSymbolTable(),He=fo(4,"undefined");He.declarations=[];var pr=fo(1536,"globalThis",8);pr.exports=Pr,pr.declarations=[],Pr.set(pr.escapedName,pr);var Jr=fo(4,"arguments"),ze=fo(4,"require"),Lr,Yr={getNodeCount:function(){return e.sum(j.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(j.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(j.getSourceFiles(),"symbolCount")+Pe},getTypeCount:function(){return ke},getInstantiationCount:function(){return Ge},getRelationCacheSizes:function(){return{assignable:Ta.size,identity:fi.size,subtype:ha.size,strictSubtype:ri.size}},isUndefinedSymbol:function(r){return r===He},isArgumentsSymbol:function(r){return r===Jr},isUnknownSymbol:function(r){return r===We},getMergedSymbol:Ga,getDiagnostics:nI,getGlobalDiagnostics:Q3,getRecursionIdentity:ph,getUnmatchedProperties:e1,getTypeOfSymbolAtLocation:function(r,t){var i=e.getParseTreeNode(t);return i?Fw(r,i):dr},getSymbolsOfParameterPropertyDeclaration:function(r,t){var i=e.getParseTreeNode(r,e.isParameter);return i===void 0?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):yf(i,e.escapeLeadingUnderscores(t))},getDeclaredTypeOfSymbol:po,getPropertiesOfType:Yi,getPropertyOfType:function(r,t){return Ii(r,e.escapeLeadingUnderscores(t))},getPrivateIdentifierPropertyOfType:function(r,t,i){var o=e.getParseTreeNode(i);if(o){var s=e.escapeLeadingUnderscores(t),c=pb(s,o);return c?O1(r,c):void 0}},getTypeOfPropertyOfType:function(r,t){return ia(r,e.escapeLeadingUnderscores(t))},getIndexInfoOfType:function(r,t){return oc(r,t===0?xt:wt)},getIndexInfosOfType:Ps,getSignaturesOfType:Ni,getIndexTypeOfType:function(r,t){return tu(r,t===0?xt:wt)},getBaseTypes:xl,getBaseTypeOfLiteralType:Du,getWidenedType:wl,getTypeFromTypeNode:function(r){var t=e.getParseTreeNode(r,e.isTypeNode);return t?Da(t):dr},getParameterType:Uc,getParameterIdentifierNameAtPosition:YP,getPromisedTypeOfPromise:hv,getAwaitedType:function(r){return J_(r)},getReturnTypeOfSignature:_o,isNullableType:db,getNullableType:Uy,getNonNullableType:Td,getNonOptionalType:H0,getTypeArguments:vo,typeToTypeNode:Sr.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Sr.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Sr.signatureToSignatureDeclaration,symbolToEntityName:Sr.symbolToEntityName,symbolToExpression:Sr.symbolToExpression,symbolToTypeParameterDeclarations:Sr.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Sr.symbolToParameterDeclaration,typeParameterToDeclaration:Sr.typeParameterToDeclaration,getSymbolsInScope:function(r,t){var i=e.getParseTreeNode(r);return i?Z3(i,t):[]},getSymbolAtLocation:function(r){var t=e.getParseTreeNode(r);return t?Vc(t,!0):void 0},getIndexInfosAtLocation:function(r){var t=e.getParseTreeNode(r);return t?i8(t):void 0},getShorthandAssignmentValueSymbol:function(r){var t=e.getParseTreeNode(r);return t?o8(t):void 0},getExportSpecifierLocalTargetSymbol:function(r){var t=e.getParseTreeNode(r,e.isExportSpecifier);return t?s8(t):void 0},getExportSymbolOfSymbol:function(r){return Ga(r.exportSymbol||r)},getTypeAtLocation:function(r){var t=e.getParseTreeNode(r);return t?jp(t):dr},getTypeOfAssignmentPattern:function(r){var t=e.getParseTreeNode(r,e.isAssignmentPattern);return t&&jb(t)||dr},getPropertySymbolOfDestructuringAssignment:function(r){var t=e.getParseTreeNode(r,e.isIdentifier);return t?l8(t):void 0},signatureToString:function(r,t,i,o){return pu(r,e.getParseTreeNode(t),i,o)},typeToString:function(r,t,i){return gn(r,e.getParseTreeNode(t),i)},symbolToString:function(r,t,i,o){return Wa(r,e.getParseTreeNode(t),i,o)},typePredicateToString:function(r,t,i){return Yc(r,e.getParseTreeNode(t),i)},writeSignature:function(r,t,i,o,s){return pu(r,e.getParseTreeNode(t),i,o,s)},writeType:function(r,t,i,o){return gn(r,e.getParseTreeNode(t),i,o)},writeSymbol:function(r,t,i,o,s){return Wa(r,e.getParseTreeNode(t),i,o,s)},writeTypePredicate:function(r,t,i,o){return Yc(r,e.getParseTreeNode(t),i,o)},getAugmentedPropertiesOfType:DT,getRootSymbols:cI,getSymbolOfExpando:Tb,getContextualType:function(r,t){var i=e.getParseTreeNode(r,e.isExpression);if(i){var o=e.findAncestor(i,e.isCallLikeExpression),s=o&&Zn(o).resolvedSignature;if(t&4&&o){var c=i;do Zn(c).skipDirectInference=!0,c=c.parent;while(c&&c!==o);Zn(o).resolvedSignature=void 0}var L=Ac(i,t);if(t&4&&o){var c=i;do Zn(c).skipDirectInference=void 0,c=c.parent;while(c&&c!==o);Zn(o).resolvedSignature=s}return L}},getContextualTypeForObjectLiteralElement:function(r){var t=e.getParseTreeNode(r,e.isObjectLiteralElementLike);return t?y1(t):void 0},getContextualTypeForArgumentAtIndex:function(r,t){var i=e.getParseTreeNode(r,e.isCallLikeExpression);return i&&h1(i,t)},getContextualTypeForJsxAttribute:function(r){var t=e.getParseTreeNode(r,e.isJsxAttributeLike);return t&&GA(t)},isContextSensitive:nu,getTypeOfPropertyOfContextualType:b_,getFullyQualifiedName:sl,getResolvedSignature:function(r,t,i){return lt(r,t,i,0)},getResolvedSignatureForSignatureHelp:function(r,t,i){return lt(r,t,i,16)},getExpandedParameters:cy,hasEffectiveRestParameter:xu,containsArgumentsReference:zE,getConstantValue:function(r){var t=e.getParseTreeNode(r,_I);return t?AT(t):void 0},isValidPropertyAccess:function(r,t){var i=e.getParseTreeNode(r,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!i&&fP(i,e.escapeLeadingUnderscores(t))},isValidPropertyAccessForCompletions:function(r,t,i){var o=e.getParseTreeNode(r,e.isPropertyAccessExpression);return!!o&&pC(o,t,i)},getSignatureFromDeclaration:function(r){var t=e.getParseTreeNode(r,e.isFunctionLike);return t?bu(t):void 0},isImplementationOfOverload:function(r){var t=e.getParseTreeNode(r,e.isFunctionLike);return t?dI(t):void 0},getImmediateAliasedSymbol:jA,getAliasedSymbol:ms,getEmitResolver:Nu,getExportsOfModule:cd,getExportsAndPropertiesOfModule:Cf,forEachExportAndPropertyOfModule:yc,getSymbolWalker:e.createGetSymbolWalker(Ek,Dc,_o,xl,Sc,An,Lu,Nl,e.getFirstIdentifier,vo),getAmbientModules:CF,getJsxIntrinsicTagNamesAt:JM,isOptionalParameter:function(r){var t=e.getParseTreeNode(r,e.isParameter);return t?w_(t):!1},tryGetMemberInModuleExports:function(r,t){return ud(e.escapeLeadingUnderscores(r),t)},tryGetMemberInModuleExportsAndProperties:function(r,t){return xf(e.escapeLeadingUnderscores(r),t)},tryFindAmbientModule:function(r){return Hg(r,!0)},tryFindAmbientModuleWithoutAugmentations:function(r){return Hg(r,!1)},getApparentType:wi,getUnionType:ma,isTypeAssignableTo:Qi,createAnonymousType:ts,createSignature:hu,createSymbol:fo,createIndexInfo:Eu,getAnyType:function(){return Ze},getStringType:function(){return xt},getNumberType:function(){return wt},createPromiseType:Nh,createArrayType:zs,getElementTypeOfArrayType:G0,getBooleanType:function(){return Jn},getFalseType:function(r){return r?mt:rn},getTrueType:function(r){return r?sa:ba},getVoidType:function(){return Wn},getUndefinedType:function(){return Nr},getNullType:function(){return ut},getESSymbolType:function(){return na},getNeverType:function(){return en},getOptionalType:function(){return gt},getPromiseType:function(){return ah(!1)},getPromiseLikeType:function(){return wD(!1)},isSymbolAccessible:rf,isArrayType:el,isTupleType:ki,isArrayLikeType:_p,isTypeInvalidDueToUnionDiscriminant:UE,getExactOptionalProperties:hR,getAllPossiblePropertiesOfTypes:VE,getSuggestedSymbolForNonexistentProperty:M1,getSuggestionForNonexistentProperty:P1,getSuggestedSymbolForNonexistentJSXAttribute:fC,getSuggestedSymbolForNonexistentSymbol:function(r,t,i){return F1(r,e.escapeLeadingUnderscores(t),i)},getSuggestionForNonexistentSymbol:function(r,t,i){return sP(r,e.escapeLeadingUnderscores(t),i)},getSuggestedSymbolForNonexistentModule:mb,getSuggestionForNonexistentExport:lP,getSuggestedSymbolForNonexistentClassMember:uC,getBaseConstraintOfType:l,getDefaultFromTypeParameter:function(r){return r&&r.flags&262144?Bn(r):void 0},resolveName:function(r,t,i,o){return Uo(t,e.escapeLeadingUnderscores(r),i,void 0,void 0,!1,o)},getJsxNamespace:function(r){return e.unescapeLeadingUnderscores(bo(r))},getJsxFragmentFactory:function(r){var t=xT(r);return t&&e.unescapeLeadingUnderscores(e.getFirstIdentifier(t).escapedText)},getAccessibleSymbolChain:kf,getTypePredicateOfSignature:Dc,resolveExternalModuleName:function(r){var t=e.getParseTreeNode(r,e.isExpression);return t&&ws(t,t,!0)},resolveExternalModuleSymbol:ll,tryGetThisTypeAt:function(r,t){var i=e.getParseTreeNode(r);return i&&p1(i,t)},getTypeArgumentConstraint:function(r){var t=e.getParseTreeNode(r,e.isTypeNode);return t&&K6(t)},getSuggestionDiagnostics:function(r,t){var i=e.getParseTreeNode(r,e.isSourceFile)||e.Debug.fail("Could not determine parsed source file.");if(e.skipTypeChecking(i,Xe,j))return e.emptyArray;var o;try{return R=t,TT(i),e.Debug.assert(!!(Zn(i).flags&1)),o=e.addRange(o,le.getDiagnostics(i.fileName)),Sx(tI(i),function(s,c,L){!e.containsParseError(s)&&!rI(c,!!(s.flags&8388608))&&(o||(o=[])).push(Rn(Rn({},L),{category:e.DiagnosticCategory.Suggestion}))}),o||e.emptyArray}finally{R=void 0}},runWithCancellationToken:function(r,t){try{return R=r,t(Yr)}finally{R=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:mu,isDeclarationVisible:Qc,isPropertyAccessible:B1,getTypeOnlyAliasDeclaration:Ln,getMemberOverrideModifierStatus:m3};function lt(r,t,i,o){var s=e.getParseTreeNode(r,e.isCallLikeExpression);Lr=i;var c=s?_g(s,t,o):void 0;return Lr=void 0,c}var tt=new e.Map,Rt=new e.Map,cn=new e.Map,bn=new e.Map,In=new e.Map,zn=new e.Map,ir=new e.Map,Or=new e.Map,sr=new e.Map,ye=new e.Map,or=new e.Map,fe=new e.Map,je=[],Ee=new e.Map,We=fo(4,"unknown"),$=fo(0,"__resolving__"),Ne=new e.Map,me=new e.Map,Ze=jo(1,"any"),Cr=jo(1,"any"),fr=jo(1,"any"),dr=jo(1,"error"),et=jo(1,"unresolved"),yt=jo(1,"any",131072),Vr=jo(1,"intrinsic"),tr=jo(2,"unknown"),xr=jo(2,"unknown"),Nr=jo(32768,"undefined"),zr=br?Nr:jo(32768,"undefined",131072),gt=jo(32768,"undefined"),vt=de?jo(32768,"undefined"):Nr,ut=jo(65536,"null"),ht=br?ut:jo(65536,"null",131072),xt=jo(4,"string"),wt=jo(8,"number"),Qt=jo(64,"bigint"),mt=jo(512,"false"),rn=jo(512,"false"),sa=jo(512,"true"),ba=jo(512,"true");sa.regularType=ba,sa.freshType=sa,ba.regularType=ba,ba.freshType=sa,mt.regularType=rn,mt.freshType=mt,rn.regularType=rn,rn.freshType=mt;var Jn=ma([rn,ba]),na=jo(4096,"symbol"),Wn=jo(16384,"void"),en=jo(131072,"never"),St=jo(131072,"never"),Ut=jo(131072,"never",524288),qt=jo(131072,"never"),Mn=jo(131072,"never"),dn=jo(67108864,"object"),oa=ma([xt,wt]),pt=ma([xt,wt,na]),_t=ur?xt:pt,Mt=ma([wt,Qt]),It=ma([xt,wt,Jn,Qt,ut,Nr]),rt=p_(function(r){return r.flags&262144?KO(r):r}),Cn=p_(function(r){return r.flags&262144?fr:r}),Qn=ts(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray),Ra=ts(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray);Ra.objectFlags|=2048;var Ci=fo(2048,"__type");Ci.members=e.createSymbolTable();var _i=ts(Ci,Le,e.emptyArray,e.emptyArray,e.emptyArray),va=ts(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray);va.instantiations=new e.Map;var yi=ts(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray);yi.objectFlags|=524288;var ro=ts(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray),Ka=ts(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray),Mi=ts(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray),io=nc(),ji=nc();ji.constraint=io;var Hi=nc(),to=rh(1,"<<unresolved>>",0,Ze),No=hu(void 0,void 0,void 0,e.emptyArray,Ze,void 0,0,0),lo=hu(void 0,void 0,void 0,e.emptyArray,dr,void 0,0,0),Lo=hu(void 0,void 0,void 0,e.emptyArray,Ze,void 0,0,0),Ha=hu(void 0,void 0,void 0,e.emptyArray,St,void 0,0,0),Yo=Eu(wt,xt,!0),co=new e.Map,za={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},hi=Xf(Ze,Ze,Ze),Zi=Xf(Ze,Ze,tr),Mo=Xf(en,Ze,Nr),Po={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Gk,getGlobalIterableType:Fk,getGlobalIterableIteratorType:Bk,getGlobalGeneratorType:Uk,resolveIterationType:J_,mustHaveANextMethodDiagnostic:e.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Fo={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:Vk,getGlobalIterableType:MD,getGlobalIterableIteratorType:Wk,getGlobalGeneratorType:jk,resolveIterationType:function(r,t){return r},mustHaveANextMethodDiagnostic:e.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},zo,Es=new e.Map,Cs=!1,hr,dt,tn,Un,Oe,oe,mr,se,Be,er,vr,qr,Dt,Jt,Sn,ta,xa,Di,$a,Ji,So,cs,bt,Pn,da,ei,bi,xi,ka,mi,Xi,Gi,Ro,ko,es,as,pe,Rr,ft,Zt,Re,Qr,vn,Xn,gi=new e.Map,Ia=0,oo=0,Wo=0,Ir=!1,Us=0,il,Ml,Co,Vs=Lc(""),Ql=Wf(0),zl=y0({negative:!1,base10Value:"0"}),uc=[],cu=[],no=[],ql=0,fc=10,Ws=[],xc=[],Ic=[],La=[],uu=[],dc=[],Nc=[],wr=[],$r=[],Lt=[],Kt=[],pn=[],fn=[],kn=[],Kn=[],Fa=[],ua=e.createDiagnosticCollection(),le=e.createDiagnosticCollection(),rr=new e.Map(e.getEntries({string:xt,number:wt,bigint:Qt,boolean:Jn,symbol:na,undefined:Nr})),yr=Kd(),ct,jt,yn,ha=new e.Map,ri=new e.Map,Ta=new e.Map,Ya=new e.Map,fi=new e.Map,ci=new e.Map,Si=e.createSymbolTable();Si.set(He.escapedName,He);var Do=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",Xe.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return P8(),Yr;function bo(r){if(r){var t=e.getSourceFileOfNode(r);if(t)if(e.isJsxOpeningFragment(r)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;var i=t.pragmas.get("jsxfrag");if(i){var o=e.isArray(i)?i[0]:i;if(t.localJsxFragmentFactory=e.parseIsolatedEntityName(o.arguments.factory,De),e.visitNode(t.localJsxFragmentFactory,Ys),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=e.getFirstIdentifier(t.localJsxFragmentFactory).escapedText}var s=xT(r);if(s)return t.localJsxFragmentFactory=s,t.localJsxFragmentNamespace=e.getFirstIdentifier(s).escapedText}else{var c=Ns(t);if(c)return t.localJsxNamespace=c}}return ct||(ct="React",Xe.jsxFactory?(jt=e.parseIsolatedEntityName(Xe.jsxFactory,De),e.visitNode(jt,Ys),jt&&(ct=e.getFirstIdentifier(jt).escapedText)):Xe.reactNamespace&&(ct=e.escapeLeadingUnderscores(Xe.reactNamespace))),jt||(jt=e.factory.createQualifiedName(e.factory.createIdentifier(e.unescapeLeadingUnderscores(ct)),"createElement")),ct}function Ns(r){if(r.localJsxNamespace)return r.localJsxNamespace;var t=r.pragmas.get("jsx");if(t){var i=e.isArray(t)?t[0]:t;if(r.localJsxFactory=e.parseIsolatedEntityName(i.arguments.factory,De),e.visitNode(r.localJsxFactory,Ys),r.localJsxFactory)return r.localJsxNamespace=e.getFirstIdentifier(r.localJsxFactory).escapedText}}function Ys(r){return e.setTextRangePosEnd(r,-1,-1),e.visitEachChild(r,Ys,e.nullTransformationContext)}function Nu(r,t){return nI(r,t),$e}function gf(r,t,i,o,s,c){var L=r?e.createDiagnosticForNode(r,t,i,o,s,c):e.createCompilerDiagnostic(t,i,o,s,c),G=ua.lookup(L);return G||(ua.add(L),L)}function Zl(r,t,i,o,s,c,L){var G=Mr(t,i,o,s,c,L);return G.skippedOn=r,G}function jc(r,t,i,o,s,c){return r?e.createDiagnosticForNode(r,t,i,o,s,c):e.createCompilerDiagnostic(t,i,o,s,c)}function Mr(r,t,i,o,s,c){var L=jc(r,t,i,o,s,c);return ua.add(L),L}function $l(r,t){r?ua.add(t):le.add(Rn(Rn({},t),{category:e.DiagnosticCategory.Suggestion}))}function pc(r,t,i,o,s,c,L){if(t.pos<0||t.end<0){if(!r)return;var G=e.getSourceFileOfNode(t);$l(r,"message"in i?e.createFileDiagnostic(G,0,0,i,o,s,c,L):e.createDiagnosticForFileFromMessageChain(G,i));return}$l(r,"message"in i?e.createDiagnosticForNode(t,i,o,s,c,L):e.createDiagnosticForNodeFromMessageChain(t,i))}function ku(r,t,i,o,s,c,L){var G=Mr(r,i,o,s,c,L);if(t){var ce=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(G,ce)}return G}function ol(r,t){var i=Array.isArray(r)?e.forEach(r,e.getJSDocDeprecatedTag):e.getJSDocDeprecatedTag(r);return i&&e.addRelatedInfo(t,e.createDiagnosticForNode(i,e.Diagnostics.The_declaration_was_marked_as_deprecated_here)),le.add(t),t}function kc(r,t,i){var o=e.createDiagnosticForNode(r,e.Diagnostics._0_is_deprecated,i);return ol(t,o)}function vf(r,t,i,o){var s=i?e.createDiagnosticForNode(r,e.Diagnostics.The_signature_0_of_1_is_deprecated,o,i):e.createDiagnosticForNode(r,e.Diagnostics._0_is_deprecated,o);return ol(t,s)}function fo(r,t,i){Pe++;var o=new K(r|33554432,t);return o.checkFlags=i||0,o}function Zf(r){var t=0;return r&2&&(t|=111551),r&1&&(t|=111550),r&4&&(t|=0),r&8&&(t|=900095),r&16&&(t|=110991),r&32&&(t|=899503),r&64&&(t|=788872),r&256&&(t|=899327),r&128&&(t|=899967),r&512&&(t|=110735),r&8192&&(t|=103359),r&32768&&(t|=46015),r&65536&&(t|=78783),r&262144&&(t|=526824),r&524288&&(t|=788968),r&2097152&&(t|=2097152),t}function hf(r,t){t.mergeId||(t.mergeId=d,d++),Ws[t.mergeId]=r}function Nd(r){var t=fo(r.flags,r.escapedName);return t.declarations=r.declarations?r.declarations.slice():[],t.parent=r.parent,r.valueDeclaration&&(t.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),r.members&&(t.members=new e.Map(r.members)),r.exports&&(t.exports=new e.Map(r.exports)),hf(t,r),t}function _s(r,t,i){if(i===void 0&&(i=!1),!(r.flags&Zf(t.flags))||(t.flags|r.flags)&67108864){if(t===r)return r;if(!(r.flags&33554432)){var o=wo(r);if(o===We)return t;r=Nd(o)}t.flags&512&&r.flags&512&&r.constEnumOnlyModule&&!t.constEnumOnlyModule&&(r.constEnumOnlyModule=!1),r.flags|=t.flags,t.valueDeclaration&&e.setValueDeclaration(r,t.valueDeclaration),e.addRange(r.declarations,t.declarations),t.members&&(r.members||(r.members=e.createSymbolTable()),dl(r.members,t.members,i)),t.exports&&(r.exports||(r.exports=e.createSymbolTable()),dl(r.exports,t.exports,i)),i||hf(r,t)}else if(r.flags&1024)r!==pr&&Mr(t.declarations&&e.getNameOfDeclaration(t.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Wa(r));else{var s=!!(r.flags&384||t.flags&384),c=!!(r.flags&2||t.flags&2),L=s?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:c?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,G=t.declarations&&e.getSourceFileOfNode(t.declarations[0]),ce=r.declarations&&e.getSourceFileOfNode(r.declarations[0]),we=Wa(t);if(G&&ce&&zo&&!s&&G!==ce){var Ue=e.comparePaths(G.path,ce.path)===-1?G:ce,Je=Ue===G?ce:G,ar=e.getOrUpdate(zo,"".concat(Ue.path,"|").concat(Je.path),function(){return{firstFile:Ue,secondFile:Je,conflictingSymbols:new e.Map}}),_r=e.getOrUpdate(ar.conflictingSymbols,we,function(){return{isBlockScoped:c,firstFileLocations:[],secondFileLocations:[]}});Gr(_r.firstFileLocations,t),Gr(_r.secondFileLocations,r)}else Hc(t,L,we,r),Hc(r,L,we,t)}return r;function Gr(Zr,Et){if(Et.declarations)for(var Tt=0,At=Et.declarations;Tt<At.length;Tt++){var Vt=At[Tt];e.pushIfUnique(Zr,Vt)}}}function Hc(r,t,i,o){e.forEach(r.declarations,function(s){Jc(s,t,i,o.declarations)})}function Jc(r,t,i,o){for(var s=(e.getExpandoInitializer(r,!1)?e.getNameOfExpando(r):e.getNameOfDeclaration(r))||r,c=gf(s,t,i),L=function(Ue){var Je=(e.getExpandoInitializer(Ue,!1)?e.getNameOfExpando(Ue):e.getNameOfDeclaration(Ue))||Ue;if(Je===s)return"continue";c.relatedInformation=c.relatedInformation||[];var ar=e.createDiagnosticForNode(Je,e.Diagnostics._0_was_also_declared_here,i),_r=e.createDiagnosticForNode(Je,e.Diagnostics.and_here);if(e.length(c.relatedInformation)>=5||e.some(c.relatedInformation,function(Gr){return e.compareDiagnostics(Gr,_r)===0||e.compareDiagnostics(Gr,ar)===0}))return"continue";e.addRelatedInfo(c,e.length(c.relatedInformation)?_r:ar)},G=0,ce=o||e.emptyArray;G<ce.length;G++){var we=ce[G];L(we)}}function zp(r,t){if(!(r!=null&&r.size))return t;if(!(t!=null&&t.size))return r;var i=e.createSymbolTable();return dl(i,r),dl(i,t),i}function dl(r,t,i){i===void 0&&(i=!1),t.forEach(function(o,s){var c=r.get(s);r.set(s,c?_s(c,o,i):o)})}function qp(r){var t,i,o,s=r.parent;if(((t=s.symbol.declarations)===null||t===void 0?void 0:t[0])!==s){e.Debug.assert(s.symbol.declarations.length>1);return}if(e.isGlobalScopeAugmentation(s))dl(Pr,s.symbol.exports);else{var c=r.parent.parent.flags&8388608?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,L=Mc(r,r,c,!0);if(!L)return;if(L=ll(L),L.flags&1920)if(e.some(dt,function(Gr){return L===Gr.symbol})){var G=_s(s.symbol,L,!0);tn||(tn=new e.Map),tn.set(r.text,G)}else{if(!((i=L.exports)===null||i===void 0)&&i.get("__export")&&(!((o=s.symbol.exports)===null||o===void 0)&&o.size))for(var ce=im(L,"resolvedExports"),we=0,Ue=e.arrayFrom(s.symbol.exports.entries());we<Ue.length;we++){var Je=Ue[we],ar=Je[0],_r=Je[1];ce.has(ar)&&!L.exports.has(ar)&&_s(ce.get(ar),_r)}_s(L,s.symbol)}else Mr(r,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,r.text)}}function Rs(r,t,i){t.forEach(function(s,c){var L=r.get(c);L?e.forEach(L.declarations,o(e.unescapeLeadingUnderscores(c),i)):r.set(c,s)});function o(s,c){return function(L){return ua.add(e.createDiagnosticForNode(L,c,s))}}}function Ja(r){if(r.flags&33554432)return r;var t=y(r);return xc[t]||(xc[t]=new re)}function Zn(r){var t=N(r);return Ic[t]||(Ic[t]=new T)}function Oc(r){return r.kind===303&&!e.isExternalOrCommonJsModule(r)}function ks(r,t,i){if(i){var o=Ga(r.get(t));if(o){if(e.Debug.assert((e.getCheckFlags(o)&1)===0,"Should never get an instantiated symbol here."),o.flags&i)return o;if(o.flags&2097152){var s=ms(o);if(s===We||s.flags&i)return o}}}}function yf(r,t){var i=r.parent,o=r.parent.parent,s=ks(i.locals,t,111551),c=ks(af(o.symbol),t,111551);return s&&c?[s,c]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Ou(r,t){var i=e.getSourceFileOfNode(r),o=e.getSourceFileOfNode(t),s=e.getEnclosingBlockScopeContainer(r);if(i!==o){if(Ae&&(i.externalModuleIndicator||o.externalModuleIndicator)||!e.outFile(Xe)||lg(t)||r.flags&8388608||we(t,r))return!0;var c=j.getSourceFiles();return c.indexOf(i)<=c.indexOf(o)}if(r.pos<=t.pos&&!(e.isPropertyDeclaration(r)&&e.isThisProperty(t.parent)&&!r.initializer&&!r.exclamationToken)){if(r.kind===202){var L=e.getAncestor(t,202);return L?e.findAncestor(L,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.pos<L.pos:Ou(e.getAncestor(r,253),t)}else{if(r.kind===253)return!ce(r,t);if(e.isClassDeclaration(r))return!e.findAncestor(t,function(Je){return e.isComputedPropertyName(Je)&&Je.parent.parent===r});if(e.isPropertyDeclaration(r))return!Ue(r,t,!1);if(e.isParameterPropertyDeclaration(r,r.parent))return!(e.getEmitScriptTarget(Xe)===99&&Ye&&e.getContainingClass(r)===e.getContainingClass(t)&&we(t,r))}return!0}if(t.parent.kind===274||t.parent.kind===270&&t.parent.isExportEquals||t.kind===270&&t.isExportEquals||t.flags&4194304||lg(t)||G())return!0;if(we(t,r))return e.getEmitScriptTarget(Xe)===99&&Ye&&e.getContainingClass(r)&&(e.isPropertyDeclaration(r)||e.isParameterPropertyDeclaration(r,r.parent))?!Ue(r,t,!0):!0;return!1;function G(){return!!e.findAncestor(t,function(Je){return e.isInterfaceDeclaration(Je)||e.isTypeAliasDeclaration(Je)})}function ce(Je,ar){switch(Je.parent.parent.kind){case 236:case 241:case 243:if(_c(ar,Je,s))return!0;break}var _r=Je.parent.parent;return e.isForInOrOfStatement(_r)&&_c(ar,_r.expression,s)}function we(Je,ar){return!!e.findAncestor(Je,function(_r){if(_r===s)return"quit";if(e.isFunctionLike(_r))return!0;if(e.isClassStaticBlockDeclaration(_r))return ar.pos<Je.pos;var Gr=e.tryCast(_r.parent,e.isPropertyDeclaration);if(Gr){var Zr=Gr.initializer===_r;if(Zr)if(e.isStatic(_r.parent)){if(ar.kind===168)return!0;if(e.isPropertyDeclaration(ar)&&e.getContainingClass(Je)===e.getContainingClass(ar)){var Et=ar.name;if(e.isIdentifier(Et)||e.isPrivateIdentifier(Et)){var Tt=An(wn(ar)),At=e.filter(ar.parent.members,e.isClassStaticBlockDeclaration);if(E3(Et,Tt,At,ar.parent.pos,_r.pos))return!0}}}else{var Vt=ar.kind===166&&!e.isStatic(ar);if(!Vt||e.getContainingClass(Je)!==e.getContainingClass(ar))return!0}}return!1})}function Ue(Je,ar,_r){if(ar.end>Je.end)return!1;var Gr=e.findAncestor(ar,function(Zr){if(Zr===Je)return"quit";switch(Zr.kind){case 213:return!0;case 166:return _r&&(e.isPropertyDeclaration(Je)&&Zr.parent===Je.parent||e.isParameterPropertyDeclaration(Je,Je.parent)&&Zr.parent===Je.parent.parent)?"quit":!0;case 234:switch(Zr.parent.kind){case 171:case 168:case 172:return!0;default:return!1}default:return!1}});return Gr===void 0}}function kd(r,t,i){var o=e.getEmitScriptTarget(Xe),s=t;if(e.isParameter(i)&&s.body&&r.valueDeclaration&&r.valueDeclaration.pos>=s.body.pos&&r.valueDeclaration.end<=s.body.end&&o>=2){var c=Zn(s);return c.declarationRequiresScopeChange===void 0&&(c.declarationRequiresScopeChange=e.forEach(s.parameters,L)||!1),!c.declarationRequiresScopeChange}return!1;function L(ce){return G(ce.name)||!!ce.initializer&&G(ce.initializer)}function G(ce){switch(ce.kind){case 213:case 212:case 255:case 170:return!1;case 168:case 171:case 172:case 294:return G(ce.name);case 166:return e.hasStaticModifier(ce)?o<99||!Ye:G(ce.name);default:return e.isNullishCoalesce(ce)||e.isOptionalChain(ce)?o<7:e.isBindingElement(ce)&&ce.dotDotDotToken&&e.isObjectBindingPattern(ce.parent)?o<4:e.isTypeNode(ce)?!1:e.forEachChild(ce,G)||!1}}}function Uo(r,t,i,o,s,c,L,G){return L===void 0&&(L=!1),G===void 0&&(G=!0),$f(r,t,i,o,s,c,L,G,ks)}function $f(r,t,i,o,s,c,L,G,ce){var we,Ue,Je,ar=r,_r,Gr,Zr,Et,Tt,At=!1,Vt=r,Nn,on=!1;e:for(;r;){if(r.locals&&!Oc(r)&&(_r=ce(r.locals,t,i))){var ca=!0;if(e.isFunctionLike(r)&&Gr&&Gr!==r.body?(i&_r.flags&788968&&Gr.kind!==318&&(ca=_r.flags&262144?Gr===r.type||Gr.kind===163||Gr.kind===162:!1),i&_r.flags&3&&(kd(_r,r,Gr)?ca=!1:_r.flags&1&&(ca=Gr.kind===163||Gr===r.type&&!!e.findAncestor(_r.valueDeclaration,e.isParameter)))):r.kind===188&&(ca=Gr===r.trueType),ca)break e;_r=void 0}switch(At=At||Xp(r,Gr),r.kind){case 303:if(!e.isExternalOrCommonJsModule(r))break;on=!0;case 260:var la=((we=wn(r))===null||we===void 0?void 0:we.exports)||Le;if(r.kind===303||e.isModuleDeclaration(r)&&r.flags&8388608&&!e.isGlobalScopeAugmentation(r)){if(_r=la.get("default")){var di=e.getLocalSymbolForExportDefault(_r);if(di&&_r.flags&i&&di.escapedName===t)break e;_r=void 0}var Aa=la.get(t);if(Aa&&Aa.flags===2097152&&(e.getDeclarationOfKind(Aa,274)||e.getDeclarationOfKind(Aa,273)))break}if(t!=="default"&&(_r=ce(la,t,i&2623475)))if(e.isSourceFile(r)&&r.commonJsModuleIndicator&&!(!((Ue=_r.declarations)===null||Ue===void 0)&&Ue.some(e.isJSDocTypeAlias)))_r=void 0;else break e;break;case 259:if(_r=ce(((Je=wn(r))===null||Je===void 0?void 0:Je.exports)||Le,t,i&8))break e;break;case 166:if(!e.isStatic(r)){var Li=$u(r.parent);Li&&Li.locals&&ce(Li.locals,t,i&111551)&&(Et=r)}break;case 256:case 225:case 257:if(_r=ce(wn(r).members||Le,t,i&788968)){if(!C_(_r,r)){_r=void 0;break}if(Gr&&e.isStatic(Gr)){Mr(Vt,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);return}break e}if(r.kind===225&&i&32){var Bi=r.name;if(Bi&&t===Bi.escapedText){_r=r.symbol;break e}}break;case 227:if(Gr===r.expression&&r.parent.token===94){var Ai=r.parent.parent;if(e.isClassLike(Ai)&&(_r=ce(wn(Ai).members,t,i&788968))){o&&Mr(Vt,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 161:if(Nn=r.parent.parent,(e.isClassLike(Nn)||Nn.kind===257)&&(_r=ce(wn(Nn).members,t,i&788968))){Mr(Vt,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 213:if(e.getEmitScriptTarget(Xe)>=2)break;case 168:case 170:case 171:case 172:case 255:if(i&3&&t==="arguments"){_r=Jr;break e}break;case 212:if(i&3&&t==="arguments"){_r=Jr;break e}if(i&16){var xo=r.name;if(xo&&t===xo.escapedText){_r=r.symbol;break e}}break;case 164:r.parent&&r.parent.kind===163&&(r=r.parent),r.parent&&(e.isClassElement(r.parent)||r.parent.kind===256)&&(r=r.parent);break;case 343:case 336:case 337:var Wt=e.getJSDocRoot(r);Wt&&(r=Wt.parent);break;case 163:Gr&&(Gr===r.initializer||Gr===r.name&&e.isBindingPattern(Gr))&&(Tt||(Tt=r));break;case 202:Gr&&(Gr===r.initializer||Gr===r.name&&e.isBindingPattern(Gr))&&e.isParameterDeclaration(r)&&!Tt&&(Tt=r);break;case 189:if(i&262144){var Ft=r.typeParameter.name;if(Ft&&t===Ft.escapedText){_r=r.typeParameter.symbol;break e}}break}yp(r)&&(Zr=r),Gr=r,r=e.isJSDocTemplateTag(r)&&e.getEffectiveContainerForJSDocTemplateTag(r)||r.parent}if(c&&_r&&(!Zr||_r!==Zr.symbol)&&(_r.isReferenced|=i),!_r){if(Gr&&(e.Debug.assert(Gr.kind===303),Gr.commonJsModuleIndicator&&t==="exports"&&i&Gr.symbol.flags))return Gr.symbol;L||(_r=ce(Pr,t,i))}if(!_r&&ar&&e.isInJSFile(ar)&&ar.parent&&e.isRequireCall(ar.parent,!1))return ze;if(!_r){if(o&&Se&&(!Vt||!ed(Vt,t,s)&&!bp(Vt)&&!Md(Vt,t,i)&&!Ep(Vt,t)&&!Yp(Vt,t,i)&&!Bd(Vt,t,i)&&!Pd(Vt,t,i))){var _n=void 0;if(G&&ql<fc){_n=F1(ar,t,i);var Ca=(_n==null?void 0:_n.valueDeclaration)&&e.isAmbientModule(_n.valueDeclaration)&&e.isGlobalScopeAugmentation(_n.valueDeclaration);if(Ca&&(_n=void 0),_n){var Yn=Wa(_n),Ba=w1(ar,_n,!1),Ti=i===1920||s&&typeof s!="string"&&e.nodeIsSynthesized(s)?e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1:Ba?e.Diagnostics.Could_not_find_name_0_Did_you_mean_1:e.Diagnostics.Cannot_find_name_0_Did_you_mean_1,Pi=jc(Vt,Ti,Xl(s),Yn);$l(!Ba,Pi),_n.valueDeclaration&&e.addRelatedInfo(Pi,e.createDiagnosticForNode(_n.valueDeclaration,e.Diagnostics._0_is_declared_here,Yn))}}if(!_n&&s){var jn=iP(s);jn?Mr(Vt,o,Xl(s),jn):Mr(Vt,o,Xl(s))}ql++}return}if(o&&Se){if(Et&&!(e.getEmitScriptTarget(Xe)===99&&Ye)){var Fi=Et.name;Mr(Vt,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(Fi),Xl(s));return}if(Vt&&(i&2||(i&32||i&384)&&(i&111551)===111551)){var Wr=tc(_r);(Wr.flags&2||Wr.flags&32||Wr.flags&384)&&fu(Wr,Vt)}if(_r&&on&&(i&111551)===111551&&!(ar.flags&4194304)){var Tr=Ga(_r);e.length(Tr.declarations)&&e.every(Tr.declarations,function(nn){return e.isNamespaceExportDeclaration(nn)||e.isSourceFile(nn)&&!!nn.symbol.globalExports})&&pc(!Xe.allowUmdGlobalAccess,Vt,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(t))}if(_r&&Tt&&!At&&(i&111551)===111551){var hn=Ga(Ug(_r)),Wt=e.getRootDeclaration(Tt);hn===wn(Tt)?Mr(Vt,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(Tt.name)):hn.valueDeclaration&&hn.valueDeclaration.pos>Tt.pos&&Wt.parent.locals&&ce(Wt.parent.locals,hn.escapedName,i)===hn&&Mr(Vt,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(Tt.name),e.declarationNameToString(Vt))}_r&&Vt&&i&111551&&_r.flags&2097152&&Od(_r,t,Vt)}return _r}function Od(r,t,i){if(!e.isValidTypeOnlyAliasUseSite(i)){var o=Ln(r);if(o){var s=o.kind===274?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,c=e.unescapeLeadingUnderscores(t);Rd(Mr(i,s,c),o,c)}}}function Rd(r,t,i){return t?e.addRelatedInfo(r,e.createDiagnosticForNode(t,t.kind===274?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,i)):r}function Xp(r,t){return r.kind!==213&&r.kind!==212?e.isTypeQueryNode(r)||(e.isFunctionLikeDeclaration(r)||r.kind===166&&!e.isStatic(r))&&(!t||t!==r.name):t&&t===r.name?!1:r.asteriskToken||e.hasSyntacticModifier(r,256)?!0:!e.getImmediatelyInvokedFunctionExpression(r)}function yp(r){switch(r.kind){case 255:case 256:case 257:case 259:case 258:case 260:return!0;default:return!1}}function Xl(r){return e.isString(r)?e.unescapeLeadingUnderscores(r):e.declarationNameToString(r)}function C_(r,t){if(r.declarations)for(var i=0,o=r.declarations;i<o.length;i++){var s=o[i];if(s.kind===162){var c=e.isJSDocTemplateTag(s.parent)?e.getJSDocHost(s.parent):s.parent;if(c===t)return!(e.isJSDocTemplateTag(s.parent)&&e.find(s.parent.parent.tags,e.isJSDocTypeAlias))}}return!1}function ed(r,t,i){if(!e.isIdentifier(r)||r.escapedText!==t||iI(r)||lg(r))return!1;for(var o=e.getThisContainer(r,!1),s=o;s;){if(e.isClassLike(s.parent)){var c=wn(s.parent);if(!c)break;var L=An(c);if(Ii(L,t))return Mr(r,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Xl(i),Wa(c)),!0;if(s===o&&!e.isStatic(s)){var G=po(c).thisType;if(Ii(G,t))return Mr(r,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Xl(i)),!0}}s=s.parent}return!1}function bp(r){var t=wd(r);return t&&rs(t,64,!0)?(Mr(r,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(t)),!0):!1}function wd(r){switch(r.kind){case 79:case 205:return r.parent?wd(r.parent):void 0;case 227:if(e.isEntityNameExpression(r.expression))return r.expression;default:return}}function Md(r,t,i){var o=1920|(e.isInJSFile(r)?111551:0);if(i===o){var s=wo(Uo(r,t,788968&~o,void 0,void 0,!1)),c=r.parent;if(s){if(e.isQualifiedName(c)){e.Debug.assert(c.left===r,"Should only be resolving left side of qualified name as a namespace");var L=c.right.escapedText,G=Ii(po(s),L);if(G)return Mr(c,e.Diagnostics.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,e.unescapeLeadingUnderscores(t),e.unescapeLeadingUnderscores(L)),!0}return Mr(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(t)),!0}}return!1}function Pd(r,t,i){if(i&788584){var o=wo(Uo(r,t,111127,void 0,void 0,!1));if(o&&!(o.flags&1920))return Mr(r,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(t)),!0}return!1}function Fd(r){return r==="any"||r==="string"||r==="number"||r==="boolean"||r==="never"||r==="unknown"}function Ep(r,t){return Fd(t)&&r.parent.kind===274?(Mr(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0):!1}function Yp(r,t,i){if(i&111551){if(Fd(t))return Mr(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(t)),!0;var o=wo(Uo(r,t,788544,void 0,void 0,!1));if(o&&!(o.flags&1024)){var s=e.unescapeLeadingUnderscores(t);return Qp(t)?Mr(r,e.Diagnostics._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,s):Gd(r,o)?Mr(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,s,s==="K"?"P":"K"):Mr(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,s),!0}}return!1}function Gd(r,t){var i=e.findAncestor(r.parent,function(s){return e.isComputedPropertyName(s)||e.isPropertySignature(s)?!1:e.isTypeLiteralNode(s)||"quit"});if(i&&i.members.length===1){var o=po(t);return!!(o.flags&1048576)&&Sm(o,384,!0)}return!1}function Qp(r){switch(r){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function Bd(r,t,i){if(i&111127){var o=wo(Uo(r,t,1024,void 0,void 0,!1));if(o)return Mr(r,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(t)),!0}else if(i&788544){var o=wo(Uo(r,t,1536,void 0,void 0,!1));if(o)return Mr(r,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(t)),!0}return!1}function fu(r,t){var i;if(e.Debug.assert(!!(r.flags&2||r.flags&32||r.flags&384)),!(r.flags&67108881&&r.flags&32)){var o=(i=r.declarations)===null||i===void 0?void 0:i.find(function(L){return e.isBlockOrCatchScoped(L)||e.isClassLike(L)||L.kind===259});if(o===void 0)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(o.flags&8388608)&&!Ou(o,t)){var s=void 0,c=e.declarationNameToString(e.getNameOfDeclaration(o));r.flags&2?s=Mr(t,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,c):r.flags&32?s=Mr(t,e.Diagnostics.Class_0_used_before_its_declaration,c):r.flags&256?s=Mr(t,e.Diagnostics.Enum_0_used_before_its_declaration,c):(e.Debug.assert(!!(r.flags&128)),e.shouldPreserveConstEnums(Xe)&&(s=Mr(t,e.Diagnostics.Enum_0_used_before_its_declaration,c))),s&&e.addRelatedInfo(s,e.createDiagnosticForNode(o,e.Diagnostics._0_is_declared_here,c))}}}function _c(r,t,i){return!!t&&!!e.findAncestor(r,function(o){return o===i||e.isFunctionLike(o)?"quit":o===t})}function mc(r){switch(r.kind){case 264:return r;case 266:return r.parent;case 267:return r.parent.parent;case 269:return r.parent.parent.parent;default:return}}function ec(r){return r.declarations&&e.findLast(r.declarations,Ud)}function Ud(r){return r.kind===264||r.kind===263||r.kind===266&&!!r.name||r.kind===267||r.kind===273||r.kind===269||r.kind===274||r.kind===270&&e.exportAssignmentIsAlias(r)||e.isBinaryExpression(r)&&e.getAssignmentDeclarationKind(r)===2&&e.exportAssignmentIsAlias(r)||e.isAccessExpression(r)&&e.isBinaryExpression(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===63&&bf(r.parent.right)||r.kind===295||r.kind===294&&bf(r.initializer)||e.isVariableDeclarationInitializedToBareOrAccessedRequire(r)}function bf(r){return e.isAliasableExpression(r)||e.isFunctionExpression(r)&&ou(r)}function Tp(r,t){var i=Sl(r);if(i){var o=e.getLeftmostAccessExpression(i.expression).arguments[0];return e.isIdentifier(i.name)?wo(Ii(cD(o),i.name.escapedText)):void 0}if(e.isVariableDeclaration(r)||r.moduleReference.kind===276){var s=ws(r,e.getExternalModuleRequireArgument(r)||e.getExternalModuleImportEqualsDeclarationExpression(r)),c=ll(s);return Yl(r,s,c,!1),c}var L=sd(r.moduleReference,t);return Sp(r,L),L}function Sp(r,t){if(Yl(r,void 0,t,!1)&&!r.isTypeOnly){var i=Ln(wn(r)),o=i.kind===274,s=o?e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,c=o?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,L=e.unescapeLeadingUnderscores(i.name.escapedText);e.addRelatedInfo(Mr(r.moduleReference,s),e.createDiagnosticForNode(i,c,L))}}function Ef(r,t,i,o){var s=r.exports.get("export="),c=s?Ii(An(s),t):r.exports.get(t),L=wo(c,o);return Yl(i,c,L,!1),L}function Zp(r){return e.isExportAssignment(r)&&!r.isExportEquals||e.hasSyntacticModifier(r,512)||e.isExportSpecifier(r)}function Vd(r){return e.isStringLiteralLike(r)?e.getModeForUsageLocation(e.getSourceFileOfNode(r),r):void 0}function rd(r,t){return r===e.ModuleKind.ESNext&&t===e.ModuleKind.CommonJS}function td(r){var t=Vd(r);return t===e.ModuleKind.ESNext&&e.endsWith(r.text,".json")}function Ru(r,t,i,o){var s=r&&Vd(o);if(r&&s!==void 0){var c=rd(s,r.impliedNodeFormat);if(s===e.ModuleKind.ESNext||c)return c}if(!Dr)return!1;if(!r||r.isDeclarationFile){var L=Ef(t,"default",void 0,!0);return!(L&&e.some(L.declarations,Zp)||Ef(t,e.escapeLeadingUnderscores("__esModule"),void 0,i))}return e.isSourceFileJS(r)?!r.externalModuleIndicator&&!Ef(t,e.escapeLeadingUnderscores("__esModule"),void 0,i):ld(t)}function wu(r,t){var i,o=ws(r,r.parent.moduleSpecifier);if(o){var s=void 0;e.isShorthandAmbientModuleSymbol(o)?s=o:s=Ef(o,"default",r,t);var c=(i=o.declarations)===null||i===void 0?void 0:i.find(e.isSourceFile),L=td(r.parent.moduleSpecifier),G=Ru(c,o,t,r.parent.moduleSpecifier);if(!s&&!G&&!L)if(ld(o)){var ce=Ae>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",we=o.exports.get("export="),Ue=we.valueDeclaration,Je=Mr(r.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Wa(o),ce);Ue&&e.addRelatedInfo(Je,e.createDiagnosticForNode(Ue,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,ce))}else Mu(o,r);else if(G||L){var ar=ll(o,t)||wo(o,t);return Yl(r,o,ar,!1),ar}return Yl(r,s,void 0,!1),s}}function Mu(r,t){var i,o,s;if(!((i=r.exports)===null||i===void 0)&&i.has(t.symbol.escapedName))Mr(t.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Wa(r),Wa(t.symbol));else{var c=Mr(t.name,e.Diagnostics.Module_0_has_no_default_export,Wa(r)),L=(o=r.exports)===null||o===void 0?void 0:o.get("__export");if(L){var G=(s=L.declarations)===null||s===void 0?void 0:s.find(function(ce){var we,Ue;return!!(e.isExportDeclaration(ce)&&ce.moduleSpecifier&&(!((Ue=(we=ws(ce,ce.moduleSpecifier))===null||we===void 0?void 0:we.exports)===null||Ue===void 0)&&Ue.has("default")))});G&&e.addRelatedInfo(c,e.createDiagnosticForNode(G,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}function js(r,t){var i=r.parent.parent.moduleSpecifier,o=ws(r,i),s=Fu(o,i,t,!1);return Yl(r,o,s,!1),s}function gc(r,t){var i=r.parent.moduleSpecifier,o=i&&ws(r,i),s=i&&Fu(o,i,t,!1);return Yl(r,o,s,!1),s}function nd(r,t){if(r===We&&t===We)return We;if(r.flags&790504)return r;var i=fo(r.flags|t.flags,r.escapedName);return i.declarations=e.deduplicate(e.concatenate(r.declarations,t.declarations),e.equateValues),i.parent=r.parent||t.parent,r.valueDeclaration&&(i.valueDeclaration=r.valueDeclaration),t.members&&(i.members=new e.Map(t.members)),r.exports&&(i.exports=new e.Map(r.exports)),i}function x_(r,t,i,o){if(r.flags&1536){var s=Js(r).get(t.escapedText),c=wo(s,o);return Yl(i,s,c,!1),c}}function ad(r,t){if(r.flags&3){var i=r.valueDeclaration.type;if(i)return wo(Ii(Da(i),t))}}function Pu(r,t,i){var o,s;i===void 0&&(i=!1);var c=e.getExternalModuleRequireArgument(r)||r.moduleSpecifier,L=ws(r,c),G=!e.isPropertyAccessExpression(t)&&t.propertyName||t.name;if(e.isIdentifier(G)){var ce=G.escapedText==="default"&&!!(Xe.allowSyntheticDefaultImports||e.getESModuleInterop(Xe)),we=Fu(L,c,!1,ce);if(we&&G.escapedText){if(e.isShorthandAmbientModuleSymbol(L))return L;var Ue=void 0;L&&L.exports&&L.exports.get("export=")?Ue=Ii(An(we),G.escapedText,!0):Ue=ad(we,G.escapedText),Ue=wo(Ue,i);var Je=x_(we,G,t,i);if(Je===void 0&&G.escapedText==="default"){var ar=(o=L.declarations)===null||o===void 0?void 0:o.find(e.isSourceFile);(td(c)||Ru(ar,L,i,c))&&(Je=ll(L,i)||wo(L,i))}var _r=Je&&Ue&&Je!==Ue?nd(Ue,Je):Je||Ue;if(!_r){var Gr=sl(L,r),Zr=e.declarationNameToString(G),Et=mb(G,we);if(Et!==void 0){var Tt=Wa(Et),At=Mr(G,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,Gr,Zr,Tt);Et.valueDeclaration&&e.addRelatedInfo(At,e.createDiagnosticForNode(Et.valueDeclaration,e.Diagnostics._0_is_declared_here,Tt))}else!((s=L.exports)===null||s===void 0)&&s.has("default")?Mr(G,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,Gr,Zr):I_(r,G,Zr,L,Gr)}return _r}}}function I_(r,t,i,o,s){var c,L,G=(L=(c=o.valueDeclaration)===null||c===void 0?void 0:c.locals)===null||L===void 0?void 0:L.get(t.escapedText),ce=o.exports;if(G){var we=ce==null?void 0:ce.get("export=");if(we)Ll(we,G)?vc(r,t,i,s):Mr(t,e.Diagnostics.Module_0_has_no_exported_member_1,s,i);else{var Ue=ce?e.find(qm(ce),function(ar){return!!Ll(ar,G)}):void 0,Je=Ue?Mr(t,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,s,i,Wa(Ue)):Mr(t,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,s,i);G.declarations&&e.addRelatedInfo.apply(void 0,Gt([Je],e.map(G.declarations,function(ar,_r){return e.createDiagnosticForNode(ar,_r===0?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,i)}),!1))}}else Mr(t,e.Diagnostics.Module_0_has_no_exported_member_1,s,i)}function vc(r,t,i,o){if(Ae>=e.ModuleKind.ES2015){var s=e.getESModuleInterop(Xe)?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Mr(t,s,i)}else if(e.isInJSFile(r)){var s=e.getESModuleInterop(Xe)?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Mr(t,s,i)}else{var s=e.getESModuleInterop(Xe)?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Mr(t,s,i,i,o)}}function Pl(r,t){var i=e.isBindingElement(r)?e.getRootDeclaration(r):r.parent.parent.parent,o=Sl(i),s=Pu(i,o||r,t),c=r.propertyName||r.name;return o&&s&&e.isIdentifier(c)?wo(Ii(An(s),c.escapedText),t):(Yl(r,void 0,s,!1),s)}function Sl(r){if(e.isVariableDeclaration(r)&&r.initializer&&e.isPropertyAccessExpression(r.initializer))return r.initializer}function Fl(r,t){var i=ll(r.parent.symbol,t);return Yl(r,void 0,i,!1),i}function pl(r,t,i){var o=r.parent.parent.moduleSpecifier?Pu(r.parent.parent,r,i):rs(r.propertyName||r.name,t,!1,i);return Yl(r,void 0,o,!1),o}function Dp(r,t){var i=e.isExportAssignment(r)?r.expression:r.right,o=Tf(i,t);return Yl(r,void 0,o,!1),o}function Tf(r,t){if(e.isClassExpression(r))return Ss(r).symbol;if(!(!e.isEntityName(r)&&!e.isEntityNameExpression(r))){var i=rs(r,901119,!0,t);return i||(Ss(r),Zn(r).resolvedSymbol)}}function Wd(r,t){var i=r.initializer;return Tf(i,t)}function id(r,t){if(e.isBinaryExpression(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===63)return Tf(r.parent.right,t)}function mo(r,t){switch(t===void 0&&(t=!1),r.kind){case 264:case 253:return Tp(r,t);case 266:return wu(r,t);case 267:return js(r,t);case 273:return gc(r,t);case 269:case 202:return Pl(r,t);case 274:return pl(r,901119,t);case 270:case 220:return Dp(r,t);case 263:return Fl(r,t);case 295:return rs(r.name,901119,!0,t);case 294:return Wd(r,t);case 206:case 205:return id(r,t);default:return e.Debug.fail()}}function Dl(r,t){return t===void 0&&(t=901119),r?(r.flags&(2097152|t))===2097152||!!(r.flags&2097152&&r.flags&67108864):!1}function wo(r,t){return!t&&Dl(r)?ms(r):r}function ms(r){e.Debug.assert((r.flags&2097152)!==0,"Should only get Alias here.");var t=Ja(r);if(t.target)t.target===$&&(t.target=We);else{t.target=$;var i=ec(r);if(!i)return e.Debug.fail();var o=mo(i);t.target===$?t.target=o||We:Mr(i,e.Diagnostics.Circular_definition_of_import_alias_0,Wa(r))}return t.target}function $p(r){var t=Ja(r);if(t.target!==$)return ms(r)}function Yl(r,t,i,o){if(!r||e.isPropertyAccessExpression(r))return!1;var s=wn(r);if(e.isTypeOnlyImportOrExportDeclaration(r)){var c=Ja(s);return c.typeOnlyDeclaration=r,!0}var L=Ja(s);return od(L,t,o)||od(L,i,o)}function od(r,t,i){var o,s,c;if(t&&(r.typeOnlyDeclaration===void 0||i&&r.typeOnlyDeclaration===!1)){var L=(s=(o=t.exports)===null||o===void 0?void 0:o.get("export="))!==null&&s!==void 0?s:t,G=L.declarations&&e.find(L.declarations,e.isTypeOnlyImportOrExportDeclaration);r.typeOnlyDeclaration=(c=G??Ja(L).typeOnlyDeclaration)!==null&&c!==void 0?c:!1}return!!r.typeOnlyDeclaration}function Ln(r){if(r.flags&2097152){var t=Ja(r);return t.typeOnlyDeclaration||void 0}}function us(r){var t=wn(r),i=ms(t);if(i){var o=i===We||i.flags&111551&&!Dv(i)&&!Ln(t);o&&ii(t)}}function ii(r){var t=Ja(r);if(!t.referenced){t.referenced=!0;var i=ec(r);if(!i)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(i)){var o=wo(r);(o===We||o.flags&111551)&&Ss(i.moduleReference)}}}function Rc(r){var t=Ja(r);t.constEnumReferenced||(t.constEnumReferenced=!0)}function sd(r,t){return r.kind===79&&e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),r.kind===79||r.parent.kind===160?rs(r,1920,!1,t):(e.Debug.assert(r.parent.kind===264),rs(r,901119,!1,t))}function sl(r,t){return r.parent?sl(r.parent,t)+"."+Wa(r):Wa(r,t,void 0,20)}function Dn(r){for(;e.isQualifiedName(r.parent);)r=r.parent;return r}function N_(r){var t=e.getFirstIdentifier(r),i=Uo(t,t.escapedText,111551,void 0,t,!0);if(i){for(;e.isQualifiedName(t.parent);){var o=An(i);if(i=Ii(o,t.parent.right.escapedText),!i)return;t=t.parent}return i}}function rs(r,t,i,o,s){if(!e.nodeIsMissing(r)){var c=1920|(e.isInJSFile(r)?t&111551:0),L;if(r.kind===79){var G=t===c||e.nodeIsSynthesized(r)?e.Diagnostics.Cannot_find_namespace_0:aA(e.getFirstIdentifier(r)),ce=e.isInJSFile(r)&&!e.nodeIsSynthesized(r)?fs(r,t):void 0;if(L=Ga(Uo(s||r,r.escapedText,t,i||ce?void 0:G,r,!0,!1)),!L)return Ga(ce)}else if(r.kind===160||r.kind===205){var we=r.kind===160?r.left:r.expression,Ue=r.kind===160?r.right:r.name,Je=rs(we,c,i,!1,s);if(!Je||e.nodeIsMissing(Ue))return;if(Je===We)return Je;if(Je.valueDeclaration&&e.isInJSFile(Je.valueDeclaration)&&e.isVariableDeclaration(Je.valueDeclaration)&&Je.valueDeclaration.initializer&&FC(Je.valueDeclaration.initializer)){var ar=Je.valueDeclaration.initializer.arguments[0],_r=ws(ar,ar);if(_r){var Gr=ll(_r);Gr&&(Je=Gr)}}if(L=Ga(ks(Js(Je),Ue.escapedText,t)),!L){if(!i){var Zr=sl(Je),Et=e.declarationNameToString(Ue),Tt=mb(Ue,Je);if(Tt){Mr(Ue,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,Zr,Et,Wa(Tt));return}var At=e.isQualifiedName(r)&&Dn(r),Vt=Un&&t&788968&&At&&!e.isTypeOfExpression(At.parent)&&N_(At);if(Vt){Mr(At,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.entityNameToString(At));return}if(t&1920&&e.isQualifiedName(r.parent)){var Nn=Ga(ks(Js(Je),Ue.escapedText,788968));if(Nn){Mr(r.parent.right,e.Diagnostics.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,Wa(Nn),e.unescapeLeadingUnderscores(r.parent.right.escapedText));return}}Mr(Ue,e.Diagnostics.Namespace_0_has_no_exported_member_1,Zr,Et)}return}}else throw e.Debug.assertNever(r,"Unknown entity name kind.");return e.Debug.assert((e.getCheckFlags(L)&1)===0,"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(r)&&e.isEntityName(r)&&(L.flags&2097152||r.parent.kind===270)&&Yl(e.getAliasDeclarationFromName(r),L,void 0,!0),L.flags&t||o?L:ms(L)}}function fs(r,t){if(Dy(r.parent)){var i=wc(r.parent);if(i)return Uo(i,r.escapedText,t,void 0,r,!0)}}function wc(r){var t=e.findAncestor(r,function(c){return e.isJSDocNode(c)||c.flags&4194304?e.isJSDocTypeAlias(c):"quit"});if(!t){var i=e.getJSDocHost(r);if(i&&e.isExpressionStatement(i)&&e.isBinaryExpression(i.expression)&&e.getAssignmentDeclarationKind(i.expression)===3){var o=wn(i.expression.left);if(o)return Hs(o)}if(i&&(e.isObjectLiteralMethod(i)||e.isPropertyAssignment(i))&&e.isBinaryExpression(i.parent.parent)&&e.getAssignmentDeclarationKind(i.parent.parent)===6){var o=wn(i.parent.parent.left);if(o)return Hs(o)}var s=e.getEffectiveJSDocHost(r);if(s&&e.isFunctionLike(s)){var o=wn(s);return o&&o.valueDeclaration}}}function Hs(r){var t=r.parent.valueDeclaration;if(t){var i=e.isAssignmentDeclaration(t)?e.getAssignedExpandoInitializer(t):e.hasOnlyExpressionInitializer(t)?e.getDeclaredExpandoInitializer(t):void 0;return i||t}}function Sf(r){var t=r.valueDeclaration;if(!(!t||!e.isInJSFile(t)||r.flags&524288||e.getExpandoInitializer(t,!1))){var i=e.isVariableDeclaration(t)?e.getDeclaredExpandoInitializer(t):e.getAssignedExpandoInitializer(t);if(i){var o=wn(i);if(o)return J1(o,r)}}}function ws(r,t,i){var o=e.getEmitModuleResolutionKind(Xe)===e.ModuleResolutionKind.Classic,s=o?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return Mc(r,t,i?void 0:s)}function Mc(r,t,i,o){return o===void 0&&(o=!1),e.isStringLiteralLike(t)?Qu(r,t.text,i,t,o):void 0}function Qu(r,t,i,o,s){var c,L,G,ce,we,Ue,Je;if(s===void 0&&(s=!1),e.startsWith(t,"@types/")){var ar=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,_r=e.removePrefix(t,"@types/");Mr(o,ar,_r,t)}var Gr=Hg(t,!0);if(Gr)return Gr;var Zr=e.getSourceFileOfNode(r),Et=e.isStringLiteralLike(r)?r:((c=e.findAncestor(r,e.isImportCall))===null||c===void 0?void 0:c.arguments[0])||((L=e.findAncestor(r,e.isImportDeclaration))===null||L===void 0?void 0:L.moduleSpecifier)||((G=e.findAncestor(r,e.isExternalModuleImportEqualsDeclaration))===null||G===void 0?void 0:G.moduleReference.expression)||((ce=e.findAncestor(r,e.isExportDeclaration))===null||ce===void 0?void 0:ce.moduleSpecifier)||((we=e.isModuleDeclaration(r)?r:r.parent&&e.isModuleDeclaration(r.parent)&&r.parent.name===r?r.parent:void 0)===null||we===void 0?void 0:we.name)||((Ue=e.isLiteralImportTypeNode(r)?r:void 0)===null||Ue===void 0?void 0:Ue.argument.literal),Tt=Et&&e.isStringLiteralLike(Et)?e.getModeForUsageLocation(Zr,Et):Zr.impliedNodeFormat,At=e.getResolvedModule(Zr,t,Tt),Vt=At&&e.getResolutionDiagnostic(Xe,At),Nn=At&&!Vt&&j.getSourceFile(At.resolvedFileName);if(Nn){if(Nn.symbol){if(At.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(At.extension)&&Df(!1,o,At,t),e.getEmitModuleResolutionKind(Xe)===e.ModuleResolutionKind.Node12||e.getEmitModuleResolutionKind(Xe)===e.ModuleResolutionKind.NodeNext){var on=Zr.impliedNodeFormat===e.ModuleKind.CommonJS&&!e.findAncestor(r,e.isImportCall)||!!e.findAncestor(r,e.isImportEqualsDeclaration);on&&Nn.impliedNodeFormat===e.ModuleKind.ESNext&&Mr(o,e.Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead,t),Tt===e.ModuleKind.ESNext&&Xe.resolveJsonModule&&At.extension===".json"&&Mr(o,e.Diagnostics.JSON_imports_are_experimental_in_ES_module_mode_imports)}return Ga(Nn.symbol)}i&&Mr(o,e.Diagnostics.File_0_is_not_a_module,Nn.fileName);return}if(dt){var ca=e.findBestPatternMatch(dt,function(Ca){return Ca.pattern},t);if(ca){var la=tn&&tn.get(t);return Ga(la||ca.symbol)}}if(At&&!e.resolutionExtensionIsTSOrJson(At.extension)&&Vt===void 0||Vt===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(s){var ar=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Mr(o,ar,t,At.resolvedFileName)}else Df(Ke&&!!i,o,At,t);return}if(i){if(At){var di=j.getProjectReferenceRedirect(At.resolvedFileName);if(di){Mr(o,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,di,At.resolvedFileName);return}}if(Vt)Mr(o,Vt,t,At.resolvedFileName);else{var Aa=e.tryExtractTSExtension(t),Li=e.pathIsRelative(t)&&!e.hasExtension(t),Bi=e.getEmitModuleResolutionKind(Xe),Ai=Bi===e.ModuleResolutionKind.Node12||Bi===e.ModuleResolutionKind.NodeNext;if(Aa){var ar=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,xo=e.removeExtension(t,Aa),Wt=xo;Ae>=e.ModuleKind.ES2015&&(Wt+=Aa===".mts"?".mjs":Aa===".cts"?".cjs":".js"),Mr(o,ar,Aa,Wt)}else if(!Xe.resolveJsonModule&&e.fileExtensionIs(t,".json")&&e.getEmitModuleResolutionKind(Xe)!==e.ModuleResolutionKind.Classic&&e.hasJsonModuleEmitEnabled(Xe))Mr(o,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,t);else if(Tt===e.ModuleKind.ESNext&&Ai&&Li){var Ft=e.getNormalizedAbsolutePath(t,e.getDirectoryPath(Zr.path)),_n=(Je=Do.find(function(Ca){var Yn=Ca[0];return Ca[1],j.fileExists(Ft+Yn)}))===null||Je===void 0?void 0:Je[1];_n?Mr(o,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Did_you_mean_0,t+_n):Mr(o,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else Mr(o,i,t)}}}function Df(r,t,i,o){var s=i.packageId,c=i.resolvedFileName,L=!e.isExternalModuleNameRelative(o)&&s?hc(s.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.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,s.name,e.mangleScopedPackageName(s.name)):Lf(s.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,s.name,o):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,o,e.mangleScopedPackageName(s.name)):void 0;pc(r,t,e.chainDiagnosticMessages(L,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,o,c))}function hc(r){return Ce().has(e.getTypesPackageName(r))}function Lf(r){return!!Ce().get(r)}function ll(r,t){if(r!=null&&r.exports){var i=wo(r.exports.get("export="),t),o=e_(Ga(i),Ga(r));return Ga(o)||r}}function e_(r,t){if(!r||r===We||r===t||t.exports.size===1||r.flags&2097152)return r;var i=Ja(r);if(i.cjsExportMerged)return i.cjsExportMerged;var o=r.flags&33554432?r:Nd(r);return o.flags=o.flags|512,o.exports===void 0&&(o.exports=e.createSymbolTable()),t.exports.forEach(function(s,c){c!=="export="&&o.exports.set(c,o.exports.has(c)?_s(o.exports.get(c),s):s)}),Ja(o).cjsExportMerged=o,i.cjsExportMerged=o}function Fu(r,t,i,o){var s=ll(r,i);if(!i&&s){if(!o&&!(s.flags&1539)&&!e.getDeclarationOfKind(s,303)){var c=Ae>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Mr(t,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,c),s}var L=t.parent;if(e.isImportDeclaration(L)&&e.getNamespaceDeclarationNode(L)||e.isImportCall(L)){var G=e.isImportCall(L)?L.arguments[0]:L.moduleSpecifier,ce=An(s),we=MC(ce,s,r,G);if(we)return Af(s,we,L);if(e.getESModuleInterop(Xe)){var Ue=jg(ce,0);if((!Ue||!Ue.length)&&(Ue=jg(ce,1)),Ue&&Ue.length||Ii(ce,"default",!0)){var Je=PC(ce,s,r,G);return Af(s,Je,L)}}}}return s}function Af(r,t,i){var o=fo(r.flags,r.escapedName);o.declarations=r.declarations?r.declarations.slice():[],o.parent=r.parent,o.target=r,o.originatingImport=i,r.valueDeclaration&&(o.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(o.constEnumOnlyModule=!0),r.members&&(o.members=new e.Map(r.members)),r.exports&&(o.exports=new e.Map(r.exports));var s=Sc(t);return o.type=ts(o,s.members,e.emptyArray,e.emptyArray,s.indexInfos),o}function ld(r){return r.exports.get("export=")!==void 0}function cd(r){return qm(Gl(r))}function Cf(r){var t=cd(r),i=ll(r);if(i!==r){var o=An(i);Gu(o)&&e.addRange(t,Yi(o))}return t}function yc(r,t){var i=Gl(r);i.forEach(function(c,L){Nf(L)||t(c,L)});var o=ll(r);if(o!==r){var s=An(o);Gu(s)&&BE(s,function(c,L){t(c,L)})}}function ud(r,t){var i=Gl(t);if(i)return i.get(r)}function xf(r,t){var i=ud(r,t);if(i)return i;var o=ll(t);if(o!==t){var s=An(o);return Gu(s)?Ii(s,r):void 0}}function Gu(r){return!(r.flags&131068||e.getObjectFlags(r)&1||el(r)||ki(r))}function Js(r){return r.flags&6256?im(r,"resolvedExports"):r.flags&1536?Gl(r):r.exports||Le}function Gl(r){var t=Ja(r);return t.resolvedExports||(t.resolvedExports=fd(r))}function Kc(r,t,i,o){t&&t.forEach(function(s,c){if(c!=="default"){var L=r.get(c);if(!L)r.set(c,s),i&&o&&i.set(c,{specifierText:e.getTextOfNode(o.moduleSpecifier)});else if(i&&o&&L&&wo(L)!==wo(s)){var G=i.get(c);G.exportsWithDuplicate?G.exportsWithDuplicate.push(o):G.exportsWithDuplicate=[o]}}})}function fd(r){var t=[];return r=ll(r),i(r)||Le;function i(o){if(o&&o.exports&&e.pushIfUnique(t,o)){var s=new e.Map(o.exports),c=o.exports.get("__export");if(c){var L=e.createSymbolTable(),G=new e.Map;if(c.declarations)for(var ce=0,we=c.declarations;ce<we.length;ce++){var Ue=we[ce],Je=ws(Ue,Ue.moduleSpecifier),ar=i(Je);Kc(L,ar,G,Ue)}G.forEach(function(_r,Gr){var Zr=_r.exportsWithDuplicate;if(!(Gr==="export="||!(Zr&&Zr.length)||s.has(Gr)))for(var Et=0,Tt=Zr;Et<Tt.length;Et++){var At=Tt[Et];ua.add(e.createDiagnosticForNode(At,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,G.get(Gr).specifierText,e.unescapeLeadingUnderscores(Gr)))}}),Kc(s,L)}return s}}}function Ga(r){var t;return r&&r.mergeId&&(t=Ws[r.mergeId])?t:r}function wn(r){return Ga(r.symbol&&Ug(r.symbol))}function Ts(r){return Ga(r.parent&&Ug(r.parent))}function jd(r,t){var i=e.getSourceFileOfNode(t),o=N(i),s=Ja(r),c;if(s.extendedContainersByFile&&(c=s.extendedContainersByFile.get(o)))return c;if(i&&i.imports){for(var L=0,G=i.imports;L<G.length;L++){var ce=G[L];if(!e.nodeIsSynthesized(ce)){var we=ws(t,ce,!0);if(we){var Ue=Hd(we,r);Ue&&(c=e.append(c,we))}}}if(e.length(c))return(s.extendedContainersByFile||(s.extendedContainersByFile=new e.Map)).set(o,c),c}if(s.extendedContainers)return s.extendedContainers;for(var Je=j.getSourceFiles(),ar=0,_r=Je;ar<_r.length;ar++){var Gr=_r[ar];if(e.isExternalModule(Gr)){var Zr=wn(Gr),Ue=Hd(Zr,r);Ue&&(c=e.append(c,Zr))}}return s.extendedContainers=c||e.emptyArray}function rc(r,t,i){var o=Ts(r);if(o&&!(r.flags&262144)){var s=e.mapDefined(o.declarations,Ue),c=t&&jd(r,t),L=Zu(o,i);if(t&&o.flags&ac(i)&&kf(o,t,1920,!1))return e.append(e.concatenate(e.concatenate([o],s),c),L);var G=!(o.flags&ac(i))&&o.flags&788968&&po(o).flags&524288&&i===111551?qd(t,function(Je){return e.forEachEntry(Je,function(ar){if(ar.flags&ac(i)&&An(ar)===po(o))return ar})}):void 0,ce=G?Gt(Gt([G],s,!0),[o],!1):Gt(Gt([],s,!0),[o],!1);return ce=e.append(ce,L),ce=e.addRange(ce,c),ce}var we=e.mapDefined(r.declarations,function(Je){if(!e.isAmbientModule(Je)&&Je.parent&&Ec(Je.parent))return wn(Je.parent);if(e.isClassExpression(Je)&&e.isBinaryExpression(Je.parent)&&Je.parent.operatorToken.kind===63&&e.isAccessExpression(Je.parent.left)&&e.isEntityNameExpression(Je.parent.left.expression))return e.isModuleExportsAccessExpression(Je.parent.left)||e.isExportsIdentifier(Je.parent.left.expression)?wn(e.getSourceFileOfNode(Je)):(Ss(Je.parent.left.expression),Zn(Je.parent.left.expression).resolvedSymbol)});if(!e.length(we))return;return e.mapDefined(we,function(Je){return Hd(Je,r)?Je:void 0});function Ue(Je){return o&&zc(Je,o)}}function Zu(r,t){var i=!!e.length(r.declarations)&&e.first(r.declarations);if(t&111551&&i&&i.parent&&e.isVariableDeclaration(i.parent)&&(e.isObjectLiteralExpression(i)&&i===i.parent.initializer||e.isTypeLiteralNode(i)&&i===i.parent.type))return wn(i.parent)}function zc(r,t){var i=Xc(r),o=i&&i.exports&&i.exports.get("export=");return o&&Ll(o,t)?i:void 0}function Hd(r,t){if(r===Ts(t))return t;var i=r.exports&&r.exports.get("export=");if(i&&Ll(i,t))return r;var o=Js(r),s=o.get(t.escapedName);return s&&Ll(s,t)?s:e.forEachEntry(o,function(c){if(Ll(c,t))return c})}function Ll(r,t){if(Ga(wo(Ga(r)))===Ga(wo(Ga(t))))return r}function tc(r){return Ga(r&&r.flags&1048576?r.exportSymbol:r)}function If(r){return!!(r.flags&111551||r.flags&2097152&&ms(r).flags&111551&&!Ln(r))}function $u(r){for(var t=r.members,i=0,o=t;i<o.length;i++){var s=o[i];if(s.kind===170&&e.nodeIsPresent(s.body))return s}}function Qs(r){var t=new Te(Yr,r);return ke++,t.id=ke,Se&&(e.tracing===null||e.tracing===void 0||e.tracing.recordType(t)),t}function Jd(r){return new Te(Yr,r)}function jo(r,t,i){i===void 0&&(i=0);var o=Qs(r);return o.intrinsicName=t,o.objectFlags=i,o}function Bl(r,t){var i=Qs(524288);return i.objectFlags=r,i.symbol=t,i.members=void 0,i.properties=void 0,i.callSignatures=void 0,i.constructSignatures=void 0,i.indexInfos=void 0,i}function Kd(){return ma(e.arrayFrom(z.keys(),Lc))}function nc(r){var t=Qs(262144);return r&&(t.symbol=r),t}function Nf(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)!==95&&r.charCodeAt(2)!==64&&r.charCodeAt(2)!==35}function Bu(r){var t;return r.forEach(function(i,o){dd(i,o)&&(t||(t=[])).push(i)}),t||e.emptyArray}function dd(r,t){return!Nf(t)&&If(r)}function zd(r){var t=Bu(r),i=YE(r);return i?e.concatenate(t,[i]):t}function Al(r,t,i,o,s){var c=r;return c.members=t,c.properties=e.emptyArray,c.callSignatures=i,c.constructSignatures=o,c.indexInfos=s,t!==Le&&(c.properties=Bu(t)),c}function ts(r,t,i,o,s){return Al(Bl(16,r),t,i,o,s)}function du(r){if(r.constructSignatures.length===0)return r;if(r.objectTypeWithoutAbstractConstructSignatures)return r.objectTypeWithoutAbstractConstructSignatures;var t=e.filter(r.constructSignatures,function(o){return!(o.flags&4)});if(r.constructSignatures===t)return r;var i=ts(r.symbol,r.members,r.callSignatures,e.some(t)?t:e.emptyArray,r.indexInfos);return r.objectTypeWithoutAbstractConstructSignatures=i,i.objectTypeWithoutAbstractConstructSignatures=i,i}function qd(r,t){for(var i,o=function(L){if(L.locals&&!Oc(L)&&(i=t(L.locals,void 0,!0,L)))return{value:i};switch(L.kind){case 303:if(!e.isExternalOrCommonJsModule(L))break;case 260:var G=wn(L);if(i=t((G==null?void 0:G.exports)||Le,void 0,!0,L))return{value:i};break;case 256:case 225:case 257:var ce;if((wn(L).members||Le).forEach(function(we,Ue){we.flags&788968&&(ce||(ce=e.createSymbolTable())).set(Ue,we)}),ce&&(i=t(ce,void 0,!1,L)))return{value:i};break}},s=r;s;s=s.parent){var c=o(s);if(typeof c=="object")return c.value}return t(Pr,void 0,!0)}function ac(r){return r===111551?111551:1920}function kf(r,t,i,o,s){if(s===void 0&&(s=new e.Map),!(r&&!Xd(r)))return;var c=Ja(r),L=c.accessibleChainCache||(c.accessibleChainCache=new e.Map),G=qd(t,function(Tt,At,Vt,Nn){return Nn}),ce="".concat(o?0:1,"|").concat(G&&N(G),"|").concat(i);if(L.has(ce))return L.get(ce);var we=y(r),Ue=s.get(we);Ue||s.set(we,Ue=[]);var Je=qd(t,ar);return L.set(ce,Je),Je;function ar(Tt,At,Vt){if(e.pushIfUnique(Ue,Tt)){var Nn=Zr(Tt,At,Vt);return Ue.pop(),Nn}}function _r(Tt,At){return!Uu(Tt,t,At)||!!kf(Tt.parent,t,ac(At),o,s)}function Gr(Tt,At,Vt){return(r===(At||Tt)||Ga(r)===Ga(At||Tt))&&!e.some(Tt.declarations,Ec)&&(Vt||_r(Ga(Tt),i))}function Zr(Tt,At,Vt){if(Gr(Tt.get(r.escapedName),void 0,At))return[r];var Nn=e.forEachEntry(Tt,function(on){if(on.flags&2097152&&on.escapedName!=="export="&&on.escapedName!=="default"&&!(e.isUMDExportSymbol(on)&&t&&e.isExternalModule(e.getSourceFileOfNode(t)))&&(!o||e.some(on.declarations,e.isExternalModuleImportEqualsDeclaration))&&(!Vt||!e.some(on.declarations,e.isNamespaceReexportDeclaration))&&(At||!e.getDeclarationOfKind(on,274))){var ca=ms(on),la=Et(on,ca,At);if(la)return la}if(on.escapedName===r.escapedName&&on.exportSymbol&&Gr(Ga(on.exportSymbol),void 0,At))return[r]});return Nn||(Tt===Pr?Et(pr,pr,At):void 0)}function Et(Tt,At,Vt){if(Gr(Tt,At,Vt))return[Tt];var Nn=Js(At),on=Nn&&ar(Nn,!0);if(on&&_r(Tt,ac(i)))return[Tt].concat(on)}}function Uu(r,t,i){var o=!1;return qd(t,function(s){var c=Ga(s.get(r.escapedName));return c?c===r?!0:(c=c.flags&2097152&&!e.getDeclarationOfKind(c,274)?ms(c):c,c.flags&i?(o=!0,!0):!1):!1}),o}function Xd(r){if(r.declarations&&r.declarations.length){for(var t=0,i=r.declarations;t<i.length;t++){var o=i[t];switch(o.kind){case 166:case 168:case 171:case 172:continue;default:return!1}}return!0}return!1}function ef(r,t){var i=Vu(r,t,788968,!1,!0);return i.accessibility===0}function Of(r,t){var i=Vu(r,t,111551,!1,!0);return i.accessibility===0}function bc(r,t,i){var o=Vu(r,t,i,!1,!1);return o.accessibility===0}function qc(r,t,i,o,s,c){if(e.length(r)){for(var L,G=!1,ce=0,we=r;ce<we.length;ce++){var Ue=we[ce],Je=kf(Ue,t,o,!1);if(Je){L=Ue;var ar=Wu(Je[0],s);if(ar)return ar}if(c&&e.some(Ue.declarations,Ec)){if(s){G=!0;continue}return{accessibility:0}}var _r=rc(Ue,t,o),Gr=qc(_r,t,i,i===Ue?ac(o):o,s,c);if(Gr)return Gr}if(G)return{accessibility:0};if(L)return{accessibility:1,errorSymbolName:Wa(i,t,o),errorModuleName:L!==i?Wa(L,t,1920):void 0}}}function rf(r,t,i,o){return Vu(r,t,i,o,!0)}function Vu(r,t,i,o,s){if(r&&t){var c=qc([r],t,r,i,o,s);if(c)return c;var L=e.forEach(r.declarations,Xc);if(L){var G=Xc(t);if(L!==G)return{accessibility:2,errorSymbolName:Wa(r,t,i),errorModuleName:Wa(L),errorNode:e.isInJSFile(t)?t:void 0}}return{accessibility:1,errorSymbolName:Wa(r,t,i)}}return{accessibility:0}}function Xc(r){var t=e.findAncestor(r,Yd);return t&&wn(t)}function Yd(r){return e.isAmbientModule(r)||r.kind===303&&e.isExternalOrCommonJsModule(r)}function Ec(r){return e.isModuleWithStringLiteralName(r)||r.kind===303&&e.isExternalOrCommonJsModule(r)}function Wu(r,t){var i;if(!e.every(e.filter(r.declarations,function(c){return c.kind!==79}),o))return;return{accessibility:0,aliasesToMakeVisible:i};function o(c){var L,G;if(!Qc(c)){var ce=mc(c);return ce&&!e.hasSyntacticModifier(ce,1)&&Qc(ce.parent)?s(c,ce):e.isVariableDeclaration(c)&&e.isVariableStatement(c.parent.parent)&&!e.hasSyntacticModifier(c.parent.parent,1)&&Qc(c.parent.parent.parent)?s(c,c.parent.parent):e.isLateVisibilityPaintedStatement(c)&&!e.hasSyntacticModifier(c,1)&&Qc(c.parent)?s(c,c):r.flags&2097152&&e.isBindingElement(c)&&e.isInJSFile(c)&&(!((L=c.parent)===null||L===void 0)&&L.parent)&&e.isVariableDeclaration(c.parent.parent)&&(!((G=c.parent.parent.parent)===null||G===void 0)&&G.parent)&&e.isVariableStatement(c.parent.parent.parent.parent)&&!e.hasSyntacticModifier(c.parent.parent.parent.parent,1)&&c.parent.parent.parent.parent.parent&&Qc(c.parent.parent.parent.parent.parent)?s(c,c.parent.parent.parent.parent):!1}return!0}function s(c,L){return t&&(Zn(c).isVisible=!0,i=e.appendIfUnique(i,L)),!0}}function r_(r,t){var i;r.parent.kind===180||e.isExpressionWithTypeArgumentsInClassExtendsClause(r.parent)||r.parent.kind===161?i=1160127:r.kind===160||r.kind===205||r.parent.kind===264?i=1920:i=788968;var o=e.getFirstIdentifier(r),s=Uo(t,o.escapedText,i,void 0,void 0,!1);return s&&s.flags&262144&&i&788968?{accessibility:0}:s&&Wu(s,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(o),errorNode:o}}function Wa(r,t,i,o,s){o===void 0&&(o=4);var c=70221824;o&2&&(c|=128),o&1&&(c|=512),o&8&&(c|=16384),o&16&&(c|=134217728);var L=o&4?Sr.symbolToExpression:Sr.symbolToEntityName;return s?G(s).getText():e.usingSingleLineStringWriter(G);function G(ce){var we=L(r,i,t,c),Ue=(t==null?void 0:t.kind)===303?e.createPrinter({removeComments:!0,neverAsciiEscape:!0}):e.createPrinter({removeComments:!0}),Je=t&&e.getSourceFileOfNode(t);return Ue.writeNode(4,we,Je,ce),ce}}function pu(r,t,i,o,s){return i===void 0&&(i=0),s?c(s).getText():e.usingSingleLineStringWriter(c);function c(L){var G;i&262144?G=o===1?179:178:G=o===1?174:173;var ce=Sr.signatureToSignatureDeclaration(r,G,t,Pc(i)|70221824|512),we=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),Ue=t&&e.getSourceFileOfNode(t);return we.writeNode(4,ce,Ue,e.getTrailingSemicolonDeferringWriter(L)),L}}function gn(r,t,i,o){i===void 0&&(i=1064960),o===void 0&&(o=e.createTextWriter(""));var s=Xe.noErrorTruncation||i&1,c=Sr.typeToTypeNode(r,t,Pc(i)|70221824|(s?1:0),o);if(c===void 0)return e.Debug.fail("should always get typenode");var L={removeComments:r!==et},G=e.createPrinter(L),ce=t&&e.getSourceFileOfNode(t);G.writeNode(4,c,ce,o);var we=o.getText(),Ue=s?e.noTruncationMaximumTruncationLength*2:e.defaultMaximumTruncationLength*2;return Ue&&we&&we.length>=Ue?we.substr(0,Ue-3)+"...":we}function Rf(r,t){var i=Zd(r.symbol)?gn(r,r.symbol.valueDeclaration):gn(r),o=Zd(t.symbol)?gn(t,t.symbol.valueDeclaration):gn(t);return i===o&&(i=Qd(r),o=Qd(t)),[i,o]}function Qd(r){return gn(r,void 0,64)}function Zd(r){return r&&!!r.valueDeclaration&&e.isExpression(r.valueDeclaration)&&!nu(r.valueDeclaration)}function Pc(r){return r===void 0&&(r=0),r&814775659}function $d(r){return!!r.symbol&&!!(r.symbol.flags&32)&&(r===Hn(r.symbol)||!!(r.flags&524288)&&!!(e.getObjectFlags(r)&16777216))}function k_(){return{typeToTypeNode:function(Wr,Tr,hn,nn){return r(Tr,hn,nn,function(Vn){return o(Wr,Vn)})},indexInfoToIndexSignatureDeclaration:function(Wr,Tr,hn,nn){return r(Tr,hn,nn,function(Vn){return we(Wr,Vn,void 0)})},signatureToSignatureDeclaration:function(Wr,Tr,hn,nn,Vn){return r(hn,nn,Vn,function(En){return Ue(Wr,Tr,En)})},symbolToEntityName:function(Wr,Tr,hn,nn,Vn){return r(hn,nn,Vn,function(En){return Aa(Wr,En,Tr,!1)})},symbolToExpression:function(Wr,Tr,hn,nn,Vn){return r(hn,nn,Vn,function(En){return Li(Wr,En,Tr)})},symbolToTypeParameterDeclarations:function(Wr,Tr,hn,nn){return r(Tr,hn,nn,function(Vn){return Tt(Wr,Vn)})},symbolToParameterDeclaration:function(Wr,Tr,hn,nn){return r(Tr,hn,nn,function(Vn){return _r(Wr,Vn)})},typeParameterToDeclaration:function(Wr,Tr,hn,nn){return r(Tr,hn,nn,function(Vn){return ar(Wr,Vn)})},symbolTableToDeclarationStatements:function(Wr,Tr,hn,nn,Vn){return r(Tr,hn,nn,function(En){return Fi(Wr,En,Vn)})}};function r(Wr,Tr,hn,nn){var Vn,En;e.Debug.assert(Wr===void 0||(Wr.flags&8)===0);var Fn={enclosingDeclaration:Wr,flags:Tr||0,tracker:hn&&hn.trackSymbol?hn:{trackSymbol:function(){return!1},moduleResolverHost:Tr&134217728?{getCommonSourceDirectory:j.getCommonSourceDirectory?function(){return j.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return j.getCurrentDirectory()},getSymlinkCache:e.maybeBind(j,j.getSymlinkCache),useCaseSensitiveFileNames:e.maybeBind(j,j.useCaseSensitiveFileNames),redirectTargetsMap:j.redirectTargetsMap,getProjectReferenceRedirect:function(it){return j.getProjectReferenceRedirect(it)},isSourceOfProjectReferenceRedirect:function(it){return j.isSourceOfProjectReferenceRedirect(it)},fileExists:function(it){return j.fileExists(it)},getFileIncludeReasons:function(){return j.getFileIncludeReasons()},readFile:j.readFile?function(it){return j.readFile(it)}:void 0}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};Fn.tracker=t(Fn,Fn.tracker);var Xr=nn(Fn);return Fn.truncating&&Fn.flags&1&&((En=(Vn=Fn.tracker)===null||Vn===void 0?void 0:Vn.reportTruncationError)===null||En===void 0||En.call(Vn)),Fn.encounteredError?void 0:Xr}function t(Wr,Tr){var hn=Tr.trackSymbol;return Rn(Rn({},Tr),{reportCyclicStructureError:nn(Tr.reportCyclicStructureError),reportInaccessibleThisError:nn(Tr.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:nn(Tr.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:nn(Tr.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:nn(Tr.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:nn(Tr.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:nn(Tr.reportNonSerializableProperty),trackSymbol:hn&&function(){for(var Vn=[],En=0;En<arguments.length;En++)Vn[En]=arguments[En];var Fn=hn.apply(void 0,Vn);return Fn&&(Wr.reportedDiagnostic=!0),Fn}});function nn(Vn){return Vn&&function(){for(var En=[],Fn=0;Fn<arguments.length;Fn++)En[Fn]=arguments[Fn];return Wr.reportedDiagnostic=!0,Vn.apply(void 0,En)}}}function i(Wr){return Wr.truncating?Wr.truncating:Wr.truncating=Wr.approximateLength>(Wr.flags&1?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function o(Wr,Tr){R&&R.throwIfCancellationRequested&&R.throwIfCancellationRequested();var hn=Tr.flags&8388608;if(Tr.flags&=-8388609,!Wr){if(!(Tr.flags&262144)){Tr.encounteredError=!0;return}return Tr.approximateLength+=3,e.factory.createKeywordTypeNode(130)}if(Tr.flags&536870912||(Wr=Eo(Wr)),Wr.flags&1)return Wr.aliasSymbol?e.factory.createTypeReferenceNode(on(Wr.aliasSymbol),G(Wr.aliasTypeArguments,Tr)):Wr===et?e.addSyntheticLeadingComment(e.factory.createKeywordTypeNode(130),3,"unresolved"):(Tr.approximateLength+=3,e.factory.createKeywordTypeNode(Wr===Vr?138:130));if(Wr.flags&2)return e.factory.createKeywordTypeNode(154);if(Wr.flags&4)return Tr.approximateLength+=6,e.factory.createKeywordTypeNode(149);if(Wr.flags&8)return Tr.approximateLength+=6,e.factory.createKeywordTypeNode(146);if(Wr.flags&64)return Tr.approximateLength+=6,e.factory.createKeywordTypeNode(157);if(Wr.flags&16&&!Wr.aliasSymbol)return Tr.approximateLength+=7,e.factory.createKeywordTypeNode(133);if(Wr.flags&1024&&!(Wr.flags&1048576)){var nn=Ts(Wr.symbol),Vn=ca(nn,Tr,788968);if(po(nn)===Wr)return Vn;var En=e.symbolName(Wr.symbol);return e.isIdentifierText(En,0)?Ad(Vn,e.factory.createTypeReferenceNode(En,void 0)):e.isImportTypeNode(Vn)?(Vn.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(Vn,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(En)))):e.isTypeReferenceNode(Vn)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(Vn.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(En))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(Wr.flags&1056)return ca(Wr.symbol,Tr,788968);if(Wr.flags&128)return Tr.approximateLength+=Wr.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(Wr.value,!!(Tr.flags&268435456)),16777216));if(Wr.flags&256){var Fn=Wr.value;return Tr.approximateLength+=(""+Fn).length,e.factory.createLiteralTypeNode(Fn<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-Fn)):e.factory.createNumericLiteral(Fn))}if(Wr.flags&2048)return Tr.approximateLength+=e.pseudoBigIntToString(Wr.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(Wr.value));if(Wr.flags&512)return Tr.approximateLength+=Wr.intrinsicName.length,e.factory.createLiteralTypeNode(Wr.intrinsicName==="true"?e.factory.createTrue():e.factory.createFalse());if(Wr.flags&8192){if(!(Tr.flags&1048576)){if(Of(Wr.symbol,Tr.enclosingDeclaration))return Tr.approximateLength+=6,ca(Wr.symbol,Tr,111551);Tr.tracker.reportInaccessibleUniqueSymbolError&&Tr.tracker.reportInaccessibleUniqueSymbolError()}return Tr.approximateLength+=13,e.factory.createTypeOperatorNode(153,e.factory.createKeywordTypeNode(150))}if(Wr.flags&16384)return Tr.approximateLength+=4,e.factory.createKeywordTypeNode(114);if(Wr.flags&32768)return Tr.approximateLength+=9,e.factory.createKeywordTypeNode(152);if(Wr.flags&65536)return Tr.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(Wr.flags&131072)return Tr.approximateLength+=5,e.factory.createKeywordTypeNode(143);if(Wr.flags&4096)return Tr.approximateLength+=6,e.factory.createKeywordTypeNode(150);if(Wr.flags&67108864)return Tr.approximateLength+=6,e.factory.createKeywordTypeNode(147);if(oh(Wr))return Tr.flags&4194304&&(!Tr.encounteredError&&!(Tr.flags&32768)&&(Tr.encounteredError=!0),Tr.tracker.reportInaccessibleThisError&&Tr.tracker.reportInaccessibleThisError()),Tr.approximateLength+=4,e.factory.createThisTypeNode();if(!hn&&Wr.aliasSymbol&&(Tr.flags&16384||ef(Wr.aliasSymbol,Tr.enclosingDeclaration))){var Xr=G(Wr.aliasTypeArguments,Tr);return Nf(Wr.aliasSymbol.escapedName)&&!(Wr.aliasSymbol.flags&32)?e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),Xr):ca(Wr.aliasSymbol,Tr,788968,Xr)}var it=e.getObjectFlags(Wr);if(it&4)return e.Debug.assert(!!(Wr.flags&524288)),Wr.node?bs(Wr,Ls):Ls(Wr);if(Wr.flags&262144||it&3){if(Wr.flags&262144&&e.contains(Tr.inferTypeParameters,Wr))return Tr.approximateLength+=e.symbolName(Wr.symbol).length+6,e.factory.createInferTypeNode(Je(Wr,Tr,void 0));if(Tr.flags&4&&Wr.flags&262144&&!ef(Wr.symbol,Tr.enclosingDeclaration)){var Pt=di(Wr,Tr);return Tr.approximateLength+=e.idText(Pt).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(Pt)),void 0)}return Wr.symbol?ca(Wr.symbol,Tr,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),void 0)}if(Wr.flags&1048576&&Wr.origin&&(Wr=Wr.origin),Wr.flags&3145728){var Bt=Wr.flags&1048576?Lp(Wr.types):Wr.types;if(e.length(Bt)===1)return o(Bt[0],Tr);var Yt=G(Bt,Tr,!0);if(Yt&&Yt.length>0)return Wr.flags&1048576?e.factory.createUnionTypeNode(Yt):e.factory.createIntersectionTypeNode(Yt);!Tr.encounteredError&&!(Tr.flags&262144)&&(Tr.encounteredError=!0);return}if(it&48)return e.Debug.assert(!!(Wr.flags&524288)),Xs(Wr);if(Wr.flags&4194304){var mn=Wr.type;Tr.approximateLength+=6;var ya=o(mn,Tr);return e.factory.createTypeOperatorNode(140,ya)}if(Wr.flags&134217728){var _a=Wr.texts,qa=Wr.types,Vi=e.factory.createTemplateHead(_a[0]),Qa=e.factory.createNodeArray(e.map(qa,function(Pa,Ri){return e.factory.createTemplateLiteralTypeSpan(o(Pa,Tr),(Ri<qa.length-1?e.factory.createTemplateMiddle:e.factory.createTemplateTail)(_a[Ri+1]))}));return Tr.approximateLength+=2,e.factory.createTemplateLiteralType(Vi,Qa)}if(Wr.flags&268435456){var ho=o(Wr.type,Tr);return ca(Wr.symbol,Tr,788968,[ho])}if(Wr.flags&8388608){var Vo=o(Wr.objectType,Tr),ya=o(Wr.indexType,Tr);return Tr.approximateLength+=2,e.factory.createIndexedAccessTypeNode(Vo,ya)}if(Wr.flags&16777216)return bs(Wr,function(Pa){return ao(Pa)});if(Wr.flags&33554432)return o(Wr.baseType,Tr);return e.Debug.fail("Should be unreachable.");function ao(Pa){var Ri=o(Pa.checkType,Tr),qo=Tr.inferTypeParameters;Tr.inferTypeParameters=Pa.root.inferTypeParameters;var uo=o(Pa.extendsType,Tr);Tr.inferTypeParameters=qo;var Bs=Ds(up(Pa)),Kr=Ds(fp(Pa));return Tr.approximateLength+=15,e.factory.createConditionalTypeNode(Ri,uo,Bs,Kr)}function Ds(Pa){var Ri,qo,uo;return Pa.flags&1048576?!((Ri=Tr.visitedTypes)===null||Ri===void 0)&&Ri.has(Bc(Pa))?(Tr.flags&131072||(Tr.encounteredError=!0,(uo=(qo=Tr.tracker)===null||qo===void 0?void 0:qo.reportCyclicStructureError)===null||uo===void 0||uo.call(qo)),s(Tr)):bs(Pa,function(Bs){return o(Bs,Tr)}):o(Pa,Tr)}function ss(Pa){e.Debug.assert(!!(Pa.flags&524288));var Ri=Pa.declaration.readonlyToken?e.factory.createToken(Pa.declaration.readonlyToken.kind):void 0,qo=Pa.declaration.questionToken?e.factory.createToken(Pa.declaration.questionToken.kind):void 0,uo;Wm(Pa)?uo=e.factory.createTypeOperatorNode(140,o(jm(Pa),Tr)):uo=o(Tc(Pa),Tr);var Bs=Je(eu(Pa),Tr,uo),Kr=Pa.declaration.nameType?o(of(Pa),Tr):void 0,st=o(gm(yu(Pa),!!(ru(Pa)&4)),Tr),kt=e.factory.createMappedTypeNode(Ri,Bs,Kr,qo,st,void 0);return Tr.approximateLength+=10,e.setEmitFlags(kt,1)}function Xs(Pa){var Ri,qo=Pa.id,uo=Pa.symbol;if(uo){var Bs=$d(Pa)?788968:111551;if(ou(uo.valueDeclaration))return ca(uo,Tr,Bs);if(uo.flags&32&&!si(uo)&&!(uo.valueDeclaration&&uo.valueDeclaration.kind===225&&Tr.flags&2048)||uo.flags&896||st())return ca(uo,Tr,Bs);if(!((Ri=Tr.visitedTypes)===null||Ri===void 0)&&Ri.has(qo)){var Kr=Ap(Pa);return Kr?ca(Kr,Tr,788968):s(Tr)}else return bs(Pa,Yf)}else return Yf(Pa);function st(){var kt,$t=!!(uo.flags&8192)&&e.some(uo.declarations,function(Gn){return e.isStatic(Gn)}),ea=!!(uo.flags&16)&&(uo.parent||e.forEach(uo.declarations,function(Gn){return Gn.parent.kind===303||Gn.parent.kind===261}));if($t||ea)return(!!(Tr.flags&4096)||((kt=Tr.visitedTypes)===null||kt===void 0?void 0:kt.has(qo)))&&(!(Tr.flags&8)||Of(uo,Tr.enclosingDeclaration))}}function bs(Pa,Ri){var qo,uo,Bs=Pa.id,Kr=e.getObjectFlags(Pa)&16&&Pa.symbol&&Pa.symbol.flags&32,st=e.getObjectFlags(Pa)&4&&Pa.node?"N"+N(Pa.node):Pa.flags&16777216?"N"+N(Pa.root.node):Pa.symbol?(Kr?"+":"")+y(Pa.symbol):void 0;Tr.visitedTypes||(Tr.visitedTypes=new e.Set),st&&!Tr.symbolDepth&&(Tr.symbolDepth=new e.Map);var kt=Tr.enclosingDeclaration&&Zn(Tr.enclosingDeclaration),$t="".concat(Bc(Pa),"|").concat(Tr.flags);kt&&(kt.serializedTypes||(kt.serializedTypes=new e.Map));var ea=(qo=kt==null?void 0:kt.serializedTypes)===null||qo===void 0?void 0:qo.get($t);if(ea)return ea.truncating&&(Tr.truncating=!0),Tr.approximateLength+=ea.addedLength,vi(ea);var Gn;if(st){if(Gn=Tr.symbolDepth.get(st)||0,Gn>10)return s(Tr);Tr.symbolDepth.set(st,Gn+1)}Tr.visitedTypes.add(Bs);var Tn=Tr.approximateLength,zt=Ri(Pa),ni=Tr.approximateLength-Tn;return!Tr.reportedDiagnostic&&!Tr.encounteredError&&(Tr.truncating&&(zt.truncating=!0),zt.addedLength=ni,(uo=kt==null?void 0:kt.serializedTypes)===null||uo===void 0||uo.set($t,zt)),Tr.visitedTypes.delete(Bs),st&&Tr.symbolDepth.set(st,Gn),zt;function vi(ai){return!e.nodeIsSynthesized(ai)&&e.getParseTreeNode(ai)===ai?ai:e.setTextRange(e.factory.cloneNode(e.visitEachChild(ai,vi,e.nullTransformationContext)),ai)}}function Yf(Pa){if(El(Pa)||Pa.containsError)return ss(Pa);var Ri=Sc(Pa);if(!Ri.properties.length&&!Ri.indexInfos.length){if(!Ri.callSignatures.length&&!Ri.constructSignatures.length)return Tr.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(Ri.callSignatures.length===1&&!Ri.constructSignatures.length){var qo=Ri.callSignatures[0],uo=Ue(qo,178,Tr);return uo}if(Ri.constructSignatures.length===1&&!Ri.callSignatures.length){var qo=Ri.constructSignatures[0],uo=Ue(qo,179,Tr);return uo}}var Bs=e.filter(Ri.constructSignatures,function(Gn){return!!(Gn.flags&4)});if(e.some(Bs)){var Kr=e.map(Bs,Ym),st=Ri.callSignatures.length+(Ri.constructSignatures.length-Bs.length)+Ri.indexInfos.length+(Tr.flags&2048?e.countWhere(Ri.properties,function(Gn){return!(Gn.flags&4194304)}):e.length(Ri.properties));return st&&Kr.push(du(Ri)),o(To(Kr),Tr)}var kt=Tr.flags;Tr.flags|=4194304;var $t=Cv(Ri);Tr.flags=kt;var ea=e.factory.createTypeLiteralNode($t);return Tr.approximateLength+=2,e.setEmitFlags(ea,Tr.flags&1024?0:1),ea}function Ls(Pa){var Ri=vo(Pa);if(Pa.target===se||Pa.target===Be){if(Tr.flags&2){var qo=o(Ri[0],Tr);return e.factory.createTypeReferenceNode(Pa.target===se?"Array":"ReadonlyArray",[qo])}var uo=o(Ri[0],Tr),Bs=e.factory.createArrayTypeNode(uo);return Pa.target===se?Bs:e.factory.createTypeOperatorNode(144,Bs)}else if(Pa.target.objectFlags&8){if(Ri=e.sameMap(Ri,function(eo,Ko){return gm(eo,!!(Pa.target.elementFlags[Ko]&2))}),Ri.length>0){var Kr=op(Pa),st=G(Ri.slice(0,Kr),Tr);if(st){if(Pa.target.labeledElementDeclarations)for(var kt=0;kt<st.length;kt++){var $t=Pa.target.elementFlags[kt];st[kt]=e.factory.createNamedTupleMember($t&12?e.factory.createToken(25):void 0,e.factory.createIdentifier(e.unescapeLeadingUnderscores(Db(Pa.target.labeledElementDeclarations[kt]))),$t&2?e.factory.createToken(57):void 0,$t&4?e.factory.createArrayTypeNode(st[kt]):st[kt])}else for(var kt=0;kt<Math.min(Kr,st.length);kt++){var $t=Pa.target.elementFlags[kt];st[kt]=$t&12?e.factory.createRestTypeNode($t&4?e.factory.createArrayTypeNode(st[kt]):st[kt]):$t&2?e.factory.createOptionalTypeNode(st[kt]):st[kt]}var ea=e.setEmitFlags(e.factory.createTupleTypeNode(st),1);return Pa.target.readonly?e.factory.createTypeOperatorNode(144,ea):ea}}if(Tr.encounteredError||Tr.flags&524288){var ea=e.setEmitFlags(e.factory.createTupleTypeNode([]),1);return Pa.target.readonly?e.factory.createTypeOperatorNode(144,ea):ea}Tr.encounteredError=!0;return}else{if(Tr.flags&2048&&Pa.symbol.valueDeclaration&&e.isClassLike(Pa.symbol.valueDeclaration)&&!Of(Pa.symbol,Tr.enclosingDeclaration))return Xs(Pa);var Gn=Pa.target.outerTypeParameters,kt=0,Tn=void 0;if(Gn)for(var zt=Gn.length;kt<zt;){var ni=kt,vi=gD(Gn[kt]);do kt++;while(kt<zt&&gD(Gn[kt])===vi);if(!e.rangeEquals(Gn,Ri,ni,kt)){var ai=G(Ri.slice(ni,kt),Tr),so=Tr.flags;Tr.flags|=16;var Ui=ca(vi,Tr,788968,ai);Tr.flags=so,Tn=Tn?Ad(Tn,Ui):Ui}}var ps=void 0;if(Ri.length>0){var ls=(Pa.target.typeParameters||e.emptyArray).length;ps=G(Ri.slice(kt,ls),Tr)}var $t=Tr.flags;Tr.flags|=16;var Xo=ca(Pa.symbol,Tr,788968,ps);return Tr.flags=$t,Tn?Ad(Tn,Xo):Xo}}function Ad(Pa,Ri){if(e.isImportTypeNode(Pa)){var qo=Pa.typeArguments,uo=Pa.qualifier;uo&&(e.isIdentifier(uo)?uo=e.factory.updateIdentifier(uo,qo):uo=e.factory.updateQualifiedName(uo,uo.left,e.factory.updateIdentifier(uo.right,qo))),qo=Ri.typeArguments;for(var Bs=Av(Ri),Kr=0,st=Bs;Kr<st.length;Kr++){var kt=st[Kr];uo=uo?e.factory.createQualifiedName(uo,kt):kt}return e.factory.updateImportTypeNode(Pa,Pa.argument,uo,qo,Pa.isTypeOf)}else{var qo=Pa.typeArguments,$t=Pa.typeName;e.isIdentifier($t)?$t=e.factory.updateIdentifier($t,qo):$t=e.factory.updateQualifiedName($t,$t.left,e.factory.updateIdentifier($t.right,qo)),qo=Ri.typeArguments;for(var Bs=Av(Ri),ea=0,Gn=Bs;ea<Gn.length;ea++){var kt=Gn[ea];$t=e.factory.createQualifiedName($t,kt)}return e.factory.updateTypeReferenceNode(Pa,$t,qo)}}function Av(Pa){for(var Ri=Pa.typeName,qo=[];!e.isIdentifier(Ri);)qo.unshift(Ri.right),Ri=Ri.left;return qo.unshift(Ri),qo}function Cv(Pa){if(i(Tr))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var Ri=[],qo=0,uo=Pa.callSignatures;qo<uo.length;qo++){var Bs=uo[qo];Ri.push(Ue(Bs,173,Tr))}for(var Kr=0,st=Pa.constructSignatures;Kr<st.length;Kr++){var Bs=st[Kr];Bs.flags&4||Ri.push(Ue(Bs,174,Tr))}for(var kt=0,$t=Pa.indexInfos;kt<$t.length;kt++){var ea=$t[kt];Ri.push(we(ea,Tr,Pa.objectFlags&1024?s(Tr):void 0))}var Gn=Pa.properties;if(!Gn)return Ri;for(var Tn=0,zt=0,ni=Gn;zt<ni.length;zt++){var vi=ni[zt];if(Tn++,Tr.flags&2048){if(vi.flags&4194304)continue;e.getDeclarationModifierFlagsFromSymbol(vi)&24&&Tr.tracker.reportPrivateInBaseOfClassExpression&&Tr.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(vi.escapedName))}if(i(Tr)&&Tn+2<Gn.length-1){Ri.push(e.factory.createPropertySignature(void 0,"... ".concat(Gn.length-Tn," more ..."),void 0,void 0)),L(Gn[Gn.length-1],Tr,Ri);break}L(vi,Tr,Ri)}return Ri.length?Ri:void 0}}function s(Wr){return Wr.approximateLength+=3,Wr.flags&1?e.factory.createKeywordTypeNode(130):e.factory.createTypeReferenceNode(e.factory.createIdentifier("..."),void 0)}function c(Wr,Tr){var hn;return!!(e.getCheckFlags(Wr)&8192)&&(e.contains(Tr.reverseMappedStack,Wr)||((hn=Tr.reverseMappedStack)===null||hn===void 0?void 0:hn[0])&&!(e.getObjectFlags(e.last(Tr.reverseMappedStack).propertyType)&16))}function L(Wr,Tr,hn){var nn,Vn,En=!!(e.getCheckFlags(Wr)&8192),Fn=c(Wr,Tr)?Ze:Gf(Wr),Xr=Tr.enclosingDeclaration;if(Tr.enclosingDeclaration=void 0,Tr.tracker.trackSymbol&&e.getCheckFlags(Wr)&4096&&Ip(Wr.escapedName))if(Wr.declarations){var it=e.first(Wr.declarations);if(R_(it))if(e.isBinaryExpression(it)){var Pt=e.getNameOfDeclaration(it);Pt&&e.isElementAccessExpression(Pt)&&e.isPropertyAccessEntityNameExpression(Pt.argumentExpression)&&Gr(Pt.argumentExpression,Xr,Tr)}else Gr(it.name.expression,Xr,Tr)}else!((nn=Tr.tracker)===null||nn===void 0)&&nn.reportNonSerializableProperty&&Tr.tracker.reportNonSerializableProperty(Wa(Wr));Tr.enclosingDeclaration=Wr.valueDeclaration||((Vn=Wr.declarations)===null||Vn===void 0?void 0:Vn[0])||Xr;var Bt=xo(Wr,Tr);Tr.enclosingDeclaration=Xr,Tr.approximateLength+=e.symbolName(Wr).length+1;var Yt=Wr.flags&16777216?e.factory.createToken(57):void 0;if(Wr.flags&8208&&!sf(Fn).length&&!Iu(Wr))for(var mn=Ni(rl(Fn,function(Ds){return!(Ds.flags&32768)}),0),ya=0,_a=mn;ya<_a.length;ya++){var qa=_a[ya],Vi=Ue(qa,167,Tr,{name:Bt,questionToken:Yt});hn.push(ao(Vi))}else{var Qa=void 0;c(Wr,Tr)?Qa=s(Tr):(En&&(Tr.reverseMappedStack||(Tr.reverseMappedStack=[]),Tr.reverseMappedStack.push(Wr)),Qa=Fn?Ba(Tr,Fn,Wr,Xr):e.factory.createKeywordTypeNode(130),En&&Tr.reverseMappedStack.pop());var ho=Iu(Wr)?[e.factory.createToken(144)]:void 0;ho&&(Tr.approximateLength+=9);var Vo=e.factory.createPropertySignature(ho,Bt,Yt,Qa);hn.push(ao(Vo))}function ao(Ds){var ss;if(e.some(Wr.declarations,function(Yf){return Yf.kind===345})){var Xs=(ss=Wr.declarations)===null||ss===void 0?void 0:ss.find(function(Yf){return Yf.kind===345}),bs=e.getTextOfJSDocComment(Xs.comment);bs&&e.setSyntheticLeadingComments(Ds,[{kind:3,text:`*
  228. * `+bs.replace(/\n/g,`
  229. * `)+`
  230. `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else Wr.valueDeclaration&&e.setCommentRange(Ds,Wr.valueDeclaration);return Ds}}function G(Wr,Tr,hn){if(e.some(Wr)){if(i(Tr))if(hn){if(Wr.length>2)return[o(Wr[0],Tr),e.factory.createTypeReferenceNode("... ".concat(Wr.length-2," more ..."),void 0),o(Wr[Wr.length-1],Tr)]}else return[e.factory.createTypeReferenceNode("...",void 0)];for(var nn=!(Tr.flags&64),Vn=nn?e.createUnderscoreEscapedMultiMap():void 0,En=[],Fn=0,Xr=0,it=Wr;Xr<it.length;Xr++){var Pt=it[Xr];if(Fn++,i(Tr)&&Fn+2<Wr.length-1){En.push(e.factory.createTypeReferenceNode("... ".concat(Wr.length-Fn," more ..."),void 0));var Bt=o(Wr[Wr.length-1],Tr);Bt&&En.push(Bt);break}Tr.approximateLength+=2;var Yt=o(Pt,Tr);Yt&&(En.push(Yt),Vn&&e.isIdentifierTypeReference(Yt)&&Vn.add(Yt.typeName.escapedText,[Pt,En.length-1]))}if(Vn){var mn=Tr.flags;Tr.flags|=64,Vn.forEach(function(ya){if(!e.arrayIsHomogeneous(ya,function(Vo,ao){var Ds=Vo[0],ss=ao[0];return ce(Ds,ss)}))for(var _a=0,qa=ya;_a<qa.length;_a++){var Vi=qa[_a],Qa=Vi[0],ho=Vi[1];En[ho]=o(Qa,Tr)}}),Tr.flags=mn}return En}}function ce(Wr,Tr){return Wr===Tr||!!Wr.symbol&&Wr.symbol===Tr.symbol||!!Wr.aliasSymbol&&Wr.aliasSymbol===Tr.aliasSymbol}function we(Wr,Tr,hn){var nn=e.getNameFromIndexInfo(Wr)||"x",Vn=o(Wr.keyType,Tr),En=e.factory.createParameterDeclaration(void 0,void 0,void 0,nn,void 0,Vn,void 0);return hn||(hn=o(Wr.type||Ze,Tr)),!Wr.type&&!(Tr.flags&2097152)&&(Tr.encounteredError=!0),Tr.approximateLength+=nn.length+4,e.factory.createIndexSignature(void 0,Wr.isReadonly?[e.factory.createToken(144)]:void 0,[En],hn)}function Ue(Wr,Tr,hn,nn){var Vn,En,Fn,Xr,it=hn.flags&256;it&&(hn.flags&=-257),hn.approximateLength+=3;var Pt,Bt;hn.flags&32&&Wr.target&&Wr.mapper&&Wr.target.typeParameters?Bt=Wr.target.typeParameters.map(function(Xs){return o(oi(Xs,Wr.mapper),hn)}):Pt=Wr.typeParameters&&Wr.typeParameters.map(function(Xs){return ar(Xs,hn)});var Yt=cy(Wr,!0)[0],mn=(e.some(Yt,function(Xs){return Xs!==Yt[Yt.length-1]&&!!(e.getCheckFlags(Xs)&32768)})?Wr.parameters:Yt).map(function(Xs){return _r(Xs,hn,Tr===170,nn==null?void 0:nn.privateSymbolVisitor,nn==null?void 0:nn.bundledImports)});if(Wr.thisParameter){var ya=_r(Wr.thisParameter,hn);mn.unshift(ya)}var _a,qa=Dc(Wr);if(qa){var Vi=qa.kind===2||qa.kind===3?e.factory.createToken(128):void 0,Qa=qa.kind===1||qa.kind===3?e.setEmitFlags(e.factory.createIdentifier(qa.parameterName),16777216):e.factory.createThisTypeNode(),ho=qa.type&&o(qa.type,hn);_a=e.factory.createTypePredicateNode(Vi,Qa,ho)}else{var Vo=_o(Wr);Vo&&!(it&&Na(Vo))?_a=Ti(hn,Vo,Wr,nn==null?void 0:nn.privateSymbolVisitor,nn==null?void 0:nn.bundledImports):it||(_a=e.factory.createKeywordTypeNode(130))}var ao=nn==null?void 0:nn.modifiers;if(Tr===179&&Wr.flags&4){var Ds=e.modifiersToFlags(ao);ao=e.factory.createModifiersFromModifierFlags(Ds|128)}var ss=Tr===173?e.factory.createCallSignature(Pt,mn,_a):Tr===174?e.factory.createConstructSignature(Pt,mn,_a):Tr===167?e.factory.createMethodSignature(ao,(Vn=nn==null?void 0:nn.name)!==null&&Vn!==void 0?Vn:e.factory.createIdentifier(""),nn==null?void 0:nn.questionToken,Pt,mn,_a):Tr===168?e.factory.createMethodDeclaration(void 0,ao,void 0,(En=nn==null?void 0:nn.name)!==null&&En!==void 0?En:e.factory.createIdentifier(""),void 0,Pt,mn,_a,void 0):Tr===170?e.factory.createConstructorDeclaration(void 0,ao,mn,void 0):Tr===171?e.factory.createGetAccessorDeclaration(void 0,ao,(Fn=nn==null?void 0:nn.name)!==null&&Fn!==void 0?Fn:e.factory.createIdentifier(""),mn,_a,void 0):Tr===172?e.factory.createSetAccessorDeclaration(void 0,ao,(Xr=nn==null?void 0:nn.name)!==null&&Xr!==void 0?Xr:e.factory.createIdentifier(""),mn,void 0):Tr===175?e.factory.createIndexSignature(void 0,ao,mn,_a):Tr===315?e.factory.createJSDocFunctionType(mn,_a):Tr===178?e.factory.createFunctionTypeNode(Pt,mn,_a??e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):Tr===179?e.factory.createConstructorTypeNode(ao,Pt,mn,_a??e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):Tr===255?e.factory.createFunctionDeclaration(void 0,ao,void 0,nn!=null&&nn.name?e.cast(nn.name,e.isIdentifier):e.factory.createIdentifier(""),Pt,mn,_a,void 0):Tr===212?e.factory.createFunctionExpression(ao,void 0,nn!=null&&nn.name?e.cast(nn.name,e.isIdentifier):e.factory.createIdentifier(""),Pt,mn,_a,e.factory.createBlock([])):Tr===213?e.factory.createArrowFunction(ao,Pt,mn,_a,void 0,e.factory.createBlock([])):e.Debug.assertNever(Tr);return Bt&&(ss.typeArguments=e.factory.createNodeArray(Bt)),ss}function Je(Wr,Tr,hn){var nn=Tr.flags;Tr.flags&=-513;var Vn=di(Wr,Tr),En=Bn(Wr),Fn=En&&o(En,Tr);return Tr.flags=nn,e.factory.createTypeParameterDeclaration(Vn,hn,Fn)}function ar(Wr,Tr,hn){hn===void 0&&(hn=Nl(Wr));var nn=hn&&o(hn,Tr);return Je(Wr,Tr,nn)}function _r(Wr,Tr,hn,nn,Vn){var En=e.getDeclarationOfKind(Wr,163);!En&&!e.isTransientSymbol(Wr)&&(En=e.getDeclarationOfKind(Wr,338));var Fn=An(Wr);En&&pI(En)&&(Fn=Jf(Fn)),Tr.flags&1073741824&&En&&!e.isJSDocParameterTag(En)&&S8(En)&&(Fn=Fs(Fn,524288));var Xr=Ba(Tr,Fn,Wr,Tr.enclosingDeclaration,nn,Vn),it=!(Tr.flags&8192)&&hn&&En&&En.modifiers?En.modifiers.map(e.factory.cloneNode):void 0,Pt=En&&e.isRestParameter(En)||e.getCheckFlags(Wr)&32768,Bt=Pt?e.factory.createToken(25):void 0,Yt=En&&En.name?En.name.kind===79?e.setEmitFlags(e.factory.cloneNode(En.name),16777216):En.name.kind===160?e.setEmitFlags(e.factory.cloneNode(En.name.right),16777216):qa(En.name):e.symbolName(Wr),mn=En&&w_(En)||e.getCheckFlags(Wr)&16384,ya=mn?e.factory.createToken(57):void 0,_a=e.factory.createParameterDeclaration(void 0,it,Bt,Yt,ya,Xr,void 0);return Tr.approximateLength+=e.symbolName(Wr).length+3,_a;function qa(Vi){return Qa(Vi);function Qa(ho){Tr.tracker.trackSymbol&&e.isComputedPropertyName(ho)&&Bg(ho)&&Gr(ho.expression,Tr.enclosingDeclaration,Tr);var Vo=e.visitEachChild(ho,Qa,e.nullTransformationContext,void 0,Qa);return e.isBindingElement(Vo)&&(Vo=e.factory.updateBindingElement(Vo,Vo.dotDotDotToken,Vo.propertyName,Vo.name,void 0)),e.nodeIsSynthesized(Vo)||(Vo=e.factory.cloneNode(Vo)),e.setEmitFlags(Vo,16777217)}}}function Gr(Wr,Tr,hn){if(hn.tracker.trackSymbol){var nn=e.getFirstIdentifier(Wr),Vn=Uo(nn,nn.escapedText,1160127,void 0,void 0,!0);Vn&&hn.tracker.trackSymbol(Vn,Tr,111551)}}function Zr(Wr,Tr,hn,nn){return Tr.tracker.trackSymbol(Wr,Tr.enclosingDeclaration,hn),Et(Wr,Tr,hn,nn)}function Et(Wr,Tr,hn,nn){var Vn,En=Wr.flags&262144;return!En&&(Tr.enclosingDeclaration||Tr.flags&64)&&!(Tr.flags&134217728)?(Vn=e.Debug.checkDefined(Fn(Wr,hn,!0)),e.Debug.assert(Vn&&Vn.length>0)):Vn=[Wr],Vn;function Fn(Xr,it,Pt){var Bt=kf(Xr,Tr.enclosingDeclaration,it,!!(Tr.flags&128)),Yt;if(!Bt||Uu(Bt[0],Tr.enclosingDeclaration,Bt.length===1?it:ac(it))){var mn=rc(Bt?Bt[0]:Xr,Tr.enclosingDeclaration,it);if(e.length(mn)){Yt=mn.map(function(ao){return e.some(ao.declarations,Ec)?Nn(ao,Tr):void 0});var ya=mn.map(function(ao,Ds){return Ds});ya.sort(Vo);for(var _a=ya.map(function(ao){return mn[ao]}),qa=0,Vi=_a;qa<Vi.length;qa++){var Qa=Vi[qa],ho=Fn(Qa,ac(it),!1);if(ho){if(Qa.exports&&Qa.exports.get("export=")&&Ll(Qa.exports.get("export="),Xr)){Bt=ho;break}Bt=ho.concat(Bt||[Hd(Qa,Xr)||Xr]);break}}}}if(Bt)return Bt;if(Pt||!(Xr.flags&6144))return!Pt&&!nn&&e.forEach(Xr.declarations,Ec)?void 0:[Xr];function Vo(ao,Ds){var ss=Yt[ao],Xs=Yt[Ds];if(ss&&Xs){var bs=e.pathIsRelative(Xs);return e.pathIsRelative(ss)===bs?e.moduleSpecifiers.countPathComponents(ss)-e.moduleSpecifiers.countPathComponents(Xs):bs?-1:1}return 0}}}function Tt(Wr,Tr){var hn,nn=Am(Wr);return nn.flags&524384&&(hn=e.factory.createNodeArray(e.map(mu(Wr),function(Vn){return ar(Vn,Tr)}))),hn}function At(Wr,Tr,hn){var nn;e.Debug.assert(Wr&&0<=Tr&&Tr<Wr.length);var Vn=Wr[Tr],En=y(Vn);if(!(!((nn=hn.typeParameterSymbolList)===null||nn===void 0)&&nn.has(En))){(hn.typeParameterSymbolList||(hn.typeParameterSymbolList=new e.Set)).add(En);var Fn;if(hn.flags&512&&Tr<Wr.length-1){var Xr=Vn,it=Wr[Tr+1];if(e.getCheckFlags(it)&1){var Pt=Pv(Xr.flags&2097152?ms(Xr):Xr);Fn=G(e.map(Pt,function(Bt){return dp(Bt,it.mapper)}),hn)}else Fn=Tt(Vn,hn)}return Fn}}function Vt(Wr){return e.isIndexedAccessTypeNode(Wr.objectType)?Vt(Wr.objectType):Wr}function Nn(Wr,Tr){var hn,nn=e.getDeclarationOfKind(Wr,303);if(!nn){var Vn=e.firstDefined(Wr.declarations,function(qa){return zc(qa,Wr)});Vn&&(nn=e.getDeclarationOfKind(Vn,303))}if(nn&&nn.moduleName!==void 0)return nn.moduleName;if(!nn){if(Tr.tracker.trackReferencedAmbientModule){var En=e.filter(Wr.declarations,e.isAmbientModule);if(e.length(En))for(var Fn=0,Xr=En;Fn<Xr.length;Fn++){var it=Xr[Fn];Tr.tracker.trackReferencedAmbientModule(it,Wr)}}if(n.test(Wr.escapedName))return Wr.escapedName.substring(1,Wr.escapedName.length-1)}if(!Tr.enclosingDeclaration||!Tr.tracker.moduleResolverHost)return n.test(Wr.escapedName)?Wr.escapedName.substring(1,Wr.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(Wr)).fileName;var Pt=e.getSourceFileOfNode(e.getOriginalNode(Tr.enclosingDeclaration)),Bt=Ja(Wr),Yt=Bt.specifierCache&&Bt.specifierCache.get(Pt.path);if(!Yt){var mn=!!e.outFile(Xe),ya=Tr.tracker.moduleResolverHost,_a=mn?Rn(Rn({},Xe),{baseUrl:ya.getCommonSourceDirectory()}):Xe;Yt=e.first(e.moduleSpecifiers.getModuleSpecifiers(Wr,Yr,_a,Pt,ya,{importModuleSpecifierPreference:mn?"non-relative":"project-relative",importModuleSpecifierEnding:mn?"minimal":void 0})),(hn=Bt.specifierCache)!==null&&hn!==void 0||(Bt.specifierCache=new e.Map),Bt.specifierCache.set(Pt.path,Yt)}return Yt}function on(Wr){var Tr=e.factory.createIdentifier(e.unescapeLeadingUnderscores(Wr.escapedName));return Wr.parent?e.factory.createQualifiedName(on(Wr.parent),Tr):Tr}function ca(Wr,Tr,hn,nn){var Vn=Zr(Wr,Tr,hn,!(Tr.flags&16384)),En=hn===111551;if(e.some(Vn[0].declarations,Ec)){var Fn=Vn.length>1?qa(Vn,Vn.length-1,1):void 0,Xr=nn||At(Vn,0,Tr),it=Nn(Vn[0],Tr);!(Tr.flags&67108864)&&e.getEmitModuleResolutionKind(Xe)!==e.ModuleResolutionKind.Classic&&it.indexOf("/node_modules/")>=0&&(Tr.encounteredError=!0,Tr.tracker.reportLikelyUnsafeImportRequiredError&&Tr.tracker.reportLikelyUnsafeImportRequiredError(it));var Pt=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(it));if(Tr.tracker.trackExternalModuleSymbolOfImportTypeNode&&Tr.tracker.trackExternalModuleSymbolOfImportTypeNode(Vn[0]),Tr.approximateLength+=it.length+10,!Fn||e.isEntityName(Fn)){if(Fn){var Bt=e.isIdentifier(Fn)?Fn:Fn.right;Bt.typeArguments=void 0}return e.factory.createImportTypeNode(Pt,Fn,Xr,En)}else{var Yt=Vt(Fn),mn=Yt.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(Pt,mn,Xr,En),Yt.indexType)}}var ya=qa(Vn,Vn.length-1,0);if(e.isIndexedAccessTypeNode(ya))return ya;if(En)return e.factory.createTypeQueryNode(ya);var Bt=e.isIdentifier(ya)?ya:ya.right,_a=Bt.typeArguments;return Bt.typeArguments=void 0,e.factory.createTypeReferenceNode(ya,_a);function qa(Vi,Qa,ho){var Vo=Qa===Vi.length-1?nn:At(Vi,Qa,Tr),ao=Vi[Qa],Ds=Vi[Qa-1],ss;if(Qa===0)Tr.flags|=16777216,ss=Fc(ao,Tr),Tr.approximateLength+=(ss?ss.length:0)+1,Tr.flags^=16777216;else if(Ds&&Js(Ds)){var Xs=Js(Ds);e.forEachEntry(Xs,function(Ls,Ad){if(Ll(Ls,ao)&&!Ip(Ad)&&Ad!=="export=")return ss=e.unescapeLeadingUnderscores(Ad),!0})}if(ss||(ss=Fc(ao,Tr)),Tr.approximateLength+=ss.length+1,!(Tr.flags&16)&&Ds&&af(Ds)&&af(Ds).get(ao.escapedName)&&Ll(af(Ds).get(ao.escapedName),ao)){var bs=qa(Vi,Qa-1,ho);return e.isIndexedAccessTypeNode(bs)?e.factory.createIndexedAccessTypeNode(bs,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(ss))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(bs,Vo),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(ss)))}var Yf=e.setEmitFlags(e.factory.createIdentifier(ss,Vo),16777216);if(Yf.symbol=ao,Qa>ho){var bs=qa(Vi,Qa-1,ho);return e.isEntityName(bs)?e.factory.createQualifiedName(bs,Yf):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return Yf}}function la(Wr,Tr,hn){var nn=Uo(Tr.enclosingDeclaration,Wr,788968,void 0,Wr,!1);return nn?!(nn.flags&262144&&nn===hn.symbol):!1}function di(Wr,Tr){var hn,nn;if(Tr.flags&4&&Tr.typeParameterNames){var Vn=Tr.typeParameterNames.get(Bc(Wr));if(Vn)return Vn}var En=Aa(Wr.symbol,Tr,788968,!0);if(!(En.kind&79))return e.factory.createIdentifier("(Missing type parameter)");if(Tr.flags&4){for(var Fn=En.escapedText,Xr=((hn=Tr.typeParameterNamesByTextNextNameCount)===null||hn===void 0?void 0:hn.get(Fn))||0,it=Fn;!((nn=Tr.typeParameterNamesByText)===null||nn===void 0)&&nn.has(it)||la(it,Tr,Wr);)Xr++,it="".concat(Fn,"_").concat(Xr);it!==Fn&&(En=e.factory.createIdentifier(it,En.typeArguments)),(Tr.typeParameterNamesByTextNextNameCount||(Tr.typeParameterNamesByTextNextNameCount=new e.Map)).set(Fn,Xr),(Tr.typeParameterNames||(Tr.typeParameterNames=new e.Map)).set(Bc(Wr),En),(Tr.typeParameterNamesByText||(Tr.typeParameterNamesByText=new e.Set)).add(Fn)}return En}function Aa(Wr,Tr,hn,nn){var Vn=Zr(Wr,Tr,hn);return nn&&Vn.length!==1&&!Tr.encounteredError&&!(Tr.flags&65536)&&(Tr.encounteredError=!0),En(Vn,Vn.length-1);function En(Fn,Xr){var it=At(Fn,Xr,Tr),Pt=Fn[Xr];Xr===0&&(Tr.flags|=16777216);var Bt=Fc(Pt,Tr);Xr===0&&(Tr.flags^=16777216);var Yt=e.setEmitFlags(e.factory.createIdentifier(Bt,it),16777216);return Yt.symbol=Pt,Xr>0?e.factory.createQualifiedName(En(Fn,Xr-1),Yt):Yt}}function Li(Wr,Tr,hn){var nn=Zr(Wr,Tr,hn);return Vn(nn,nn.length-1);function Vn(En,Fn){var Xr=At(En,Fn,Tr),it=En[Fn];Fn===0&&(Tr.flags|=16777216);var Pt=Fc(it,Tr);Fn===0&&(Tr.flags^=16777216);var Bt=Pt.charCodeAt(0);if(e.isSingleOrDoubleQuote(Bt)&&e.some(it.declarations,Ec))return e.factory.createStringLiteral(Nn(it,Tr));var Yt=Bt===35?Pt.length>1&&e.isIdentifierStart(Pt.charCodeAt(1),De):e.isIdentifierStart(Bt,De);if(Fn===0||Yt){var mn=e.setEmitFlags(e.factory.createIdentifier(Pt,Xr),16777216);return mn.symbol=it,Fn>0?e.factory.createPropertyAccessExpression(Vn(En,Fn-1),mn):mn}else{Bt===91&&(Pt=Pt.substring(1,Pt.length-1),Bt=Pt.charCodeAt(0));var ya=void 0;return e.isSingleOrDoubleQuote(Bt)?ya=e.factory.createStringLiteral(Pt.substring(1,Pt.length-1).replace(/\\./g,function(_a){return _a.substring(1)}),Bt===39):""+ +Pt===Pt&&(ya=e.factory.createNumericLiteral(+Pt)),ya||(ya=e.setEmitFlags(e.factory.createIdentifier(Pt,Xr),16777216),ya.symbol=it),e.factory.createElementAccessExpression(Vn(En,Fn-1),ya)}}}function Bi(Wr){var Tr=e.getNameOfDeclaration(Wr);return!!Tr&&e.isStringLiteral(Tr)}function Ai(Wr){var Tr=e.getNameOfDeclaration(Wr);return!!(Tr&&e.isStringLiteral(Tr)&&(Tr.singleQuote||!e.nodeIsSynthesized(Tr)&&e.startsWith(e.getTextOfNode(Tr,!1),"'")))}function xo(Wr,Tr){var hn=!!e.length(Wr.declarations)&&e.every(Wr.declarations,Ai),nn=Wt(Wr,Tr,hn);if(nn)return nn;var Vn=e.unescapeLeadingUnderscores(Wr.escapedName),En=!!e.length(Wr.declarations)&&e.every(Wr.declarations,Bi);return Ft(Vn,En,hn)}function Wt(Wr,Tr,hn){var nn=Ja(Wr).nameType;if(nn){if(nn.flags&384){var Vn=""+nn.value;return!e.isIdentifierText(Vn,e.getEmitScriptTarget(Xe))&&!zf(Vn)?e.factory.createStringLiteral(Vn,!!hn):zf(Vn)&&e.startsWith(Vn,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+Vn)):Ft(Vn)}if(nn.flags&8192)return e.factory.createComputedPropertyName(Li(nn.symbol,Tr,111551))}}function Ft(Wr,Tr,hn){return e.isIdentifierText(Wr,e.getEmitScriptTarget(Xe))?e.factory.createIdentifier(Wr):!Tr&&zf(Wr)&&+Wr>=0?e.factory.createNumericLiteral(+Wr):e.factory.createStringLiteral(Wr,!!hn)}function _n(Wr){var Tr=Rn({},Wr);return Tr.typeParameterNames&&(Tr.typeParameterNames=new e.Map(Tr.typeParameterNames)),Tr.typeParameterNamesByText&&(Tr.typeParameterNamesByText=new e.Set(Tr.typeParameterNamesByText)),Tr.typeParameterSymbolList&&(Tr.typeParameterSymbolList=new e.Set(Tr.typeParameterSymbolList)),Tr.tracker=t(Tr,Tr.tracker),Tr}function Ca(Wr,Tr){return Wr.declarations&&e.find(Wr.declarations,function(hn){return!!e.getEffectiveTypeAnnotationNode(hn)&&(!Tr||!!e.findAncestor(hn,function(nn){return nn===Tr}))})}function Yn(Wr,Tr){return!(e.getObjectFlags(Tr)&4)||!e.isTypeReferenceNode(Wr)||e.length(Wr.typeArguments)>=lf(Tr.target.typeParameters)}function Ba(Wr,Tr,hn,nn,Vn,En){if(!Ua(Tr)&&nn){var Fn=Ca(hn,nn);if(Fn&&!e.isFunctionLikeDeclaration(Fn)&&!e.isGetAccessorDeclaration(Fn)){var Xr=e.getEffectiveTypeAnnotationNode(Fn);if(Da(Xr)===Tr&&Yn(Xr,Tr)){var it=jn(Wr,Xr,Vn,En);if(it)return it}}}var Pt=Wr.flags;Tr.flags&8192&&Tr.symbol===hn&&(!Wr.enclosingDeclaration||e.some(hn.declarations,function(Yt){return e.getSourceFileOfNode(Yt)===e.getSourceFileOfNode(Wr.enclosingDeclaration)}))&&(Wr.flags|=1048576);var Bt=o(Tr,Wr);return Wr.flags=Pt,Bt}function Ti(Wr,Tr,hn,nn,Vn){if(!Ua(Tr)&&Wr.enclosingDeclaration){var En=hn.declaration&&e.getEffectiveReturnTypeNode(hn.declaration);if(e.findAncestor(En,function(Pt){return Pt===Wr.enclosingDeclaration})&&En){var Fn=Da(En),Xr=Fn.flags&262144&&Fn.isThisType?oi(Fn,hn.mapper):Fn;if(Xr===Tr&&Yn(En,Tr)){var it=jn(Wr,En,nn,Vn);if(it)return it}}}return o(Tr,Wr)}function Pi(Wr,Tr,hn){var nn,Vn,En=!1,Fn=e.getFirstIdentifier(Wr);if(e.isInJSFile(Wr)&&(e.isExportsIdentifier(Fn)||e.isModuleExportsAccessExpression(Fn.parent)||e.isQualifiedName(Fn.parent)&&e.isModuleIdentifier(Fn.parent.left)&&e.isExportsIdentifier(Fn.parent.right)))return En=!0,{introducesError:En,node:Wr};var Xr=rs(Fn,67108863,!0,!0);if(Xr&&(rf(Xr,Tr.enclosingDeclaration,67108863,!1).accessibility!==0?En=!0:((Vn=(nn=Tr.tracker)===null||nn===void 0?void 0:nn.trackSymbol)===null||Vn===void 0||Vn.call(nn,Xr,Tr.enclosingDeclaration,67108863),hn==null||hn(Xr)),e.isIdentifier(Wr))){var it=Xr.flags&262144?di(po(Xr),Tr):e.factory.cloneNode(Wr);return it.symbol=Xr,{introducesError:En,node:e.setEmitFlags(e.setOriginalNode(it,Wr),16777216)}}return{introducesError:En,node:Wr}}function jn(Wr,Tr,hn,nn){R&&R.throwIfCancellationRequested&&R.throwIfCancellationRequested();var Vn=!1,En=e.getSourceFileOfNode(Tr),Fn=e.visitNode(Tr,Xr);if(Vn)return;return Fn===Tr?e.setTextRange(e.factory.cloneNode(Tr),Tr):Fn;function Xr(it){if(e.isJSDocAllType(it)||it.kind===317)return e.factory.createKeywordTypeNode(130);if(e.isJSDocUnknownType(it))return e.factory.createKeywordTypeNode(154);if(e.isJSDocNullableType(it))return e.factory.createUnionTypeNode([e.visitNode(it.type,Xr),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(it))return e.factory.createUnionTypeNode([e.visitNode(it.type,Xr),e.factory.createKeywordTypeNode(152)]);if(e.isJSDocNonNullableType(it))return e.visitNode(it.type,Xr);if(e.isJSDocVariadicType(it))return e.factory.createArrayTypeNode(e.visitNode(it.type,Xr));if(e.isJSDocTypeLiteral(it))return e.factory.createTypeLiteralNode(e.map(it.jsDocPropertyTags,function(Qa){var ho=e.isIdentifier(Qa.name)?Qa.name:Qa.name.right,Vo=ia(Da(it),ho.escapedText),ao=Vo&&Qa.typeExpression&&Da(Qa.typeExpression.type)!==Vo?o(Vo,Wr):void 0;return e.factory.createPropertySignature(void 0,ho,Qa.isBracketed||Qa.typeExpression&&e.isJSDocOptionalType(Qa.typeExpression.type)?e.factory.createToken(57):void 0,ao||Qa.typeExpression&&e.visitNode(Qa.typeExpression.type,Xr)||e.factory.createKeywordTypeNode(130))}));if(e.isTypeReferenceNode(it)&&e.isIdentifier(it.typeName)&&it.typeName.escapedText==="")return e.setOriginalNode(e.factory.createKeywordTypeNode(130),it);if((e.isExpressionWithTypeArguments(it)||e.isTypeReferenceNode(it))&&e.isJSDocIndexSignature(it))return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,e.visitNode(it.typeArguments[0],Xr))],e.visitNode(it.typeArguments[1],Xr))]);if(e.isJSDocFunctionType(it))if(e.isJSDocConstructSignature(it)){var Pt;return e.factory.createConstructorTypeNode(it.modifiers,e.visitNodes(it.typeParameters,Xr),e.mapDefined(it.parameters,function(Qa,ho){return Qa.name&&e.isIdentifier(Qa.name)&&Qa.name.escapedText==="new"?(Pt=Qa.type,void 0):e.factory.createParameterDeclaration(void 0,void 0,_a(Qa),qa(Qa,ho),Qa.questionToken,e.visitNode(Qa.type,Xr),void 0)}),e.visitNode(Pt||it.type,Xr)||e.factory.createKeywordTypeNode(130))}else return e.factory.createFunctionTypeNode(e.visitNodes(it.typeParameters,Xr),e.map(it.parameters,function(Qa,ho){return e.factory.createParameterDeclaration(void 0,void 0,_a(Qa),qa(Qa,ho),Qa.questionToken,e.visitNode(Qa.type,Xr),void 0)}),e.visitNode(it.type,Xr)||e.factory.createKeywordTypeNode(130));if(e.isTypeReferenceNode(it)&&e.isInJSDoc(it)&&(!Yn(it,Da(it))||LD(it)||We===$m(it,788968,!0)))return e.setOriginalNode(o(Da(it),Wr),it);if(e.isLiteralImportTypeNode(it)){var Bt=Zn(it).resolvedSymbol;return e.isInJSDoc(it)&&Bt&&(!it.isTypeOf&&!(Bt.flags&788968)||!(e.length(it.typeArguments)>=lf(mu(Bt))))?e.setOriginalNode(o(Da(it),Wr),it):e.factory.updateImportTypeNode(it,e.factory.updateLiteralTypeNode(it.argument,Vi(it,it.argument.literal)),it.qualifier,e.visitNodes(it.typeArguments,Xr,e.isTypeNode),it.isTypeOf)}if(e.isEntityName(it)||e.isEntityNameExpression(it)){var Yt=Pi(it,Wr,hn),mn=Yt.introducesError,ya=Yt.node;if(Vn=Vn||mn,ya!==it)return ya}return En&&e.isTupleTypeNode(it)&&e.getLineAndCharacterOfPosition(En,it.pos).line===e.getLineAndCharacterOfPosition(En,it.end).line&&e.setEmitFlags(it,1),e.visitEachChild(it,Xr,e.nullTransformationContext);function _a(Qa){return Qa.dotDotDotToken||(Qa.type&&e.isJSDocVariadicType(Qa.type)?e.factory.createToken(25):void 0)}function qa(Qa,ho){return Qa.name&&e.isIdentifier(Qa.name)&&Qa.name.escapedText==="this"?"this":_a(Qa)?"args":"arg".concat(ho)}function Vi(Qa,ho){if(nn){if(Wr.tracker&&Wr.tracker.moduleResolverHost){var Vo=IT(Qa);if(Vo){var ao=e.createGetCanonicalFileName(!!j.useCaseSensitiveFileNames),Ds={getCanonicalFileName:ao,getCurrentDirectory:function(){return Wr.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return Wr.tracker.moduleResolverHost.getCommonSourceDirectory()}},ss=e.getResolvedExternalModuleName(Ds,Vo);return e.factory.createStringLiteral(ss)}}}else if(Wr.tracker&&Wr.tracker.trackExternalModuleSymbolOfImportTypeNode){var Xs=Mc(ho,ho,void 0);Xs&&Wr.tracker.trackExternalModuleSymbolOfImportTypeNode(Xs)}return ho}}}function Fi(Wr,Tr,hn){var nn=vi(e.factory.createPropertyDeclaration,168,!0),Vn=vi(function(ot,ln,aa,qn,ra){return e.factory.createPropertySignature(ln,aa,qn,ra)},167,!1),En=Tr.enclosingDeclaration,Fn=[],Xr=new e.Set,it=[],Pt=Tr;Tr=Rn(Rn({},Pt),{usedSymbolNames:new e.Set(Pt.usedSymbolNames),remappedSymbolNames:new e.Map,tracker:Rn(Rn({},Pt.tracker),{trackSymbol:function(ot,ln,aa){var qn=rf(ot,ln,aa,!1);if(qn.accessibility===0){var ra=Et(ot,Tr,aa);ot.flags&4||bs(ra[0])}else if(Pt.tracker&&Pt.tracker.trackSymbol)return Pt.tracker.trackSymbol(ot,ln,aa);return!1}})}),Tr.tracker=t(Tr,Tr.tracker),e.forEachEntry(Wr,function(ot,ln){var aa=e.unescapeLeadingUnderscores(ln);$o(ot,aa)});var Bt=!hn,Yt=Wr.get("export=");return Yt&&Wr.size>1&&Yt.flags&2097152&&(Wr=e.createSymbolTable(),Wr.set("export=",Yt)),Ds(Wr),Qa(Fn);function mn(ot){return!!ot&&ot.kind===79}function ya(ot){return e.isVariableStatement(ot)?e.filter(e.map(ot.declarationList.declarations,e.getNameOfDeclaration),mn):e.filter([e.getNameOfDeclaration(ot)],mn)}function _a(ot){var ln=e.find(ot,e.isExportAssignment),aa=e.findIndex(ot,e.isModuleDeclaration),qn=aa!==-1?ot[aa]:void 0;if(qn&&ln&&ln.isExportEquals&&e.isIdentifier(ln.expression)&&e.isIdentifier(qn.name)&&e.idText(qn.name)===e.idText(ln.expression)&&qn.body&&e.isModuleBlock(qn.body)){var ra=e.filter(ot,function(Va){return!!(e.getEffectiveModifierFlags(Va)&1)}),Xa=qn.name,ja=qn.body;if(e.length(ra)&&(qn=e.factory.updateModuleDeclaration(qn,qn.decorators,qn.modifiers,qn.name,ja=e.factory.updateModuleBlock(ja,e.factory.createNodeArray(Gt(Gt([],qn.body.statements,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(ra,function(Va){return ya(Va)}),function(Va){return e.factory.createExportSpecifier(!1,void 0,Va)})),void 0)],!1)))),ot=Gt(Gt(Gt([],ot.slice(0,aa),!0),[qn],!1),ot.slice(aa+1),!0)),!e.find(ot,function(Va){return Va!==qn&&e.nodeHasName(Va,Xa)})){Fn=[];var pi=!e.some(ja.statements,function(Va){return e.hasSyntacticModifier(Va,1)||e.isExportAssignment(Va)||e.isExportDeclaration(Va)});e.forEach(ja.statements,function(Va){Ls(Va,pi?1:0)}),ot=Gt(Gt([],e.filter(ot,function(Va){return Va!==qn&&Va!==ln}),!0),Fn,!0)}}return ot}function qa(ot){var ln=e.filter(ot,function(Ma){return e.isExportDeclaration(Ma)&&!Ma.moduleSpecifier&&!!Ma.exportClause&&e.isNamedExports(Ma.exportClause)});if(e.length(ln)>1){var aa=e.filter(ot,function(Ma){return!e.isExportDeclaration(Ma)||!!Ma.moduleSpecifier||!Ma.exportClause});ot=Gt(Gt([],aa,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(ln,function(Ma){return e.cast(Ma.exportClause,e.isNamedExports).elements})),void 0)],!1)}var qn=e.filter(ot,function(Ma){return e.isExportDeclaration(Ma)&&!!Ma.moduleSpecifier&&!!Ma.exportClause&&e.isNamedExports(Ma.exportClause)});if(e.length(qn)>1){var ra=e.group(qn,function(Ma){return e.isStringLiteral(Ma.moduleSpecifier)?">"+Ma.moduleSpecifier.text:">"});if(ra.length!==qn.length)for(var Xa=function(Ma){Ma.length>1&&(ot=Gt(Gt([],e.filter(ot,function(qi){return Ma.indexOf(qi)===-1}),!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(Ma,function(qi){return e.cast(qi.exportClause,e.isNamedExports).elements})),Ma[0].moduleSpecifier)],!1))},ja=0,pi=ra;ja<pi.length;ja++){var Va=pi[ja];Xa(Va)}}return ot}function Vi(ot){var ln=e.findIndex(ot,function(ra){return e.isExportDeclaration(ra)&&!ra.moduleSpecifier&&!ra.assertClause&&!!ra.exportClause&&e.isNamedExports(ra.exportClause)});if(ln>=0){var aa=ot[ln],qn=e.mapDefined(aa.exportClause.elements,function(ra){if(!ra.propertyName){var Xa=e.indicesOf(ot),ja=e.filter(Xa,function(qi){return e.nodeHasName(ot[qi],ra.name)});if(e.length(ja)&&e.every(ja,function(qi){return ho(ot[qi])})){for(var pi=0,Va=ja;pi<Va.length;pi++){var Ma=Va[pi];ot[Ma]=Vo(ot[Ma])}return}}return ra});e.length(qn)?ot[ln]=e.factory.updateExportDeclaration(aa,aa.decorators,aa.modifiers,aa.isTypeOnly,e.factory.updateNamedExports(aa.exportClause,qn),aa.moduleSpecifier,aa.assertClause):e.orderedRemoveItemAt(ot,ln)}return ot}function Qa(ot){return ot=_a(ot),ot=qa(ot),ot=Vi(ot),En&&(e.isSourceFile(En)&&e.isExternalOrCommonJsModule(En)||e.isModuleDeclaration(En))&&(!e.some(ot,e.isExternalModuleIndicator)||!e.hasScopeMarker(ot)&&e.some(ot,e.needsScopeMarker))&&ot.push(e.createEmptyExports(e.factory)),ot}function ho(ot){return e.isEnumDeclaration(ot)||e.isVariableStatement(ot)||e.isFunctionDeclaration(ot)||e.isClassDeclaration(ot)||e.isModuleDeclaration(ot)&&!e.isExternalModuleAugmentation(ot)&&!e.isGlobalScopeAugmentation(ot)||e.isInterfaceDeclaration(ot)||jh(ot)}function Vo(ot){var ln=(e.getEffectiveModifierFlags(ot)|1)&-3;return e.factory.updateModifiers(ot,ln)}function ao(ot){var ln=e.getEffectiveModifierFlags(ot)&-2;return e.factory.updateModifiers(ot,ln)}function Ds(ot,ln,aa){ln||it.push(new e.Map),ot.forEach(function(qn){ss(qn,!1,!!aa)}),ln||(it[it.length-1].forEach(function(qn){ss(qn,!0,!!aa)}),it.pop())}function ss(ot,ln,aa){var qn=Ga(ot);if(!Xr.has(y(qn))){Xr.add(y(qn));var ra=!ln;if(ra||e.length(ot.declarations)&&e.some(ot.declarations,function(pi){return!!e.findAncestor(pi,function(Va){return Va===En})})){var Xa=Tr;Tr=_n(Tr);var ja=Xs(ot,ln,aa);return Tr.reportedDiagnostic&&(Pt.reportedDiagnostic=Tr.reportedDiagnostic),Tr=Xa,ja}}}function Xs(ot,ln,aa){var qn,ra,Xa=e.unescapeLeadingUnderscores(ot.escapedName),ja=ot.escapedName==="default";if(ln&&!(Tr.flags&131072)&&e.isStringANonContextualKeyword(Xa)&&!ja){Tr.encounteredError=!0;return}var pi=ja&&!!(ot.flags&-113||ot.flags&16&&e.length(Yi(An(ot))))&&!(ot.flags&2097152),Va=!pi&&!ln&&e.isStringANonContextualKeyword(Xa)&&!ja;(pi||Va)&&(ln=!0);var Ma=(ln?0:1)|(ja&&!pi?512:0),qi=ot.flags&1536&&ot.flags&7&&ot.escapedName!=="export=",yo=qi&&ni(An(ot),ot);if((ot.flags&8208||yo)&&uo(An(ot),ot,$o(ot,Xa),Ma),ot.flags&524288&&Ad(ot,Xa,Ma),ot.flags&7&&ot.escapedName!=="export="&&!(ot.flags&4194304)&&!(ot.flags&32)&&!yo)if(aa){var ns=zt(ot);ns&&(Va=!1,pi=!1)}else{var Oo=An(ot),Ao=$o(ot,Xa);if(!(ot.flags&16)&&ni(Oo,ot))uo(Oo,ot,Ao,Ma);else{var Os=ot.flags&2?bh(ot)?2:1:void 0,hl=pi||!(ot.flags&4)?Ao:eo(Ao,ot),As=ot.declarations&&e.find(ot.declarations,function(xm){return e.isVariableDeclaration(xm)});As&&e.isVariableDeclarationList(As.parent)&&As.parent.declarations.length===1&&(As=As.parent.parent);var Cc=(qn=ot.declarations)===null||qn===void 0?void 0:qn.find(e.isPropertyAccessExpression);if(Cc&&e.isBinaryExpression(Cc.parent)&&e.isIdentifier(Cc.parent.right)&&(!((ra=Oo.symbol)===null||ra===void 0)&&ra.valueDeclaration)&&e.isSourceFile(Oo.symbol.valueDeclaration)){var z_=Ao===Cc.parent.right.escapedText?void 0:Cc.parent.right;Ls(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,z_,Ao)])),0),Tr.tracker.trackSymbol(Oo.symbol,Tr.enclosingDeclaration,111551)}else{var D_=e.setTextRange(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(hl,void 0,Ba(Tr,Oo,ot,En,bs,hn))],Os)),As);Ls(D_,hl!==Ao?Ma&-2:Ma),hl!==Ao&&!ln&&(Ls(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,hl,Ao)])),0),Va=!1,pi=!1)}}}if(ot.flags&384&&qo(ot,Xa,Ma),ot.flags&32&&(ot.flags&4&&ot.valueDeclaration&&e.isBinaryExpression(ot.valueDeclaration.parent)&&e.isClassExpression(ot.valueDeclaration.parent.right)?Gn(ot,$o(ot,Xa),Ma):$t(ot,$o(ot,Xa),Ma)),(ot.flags&1536&&(!qi||Pa(ot))||yo)&&Ri(ot,Xa,Ma),ot.flags&64&&!(ot.flags&32)&&Av(ot,Xa,Ma),ot.flags&2097152&&Gn(ot,$o(ot,Xa),Ma),ot.flags&4&&ot.escapedName==="export="&&zt(ot),ot.flags&8388608&&ot.declarations)for(var Cd=0,Hp=ot.declarations;Cd<Hp.length;Cd++){var Jp=Hp[Cd],xd=ws(Jp,Jp.moduleSpecifier);xd&&Ls(e.factory.createExportDeclaration(void 0,void 0,!1,void 0,e.factory.createStringLiteral(Nn(xd,Tr))),0)}pi?Ls(e.factory.createExportAssignment(void 0,void 0,!1,e.factory.createIdentifier($o(ot,Xa))),0):Va&&Ls(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,$o(ot,Xa),Xa)])),0)}function bs(ot){if(!e.some(ot.declarations,e.isParameterDeclaration)){e.Debug.assertIsDefined(it[it.length-1]),eo(e.unescapeLeadingUnderscores(ot.escapedName),ot);var ln=!!(ot.flags&2097152)&&!e.some(ot.declarations,function(aa){return!!e.findAncestor(aa,e.isExportDeclaration)||e.isNamespaceExport(aa)||e.isImportEqualsDeclaration(aa)&&!e.isExternalModuleReference(aa.moduleReference)});it[ln?0:it.length-1].set(y(ot),ot)}}function Yf(ot){return e.isSourceFile(ot)&&(e.isExternalOrCommonJsModule(ot)||e.isJsonSourceFile(ot))||e.isAmbientModule(ot)&&!e.isGlobalScopeAugmentation(ot)}function Ls(ot,ln){if(e.canHaveModifiers(ot)){var aa=0,qn=Tr.enclosingDeclaration&&(e.isJSDocTypeAlias(Tr.enclosingDeclaration)?e.getSourceFileOfNode(Tr.enclosingDeclaration):Tr.enclosingDeclaration);ln&1&&qn&&(Yf(qn)||e.isModuleDeclaration(qn))&&ho(ot)&&(aa|=1),Bt&&!(aa&1)&&(!qn||!(qn.flags&8388608))&&(e.isEnumDeclaration(ot)||e.isVariableStatement(ot)||e.isFunctionDeclaration(ot)||e.isClassDeclaration(ot)||e.isModuleDeclaration(ot))&&(aa|=2),ln&512&&(e.isClassDeclaration(ot)||e.isInterfaceDeclaration(ot)||e.isFunctionDeclaration(ot))&&(aa|=512),aa&&(ot=e.factory.updateModifiers(ot,aa|e.getEffectiveModifierFlags(ot)))}Fn.push(ot)}function Ad(ot,ln,aa){var qn,ra=Sa(ot),Xa=Ja(ot).typeParameters,ja=e.map(Xa,function(ns){return ar(ns,Tr)}),pi=(qn=ot.declarations)===null||qn===void 0?void 0:qn.find(e.isJSDocTypeAlias),Va=e.getTextOfJSDocComment(pi?pi.comment||pi.parent.comment:void 0),Ma=Tr.flags;Tr.flags|=8388608;var qi=Tr.enclosingDeclaration;Tr.enclosingDeclaration=pi;var yo=pi&&pi.typeExpression&&e.isJSDocTypeExpression(pi.typeExpression)&&jn(Tr,pi.typeExpression.type,bs,hn)||o(ra,Tr);Ls(e.setSyntheticLeadingComments(e.factory.createTypeAliasDeclaration(void 0,void 0,$o(ot,ln),ja,yo),Va?[{kind:3,text:`*
  231. * `+Va.replace(/\n/g,`
  232. * `)+`
  233. `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),aa),Tr.flags=Ma,Tr.enclosingDeclaration=qi}function Av(ot,ln,aa){var qn=Hn(ot),ra=mu(ot),Xa=e.map(ra,function(Oo){return ar(Oo,Tr)}),ja=xl(qn),pi=e.length(ja)?To(ja):void 0,Va=e.flatMap(Yi(qn),function(Oo){return ai(Oo,pi)}),Ma=so(0,qn,pi,173),qi=so(1,qn,pi,174),yo=Ui(qn,pi),ns=e.length(ja)?[e.factory.createHeritageClause(94,e.mapDefined(ja,function(Oo){return ls(Oo,111551)}))]:void 0;Ls(e.factory.createInterfaceDeclaration(void 0,void 0,$o(ot,ln),Xa,ns,Gt(Gt(Gt(Gt([],yo,!0),qi,!0),Ma,!0),Va,!0)),aa)}function Cv(ot){return ot.exports?e.filter(e.arrayFrom(ot.exports.values()),st):[]}function Pa(ot){return e.every(Cv(ot),function(ln){return!(wo(ln).flags&111551)})}function Ri(ot,ln,aa){var qn=Cv(ot),ra=e.arrayToMultiMap(qn,function(qi){return qi.parent&&qi.parent===ot?"real":"merged"}),Xa=ra.get("real")||e.emptyArray,ja=ra.get("merged")||e.emptyArray;if(e.length(Xa)){var pi=$o(ot,ln);Kr(Xa,pi,aa,!!(ot.flags&67108880))}if(e.length(ja)){var Va=e.getSourceFileOfNode(Tr.enclosingDeclaration),pi=$o(ot,ln),Ma=e.factory.createModuleBlock([e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.mapDefined(e.filter(ja,function(yo){return yo.escapedName!=="export="}),function(yo){var ns,Oo,Ao=e.unescapeLeadingUnderscores(yo.escapedName),Os=$o(yo,Ao),hl=yo.declarations&&ec(yo);if(Va&&(hl?Va!==e.getSourceFileOfNode(hl):!e.some(yo.declarations,function(z_){return e.getSourceFileOfNode(z_)===Va}))){(Oo=(ns=Tr.tracker)===null||ns===void 0?void 0:ns.reportNonlocalAugmentation)===null||Oo===void 0||Oo.call(ns,Va,ot,yo);return}var As=hl&&mo(hl,!0);bs(As||yo);var Cc=As?$o(As,e.unescapeLeadingUnderscores(As.escapedName)):Os;return e.factory.createExportSpecifier(!1,Ao===Cc?void 0:Cc,Ao)})))]);Ls(e.factory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(pi),Ma,16),0)}}function qo(ot,ln,aa){Ls(e.factory.createEnumDeclaration(void 0,e.factory.createModifiersFromModifierFlags($1(ot)?2048:0),$o(ot,ln),e.map(e.filter(Yi(An(ot)),function(qn){return!!(qn.flags&8)}),function(qn){var ra=qn.declarations&&qn.declarations[0]&&e.isEnumMember(qn.declarations[0])?AT(qn.declarations[0]):void 0;return e.factory.createEnumMember(e.unescapeLeadingUnderscores(qn.escapedName),ra===void 0?void 0:typeof ra=="string"?e.factory.createStringLiteral(ra):e.factory.createNumericLiteral(ra))})),aa)}function uo(ot,ln,aa,qn){for(var ra=Ni(ot,0),Xa=0,ja=ra;Xa<ja.length;Xa++){var pi=ja[Xa],Va=Ue(pi,255,Tr,{name:e.factory.createIdentifier(aa),privateSymbolVisitor:bs,bundledImports:hn});Ls(e.setTextRange(Va,Bs(pi)),qn)}if(!(ln.flags&1536&&ln.exports&&ln.exports.size)){var Ma=e.filter(Yi(ot),st);Kr(Ma,aa,qn,!0)}}function Bs(ot){if(ot.declaration&&ot.declaration.parent){if(e.isBinaryExpression(ot.declaration.parent)&&e.getAssignmentDeclarationKind(ot.declaration.parent)===5)return ot.declaration.parent;if(e.isVariableDeclaration(ot.declaration.parent)&&ot.declaration.parent.parent)return ot.declaration.parent.parent}return ot.declaration}function Kr(ot,ln,aa,qn){if(e.length(ot)){var ra=e.arrayToMultiMap(ot,function(Ao){return!e.length(Ao.declarations)||e.some(Ao.declarations,function(Os){return e.getSourceFileOfNode(Os)===e.getSourceFileOfNode(Tr.enclosingDeclaration)})?"local":"remote"}),Xa=ra.get("local")||e.emptyArray,ja=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(ln),e.factory.createModuleBlock([]),16);e.setParent(ja,En),ja.locals=e.createSymbolTable(ot),ja.symbol=ot[0].parent;var pi=Fn;Fn=[];var Va=Bt;Bt=!1;var Ma=Rn(Rn({},Tr),{enclosingDeclaration:ja}),qi=Tr;Tr=Ma,Ds(e.createSymbolTable(Xa),qn,!0),Tr=qi,Bt=Va;var yo=Fn;Fn=pi;var ns=e.map(yo,function(Ao){return e.isExportAssignment(Ao)&&!Ao.isExportEquals&&e.isIdentifier(Ao.expression)?e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,Ao.expression,e.factory.createIdentifier("default"))])):Ao}),Oo=e.every(ns,function(Ao){return e.hasSyntacticModifier(Ao,1)})?e.map(ns,ao):ns;ja=e.factory.updateModuleDeclaration(ja,ja.decorators,ja.modifiers,ja.name,e.factory.createModuleBlock(Oo)),Ls(ja,aa)}}function st(ot){return!!(ot.flags&2887656)||!(ot.flags&4194304||ot.escapedName==="prototype"||ot.valueDeclaration&&e.isStatic(ot.valueDeclaration)&&e.isClassLike(ot.valueDeclaration.parent))}function kt(ot){var ln=e.mapDefined(ot,function(aa){var qn,ra=Tr.enclosingDeclaration;Tr.enclosingDeclaration=aa;var Xa=aa.expression;if(e.isEntityNameExpression(Xa)){if(e.isIdentifier(Xa)&&e.idText(Xa)==="")return pi(void 0);var ja=void 0;if(qn=Pi(Xa,Tr,bs),ja=qn.introducesError,Xa=qn.node,ja)return pi(void 0)}return pi(e.factory.createExpressionWithTypeArguments(Xa,e.map(aa.typeArguments,function(Va){return jn(Tr,Va,bs,hn)||o(Da(Va),Tr)})));function pi(Va){return Tr.enclosingDeclaration=ra,Va}});if(ln.length===ot.length)return ln}function $t(ot,ln,aa){var qn,ra,Xa=(qn=ot.declarations)===null||qn===void 0?void 0:qn.find(e.isClassLike),ja=Tr.enclosingDeclaration;Tr.enclosingDeclaration=Xa||ja;var pi=mu(ot),Va=e.map(pi,function(Jl){return ar(Jl,Tr)}),Ma=Hn(ot),qi=xl(Ma),yo=Xa&&e.getEffectiveImplementsTypeNodes(Xa),ns=yo&&kt(yo)||e.mapDefined(Fv(Ma),Xo),Oo=An(ot),Ao=!!(!((ra=Oo.symbol)===null||ra===void 0)&&ra.valueDeclaration)&&e.isClassLike(Oo.symbol.valueDeclaration),Os=Ao?Ju(Oo):Ze,hl=Gt(Gt([],e.length(qi)?[e.factory.createHeritageClause(94,e.map(qi,function(Jl){return ps(Jl,Os,ln)}))]:[],!0),e.length(ns)?[e.factory.createHeritageClause(117,ns)]:[],!0),As=h3(Ma,qi,Yi(Ma)),Cc=e.filter(As,function(Jl){var vp=Jl.valueDeclaration;return!!vp&&!(e.isNamedDeclaration(vp)&&e.isPrivateIdentifier(vp.name))}),z_=e.some(As,function(Jl){var vp=Jl.valueDeclaration;return!!vp&&e.isNamedDeclaration(vp)&&e.isPrivateIdentifier(vp.name)}),D_=z_?[e.factory.createPropertyDeclaration(void 0,void 0,e.factory.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:e.emptyArray,Cd=e.flatMap(Cc,function(Jl){return nn(Jl,!1,qi[0])}),Hp=e.flatMap(e.filter(Yi(Oo),function(Jl){return!(Jl.flags&4194304)&&Jl.escapedName!=="prototype"&&!st(Jl)}),function(Jl){return nn(Jl,!0,Os)}),Jp=!Ao&&!!ot.valueDeclaration&&e.isInJSFile(ot.valueDeclaration)&&!e.some(Ni(Oo,1)),xd=Jp?[e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(8),[],void 0)]:so(1,Oo,Os,170),xm=Ui(Ma,qi[0]);Tr.enclosingDeclaration=ja,Ls(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,ln,Va,hl,Gt(Gt(Gt(Gt(Gt([],xm,!0),Hp,!0),xd,!0),Cd,!0),D_,!0)),ot.declarations&&e.filter(ot.declarations,function(Jl){return e.isClassDeclaration(Jl)||e.isClassExpression(Jl)})[0]),aa)}function ea(ot){return e.firstDefined(ot,function(ln){if(e.isImportSpecifier(ln)||e.isExportSpecifier(ln))return e.idText(ln.propertyName||ln.name);if(e.isBinaryExpression(ln)||e.isExportAssignment(ln)){var aa=e.isExportAssignment(ln)?ln.expression:ln.right;if(e.isPropertyAccessExpression(aa))return e.idText(aa.name)}if(Ud(ln)){var qn=e.getNameOfDeclaration(ln);if(qn&&e.isIdentifier(qn))return e.idText(qn)}})}function Gn(ot,ln,aa){var qn,ra,Xa,ja,pi,Va=ec(ot);if(!Va)return e.Debug.fail();var Ma=Ga(mo(Va,!0));if(Ma){var qi=e.isShorthandAmbientModuleSymbol(Ma)&&ea(ot.declarations)||e.unescapeLeadingUnderscores(Ma.escapedName);qi==="export="&&(e.getESModuleInterop(Xe)||Xe.allowSyntheticDefaultImports)&&(qi="default");var yo=$o(Ma,qi);switch(bs(Ma),Va.kind){case 202:if(((ra=(qn=Va.parent)===null||qn===void 0?void 0:qn.parent)===null||ra===void 0?void 0:ra.kind)===253){var ns=Nn(Ma.parent||Ma,Tr),Oo=Va.propertyName;Ls(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,Oo&&e.isIdentifier(Oo)?e.factory.createIdentifier(e.idText(Oo)):void 0,e.factory.createIdentifier(ln))])),e.factory.createStringLiteral(ns),void 0),0);break}e.Debug.failBadSyntaxKind(((Xa=Va.parent)===null||Xa===void 0?void 0:Xa.parent)||Va,"Unhandled binding element grandparent kind in declaration serialization");break;case 295:((pi=(ja=Va.parent)===null||ja===void 0?void 0:ja.parent)===null||pi===void 0?void 0:pi.kind)===220&&Tn(e.unescapeLeadingUnderscores(ot.escapedName),yo);break;case 253:if(e.isPropertyAccessExpression(Va.initializer)){var Ao=Va.initializer,Os=e.factory.createUniqueName(ln),hl=Nn(Ma.parent||Ma,Tr);Ls(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,Os,e.factory.createExternalModuleReference(e.factory.createStringLiteral(hl))),0),Ls(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(ln),e.factory.createQualifiedName(Os,Ao.name)),aa);break}case 264:if(Ma.escapedName==="export="&&e.some(Ma.declarations,e.isJsonSourceFile)){zt(ot);break}var As=!(Ma.flags&512)&&!e.isVariableDeclaration(Va);Ls(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(ln),As?Aa(Ma,Tr,67108863,!1):e.factory.createExternalModuleReference(e.factory.createStringLiteral(Nn(Ma,Tr)))),As?aa:0);break;case 263:Ls(e.factory.createNamespaceExportDeclaration(e.idText(Va.name)),0);break;case 266:Ls(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,e.factory.createIdentifier(ln),void 0),e.factory.createStringLiteral(Nn(Ma.parent||Ma,Tr)),void 0),0);break;case 267:Ls(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(ln))),e.factory.createStringLiteral(Nn(Ma,Tr)),void 0),0);break;case 273:Ls(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamespaceExport(e.factory.createIdentifier(ln)),e.factory.createStringLiteral(Nn(Ma,Tr))),0);break;case 269:Ls(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,ln!==qi?e.factory.createIdentifier(qi):void 0,e.factory.createIdentifier(ln))])),e.factory.createStringLiteral(Nn(Ma.parent||Ma,Tr)),void 0),0);break;case 274:var Cc=Va.parent.parent.moduleSpecifier;Tn(e.unescapeLeadingUnderscores(ot.escapedName),Cc?qi:yo,Cc&&e.isStringLiteralLike(Cc)?e.factory.createStringLiteral(Cc.text):void 0);break;case 270:zt(ot);break;case 220:case 205:case 206:ot.escapedName==="default"||ot.escapedName==="export="?zt(ot):Tn(ln,yo);break;default:return e.Debug.failBadSyntaxKind(Va,"Unhandled alias declaration kind in symbol serializer!")}}}function Tn(ot,ln,aa){Ls(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,ot!==ln?ln:void 0,ot)]),aa),0)}function zt(ot){if(ot.flags&4194304)return!1;var ln=e.unescapeLeadingUnderscores(ot.escapedName),aa=ln==="export=",qn=ln==="default",ra=aa||qn,Xa=ot.declarations&&ec(ot),ja=Xa&&mo(Xa,!0);if(ja&&e.length(ja.declarations)&&e.some(ja.declarations,function(Ao){return e.getSourceFileOfNode(Ao)===e.getSourceFileOfNode(En)})){var pi=Xa&&(e.isExportAssignment(Xa)||e.isBinaryExpression(Xa)?e.getExportAssignmentExpression(Xa):e.getPropertyAssignmentAliasLikeExpression(Xa)),Va=pi&&e.isEntityNameExpression(pi)?k3(pi):void 0,Ma=Va&&rs(Va,67108863,!0,!0,En);(Ma||ja)&&bs(Ma||ja);var qi=Tr.tracker.trackSymbol;if(Tr.tracker.trackSymbol=function(){return!1},ra)Fn.push(e.factory.createExportAssignment(void 0,void 0,aa,Li(ja,Tr,67108863)));else if(Va===pi&&Va)Tn(ln,e.idText(Va));else if(pi&&e.isClassExpression(pi))Tn(ln,$o(ja,e.symbolName(ja)));else{var yo=eo(ln,ot);Ls(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(yo),Aa(ja,Tr,67108863,!1)),0),Tn(ln,yo)}return Tr.tracker.trackSymbol=qi,!0}else{var yo=eo(ln,ot),ns=wl(An(Ga(ot)));if(ni(ns,ot))uo(ns,ot,yo,ra?0:1);else{var Oo=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(yo,void 0,Ba(Tr,ns,ot,En,bs,hn))],2));Ls(Oo,ja&&ja.flags&4&&ja.escapedName==="export="?2:ln===yo?1:0)}return ra?(Fn.push(e.factory.createExportAssignment(void 0,void 0,aa,e.factory.createIdentifier(yo))),!0):ln!==yo?(Tn(ln,yo),!0):!1}}function ni(ot,ln){var aa=e.getSourceFileOfNode(Tr.enclosingDeclaration);return e.getObjectFlags(ot)&48&&!e.length(Ps(ot))&&!$d(ot)&&!!(e.length(e.filter(Yi(ot),st))||e.length(Ni(ot,0)))&&!e.length(Ni(ot,1))&&!Ca(ln,En)&&!(ot.symbol&&e.some(ot.symbol.declarations,function(qn){return e.getSourceFileOfNode(qn)!==aa}))&&!e.some(Yi(ot),function(qn){return Ip(qn.escapedName)})&&!e.some(Yi(ot),function(qn){return e.some(qn.declarations,function(ra){return e.getSourceFileOfNode(ra)!==aa})})&&e.every(Yi(ot),function(qn){return e.isIdentifierText(e.symbolName(qn),De)})}function vi(ot,ln,aa){return function(ra,Xa,ja){var pi,Va,Ma,qi,yo,ns=e.getDeclarationModifierFlagsFromSymbol(ra),Oo=!!(ns&8);if(Xa&&ra.flags&2887656)return[];if(ra.flags&4194304||ja&&Ii(ja,ra.escapedName)&&Iu(Ii(ja,ra.escapedName))===Iu(ra)&&(ra.flags&16777216)===(Ii(ja,ra.escapedName).flags&16777216)&&jf(An(ra),ia(ja,ra.escapedName)))return[];var Ao=ns&-257|(Xa?32:0),Os=xo(ra,Tr),hl=(pi=ra.declarations)===null||pi===void 0?void 0:pi.find(e.or(e.isPropertyDeclaration,e.isAccessor,e.isVariableDeclaration,e.isPropertySignature,e.isBinaryExpression,e.isPropertyAccessExpression));if(ra.flags&98304&&aa){var As=[];if(ra.flags&65536&&As.push(e.setTextRange(e.factory.createSetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Ao),Os,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"arg",void 0,Oo?void 0:Ba(Tr,An(ra),ra,En,bs,hn))],void 0),((Va=ra.declarations)===null||Va===void 0?void 0:Va.find(e.isSetAccessor))||hl)),ra.flags&32768){var Cc=ns&8;As.push(e.setTextRange(e.factory.createGetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Ao),Os,[],Cc?void 0:Ba(Tr,An(ra),ra,En,bs,hn),void 0),((Ma=ra.declarations)===null||Ma===void 0?void 0:Ma.find(e.isGetAccessor))||hl))}return As}else if(ra.flags&98311)return e.setTextRange(ot(void 0,e.factory.createModifiersFromModifierFlags((Iu(ra)?64:0)|Ao),Os,ra.flags&16777216?e.factory.createToken(57):void 0,Oo?void 0:Ba(Tr,An(ra),ra,En,bs,hn),void 0),((qi=ra.declarations)===null||qi===void 0?void 0:qi.find(e.or(e.isPropertyDeclaration,e.isVariableDeclaration)))||hl);if(ra.flags&8208){var z_=An(ra),D_=Ni(z_,0);if(Ao&8)return e.setTextRange(ot(void 0,e.factory.createModifiersFromModifierFlags((Iu(ra)?64:0)|Ao),Os,ra.flags&16777216?e.factory.createToken(57):void 0,void 0,void 0),((yo=ra.declarations)===null||yo===void 0?void 0:yo.find(e.isFunctionLikeDeclaration))||D_[0]&&D_[0].declaration||ra.declarations&&ra.declarations[0]);for(var Cd=[],Hp=0,Jp=D_;Hp<Jp.length;Hp++){var xd=Jp[Hp],xm=Ue(xd,ln,Tr,{name:Os,questionToken:ra.flags&16777216?e.factory.createToken(57):void 0,modifiers:Ao?e.factory.createModifiersFromModifierFlags(Ao):void 0}),Jl=xd.declaration&&e.isPrototypePropertyAssignment(xd.declaration.parent)?xd.declaration.parent:xd.declaration;Cd.push(e.setTextRange(xm,Jl))}return Cd}return e.Debug.fail("Unhandled class member kind! ".concat(ra.__debugFlags||ra.flags))}}function ai(ot,ln){return Vn(ot,!1,ln)}function so(ot,ln,aa,qn){var ra=Ni(ln,ot);if(ot===1){if(!aa&&e.every(ra,function(As){return e.length(As.parameters)===0}))return[];if(aa){var Xa=Ni(aa,1);if(!e.length(Xa)&&e.every(ra,function(As){return e.length(As.parameters)===0}))return[];if(Xa.length===ra.length){for(var ja=!1,pi=0;pi<Xa.length;pi++)if(!_h(ra[pi],Xa[pi],!1,!1,!0,$g)){ja=!0;break}if(!ja)return[]}}for(var Va=0,Ma=0,qi=ra;Ma<qi.length;Ma++){var yo=qi[Ma];yo.declaration&&(Va|=e.getSelectedEffectiveModifierFlags(yo.declaration,24))}if(Va)return[e.setTextRange(e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Va),[],void 0),ra[0].declaration)]}for(var ns=[],Oo=0,Ao=ra;Oo<Ao.length;Oo++){var Os=Ao[Oo],hl=Ue(Os,qn,Tr);ns.push(e.setTextRange(hl,Os.declaration))}return ns}function Ui(ot,ln){for(var aa=[],qn=0,ra=Ps(ot);qn<ra.length;qn++){var Xa=ra[qn];if(ln){var ja=oc(ln,Xa.keyType);if(ja&&jf(Xa.type,ja.type))continue}aa.push(we(Xa,Tr,void 0))}return aa}function ps(ot,ln,aa){var qn=ls(ot,111551);if(qn)return qn;var ra=eo("".concat(aa,"_base")),Xa=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(ra,void 0,o(ln,Tr))],2));return Ls(Xa,0),e.factory.createExpressionWithTypeArguments(e.factory.createIdentifier(ra),void 0)}function ls(ot,ln){var aa,qn;if(ot.target&&bc(ot.target.symbol,En,ln)?(aa=e.map(vo(ot),function(ra){return o(ra,Tr)}),qn=Li(ot.target.symbol,Tr,788968)):ot.symbol&&bc(ot.symbol,En,ln)&&(qn=Li(ot.symbol,Tr,788968)),qn)return e.factory.createExpressionWithTypeArguments(qn,aa)}function Xo(ot){var ln=ls(ot,788968);if(ln)return ln;if(ot.symbol)return e.factory.createExpressionWithTypeArguments(Li(ot.symbol,Tr,788968),void 0)}function eo(ot,ln){var aa,qn,ra=ln?y(ln):void 0;if(ra&&Tr.remappedSymbolNames.has(ra))return Tr.remappedSymbolNames.get(ra);ln&&(ot=Ko(ln,ot));for(var Xa=0,ja=ot;!((aa=Tr.usedSymbolNames)===null||aa===void 0)&&aa.has(ot);)Xa++,ot="".concat(ja,"_").concat(Xa);return(qn=Tr.usedSymbolNames)===null||qn===void 0||qn.add(ot),ra&&Tr.remappedSymbolNames.set(ra,ot),ot}function Ko(ot,ln){if(ln==="default"||ln==="__class"||ln==="__function"){var aa=Tr.flags;Tr.flags|=16777216;var qn=Fc(ot,Tr);Tr.flags=aa,ln=qn.length>0&&e.isSingleOrDoubleQuote(qn.charCodeAt(0))?e.stripQuotes(qn):qn}return ln==="default"?ln="_default":ln==="export="&&(ln="_exports"),ln=e.isIdentifierText(ln,De)&&!e.isStringANonContextualKeyword(ln)?ln:"_"+ln.replace(/[^a-zA-Z0-9]/g,"_"),ln}function $o(ot,ln){var aa=y(ot);return Tr.remappedSymbolNames.has(aa)?Tr.remappedSymbolNames.get(aa):(ln=Ko(ot,ln),Tr.remappedSymbolNames.set(aa,ln),ln)}}}function Yc(r,t,i,o){return i===void 0&&(i=16384),o?s(o).getText():e.usingSingleLineStringWriter(s);function s(c){var L=e.factory.createTypePredicateNode(r.kind===2||r.kind===3?e.factory.createToken(128):void 0,r.kind===1||r.kind===3?e.factory.createIdentifier(r.parameterName):e.factory.createThisTypeNode(),r.type&&Sr.typeToTypeNode(r.type,t,Pc(i)|70221824|512)),G=e.createPrinter({removeComments:!0}),ce=t&&e.getSourceFileOfNode(t);return G.writeNode(4,L,ce,c),c}}function Lp(r){for(var t=[],i=0,o=0;o<r.length;o++){var s=r[o];if(i|=s.flags,!(s.flags&98304)){if(s.flags&1536){var c=s.flags&512?Jn:Zs(s);if(c.flags&1048576){var L=c.types.length;if(o+L<=r.length&&kl(r[o+L-1])===kl(c.types[L-1])){t.push(c),o+=L-1;continue}}}t.push(s)}}return i&65536&&t.push(ut),i&32768&&t.push(Nr),t||r}function pd(r){return r===8?"private":r===16?"protected":"public"}function Ap(r){if(r.symbol&&r.symbol.flags&2048&&r.symbol.declarations){var t=e.walkUpParenthesizedTypes(r.symbol.declarations[0].parent);if(t.kind===258)return wn(t)}}function Ul(r){return r&&r.parent&&r.parent.kind===261&&e.isExternalModuleAugmentation(r.parent.parent)}function wf(r){return r.kind===303||e.isAmbientModule(r)}function _d(r,t){var i=Ja(r).nameType;if(i){if(i.flags&384){var o=""+i.value;return!e.isIdentifierText(o,e.getEmitScriptTarget(Xe))&&!zf(o)?'"'.concat(e.escapeString(o,34),'"'):zf(o)&&e.startsWith(o,"-")?"[".concat(o,"]"):o}if(i.flags&8192)return"[".concat(Fc(i.symbol,t),"]")}}function Fc(r,t){if(t&&r.escapedName==="default"&&!(t.flags&16384)&&(!(t.flags&16777216)||!r.declarations||t.enclosingDeclaration&&e.findAncestor(r.declarations[0],wf)!==e.findAncestor(t.enclosingDeclaration,wf)))return"default";if(r.declarations&&r.declarations.length){var i=e.firstDefined(r.declarations,function(G){return e.getNameOfDeclaration(G)?G:void 0}),o=i&&e.getNameOfDeclaration(i);if(i&&o){if(e.isCallExpression(i)&&e.isBindableObjectDefinePropertyCall(i))return e.symbolName(r);if(e.isComputedPropertyName(o)&&!(e.getCheckFlags(r)&4096)){var s=Ja(r).nameType;if(s&&s.flags&384){var c=_d(r,t);if(c!==void 0)return c}}return e.declarationNameToString(o)}if(i||(i=r.declarations[0]),i.parent&&i.parent.kind===253)return e.declarationNameToString(i.parent.name);switch(i.kind){case 225:case 212:case 213:return t&&!t.encounteredError&&!(t.flags&131072)&&(t.encounteredError=!0),i.kind===225?"(Anonymous class)":"(Anonymous function)"}}var L=_d(r,t);return L!==void 0?L:e.symbolName(r)}function Qc(r){if(r){var t=Zn(r);return t.isVisible===void 0&&(t.isVisible=!!i()),t.isVisible}return!1;function i(){switch(r.kind){case 336:case 343:case 337:return!!(r.parent&&r.parent.parent&&r.parent.parent.parent&&e.isSourceFile(r.parent.parent.parent));case 202:return Qc(r.parent.parent);case 253:if(e.isBindingPattern(r.name)&&!r.name.elements.length)return!1;case 260:case 256:case 257:case 258:case 255:case 259:case 264:if(e.isExternalModuleAugmentation(r))return!0;var o=fa(r);return!(e.getCombinedModifierFlags(r)&1)&&!(r.kind!==264&&o.kind!==303&&o.flags&8388608)?Oc(o):Qc(o);case 166:case 165:case 171:case 172:case 168:case 167:if(e.hasEffectiveModifier(r,24))return!1;case 170:case 174:case 173:case 175:case 163:case 261:case 178:case 179:case 181:case 177:case 182:case 183:case 186:case 187:case 190:case 196:return Qc(r.parent);case 266:case 267:case 269:return!1;case 162:case 303:case 263:return!0;case 270:return!1;default:return!1}}}function Mf(r,t){var i;r.parent&&r.parent.kind===270?i=Uo(r,r.escapedText,2998271,void 0,r,!1):r.parent.kind===274&&(i=pl(r.parent,2998271));var o,s;return i&&(s=new e.Set,s.add(y(i)),c(i.declarations)),o;function c(L){e.forEach(L,function(G){var ce=mc(G)||G;if(t?Zn(G).isVisible=!0:(o=o||[],e.pushIfUnique(o,ce)),e.isInternalModuleImportEqualsDeclaration(G)){var we=G.moduleReference,Ue=e.getFirstIdentifier(we),Je=Uo(G,Ue.escapedText,901119,void 0,void 0,!1);Je&&s&&e.tryAddToSet(s,y(Je))&&c(Je.declarations)}})}}function E(r,t){var i=Qe(r,t);if(i>=0){for(var o=uc.length,s=i;s<o;s++)cu[s]=!1;return!1}return uc.push(r),cu.push(!0),no.push(t),!0}function Qe(r,t){for(var i=uc.length-1;i>=0;i--){if(nt(uc[i],no[i]))return-1;if(uc[i]===r&&no[i]===t)return i}return-1}function nt(r,t){switch(t){case 0:return!!Ja(r).type;case 5:return!!Zn(r).resolvedEnumType;case 2:return!!Ja(r).declaredType;case 1:return!!r.resolvedBaseConstructorType;case 3:return!!r.resolvedReturnType;case 4:return!!r.immediateBaseConstraint;case 6:return!!r.resolvedTypeArguments;case 7:return!!r.baseTypesResolved}return e.Debug.assertNever(t)}function Ot(){return uc.pop(),no.pop(),cu.pop()}function fa(r){return e.findAncestor(e.getRootDeclaration(r),function(t){switch(t.kind){case 253:case 254:case 269:case 268:case 267:case 266:return!1;default:return!0}}).parent}function Oa(r){var t=po(Ts(r));return t.typeParameters?Uf(t,e.map(t.typeParameters,function(i){return Ze})):t}function ia(r,t){var i=Ii(r,t);return i?An(i):void 0}function ti(r,t){var i;return ia(r,t)||((i=ip(r,t))===null||i===void 0?void 0:i.type)||tr}function Na(r){return r&&(r.flags&1)!==0}function Ua(r){return r===dr||!!(r.flags&1&&r.aliasSymbol)}function Go(r){var t=wn(r);return t&&Ja(t).type||ep(r,!1)}function cl(r,t,i){if(r=rl(r,function(Ue){return!(Ue.flags&98304)}),r.flags&131072)return Qn;if(r.flags&1048576)return ds(r,function(Ue){return cl(Ue,t,i)});var o=ma(e.map(t,lp));if(P_(r)||F_(o)){if(o.flags&131072)return r;var s=zk();return s?Zm(s,[r,o]):dr}for(var c=e.createSymbolTable(),L=0,G=Yi(r);L<G.length;L++){var ce=G[L];!Qi(eg(ce,8576),o)&&!(e.getDeclarationModifierFlagsFromSymbol(ce)&24)&&xy(ce)&&c.set(ce.escapedName,h0(ce,!1))}var we=ts(i,c,e.emptyArray,e.emptyArray,Ps(r));return we.objectFlags|=8388608,we}function os(r){return!!(r.flags&465829888)&&Jo(l(r)||tr,32768)}function is(r){var t=hm(r,os)?ds(r,function(i){return i.flags&465829888?ee(i):i}):r;return Fs(t,524288)}function Vl(r,t){var i=Zc(r);return i?y_(i,t):t}function Zc(r){var t=$c(r);if(t&&t.flowNode){var i=md(r);if(i){var o=e.setTextRange(e.parseNodeFactory.createStringLiteral(i),r),s=e.isLeftHandSideExpression(t)?t:e.parseNodeFactory.createParenthesizedExpression(t),c=e.setTextRange(e.parseNodeFactory.createElementAccessExpression(s,o),r);return e.setParent(o,c),e.setParent(c,r),s!==t&&e.setParent(s,c),c.flowNode=t.flowNode,c}}}function $c(r){var t=r.parent.parent;switch(t.kind){case 202:case 294:return Zc(t);case 203:return Zc(r.parent);case 253:return t.initializer;case 220:return t.right}}function md(r){var t=r.parent;return r.kind===202&&t.kind===200?t_(r.propertyName||r.name):r.kind===294||r.kind===295?t_(r.name):""+t.elements.indexOf(r)}function t_(r){var t=lp(r);return t.flags&384?""+t.value:void 0}function tf(r){var t=r.parent,i=Go(t.parent);if(!i||Na(i))return i;br&&r.flags&8388608&&e.isParameterDeclaration(r)?i=Td(i):br&&t.parent.initializer&&!(mp(_A(t.parent.initializer))&65536)&&(i=Fs(i,524288));var o;if(t.kind===200)if(r.dotDotDotToken){if(i=Eo(i),i.flags&2||!ug(i))return Mr(r,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),dr;for(var s=[],c=0,L=t.elements;c<L.length;c++){var G=L[c];G.dotDotDotToken||s.push(G.propertyName||G.name)}o=cl(i,s,r.symbol)}else{var ce=r.propertyName||r.name,we=lp(ce),Ue=Hl(i,we,32,ce);o=Vl(r,Ue)}else{var Je=Ld(65|(r.dotDotDotToken?0:128),i,Nr,t),ar=t.elements.indexOf(r);if(r.dotDotDotToken)o=Kf(i,ki)?ds(i,function(Gr){return qg(Gr,ar)}):zs(Je);else if(_p(i)){var we=Wf(ar),_r=32|(cg(r)?16:0),Ue=cp(i,we,_r,r.name)||dr;o=Vl(r,Ue)}else o=Je}return r.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(r))?br&&!(lc(Rh(r))&32768)?is(o):o:rT(r,ma([is(o),Rh(r)],2)):o}function Pf(r){var t=e.getJSDocType(r);if(t)return Da(t)}function n_(r){var t=e.skipParentheses(r,!0);return t.kind===104||t.kind===79&&Lu(t)===He}function gd(r){var t=e.skipParentheses(r,!0);return t.kind===203&&t.elements.length===0}function Wl(r,t,i){return t===void 0&&(t=!1),i===void 0&&(i=!0),br&&i?Jf(r,t):r}function ep(r,t){if(e.isVariableDeclaration(r)&&r.parent.parent.kind===242){var i=qu(k1(ui(r.parent.parent.expression)));return i.flags&4456448?$D(i):xt}if(e.isVariableDeclaration(r)&&r.parent.parent.kind===243){var o=r.parent.parent;return Bh(o)||Ze}if(e.isBindingPattern(r.parent))return tf(r);var s=e.isPropertyDeclaration(r)||e.isPropertySignature(r),c=t&&(s&&!!r.questionToken||e.isParameter(r)&&(!!r.questionToken||Xm(r))||JE(r)),L=Ms(r);if(L)return Wl(L,s,c);if((Ke||e.isInJSFile(r))&&e.isVariableDeclaration(r)&&!e.isBindingPattern(r.name)&&!(e.getCombinedModifierFlags(r)&1)&&!(r.flags&8388608)){if(!(e.getCombinedNodeFlags(r)&2)&&(!r.initializer||n_(r.initializer)))return Cr;if(r.initializer&&gd(r.initializer))return ta}if(e.isParameter(r)){var G=r.parent;if(G.kind===172&&l_(G)){var ce=e.getDeclarationOfKind(wn(r.parent),171);if(ce){var we=bu(ce),Ue=OT(G);return Ue&&r===Ue?(e.Debug.assert(!Ue.type),An(we.thisParameter)):_o(we)}}if(e.isInJSFile(r)){var Je=e.getJSDocType(G);if(Je&&e.isFunctionTypeNode(Je)){var ar=bu(Je),_r=G.parameters.indexOf(r);return r.dotDotDotToken?gg(ar,_r):Uc(ar,_r)}}var Gr=r.symbol.escapedName==="this"?RA(G):wA(r);if(Gr)return Wl(Gr,!1,c)}if(e.hasOnlyExpressionInitializer(r)&&r.initializer){if(e.isInJSFile(r)&&!e.isParameter(r)){var Zr=$n(r,wn(r),e.getDeclaredExpandoInitializer(r));if(Zr)return Zr}var Gr=rT(r,Rh(r));return Wl(Gr,s,c)}if(e.isPropertyDeclaration(r)&&(Ke||e.isInJSFile(r)))if(e.hasStaticModifier(r)){var Tt=e.filter(r.parent.members,e.isClassStaticBlockDeclaration),Gr=Tt.length?at(r.symbol,Tt):e.getEffectiveModifierFlags(r)&2?Fy(r.symbol):void 0;return Gr&&Wl(Gr,!0,c)}else{var Et=$u(r.parent),Gr=Et?Ct(r.symbol,Et):e.getEffectiveModifierFlags(r)&2?Fy(r.symbol):void 0;return Gr&&Wl(Gr,!0,c)}if(e.isJsxAttribute(r))return sa;if(e.isBindingPattern(r.name))return xs(r.name,!1,!0)}function a_(r){if(r.valueDeclaration&&e.isBinaryExpression(r.valueDeclaration)){var t=Ja(r);return t.isConstructorDeclaredProperty===void 0&&(t.isConstructorDeclaredProperty=!1,t.isConstructorDeclaredProperty=!!Er(r)&&e.every(r.declarations,function(i){return e.isBinaryExpression(i)&&ob(i)&&(i.left.kind!==206||e.isStringOrNumericLiteralLike(i.left.argumentExpression))&&!wa(void 0,i,r,i)})),t.isConstructorDeclaredProperty}return!1}function xe(r){var t=r.valueDeclaration;return t&&e.isPropertyDeclaration(t)&&!e.getEffectiveTypeAnnotationNode(t)&&!t.initializer&&(Ke||e.isInJSFile(t))}function Er(r){if(r.declarations)for(var t=0,i=r.declarations;t<i.length;t++){var o=i[t],s=e.getThisContainer(o,!1);if(s&&(s.kind===170||ou(s)))return s}}function Fr(r){var t=e.getSourceFileOfNode(r.declarations[0]),i=e.unescapeLeadingUnderscores(r.escapedName),o=r.declarations.every(function(c){return e.isInJSFile(c)&&e.isAccessExpression(c)&&e.isModuleExportsAccessExpression(c.expression)}),s=o?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),i):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),i);return o&&e.setParent(s.expression.expression,s.expression),e.setParent(s.expression,s),e.setParent(s,t),s.flowNode=t.endFlowNode,y_(s,Cr,Nr)}function at(r,t){for(var i=e.startsWith(r.escapedName,"__#")?e.factory.createPrivateIdentifier(r.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(r.escapedName),o=0,s=t;o<s.length;o++){var c=s[o],L=e.factory.createPropertyAccessExpression(e.factory.createThis(),i);e.setParent(L.expression,L),e.setParent(L,c),L.flowNode=c.returnFlowNode;var G=Xt(L,r);if(Ke&&(G===Cr||G===ta)&&Mr(r.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Wa(r),gn(G)),!Kf(G,db))return Tv(G)}}function Ct(r,t){var i=e.startsWith(r.escapedName,"__#")?e.factory.createPrivateIdentifier(r.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(r.escapedName),o=e.factory.createPropertyAccessExpression(e.factory.createThis(),i);e.setParent(o.expression,o),e.setParent(o,t),o.flowNode=t.returnFlowNode;var s=Xt(o,r);return Ke&&(s===Cr||s===ta)&&Mr(r.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Wa(r),gn(s)),Kf(s,db)?void 0:Tv(s)}function Xt(r,t){var i=(t==null?void 0:t.valueDeclaration)&&(!xe(t)||e.getEffectiveModifierFlags(t.valueDeclaration)&2)&&Fy(t)||Nr;return y_(r,Cr,i)}function On(r,t){var i=e.getAssignedExpandoInitializer(r.valueDeclaration);if(i){var o=e.getJSDocTypeTag(i);if(o&&o.typeExpression)return Da(o.typeExpression);var s=r.valueDeclaration&&$n(r.valueDeclaration,r,i);return s||Pp(Ss(i))}var c,L=!1,G=!1;if(a_(r)&&(c=Ct(r,Er(r))),!c){var ce=void 0;if(r.declarations){for(var we=void 0,Ue=0,Je=r.declarations;Ue<Je.length;Ue++){var ar=Je[Ue],_r=e.isBinaryExpression(ar)||e.isCallExpression(ar)?ar:e.isAccessExpression(ar)?e.isBinaryExpression(ar.parent)?ar.parent:ar:void 0;if(_r){var Gr=e.isAccessExpression(_r)?e.getAssignmentDeclarationPropertyAccessKind(_r):e.getAssignmentDeclarationKind(_r);(Gr===4||e.isBinaryExpression(_r)&&ob(_r,Gr))&&(Qo(_r)?L=!0:G=!0),e.isCallExpression(_r)||(we=wa(we,_r,r,ar)),we||(ce||(ce=[])).push(e.isBinaryExpression(_r)||e.isCallExpression(_r)?Ea(r,t,_r,Gr):en)}}c=we}if(!c){if(!e.length(ce))return dr;var Zr=L&&r.declarations?$i(ce,r.declarations):void 0;if(G){var Et=Fy(r);Et&&((Zr||(Zr=[])).push(Et),L=!0)}var Tt=e.some(Zr,function(Vt){return!!(Vt.flags&-98305)})?Zr:ce;c=ma(Tt,2)}}var At=wl(Wl(c,!1,G&&!L));return r.valueDeclaration&&rl(At,function(Vt){return!!(Vt.flags&-98305)})===en?(Fp(r.valueDeclaration,Ze),Ze):At}function $n(r,t,i){var o,s;if(!(!e.isInJSFile(r)||!i||!e.isObjectLiteralExpression(i)||i.properties.length)){for(var c=e.createSymbolTable();e.isBinaryExpression(r)||e.isPropertyAccessExpression(r);){var L=wn(r);!((o=L==null?void 0:L.exports)===null||o===void 0)&&o.size&&dl(c,L.exports),r=e.isBinaryExpression(r)?r.parent:r.parent.parent}var G=wn(r);!((s=G==null?void 0:G.exports)===null||s===void 0)&&s.size&&dl(c,G.exports);var ce=ts(t,c,e.emptyArray,e.emptyArray,e.emptyArray);return ce.objectFlags|=8192,ce}}function wa(r,t,i,o){var s,c=e.getEffectiveTypeAnnotationNode(t.parent);if(c){var L=wl(Da(c));if(r)!Ua(r)&&!Ua(L)&&!jf(r,L)&&xx(void 0,r,o,L);else return L}if(!((s=i.parent)===null||s===void 0)&&s.valueDeclaration){var G=e.getEffectiveTypeAnnotationNode(i.parent.valueDeclaration);if(G){var ce=Ii(Da(G),i.escapedName);if(ce)return Gf(ce)}}return r}function Ea(r,t,i,o){if(e.isCallExpression(i)){if(t)return An(t);var s=Ss(i.arguments[2]),c=ia(s,"value");if(c)return c;var L=ia(s,"get");if(L){var G=j_(L);if(G)return _o(G)}var ce=ia(s,"set");if(ce){var we=j_(ce);if(we)return z1(we)}return Ze}if(Ki(i.left,i.right))return Ze;var Ue=t?An(t):Pp(Ss(i.right));if(Ue.flags&524288&&o===2&&r.escapedName==="export="){var Je=Sc(Ue),ar=e.createSymbolTable();e.copyEntries(Je.members,ar);var _r=ar.size;t&&!t.exports&&(t.exports=e.createSymbolTable()),(t||r).exports.forEach(function(Zr,Et){var Tt,At=ar.get(Et);if(At&&At!==Zr)if(Zr.flags&111551&&At.flags&111551){if(Zr.valueDeclaration&&At.valueDeclaration&&e.getSourceFileOfNode(Zr.valueDeclaration)!==e.getSourceFileOfNode(At.valueDeclaration)){var Vt=e.unescapeLeadingUnderscores(Zr.escapedName),Nn=((Tt=e.tryCast(At.valueDeclaration,e.isNamedDeclaration))===null||Tt===void 0?void 0:Tt.name)||At.valueDeclaration;e.addRelatedInfo(Mr(Zr.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,Vt),e.createDiagnosticForNode(Nn,e.Diagnostics._0_was_also_declared_here,Vt)),e.addRelatedInfo(Mr(Nn,e.Diagnostics.Duplicate_identifier_0,Vt),e.createDiagnosticForNode(Zr.valueDeclaration,e.Diagnostics._0_was_also_declared_here,Vt))}var on=fo(Zr.flags|At.flags,Et);on.type=ma([An(Zr),An(At)]),on.valueDeclaration=At.valueDeclaration,on.declarations=e.concatenate(At.declarations,Zr.declarations),ar.set(Et,on)}else ar.set(Et,_s(Zr,At));else ar.set(Et,Zr)});var Gr=ts(_r!==ar.size?void 0:Je.symbol,ar,Je.callSignatures,Je.constructSignatures,Je.indexInfos);return Gr.objectFlags|=e.getObjectFlags(Ue)&8192,Gr.symbol&&Gr.symbol.flags&32&&Ue===Hn(Gr.symbol)&&(Gr.objectFlags|=16777216),Gr}return U0(Ue)?(Fp(i,Sn),Sn):Ue}function Ki(r,t){return e.isPropertyAccessExpression(r)&&r.expression.kind===108&&e.forEachChildRecursively(t,function(i){return qs(r,i)})}function Qo(r){var t=e.getThisContainer(r,!1);return t.kind===170||t.kind===255||t.kind===212&&!e.isPrototypePropertyAssignment(t.parent)}function $i(r,t){return e.Debug.assert(r.length===t.length),r.filter(function(i,o){var s=t[o],c=e.isBinaryExpression(s)?s:e.isBinaryExpression(s.parent)?s.parent:void 0;return c&&Qo(c)})}function Ho(r,t,i){if(r.initializer){var o=e.isBindingPattern(r.name)?xs(r.name,!0,!1):tr;return Wl(rT(r,Rh(r,o)))}return e.isBindingPattern(r.name)?xs(r.name,t,i):(i&&!ul(r)&&Fp(r,Ze),t?yt:Ze)}function gs(r,t,i){var o=e.createSymbolTable(),s,c=262272;e.forEach(r.elements,function(G){var ce=G.propertyName||G.name;if(G.dotDotDotToken){s=Eu(xt,Ze,!1);return}var we=lp(ce);if(!gu(we)){c|=512;return}var Ue=vu(we),Je=4|(G.initializer?16777216:0),ar=fo(Je,Ue);ar.type=Ho(G,t,i),ar.bindingElement=G,o.set(ar.escapedName,ar)});var L=ts(void 0,o,e.emptyArray,e.emptyArray,s?[s]:e.emptyArray);return L.objectFlags|=c,t&&(L.pattern=r,L.objectFlags|=262144),L}function _l(r,t,i){var o=r.elements,s=e.lastOrUndefined(o),c=s&&s.kind===202&&s.dotDotDotToken?s:void 0;if(o.length===0||o.length===1&&c)return De>=2?Xk(Ze):Sn;var L=e.map(o,function(Ue){return e.isOmittedExpression(Ue)?Ze:Ho(Ue,t,i)}),G=e.findLastIndex(o,function(Ue){return!(Ue===c||e.isOmittedExpression(Ue)||cg(Ue))},o.length-1)+1,ce=e.map(o,function(Ue,Je){return Ue===c?4:Je>=G?2:1}),we=Tu(L,ce);return t&&(we=vD(we),we.pattern=r,we.objectFlags|=262144),we}function xs(r,t,i){return t===void 0&&(t=!1),i===void 0&&(i=!1),r.kind===200?gs(r,t,i):_l(r,t,i)}function Cl(r,t){return ju(ep(r,!0),r,t)}function bl(r){var t=wn(r),i=Mk(!1);return i&&t&&t===i}function ju(r,t,i){return r?(r.flags&4096&&bl(t.parent)&&(r=b0(t)),i&&Jy(t,r),r.flags&8192&&(e.isBindingElement(t)||!t.type)&&r.symbol!==wn(t)&&(r=na),wl(r)):(r=e.isParameter(t)&&t.dotDotDotToken?Sn:Ze,i&&(ul(t)||Fp(t,r)),r)}function ul(r){var t=e.getRootDeclaration(r),i=t.kind===163?t.parent:t;return Ib(i)}function Ms(r){var t=e.getEffectiveTypeAnnotationNode(r);if(t)return Da(t)}function Ff(r){var t=Ja(r);if(!t.type){var i=_u(r);t.type||(t.type=i)}return t.type}function _u(r){if(r.flags&4194304)return Oa(r);if(r===ze)return Ze;if(r.flags&134217728&&r.valueDeclaration){var t=wn(e.getSourceFileOfNode(r.valueDeclaration)),i=fo(t.flags,"exports");i.declarations=t.declarations?t.declarations.slice():[],i.parent=r,i.target=t,t.valueDeclaration&&(i.valueDeclaration=t.valueDeclaration),t.members&&(i.members=new e.Map(t.members)),t.exports&&(i.exports=new e.Map(t.exports));var o=e.createSymbolTable();return o.set("exports",i),ts(r,o,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(r.valueDeclaration);var s=r.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(c===void 0)return Hr?tr:Ze;var L=jp(c);return Na(L)||L===tr?L:dr}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?wl(Pp(ui(s.statements[0].expression))):Qn;if(!E(r,0))return r.flags&512&&!(r.flags&67108864)?Io(r):tp(r);var G;if(s.kind===270)G=ju(Ms(s)||Ss(s.expression),s);else if(e.isBinaryExpression(s)||e.isInJSFile(s)&&(e.isCallExpression(s)||(e.isPropertyAccessExpression(s)||e.isBindableStaticElementAccessExpression(s))&&e.isBinaryExpression(s.parent)))G=On(r);else if(e.isPropertyAccessExpression(s)||e.isElementAccessExpression(s)||e.isIdentifier(s)||e.isStringLiteralLike(s)||e.isNumericLiteral(s)||e.isClassDeclaration(s)||e.isFunctionDeclaration(s)||e.isMethodDeclaration(s)&&!e.isObjectLiteralMethod(s)||e.isMethodSignature(s)||e.isSourceFile(s)){if(r.flags&9136)return Io(r);G=e.isBinaryExpression(s.parent)?On(r):Ms(s)||Ze}else if(e.isPropertyAssignment(s))G=Ms(s)||ax(s);else if(e.isJsxAttribute(s))G=Ms(s)||HA(s);else if(e.isShorthandPropertyAssignment(s))G=Ms(s)||hg(s.name,0);else if(e.isObjectLiteralMethod(s))G=Ms(s)||ix(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))G=Cl(s,!0);else if(e.isEnumDeclaration(s))G=Io(r);else if(e.isEnumMember(s))G=rp(r);else if(e.isAccessor(s))G=an(r)||e.Debug.fail("Non-write accessor resolution must always produce a type");else return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(r));return Ot()?G:r.flags&512&&!(r.flags&67108864)?Io(r):tp(r)}function ml(r){if(r)if(r.kind===171){var t=e.getEffectiveReturnTypeNode(r);return t}else{var i=e.getEffectiveSetAccessorTypeAnnotationNode(r);return i}}function _(r){var t=ml(r);return t&&Da(t)}function W(r){var t=OT(r);return t&&t.symbol}function be(r){return f_(bu(r))}function nr(r){var t=Ja(r);return t.type||(t.type=Ht(r)||e.Debug.fail("Read type of accessor must always produce a type"))}function Br(r){var t=Ja(r);return t.writeType||(t.writeType=Ht(r,!0))}function Ht(r,t){if(t===void 0&&(t=!1),!E(r,0))return dr;var i=an(r,t);if(!Ot()&&(i=Ze,Ke)){var o=e.getDeclarationOfKind(r,171);Mr(o,e.Diagnostics._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,Wa(r))}return i}function an(r,t){t===void 0&&(t=!1);var i=e.getDeclarationOfKind(r,171),o=e.getDeclarationOfKind(r,172),s=_(o);if(t&&s)return ce(s,r);if(i&&e.isInJSFile(i)){var c=Pf(i);if(c)return ce(c,r)}var L=_(i);if(L)return ce(L,r);if(s)return s;if(i&&i.body){var G=Lb(i);return ce(G,r)}if(o)return Ib(o)||pc(Ke,o,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Wa(r)),Ze;if(i)return e.Debug.assert(!!i,"there must exist a getter as we are current checking either setter or getter in this function"),Ib(i)||pc(Ke,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Wa(r)),Ze;return;function ce(we,Ue){if(e.getCheckFlags(Ue)&1){var Je=Ja(Ue);return oi(we,Je.mapper)}return we}}function si(r){var t=Ju(Hn(r));return t.flags&8650752?t:t.flags&2097152?e.find(t.types,function(i){return!!(i.flags&8650752)}):void 0}function Io(r){var t=Ja(r),i=t;if(!t.type){var o=r.valueDeclaration&&Tb(r.valueDeclaration,!1);if(o){var s=J1(r,o);s&&(r=t=s)}i.type=t.type=vs(r)}return t.type}function vs(r){var t=r.valueDeclaration;if(r.flags&1536&&e.isShorthandAmbientModuleSymbol(r))return Ze;if(t&&(t.kind===220||e.isAccessExpression(t)&&t.parent.kind===220))return On(r);if(r.flags&512&&t&&e.isSourceFile(t)&&t.commonJsModuleIndicator){var i=ll(r);if(i!==r){if(!E(r,0))return dr;var o=Ga(r.exports.get("export=")),s=On(o,o===i?void 0:i);return Ot()?s:tp(r)}}var c=Bl(16,r);if(r.flags&32){var L=si(r);return L?To([c,L]):c}else return br&&r.flags&16777216?Jf(c):c}function rp(r){var t=Ja(r);return t.type||(t.type=jl(r))}function Gc(r){var t=Ja(r);if(!t.type){var i=ms(r),o=r.declarations&&mo(ec(r),!0),s=e.firstDefined(o==null?void 0:o.declarations,function(c){return e.isExportAssignment(c)?Ms(c):void 0});t.type=o!=null&&o.declarations&&Ub(o.declarations)&&r.declarations.length?Fr(o):Ub(r.declarations)?Cr:s||(i.flags&111551?An(i):dr)}return t.type}function Pm(r){var t=Ja(r);if(!t.type){if(!E(r,0))return t.type=dr;var i=oi(An(t.target),t.mapper);Ot()||(i=tp(r)),t.type=i}return t.type}function tp(r){var t=r.valueDeclaration;return e.getEffectiveTypeAnnotationNode(t)?(Mr(r.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Wa(r)),dr):(Ke&&(t.kind!==163||t.initializer)&&Mr(r.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Wa(r)),Ze)}function Fm(r){var t=Ja(r);return t.type||(e.Debug.assertIsDefined(t.deferralParent),e.Debug.assertIsDefined(t.deferralConstituents),t.type=t.deferralParent.flags&1048576?ma(t.deferralConstituents):To(t.deferralConstituents)),t.type}function Mv(r){if(r.flags&98304){var t=Br(r);if(t)return t}return An(r)}function An(r){var t=e.getCheckFlags(r);return t&65536?Fm(r):t&1?Pm(r):t&262144?FE(r):t&8192?ZR(r):r.flags&7?Ff(r):r.flags&9136?Io(r):r.flags&8?rp(r):r.flags&98304?nr(r):r.flags&2097152?Gc(r):dr}function Gf(r){return gm(An(r),!!(r.flags&16777216))}function nf(r,t){return r!==void 0&&t!==void 0&&(e.getObjectFlags(r)&4)!==0&&r.target===t}function O_(r){return e.getObjectFlags(r)&4?r.target:r}function Cp(r,t){return i(r);function i(o){if(e.getObjectFlags(o)&7){var s=O_(o);return s===t||e.some(xl(s),i)}else if(o.flags&2097152)return e.some(o.types,i);return!1}}function Gm(r,t){for(var i=0,o=t;i<o.length;i++){var s=o[i];r=e.appendIfUnique(r,vl(wn(s)))}return r}function Hu(r,t){for(;;){if(r=r.parent,r&&e.isBinaryExpression(r)){var i=e.getAssignmentDeclarationKind(r);if(i===6||i===3){var o=wn(r.left);o&&o.parent&&!e.findAncestor(o.parent.valueDeclaration,function(ce){return r===ce})&&(r=o.parent.valueDeclaration)}}if(!r)return;switch(r.kind){case 256:case 225:case 257:case 173:case 174:case 167:case 178:case 179:case 315:case 255:case 168:case 212:case 213:case 258:case 342:case 343:case 337:case 336:case 194:case 188:{var s=Hu(r,t);if(r.kind===194)return e.append(s,vl(wn(r.typeParameter)));if(r.kind===188)return e.concatenate(s,cL(r));var c=Gm(s,e.getEffectiveTypeParameterDeclarations(r)),L=t&&(r.kind===256||r.kind===225||r.kind===257||ou(r))&&Hn(wn(r)).thisType;return L?e.append(c,L):c}case 338:var G=e.getParameterSymbolFromJSDoc(r);G&&(r=G.valueDeclaration);break;case 318:{var s=Hu(r,t);return r.tags?Gm(s,e.flatMap(r.tags,function(we){return e.isJSDocTemplateTag(we)?we.typeParameters:void 0})):s}}}}function rm(r){var t=r.flags&32?r.valueDeclaration:e.getDeclarationOfKind(r,257);return e.Debug.assert(!!t,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Hu(t)}function mu(r){if(r.declarations){for(var t,i=0,o=r.declarations;i<o.length;i++){var s=o[i];if(s.kind===257||s.kind===256||s.kind===225||ou(s)||e.isTypeAlias(s)){var c=s;t=Gm(t,e.getEffectiveTypeParameterDeclarations(c))}}return t}}function Pv(r){return e.concatenate(rm(r),mu(r))}function i_(r){var t=Ni(r,1);if(t.length===1){var i=t[0];if(!i.typeParameters&&i.parameters.length===1&&ue(i)){var o=fv(i.parameters[0]);return Na(o)||G0(o)===Ze}}return!1}function tm(r){if(Ni(r,1).length>0)return!0;if(r.flags&8650752){var t=l(r);return!!t&&i_(t)}return!1}function o_(r){return e.getEffectiveBaseTypeNode(r.symbol.valueDeclaration)}function vd(r,t,i){var o=e.length(t),s=e.isInJSFile(i);return e.filter(Ni(r,1),function(c){return(s||o>=lf(c.typeParameters))&&o<=e.length(c.typeParameters)})}function Bm(r,t,i){var o=vd(r,t,i),s=e.map(t,Da);return e.sameMap(o,function(c){return e.some(c.typeParameters)?th(c,s,e.isInJSFile(i)):c})}function Ju(r){if(!r.resolvedBaseConstructorType){var t=r.symbol.valueDeclaration,i=e.getEffectiveBaseTypeNode(t),o=o_(r);if(!o)return r.resolvedBaseConstructorType=Nr;if(!E(r,1))return dr;var s=ui(o.expression);if(i&&o!==i&&(e.Debug.assert(!i.typeArguments),ui(i.expression)),s.flags&2621440&&Sc(s),!Ot())return Mr(r.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Wa(r.symbol)),r.resolvedBaseConstructorType=dr;if(!(s.flags&1)&&s!==ht&&!tm(s)){var c=Mr(o.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,gn(s));if(s.flags&262144){var L=Qm(s),G=tr;if(L){var ce=Ni(L,1);ce[0]&&(G=_o(ce[0]))}s.symbol.declarations&&e.addRelatedInfo(c,e.createDiagnosticForNode(s.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Wa(s.symbol),gn(G)))}return r.resolvedBaseConstructorType=dr}r.resolvedBaseConstructorType=s}return r.resolvedBaseConstructorType}function Fv(r){var t=e.emptyArray;if(r.symbol.declarations)for(var i=0,o=r.symbol.declarations;i<o.length;i++){var s=o[i],c=e.getEffectiveImplementsTypeNodes(s);if(c)for(var L=0,G=c;L<G.length;L++){var ce=G[L],we=Da(ce);Ua(we)||(t===e.emptyArray?t=[we]:t.push(we))}}return t}function wg(r,t){Mr(r,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,gn(t,void 0,2))}function xl(r){if(!r.baseTypesResolved){if(E(r,7)&&(r.objectFlags&8?r.resolvedBaseTypes=[Mg(r)]:r.symbol.flags&96?(r.symbol.flags&32&&xp(r),r.symbol.flags&64&&un(r)):e.Debug.fail("type must be class or interface"),!Ot()&&r.symbol.declarations))for(var t=0,i=r.symbol.declarations;t<i.length;t++){var o=i[t];(o.kind===256||o.kind===257)&&wg(o,r)}r.baseTypesResolved=!0}return r.resolvedBaseTypes}function Mg(r){var t=e.sameMap(r.typeParameters,function(i,o){return r.elementFlags[o]&8?Hl(i,wt):i});return zs(ma(t||e.emptyArray),r.readonly)}function xp(r){r.resolvedBaseTypes=e.resolvingEmptyArray;var t=wi(Ju(r));if(!(t.flags&2621441))return r.resolvedBaseTypes=e.emptyArray;var i=o_(r),o,s=t.symbol?po(t.symbol):void 0;if(t.symbol&&t.symbol.flags&32&&Pg(s))o=hD(i,t.symbol);else if(t.flags&1)o=t;else{var c=Bm(t,i.typeArguments,i);if(!c.length)return Mr(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),r.resolvedBaseTypes=e.emptyArray;o=_o(c[0])}if(Ua(o))return r.resolvedBaseTypes=e.emptyArray;var L=Eo(o);if(!Ku(L)){var G=Jm(void 0,o),ce=e.chainDiagnosticMessages(G,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,gn(L));return ua.add(e.createDiagnosticForNodeFromMessageChain(i.expression,ce)),r.resolvedBaseTypes=e.emptyArray}return r===L||Cp(L,r)?(Mr(r.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,gn(r,void 0,2)),r.resolvedBaseTypes=e.emptyArray):(r.resolvedBaseTypes===e.resolvingEmptyArray&&(r.members=void 0),r.resolvedBaseTypes=[L])}function Pg(r){var t=r.outerTypeParameters;if(t){var i=t.length-1,o=vo(r);return t[i].symbol!==o[i].symbol}return!0}function Ku(r){if(r.flags&262144){var t=l(r);if(t)return Ku(t)}return!!(r.flags&67633153&&!El(r)||r.flags&2097152&&e.every(r.types,Ku))}function un(r){if(r.resolvedBaseTypes=r.resolvedBaseTypes||e.emptyArray,r.symbol.declarations)for(var t=0,i=r.symbol.declarations;t<i.length;t++){var o=i[t];if(o.kind===257&&e.getInterfaceBaseTypeNodes(o))for(var s=0,c=e.getInterfaceBaseTypeNodes(o);s<c.length;s++){var L=c[s],G=Eo(Da(L));Ua(G)||(Ku(G)?r!==G&&!Cp(G,r)?r.resolvedBaseTypes===e.emptyArray?r.resolvedBaseTypes=[G]:r.resolvedBaseTypes.push(G):wg(o,r):Mr(L,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function pa(r){if(!r.declarations)return!0;for(var t=0,i=r.declarations;t<i.length;t++){var o=i[t];if(o.kind===257){if(o.flags&128)return!1;var s=e.getInterfaceBaseTypeNodes(o);if(s)for(var c=0,L=s;c<L.length;c++){var G=L[c];if(e.isEntityNameExpression(G.expression)){var ce=rs(G.expression,788968,!0);if(!ce||!(ce.flags&64)||Hn(ce).thisType)return!1}}}}return!0}function Hn(r){var t=Ja(r),i=t;if(!t.declaredType){var o=r.flags&32?1:2,s=J1(r,r.valueDeclaration&&UP(r.valueDeclaration));s&&(r=t=s);var c=i.declaredType=t.declaredType=Bl(o,r),L=rm(r),G=mu(r);(L||G||o===1||!pa(r))&&(c.objectFlags|=4,c.typeParameters=e.concatenate(L,G),c.outerTypeParameters=L,c.localTypeParameters=G,c.instantiations=new e.Map,c.instantiations.set(sc(c.typeParameters),c),c.target=c,c.resolvedTypeArguments=c.typeParameters,c.thisType=nc(r),c.thisType.isThisType=!0,c.thisType.constraint=c)}return t.declaredType}function Sa(r){var t,i=Ja(r);if(!i.declaredType){if(!E(r,2))return dr;var o=e.Debug.checkDefined((t=r.declarations)===null||t===void 0?void 0:t.find(e.isTypeAlias),"Type alias symbol with no valid declaration found"),s=e.isJSDocTypeAlias(o)?o.typeExpression:o.type,c=s?Da(s):dr;if(Ot()){var L=mu(r);L&&(i.typeParameters=L,i.instantiations=new e.Map,i.instantiations.set(sc(L),c))}else c=dr,o.kind===337?Mr(o.typeExpression.type,e.Diagnostics.Type_alias_0_circularly_references_itself,Wa(r)):Mr(e.isNamedDeclaration(o)?o.name:o||o,e.Diagnostics.Type_alias_0_circularly_references_itself,Wa(r));i.declaredType=c}return i.declaredType}function Za(r){return e.isStringLiteralLike(r)?!0:r.kind===220?Za(r.left)&&Za(r.right):!1}function zi(r){var t=r.initializer;if(!t)return!(r.flags&8388608);switch(t.kind){case 10:case 8:case 14:return!0;case 218:return t.operator===40&&t.operand.kind===8;case 79:return e.nodeIsMissing(t)||!!wn(r.parent).exports.get(t.escapedText);case 220:return Za(t);default:return!1}}function Bo(r){var t=Ja(r);if(t.enumKind!==void 0)return t.enumKind;var i=!1;if(r.declarations)for(var o=0,s=r.declarations;o<s.length;o++){var c=s[o];if(c.kind===259)for(var L=0,G=c.members;L<G.length;L++){var ce=G[L];if(ce.initializer&&e.isStringLiteralLike(ce.initializer))return t.enumKind=1;zi(ce)||(i=!0)}}return t.enumKind=i?0:1}function Zs(r){return r.flags&1024&&!(r.flags&1048576)?po(Ts(r.symbol)):r}function gl(r){var t=Ja(r);if(t.declaredType)return t.declaredType;if(Bo(r)===1){Ie++;var i=[];if(r.declarations)for(var o=0,s=r.declarations;o<s.length;o++){var c=s[o];if(c.kind===259)for(var L=0,G=c.members;L<G.length;L++){var ce=G[L],we=Kb(ce),Ue=fm(GO(we!==void 0?we:0,Ie,wn(ce)));Ja(wn(ce)).declaredType=Ue,i.push(kl(Ue))}}if(i.length){var Je=ma(i,1,r,void 0);return Je.flags&1048576&&(Je.flags|=1024,Je.symbol=r),t.declaredType=Je}}var ar=Qs(32);return ar.symbol=r,t.declaredType=ar}function jl(r){var t=Ja(r);if(!t.declaredType){var i=gl(Ts(r));t.declaredType||(t.declaredType=i)}return t.declaredType}function vl(r){var t=Ja(r);return t.declaredType||(t.declaredType=nc(r))}function Bf(r){var t=Ja(r);return t.declaredType||(t.declaredType=po(ms(r)))}function po(r){return s_(r)||dr}function s_(r){if(r.flags&96)return Hn(r);if(r.flags&524288)return Sa(r);if(r.flags&262144)return vl(r);if(r.flags&384)return gl(r);if(r.flags&8)return jl(r);if(r.flags&2097152)return Bf(r)}function np(r){switch(r.kind){case 130:case 154:case 149:case 146:case 157:case 133:case 150:case 147:case 114:case 152:case 143:case 195:return!0;case 182:return np(r.elementType);case 177:return!r.typeArguments||r.typeArguments.every(np)}return!1}function nm(r){var t=e.getEffectiveConstraintOfTypeParameter(r);return!t||np(t)}function am(r){var t=e.getEffectiveTypeAnnotationNode(r);return t?np(t):!e.hasInitializer(r)}function CE(r){var t=e.getEffectiveReturnTypeNode(r),i=e.getEffectiveTypeParameterDeclarations(r);return(r.kind===170||!!t&&np(t))&&r.parameters.every(am)&&i.every(nm)}function xE(r){if(r.declarations&&r.declarations.length===1){var t=r.declarations[0];if(t)switch(t.kind){case 166:case 165:return am(t);case 168:case 167:case 170:case 171:case 172:return CE(t)}}return!1}function ny(r,t,i){for(var o=e.createSymbolTable(),s=0,c=r;s<c.length;s++){var L=c[s];o.set(L.escapedName,i&&xE(L)?L:E0(L,t))}return o}function Fg(r,t){for(var i=0,o=t;i<o.length;i++){var s=o[i];!r.has(s.escapedName)&&!Gv(s)&&r.set(s.escapedName,s)}}function Gv(r){return!!r.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(r.valueDeclaration)&&e.isStatic(r.valueDeclaration)}function Gg(r){if(!r.declaredProperties){var t=r.symbol,i=af(t);r.declaredProperties=Bu(i),r.declaredCallSignatures=e.emptyArray,r.declaredConstructSignatures=e.emptyArray,r.declaredIndexInfos=e.emptyArray,r.declaredCallSignatures=Op(i.get("__call")),r.declaredConstructSignatures=Op(i.get("__new")),r.declaredIndexInfos=pD(t)}return r}function gu(r){return!!(r.flags&8576)}function Bg(r){if(!e.isComputedPropertyName(r)&&!e.isElementAccessExpression(r))return!1;var t=e.isComputedPropertyName(r)?r.expression:r.argumentExpression;return e.isEntityNameExpression(t)&&gu(e.isComputedPropertyName(r)?qf(r):Ss(t))}function Ip(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)===64}function R_(r){var t=e.getNameOfDeclaration(r);return!!t&&Bg(t)}function l_(r){return!e.hasDynamicName(r)||R_(r)}function IE(r){return e.isDynamicName(r)&&!Bg(r)}function vu(r){return r.flags&8192?r.escapedName:r.flags&384?e.escapeLeadingUnderscores(""+r.value):e.Debug.fail()}function Bv(r,t,i){e.Debug.assert(!!(e.getCheckFlags(r)&4096),"Expected a late-bound symbol."),r.flags|=i,Ja(t.symbol).lateSymbol=r,r.declarations?t.symbol.isReplaceableByMethod||r.declarations.push(t):r.declarations=[t],i&111551&&(!r.valueDeclaration||r.valueDeclaration.kind!==t.kind)&&(r.valueDeclaration=t)}function Uv(r,t,i,o){e.Debug.assert(!!o.symbol,"The member is expected to have a symbol.");var s=Zn(o);if(!s.resolvedSymbol){s.resolvedSymbol=o.symbol;var c=e.isBinaryExpression(o)?o.left:o.name,L=e.isElementAccessExpression(c)?Ss(c.argumentExpression):qf(c);if(gu(L)){var G=vu(L),ce=o.symbol.flags,we=i.get(G);we||i.set(G,we=fo(0,G,4096));var Ue=t&&t.get(G);if(we.flags&Zf(ce)||Ue){var Je=Ue?e.concatenate(Ue.declarations,we.declarations):we.declarations,ar=!(L.flags&8192)&&e.unescapeLeadingUnderscores(G)||e.declarationNameToString(c);e.forEach(Je,function(_r){return Mr(e.getNameOfDeclaration(_r)||_r,e.Diagnostics.Property_0_was_also_declared_here,ar)}),Mr(c||o,e.Diagnostics.Duplicate_property_0,ar),we=fo(0,G,4096)}return we.nameType=L,Bv(we,o,ce),we.parent?e.Debug.assert(we.parent===r,"Existing symbol parent should match new one"):we.parent=r,s.resolvedSymbol=we}}return s.resolvedSymbol}function im(r,t){var i=Ja(r);if(!i[t]){var o=t==="resolvedExports",s=o?r.flags&1536?fd(r):r.exports:r.members;i[t]=s||Le;for(var c=e.createSymbolTable(),L=0,G=r.declarations||e.emptyArray;L<G.length;L++){var ce=G[L],we=e.getMembersOfDeclaration(ce);if(we)for(var Ue=0,Je=we;Ue<Je.length;Ue++){var ar=Je[Ue];o===e.hasStaticModifier(ar)&&R_(ar)&&Uv(r,s,c,ar)}}var _r=r.assignmentDeclarationMembers;if(_r)for(var Gr=e.arrayFrom(_r.values()),Zr=0,Et=Gr;Zr<Et.length;Zr++){var ar=Et[Zr],Tt=e.getAssignmentDeclarationKind(ar),At=Tt===3||e.isBinaryExpression(ar)&&ob(ar,Tt)||Tt===9||Tt===6;o===!At&&R_(ar)&&Uv(r,s,c,ar)}i[t]=zp(s,c)||Le}return i[t]}function af(r){return r.flags&6256?im(r,"resolvedMembers"):r.members||Le}function Ug(r){if(r.flags&106500&&r.escapedName==="__computed"){var t=Ja(r);if(!t.lateSymbol&&e.some(r.declarations,R_)){var i=Ga(r.parent);e.some(r.declarations,e.hasStaticModifier)?Js(i):af(i)}return t.lateSymbol||(t.lateSymbol=r)}return r}function Il(r,t,i){if(e.getObjectFlags(r)&4){var o=r.target,s=vo(r);if(e.length(o.typeParameters)===e.length(s)){var c=Uf(o,e.concatenate(s,[t||o.thisType]));return i?wi(c):c}}else if(r.flags&2097152){var L=e.sameMap(r.types,function(G){return Il(G,t,i)});return L!==r.types?To(L):r}return i?wi(r):r}function ay(r,t,i,o){var s,c,L,G,ce;e.rangeEquals(i,o,0,i.length)?(c=t.symbol?af(t.symbol):e.createSymbolTable(t.declaredProperties),L=t.declaredCallSignatures,G=t.declaredConstructSignatures,ce=t.declaredIndexInfos):(s=Ol(i,o),c=ny(t.declaredProperties,s,i.length===1),L=ky(t.declaredCallSignatures,s),G=ky(t.declaredConstructSignatures,s),ce=mL(t.declaredIndexInfos,s));var we=xl(t);if(we.length){t.symbol&&c===af(t.symbol)&&(c=e.createSymbolTable(t.declaredProperties)),Al(r,c,L,G,ce);for(var Ue=e.lastOrUndefined(o),Je=0,ar=we;Je<ar.length;Je++){var _r=ar[Je],Gr=Ue?Il(oi(_r,s),Ue):_r;Fg(c,Yi(Gr)),L=e.concatenate(L,Ni(Gr,0)),G=e.concatenate(G,Ni(Gr,1));var Zr=Gr!==Ze?Ps(Gr):[Eu(xt,Ze,!1)];ce=e.concatenate(ce,e.filter(Zr,function(Et){return!Qv(ce,Et.keyType)}))}}Al(r,c,L,G,ce)}function iy(r){ay(r,Gg(r),e.emptyArray,e.emptyArray)}function NE(r){var t=Gg(r.target),i=e.concatenate(t.typeParameters,[t.thisType]),o=vo(r),s=o.length===i.length?o:e.concatenate(o,[r]);ay(r,t,i,s)}function hu(r,t,i,o,s,c,L,G){var ce=new ge(Yr,G);return ce.declaration=r,ce.typeParameters=t,ce.parameters=o,ce.thisParameter=i,ce.resolvedReturnType=s,ce.resolvedTypePredicate=c,ce.minArgumentCount=L,ce.resolvedMinArgumentCount=void 0,ce.target=void 0,ce.mapper=void 0,ce.compositeSignatures=void 0,ce.compositeKind=void 0,ce}function Np(r){var t=hu(r.declaration,r.typeParameters,r.thisParameter,r.parameters,void 0,void 0,r.minArgumentCount,r.flags&39);return t.target=r.target,t.mapper=r.mapper,t.compositeSignatures=r.compositeSignatures,t.compositeKind=r.compositeKind,t}function oy(r,t){var i=Np(r);return i.compositeSignatures=t,i.compositeKind=1048576,i.target=void 0,i.mapper=void 0,i}function sy(r,t){if((r.flags&24)===t)return r;r.optionalCallSignatureCache||(r.optionalCallSignatureCache={});var i=t===8?"inner":"outer";return r.optionalCallSignatureCache[i]||(r.optionalCallSignatureCache[i]=ly(r,t))}function ly(r,t){e.Debug.assert(t===8||t===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");var i=Np(r);return i.flags|=t,i}function cy(r,t){if(ue(r)){var i=r.parameters.length-1,o=An(r.parameters[i]);if(ki(o))return[s(o,i)];if(!t&&o.flags&1048576&&e.every(o.types,ki))return e.map(o.types,function(c){return s(c,i)})}return[r.parameters];function s(c,L){var G=vo(c),ce=c.target.labeledElementDeclarations,we=e.map(G,function(Ue,Je){var ar=!!ce&&Db(ce[Je]),_r=ar||mg(r,L+Je,c),Gr=c.target.elementFlags[Je],Zr=Gr&12?32768:Gr&2?16384:0,Et=fo(1,_r,Zr);return Et.type=Gr&4?zs(Ue):Ue,Et});return e.concatenate(r.parameters.slice(0,L),we)}}function kE(r){var t=Ju(r),i=Ni(t,1),o=e.getClassLikeDeclarationOfSymbol(r.symbol),s=!!o&&e.hasSyntacticModifier(o,128);if(i.length===0)return[hu(void 0,r.localTypeParameters,void 0,e.emptyArray,r,void 0,0,s?4:0)];for(var c=o_(r),L=e.isInJSFile(c),G=Ly(c),ce=e.length(G),we=[],Ue=0,Je=i;Ue<Je.length;Ue++){var ar=Je[Ue],_r=lf(ar.typeParameters),Gr=e.length(ar.typeParameters);if(L||ce>=_r&&ce<=Gr){var Zr=Gr?by(ar,M_(G,ar.typeParameters,_r,L)):Np(ar);Zr.typeParameters=r.localTypeParameters,Zr.resolvedReturnType=r,Zr.flags=s?Zr.flags|4:Zr.flags&-5,we.push(Zr)}}return we}function Vv(r,t,i,o,s){for(var c=0,L=r;c<L.length;c++){var G=L[c];if(_h(G,t,i,o,s,i?nR:$g))return G}}function OE(r,t,i){if(t.typeParameters){if(i>0)return;for(var o=1;o<r.length;o++)if(!Vv(r[o],t,!1,!1,!1))return;return[t]}for(var s,o=0;o<r.length;o++){var c=o===i?t:Vv(r[o],t,!0,!1,!0);if(!c)return;s=e.appendIfUnique(s,c)}return s}function Vg(r){for(var t,i,o=0;o<r.length;o++){if(r[o].length===0)return e.emptyArray;r[o].length>1&&(i=i===void 0?o:-1);for(var s=0,c=r[o];s<c.length;s++){var L=c[s];if(!t||!Vv(t,L,!1,!1,!0)){var G=OE(r,L,o);if(G){var ce=L;if(G.length>1){var we=L.thisParameter,Ue=e.forEach(G,function(Vt){return Vt.thisParameter});if(Ue){var Je=To(e.mapDefined(G,function(Vt){return Vt.thisParameter&&An(Vt.thisParameter)}));we=V_(Ue,Je)}ce=oy(L,G),ce.thisParameter=we}(t||(t=[])).push(ce)}}}}if(!e.length(t)&&i!==-1){for(var ar=r[i!==void 0?i:0],_r=ar.slice(),Gr=function(Vt){if(Vt!==ar){var Nn=Vt[0];if(e.Debug.assert(!!Nn,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),_r=Nn.typeParameters&&e.some(_r,function(on){return!!on.typeParameters&&!uy(Nn.typeParameters,on.typeParameters)})?void 0:e.map(_r,function(on){return fy(on,Nn)}),!_r)return"break"}},Zr=0,Et=r;Zr<Et.length;Zr++){var Tt=Et[Zr],At=Gr(Tt);if(At==="break")break}t=_r}return t||e.emptyArray}function uy(r,t){if(e.length(r)!==e.length(t))return!1;if(!r||!t)return!0;for(var i=Ol(t,r),o=0;o<r.length;o++){var s=r[o],c=t[o];if(s!==c&&!jf(Qm(s)||tr,oi(Qm(c)||tr,i)))return!1}return!0}function Wv(r,t,i){if(!r||!t)return r||t;var o=To([An(r),oi(An(t),i)]);return V_(r,o)}function Um(r,t,i){for(var o=Tl(r),s=Tl(t),c=o>=s?r:t,L=c===r?t:r,G=c===r?o:s,ce=xu(r)||xu(t),we=ce&&!xu(c),Ue=new Array(G+(we?1:0)),Je=0;Je<G;Je++){var ar=E_(c,Je);c===t&&(ar=oi(ar,i));var _r=E_(L,Je)||tr;L===t&&(_r=oi(_r,i));var Gr=To([ar,_r]),Zr=ce&&!we&&Je===G-1,Et=Je>=Cu(c)&&Je>=Cu(L),Tt=Je>=o?void 0:mg(r,Je),At=Je>=s?void 0:mg(t,Je),Vt=Tt===At?Tt:Tt?At?void 0:Tt:At,Nn=fo(1|(Et&&!Zr?16777216:0),Vt||"arg".concat(Je));Nn.type=Zr?zs(Gr):Gr,Ue[Je]=Nn}if(we){var on=fo(1,"args");on.type=zs(Uc(L,G)),L===t&&(on.type=oi(on.type,i)),Ue[G]=on}return Ue}function fy(r,t){var i=r.typeParameters||t.typeParameters,o;r.typeParameters&&t.typeParameters&&(o=Ol(t.typeParameters,r.typeParameters));var s=r.declaration,c=Um(r,t,o),L=Wv(r.thisParameter,t.thisParameter,o),G=Math.max(r.minArgumentCount,t.minArgumentCount),ce=hu(s,i,L,c,void 0,void 0,G,(r.flags|t.flags)&39);return ce.compositeKind=1048576,ce.compositeSignatures=e.concatenate(r.compositeKind!==2097152&&r.compositeSignatures||[r],[t]),o&&(ce.mapper=r.compositeKind!==2097152&&r.mapper&&r.compositeSignatures?__(r.mapper,o):o),ce}function jv(r){var t=Ps(r[0]);if(t){for(var i=[],o=function(G){var ce=G.keyType;e.every(r,function(we){return!!oc(we,ce)})&&i.push(Eu(ce,ma(e.map(r,function(we){return tu(we,ce)})),e.some(r,function(we){return oc(we,ce).isReadonly})))},s=0,c=t;s<c.length;s++){var L=c[s];o(L)}return i}return e.emptyArray}function RE(r){var t=Vg(e.map(r.types,function(s){return s===Oe?[lo]:Ni(s,0)})),i=Vg(e.map(r.types,function(s){return Ni(s,1)})),o=jv(r.types);Al(r,Le,t,i,o)}function om(r,t){return r?t?To([r,t]):r:t}function dy(r){var t=e.countWhere(r,function(s){return Ni(s,1).length>0}),i=e.map(r,i_);if(t>0&&t===e.countWhere(i,function(s){return s})){var o=i.indexOf(!0);i[o]=!1}return i}function Wg(r,t,i,o){for(var s=[],c=0;c<t.length;c++)c===o?s.push(r):i[c]&&s.push(_o(Ni(t[c],1)[0]));return To(s)}function py(r){for(var t,i,o,s=r.types,c=dy(s),L=e.countWhere(c,function(we){return we}),G=function(we){var Ue=r.types[we];if(!c[we]){var Je=Ni(Ue,1);Je.length&&L>0&&(Je=e.map(Je,function(ar){var _r=Np(ar);return _r.resolvedReturnType=Wg(_o(ar),s,c,we),_r})),i=_y(i,Je)}t=_y(t,Ni(Ue,0)),o=e.reduceLeft(Ps(Ue),function(ar,_r){return my(ar,_r,!1)},o)},ce=0;ce<s.length;ce++)G(ce);Al(r,Le,t||e.emptyArray,i||e.emptyArray,o||e.emptyArray)}function _y(r,t){for(var i=function(L){(!r||e.every(r,function(G){return!_h(G,L,!1,!1,!1,$g)}))&&(r=e.append(r,L))},o=0,s=t;o<s.length;o++){var c=s[o];i(c)}return r}function my(r,t,i){if(r)for(var o=0;o<r.length;o++){var s=r[o];if(s.keyType===t.keyType)return r[o]=Eu(s.keyType,i?ma([s.type,t.type]):To([s.type,t.type]),i?s.isReadonly||t.isReadonly:s.isReadonly&&t.isReadonly),r}return e.append(r,t)}function wE(r){var t=Ga(r.symbol);if(r.target){Al(r,Le,e.emptyArray,e.emptyArray,e.emptyArray);var i=ny(sf(r.target),r.mapper,!1),o=ky(Ni(r.target,0),r.mapper),s=ky(Ni(r.target,1),r.mapper),c=mL(Ps(r.target),r.mapper);Al(r,i,o,s,c)}else if(t.flags&2048){Al(r,Le,e.emptyArray,e.emptyArray,e.emptyArray);var i=af(t),o=Op(i.get("__call")),s=Op(i.get("__new")),c=pD(t);Al(r,i,o,s,c)}else{var i=Le,c=void 0;if(t.exports&&(i=Js(t),t===pr)){var L=new e.Map;i.forEach(function(Gr){Gr.flags&418||L.set(Gr.escapedName,Gr)}),i=L}var G=void 0;if(Al(r,i,e.emptyArray,e.emptyArray,e.emptyArray),t.flags&32){var ce=Hn(t),we=Ju(ce);we.flags&11272192?(i=e.createSymbolTable(zd(i)),Fg(i,Yi(we))):we===Ze&&(G=Eu(xt,Ze,!1))}var Ue=YE(i);if(Ue?c=_D(Ue):(G&&(c=e.append(c,G)),t.flags&384&&(po(t).flags&32||e.some(r.properties,function(Gr){return!!(An(Gr).flags&296)}))&&(c=e.append(c,Yo))),Al(r,i,e.emptyArray,e.emptyArray,c||e.emptyArray),t.flags&8208&&(r.callSignatures=Op(t)),t.flags&32){var Je=Hn(t),s=t.members?Op(t.members.get("__constructor")):e.emptyArray;t.flags&16&&(s=e.addRange(s.slice(),e.mapDefined(r.callSignatures,function(Zr){return ou(Zr.declaration)?hu(Zr.declaration,Zr.typeParameters,Zr.thisParameter,Zr.parameters,Je,void 0,Zr.minArgumentCount,Zr.flags&39):void 0}))),s.length||(s=kE(Je)),r.constructSignatures=s}}}function Hv(r,t,i){return oi(r,Ol([t.indexType,t.objectType],[Wf(0),Tu([i])]))}function ME(r){for(var t=oc(r.source,xt),i=ru(r.mappedType),o=!(i&1),s=i&4?0:16777216,c=t?[Eu(xt,zy(t.type,r.mappedType,r.constraintType),o&&t.isReadonly)]:e.emptyArray,L=e.createSymbolTable(),G=0,ce=Yi(r.source);G<ce.length;G++){var we=ce[G],Ue=8192|(o&&Iu(we)?8:0),Je=fo(4|we.flags&s,we.escapedName,Ue);if(Je.declarations=we.declarations,Je.nameType=Ja(we).nameType,Je.propertyType=An(we),r.constraintType.type.flags&8388608&&r.constraintType.type.objectType.flags&262144&&r.constraintType.type.indexType.flags&262144){var ar=r.constraintType.type.objectType,_r=Hv(r.mappedType,r.constraintType.type,ar);Je.mappedType=_r,Je.constraintType=qu(ar)}else Je.mappedType=r.mappedType,Je.constraintType=r.constraintType;L.set(we.escapedName,Je)}Al(r,L,e.emptyArray,e.emptyArray,c)}function Vm(r){if(r.flags&4194304){var t=wi(r.type);return og(t)?WD(t):qu(t)}if(r.flags&16777216){if(r.root.isDistributive){var i=r.checkType,o=Vm(i);if(o!==i)return L0(r,dm(r.root.checkType,o,r.mapper))}return r}return r.flags&1048576?ds(r,Vm):r.flags&2097152?To(e.sameMap(r.types,Vm)):r}function Jv(r){return e.getCheckFlags(r)&4096}function Kv(r,t,i,o){for(var s=0,c=Yi(r);s<c.length;s++){var L=c[s];o(eg(L,t))}if(r.flags&1)o(xt);else for(var G=0,ce=Ps(r);G<ce.length;G++){var we=ce[G];(!i||we.keyType.flags&134217732)&&o(we.keyType)}}function PE(r){var t=e.createSymbolTable(),i;Al(r,Le,e.emptyArray,e.emptyArray,e.emptyArray);var o=eu(r),s=Tc(r),c=of(r.target||r),L=yu(r.target||r),G=wi(jm(r)),ce=ru(r),we=ur?128:8576;Wm(r)?Kv(G,we,ur,Ue):v_(Vm(s),Ue),Al(r,t,e.emptyArray,e.emptyArray,i||e.emptyArray);function Ue(ar){var _r=c?oi(c,Zg(r.mapper,o,ar)):ar;v_(_r,function(Gr){return Je(ar,Gr)})}function Je(ar,_r){if(gu(_r)){var Gr=vu(_r),Zr=t.get(Gr);if(Zr)Zr.nameType=ma([Zr.nameType,_r]),Zr.keyType=ma([Zr.keyType,ar]);else{var Et=gu(ar)?Ii(G,vu(ar)):void 0,Tt=!!(ce&4||!(ce&8)&&Et&&Et.flags&16777216),At=!!(ce&1||!(ce&2)&&Et&&Iu(Et)),Vt=br&&!Tt&&Et&&Et.flags&16777216,Nn=Et?Jv(Et):0,on=fo(4|(Tt?16777216:0),Gr,Nn|262144|(At?8:0)|(Vt?524288:0));on.mappedType=r,on.nameType=_r,on.keyType=ar,Et&&(on.syntheticOrigin=Et,on.declarations=c?void 0:Et.declarations),t.set(Gr,on)}}else if(Ey(_r)||_r.flags&33){var ca=_r.flags&5?xt:_r.flags&40?wt:_r,la=oi(L,Zg(r.mapper,o,ar)),di=Eu(ca,la,!!(ce&1));i=my(i,di,!0)}}}function FE(r){if(!r.type){var t=r.mappedType;if(!E(r,0))return t.containsError=!0,dr;var i=yu(t.target||t),o=Zg(t.mapper,eu(t),r.keyType),s=oi(i,o),c=br&&r.flags&16777216&&!Jo(s,49152)?Jf(s,!0):r.checkFlags&524288?J0(s):s;Ot()||(Mr(_e,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Wa(r),gn(t)),c=dr),r.type=c}return r.type}function eu(r){return r.typeParameter||(r.typeParameter=vl(wn(r.declaration.typeParameter)))}function Tc(r){return r.constraintType||(r.constraintType=Nl(eu(r))||dr)}function of(r){return r.declaration.nameType?r.nameType||(r.nameType=oi(Da(r.declaration.nameType),r.mapper)):void 0}function yu(r){return r.templateType||(r.templateType=r.declaration.type?oi(Wl(Da(r.declaration.type),!0,!!(ru(r)&4)),r.mapper):dr)}function gy(r){return e.getEffectiveConstraintOfTypeParameter(r.declaration.typeParameter)}function Wm(r){var t=gy(r);return t.kind===192&&t.operator===140}function jm(r){if(!r.modifiersType)if(Wm(r))r.modifiersType=oi(Da(gy(r).type),r.mapper);else{var t=d0(r.declaration),i=Tc(t),o=i&&i.flags&262144?Nl(i):i;r.modifiersType=o&&o.flags&4194304?oi(o.type,r.mapper):tr}return r.modifiersType}function ru(r){var t=r.declaration;return(t.readonlyToken?t.readonlyToken.kind===40?2:1:0)|(t.questionToken?t.questionToken.kind===40?8:4:0)}function vy(r){var t=ru(r);return t&8?-1:t&4?1:0}function zv(r){var t=vy(r),i=jm(r);return t||(El(i)?vy(i):0)}function GE(r){return!!(e.getObjectFlags(r)&32&&ru(r)&4)}function El(r){return!!(e.getObjectFlags(r)&32)&&F_(Tc(r))}function Sc(r){return r.members||(r.flags&524288?r.objectFlags&4?NE(r):r.objectFlags&3?iy(r):r.objectFlags&1024?ME(r):r.objectFlags&16?wE(r):r.objectFlags&32&&PE(r):r.flags&1048576?RE(r):r.flags&2097152&&py(r)),r}function sf(r){return r.flags&524288?Sc(r).properties:e.emptyArray}function hd(r,t){if(r.flags&524288){var i=Sc(r),o=i.members.get(t);if(o&&If(o))return o}}function Hm(r){if(!r.resolvedProperties){for(var t=e.createSymbolTable(),i=0,o=r.types;i<o.length;i++){for(var s=o[i],c=0,L=Yi(s);c<L.length;c++){var G=L[c];if(!t.has(G.escapedName)){var ce=ic(r,G.escapedName);ce&&t.set(G.escapedName,ce)}}if(r.flags&1048576&&Ps(s).length===0)break}r.resolvedProperties=Bu(t)}return r.resolvedProperties}function Yi(r){return r=Is(r),r.flags&3145728?Hm(r):sf(r)}function BE(r,t){r=Is(r),r.flags&3670016&&Sc(r).members.forEach(function(i,o){dd(i,o)&&t(i,o)})}function UE(r,t){var i=t.properties;return i.some(function(o){var s=o.name&&lp(o.name),c=s&&gu(s)?vu(s):void 0,L=c===void 0?void 0:ia(r,c);return!!L&&mm(L)&&!Qi(jp(o),L)})}function VE(r){var t=ma(r);if(!(t.flags&1048576))return DT(t);for(var i=e.createSymbolTable(),o=0,s=r;o<s.length;o++)for(var c=s[o],L=0,G=DT(c);L<G.length;L++){var ce=G[L].escapedName;if(!i.has(ce)){var we=Ks(t,ce);we&&i.set(ce,we)}}return e.arrayFrom(i.values())}function kp(r){return r.flags&262144?Nl(r):r.flags&8388608?hy(r):r.flags&16777216?jE(r):l(r)}function Nl(r){return cr(r)?Qm(r):void 0}function hy(r){return cr(r)?WE(r):void 0}function qv(r){var t=Vf(r,!1);return t!==r?t:kp(r)}function WE(r){var t=qv(r.indexType);if(t&&t!==r.indexType){var i=cp(r.objectType,t,r.accessFlags);if(i)return i}var o=qv(r.objectType);if(o&&o!==r.objectType)return cp(o,r.indexType,r.accessFlags)}function Xv(r){if(!r.resolvedDefaultConstraint){var t=OO(r),i=fp(r);r.resolvedDefaultConstraint=Na(t)?i:Na(i)?t:ma([t,i])}return r.resolvedDefaultConstraint}function Yv(r){if(r.root.isDistributive&&r.restrictiveInstantiation!==r){var t=Vf(r.checkType,!1),i=t===r.checkType?kp(t):t;if(i&&i!==r.checkType){var o=L0(r,dm(r.root.checkType,i,r.mapper));if(!(o.flags&131072))return o}}}function yy(r){return Yv(r)||Xv(r)}function jE(r){return cr(r)?yy(r):void 0}function HE(r,t){for(var i,o=!1,s=0,c=r;s<c.length;s++){var L=c[s];if(L.flags&465829888){for(var G=kp(L);G&&G.flags&21233664;)G=kp(G);G&&(i=e.append(i,G),t&&(i=e.append(i,L)))}else L.flags&469892092&&(o=!0)}if(i&&(t||o)){if(o)for(var ce=0,we=r;ce<we.length;ce++){var L=we[ce];L.flags&469892092&&(i=e.append(i,L))}return To(i)}}function l(r){if(r.flags&464781312){var t=Ur(r);return t!==ro&&t!==Ka?t:void 0}return r.flags&4194304?_t:void 0}function ee(r){return l(r)||r}function cr(r){return Ur(r)!==Ka}function Ur(r){if(r.resolvedBaseConstraint)return r.resolvedBaseConstraint;var t=[];return r.resolvedBaseConstraint=Il(i(r),r);function i(c){if(!c.immediateBaseConstraint){if(!E(c,4))return Ka;var L=void 0;if((t.length<10||t.length<50&&!dh(c,t,t.length))&&(t.push(c),L=s(Vf(c,!1)),t.pop()),!Ot()){if(c.flags&262144){var G=mD(c);if(G){var ce=Mr(G,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,gn(c));_e&&!e.isNodeDescendantOf(G,_e)&&!e.isNodeDescendantOf(_e,G)&&e.addRelatedInfo(ce,e.createDiagnosticForNode(_e,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}L=Ka}c.immediateBaseConstraint=L||ro}return c.immediateBaseConstraint}function o(c){var L=i(c);return L!==ro&&L!==Ka?L:void 0}function s(c){if(c.flags&262144){var L=Qm(c);return c.isThisType||!L?L:o(L)}if(c.flags&3145728){for(var G=c.types,ce=[],we=!1,Ue=0,Je=G;Ue<Je.length;Ue++){var ar=Je[Ue],_r=o(ar);_r?(_r!==ar&&(we=!0),ce.push(_r)):we=!0}return we?c.flags&1048576&&ce.length===G.length?ma(ce):c.flags&2097152&&ce.length?To(ce):void 0:c}if(c.flags&4194304)return _t;if(c.flags&134217728){var G=c.types,Gr=e.mapDefined(G,o);return Gr.length===G.length?rg(c.texts,Gr):xt}if(c.flags&268435456){var L=o(c.type);return L?Cy(c.symbol,L):xt}if(c.flags&8388608){var Zr=o(c.objectType),Et=o(c.indexType),Tt=Zr&&Et&&cp(Zr,Et,c.accessFlags);return Tt&&o(Tt)}if(c.flags&16777216){var L=yy(c);return L&&o(L)}return c.flags&33554432?o(c.substitute):c}}function Nt(r){return r.resolvedApparentType||(r.resolvedApparentType=Il(r,r,!0))}function xn(r){if(r.default)r.default===Mi&&(r.default=Ka);else if(r.target){var t=xn(r.target);r.default=t?oi(t,r.mapper):ro}else{r.default=Mi;var i=r.symbol&&e.forEach(r.symbol.declarations,function(s){return e.isTypeParameterDeclaration(s)&&s.default}),o=i?Da(i):ro;r.default===Mi&&(r.default=o)}return r.default}function Bn(r){var t=xn(r);return t!==ro&&t!==Ka?t:void 0}function ga(r){return xn(r)!==Ka}function Ei(r){return!!(r.symbol&&e.forEach(r.symbol.declarations,function(t){return e.isTypeParameterDeclaration(t)&&t.default}))}function li(r){return r.resolvedApparentType||(r.resolvedApparentType=go(r))}function go(r){var t=T0(r);if(t&&!r.declaration.nameType){var i=Nl(t);if(i&&(el(i)||ki(i)))return oi(r,dm(t,i,r.mapper))}return r}function wi(r){var t=r.flags&465829888?l(r)||tr:r;return e.getObjectFlags(t)&32?li(t):t.flags&2097152?Nt(t):t.flags&402653316?er:t.flags&296?vr:t.flags&2112?qk(De>=7):t.flags&528?qr:t.flags&12288?RD(De>=2):t.flags&67108864?Qn:t.flags&4194304?_t:t.flags&2&&!br?Qn:t}function Is(r){return Eo(wi(Eo(r)))}function Ks(r,t,i){for(var o,s,c,L,G,ce=r.flags&1048576,we=ce?0:16777216,Ue=4,Je=ce?0:8,ar=!1,_r=0,Gr=r.types;_r<Gr.length;_r++){var Zr=Gr[_r],Et=wi(Zr);if(!(Ua(Et)||Et.flags&131072)){var Tt=Ii(Et,t,i),At=Tt?e.getDeclarationModifierFlagsFromSymbol(Tt):0;if(Tt){if(ce?we|=Tt.flags&16777216:we&=Tt.flags,!c)c=Tt;else if(Tt!==c){var Vt=(Am(Tt)||Tt)===(Am(c)||c);if(Vt&&F0(c,Tt,function(Ca,Yn){return Ca===Yn?-1:0})===-1)ar=!!c.parent&&!!e.length(mu(c.parent));else{L||(L=new e.Map,L.set(y(c),c));var Nn=y(Tt);L.has(Nn)||L.set(Nn,Tt)}}ce&&Iu(Tt)?Je|=8:!ce&&!Iu(Tt)&&(Je&=-9),Je|=(At&24?0:256)|(At&16?512:0)|(At&8?1024:0)|(At&32?2048:0),I1(Tt)||(Ue=2)}else if(ce){var on=!Ip(t)&&ip(Et,t);on?(Je|=32|(on.isReadonly?8:0),G=e.append(G,ki(Et)?rv(Et)||Nr:on.type)):Gp(Et)&&!(e.getObjectFlags(Et)&4194304)?(Je|=32,G=e.append(G,Nr)):Je|=16}}}if(!(!c||ce&&(L||Je&48)&&Je&1536)){if(!L&&!(Je&16)&&!G)if(ar){var ca=V_(c,c.type);return ca.parent=(s=(o=c.valueDeclaration)===null||o===void 0?void 0:o.symbol)===null||s===void 0?void 0:s.parent,ca.containingType=r,ca.mapper=c.mapper,ca}else return c;for(var la=L?e.arrayFrom(L.values()):[c],di,Aa,Li,Bi=[],Ai,xo=!1,Wt=0,Ft=la;Wt<Ft.length;Wt++){var Tt=Ft[Wt];Ai?Tt.valueDeclaration&&Tt.valueDeclaration!==Ai&&(xo=!0):Ai=Tt.valueDeclaration,di=e.addRange(di,Tt.declarations);var Et=An(Tt);Aa?Et!==Aa&&(Je|=64):(Aa=Et,Li=Ja(Tt).nameType),(mm(Et)||tg(Et))&&(Je|=128),Et.flags&131072&&(Je|=131072),Bi.push(Et)}e.addRange(Bi,G);var _n=fo(4|we,t,Ue|Je);return _n.containingType=r,!xo&&Ai&&(_n.valueDeclaration=Ai,Ai.symbol.parent&&(_n.parent=Ai.symbol.parent)),_n.declarations=di,_n.nameType=Li,Bi.length>2?(_n.checkFlags|=65536,_n.deferralParent=r,_n.deferralConstituents=Bi):_n.type=ce?ma(Bi):To(Bi),_n}}function hs(r,t,i){var o,s,c=!((o=r.propertyCacheWithoutObjectFunctionPropertyAugment)===null||o===void 0)&&o.get(t)||!i?(s=r.propertyCache)===null||s===void 0?void 0:s.get(t):void 0;if(!c&&(c=Ks(r,t,i),c)){var L=i?r.propertyCacheWithoutObjectFunctionPropertyAugment||(r.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):r.propertyCache||(r.propertyCache=e.createSymbolTable());L.set(t,c)}return c}function ic(r,t,i){var o=hs(r,t,i);return o&&!(e.getCheckFlags(o)&16)?o:void 0}function Eo(r){return r.flags&1048576&&r.objectFlags&33554432?r.resolvedReducedType||(r.resolvedReducedType=zu(r)):r.flags&2097152?(r.objectFlags&33554432||(r.objectFlags|=33554432|(e.some(Hm(r),c_)?67108864:0)),r.objectFlags&67108864?en:r):r}function zu(r){var t=e.sameMap(r.types,Eo);if(t===r.types)return r;var i=ma(t);return i.flags&1048576&&(i.resolvedReducedType=i),i}function c_(r){return sm(r)||ap(r)}function sm(r){return!(r.flags&16777216)&&(e.getCheckFlags(r)&131264)===192&&!!(An(r).flags&131072)}function ap(r){return!r.valueDeclaration&&!!(e.getCheckFlags(r)&1024)}function Jm(r,t){if(t.flags&2097152&&e.getObjectFlags(t)&67108864){var i=e.find(Hm(t),sm);if(i)return e.chainDiagnosticMessages(r,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,gn(t,void 0,536870912),Wa(i));var o=e.find(Hm(t),ap);if(o)return e.chainDiagnosticMessages(r,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,gn(t,void 0,536870912),Wa(o))}return r}function Ii(r,t,i){if(r=Is(r),r.flags&524288){var o=Sc(r),s=o.members.get(t);if(s&&If(s))return s;if(i)return;var c=o===yi?Oe:o.callSignatures.length?oe:o.constructSignatures.length?mr:void 0;if(c){var L=hd(c,t);if(L)return L}return hd(Un,t)}if(r.flags&3145728)return ic(r,t,i)}function jg(r,t){if(r.flags&3670016){var i=Sc(r);return t===0?i.callSignatures:i.constructSignatures}return e.emptyArray}function Ni(r,t){return jg(Is(r),t)}function Qv(r,t){return e.find(r,function(i){return i.keyType===t})}function Zv(r,t){for(var i,o,s,c=0,L=r;c<L.length;c++){var G=L[c];G.keyType===xt?i=G:u_(t,G.keyType)&&(o?(s||(s=[o])).push(G):o=G)}return s?Eu(tr,To(e.map(s,function(ce){return ce.type})),e.reduceLeft(s,function(ce,we){return ce&&we.isReadonly},!0)):o||(i&&u_(t,xt)?i:void 0)}function u_(r,t){return Qi(r,t)||t===xt&&Qi(r,wt)||t===wt&&!!(r.flags&128)&&zf(r.value)}function Km(r){if(r.flags&3670016){var t=Sc(r);return t.indexInfos}return e.emptyArray}function Ps(r){return Km(Is(r))}function oc(r,t){return Qv(Ps(r),t)}function tu(r,t){var i;return(i=oc(r,t))===null||i===void 0?void 0:i.type}function $v(r,t){return Ps(r).filter(function(i){return u_(t,i.keyType)})}function zm(r,t){return Zv(Ps(r),t)}function ip(r,t){return zm(r,Ip(t)?na:Lc(e.unescapeLeadingUnderscores(t)))}function eh(r){for(var t,i=0,o=e.getEffectiveTypeParameterDeclarations(r);i<o.length;i++){var s=o[i];t=e.appendIfUnique(t,vl(s.symbol))}return t}function qm(r){var t=[];return r.forEach(function(i,o){Nf(o)||t.push(i)}),t}function Xm(r){return e.isInJSFile(r)&&(r.type&&r.type.kind===314||e.getJSDocParameterTags(r).some(function(t){var i=t.isBracketed,o=t.typeExpression;return i||!!o&&o.type.kind===314}))}function Hg(r,t){if(!e.isExternalModuleNameRelative(r)){var i=ks(Pr,'"'+r+'"',512);return i&&t?Ga(i):i}}function w_(r){if(e.hasQuestionToken(r)||JE(r)||Xm(r))return!0;if(r.initializer){var t=bu(r.parent),i=r.parent.parameters.indexOf(r);return e.Debug.assert(i>=0),i>=Cu(t,3)}var o=e.getImmediatelyInvokedFunctionExpression(r.parent);return o?!r.type&&!r.dotDotDotToken&&r.parent.parameters.indexOf(r)>=o.arguments.length:!1}function vk(r){return e.isPropertyDeclaration(r)&&r.questionToken}function JE(r){if(!e.isJSDocPropertyLikeTag(r))return!1;var t=r.isBracketed,i=r.typeExpression;return t||!!i&&i.type.kind===314}function rh(r,t,i,o){return{kind:r,parameterName:t,parameterIndex:i,type:o}}function lf(r){var t=0;if(r)for(var i=0;i<r.length;i++)Ei(r[i])||(t=i+1);return t}function M_(r,t,i,o){var s=e.length(t);if(!s)return[];var c=e.length(r);if(o||c>=i&&c<=s){for(var L=r?r.slice():[],G=c;G<s;G++)L[G]=dr;for(var ce=n1(o),G=c;G<s;G++){var we=Bn(t[G]);o&&we&&(jf(we,tr)||jf(we,Qn))&&(we=Ze),L[G]=we?oi(we,Ol(t,L)):ce}return L.length=t.length,L}return r&&r.slice()}function bu(r){var t=Zn(r);if(!t.resolvedSignature){var i=[],o=0,s=0,c=void 0,L=!1,G=e.getImmediatelyInvokedFunctionExpression(r),ce=e.isJSDocConstructSignature(r),we=!G&&e.isInJSFile(r)&&e.isValueSignatureDeclaration(r)&&!e.hasJSDocParameterTags(r)&&!e.getJSDocType(r);we&&(o|=32);for(var Ue=ce?1:0;Ue<r.parameters.length;Ue++){var Je=r.parameters[Ue],ar=Je.symbol,_r=e.isJSDocParameterTag(Je)?Je.typeExpression&&Je.typeExpression.type:Je.type;if(ar&&ar.flags&4&&!e.isBindingPattern(Je.name)){var Gr=Uo(Je,ar.escapedName,111551,void 0,void 0,!1);ar=Gr}Ue===0&&ar.escapedName==="this"?(L=!0,c=Je.symbol):i.push(ar),_r&&_r.kind===195&&(o|=2);var Zr=JE(Je)||Je.initializer||Je.questionToken||e.isRestParameter(Je)||G&&i.length>G.arguments.length&&!_r||Xm(Je);Zr||(s=i.length)}if((r.kind===171||r.kind===172)&&l_(r)&&(!L||!c)){var Et=r.kind===171?172:171,Tt=e.getDeclarationOfKind(wn(r),Et);Tt&&(c=W(Tt))}var At=r.kind===170?Hn(Ga(r.parent.symbol)):void 0,Vt=At?At.localTypeParameters:eh(r);(e.hasRestParameter(r)||e.isInJSFile(r)&&hk(r,i))&&(o|=1),(e.isConstructorTypeNode(r)&&e.hasSyntacticModifier(r,128)||e.isConstructorDeclaration(r)&&e.hasSyntacticModifier(r.parent,128))&&(o|=4),t.resolvedSignature=hu(r,Vt,c,i,void 0,void 0,s,o)}return t.resolvedSignature}function hk(r,t){if(e.isJSDocSignature(r)||!zE(r))return!1;var i=e.lastOrUndefined(r.parameters),o=i?e.getJSDocParameterTags(i):e.getJSDocTags(r).filter(e.isJSDocParameterTag),s=e.firstDefined(o,function(L){return L.typeExpression&&e.isJSDocVariadicType(L.typeExpression.type)?L.typeExpression.type:void 0}),c=fo(3,"args",32768);return c.type=s?zs(Da(s.type)):Sn,s&&t.pop(),t.push(c),!0}function KE(r){if(e.isInJSFile(r)&&e.isFunctionLikeDeclaration(r)){var t=e.getJSDocTypeTag(r);return(t==null?void 0:t.typeExpression)&&j_(Da(t.typeExpression))}}function yk(r){var t=KE(r);return t&&_o(t)}function zE(r){var t=Zn(r);return t.containsArgumentsReference===void 0&&(t.flags&8192?t.containsArgumentsReference=!0:t.containsArgumentsReference=i(r.body)),t.containsArgumentsReference;function i(o){if(!o)return!1;switch(o.kind){case 79:return o.escapedText===Jr.escapedName&&Lv(o)===Jr;case 166:case 168:case 171:case 172:return o.name.kind===161&&i(o.name);case 205:case 206:return i(o.expression);default:return!e.nodeStartsNewLexicalEnvironment(o)&&!e.isPartOfTypeNode(o)&&!!e.forEachChild(o,i)}}}function Op(r){if(!r||!r.declarations)return e.emptyArray;for(var t=[],i=0;i<r.declarations.length;i++){var o=r.declarations[i];if(e.isFunctionLike(o)){if(i>0&&o.body){var s=r.declarations[i-1];if(o.parent===s.parent&&o.kind===s.kind&&o.pos===s.end)continue}t.push(bu(o))}}return t}function cD(r){var t=ws(r,r);if(t){var i=ll(t);if(i)return An(i)}return Ze}function f_(r){if(r.thisParameter)return An(r.thisParameter)}function Dc(r){if(!r.resolvedTypePredicate){if(r.target){var t=Dc(r.target);r.resolvedTypePredicate=t?zO(t,r.mapper):to}else if(r.compositeSignatures)r.resolvedTypePredicate=oO(r.compositeSignatures,r.compositeKind)||to;else{var i=r.declaration&&e.getEffectiveReturnTypeNode(r.declaration),o=void 0;if(!i&&e.isInJSFile(r.declaration)){var s=KE(r.declaration);s&&r!==s&&(o=Dc(s))}r.resolvedTypePredicate=i&&e.isTypePredicateNode(i)?bk(i,r):o||to}e.Debug.assert(!!r.resolvedTypePredicate)}return r.resolvedTypePredicate===to?void 0:r.resolvedTypePredicate}function bk(r,t){var i=r.parameterName,o=r.type&&Da(r.type);return i.kind===191?rh(r.assertsModifier?2:0,void 0,void 0,o):rh(r.assertsModifier?3:1,i.escapedText,e.findIndex(t.parameters,function(s){return s.escapedName===i.escapedText}),o)}function uD(r,t,i){return t!==2097152?ma(r,i):To(r)}function _o(r){if(!r.resolvedReturnType){if(!E(r,3))return dr;var t=r.target?oi(_o(r.target),r.mapper):r.compositeSignatures?oi(uD(e.map(r.compositeSignatures,_o),r.compositeKind,2),r.mapper):lm(r.declaration)||(e.nodeIsMissing(r.declaration.body)?Ze:Lb(r.declaration));if(r.flags&8?t=JL(t):r.flags&16&&(t=Jf(t)),!Ot()){if(r.declaration){var i=e.getEffectiveReturnTypeNode(r.declaration);if(i)Mr(i,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(Ke){var o=r.declaration,s=e.getNameOfDeclaration(o);s?Mr(s,e.Diagnostics._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,e.declarationNameToString(s)):Mr(o,e.Diagnostics.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=Ze}r.resolvedReturnType=t}return r.resolvedReturnType}function lm(r){if(r.kind===170)return Hn(Ga(r.parent.symbol));if(e.isJSDocConstructSignature(r))return Da(r.parameters[0].type);var t=e.getEffectiveReturnTypeNode(r);if(t)return Da(t);if(r.kind===171&&l_(r)){var i=e.isInJSFile(r)&&Pf(r);if(i)return i;var o=e.getDeclarationOfKind(wn(r),172),s=_(o);if(s)return s}return yk(r)}function qE(r){return!r.resolvedReturnType&&Qe(r,3)>=0}function Ek(r){return fD(r)||Ze}function fD(r){if(ue(r)){var t=An(r.parameters[r.parameters.length-1]),i=ki(t)?rv(t):t;return i&&tu(i,wt)}}function th(r,t,i,o){var s=XE(r,M_(t,r.typeParameters,lf(r.typeParameters),i));if(o){var c=hC(_o(s));if(c){var L=Np(c);L.typeParameters=o;var G=Np(s);return G.resolvedReturnType=Ym(L),G}}return s}function XE(r,t){var i=r.instantiations||(r.instantiations=new e.Map),o=sc(t),s=i.get(o);return s||i.set(o,s=by(r,t)),s}function by(r,t){return pm(r,Tk(r,t),!0)}function Tk(r,t){return Ol(r.typeParameters,t)}function Jg(r){return r.typeParameters?r.erasedSignatureCache||(r.erasedSignatureCache=Sk(r)):r}function Sk(r){return pm(r,gL(r.typeParameters),!0)}function Dk(r){return r.typeParameters?r.canonicalSignatureCache||(r.canonicalSignatureCache=Lk(r)):r}function Lk(r){return th(r,e.map(r.typeParameters,function(t){return t.target&&!Nl(t.target)?t.target:t}),e.isInJSFile(r.declaration))}function Ak(r){var t=r.typeParameters;if(t){if(r.baseSignatureCache)return r.baseSignatureCache;for(var i=gL(t),o=Ol(t,e.map(t,function(L){return Nl(L)||tr})),s=e.map(t,function(L){return oi(L,o)||tr}),c=0;c<t.length-1;c++)s=bd(s,o);return s=bd(s,i),r.baseSignatureCache=pm(r,Ol(t,s),!0)}return r}function Ym(r){if(!r.isolatedSignatureType){var t=r.declaration?r.declaration.kind:0,i=t===170||t===174||t===179,o=Bl(16);o.members=Le,o.properties=e.emptyArray,o.callSignatures=i?e.emptyArray:[r],o.constructSignatures=i?[r]:e.emptyArray,o.indexInfos=e.emptyArray,r.isolatedSignatureType=o}return r.isolatedSignatureType}function dD(r){return r.members?YE(r.members):void 0}function YE(r){return r.get("__index")}function Eu(r,t,i,o){return{keyType:r,type:t,isReadonly:i,declaration:o}}function pD(r){var t=dD(r);return t?_D(t):e.emptyArray}function _D(r){if(r.declarations){for(var t=[],i=function(L){if(L.parameters.length===1){var G=L.parameters[0];G.type&&v_(Da(G.type),function(ce){Ey(ce)&&!Qv(t,ce)&&t.push(Eu(ce,L.type?Da(L.type):Ze,e.hasEffectiveModifier(L,64),L))})}},o=0,s=r.declarations;o<s.length;o++){var c=s[o];i(c)}return t}return e.emptyArray}function Ey(r){return!!(r.flags&4108)||tg(r)||!!(r.flags&2097152)&&!Yg(r)&&e.some(r.types,Ey)}function mD(r){return e.mapDefined(e.filter(r.symbol&&r.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function Ck(r){var t,i;if(!((t=r.symbol)===null||t===void 0)&&t.declarations)for(var o=0,s=r.symbol.declarations;o<s.length;o++){var c=s[o];if(c.parent.kind===189){var L=e.walkUpParenthesizedTypesAndGetParentAndChild(c.parent.parent),G=L[0],ce=G===void 0?c.parent:G,we=L[1];if(we.kind===177){var Ue=we,Je=iT(Ue);if(Je){var ar=Ue.typeArguments.indexOf(ce);if(ar<Je.length){var _r=Nl(Je[ar]);if(_r){var Gr=Ol(Je,xb(Ue,Je)),Zr=oi(_r,Gr);Zr!==r&&(i=e.append(i,Zr))}}}}else if(we.kind===163&&we.dotDotDotToken||we.kind===185||we.kind===196&&we.dotDotDotToken)i=e.append(i,zs(tr));else if(we.kind===198)i=e.append(i,xt);else if(we.kind===162&&we.parent.kind===194)i=e.append(i,_t);else if(we.kind===194&&we.type&&e.skipParentheses(we.type)===c.parent&&we.parent.kind===188&&we.parent.extendsType===we&&we.parent.checkType.kind===194&&we.parent.checkType.type){var Et=we.parent.checkType,Tt=Da(Et.type);i=e.append(i,oi(Tt,B_(vl(wn(Et.typeParameter)),Et.typeParameter.constraint?Da(Et.typeParameter.constraint):_t)))}}}return i&&To(i)}function Qm(r){if(!r.constraint)if(r.target){var t=Nl(r.target);r.constraint=t?oi(t,r.mapper):ro}else{var i=mD(r);if(!i)r.constraint=Ck(r)||ro;else{var o=Da(i);o.flags&1&&!Ua(o)&&(o=i.parent.parent.kind===194?_t:tr),r.constraint=o}}return r.constraint===ro?void 0:r.constraint}function gD(r){var t=e.getDeclarationOfKind(r.symbol,162),i=e.isJSDocTemplateTag(t.parent)?e.getEffectiveContainerForJSDocTemplateTag(t.parent):t.parent;return i&&wn(i)}function sc(r){var t="";if(r)for(var i=r.length,o=0;o<i;){for(var s=r[o].id,c=1;o+c<i&&r[o+c].id===s+c;)c++;t.length&&(t+=","),t+=s,c>1&&(t+=":"+c),o+=c}return t}function cm(r,t){return r?"@".concat(y(r))+(t?":".concat(sc(t)):""):""}function QE(r,t){for(var i=0,o=0,s=r;o<s.length;o++){var c=s[o];c.flags&t||(i|=e.getObjectFlags(c))}return i&917504}function Uf(r,t){var i=sc(t),o=r.instantiations.get(i);return o||(o=Bl(4,r.symbol),r.instantiations.set(i,o),o.objectFlags|=t?QE(t,0):0,o.target=r,o.resolvedTypeArguments=t),o}function vD(r){var t=Qs(r.flags);return t.symbol=r.symbol,t.objectFlags=r.objectFlags,t.target=r.target,t.resolvedTypeArguments=r.resolvedTypeArguments,t}function ZE(r,t,i,o,s){if(!o){o=G_(t);var c=um(o);s=i?bd(c,i):c}var L=Bl(4,r.symbol);return L.target=r,L.node=t,L.mapper=i,L.aliasSymbol=o,L.aliasTypeArguments=s,L}function vo(r){var t,i;if(!r.resolvedTypeArguments){if(!E(r,6))return((t=r.target.localTypeParameters)===null||t===void 0?void 0:t.map(function(){return dr}))||e.emptyArray;var o=r.node,s=o?o.kind===177?e.concatenate(r.target.outerTypeParameters,xb(o,r.target.localTypeParameters)):o.kind===182?[Da(o.elementType)]:e.map(o.elements,Da):e.emptyArray;Ot()?r.resolvedTypeArguments=r.mapper?bd(s,r.mapper):s:(r.resolvedTypeArguments=((i=r.target.localTypeParameters)===null||i===void 0?void 0:i.map(function(){return dr}))||e.emptyArray,Mr(r.node||_e,r.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,r.target.symbol&&Wa(r.target.symbol)))}return r.resolvedTypeArguments}function op(r){return e.length(r.target.typeParameters)}function hD(r,t){var i=po(Ga(t)),o=i.localTypeParameters;if(o){var s=e.length(r.typeArguments),c=lf(o),L=e.isInJSFile(r),G=!Ke&&L;if(!G&&(s<c||s>o.length)){var ce=L&&e.isExpressionWithTypeArguments(r)&&!e.isJSDocAugmentsTag(r.parent),we=c===o.length?ce?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:ce?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Ue=gn(i,void 0,2);if(Mr(r,we,Ue,c,o.length),!L)return dr}if(r.kind===177&&BD(r,e.length(r.typeArguments)!==o.length))return ZE(i,r,void 0);var Je=e.concatenate(i.outerTypeParameters,M_(Ly(r),o,c,L));return Uf(i,Je)}return Rp(r,t)?i:dr}function Zm(r,t,i,o){var s=po(r);if(s===Vr&&V.has(r.escapedName)&&t&&t.length===1)return Cy(r,t[0]);var c=Ja(r),L=c.typeParameters,G=sc(t)+cm(i,o),ce=c.instantiations.get(G);return ce||c.instantiations.set(G,ce=bL(s,Ol(L,M_(t,L,lf(L),e.isInJSFile(r.valueDeclaration))),i,o)),ce}function xk(r,t){if(e.getCheckFlags(t)&1048576){var i=Ly(r),o=cm(t,i),s=me.get(o);return s||(s=jo(1,"error"),s.aliasSymbol=t,s.aliasTypeArguments=i,me.set(o,s)),s}var c=po(t),L=Ja(t).typeParameters;if(L){var G=e.length(r.typeArguments),ce=lf(L);if(G<ce||G>L.length)return Mr(r,ce===L.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Wa(t),ce,L.length),dr;var we=G_(r),Ue=we&&(yD(t)||!yD(we))?we:void 0;return Zm(t,Ly(r),Ue,um(Ue))}return Rp(r,t)?c:dr}function yD(r){var t,i=(t=r.declarations)===null||t===void 0?void 0:t.find(e.isTypeAlias);return!!(i&&e.getContainingFunction(i))}function Ik(r){switch(r.kind){case 177:return r.typeName;case 227:var t=r.expression;if(e.isEntityNameExpression(t))return t}}function bD(r){return r.parent?"".concat(bD(r.parent),".").concat(r.escapedName):r.escapedName}function Ty(r){var t=r.kind===160?r.right:r.kind===205?r.name:r,i=t.escapedText;if(i){var o=r.kind===160?Ty(r.left):r.kind===205?Ty(r.expression):void 0,s=o?"".concat(bD(o),".").concat(i):i,c=Ne.get(s);return c||(Ne.set(s,c=fo(524288,i,1048576)),c.parent=o,c.declaredType=et),c}return We}function $m(r,t,i){var o=Ik(r);if(!o)return We;var s=rs(o,t,i);return s&&s!==We?s:i?We:Ty(o)}function Sy(r,t){if(t===We)return dr;if(t=Sf(t)||t,t.flags&96)return hD(r,t);if(t.flags&524288)return xk(r,t);var i=s_(t);if(i)return Rp(r,t)?kl(i):dr;if(t.flags&111551&&Dy(r)){var o=Nk(r,t);return o||($m(r,788968),An(t))}return dr}function Nk(r,t){var i=Zn(r);if(!i.resolvedJSDocType){var o=An(t),s=o;if(t.valueDeclaration){var c=r.kind===199&&r.qualifier;o.symbol&&o.symbol!==t&&c&&(s=Sy(r,o.symbol))}i.resolvedJSDocType=s}return i.resolvedJSDocType}function ED(r,t){if(t.flags&3||t===r)return r;var i="".concat(Bc(r),">").concat(Bc(t)),o=or.get(i);if(o)return o;var s=Qs(33554432);return s.baseType=r,s.substitute=t,or.set(i,s),s}function TD(r){return r.kind===183&&r.elements.length===1}function SD(r,t,i){return TD(t)&&TD(i)?SD(r,t.elements[0],i.elements[0]):d_(Da(t))===r?Da(i):void 0}function DD(r,t){for(var i,o=!0;t&&!e.isStatement(t)&&t.kind!==318;){var s=t.parent;if(s.kind===163&&(o=!o),(o||r.flags&8650752)&&s.kind===188&&t===s.trueType){var c=SD(r,s.checkType,s.extendsType);c&&(i=e.append(i,c))}t=s}return i?ED(r,To(e.append(i,r))):r}function Dy(r){return!!(r.flags&4194304)&&(r.kind===177||r.kind===199)}function Rp(r,t){return r.typeArguments?(Mr(r,e.Diagnostics.Type_0_is_not_generic,t?Wa(t):r.typeName?e.declarationNameToString(r.typeName):f),!1):!0}function LD(r){if(e.isIdentifier(r.typeName)){var t=r.typeArguments;switch(r.typeName.escapedText){case"String":return Rp(r),xt;case"Number":return Rp(r),wt;case"Boolean":return Rp(r),Jn;case"Void":return Rp(r),Wn;case"Undefined":return Rp(r),Nr;case"Null":return Rp(r),ut;case"Function":case"function":return Rp(r),Oe;case"array":return(!t||!t.length)&&!Ke?Sn:void 0;case"promise":return(!t||!t.length)&&!Ke?Nh(Ze):void 0;case"Object":if(t&&t.length===2){if(e.isJSDocIndexSignature(r)){var i=Da(t[0]),o=Da(t[1]),s=i===xt||i===wt?[Eu(i,o,!1)]:e.emptyArray;return ts(void 0,Le,e.emptyArray,e.emptyArray,s)}return Ze}return Rp(r),Ke?void 0:Ze}}}function kk(r){var t=Da(r.type);return br?Uy(t,65536):t}function nh(r){var t=Zn(r);if(!t.resolvedType){if(e.isConstTypeReference(r)&&e.isAssertionExpression(r.parent))return t.resolvedSymbol=We,t.resolvedType=Ss(r.parent.expression);var i=void 0,o=void 0,s=788968;Dy(r)&&(o=LD(r),o||(i=$m(r,s,!0),i===We?i=$m(r,s|111551):$m(r,s),o=Sy(r,i))),o||(i=$m(r,s),o=Sy(r,i)),t.resolvedSymbol=i,t.resolvedType=o}return t.resolvedType}function Ly(r){return e.map(r.typeArguments,Da)}function AD(r){var t=Zn(r);if(!t.resolvedType){var i=e.isThisIdentifier(r.exprName)?ib(r.exprName):ui(r.exprName);t.resolvedType=kl(wl(i))}return t.resolvedType}function CD(r,t){function i(s){var c=s.declarations;if(c)for(var L=0,G=c;L<G.length;L++){var ce=G[L];switch(ce.kind){case 256:case 257:case 259:return ce}}}if(!r)return t?va:Qn;var o=po(r);return o.flags&524288?e.length(o.typeParameters)!==t?(Mr(i(r),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(r),t),t?va:Qn):o:(Mr(i(r),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(r)),t?va:Qn)}function xD(r,t){return Kg(r,111551,t?e.Diagnostics.Cannot_find_global_value_0:void 0)}function ID(r,t){return Kg(r,788968,t?e.Diagnostics.Cannot_find_global_type_0:void 0)}function $E(r,t,i){var o=Kg(r,788968,i?e.Diagnostics.Cannot_find_global_type_0:void 0);if(o&&(po(o),e.length(Ja(o).typeParameters)!==t)){var s=o.declarations&&e.find(o.declarations,e.isTypeAliasDeclaration);Mr(s,e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(o),t);return}return o}function Kg(r,t,i){return Uo(void 0,r,t,i,r,!1,!1,!1)}function $s(r,t,i){var o=ID(r,i);return o||i?CD(o,t):void 0}function Ok(){return cs||(cs=$s("TypedPropertyDescriptor",1,!0)||va)}function Rk(){return pe||(pe=$s("TemplateStringsArray",0,!0)||Qn)}function ND(){return Rr||(Rr=$s("ImportMeta",0,!0)||Qn)}function wk(){if(!ft){var r=fo(0,"ImportMetaExpression"),t=ND(),i=fo(4,"meta",8);i.parent=r,i.type=t;var o=e.createSymbolTable([i]);r.members=o,ft=ts(r,o,e.emptyArray,e.emptyArray,e.emptyArray)}return ft}function kD(r){return Zt||(Zt=$s("ImportCallOptions",0,r))||Qn}function OD(r){return $a||($a=xD("Symbol",r))}function Mk(r){return Ji||(Ji=ID("SymbolConstructor",r))}function RD(r){return So||(So=$s("Symbol",0,r))||Qn}function ah(r){return bt||(bt=$s("Promise",1,r))||va}function wD(r){return Pn||(Pn=$s("PromiseLike",1,r))||va}function e0(r){return da||(da=xD("Promise",r))}function Pk(r){return ei||(ei=$s("PromiseConstructorLike",0,r))||Qn}function Fk(r){return Ro||(Ro=$s("AsyncIterable",1,r))||va}function Gk(r){return ko||(ko=$s("AsyncIterator",3,r))||va}function Bk(r){return es||(es=$s("AsyncIterableIterator",1,r))||va}function Uk(r){return as||(as=$s("AsyncGenerator",3,r))||va}function MD(r){return bi||(bi=$s("Iterable",1,r))||va}function Vk(r){return xi||(xi=$s("Iterator",3,r))||va}function Wk(r){return ka||(ka=$s("IterableIterator",1,r))||va}function jk(r){return mi||(mi=$s("Generator",3,r))||va}function Hk(r){return Xi||(Xi=$s("IteratorYieldResult",1,r))||va}function Jk(r){return Gi||(Gi=$s("IteratorReturnResult",1,r))||va}function PD(r,t){t===void 0&&(t=0);var i=Kg(r,788968,void 0);return i&&CD(i,t)}function Kk(){return Re||(Re=$E("Extract",2,!0)||We),Re===We?void 0:Re}function zk(){return Qr||(Qr=$E("Omit",2,!0)||We),Qr===We?void 0:Qr}function r0(r){return vn||(vn=$E("Awaited",1,r)||(r?We:void 0)),vn===We?void 0:vn}function qk(r){return Xn||(Xn=$s("BigInt",0,r))||Qn}function zg(r,t){return r!==va?Uf(r,t):Qn}function FD(r){return zg(Ok(),[r])}function Xk(r){return zg(MD(!0),[r])}function zs(r,t){return zg(t?Be:se,[r])}function t0(r){switch(r.kind){case 184:return 2;case 185:return GD(r);case 196:return r.questionToken?2:r.dotDotDotToken?GD(r):1;default:return 1}}function GD(r){return lh(r.type)?4:8}function Yk(r){var t=Zk(r.parent),i=lh(r);if(i)return t?Be:se;var o=e.map(r.elements,t0),s=e.some(r.elements,function(c){return c.kind!==196});return n0(o,t,s?void 0:r.elements)}function BD(r,t){return!!G_(r)||UD(r)&&(r.kind===182?yd(r.elementType):r.kind===183?e.some(r.elements,yd):t||e.some(r.typeArguments,yd))}function UD(r){var t=r.parent;switch(t.kind){case 190:case 196:case 177:case 186:case 187:case 193:case 188:case 192:case 182:case 183:return UD(t);case 258:return!0}return!1}function yd(r){switch(r.kind){case 177:return Dy(r)||!!($m(r,788968).flags&524288);case 180:return!0;case 192:return r.operator!==153&&yd(r.type);case 190:case 184:case 196:case 314:case 312:case 313:case 307:return yd(r.type);case 185:return r.type.kind!==182||yd(r.type.elementType);case 186:case 187:return e.some(r.types,yd);case 193:return yd(r.objectType)||yd(r.indexType);case 188:return yd(r.checkType)||yd(r.extendsType)||yd(r.trueType)||yd(r.falseType)}return!1}function Qk(r){var t=Zn(r);if(!t.resolvedType){var i=Yk(r);if(i===va)t.resolvedType=Qn;else if(!(r.kind===183&&e.some(r.elements,function(s){return!!(t0(s)&8)}))&&BD(r))t.resolvedType=r.kind===183&&r.elements.length===0?i:ZE(i,r,void 0);else{var o=r.kind===182?[Da(r.elementType)]:e.map(r.elements,Da);t.resolvedType=a0(i,o)}}return t.resolvedType}function Zk(r){return e.isTypeOperatorNode(r)&&r.operator===144}function Tu(r,t,i,o){i===void 0&&(i=!1);var s=n0(t||e.map(r,function(c){return 1}),i,o);return s===va?Qn:r.length?a0(s,r):s}function n0(r,t,i){if(r.length===1&&r[0]&4)return t?Be:se;var o=e.map(r,function(c){return c&1?"#":c&2?"?":c&4?".":"*"}).join()+(t?"R":"")+(i&&i.length?","+e.map(i,N).join(","):""),s=tt.get(o);return s||tt.set(o,s=$k(r,t,i)),s}function $k(r,t,i){var o=r.length,s=e.countWhere(r,function(Et){return!!(Et&9)}),c,L=[],G=0;if(o){c=new Array(o);for(var ce=0;ce<o;ce++){var we=c[ce]=nc(),Ue=r[ce];if(G|=Ue,!(G&12)){var Je=fo(4|(Ue&2?16777216:0),""+ce,t?8:0);Je.tupleLabelDeclaration=i==null?void 0:i[ce],Je.type=we,L.push(Je)}}}var ar=L.length,_r=fo(4,"length");if(G&12)_r.type=wt;else{for(var Gr=[],ce=s;ce<=o;ce++)Gr.push(Wf(ce));_r.type=ma(Gr)}L.push(_r);var Zr=Bl(12);return Zr.typeParameters=c,Zr.outerTypeParameters=void 0,Zr.localTypeParameters=c,Zr.instantiations=new e.Map,Zr.instantiations.set(sc(Zr.typeParameters),Zr),Zr.target=Zr,Zr.resolvedTypeArguments=Zr.typeParameters,Zr.thisType=nc(),Zr.thisType.isThisType=!0,Zr.thisType.constraint=Zr,Zr.declaredProperties=L,Zr.declaredCallSignatures=e.emptyArray,Zr.declaredConstructSignatures=e.emptyArray,Zr.declaredIndexInfos=e.emptyArray,Zr.elementFlags=r,Zr.minLength=s,Zr.fixedLength=ar,Zr.hasRestElement=!!(G&12),Zr.combinedFlags=G,Zr.readonly=t,Zr.labeledElementDeclarations=i,Zr}function a0(r,t){return r.objectFlags&8?VD(r,t):Uf(r,t)}function VD(r,t){var i,o,s;if(!(r.combinedFlags&14))return Uf(r,t);if(r.combinedFlags&8){var c=e.findIndex(t,function(Tt,At){return!!(r.elementFlags[At]&8&&Tt.flags&1179648)});if(c>=0)return ih(e.map(t,function(Tt,At){return r.elementFlags[At]&8?Tt:tr}))?ds(t[c],function(Tt){return VD(r,e.replaceElement(t,c,Tt))}):dr}for(var L=[],G=[],ce=[],we=-1,Ue=-1,Je=-1,ar=function(Tt){var At=t[Tt],Vt=r.elementFlags[Tt];if(Vt&8)if(At.flags&58982400||El(At))Et(At,8,(i=r.labeledElementDeclarations)===null||i===void 0?void 0:i[Tt]);else if(ki(At)){var Nn=vo(At);if(Nn.length+L.length>=1e4)return Mr(_e,e.isPartOfTypeNode(_e)?e.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:e.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent),{value:dr};e.forEach(Nn,function(on,ca){var la;return Et(on,At.target.elementFlags[ca],(la=At.target.labeledElementDeclarations)===null||la===void 0?void 0:la[ca])})}else Et(_p(At)&&tu(At,wt)||dr,4,(o=r.labeledElementDeclarations)===null||o===void 0?void 0:o[Tt]);else Et(At,Vt,(s=r.labeledElementDeclarations)===null||s===void 0?void 0:s[Tt])},_r=0;_r<t.length;_r++){var Gr=ar(_r);if(typeof Gr=="object")return Gr.value}for(var _r=0;_r<we;_r++)G[_r]&2&&(G[_r]=1);Ue>=0&&Ue<Je&&(L[Ue]=ma(e.sameMap(L.slice(Ue,Je+1),function(Tt,At){return G[Ue+At]&8?Hl(Tt,wt):Tt})),L.splice(Ue+1,Je-Ue),G.splice(Ue+1,Je-Ue),ce==null||ce.splice(Ue+1,Je-Ue));var Zr=n0(G,r.readonly,ce);return Zr===va?Qn:G.length?Uf(Zr,L):Zr;function Et(Tt,At,Vt){At&1&&(we=G.length),At&4&&Ue<0&&(Ue=G.length),At&6&&(Je=G.length),L.push(Tt),G.push(At),ce&&Vt?ce.push(Vt):ce=void 0}}function qg(r,t,i){i===void 0&&(i=0);var o=r.target,s=op(r)-i;return t>o.fixedLength?FR(r)||Tu(e.emptyArray):Tu(vo(r).slice(t,s),o.elementFlags.slice(t,s),!1,o.labeledElementDeclarations&&o.labeledElementDeclarations.slice(t,s))}function WD(r){return ma(e.append(e.arrayOf(r.target.fixedLength,function(t){return Lc(""+t)}),qu(r.target.readonly?Be:se)))}function jD(r,t){var i=e.findIndex(r.elementFlags,function(o){return!(o&t)});return i>=0?i:r.elementFlags.length}function Ay(r,t){return r.elementFlags.length-e.findLastIndex(r.elementFlags,function(i){return!(i&t)})-1}function eO(r){return Wl(Da(r.type),!0)}function Bc(r){return r.id}function sp(r,t){return e.binarySearch(r,t,Bc,e.compareValues)>=0}function i0(r,t){var i=e.binarySearch(r,t,Bc,e.compareValues);return i<0?(r.splice(~i,0,t),!0):!1}function rO(r,t,i){var o=i.flags;if(o&1048576)return HD(r,t|(iO(i)?1048576:0),i.types);if(!(o&131072))if(t|=o&205258751,o&465829888&&(t|=33554432),i===fr&&(t|=8388608),!br&&o&98304)e.getObjectFlags(i)&131072||(t|=4194304);else{var s=r.length,c=s&&i.id>r[s-1].id?~s:e.binarySearch(r,i,Bc,e.compareValues);c<0&&r.splice(~c,0,i)}return t}function HD(r,t,i){for(var o=0,s=i;o<s.length;o++){var c=s[o];t=rO(r,t,c)}return t}function tO(r,t){var i=sc(r),o=fe.get(i);if(o)return o;for(var s=t&&e.some(r,function(Et){return!!(Et.flags&524288)&&!El(Et)&&I0(Sc(Et))}),c=r.length,L=c,G=0;L>0;){L--;var ce=r[L];if(s||ce.flags&469499904)for(var we=ce.flags&61603840?e.find(Yi(ce),function(Et){return Su(An(Et))}):void 0,Ue=we&&kl(An(we)),Je=0,ar=r;Je<ar.length;Je++){var _r=ar[Je];if(ce!==_r){if(G===1e5){var Gr=G/(c-L)*c;if(Gr>1e6){e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:r.map(function(Et){return Et.id})}),Mr(_e,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}}if(G++,we&&_r.flags&61603840){var Zr=ia(_r,we.escapedName);if(Zr&&Su(Zr)&&kl(Zr)!==Ue)continue}if(Hf(ce,_r,ri)&&(!(e.getObjectFlags(O_(ce))&1)||!(e.getObjectFlags(O_(_r))&1)||_m(ce,_r))){e.orderedRemoveItemAt(r,L);break}}}}return fe.set(i,r),r}function nO(r,t,i){for(var o=r.length;o>0;){o--;var s=r[o],c=s.flags,L=c&402653312&&t&4||c&256&&t&8||c&2048&&t&64||c&8192&&t&4096||i&&c&32768&&t&16384||Mp(s)&&sp(r,s.regularType);L&&e.orderedRemoveItemAt(r,o)}}function aO(r){var t=e.filter(r,tg);if(t.length)for(var i=r.length,o=function(){i--;var s=r[i];s.flags&128&&e.some(t,function(c){return rA(s,c)})&&e.orderedRemoveItemAt(r,i)};i>0;)o()}function iO(r){return!!(r.flags&1048576&&(r.aliasSymbol||r.origin))}function JD(r,t){for(var i=0,o=t;i<o.length;i++){var s=o[i];if(s.flags&1048576){var c=s.origin;s.aliasSymbol||c&&!(c.flags&1048576)?e.pushIfUnique(r,s):c&&c.flags&1048576&&JD(r,c.types)}}}function o0(r,t){var i=Jd(r);return i.types=t,i}function ma(r,t,i,o,s){if(t===void 0&&(t=1),r.length===0)return en;if(r.length===1)return r[0];var c=[],L=HD(c,0,r);if(t!==0){if(L&3)return L&1?L&8388608?fr:Ze:L&65536||sp(c,tr)?tr:xr;if(de&&L&32768){var G=e.binarySearch(c,vt,Bc,e.compareValues);G>=0&&sp(c,Nr)&&e.orderedRemoveItemAt(c,G)}if((L&402664320||L&16384&&L&32768)&&nO(c,L,!!(t&2)),L&128&&L&134217728&&aO(c),t===2&&(c=tO(c,!!(L&524288)),!c))return dr;if(c.length===0)return L&65536?L&4194304?ut:ht:L&32768?L&4194304?Nr:zr:en}if(!s&&L&1048576){var ce=[];JD(ce,r);for(var we=[],Ue=function(At){e.some(ce,function(Vt){return sp(Vt.types,At)})||we.push(At)},Je=0,ar=c;Je<ar.length;Je++){var _r=ar[Je];Ue(_r)}if(!i&&ce.length===1&&we.length===0)return ce[0];var Gr=e.reduceLeft(ce,function(At,Vt){return At+Vt.types.length},0);if(Gr+we.length===c.length){for(var Zr=0,Et=ce;Zr<Et.length;Zr++){var _r=Et[Zr];i0(we,_r)}s=o0(1048576,we)}}var Tt=(L&36323363?0:65536)|(L&2097152?33554432:0);return l0(c,Tt,i,o,s)}function oO(r,t){for(var i,o=[],s=0,c=r;s<c.length;s++){var L=c[s],G=Dc(L);if(!G||G.kind===2||G.kind===3){if(t!==2097152)continue;return}if(i){if(!s0(i,G))return}else i=G;o.push(G.type)}if(i){var ce=uD(o,t);return rh(i.kind,i.parameterName,i.parameterIndex,ce)}}function s0(r,t){return r.kind===t.kind&&r.parameterIndex===t.parameterIndex}function l0(r,t,i,o,s){if(r.length===0)return en;if(r.length===1)return r[0];var c=s?s.flags&1048576?"|".concat(sc(s.types)):s.flags&2097152?"&".concat(sc(s.types)):"#".concat(s.type.id,"|").concat(sc(r)):sc(r),L=c+cm(i,o),G=Rt.get(L);return G||(G=Qs(1048576),G.objectFlags=t|QE(r,98304),G.types=r,G.origin=s,G.aliasSymbol=i,G.aliasTypeArguments=o,r.length===2&&r[0].flags&512&&r[1].flags&512&&(G.flags|=16,G.intrinsicName="boolean"),Rt.set(L,G)),G}function sO(r){var t=Zn(r);if(!t.resolvedType){var i=G_(r);t.resolvedType=ma(e.map(r.types,Da),1,i,um(i))}return t.resolvedType}function lO(r,t,i){var o=i.flags;return o&2097152?KD(r,t,i.types):(xL(i)?t&16777216||(t|=16777216,r.set(i.id.toString(),i)):(o&3?i===fr&&(t|=8388608):(br||!(o&98304))&&(de&&i===vt&&(t|=262144,i=Nr),r.has(i.id.toString())||(i.flags&109440&&t&109440&&(t|=67108864),r.set(i.id.toString(),i))),t|=o&205258751),t)}function KD(r,t,i){for(var o=0,s=i;o<s.length;o++){var c=s[o];t=lO(r,t,kl(c))}return t}function cO(r,t){for(var i=r.length;i>0;){i--;var o=r[i],s=o.flags&4&&t&128||o.flags&8&&t&256||o.flags&64&&t&2048||o.flags&4096&&t&8192;s&&e.orderedRemoveItemAt(r,i)}}function uO(r,t){for(var i=0,o=r;i<o.length;i++){var s=o[i];if(!sp(s.types,t)){var c=t.flags&128?xt:t.flags&256?wt:t.flags&2048?Qt:t.flags&8192?na:void 0;if(!c||!sp(s.types,c))return!1}}return!0}function fO(r){for(var t=r.length,i=e.filter(r,function(G){return!!(G.flags&128)});t>0;){t--;var o=r[t];if(o.flags&134217728)for(var s=0,c=i;s<c.length;s++){var L=c[s];if(Ed(L,o)){e.orderedRemoveItemAt(r,t);break}else if(tg(o))return!0}}return!1}function zD(r,t){return e.every(r,function(i){return!!(i.flags&1048576)&&e.some(i.types,function(o){return!!(o.flags&t)})})}function qD(r,t){for(var i=0;i<r.length;i++)r[i]=rl(r[i],function(o){return!(o.flags&t)})}function dO(r){var t,i=e.findIndex(r,function(ar){return!!(e.getObjectFlags(ar)&65536)});if(i<0)return!1;for(var o=i+1;o<r.length;){var s=r[o];e.getObjectFlags(s)&65536?((t||(t=[r[i]])).push(s),e.orderedRemoveItemAt(r,o)):o++}if(!t)return!1;for(var c=[],L=[],G=0,ce=t;G<ce.length;G++)for(var we=ce[G],Ue=0,Je=we.types;Ue<Je.length;Ue++){var s=Je[Ue];i0(c,s)&&uO(t,s)&&i0(L,s)}return r[i]=l0(L,65536),!0}function pO(r,t,i){var o=Qs(2097152);return o.objectFlags=QE(r,98304),o.types=r,o.aliasSymbol=t,o.aliasTypeArguments=i,o}function To(r,t,i){var o=new e.Map,s=KD(o,0,r),c=e.arrayFrom(o.values());if(s&131072)return e.contains(c,St)?St:en;if(br&&s&98304&&s&84410368||s&67108864&&s&402783228||s&402653316&&s&67238776||s&296&&s&469891796||s&2112&&s&469889980||s&12288&&s&469879804||s&49152&&s&469842940||s&134217728&&s&128&&fO(c))return en;if(s&1)return s&8388608?fr:Ze;if(!br&&s&98304)return s&32768?Nr:ut;if((s&4&&s&128||s&8&&s&256||s&64&&s&2048||s&4096&&s&8192)&&cO(c,s),s&16777216&&s&524288&&e.orderedRemoveItemAt(c,e.findIndex(c,xL)),s&262144&&(c[c.indexOf(Nr)]=vt),c.length===0)return tr;if(c.length===1)return c[0];var L=sc(c)+cm(t,i),G=cn.get(L);if(!G){if(s&1048576)if(dO(c))G=To(c,t,i);else if(zD(c,32768)){var ce=de&&e.some(c,function(Je){return sp(Je.types,vt)})?vt:Nr;qD(c,32768),G=ma([To(c),ce],1,t,i)}else if(zD(c,65536))qD(c,65536),G=ma([To(c),ut],1,t,i);else{if(!ih(c))return dr;var we=_O(c),Ue=e.some(we,function(Je){return!!(Je.flags&2097152)})?o0(2097152,c):void 0;G=ma(we,1,t,i,Ue)}else G=pO(c,t,i);cn.set(L,G)}return G}function XD(r){return e.reduceLeft(r,function(t,i){return i.flags&1048576?t*i.types.length:i.flags&131072?0:t},1)}function ih(r){var t=XD(r);return t>=1e5?(e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:r.map(function(i){return i.id}),size:t}),Mr(_e,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function _O(r){for(var t=XD(r),i=[],o=0;o<t;o++){for(var s=r.slice(),c=o,L=r.length-1;L>=0;L--)if(r[L].flags&1048576){var G=r[L].types,ce=G.length;s[L]=G[c%ce],c=Math.floor(c/ce)}var we=To(s);we.flags&131072||i.push(we)}return i}function mO(r){var t=Zn(r);if(!t.resolvedType){var i=G_(r);t.resolvedType=To(e.map(r.types,Da),i,um(i))}return t.resolvedType}function YD(r,t){var i=Qs(4194304);return i.type=r,i.stringsOnly=t,i}function gO(r){var t=Jd(4194304);return t.type=r,t}function QD(r,t){return t?r.resolvedStringIndexType||(r.resolvedStringIndexType=YD(r,!0)):r.resolvedIndexType||(r.resolvedIndexType=YD(r,!1))}function vO(r,t,i){var o=eu(r),s=Tc(r),c=of(r.target||r);if(!c&&!i)return s;var L=[];if(Wm(r)){if(F_(s))return QD(r,t);var G=wi(jm(r));Kv(G,8576,t,we)}else v_(Vm(s),we);F_(s)&&v_(s,we);var ce=i?rl(ma(L),function(Ue){return!(Ue.flags&5)}):ma(L);if(ce.flags&1048576&&s.flags&1048576&&sc(ce.types)===sc(s.types))return s;return ce;function we(Ue){var Je=c?oi(c,Zg(r.mapper,o,Ue)):Ue;L.push(Je===xt?oa:Je)}}function hO(r){var t=eu(r);return i(of(r)||t);function i(o){return o.flags&68157439?!0:o.flags&16777216?o.root.isDistributive&&o.checkType===t:o.flags&137363456?e.every(o.types,i):o.flags&8388608?i(o.objectType)&&i(o.indexType):o.flags&33554432?i(o.substitute):o.flags&268435456?i(o.type):!1}}function lp(r){return e.isPrivateIdentifier(r)?en:e.isIdentifier(r)?Lc(e.unescapeLeadingUnderscores(r.escapedText)):kl(e.isComputedPropertyName(r)?qf(r):ui(r))}function eg(r,t,i){if(i||!(e.getDeclarationModifierFlagsFromSymbol(r)&24)){var o=Ja(Ug(r)).nameType;if(!o){var s=e.getNameOfDeclaration(r.valueDeclaration);o=r.escapedName==="default"?Lc("default"):s&&lp(s)||(e.isKnownSymbol(r)?void 0:Lc(e.symbolName(r)))}if(o&&o.flags&t)return o}return en}function ZD(r,t){return!!(r.flags&t||r.flags&2097152&&e.some(r.types,function(i){return ZD(i,t)}))}function yO(r,t,i){var o=i&&(e.getObjectFlags(r)&7||r.aliasSymbol)?gO(r):void 0,s=e.map(Yi(r),function(L){return eg(L,t)}),c=e.map(Ps(r),function(L){return L!==Yo&&ZD(L.keyType,t)?L.keyType===xt&&t&8?oa:L.keyType:en});return ma(e.concatenate(s,c),1,void 0,void 0,o)}function qu(r,t,i){return t===void 0&&(t=ur),r=Eo(r),r.flags&1048576?To(e.map(r.types,function(o){return qu(o,t,i)})):r.flags&2097152?ma(e.map(r.types,function(o){return qu(o,t,i)})):r.flags&58982400||og(r)||El(r)&&!hO(r)?QD(r,t):e.getObjectFlags(r)&32?vO(r,t,i):r===fr?fr:r.flags&2?en:r.flags&131073?_t:yO(r,(i?128:402653316)|(t?0:12584),t===ur&&!i)}function $D(r){if(ur)return r;var t=Kk();return t?Zm(t,[r,xt]):xt}function bO(r){var t=$D(qu(r));return t.flags&131072?xt:t}function EO(r){var t=Zn(r);if(!t.resolvedType)switch(r.operator){case 140:t.resolvedType=qu(Da(r.type));break;case 153:t.resolvedType=r.type.kind===150?b0(e.walkUpParenthesizedTypes(r.parent)):dr;break;case 144:t.resolvedType=Da(r.type);break;default:throw e.Debug.assertNever(r.operator)}return t.resolvedType}function TO(r){var t=Zn(r);return t.resolvedType||(t.resolvedType=rg(Gt([r.head.text],e.map(r.templateSpans,function(i){return i.literal.text}),!0),e.map(r.templateSpans,function(i){return Da(i.type)}))),t.resolvedType}function rg(r,t){var i=e.findIndex(t,function(we){return!!(we.flags&1179648)});if(i>=0)return ih(t)?ds(t[i],function(we){return rg(r,e.replaceElement(t,i,we))}):dr;if(e.contains(t,fr))return fr;var o=[],s=[],c=r[0];if(!ce(r,t))return xt;if(o.length===0)return Lc(c);if(s.push(c),e.every(s,function(we){return we===""})&&e.every(o,function(we){return!!(we.flags&4)}))return xt;var L="".concat(sc(o),"|").concat(e.map(s,function(we){return we.length}).join(","),"|").concat(s.join("")),G=sr.get(L);return G||sr.set(L,G=DO(s,o)),G;function ce(we,Ue){for(var Je=0;Je<Ue.length;Je++){var ar=Ue[Je];if(ar.flags&101248)c+=SO(ar)||"",c+=we[Je+1];else if(ar.flags&134217728){if(c+=ar.texts[0],!ce(ar.texts,ar.types))return!1;c+=we[Je+1]}else if(F_(ar)||rL(ar))o.push(ar),s.push(c),c=we[Je+1];else return!1}return!0}}function SO(r){return r.flags&128?r.value:r.flags&256?""+r.value:r.flags&2048?e.pseudoBigIntToString(r.value):r.flags&98816?r.intrinsicName:void 0}function DO(r,t){var i=Qs(134217728);return i.texts=r,i.types=t,i}function Cy(r,t){return t.flags&1179648?ds(t,function(i){return Cy(r,i)}):F_(t)?AO(r,t):t.flags&128?Lc(LO(r,t.value)):t}function LO(r,t){switch(V.get(r.escapedName)){case 0:return t.toUpperCase();case 1:return t.toLowerCase();case 2:return t.charAt(0).toUpperCase()+t.slice(1);case 3:return t.charAt(0).toLowerCase()+t.slice(1)}return t}function AO(r,t){var i="".concat(y(r),",").concat(Bc(t)),o=ye.get(i);return o||ye.set(i,o=CO(r,t)),o}function CO(r,t){var i=Qs(268435456);return i.symbol=r,i.type=t,i}function xO(r,t,i,o,s){var c=Qs(8388608);return c.objectType=r,c.indexType=t,c.accessFlags=i,c.aliasSymbol=o,c.aliasTypeArguments=s,c}function Xg(r){if(Ke)return!1;if(e.getObjectFlags(r)&8192)return!0;if(r.flags&1048576)return e.every(r.types,Xg);if(r.flags&2097152)return e.some(r.types,Xg);if(r.flags&465829888){var t=Ur(r);return t!==r&&Xg(t)}return!1}function c0(r,t){return gu(r)?vu(r):t&&e.isPropertyName(t)?e.getPropertyNameForPropertyNameNode(t):void 0}function u0(r,t){if(t.flags&8208){var i=e.findAncestor(r.parent,function(o){return!e.isAccessExpression(o)})||r.parent;return e.isCallLikeExpression(i)?e.isCallOrNewExpression(i)&&e.isIdentifier(r)&&cA(i,r):e.every(t.declarations,function(o){return!e.isFunctionLike(o)||!!(e.getCombinedNodeFlags(o)&134217728)})}return!0}function eL(r,t,i,o,s,c){var L,G=s&&s.kind===206?s:void 0,ce=s&&e.isPrivateIdentifier(s)?void 0:c0(i,s);if(ce!==void 0){if(c&256)return b_(t,ce)||Ze;var we=Ii(t,ce);if(we){if(c&64&&s&&we.declarations&&cv(we)&134217728&&u0(s,we)){var Ue=(L=G==null?void 0:G.argumentExpression)!==null&&L!==void 0?L:e.isIndexedAccessTypeNode(s)?s.indexType:s;kc(Ue,we.declarations,ce)}if(G){if(Ah(we,G,dC(G.expression,t.symbol)),ZC(G,we,e.getAssignmentTargetKind(G))){Mr(G.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Wa(we));return}if(c&8&&(Zn(s).resolvedSymbol=we),iC(G,we))return Cr}var Je=An(we);return G&&e.getAssignmentTargetKind(G)!==1?y_(G,Je):Je}if(Kf(t,ki)&&zf(ce)&&+ce>=0){if(s&&Kf(t,function(on){return!on.target.hasRestElement})&&!(c&16)){var ar=f0(s);ki(t)?Mr(ar,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,gn(t),op(t),e.unescapeLeadingUnderscores(ce)):Mr(ar,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(ce),gn(t))}return Nn(oc(t,wt)),ds(t,function(on){var ca=rv(on)||Nr;return c&1?ma([ca,Nr]):ca})}}if(!(i.flags&98304)&&ys(i,402665900)){if(t.flags&131073)return t;var _r=zm(t,i)||oc(t,xt);if(_r){if(c&2&&_r.keyType!==wt){G&&Mr(G,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,gn(i),gn(r));return}if(s&&_r.keyType===xt&&!ys(i,12)){var ar=f0(s);return Mr(ar,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,gn(i)),c&1?ma([_r.type,Nr]):_r.type}return Nn(_r),c&1?ma([_r.type,Nr]):_r.type}if(i.flags&131072)return en;if(Xg(t))return Ze;if(G&&!Z1(t)){if(Gp(t)){if(Ke&&i.flags&384)return ua.add(e.createDiagnosticForNode(G,e.Diagnostics.Property_0_does_not_exist_on_type_1,i.value,gn(t))),Nr;if(i.flags&12){var Gr=e.map(t.properties,function(on){return An(on)});return ma(e.append(Gr,Nr))}}if(t.symbol===pr&&ce!==void 0&&pr.exports.has(ce)&&pr.exports.get(ce).flags&418)Mr(G,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(ce),gn(t));else if(Ke&&!Xe.suppressImplicitAnyIndexErrors&&!(c&128))if(ce!==void 0&&cC(ce,t)){var Zr=gn(t);Mr(G,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,ce,Zr,Zr+"["+e.getTextOfNode(G.argumentExpression)+"]")}else if(tu(t,wt))Mr(G.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var Et=void 0;if(ce!==void 0&&(Et=P1(ce,t)))Et!==void 0&&Mr(G.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,ce,gn(t),Et);else{var Tt=cP(t,G,i);if(Tt!==void 0)Mr(G,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,gn(t),Tt);else{var At=void 0;if(i.flags&1024)At=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+gn(i)+"]",gn(t));else if(i.flags&8192){var Vt=sl(i.symbol,G);At=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Vt+"]",gn(t))}else i.flags&128||i.flags&256?At=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,i.value,gn(t)):i.flags&12&&(At=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,gn(i),gn(t)));At=e.chainDiagnosticMessages(At,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,gn(o),gn(t)),ua.add(e.createDiagnosticForNodeFromMessageChain(G,At))}}}return}}if(Xg(t))return Ze;if(s){var ar=f0(s);i.flags&384?Mr(ar,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+i.value,gn(t)):i.flags&12?Mr(ar,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,gn(t),gn(i)):Mr(ar,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,gn(i))}if(Na(i))return i;return;function Nn(on){on&&on.isReadonly&&G&&(e.isAssignmentTarget(G)||e.isDeleteTarget(G))&&Mr(G,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,gn(t))}}function f0(r){return r.kind===206?r.argumentExpression:r.kind===193?r.indexType:r.kind===161?r.expression:r}function rL(r){return!!(r.flags&77)}function tg(r){return!!(r.flags&134217728)&&e.every(r.types,rL)}function Yg(r){return!!Qg(r)}function P_(r){return!!(Qg(r)&8388608)}function F_(r){return!!(Qg(r)&16777216)}function Qg(r){return r.flags&3145728?(r.objectFlags&4194304||(r.objectFlags|=4194304|e.reduceLeft(r.types,function(t,i){return t|Qg(i)},0)),r.objectFlags&25165824):r.flags&33554432?(r.objectFlags&4194304||(r.objectFlags|=4194304|Qg(r.substitute)|Qg(r.baseType)),r.objectFlags&25165824):(r.flags&58982400||El(r)||og(r)?8388608:0)|(r.flags&465829888&&!tg(r)?16777216:0)}function oh(r){return!!(r.flags&262144&&r.isThisType)}function Vf(r,t){return r.flags&8388608?NO(r,t):r.flags&16777216?kO(r,t):r}function tL(r,t,i){if(r.flags&3145728){var o=e.map(r.types,function(s){return Vf(Hl(s,t),i)});return r.flags&2097152||i?To(o):ma(o)}}function IO(r,t,i){if(t.flags&1048576){var o=e.map(t.types,function(s){return Vf(Hl(r,s),i)});return i?To(o):ma(o)}}function NO(r,t){var i=t?"simplifiedForWriting":"simplifiedForReading";if(r[i])return r[i]===Ka?r:r[i];r[i]=Ka;var o=Vf(r.objectType,t),s=Vf(r.indexType,t),c=IO(o,s,t);if(c)return r[i]=c;if(!(s.flags&465829888)){var L=tL(o,s,t);if(L)return r[i]=L}if(og(o)&&s.flags&296){var G=By(o,s.flags&8?0:o.target.fixedLength,0,t);if(G)return r[i]=G}return El(o)?r[i]=ds(aL(o,r.indexType),function(ce){return Vf(ce,t)}):r[i]=r}function kO(r,t){var i=r.checkType,o=r.extendsType,s=up(r),c=fp(r);if(c.flags&131072&&d_(s)===d_(i)){if(i.flags&1||Qi(m_(i),m_(o)))return Vf(s,t);if(nL(i,o))return en}else if(s.flags&131072&&d_(c)===d_(i)){if(!(i.flags&1)&&Qi(m_(i),m_(o)))return en;if(i.flags&1||nL(i,o))return Vf(c,t)}return r}function nL(r,t){return!!(ma([om(r,t),en]).flags&131072)}function aL(r,t){var i=Ol([eu(r)],[t]),o=__(r.mapper,i);return oi(yu(r),o)}function Hl(r,t,i,o,s,c){return i===void 0&&(i=0),cp(r,t,i,o,s,c)||(o?dr:tr)}function iL(r,t){return Kf(r,function(i){if(i.flags&384){var o=vu(i);if(zf(o)){var s=+o;return s>=0&&s<t}}return!1})}function cp(r,t,i,o,s,c){if(i===void 0&&(i=0),r===fr||t===fr)return fr;if(IL(r)&&!(t.flags&98304)&&ys(t,12)&&(t=xt),Xe.noUncheckedIndexedAccess&&i&32&&(i|=1),F_(t)||(o&&o.kind!==193?og(r)&&!iL(t,r.target.fixedLength):P_(r)&&!(ki(r)&&iL(t,r.target.fixedLength)))){if(r.flags&3)return r;var L=i&1,G=r.id+","+t.id+","+L+cm(s,c),ce=Or.get(G);return ce||Or.set(G,ce=xO(r,t,L,s,c)),ce}var we=Is(r);if(t.flags&1048576&&!(t.flags&16)){for(var Ue=[],Je=!1,ar=0,_r=t.types;ar<_r.length;ar++){var Gr=_r[ar],Zr=eL(r,we,Gr,t,o,i|(Je?128:0));if(Zr)Ue.push(Zr);else if(o)Je=!0;else return}return Je?void 0:i&4?To(Ue,s,c):ma(Ue,1,s,c)}return eL(r,we,t,t,o,i|8|64)}function oL(r){var t=Zn(r);if(!t.resolvedType){var i=Da(r.objectType),o=Da(r.indexType),s=G_(r),c=Hl(i,o,0,r,s,um(s));t.resolvedType=c.flags&8388608&&c.objectType===i&&c.indexType===o?DD(c,r):c}return t.resolvedType}function d0(r){var t=Zn(r);if(!t.resolvedType){var i=Bl(32,r.symbol);i.declaration=r,i.aliasSymbol=G_(r),i.aliasTypeArguments=um(i.aliasSymbol),t.resolvedType=i,Tc(i)}return t.resolvedType}function d_(r){return r.flags&33554432?r.baseType:r.flags&8388608&&(r.objectType.flags&33554432||r.indexType.flags&33554432)?Hl(d_(r.objectType),d_(r.indexType)):r}function sL(r){return!r.isDistributive&&lL(r.node.checkType)&&lL(r.node.extendsType)}function lL(r){return e.isTupleTypeNode(r)&&e.length(r.elements)===1&&!e.isOptionalTypeNode(r.elements[0])&&!e.isRestTypeNode(r.elements[0])}function p0(r,t){return sL(r)&&ki(t)?vo(t)[0]:t}function _0(r,t,i,o){for(var s,c,L=0;;){if(L===1e3){Mr(_e,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),s=dr;break}var G=sL(r),ce=oi(p0(r,d_(r.checkType)),t),we=Yg(ce),Ue=oi(p0(r,r.extendsType),t);if(ce===fr||Ue===fr)return fr;var Je=void 0;if(r.inferTypeParameters){var ar=nv(r.inferTypeParameters,void 0,0);we||uf(ar.inferences,ce,Ue,1536),Je=t?__(ar.mapper,t):ar.mapper}var _r=Je?oi(p0(r,r.extendsType),Je):Ue;if(!we&&!Yg(_r)){if(!(_r.flags&3)&&(ce.flags&1&&!G||!Qi(wy(ce),wy(_r)))){ce.flags&1&&!G&&(c||(c=[])).push(oi(Da(r.node.trueType),Je||t));var Gr=Da(r.node.falseType);if(Gr.flags&16777216){var Zr=Gr.root;if(Zr.node.parent===r.node&&(!Zr.isDistributive||Zr.checkType===r.checkType)){r=Zr;continue}if(At(Gr,t))continue}s=oi(Gr,t);break}if(_r.flags&3||Qi(m_(ce),m_(_r))){var Et=Da(r.node.trueType),Tt=Je||t;if(At(Et,Tt))continue;s=oi(Et,Tt);break}}s=Qs(16777216),s.root=r,s.checkType=oi(r.checkType,t),s.extendsType=oi(r.extendsType,t),s.mapper=t,s.combinedMapper=Je,s.aliasSymbol=i||r.aliasSymbol,s.aliasTypeArguments=i?o:bd(r.aliasTypeArguments,t);break}return c?ma(e.append(c,s)):s;function At(Vt,Nn){if(Vt.flags&16777216&&Nn){var on=Vt.root;if(on.outerTypeParameters){var ca=__(Vt.mapper,Nn),la=e.map(on.outerTypeParameters,function(Li){return dp(Li,ca)}),di=Ol(on.outerTypeParameters,la),Aa=on.isDistributive?dp(on.checkType,di):void 0;if(!Aa||Aa===on.checkType||!(Aa.flags&1179648))return r=on,t=di,i=void 0,o=void 0,on.aliasSymbol&&L++,!0}}return!1}}function up(r){return r.resolvedTrueType||(r.resolvedTrueType=oi(Da(r.root.node.trueType),r.mapper))}function fp(r){return r.resolvedFalseType||(r.resolvedFalseType=oi(Da(r.root.node.falseType),r.mapper))}function OO(r){return r.resolvedInferredTrueType||(r.resolvedInferredTrueType=r.combinedMapper?oi(Da(r.root.node.trueType),r.combinedMapper):up(r))}function cL(r){var t;return r.locals&&r.locals.forEach(function(i){i.flags&262144&&(t=e.append(t,po(i)))}),t}function RO(r){return r.isDistributive&&(Ry(r.checkType,r.node.trueType)||Ry(r.checkType,r.node.falseType))}function wO(r){var t=Zn(r);if(!t.resolvedType){var i=Da(r.checkType),o=G_(r),s=um(o),c=Hu(r,!0),L=s?c:e.filter(c,function(ce){return Ry(ce,r)}),G={node:r,checkType:i,extendsType:Da(r.extendsType),isDistributive:!!(i.flags&262144),inferTypeParameters:cL(r),outerTypeParameters:L,instantiations:void 0,aliasSymbol:o,aliasTypeArguments:s};t.resolvedType=_0(G,void 0),L&&(G.instantiations=new e.Map,G.instantiations.set(sc(L),t.resolvedType))}return t.resolvedType}function MO(r){var t=Zn(r);return t.resolvedType||(t.resolvedType=vl(wn(r.typeParameter))),t.resolvedType}function uL(r){return e.isIdentifier(r)?[r]:e.append(uL(r.left),r.right)}function PO(r){var t=Zn(r);if(!t.resolvedType){if(r.isTypeOf&&r.typeArguments)return Mr(r,e.Diagnostics.Type_arguments_cannot_be_used_here),t.resolvedSymbol=We,t.resolvedType=dr;if(!e.isLiteralImportTypeNode(r))return Mr(r.argument,e.Diagnostics.String_literal_expected),t.resolvedSymbol=We,t.resolvedType=dr;var i=r.isTypeOf?111551:r.flags&4194304?900095:788968,o=ws(r,r.argument.literal);if(!o)return t.resolvedSymbol=We,t.resolvedType=dr;var s=ll(o,!1);if(e.nodeIsMissing(r.qualifier))if(s.flags&i)t.resolvedType=fL(r,t,s,i);else{var Je=i===111551?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;Mr(r,Je,r.argument.literal.text),t.resolvedSymbol=We,t.resolvedType=dr}else{for(var c=uL(r.qualifier),L=s,G=void 0;G=c.shift();){var ce=c.length?1920:i,we=Ga(wo(L)),Ue=r.isTypeOf?Ii(An(we),G.escapedText):ks(Js(we),G.escapedText,ce);if(!Ue)return Mr(G,e.Diagnostics.Namespace_0_has_no_exported_member_1,sl(L),e.declarationNameToString(G)),t.resolvedType=dr;Zn(G).resolvedSymbol=Ue,Zn(G.parent).resolvedSymbol=Ue,L=Ue}t.resolvedType=fL(r,t,L,i)}}return t.resolvedType}function fL(r,t,i,o){var s=wo(i);return t.resolvedSymbol=s,o===111551?An(i):Sy(r,s)}function dL(r){var t=Zn(r);if(!t.resolvedType){var i=G_(r);if(af(r.symbol).size===0&&!i)t.resolvedType=_i;else{var o=Bl(16,r.symbol);o.aliasSymbol=i,o.aliasTypeArguments=um(i),e.isJSDocTypeLiteral(r)&&r.isArrayType&&(o=zs(o)),t.resolvedType=o}}return t.resolvedType}function G_(r){for(var t=r.parent;e.isParenthesizedTypeNode(t)||e.isJSDocTypeExpression(t)||e.isTypeOperatorNode(t)&&t.operator===144;)t=t.parent;return e.isTypeAlias(t)?wn(t):void 0}function um(r){return r?mu(r):void 0}function m0(r){return!!(r.flags&524288)&&!El(r)}function g0(r){return cf(r)||!!(r.flags&474058748)}function v0(r,t){if(!(r.flags&1048576))return r;if(e.every(r.types,g0))return e.find(r.types,cf)||Qn;var i=e.find(r.types,function(c){return!g0(c)});if(!i)return r;var o=e.find(r.types,function(c){return c!==i&&!g0(c)});if(o)return r;return s(i);function s(c){for(var L=e.createSymbolTable(),G=0,ce=Yi(c);G<ce.length;G++){var we=ce[G];if(!(e.getDeclarationModifierFlagsFromSymbol(we)&24)){if(xy(we)){var Ue=we.flags&65536&&!(we.flags&32768),Je=16777220,ar=fo(Je,we.escapedName,Jv(we)|(t?8:0));ar.type=Ue?Nr:Wl(An(we),!0),ar.declarations=we.declarations,ar.nameType=Ja(we).nameType,ar.syntheticOrigin=we,L.set(we.escapedName,ar)}}}var _r=ts(c.symbol,L,e.emptyArray,e.emptyArray,Ps(c));return _r.objectFlags|=262272,_r}}function wp(r,t,i,o,s){if(r.flags&1||t.flags&1)return Ze;if(r.flags&2||t.flags&2)return tr;if(r.flags&131072)return t;if(t.flags&131072)return r;if(r=v0(r,s),r.flags&1048576)return ih([r,t])?ds(r,function(on){return wp(on,t,i,o,s)}):dr;if(t=v0(t,s),t.flags&1048576)return ih([r,t])?ds(t,function(on){return wp(r,on,i,o,s)}):dr;if(t.flags&473960444)return r;if(P_(r)||P_(t)){if(cf(r))return t;if(r.flags&2097152){var c=r.types,L=c[c.length-1];if(m0(L)&&m0(t))return To(e.concatenate(c.slice(0,c.length-1),[wp(L,t,i,o,s)]))}return To([r,t])}for(var G=e.createSymbolTable(),ce=new e.Set,we=r===Qn?Ps(t):jv([r,t]),Ue=0,Je=Yi(t);Ue<Je.length;Ue++){var ar=Je[Ue];e.getDeclarationModifierFlagsFromSymbol(ar)&24?ce.add(ar.escapedName):xy(ar)&&G.set(ar.escapedName,h0(ar,s))}for(var _r=0,Gr=Yi(r);_r<Gr.length;_r++){var Zr=Gr[_r];if(!(ce.has(Zr.escapedName)||!xy(Zr)))if(G.has(Zr.escapedName)){var ar=G.get(Zr.escapedName),Et=An(ar);if(ar.flags&16777216){var Tt=e.concatenate(Zr.declarations,ar.declarations),At=4|Zr.flags&16777216,Vt=fo(At,Zr.escapedName);Vt.type=ma([An(Zr),J0(Et)]),Vt.leftSpread=Zr,Vt.rightSpread=ar,Vt.declarations=Tt,Vt.nameType=Ja(Zr).nameType,G.set(Zr.escapedName,Vt)}}else G.set(Zr.escapedName,h0(Zr,s))}var Nn=ts(i,G,e.emptyArray,e.emptyArray,e.sameMap(we,function(on){return FO(on,s)}));return Nn.objectFlags|=4456576|o,Nn}function xy(r){var t;return!e.some(r.declarations,e.isPrivateIdentifierClassElementDeclaration)&&(!(r.flags&106496)||!(!((t=r.declarations)===null||t===void 0)&&t.some(function(i){return e.isClassLike(i.parent)})))}function h0(r,t){var i=r.flags&65536&&!(r.flags&32768);if(!i&&t===Iu(r))return r;var o=4|r.flags&16777216,s=fo(o,r.escapedName,Jv(r)|(t?8:0));return s.type=i?Nr:An(r),s.declarations=r.declarations,s.nameType=Ja(r).nameType,s.syntheticOrigin=r,s}function FO(r,t){return r.isReadonly!==t?Eu(r.keyType,r.type,t,r.declaration):r}function sh(r,t,i,o){var s=Qs(r);return s.symbol=i,s.value=t,s.regularType=o||s,s}function fm(r){if(r.flags&2944){if(!r.freshType){var t=sh(r.flags,r.value,r.symbol,r);t.freshType=t,r.freshType=t}return r.freshType}return r}function kl(r){return r.flags&2944?r.regularType:r.flags&1048576?r.regularType||(r.regularType=ds(r,kl)):r}function Mp(r){return!!(r.flags&2944)&&r.freshType===r}function Lc(r){var t;return bn.get(r)||(bn.set(r,t=sh(128,r)),t)}function Wf(r){var t;return In.get(r)||(In.set(r,t=sh(256,r)),t)}function y0(r){var t,i=e.pseudoBigIntToString(r);return zn.get(i)||(zn.set(i,t=sh(2048,r)),t)}function GO(r,t,i){var o,s=typeof r=="string"?"@":"#",c=t+s+r,L=1024|(typeof r=="string"?128:256);return ir.get(c)||(ir.set(c,o=sh(L,r,i)),o)}function BO(r){if(r.literal.kind===104)return ut;var t=Zn(r);return t.resolvedType||(t.resolvedType=kl(ui(r.literal))),t.resolvedType}function UO(r){var t=Qs(8192);return t.symbol=r,t.escapedName="__@".concat(t.symbol.escapedName,"@").concat(y(t.symbol)),t}function b0(r){if(e.isValidESSymbolDeclaration(r)){var t=wn(r),i=Ja(t);return i.uniqueESSymbolType||(i.uniqueESSymbolType=UO(t))}return na}function VO(r){var t=e.getThisContainer(r,!1),i=t&&t.parent;if(i&&(e.isClassLike(i)||i.kind===257)&&!e.isStatic(t)&&(!e.isConstructorDeclaration(t)||e.isNodeDescendantOf(r,t.body)))return Hn(wn(i)).thisType;if(i&&e.isObjectLiteralExpression(i)&&e.isBinaryExpression(i.parent)&&e.getAssignmentDeclarationKind(i.parent)===6)return Hn(wn(i.parent.left).parent).thisType;var o=r.flags&4194304?e.getHostSignatureFromJSDoc(r):void 0;return o&&e.isFunctionExpression(o)&&e.isBinaryExpression(o.parent)&&e.getAssignmentDeclarationKind(o.parent)===3?Hn(wn(o.parent.left).parent).thisType:ou(t)&&e.isNodeDescendantOf(r,t.body)?Hn(wn(t)).thisType:(Mr(r,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),dr)}function Iy(r){var t=Zn(r);return t.resolvedType||(t.resolvedType=VO(r)),t.resolvedType}function pL(r){return Da(lh(r.type)||r.type)}function lh(r){switch(r.kind){case 190:return lh(r.type);case 183:if(r.elements.length===1&&(r=r.elements[0],r.kind===185||r.kind===196&&r.dotDotDotToken))return lh(r.type);break;case 182:return r.elementType}}function WO(r){var t=Zn(r);return t.resolvedType||(t.resolvedType=r.dotDotDotToken?pL(r):Wl(Da(r.type),!0,!!r.questionToken))}function Da(r){return DD(_L(r),r)}function _L(r){switch(r.kind){case 130:case 310:case 311:return Ze;case 154:return tr;case 149:return xt;case 146:return wt;case 157:return Qt;case 133:return Jn;case 150:return na;case 114:return Wn;case 152:return Nr;case 104:return ut;case 143:return en;case 147:return r.flags&131072&&!Ke?Ze:dn;case 138:return Vr;case 191:case 108:return Iy(r);case 195:return BO(r);case 177:return nh(r);case 176:return r.assertsModifier?Wn:Jn;case 227:return nh(r);case 180:return AD(r);case 182:case 183:return Qk(r);case 184:return eO(r);case 186:return sO(r);case 187:return mO(r);case 312:return kk(r);case 314:return Wl(Da(r.type));case 196:return WO(r);case 190:case 313:case 307:return Da(r.type);case 185:return pL(r);case 316:return K3(r);case 178:case 179:case 181:case 320:case 315:case 321:return dL(r);case 192:return EO(r);case 193:return oL(r);case 194:return d0(r);case 188:return wO(r);case 189:return MO(r);case 197:return TO(r);case 199:return PO(r);case 79:case 160:case 205:var t=Vc(r);return t?po(t):dr;default:return dr}}function Ny(r,t,i){if(r&&r.length)for(var o=0;o<r.length;o++){var s=r[o],c=i(s,t);if(s!==c){var L=o===0?[]:r.slice(0,o);for(L.push(c),o++;o<r.length;o++)L.push(i(r[o],t));return L}}return r}function bd(r,t){return Ny(r,t,oi)}function ky(r,t){return Ny(r,t,pm)}function mL(r,t){return Ny(r,t,rR)}function Ol(r,t){return r.length===1?B_(r[0],t?t[0]:Ze):jO(r,t)}function dp(r,t){switch(t.kind){case 0:return r===t.source?t.target:r;case 1:for(var i=t.sources,o=t.targets,s=0;s<i.length;s++)if(r===i[s])return o?o[s]:Ze;return r;case 2:return t.func(r);case 3:case 4:var c=dp(r,t.mapper1);return c!==r&&t.kind===3?oi(c,t.mapper2):dp(c,t.mapper2)}}function B_(r,t){return{kind:0,source:r,target:t}}function jO(r,t){return{kind:1,sources:r,targets:t}}function p_(r){return{kind:2,func:r}}function Oy(r,t,i){return{kind:r,mapper1:t,mapper2:i}}function gL(r){return Ol(r,void 0)}function HO(r,t){return p_(function(i){return e.findIndex(r.inferences,function(o){return o.typeParameter===i})>=t?tr:i})}function __(r,t){return r?Oy(3,r,t):t}function JO(r,t){return r?Oy(4,r,t):t}function dm(r,t,i){return i?Oy(4,B_(r,t),i):B_(r,t)}function Zg(r,t,i){return r?Oy(4,r,B_(t,i)):B_(t,i)}function KO(r){return r.constraint===tr?r:r.restrictiveInstantiation||(r.restrictiveInstantiation=nc(r.symbol),r.restrictiveInstantiation.constraint=tr,r.restrictiveInstantiation)}function vL(r){var t=nc(r.symbol);return t.target=r,t}function zO(r,t){return rh(r.kind,r.parameterName,r.parameterIndex,oi(r.type,t))}function pm(r,t,i){var o;if(r.typeParameters&&!i){o=e.map(r.typeParameters,vL),t=__(Ol(r.typeParameters,o),t);for(var s=0,c=o;s<c.length;s++){var L=c[s];L.mapper=t}}var G=hu(r.declaration,o,r.thisParameter&&E0(r.thisParameter,t),Ny(r.parameters,t,E0),void 0,void 0,r.minArgumentCount,r.flags&39);return G.target=r,G.mapper=t,G}function E0(r,t){var i=Ja(r);if(i.type&&!av(i.type))return r;e.getCheckFlags(r)&1&&(r=i.target,t=__(i.mapper,t));var o=fo(r.flags,r.escapedName,1|e.getCheckFlags(r)&53256);return o.declarations=r.declarations,o.parent=r.parent,o.target=r,o.mapper=t,r.valueDeclaration&&(o.valueDeclaration=r.valueDeclaration),i.nameType&&(o.nameType=i.nameType),o}function qO(r,t,i,o){var s=r.objectFlags&4?r.node:r.symbol.declarations[0],c=Zn(s),L=r.objectFlags&4?c.resolvedType:r.objectFlags&64?r.target:r,G=c.outerTypeParameters;if(!G){var ce=Hu(s,!0);if(ou(s)){var we=eh(s);ce=e.addRange(ce,we)}G=ce||e.emptyArray;var Ue=r.objectFlags&4?[s]:r.symbol.declarations;G=(L.objectFlags&4||L.symbol.flags&8192||L.symbol.flags&2048)&&!L.aliasTypeArguments?e.filter(G,function(At){return e.some(Ue,function(Vt){return Ry(At,Vt)})}):G,c.outerTypeParameters=G}if(G.length){var Je=__(r.mapper,t),ar=e.map(G,function(At){return dp(At,Je)}),_r=i||r.aliasSymbol,Gr=i?o:bd(r.aliasTypeArguments,t),Zr=sc(ar)+cm(_r,Gr);L.instantiations||(L.instantiations=new e.Map,L.instantiations.set(sc(G)+cm(L.aliasSymbol,L.aliasTypeArguments),L));var Et=L.instantiations.get(Zr);if(!Et){var Tt=Ol(G,ar);Et=L.objectFlags&4?ZE(r.target,r.node,Tt,_r,Gr):L.objectFlags&32?hL(L,Tt,_r,Gr):D0(L,Tt,_r,Gr),L.instantiations.set(Zr,Et)}return Et}return r}function XO(r){return!(r.parent.kind===177&&r.parent.typeArguments&&r===r.parent.typeName||r.parent.kind===199&&r.parent.typeArguments&&r===r.parent.qualifier)}function Ry(r,t){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations.length===1){for(var i=r.symbol.declarations[0].parent,o=t;o!==i;o=o.parent)if(!o||o.kind===234||o.kind===188&&e.forEachChild(o.extendsType,s))return!0;return s(t)}return!0;function s(c){switch(c.kind){case 191:return!!r.isThisType;case 79:return!r.isThisType&&e.isPartOfTypeNode(c)&&XO(c)&&_L(c)===r;case 180:return!0;case 168:case 167:return!c.type&&!!c.body||e.some(c.typeParameters,s)||e.some(c.parameters,s)||!!c.type&&s(c.type)}return!!e.forEachChild(c,s)}}function T0(r){var t=Tc(r);if(t.flags&4194304){var i=d_(t.type);if(i.flags&262144)return i}}function hL(r,t,i,o){var s=T0(r);if(s){var c=oi(s,t);if(s!==c)return hA(Eo(c),function(L){if(L.flags&61603843&&L!==fr&&!Ua(L)){if(!r.declaration.nameType){var G=void 0;if(el(L)||L.flags&1&&Qe(s,4)<0&&(G=Nl(s))&&Kf(G,e.or(el,ki)))return QO(L,r,dm(s,L,t));if(og(L))return YO(L,r,s,t);if(ki(L))return ZO(L,r,dm(s,L,t))}return D0(r,dm(s,L,t))}return L},i,o)}return oi(Tc(r),t)===fr?fr:D0(r,t,i,o)}function S0(r,t){return t&1?!0:t&2?!1:r}function YO(r,t,i,o){var s=r.target.elementFlags,c=e.map(vo(r),function(G,ce){var we=s[ce]&8?G:s[ce]&4?zs(G):Tu([G],[s[ce]]);return hL(t,dm(i,we,o))}),L=S0(r.target.readonly,ru(t));return Tu(c,e.map(c,function(G){return 8}),L)}function QO(r,t,i){var o=yL(t,wt,!0,i);return Ua(o)?dr:zs(o,S0(ag(r),ru(t)))}function ZO(r,t,i){var o=r.target.elementFlags,s=e.map(vo(r),function(ce,we){return yL(t,Lc(""+we),!!(o[we]&2),i)}),c=ru(t),L=c&4?e.map(o,function(ce){return ce&1?2:ce}):c&8?e.map(o,function(ce){return ce&2?1:ce}):o,G=S0(r.target.readonly,c);return e.contains(s,dr)?dr:Tu(s,L,G,r.target.labeledElementDeclarations)}function yL(r,t,i,o){var s=Zg(o,eu(r),t),c=oi(yu(r.target||r),s),L=ru(r);return br&&L&4&&!Jo(c,49152)?Jf(c,!0):br&&L&8&&i?Fs(c,524288):c}function D0(r,t,i,o){var s=Bl(r.objectFlags|64,r.symbol);if(r.objectFlags&32){s.declaration=r.declaration;var c=eu(r),L=vL(c);s.typeParameter=L,t=__(B_(c,L),t),L.mapper=t}return s.target=r,s.mapper=t,s.aliasSymbol=i||r.aliasSymbol,s.aliasTypeArguments=i?o:bd(r.aliasTypeArguments,t),s}function L0(r,t,i,o){var s=r.root;if(s.outerTypeParameters){var c=e.map(s.outerTypeParameters,function(Je){return dp(Je,t)}),L=sc(c)+cm(i,o),G=s.instantiations.get(L);if(!G){var ce=Ol(s.outerTypeParameters,c),we=s.checkType,Ue=s.isDistributive?dp(we,ce):void 0;G=Ue&&we!==Ue&&Ue.flags&1179648?hA(Ue,function(Je){return _0(s,dm(we,Je,ce))},i,o):_0(s,ce,i,o),s.instantiations.set(L,G)}return G}return r}function oi(r,t){return r&&t?bL(r,t,void 0,void 0):r}function bL(r,t,i,o){if(!av(r))return r;if(ve===100||he>=5e6)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:r.id,instantiationDepth:ve,instantiationCount:he}),Mr(_e,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),dr;Ge++,he++,ve++;var s=$O(r,t,i,o);return ve--,s}function $O(r,t,i,o){var s=r.flags;if(s&262144)return dp(r,t);if(s&524288){var c=r.objectFlags;if(c&52){if(c&4&&!r.node){var L=r.resolvedTypeArguments,G=bd(L,t);return G!==L?a0(r.target,G):r}return c&1024?eR(r,t):qO(r,t,i,o)}return r}if(s&3145728){var ce=r.flags&1048576?r.origin:void 0,we=ce&&ce.flags&3145728?ce.types:r.types,Ue=bd(we,t);if(Ue===we&&i===r.aliasSymbol)return r;var Je=i||r.aliasSymbol,ar=i?o:bd(r.aliasTypeArguments,t);return s&2097152||ce&&ce.flags&2097152?To(Ue,Je,ar):ma(Ue,1,Je,ar)}if(s&4194304)return qu(oi(r.type,t));if(s&134217728)return rg(r.texts,bd(r.types,t));if(s&268435456)return Cy(r.symbol,oi(r.type,t));if(s&8388608){var Je=i||r.aliasSymbol,ar=i?o:bd(r.aliasTypeArguments,t);return Hl(oi(r.objectType,t),oi(r.indexType,t),r.accessFlags,void 0,Je,ar)}if(s&16777216)return L0(r,__(r.mapper,t),i,o);if(s&33554432){var _r=oi(r.baseType,t);if(_r.flags&8650752)return ED(_r,oi(r.substitute,t));var Gr=oi(r.substitute,t);return Gr.flags&3||Qi(m_(_r),m_(Gr))?_r:Gr}return r}function eR(r,t){var i=oi(r.mappedType,t);if(!(e.getObjectFlags(i)&32))return r;var o=oi(r.constraintType,t);if(!(o.flags&4194304))return r;var s=QL(oi(r.source,t),i,o);return s||r}function wy(r){return r.flags&262143?r:r.permissiveInstantiation||(r.permissiveInstantiation=oi(r,Cn))}function m_(r){return r.flags&262143?r:(r.restrictiveInstantiation||(r.restrictiveInstantiation=oi(r,rt),r.restrictiveInstantiation.restrictiveInstantiation=r.restrictiveInstantiation),r.restrictiveInstantiation)}function rR(r,t){return Eu(r.keyType,oi(r.type,t),r.isReadonly,r.declaration)}function nu(r){switch(e.Debug.assert(r.kind!==168||e.isObjectLiteralMethod(r)),r.kind){case 212:case 213:case 168:case 255:return EL(r);case 204:return e.some(r.properties,nu);case 203:return e.some(r.elements,nu);case 221:return nu(r.whenTrue)||nu(r.whenFalse);case 220:return(r.operatorToken.kind===56||r.operatorToken.kind===60)&&(nu(r.left)||nu(r.right));case 294:return nu(r.initializer);case 211:return nu(r.expression);case 285:return e.some(r.properties,nu)||e.isJsxOpeningElement(r.parent)&&e.some(r.parent.parent.children,nu);case 284:{var t=r.initializer;return!!t&&nu(t)}case 287:{var i=r.expression;return!!i&&nu(i)}}return!1}function EL(r){return(!e.isFunctionDeclaration(r)||e.isInJSFile(r)&&!!Pf(r))&&(e.hasContextSensitiveParameters(r)||tR(r))}function tR(r){return!r.typeParameters&&!e.getEffectiveReturnTypeNode(r)&&!!r.body&&r.body.kind!==234&&nu(r.body)}function TL(r){return(e.isInJSFile(r)&&e.isFunctionDeclaration(r)||e.isFunctionExpressionOrArrowFunction(r)||e.isObjectLiteralMethod(r))&&EL(r)}function SL(r){if(r.flags&524288){var t=Sc(r);if(t.constructSignatures.length||t.callSignatures.length){var i=Bl(16,r.symbol);return i.members=t.members,i.properties=t.properties,i.callSignatures=e.emptyArray,i.constructSignatures=e.emptyArray,i.indexInfos=e.emptyArray,i}}else if(r.flags&2097152)return To(e.map(r.types,SL));return r}function jf(r,t){return Hf(r,t,fi)}function $g(r,t){return Hf(r,t,fi)?-1:0}function A0(r,t){return Hf(r,t,Ta)?-1:0}function nR(r,t){return Hf(r,t,ha)?-1:0}function Ed(r,t){return Hf(r,t,ha)}function Qi(r,t){return Hf(r,t,Ta)}function _m(r,t){return r.flags&1048576?e.every(r.types,function(i){return _m(i,t)}):t.flags&1048576?e.some(t.types,function(i){return _m(r,i)}):r.flags&58982400?_m(l(r)||tr,t):t===Un?!!(r.flags&67633152):t===Oe?!!(r.flags&524288)&&o1(r):Cp(r,O_(t))||el(t)&&!ag(t)&&_m(r,Be)}function ng(r,t){return Hf(r,t,Ya)}function My(r,t){return ng(r,t)||ng(t,r)}function Rl(r,t,i,o,s,c){return au(r,t,Ta,i,o,s,c)}function pp(r,t,i,o,s,c){return C0(r,t,Ta,i,o,s,c,void 0)}function C0(r,t,i,o,s,c,L,G){return Hf(r,t,i)?!0:!o||!ch(s,r,t,i,c,L,G)?au(r,t,i,o,c,L,G):!1}function DL(r){return!!(r.flags&16777216||r.flags&2097152&&e.some(r.types,DL))}function ch(r,t,i,o,s,c,L){if(!r||DL(i))return!1;if(!au(t,i,o,void 0)&&aR(r,t,i,o,s,c,L))return!0;switch(r.kind){case 287:case 211:return ch(r.expression,t,i,o,s,c,L);case 220:switch(r.operatorToken.kind){case 63:case 27:return ch(r.right,t,i,o,s,c,L)}break;case 204:return pR(r,t,i,o,c,L);case 203:return fR(r,t,i,o,c,L);case 285:return uR(r,t,i,o,c,L);case 213:return iR(r,t,i,o,c,L)}return!1}function aR(r,t,i,o,s,c,L){for(var G=Ni(t,0),ce=Ni(t,1),we=0,Ue=[ce,G];we<Ue.length;we++){var Je=Ue[we];if(e.some(Je,function(Gr){var Zr=_o(Gr);return!(Zr.flags&131073)&&au(Zr,i,o,void 0)})){var ar=L||{};Rl(t,i,r,s,c,ar);var _r=ar.errors[ar.errors.length-1];return e.addRelatedInfo(_r,e.createDiagnosticForNode(r,Je===ce?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}function iR(r,t,i,o,s,c){if(e.isBlock(r.body)||e.some(r.parameters,e.hasType))return!1;var L=j_(t);if(!L)return!1;var G=Ni(i,0);if(!e.length(G))return!1;var ce=r.body,we=_o(L),Ue=ma(e.map(G,_o));if(!au(we,Ue,o,void 0)){var Je=ce&&ch(ce,we,Ue,o,void 0,s,c);if(Je)return Je;var ar=c||{};if(au(we,Ue,o,ce,void 0,s,ar),ar.errors)return i.symbol&&e.length(i.symbol.declarations)&&e.addRelatedInfo(ar.errors[ar.errors.length-1],e.createDiagnosticForNode(i.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),!(e.getFunctionFlags(r)&2)&&!ia(we,"then")&&au(Nh(we),Ue,o,void 0)&&e.addRelatedInfo(ar.errors[ar.errors.length-1],e.createDiagnosticForNode(r,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function oR(r,t,i){var o=cp(t,i);if(o)return o;if(t.flags&1048576){var s=OL(r,t);if(s)return cp(s,i)}}function sR(r,t){r.contextualType=t;try{return hg(r,1,t)}finally{r.contextualType=void 0}}function ev(r,t,i,o,s,c){for(var L=!1,G=r.next();!G.done;G=r.next()){var ce=G.value,we=ce.errorNode,Ue=ce.innerExpression,Je=ce.nameType,ar=ce.errorMessage,_r=oR(t,i,Je);if(!(!_r||_r.flags&8388608)){var Gr=cp(t,Je);if(Gr){var Zr=c0(Je,void 0);if(!au(Gr,_r,o,void 0)){var Et=Ue&&ch(Ue,Gr,_r,o,void 0,s,c);if(L=!0,!Et){var Tt=c||{},At=Ue?sR(Ue,Gr):Gr;if(de&&R0(At,_r)){var Vt=e.createDiagnosticForNode(we,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,gn(At),gn(_r));ua.add(Vt),Tt.errors=[Vt]}else{var Nn=!!(Zr&&(Ii(i,Zr)||We).flags&16777216),on=!!(Zr&&(Ii(t,Zr)||We).flags&16777216);_r=gm(_r,Nn),Gr=gm(Gr,Nn&&on);var ca=au(At,_r,o,we,ar,s,Tt);ca&&At!==Gr&&au(Gr,_r,o,we,ar,s,Tt)}if(Tt.errors){var la=Tt.errors[Tt.errors.length-1],di=gu(Je)?vu(Je):void 0,Aa=di!==void 0?Ii(i,di):void 0,Li=!1;if(!Aa){var Bi=zm(i,Je);Bi&&Bi.declaration&&!e.getSourceFileOfNode(Bi.declaration).hasNoDefaultLib&&(Li=!0,e.addRelatedInfo(la,e.createDiagnosticForNode(Bi.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!Li&&(Aa&&e.length(Aa.declarations)||i.symbol&&e.length(i.symbol.declarations))){var Ai=Aa&&e.length(Aa.declarations)?Aa.declarations[0]:i.symbol.declarations[0];e.getSourceFileOfNode(Ai).hasNoDefaultLib||e.addRelatedInfo(la,e.createDiagnosticForNode(Ai,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,di&&!(Je.flags&8192)?e.unescapeLeadingUnderscores(di):gn(Je),gn(i)))}}}}}}}return L}function lR(r){var t,i,o;return Og(this,function(s){switch(s.label){case 0:if(!e.length(r.properties))return[2];t=0,i=r.properties,s.label=1;case 1:return t<i.length?(o=i[t],e.isJsxSpreadAttribute(o)||D1(e.idText(o.name))?[3,3]:[4,{errorNode:o.name,innerExpression:o.initializer,nameType:Lc(e.idText(o.name))}]):[3,4];case 2:s.sent(),s.label=3;case 3:return t++,[3,1];case 4:return[2]}})}function cR(r,t){var i,o,s,c,L;return Og(this,function(G){switch(G.label){case 0:if(!e.length(r.children))return[2];i=0,o=0,G.label=1;case 1:return o<r.children.length?(s=r.children[o],c=Wf(o-i),L=LL(s,c,t),L?[4,L]:[3,3]):[3,5];case 2:return G.sent(),[3,4];case 3:i++,G.label=4;case 4:return o++,[3,1];case 5:return[2]}})}function LL(r,t,i){switch(r.kind){case 287:return{errorNode:r,innerExpression:r.expression,nameType:t};case 11:if(r.containsOnlyTriviaWhiteSpaces)break;return{errorNode:r,innerExpression:void 0,nameType:t,errorMessage:i()};case 277:case 278:case 281:return{errorNode:r,innerExpression:r,nameType:t};default:return e.Debug.assertNever(r,"Found invalid jsx child")}}function uR(r,t,i,o,s,c){var L=ev(lR(r),t,i,o,s,c),G;if(e.isJsxOpeningElement(r.parent)&&e.isJsxElement(r.parent.parent)){var ce=r.parent.parent,we=fb(Em(r)),Ue=we===void 0?"children":e.unescapeLeadingUnderscores(we),Je=Lc(Ue),ar=Hl(i,Je),_r=e.getSemanticJsxChildren(ce.children);if(!e.length(_r))return L;var Gr=e.length(_r)>1,Zr=rl(ar,BL),Et=rl(ar,function(la){return!BL(la)});if(Gr){if(Zr!==en){var Tt=Tu(ub(ce,0)),At=cR(ce,ca);L=ev(At,Tt,Zr,o,s,c)||L}else if(!Hf(Hl(t,Je),ar,o)){L=!0;var Vt=Mr(ce.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Ue,gn(ar));c&&c.skipLogging&&(c.errors||(c.errors=[])).push(Vt)}}else if(Et!==en){var Nn=_r[0],on=LL(Nn,Je,ca);on&&(L=ev(function(){return Og(this,function(la){switch(la.label){case 0:return[4,on];case 1:return la.sent(),[2]}})}(),t,i,o,s,c)||L)}else if(!Hf(Hl(t,Je),ar,o)){L=!0;var Vt=Mr(ce.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Ue,gn(ar));c&&c.skipLogging&&(c.errors||(c.errors=[])).push(Vt)}}return L;function ca(){if(!G){var la=e.getTextOfNode(r.parent.tagName),di=fb(Em(r)),Aa=di===void 0?"children":e.unescapeLeadingUnderscores(di),Li=Hl(i,Lc(Aa)),Bi=e.Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;G=Rn(Rn({},Bi),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,Bi,la,Aa,gn(Li))})}return G}}function AL(r,t){var i,o,s,c;return Og(this,function(L){switch(L.label){case 0:if(i=e.length(r.elements),!i)return[2];o=0,L.label=1;case 1:return o<i?ig(t)&&!Ii(t,""+o)?[3,3]:(s=r.elements[o],e.isOmittedExpression(s)?[3,3]:(c=Wf(o),[4,{errorNode:s,innerExpression:s,nameType:c}])):[3,4];case 2:L.sent(),L.label=3;case 3:return o++,[3,1];case 4:return[2]}})}function fR(r,t,i,o,s,c){if(i.flags&131068)return!1;if(ig(t))return ev(AL(r,i),t,i,o,s,c);var L=r.contextualType;r.contextualType=i;try{var G=UA(r,1,!0);return r.contextualType=L,ig(G)?ev(AL(r,i),G,i,o,s,c):!1}finally{r.contextualType=L}}function dR(r){var t,i,o,s,c;return Og(this,function(L){switch(L.label){case 0:if(!e.length(r.properties))return[2];t=0,i=r.properties,L.label=1;case 1:if(!(t<i.length))return[3,8];if(o=i[t],e.isSpreadAssignment(o))return[3,7];if(s=eg(wn(o),8576),!s||s.flags&131072)return[3,7];switch(c=o.kind,c){case 172:return[3,2];case 171:return[3,2];case 168:return[3,2];case 295:return[3,2];case 294:return[3,4]}return[3,6];case 2:return[4,{errorNode:o.name,innerExpression:void 0,nameType:s}];case 3:return L.sent(),[3,7];case 4:return[4,{errorNode:o.name,innerExpression:o.initializer,nameType:s,errorMessage:e.isComputedNonLiteralName(o.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return L.sent(),[3,7];case 6:e.Debug.assertNever(o),L.label=7;case 7:return t++,[3,1];case 8:return[2]}})}function pR(r,t,i,o,s,c){return i.flags&131068?!1:ev(dR(r),t,i,o,s,c)}function CL(r,t,i,o,s){return au(r,t,Ya,i,o,s)}function _R(r,t,i){return x0(r,t,i?4:0,!1,void 0,void 0,A0,void 0)!==0}function mR(r){return!r.typeParameters&&(!r.thisParameter||Na(fv(r.thisParameter)))&&r.parameters.length===1&&ue(r)&&(fv(r.parameters[0])===Sn||Na(fv(r.parameters[0])))&&Na(_o(r))}function x0(r,t,i,o,s,c,L,G){if(r===t||mR(t))return-1;var ce=Tl(t),we=!xu(t)&&(i&8?xu(r)||Tl(r)>ce:Cu(r)>ce);if(we)return 0;r.typeParameters&&r.typeParameters!==t.typeParameters&&(t=Dk(t),r=yC(r,t,void 0,L));var Ue=Tl(r),Je=pv(r),ar=pv(t);if((Je||ar)&&oi(Je||ar,G),Je&&ar&&Ue!==ce)return 0;var _r=t.declaration?t.declaration.kind:0,Gr=!(i&3)&&lr&&_r!==168&&_r!==167&&_r!==170,Zr=-1,Et=f_(r);if(Et&&Et!==Wn){var Tt=f_(t);if(Tt){var At=!Gr&&L(Et,Tt,!1)||L(Tt,Et,o);if(!At)return o&&s(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;Zr&=At}}for(var Vt=Je||ar?Math.min(Ue,ce):Math.max(Ue,ce),Nn=Je||ar?Vt-1:-1,on=0;on<Vt;on++){var ca=on===Nn?gg(r,on):E_(r,on),la=on===Nn?gg(t,on):E_(t,on);if(ca&&la){var di=i&3?void 0:j_(Td(ca)),Aa=i&3?void 0:j_(Td(la)),Li=di&&Aa&&!Dc(di)&&!Dc(Aa)&&(lc(ca)&98304)===(lc(la)&98304),At=Li?x0(Aa,di,i&8|(Gr?2:1),o,s,c,L,G):!(i&3)&&!Gr&&L(ca,la,!1)||L(la,ca,o);if(At&&i&8&&on>=Cu(r)&&on<Cu(t)&&L(ca,la,!1)&&(At=0),!At)return o&&s(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(mg(r,on)),e.unescapeLeadingUnderscores(mg(t,on))),0;Zr&=At}}if(!(i&4)){var Bi=qE(t)?Ze:t.declaration&&ou(t.declaration)?Hn(Ga(t.declaration.symbol)):_o(t);if(Bi===Wn)return Zr;var Ai=qE(r)?Ze:r.declaration&&ou(r.declaration)?Hn(Ga(r.declaration.symbol)):_o(r),xo=Dc(t);if(xo){var Wt=Dc(r);if(Wt)Zr&=gR(Wt,xo,o,s,L);else if(e.isIdentifierTypePredicate(xo))return o&&s(e.Diagnostics.Signature_0_must_be_a_type_predicate,pu(r)),0}else Zr&=i&1&&L(Bi,Ai,!1)||L(Ai,Bi,o),!Zr&&o&&c&&c(Ai,Bi)}return Zr}function gR(r,t,i,o,s){if(r.kind!==t.kind)return i&&(o(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Yc(r),Yc(t))),0;if((r.kind===1||r.kind===3)&&r.parameterIndex!==t.parameterIndex)return i&&(o(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,r.parameterName,t.parameterName),o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Yc(r),Yc(t))),0;var c=r.type===t.type?-1:r.type&&t.type?s(r.type,t.type,i):0;return c===0&&i&&o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Yc(r),Yc(t)),c}function vR(r,t){var i=Jg(r),o=Jg(t),s=_o(i),c=_o(o);return c===Wn||Hf(c,s,Ta)||Hf(s,c,Ta)?_R(i,o,!0):!1}function I0(r){return r!==yi&&r.properties.length===0&&r.callSignatures.length===0&&r.constructSignatures.length===0&&r.indexInfos.length===0}function cf(r){return r.flags&524288?!El(r)&&I0(Sc(r)):r.flags&67108864?!0:r.flags&1048576?e.some(r.types,cf):r.flags&2097152?e.every(r.types,cf):!1}function xL(r){return!!(e.getObjectFlags(r)&16&&(r.members&&I0(r)||r.symbol&&r.symbol.flags&2048&&af(r.symbol).size===0))}function IL(r){return r.flags&524288&&!El(r)&&Yi(r).length===0&&Ps(r).length===1&&!!oc(r,xt)||r.flags&3145728&&e.every(r.types,IL)||!1}function N0(r,t,i){if(r===t)return!0;var o=y(r)+","+y(t),s=ci.get(o);if(s!==void 0&&!(!(s&4)&&s&2&&i))return!!(s&1);if(r.escapedName!==t.escapedName||!(r.flags&256)||!(t.flags&256))return ci.set(o,6),!1;for(var c=An(t),L=0,G=Yi(An(r));L<G.length;L++){var ce=G[L];if(ce.flags&8){var we=Ii(c,ce.escapedName);if(!we||!(we.flags&8))return i?(i(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(ce),gn(po(t),void 0,64)),ci.set(o,6)):ci.set(o,2),!1}}return ci.set(o,1),!0}function uh(r,t,i,o){var s=r.flags,c=t.flags;return c&3||s&131072||r===fr?!0:c&131072?!1:!!(s&402653316&&c&4||s&128&&s&1024&&c&128&&!(c&1024)&&r.value===t.value||s&296&&c&8||s&256&&s&1024&&c&256&&!(c&1024)&&r.value===t.value||s&2112&&c&64||s&528&&c&16||s&12288&&c&4096||s&32&&c&32&&N0(r.symbol,t.symbol,o)||s&1024&&c&1024&&(s&1048576&&c&1048576&&N0(r.symbol,t.symbol,o)||s&2944&&c&2944&&r.value===t.value&&N0(Ts(r.symbol),Ts(t.symbol),o))||s&32768&&(!br||c&49152)||s&65536&&(!br||c&65536)||s&524288&&c&67108864||(i===Ta||i===Ya)&&(s&1||s&264&&!(s&1024)&&(c&32||i===Ta&&c&256&&c&1024)))}function Hf(r,t,i){if(Mp(r)&&(r=r.regularType),Mp(t)&&(t=t.regularType),r===t)return!0;if(i!==fi){if(i===Ya&&!(t.flags&131072)&&uh(t,r,i)||uh(r,t,i))return!0}else{if(r.flags!==t.flags)return!1;if(r.flags&67358815)return!0}if(r.flags&524288&&t.flags&524288){var o=i.get(P0(r,t,0,i,!1));if(o!==void 0)return!!(o&1)}return r.flags&469499904||t.flags&469499904?au(r,t,i,void 0):!1}function NL(r,t){return e.getObjectFlags(r)&2048&&D1(t.escapedName)}function k0(r,t){for(;;){var i=Mp(r)?r.regularType:e.getObjectFlags(r)&4&&r.node?Uf(r.target,vo(r)):r.flags&3145728?Eo(r):r.flags&33554432?t?r.baseType:r.substitute:r.flags&25165824?Vf(r,t):r;if(i=B0(i)||i,i===r)break;r=i}return r}function au(r,t,i,o,s,c,L){var G,ce,we,Ue,Je,ar=0,_r=0,Gr=0,Zr=0,Et=!1,Tt=0,At,Vt=[],Nn=!1;e.Debug.assert(i!==fi||!o,"no error reporting in identity checking");var on=jn(r,t,3,!!o,s);if(Vt.length&&Ft(),Et){e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:r.id,targetId:t.id,depth:_r,targetDepth:Gr});var ca=Mr(o||_e,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,gn(r),gn(t));L&&(L.errors||(L.errors=[])).push(ca)}else if(G){if(c){var la=c();la&&(e.concatenateDiagnosticMessageChains(la,G),G=la)}var di=void 0;if(s&&o&&!on&&r.symbol){var Aa=Ja(r.symbol);if(Aa.originatingImport&&!e.isImportCall(Aa.originatingImport)){var Li=au(An(Aa.target),t,i,void 0);if(Li){var Bi=e.createDiagnosticForNode(Aa.originatingImport,e.Diagnostics.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);di=e.append(di,Bi)}}}var ca=e.createDiagnosticForNodeFromMessageChain(o,G,di);ce&&e.addRelatedInfo.apply(void 0,Gt([ca],ce,!1)),L&&(L.errors||(L.errors=[])).push(ca),(!L||!L.skipLogging)&&ua.add(ca)}return o&&L&&L.skipLogging&&on===0&&e.Debug.assert(!!L.errors,"missed opportunity to interact with error."),on!==0;function Ai(Kr){G=Kr.errorInfo,At=Kr.lastSkippedInfo,Vt=Kr.incompatibleStack,Tt=Kr.overrideNextErrorInfo,ce=Kr.relatedInfo}function xo(){return{errorInfo:G,lastSkippedInfo:At,incompatibleStack:Vt.slice(),overrideNextErrorInfo:Tt,relatedInfo:ce?ce.slice():void 0}}function Wt(Kr,st,kt,$t,ea){Tt++,At=void 0,Vt.push([Kr,st,kt,$t,ea])}function Ft(){var Kr=Vt;Vt=[];var st=At;if(At=void 0,Kr.length===1){_n.apply(void 0,Kr[0]),st&&Yn.apply(void 0,Gt([void 0],st,!1));return}for(var kt="",$t=[];Kr.length;){var ea=Kr.pop(),Gn=ea[0],Tn=ea.slice(1);switch(Gn.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:{kt.indexOf("new ")===0&&(kt="(".concat(kt,")"));var zt=""+Tn[0];kt.length===0?kt="".concat(zt):e.isIdentifierText(zt,e.getEmitScriptTarget(Xe))?kt="".concat(kt,".").concat(zt):zt[0]==="["&&zt[zt.length-1]==="]"?kt="".concat(kt).concat(zt):kt="".concat(kt,"[").concat(zt,"]");break}case e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(kt.length===0){var ni=Gn;Gn.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?ni=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:Gn.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(ni=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),$t.unshift([ni,Tn[0],Tn[1]])}else{var vi=Gn.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||Gn.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",ai=Gn.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Gn.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";kt="".concat(vi).concat(kt,"(").concat(ai,")")}break}case e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{$t.unshift([e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Tn[0],Tn[1]]);break}case e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{$t.unshift([e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Tn[0],Tn[1],Tn[2]]);break}default:return e.Debug.fail("Unhandled Diagnostic: ".concat(Gn.code))}}kt?_n(kt[kt.length-1]===")"?e.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types:e.Diagnostics.The_types_of_0_are_incompatible_between_these_types,kt):$t.shift();for(var so=0,Ui=$t;so<Ui.length;so++){var ps=Ui[so],Gn=ps[0],Tn=ps.slice(1),ls=Gn.elidedInCompatabilityPyramid;Gn.elidedInCompatabilityPyramid=!1,_n.apply(void 0,Gt([Gn],Tn,!1)),Gn.elidedInCompatabilityPyramid=ls}st&&Yn.apply(void 0,Gt([void 0],st,!1))}function _n(Kr,st,kt,$t,ea){e.Debug.assert(!!o),Vt.length&&Ft(),!Kr.elidedInCompatabilityPyramid&&(G=e.chainDiagnosticMessages(G,Kr,st,kt,$t,ea))}function Ca(Kr){e.Debug.assert(!!G),ce?ce.push(Kr):ce=[Kr]}function Yn(Kr,st,kt){Vt.length&&Ft();var $t=Rf(st,kt),ea=$t[0],Gn=$t[1],Tn=st,zt=ea;if(mm(st)&&!O0(kt)&&(Tn=Du(st),e.Debug.assert(!Qi(Tn,kt),"generalized source shouldn't be assignable"),zt=Qd(Tn)),kt.flags&262144){var ni=l(kt),vi=void 0;ni&&(Qi(Tn,ni)||(vi=Qi(st,ni)))?_n(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,vi?ea:zt,Gn,gn(ni)):(G=void 0,_n(e.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Gn,zt))}if(Kr)Kr===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&de&&kL(st,kt).length&&(Kr=e.Diagnostics.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(i===Ya)Kr=e.Diagnostics.Type_0_is_not_comparable_to_type_1;else if(ea===Gn)Kr=e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(de&&kL(st,kt).length)Kr=e.Diagnostics.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&&kt.flags&1048576){var ai=uP(st,kt);if(ai){_n(e.Diagnostics.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,zt,Gn,gn(ai));return}}Kr=e.Diagnostics.Type_0_is_not_assignable_to_type_1}_n(Kr,zt,Gn)}function Ba(Kr,st){var kt=Zd(Kr.symbol)?gn(Kr,Kr.symbol.valueDeclaration):gn(Kr),$t=Zd(st.symbol)?gn(st,st.symbol.valueDeclaration):gn(st);(er===Kr&&xt===st||vr===Kr&&wt===st||qr===Kr&&Jn===st||RD(!1)===Kr&&na===st)&&_n(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,$t,kt)}function Ti(Kr,st,kt){return ki(Kr)?Kr.target.readonly&&Gy(st)?(kt&&_n(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,gn(Kr),gn(st)),!1):ki(st)||el(st):ag(Kr)&&Gy(st)?(kt&&_n(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,gn(Kr),gn(st)),!1):ki(st)?el(Kr):!0}function Pi(Kr,st,kt){return jn(Kr,st,3,kt)}function jn(Kr,st,kt,$t,ea,Gn){if(kt===void 0&&(kt=3),$t===void 0&&($t=!1),Gn===void 0&&(Gn=0),Kr.flags&524288&&st.flags&131068)return uh(Kr,st,i,$t?_n:void 0)?-1:(ot(Kr,st,0,!!(e.getObjectFlags(Kr)&2048)),0);var Tn=k0(Kr,!1),zt=k0(st,!0);if(Tn===zt)return-1;if(i===fi)return Wr(Tn,zt,kt);if(Tn.flags&262144&&kp(Tn)===zt)return-1;if(zt.flags&1048576&&Tn.flags&524288&&zt.types.length<=3&&Jo(zt,98304)){var ni=W_(zt,-98305);if(ni.flags&1179648||(zt=k0(ni,!0)),Tn===ni)return-1}if(i===Ya&&!(zt.flags&131072)&&uh(zt,Tn,i)||uh(Tn,zt,i,$t?_n:void 0))return-1;var vi=!!(e.getObjectFlags(Tn)&2048),ai=!(Gn&2)&&Gp(Tn)&&e.getObjectFlags(Tn)&16384;if(ai&&hn(Tn,zt,$t))return $t&&Yn(ea,Tn,st.aliasSymbol?st:zt),0;var so=i!==Ya&&!(Gn&2)&&Tn.flags&2752508&&Tn!==Un&&zt.flags&2621440&&RL(zt)&&(Yi(Tn).length>0||LT(Tn));if(so&&!yR(Tn,zt,vi)){if($t){var Ui=gn(Kr.aliasSymbol?Kr:Tn),ps=gn(st.aliasSymbol?st:zt),ls=Ni(Tn,0),Xo=Ni(Tn,1);ls.length>0&&jn(_o(ls[0]),zt,1,!1)||Xo.length>0&&jn(_o(Xo[0]),zt,1,!1)?_n(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Ui,ps):_n(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Ui,ps)}return 0}Fi(Tn,zt);var eo=0,Ko=xo();if((Tn.flags&1048576||zt.flags&1048576)&&yA(Tn)*yA(zt)<4?eo=mn(Tn,zt,$t,Gn|8):(Tn.flags&3145728||zt.flags&3145728)&&(eo=Yt(Tn,zt,$t,Gn|8,kt)),!eo&&!(Tn.flags&1048576)&&(Tn.flags&469499904||zt.flags&469499904)&&(eo=Yt(Tn,zt,$t,Gn,kt))&&Ai(Ko),!eo&&Tn.flags&2359296){var $o=HE(Tn.flags&2097152?Tn.types:[Tn],!!(zt.flags&1048576));$o&&(Tn.flags&2097152||zt.flags&1048576)&&Kf($o,function(ln){return ln!==Tn})&&(eo=jn($o,zt,1,!1,void 0,Gn))&&Ai(Ko)}return eo&&!Nn&&(zt.flags&2097152&&(ai||so)||m0(zt)&&!el(zt)&&!ki(zt)&&Tn.flags&2097152&&wi(Tn).flags&3670016&&!e.some(Tn.types,function(ln){return!!(e.getObjectFlags(ln)&524288)}))&&(Nn=!0,eo&=Yt(Tn,zt,$t,4,kt),Nn=!1),ot(Tn,zt,eo,vi),eo;function ot(ln,aa,qn,ra){if(!qn&&$t){var Xa=!!B0(Kr),ja=!!B0(st);ln=Kr.aliasSymbol||Xa?Kr:ln,aa=st.aliasSymbol||ja?st:aa;var pi=Tt>0;if(pi&&Tt--,ln.flags&524288&&aa.flags&524288){var Va=G;Ti(ln,aa,$t),G!==Va&&(pi=!!G)}if(ln.flags&524288&&aa.flags&131068)Ba(ln,aa);else if(ln.symbol&&ln.flags&524288&&Un===ln)_n(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(ra&&aa.flags&2097152){var Ma=aa.types,qi=Vp(P.IntrinsicAttributes,o),yo=Vp(P.IntrinsicClassAttributes,o);if(!Ua(qi)&&!Ua(yo)&&(e.contains(Ma,qi)||e.contains(Ma,yo)))return qn}else G=Jm(G,st);if(!ea&&pi)return At=[ln,aa],qn;Yn(ea,ln,aa)}}}function Fi(Kr,st){if(e.tracing&&Kr.flags&3145728&&st.flags&3145728){var kt=Kr,$t=st;if(kt.objectFlags&$t.objectFlags&65536)return;var ea=kt.types.length,Gn=$t.types.length;ea*Gn>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:Kr.id,sourceSize:ea,targetId:st.id,targetSize:Gn,pos:o==null?void 0:o.pos,end:o==null?void 0:o.end})}}function Wr(Kr,st,kt){if(Kr.flags!==st.flags)return 0;if(Kr.flags&67358815)return-1;if(Fi(Kr,st),Kr.flags&3145728){var $t=Vn(Kr,st);return $t&&($t&=Vn(st,Kr)),$t}return Yt(Kr,st,!1,0,kt)}function Tr(Kr,st){var kt=function($t,ea){var Gn;ea=wi(ea);var Tn=ea.flags&3145728?ic(ea,st):hd(ea,st),zt=Tn&&An(Tn)||((Gn=ip(ea,st))===null||Gn===void 0?void 0:Gn.type)||Nr;return e.append($t,zt)};return ma(e.reduceLeft(Kr,kt,void 0)||e.emptyArray)}function hn(Kr,st,kt){var $t;if(!Dh(st)||!Ke&&e.getObjectFlags(st)&8192)return!1;var ea=!!(e.getObjectFlags(Kr)&2048);if((i===Ta||i===Ya)&&(gh(Un,st)||!ea&&cf(st)))return!1;var Gn=st,Tn;st.flags&1048576&&(Gn=II(Kr,st,jn)||wF(st),Tn=Gn.flags&1048576?Gn.types:[Gn]);for(var zt=function(Ui){if(nn(Ui,Kr.symbol)&&!NL(Kr,Ui)){if(!x1(Gn,Ui.escapedName,ea)){if(kt){var ps=rl(Gn,Dh);if(!o)return{value:e.Debug.fail()};if(e.isJsxAttributes(o)||e.isJsxOpeningLikeElement(o)||e.isJsxOpeningLikeElement(o.parent)){Ui.valueDeclaration&&e.isJsxAttribute(Ui.valueDeclaration)&&e.getSourceFileOfNode(o)===e.getSourceFileOfNode(Ui.valueDeclaration.name)&&(o=Ui.valueDeclaration.name);var ls=Wa(Ui),Xo=fC(ls,ps),eo=Xo?Wa(Xo):void 0;eo?_n(e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,ls,gn(ps),eo):_n(e.Diagnostics.Property_0_does_not_exist_on_type_1,ls,gn(ps))}else{var Ko=(($t=Kr.symbol)===null||$t===void 0?void 0:$t.declarations)&&e.firstOrUndefined(Kr.symbol.declarations),eo=void 0;if(Ui.valueDeclaration&&e.findAncestor(Ui.valueDeclaration,function(aa){return aa===Ko})&&e.getSourceFileOfNode(Ko)===e.getSourceFileOfNode(o)){var $o=Ui.valueDeclaration;e.Debug.assertNode($o,e.isObjectLiteralElementLike),o=$o;var ot=$o.name;e.isIdentifier(ot)&&(eo=P1(ot,ps))}eo!==void 0?_n(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Wa(Ui),gn(ps),eo):_n(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Wa(Ui),gn(ps))}}return{value:!0}}if(Tn&&!jn(An(Ui),Tr(Tn,Ui.escapedName),3,kt))return kt&&Wt(e.Diagnostics.Types_of_property_0_are_incompatible,Wa(Ui)),{value:!0}}},ni=0,vi=Yi(Kr);ni<vi.length;ni++){var ai=vi[ni],so=zt(ai);if(typeof so=="object")return so.value}return!1}function nn(Kr,st){return Kr.valueDeclaration&&st.valueDeclaration&&Kr.valueDeclaration.parent===st.valueDeclaration}function Vn(Kr,st){for(var kt=-1,$t=Kr.types,ea=0,Gn=$t;ea<Gn.length;ea++){var Tn=Gn[ea],zt=En(Tn,st,!1);if(!zt)return 0;kt&=zt}return kt}function En(Kr,st,kt){var $t=st.types;if(st.flags&1048576){if(sp($t,Kr))return-1;var ea=sA(st,Kr);if(ea){var Gn=jn(Kr,ea,2,!1);if(Gn)return Gn}}for(var Tn=0,zt=$t;Tn<zt.length;Tn++){var ni=zt[Tn],Gn=jn(Kr,ni,2,!1);if(Gn)return Gn}if(kt){var vi=OL(Kr,st,jn);jn(Kr,vi||$t[$t.length-1],2,!0)}return 0}function Fn(Kr,st,kt,$t){for(var ea=-1,Gn=st.types,Tn=0,zt=Gn;Tn<zt.length;Tn++){var ni=zt[Tn],vi=jn(Kr,ni,2,kt,void 0,$t);if(!vi)return 0;ea&=vi}return ea}function Xr(Kr,st,kt,$t){var ea=Kr.types;if(Kr.flags&1048576&&sp(ea,st))return-1;for(var Gn=ea.length,Tn=0;Tn<Gn;Tn++){var zt=jn(ea[Tn],st,1,kt&&Tn===Gn-1,void 0,$t);if(zt)return zt}return 0}function it(Kr,st){return Kr.flags&1048576&&st.flags&1048576&&!(Kr.types[0].flags&32768)&&st.types[0].flags&32768?W_(st,-32769):st}function Pt(Kr,st,kt,$t){for(var ea=-1,Gn=Kr.types,Tn=it(Kr,st),zt=0;zt<Gn.length;zt++){var ni=Gn[zt];if(Tn.flags&1048576&&Gn.length>=Tn.types.length&&Gn.length%Tn.types.length===0){var vi=jn(ni,Tn.types[zt%Tn.types.length],3,!1,void 0,$t);if(vi){ea&=vi;continue}}var ai=jn(ni,st,1,kt,void 0,$t);if(!ai)return 0;ea&=ai}return ea}function Bt(Kr,st,kt,$t,ea){if(Kr===void 0&&(Kr=e.emptyArray),st===void 0&&(st=e.emptyArray),kt===void 0&&(kt=e.emptyArray),Kr.length!==st.length&&i===fi)return 0;for(var Gn=Kr.length<=st.length?Kr.length:st.length,Tn=-1,zt=0;zt<Gn;zt++){var ni=zt<kt.length?kt[zt]:1,vi=ni&7;if(vi!==4){var ai=Kr[zt],so=st[zt],Ui=-1;if(ni&8?Ui=i===fi?jn(ai,so,3,!1):$g(ai,so):vi===1?Ui=jn(ai,so,3,$t,void 0,ea):vi===2?Ui=jn(so,ai,3,$t,void 0,ea):vi===3?(Ui=jn(so,ai,3,!1),Ui||(Ui=jn(ai,so,3,$t,void 0,ea))):(Ui=jn(ai,so,3,$t,void 0,ea),Ui&&(Ui&=jn(so,ai,3,$t,void 0,ea))),!Ui)return 0;Tn&=Ui}}return Tn}function Yt(Kr,st,kt,$t,ea){if(Et)return 0;var Gn=$t|(Nn?16:0),Tn=P0(Kr,st,Gn,i,!1),zt=i.get(Tn);if(zt!==void 0&&!(kt&&zt&2&&!(zt&4))){if(yn){var ni=zt&24;ni&8&&oi(Kr,p_(_a)),ni&16&&oi(Kr,p_(qa))}return zt&1?-1:0}if(!we)we=[],Ue=[],Je=[];else{for(var vi=Tn.startsWith("*")?P0(Kr,st,Gn,i,!0):void 0,ai=0;ai<ar;ai++)if(Tn===we[ai]||vi&&vi===we[ai])return 3;if(_r===100||Gr===100)return Et=!0,0}var so=ar;we[ar]=Tn,ar++;var Ui=Zr;ea&1&&(Ue[_r]=Kr,_r++,!(Zr&1)&&dh(Kr,Ue,_r)&&(Zr|=1)),ea&2&&(Je[Gr]=st,Gr++,!(Zr&2)&&dh(st,Je,Gr)&&(Zr|=2));var ps,ls=0;yn&&(ps=yn,yn=function(eo){return ls|=eo?16:8,ps(eo)}),Zr===3&&(e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","recursiveTypeRelatedTo_DepthLimit",{sourceId:Kr.id,sourceIdStack:Ue.map(function(eo){return eo.id}),targetId:st.id,targetIdStack:Je.map(function(eo){return eo.id}),depth:_r,targetDepth:Gr}));var Xo=Zr!==3?mn(Kr,st,kt,$t):3;if(yn&&(yn=ps),ea&1&&_r--,ea&2&&Gr--,Zr=Ui,Xo){if(Xo===-1||_r===0&&Gr===0){if(Xo===-1||Xo===3)for(var ai=so;ai<ar;ai++)i.set(we[ai],1|ls);ar=so}}else i.set(Tn,(kt?4:0)|2|ls),ar=so;return Xo}function mn(Kr,st,kt,$t){e.tracing===null||e.tracing===void 0||e.tracing.push("checkTypes","structuredTypeRelatedTo",{sourceId:Kr.id,targetId:st.id});var ea=ya(Kr,st,kt,$t);return e.tracing===null||e.tracing===void 0||e.tracing.pop(),ea}function ya(Kr,st,kt,$t){if($t&4)return ss(Kr,st,kt,void 0,0);if($t&8){if(Kr.flags&1048576)return i===Ya?Xr(Kr,st,kt&&!(Kr.flags&131068),$t&-9):Pt(Kr,st,kt&&!(Kr.flags&131068),$t&-9);if(st.flags&1048576)return En(sg(Kr),st,kt&&!(Kr.flags&131068)&&!(st.flags&131068));if(st.flags&2097152)return Fn(sg(Kr),st,kt,2);if(i===Ya&&st.flags&131068){var ea=e.sameMap(Kr.types,ee);if(ea!==Kr.types&&(Kr=To(ea),!(Kr.flags&2097152)))return jn(Kr,st,1,!1)}return Xr(Kr,st,!1,1)}var Gn=Kr.flags&st.flags;if(i===fi&&!(Gn&524288)){if(Gn&4194304)return jn(Kr.type,st.type,3,!1);var Tn=0;return Gn&8388608&&(Tn=jn(Kr.objectType,st.objectType,3,!1))&&(Tn&=jn(Kr.indexType,st.indexType,3,!1))||Gn&16777216&&Kr.root.isDistributive===st.root.isDistributive&&(Tn=jn(Kr.checkType,st.checkType,3,!1))&&(Tn&=jn(Kr.extendsType,st.extendsType,3,!1))&&(Tn&=jn(up(Kr),up(st),3,!1))&&(Tn&=jn(fp(Kr),fp(st),3,!1))?Tn:Gn&33554432?jn(Kr.substitute,st.substitute,3,!1):0}var zt,ni,vi=!1,ai=xo();if(Kr.flags&17301504&&Kr.aliasSymbol&&Kr.aliasTypeArguments&&Kr.aliasSymbol===st.aliasSymbol&&!(Kr.aliasTypeArgumentsContainsMarker||st.aliasTypeArgumentsContainsMarker)){var so=wL(Kr.aliasSymbol);if(so===e.emptyArray)return 1;var Ui=OI(Kr.aliasTypeArguments,st.aliasTypeArguments,so,$t);if(Ui!==void 0)return Ui}if(WL(Kr)&&!Kr.target.readonly&&(zt=jn(vo(Kr)[0],st,1))||WL(st)&&(st.target.readonly||Gy(l(Kr)||Kr))&&(zt=jn(Kr,vo(st)[0],2)))return zt;if(st.flags&262144){if(e.getObjectFlags(Kr)&32&&!Kr.declaration.nameType&&jn(qu(st),Tc(Kr),3)&&!(ru(Kr)&4)){var ps=yu(Kr),ls=Hl(st,eu(Kr));if(zt=jn(ps,ls,3,kt))return zt}}else if(st.flags&4194304){var Xo=st.type;if(Kr.flags&4194304&&(zt=jn(Xo,Kr.type,3,!1)))return zt;if(ki(Xo)){if(zt=jn(Kr,WD(Xo),2,kt))return zt}else{var eo=qv(Xo);if(eo){if(jn(Kr,qu(eo,st.stringsOnly),2,kt)===-1)return-1}else if(El(Xo)){var Ko=of(Xo),$o=Tc(Xo),ot=void 0;if(Ko&&Wm(Xo)){var ln=wi(jm(Xo)),aa=[];Kv(ln,8576,!1,function(xv){return void aa.push(oi(Ko,Zg(Xo.mapper,eu(Xo),xv)))}),ot=ma(Gt(Gt([],aa,!0),[Ko],!1))}else ot=Ko||$o;if(jn(Kr,ot,2,kt)===-1)return-1}}}else if(st.flags&8388608){if(Kr.flags&8388608){if((zt=jn(Kr.objectType,st.objectType,3,kt))&&(zt&=jn(Kr.indexType,st.indexType,3,kt)),zt)return Ai(ai),zt;kt&&(ni=G)}if(i===Ta||i===Ya){var qn=st.objectType,ra=st.indexType,Xa=l(qn)||qn,ja=l(ra)||ra;if(!P_(Xa)&&!F_(ja)){var pi=4|(Xa!==qn?2:0),eo=cp(Xa,ja,pi);if(eo){if(kt&&ni&&Ai(ai),zt=jn(Kr,eo,2,kt))return zt;kt&&ni&&G&&(G=MT([ni])<=MT([G])?ni:G)}}}kt&&(ni=void 0)}else if(El(st)&&i!==fi){var Va=!!st.declaration.nameType,ps=yu(st),Ma=ru(st);if(!(Ma&8)){if(!Va&&ps.flags&8388608&&ps.objectType===Kr&&ps.indexType===eu(st))return-1;if(!El(Kr)){var ot=Va?of(st):Tc(st),qi=qu(Kr,void 0,!0),yo=Ma&4,ns=yo?om(ot,qi):void 0;if(yo?!(ns.flags&131072):jn(ot,qi,3)){var Oo=yu(st),Ao=eu(st),Os=W_(Oo,-98305);if(!Va&&Os.flags&8388608&&Os.indexType===Ao){if(zt=jn(Kr,Os.objectType,2,kt))return zt}else{var hl=Va?ns||ot:ns?To([ns,Ao]):Ao,ls=Hl(Kr,hl);if(zt=jn(ls,Oo,3,kt))return zt}}ni=G,Ai(ai)}}}else if(st.flags&16777216){if(dh(st,Je,Gr,10))return Ai(ai),3;var As=st;if(!As.root.inferTypeParameters&&!RO(As.root)){var Cc=!Qi(wy(As.checkType),wy(As.extendsType)),z_=!Cc&&Qi(m_(As.checkType),m_(As.extendsType));if((zt=Cc?-1:jn(Kr,up(As),2,!1))&&(zt&=z_?-1:jn(Kr,fp(As),2,!1),zt))return Ai(ai),zt}}else if(st.flags&134217728){if(Kr.flags&134217728){if(i===Ya)return tw(Kr,st)?0:-1;oi(Kr,p_(qa))}if(rA(Kr,st))return-1}if(Kr.flags&8650752){if(!(Kr.flags&8388608&&st.flags&8388608)){var eo=kp(Kr);if(!eo||Kr.flags&262144&&eo.flags&1){if(zt=jn(Qn,W_(st,-67108865),3))return Ai(ai),zt}else{if(zt=jn(eo,st,1,!1,void 0,$t))return Ai(ai),zt;if(zt=jn(Il(eo,Kr),st,1,kt&&!(st.flags&Kr.flags&262144),void 0,$t))return Ai(ai),zt}}}else if(Kr.flags&4194304){if(zt=jn(_t,st,1,kt))return Ai(ai),zt}else if(Kr.flags&134217728&&!(st.flags&524288)){if(!(st.flags&134217728)){var eo=l(Kr);if(eo&&eo!==Kr&&(zt=jn(eo,st,1,kt)))return Ai(ai),zt}}else if(Kr.flags&268435456)if(st.flags&268435456&&Kr.symbol===st.symbol){if(zt=jn(Kr.type,st.type,3,kt))return Ai(ai),zt}else{var eo=l(Kr);if(eo&&(zt=jn(eo,st,1,kt)))return Ai(ai),zt}else if(Kr.flags&16777216){if(dh(Kr,Ue,_r,10))return Ai(ai),3;if(st.flags&16777216){var D_=Kr.root.inferTypeParameters,Cd=Kr.extendsType,Hp=void 0;if(D_){var Jp=nv(D_,void 0,0,Pi);uf(Jp.inferences,st.extendsType,Cd,1536),Cd=oi(Cd,Jp.mapper),Hp=Jp.mapper}if(jf(Cd,st.extendsType)&&(jn(Kr.checkType,st.checkType,3)||jn(st.checkType,Kr.checkType,3))&&((zt=jn(oi(up(Kr),Hp),up(st),3,kt))&&(zt&=jn(fp(Kr),fp(st),3,kt)),zt))return Ai(ai),zt}else{var xd=Yv(Kr);if(xd&&(zt=jn(xd,st,1,kt)))return Ai(ai),zt}var xm=Xv(Kr);if(xm&&(zt=jn(xm,st,1,kt)))return Ai(ai),zt}else{if(i!==ha&&i!==ri&&GE(st)&&cf(Kr))return-1;if(El(st))return El(Kr)&&(zt=Vi(Kr,st,kt))?(Ai(ai),zt):0;var Jl=!!(Kr.flags&131068);if(i!==fi)Kr=wi(Kr);else if(El(Kr))return 0;if(e.getObjectFlags(Kr)&4&&e.getObjectFlags(st)&4&&Kr.target===st.target&&!ki(Kr)&&!(e.getObjectFlags(Kr)&4096||e.getObjectFlags(st)&4096)){var so=M0(Kr.target);if(so===e.emptyArray)return 1;var Ui=OI(vo(Kr),vo(st),so,$t);if(Ui!==void 0)return Ui}else{if(ag(st)?el(Kr)||ki(Kr):el(st)&&ki(Kr)&&!Kr.target.readonly)return i!==fi?jn(tu(Kr,wt)||Ze,tu(st,wt)||Ze,3,kt):0;if((i===ha||i===ri)&&cf(st)&&e.getObjectFlags(st)&16384&&!cf(Kr))return 0}if(Kr.flags&2621440&&st.flags&524288){var vp=kt&&G===ai.errorInfo&&!Jl;if(zt=ss(Kr,st,vp,void 0,$t),zt&&(zt&=bs(Kr,st,0,vp),zt&&(zt&=bs(Kr,st,1,vp),zt&&(zt&=Ri(Kr,st,Jl,vp,$t)))),vi&&zt)G=ni||G||ai.errorInfo;else if(zt)return zt}if(Kr.flags&2621440&&st.flags&1048576){var NI=W_(st,36175872);if(NI.flags&1048576){var kI=Qa(Kr,NI);if(kI)return kI}}}return 0;function MT(xv){return xv?e.reduceLeft(xv,function(Jh,Dg){return Jh+1+MT(Dg.next)},0):0}function OI(xv,Jh,Dg,MF){if(zt=Bt(xv,Jh,Dg,kt,MF))return zt;if(e.some(Dg,function(PT){return!!(PT&24)})){ni=void 0,Ai(ai);return}var RI=Jh&&ER(Jh,Dg);if(vi=!RI,Dg!==e.emptyArray&&!RI){if(vi&&!(kt&&e.some(Dg,function(PT){return(PT&7)===0})))return 0;ni=G,Ai(ai)}}}function _a(Kr){return yn&&(Kr===io||Kr===ji||Kr===Hi)&&yn(!1),Kr}function qa(Kr){return yn&&(Kr===io||Kr===ji||Kr===Hi)&&yn(!0),Kr}function Vi(Kr,st,kt){var $t=i===Ya||(i===fi?ru(Kr)===ru(st):zv(Kr)<=zv(st));if($t){var ea,Gn=Tc(st),Tn=oi(Tc(Kr),p_(zv(Kr)<0?_a:qa));if(ea=jn(Gn,Tn,3,kt)){var zt=Ol([eu(Kr)],[eu(st)]);if(oi(of(Kr),zt)===oi(of(st),zt))return ea&jn(oi(yu(Kr),zt),yu(st),3,kt)}}return 0}function Qa(Kr,st){var kt=Yi(Kr),$t=oA(kt,st);if(!$t)return 0;for(var ea=1,Gn=0,Tn=$t;Gn<Tn.length;Gn++){var zt=Tn[Gn];if(ea*=xw(Gf(zt)),ea>25)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:Kr.id,targetId:st.id,numCombinations:ea}),0}for(var ni=new Array($t.length),vi=new e.Set,ai=0;ai<$t.length;ai++){var zt=$t[ai],so=Gf(zt);ni[ai]=so.flags&1048576?so.types:[so],vi.add(zt.escapedName)}for(var Ui=e.cartesianProduct(ni),ps=[],ls=function(ra){var Xa=!1;e:for(var ja=0,pi=st.types;ja<pi.length;ja++){for(var Va=pi[ja],Ma=function(ns){var Oo=$t[ns],Ao=Ii(Va,Oo.escapedName);if(!Ao)return"continue-outer";if(Oo===Ao)return"continue";var Os=ao(Kr,st,Oo,Ao,function(hl){return ra[ns]},!1,0,br||i===Ya);if(!Os)return"continue-outer"},qi=0;qi<$t.length;qi++){var yo=Ma(qi);switch(yo){case"continue-outer":continue e}}e.pushIfUnique(ps,Va,e.equateValues),Xa=!0}if(!Xa)return{value:0}},Xo=0,eo=Ui;Xo<eo.length;Xo++){var Ko=eo[Xo],$o=ls(Ko);if(typeof $o=="object")return $o.value}for(var ot=-1,ln=0,aa=ps;ln<aa.length;ln++){var qn=aa[ln];if(ot&=ss(Kr,qn,!1,vi,0),ot&&(ot&=bs(Kr,qn,0,!1),ot&&(ot&=bs(Kr,qn,1,!1),ot&&!(ki(Kr)&&ki(qn))&&(ot&=Ri(Kr,qn,!1,!1,0)))),!ot)return ot}return ot}function ho(Kr,st){if(!st||Kr.length===0)return Kr;for(var kt,$t=0;$t<Kr.length;$t++)st.has(Kr[$t].escapedName)?kt||(kt=Kr.slice(0,$t)):kt&&kt.push(Kr[$t]);return kt||Kr}function Vo(Kr,st,kt,$t,ea){var Gn=br&&!!(e.getCheckFlags(st)&48),Tn=Wl(Gf(st),!1,Gn),zt=kt(Kr);return jn(zt,Tn,3,$t,void 0,ea)}function ao(Kr,st,kt,$t,ea,Gn,Tn,zt){var ni=e.getDeclarationModifierFlagsFromSymbol(kt),vi=e.getDeclarationModifierFlagsFromSymbol($t);if(ni&8||vi&8){if(kt.valueDeclaration!==$t.valueDeclaration)return Gn&&(ni&8&&vi&8?_n(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,Wa($t)):_n(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,Wa($t),gn(ni&8?Kr:st),gn(ni&8?st:Kr))),0}else if(vi&16){if(!AR(kt,$t))return Gn&&_n(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Wa($t),gn(U_(kt)||Kr),gn(U_($t)||st)),0}else if(ni&16)return Gn&&_n(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,Wa($t),gn(Kr),gn(st)),0;var ai=Vo(kt,$t,ea,Gn,Tn);return ai?!zt&&kt.flags&16777216&&!($t.flags&16777216)?(Gn&&_n(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,Wa($t),gn(Kr),gn(st)),0):ai:(Gn&&Wt(e.Diagnostics.Types_of_property_0_are_incompatible,Wa($t)),0)}function Ds(Kr,st,kt,$t){var ea=!1;if(kt.valueDeclaration&&e.isNamedDeclaration(kt.valueDeclaration)&&e.isPrivateIdentifier(kt.valueDeclaration.name)&&Kr.symbol&&Kr.symbol.flags&32){var Gn=kt.valueDeclaration.name.escapedText,Tn=e.getSymbolNameForPrivateIdentifier(Kr.symbol,Gn);if(Tn&&Ii(Kr,Tn)){var zt=e.factory.getDeclarationName(Kr.symbol.valueDeclaration),ni=e.factory.getDeclarationName(st.symbol.valueDeclaration);_n(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,Xl(Gn),Xl(zt.escapedText===""?f:zt),Xl(ni.escapedText===""?f:ni));return}}var vi=e.arrayFrom(e1(Kr,st,$t,!1));if((!s||s.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&s.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(ea=!0),vi.length===1){var ai=Wa(kt);_n.apply(void 0,Gt([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,ai],Rf(Kr,st),!1)),e.length(kt.declarations)&&Ca(e.createDiagnosticForNode(kt.declarations[0],e.Diagnostics._0_is_declared_here,ai)),ea&&G&&Tt++}else Ti(Kr,st,!1)&&(vi.length>5?_n(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,gn(Kr),gn(st),e.map(vi.slice(0,4),function(so){return Wa(so)}).join(", "),vi.length-4):_n(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,gn(Kr),gn(st),e.map(vi,function(so){return Wa(so)}).join(", ")),ea&&G&&Tt++)}function ss(Kr,st,kt,$t,ea){if(i===fi)return Xs(Kr,st,$t);var Gn=-1;if(ki(st)){if(el(Kr)||ki(Kr)){if(!st.target.readonly&&(ag(Kr)||ki(Kr)&&Kr.target.readonly))return 0;var Tn=op(Kr),zt=op(st),ni=ki(Kr)?Kr.target.combinedFlags&4:4,vi=st.target.combinedFlags&4,ai=ki(Kr)?Kr.target.minLength:0,so=st.target.minLength;if(!ni&&Tn<so)return kt&&_n(e.Diagnostics.Source_has_0_element_s_but_target_requires_1,Tn,so),0;if(!vi&&zt<ai)return kt&&_n(e.Diagnostics.Source_has_0_element_s_but_target_allows_only_1,ai,zt),0;if(!vi&&(ni||zt<Tn))return kt&&(ai<so?_n(e.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer,so):_n(e.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more,zt)),0;for(var Ui=vo(Kr),ps=vo(st),ls=Math.min(ki(Kr)?jD(Kr.target,11):0,jD(st.target,11)),Xo=Math.min(ki(Kr)?Ay(Kr.target,11):0,vi?Ay(st.target,11):0),eo=!!$t,Ko=0;Ko<zt;Ko++){var $o=Ko<zt-Xo?Ko:Ko+Tn-zt,ot=ki(Kr)&&(Ko<ls||Ko>=zt-Xo)?Kr.target.elementFlags[$o]:4,ln=st.target.elementFlags[Ko];if(ln&8&&!(ot&8))return kt&&_n(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Ko),0;if(ot&8&&!(ln&12))return kt&&_n(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,$o,Ko),0;if(ln&1&&!(ot&1))return kt&&_n(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,Ko),0;if(!(eo&&((ot&12||ln&12)&&(eo=!1),eo&&($t!=null&&$t.has(""+Ko))))){var aa=ki(Kr)?Ko<ls||Ko>=zt-Xo?gm(Ui[$o],!!(ot&ln&2)):By(Kr,ls,Xo)||en:Ui[0],qn=ps[Ko],ra=ot&8&&ln&4?zs(qn):gm(qn,!!(ln&2)),Xa=jn(aa,ra,3,kt,void 0,ea);if(!Xa)return kt&&(zt>1||Tn>1)&&(Ko<ls||Ko>=zt-Xo||Tn-ls-Xo===1?Wt(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,$o,Ko):Wt(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,ls,Tn-Xo-1,Ko)),0;Gn&=Xa}}return Gn}if(st.target.combinedFlags&12)return 0}var ja=(i===ha||i===ri)&&!Gp(Kr)&&!U0(Kr)&&!ki(Kr),pi=r1(Kr,st,ja,!1);if(pi)return kt&&Ds(Kr,st,pi,ja),0;if(Gp(st))for(var Va=0,Ma=ho(Yi(Kr),$t);Va<Ma.length;Va++){var qi=Ma[Va];if(!hd(st,qi.escapedName)){var aa=An(qi);if(!(aa.flags&32768))return kt&&_n(e.Diagnostics.Property_0_does_not_exist_on_type_1,Wa(qi),gn(st)),0}}for(var yo=Yi(st),ns=ki(Kr)&&ki(st),Oo=0,Ao=ho(yo,$t);Oo<Ao.length;Oo++){var Os=Ao[Oo],hl=Os.escapedName;if(!(Os.flags&4194304)&&(!ns||zf(hl)||hl==="length")){var qi=Ii(Kr,hl);if(qi&&qi!==Os){var Xa=ao(Kr,st,qi,Os,Gf,kt,ea,i===Ya);if(!Xa)return 0;Gn&=Xa}}}return Gn}function Xs(Kr,st,kt){if(!(Kr.flags&524288&&st.flags&524288))return 0;var $t=ho(sf(Kr),kt),ea=ho(sf(st),kt);if($t.length!==ea.length)return 0;for(var Gn=-1,Tn=0,zt=$t;Tn<zt.length;Tn++){var ni=zt[Tn],vi=hd(st,ni.escapedName);if(!vi)return 0;var ai=F0(ni,vi,jn);if(!ai)return 0;Gn&=ai}return Gn}function bs(Kr,st,kt,$t){var ea,Gn;if(i===fi)return Av(Kr,st,kt);if(st===yi||Kr===yi)return-1;var Tn=Kr.symbol&&ou(Kr.symbol.valueDeclaration),zt=st.symbol&&ou(st.symbol.valueDeclaration),ni=Ni(Kr,Tn&&kt===1?0:kt),vi=Ni(st,zt&&kt===1?0:kt);if(kt===1&&ni.length&&vi.length){var ai=!!(ni[0].flags&4),so=!!(vi[0].flags&4);if(ai&&!so)return $t&&_n(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Bs(ni[0],vi[0],$t))return 0}var Ui=-1,ps=xo(),ls=kt===1?Ls:Yf,Xo=e.getObjectFlags(Kr),eo=e.getObjectFlags(st);if(Xo&64&&eo&64&&Kr.symbol===st.symbol)for(var Ko=0;Ko<vi.length;Ko++){var $o=Ad(ni[Ko],vi[Ko],!0,$t,ls(ni[Ko],vi[Ko]));if(!$o)return 0;Ui&=$o}else if(ni.length===1&&vi.length===1){var ot=i===Ya||!!Xe.noStrictGenericChecks,ln=e.first(ni),aa=e.first(vi);if(Ui=Ad(ln,aa,ot,$t,ls(ln,aa)),!Ui&&$t&&kt===1&&Xo&eo&&(((ea=aa.declaration)===null||ea===void 0?void 0:ea.kind)===170||((Gn=ln.declaration)===null||Gn===void 0?void 0:Gn.kind)===170)){var qn=function(yo){return pu(yo,void 0,262144,kt)};return _n(e.Diagnostics.Type_0_is_not_assignable_to_type_1,qn(ln),qn(aa)),_n(e.Diagnostics.Types_of_construct_signatures_are_incompatible),Ui}}else e:for(var ra=0,Xa=vi;ra<Xa.length;ra++){for(var ja=Xa[ra],pi=$t,Va=0,Ma=ni;Va<Ma.length;Va++){var qi=Ma[Va],$o=Ad(qi,ja,!0,pi,ls(qi,ja));if($o){Ui&=$o,Ai(ps);continue e}pi=!1}return pi&&_n(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,gn(Kr),pu(ja,void 0,void 0,kt)),0}return Ui}function Yf(Kr,st){return Kr.parameters.length===0&&st.parameters.length===0?function(kt,$t){return Wt(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,gn(kt),gn($t))}:function(kt,$t){return Wt(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,gn(kt),gn($t))}}function Ls(Kr,st){return Kr.parameters.length===0&&st.parameters.length===0?function(kt,$t){return Wt(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,gn(kt),gn($t))}:function(kt,$t){return Wt(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,gn(kt),gn($t))}}function Ad(Kr,st,kt,$t,ea){return x0(kt?Jg(Kr):Kr,kt?Jg(st):st,i===ri?8:0,$t,_n,ea,Pi,p_(qa))}function Av(Kr,st,kt){var $t=Ni(Kr,kt),ea=Ni(st,kt);if($t.length!==ea.length)return 0;for(var Gn=-1,Tn=0;Tn<$t.length;Tn++){var zt=_h($t[Tn],ea[Tn],!1,!1,!1,jn);if(!zt)return 0;Gn&=zt}return Gn}function Cv(Kr,st,kt){for(var $t=-1,ea=st.keyType,Gn=Kr.flags&2097152?Hm(Kr):sf(Kr),Tn=0,zt=Gn;Tn<zt.length;Tn++){var ni=zt[Tn];if(!NL(Kr,ni)&&u_(eg(ni,8576),ea)){var vi=Gf(ni),ai=de||vi.flags&32768||ea===wt||!(ni.flags&16777216)?vi:Fs(vi,524288),so=jn(ai,st.type,3,kt);if(!so)return kt&&_n(e.Diagnostics.Property_0_is_incompatible_with_index_signature,Wa(ni)),0;$t&=so}}for(var Ui=0,ps=Ps(Kr);Ui<ps.length;Ui++){var ls=ps[Ui];if(u_(ls.keyType,ea)){var so=Pa(ls,st,kt);if(!so)return 0;$t&=so}}return $t}function Pa(Kr,st,kt){var $t=jn(Kr.type,st.type,3,kt);return!$t&&kt&&(Kr.keyType===st.keyType?_n(e.Diagnostics._0_index_signatures_are_incompatible,gn(Kr.keyType)):_n(e.Diagnostics._0_and_1_index_signatures_are_incompatible,gn(Kr.keyType),gn(st.keyType))),$t}function Ri(Kr,st,kt,$t,ea){if(i===fi)return uo(Kr,st);for(var Gn=Ps(st),Tn=e.some(Gn,function(Ui){return Ui.keyType===xt}),zt=-1,ni=0,vi=Gn;ni<vi.length;ni++){var ai=vi[ni],so=!kt&&Tn&&ai.type.flags&1?-1:El(Kr)&&Tn?jn(yu(Kr),ai.type,3,$t):qo(Kr,ai,$t,ea);if(!so)return 0;zt&=so}return zt}function qo(Kr,st,kt,$t){var ea=zm(Kr,st.keyType);return ea?Pa(ea,st,kt):!($t&1)&&jy(Kr)?Cv(Kr,st,kt):(kt&&_n(e.Diagnostics.Index_signature_for_type_0_is_missing_in_type_1,gn(st.keyType),gn(Kr)),0)}function uo(Kr,st){var kt=Ps(Kr),$t=Ps(st);if(kt.length!==$t.length)return 0;for(var ea=0,Gn=$t;ea<Gn.length;ea++){var Tn=Gn[ea],zt=oc(Kr,Tn.keyType);if(!(zt&&jn(zt.type,Tn.type,3)&&zt.isReadonly===Tn.isReadonly))return 0}return-1}function Bs(Kr,st,kt){if(!Kr.declaration||!st.declaration)return!0;var $t=e.getSelectedEffectiveModifierFlags(Kr.declaration,24),ea=e.getSelectedEffectiveModifierFlags(st.declaration,24);return ea===8||ea===16&&$t!==8||ea!==16&&!$t?!0:(kt&&_n(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,pd($t),pd(ea)),!1)}}function O0(r){if(r.flags&16)return!1;if(r.flags&3145728)return!!e.forEach(r.types,O0);if(r.flags&465829888){var t=kp(r);if(t&&t!==r)return O0(t)}return Su(r)||!!(r.flags&134217728)}function kL(r,t){return ki(r)&&ki(t)?e.emptyArray:Yi(t).filter(function(i){return R0(ia(r,i.escapedName),An(i))})}function R0(r,t){return!!r&&!!t&&Jo(r,32768)&&!!Wy(t)}function hR(r){return Yi(r).filter(function(t){return Wy(An(t))})}function OL(r,t,i){return i===void 0&&(i=A0),II(r,t,i,!0)||NF(r,t)||kF(r,t)||OF(r,t)||RF(r,t)}function w0(r,t,i,o,s){for(var c=r.types.map(function(Vt){}),L=0,G=t;L<G.length;L++){var ce=G[L],we=ce[0],Ue=ce[1],Je=hs(r,Ue);if(!(s&&Je&&e.getCheckFlags(Je)&16))for(var ar=0,_r=0,Gr=r.types;_r<Gr.length;_r++){var Zr=Gr[_r],Et=ia(Zr,Ue);Et&&i(we(),Et)?c[ar]=c[ar]===void 0?!0:c[ar]:c[ar]=!1,ar++}}var Tt=c.indexOf(!0);if(Tt===-1)return o;for(var At=c.indexOf(!0,Tt+1);At!==-1;){if(!jf(r.types[Tt],r.types[At]))return o;At=c.indexOf(!0,At+1)}return r.types[Tt]}function RL(r){if(r.flags&524288){var t=Sc(r);return t.callSignatures.length===0&&t.constructSignatures.length===0&&t.indexInfos.length===0&&t.properties.length>0&&e.every(t.properties,function(i){return!!(i.flags&16777216)})}return r.flags&2097152?e.every(r.types,RL):!1}function yR(r,t,i){for(var o=0,s=Yi(r);o<s.length;o++){var c=s[o];if(x1(t,c.escapedName,i))return!0}return!1}function bR(r,t,i){var o=Uf(r,e.map(r.typeParameters,function(s){return s===t?i:s}));return o.objectFlags|=4096,o}function wL(r){var t=Ja(r);return ML(t.typeParameters,t,function(i,o,s){var c=Zm(r,bd(t.typeParameters,B_(o,s)));return c.aliasTypeArgumentsContainsMarker=!0,c})}function ML(r,t,i){var o,s,c;r===void 0&&(r=e.emptyArray);var L=t.variances;if(!L){e.tracing===null||e.tracing===void 0||e.tracing.push("checkTypes","getVariancesWorker",{arity:r.length,id:(c=(o=t.id)!==null&&o!==void 0?o:(s=t.declaredType)===null||s===void 0?void 0:s.id)!==null&&c!==void 0?c:-1}),t.variances=e.emptyArray,L=[];for(var G=function(Je){var ar=!1,_r=!1,Gr=yn;yn=function(At){return At?_r=!0:ar=!0};var Zr=i(t,Je,io),Et=i(t,Je,ji),Tt=(Qi(Et,Zr)?1:0)|(Qi(Zr,Et)?2:0);Tt===3&&Qi(i(t,Je,Hi),Zr)&&(Tt=4),yn=Gr,(ar||_r)&&(ar&&(Tt|=8),_r&&(Tt|=16)),L.push(Tt)},ce=0,we=r;ce<we.length;ce++){var Ue=we[ce];G(Ue)}t.variances=L,e.tracing===null||e.tracing===void 0||e.tracing.pop()}return L}function M0(r){return r===se||r===Be||r.objectFlags&8?qe:ML(r.typeParameters,r,bR)}function ER(r,t){for(var i=0;i<t.length;i++)if((t[i]&7)===1&&r[i].flags&16384)return!0;return!1}function TR(r){return r.flags&262144&&!Nl(r)}function SR(r){return!!(e.getObjectFlags(r)&4)&&!r.node}function Py(r){return SR(r)&&e.some(vo(r),function(t){return!!(t.flags&262144)||Py(t)})}function DR(r,t,i,o){var s=[],c="",L=ce(r,0),G=ce(t,0);return"".concat(c).concat(L,",").concat(G).concat(i);function ce(we,Ue){Ue===void 0&&(Ue=0);for(var Je=""+we.target.id,ar=0,_r=vo(we);ar<_r.length;ar++){var Gr=_r[ar];if(Gr.flags&262144){if(o||TR(Gr)){var Zr=s.indexOf(Gr);Zr<0&&(Zr=s.length,s.push(Gr)),Je+="="+Zr;continue}c="*"}else if(Ue<4&&Py(Gr)){Je+="<"+ce(Gr,Ue+1)+">";continue}Je+="-"+Gr.id}return Je}}function P0(r,t,i,o,s){if(o===fi&&r.id>t.id){var c=r;r=t,t=c}var L=i?":"+i:"";return Py(r)&&Py(t)?DR(r,t,L,s):"".concat(r.id,",").concat(t.id).concat(L)}function fh(r,t){if(e.getCheckFlags(r)&6){for(var i=0,o=r.containingType.types;i<o.length;i++){var s=o[i],c=Ii(s,r.escapedName),L=c&&fh(c,t);if(L)return L}return}return t(r)}function U_(r){return r.parent&&r.parent.flags&32?po(Ts(r)):void 0}function Fy(r){var t=U_(r),i=t&&xl(t)[0];return i&&ia(i,r.escapedName)}function LR(r,t){return fh(r,function(i){var o=U_(i);return o?Cp(o,t):!1})}function AR(r,t){return!fh(t,function(i){return e.getDeclarationModifierFlagsFromSymbol(i)&16?!LR(r,U_(i)):!1})}function CR(r,t,i){return fh(t,function(o){return e.getDeclarationModifierFlagsFromSymbol(o,i)&16?!Cp(r,U_(o)):!1})?void 0:r}function dh(r,t,i,o){if(o===void 0&&(o=3),i>=o)for(var s=ph(r),c=0,L=0,G=0;G<i;G++){var ce=t[G];if(ph(ce)===s){if(ce.id>=L&&(c++,c>=o))return!0;L=ce.id}}return!1}function ph(r){if(r.flags&524288&&!t1(r)){if(e.getObjectFlags(r)&&r.node)return r.node;if(r.symbol&&!(e.getObjectFlags(r)&16&&r.symbol.flags&32))return r.symbol;if(ki(r))return r.target}if(r.flags&262144)return r.symbol;if(r.flags&8388608){do r=r.objectType;while(r.flags&8388608);return r}return r.flags&16777216?r.root:r}function PL(r,t){return F0(r,t,$g)!==0}function F0(r,t,i){if(r===t)return-1;var o=e.getDeclarationModifierFlagsFromSymbol(r)&24,s=e.getDeclarationModifierFlagsFromSymbol(t)&24;if(o!==s)return 0;if(o){if(Am(r)!==Am(t))return 0}else if((r.flags&16777216)!==(t.flags&16777216))return 0;return Iu(r)!==Iu(t)?0:i(An(r),An(t))}function xR(r,t,i){var o=Tl(r),s=Tl(t),c=Cu(r),L=Cu(t),G=xu(r),ce=xu(t);return!!(o===s&&c===L&&G===ce||i&&c<=L)}function _h(r,t,i,o,s,c){if(r===t)return-1;if(!xR(r,t,i)||e.length(r.typeParameters)!==e.length(t.typeParameters))return 0;if(t.typeParameters){for(var L=Ol(r.typeParameters,t.typeParameters),G=0;G<t.typeParameters.length;G++){var ce=r.typeParameters[G],we=t.typeParameters[G];if(!(ce===we||c(oi(Qm(ce),L)||tr,Qm(we)||tr)&&c(oi(Bn(ce),L)||tr,Bn(we)||tr)))return 0}r=pm(r,L,!0)}var Ue=-1;if(!o){var Je=f_(r);if(Je){var ar=f_(t);if(ar){var _r=c(Je,ar);if(!_r)return 0;Ue&=_r}}}for(var Gr=Tl(t),G=0;G<Gr;G++){var ce=Uc(r,G),we=Uc(t,G),_r=c(we,ce);if(!_r)return 0;Ue&=_r}if(!s){var Zr=Dc(r),Et=Dc(t);Ue&=Zr||Et?IR(Zr,Et,c):c(_o(r),_o(t))}return Ue}function IR(r,t,i){return r&&t&&s0(r,t)?r.type===t.type?-1:r.type&&t.type?i(r.type,t.type):0:0}function NR(r){for(var t,i=0,o=r;i<o.length;i++){var s=o[i],c=Du(s);if(t||(t=c),c===s||c!==t)return!1}return!0}function FL(r){return r.length===1?r[0]:NR(r)?ma(r):e.reduceLeft(r,function(t,i){return Ed(t,i)?i:t})}function kR(r){if(!br)return FL(r);var t=e.filter(r,function(i){return!(i.flags&98304)});return t.length?Uy(FL(t),jL(r)&98304):ma(r,2)}function OR(r){return e.reduceLeft(r,function(t,i){return Ed(i,t)?i:t})}function el(r){return!!(e.getObjectFlags(r)&4)&&(r.target===se||r.target===Be)}function ag(r){return!!(e.getObjectFlags(r)&4)&&r.target===Be}function Gy(r){return el(r)&&!ag(r)||ki(r)&&!r.target.readonly}function G0(r){return el(r)?vo(r)[0]:void 0}function _p(r){return el(r)||!(r.flags&98304)&&Qi(r,xa)}function B0(r){if(!(!(e.getObjectFlags(r)&4)||!(e.getObjectFlags(r.target)&3))){if(e.getObjectFlags(r)&33554432)return e.getObjectFlags(r)&67108864?r.cachedEquivalentBaseType:void 0;r.objectFlags|=33554432;var t=r.target;if(e.getObjectFlags(t)&1){var i=o_(t);if(i&&i.expression.kind!==79&&i.expression.kind!==205)return}var o=xl(t);if(o.length===1&&!af(r.symbol).size){var s=e.length(t.typeParameters)?oi(o[0],Ol(t.typeParameters,vo(r).slice(0,t.typeParameters.length))):o[0];return e.length(vo(r))>e.length(t.typeParameters)&&(s=Il(s,e.last(vo(r)))),r.objectFlags|=67108864,r.cachedEquivalentBaseType=s}}}function GL(r){return br?r===qt:r===zr}function U0(r){var t=G0(r);return!!t&&GL(t)}function ig(r){return ki(r)||!!Ii(r,"0")}function BL(r){return _p(r)||ig(r)}function RR(r,t){var i=ia(r,""+t);if(i)return i;if(Kf(r,ki))return ds(r,function(o){return rv(o)||Nr})}function wR(r){return!(r.flags&240512)}function Su(r){return!!(r.flags&109440)}function UL(r){return r.flags&2097152?e.some(r.types,Su):!!(r.flags&109440)}function MR(r){return r.flags&2097152&&e.find(r.types,Su)||r}function mm(r){return r.flags&16?!0:r.flags&1048576?r.flags&1024?!0:e.every(r.types,Su):Su(r)}function Du(r){return r.flags&1024?Zs(r):r.flags&128?xt:r.flags&256?wt:r.flags&2048?Qt:r.flags&512?Jn:r.flags&1048576?ds(r,Du):r}function Pp(r){return r.flags&1024&&Mp(r)?Zs(r):r.flags&128&&Mp(r)?xt:r.flags&256&&Mp(r)?wt:r.flags&2048&&Mp(r)?Qt:r.flags&512&&Mp(r)?Jn:r.flags&1048576?ds(r,Pp):r}function VL(r){return r.flags&8192?na:r.flags&1048576?ds(r,VL):r}function V0(r,t){return Cb(r,t)||(r=VL(Pp(r))),r}function PR(r,t,i){if(r&&Su(r)){var o=t?i?hv(t):t:void 0;r=V0(r,o)}return r}function W0(r,t,i,o){if(r&&Su(r)){var s=t?Lm(i,t,o):void 0;r=V0(r,s)}return r}function ki(r){return!!(e.getObjectFlags(r)&4&&r.target.objectFlags&8)}function og(r){return ki(r)&&!!(r.target.combinedFlags&8)}function WL(r){return og(r)&&r.target.elementFlags.length===1}function rv(r){return By(r,r.target.fixedLength)}function FR(r){var t=rv(r);return t&&zs(t)}function By(r,t,i,o){i===void 0&&(i=0),o===void 0&&(o=!1);var s=op(r)-i;if(t<s){for(var c=vo(r),L=[],G=t;G<s;G++){var ce=c[G];L.push(r.target.elementFlags[G]&8?Hl(ce,wt):ce)}return o?To(L):ma(L)}}function GR(r,t){return op(r)===op(t)&&e.every(r.target.elementFlags,function(i,o){return(i&12)===(t.target.elementFlags[o]&12)})}function j0(r){var t=r.value;return t.base10Value==="0"}function jL(r){for(var t=0,i=0,o=r;i<o.length;i++){var s=o[i];t|=lc(s)}return t}function lc(r){return r.flags&1048576?jL(r.types):r.flags&128?r.value===""?128:0:r.flags&256?r.value===0?256:0:r.flags&2048?j0(r)?2048:0:r.flags&512?r===mt||r===rn?512:0:r.flags&117724}function HL(r){return lc(r)&117632?rl(r,function(t){return!(lc(t)&117632)}):r}function BR(r){return ds(r,UR)}function UR(r){return r.flags&4?Vs:r.flags&8?Ql:r.flags&64?zl:r===rn||r===mt||r.flags&114691||r.flags&128&&r.value===""||r.flags&256&&r.value===0||r.flags&2048&&j0(r)?r:en}function Uy(r,t){var i=t&~r.flags&98304;return i===0?r:ma(i===32768?[r,Nr]:i===65536?[r,ut]:[r,Nr,ut])}function Jf(r,t){return t===void 0&&(t=!1),e.Debug.assert(br),r.flags&32768?r:ma([r,t?vt:Nr])}function VR(r){var t=Fs(r,2097152);return Di||(Di=Kg("NonNullable",524288,void 0)||We),Di!==We?Zm(Di,[t]):t}function Td(r){return br?VR(r):r}function JL(r){return br?ma([r,gt]):r}function H0(r){return br?Zy(r,gt):r}function Vy(r,t,i){return i?e.isOutermostOptionalChain(t)?Jf(r):JL(r):r}function tv(r,t){return e.isExpressionOfOptionalChainRoot(t)?Td(r):e.isOptionalChain(t)?H0(r):r}function gm(r,t){return de&&t?Zy(r,vt):r}function Wy(r){return de&&(r===vt||r.flags&1048576&&sp(r.types,vt))}function J0(r){return de?Zy(r,vt):Fs(r,524288)}function WR(r,t){return(r.flags&524)!==0&&(t.flags&28)!==0}function jy(r){return r.flags&2097152?e.every(r.types,jy):!!(r.symbol&&r.symbol.flags&7040&&!LT(r))||!!(e.getObjectFlags(r)&1024&&jy(r.source))}function V_(r,t){var i=fo(r.flags,r.escapedName,e.getCheckFlags(r)&8);i.declarations=r.declarations,i.parent=r.parent,i.type=t,i.target=r,r.valueDeclaration&&(i.valueDeclaration=r.valueDeclaration);var o=Ja(r).nameType;return o&&(i.nameType=o),i}function jR(r,t){for(var i=e.createSymbolTable(),o=0,s=sf(r);o<s.length;o++){var c=s[o],L=An(c),G=t(L);i.set(c.escapedName,G===L?c:V_(c,G))}return i}function sg(r){if(!(Gp(r)&&e.getObjectFlags(r)&16384))return r;var t=r.regularType;if(t)return t;var i=r,o=jR(r,sg),s=ts(i.symbol,o,i.callSignatures,i.constructSignatures,i.indexInfos);return s.flags=i.flags,s.objectFlags|=i.objectFlags&-16385,r.regularType=s,s}function KL(r,t,i){return{parent:r,propertyName:t,siblings:i,resolvedProperties:void 0}}function zL(r){if(!r.siblings){for(var t=[],i=0,o=zL(r.parent);i<o.length;i++){var s=o[i];if(Gp(s)){var c=hd(s,r.propertyName);c&&v_(An(c),function(L){t.push(L)})}}r.siblings=t}return r.siblings}function HR(r){if(!r.resolvedProperties){for(var t=new e.Map,i=0,o=zL(r);i<o.length;i++){var s=o[i];if(Gp(s)&&!(e.getObjectFlags(s)&4194304))for(var c=0,L=Yi(s);c<L.length;c++){var G=L[c];t.set(G.escapedName,G)}}r.resolvedProperties=e.arrayFrom(t.values())}return r.resolvedProperties}function JR(r,t){if(!(r.flags&4))return r;var i=An(r),o=t&&KL(t,r.escapedName,void 0),s=K0(i,o);return s===i?r:V_(r,s)}function KR(r){var t=Ee.get(r.escapedName);if(t)return t;var i=V_(r,vt);return i.flags|=16777216,Ee.set(r.escapedName,i),i}function zR(r,t){for(var i=e.createSymbolTable(),o=0,s=sf(r);o<s.length;o++){var c=s[o];i.set(c.escapedName,JR(c,t))}if(t)for(var L=0,G=HR(t);L<G.length;L++){var c=G[L];i.has(c.escapedName)||i.set(c.escapedName,KR(c))}var ce=ts(r.symbol,i,e.emptyArray,e.emptyArray,e.sameMap(Ps(r),function(we){return Eu(we.keyType,wl(we.type),we.isReadonly)}));return ce.objectFlags|=e.getObjectFlags(r)&532480,ce}function wl(r){return K0(r,void 0)}function K0(r,t){if(e.getObjectFlags(r)&393216){if(t===void 0&&r.widened)return r.widened;var i=void 0;if(r.flags&98305)i=Ze;else if(Gp(r))i=zR(r,t);else if(r.flags&1048576){var o=t||KL(void 0,void 0,r.types),s=e.sameMap(r.types,function(c){return c.flags&98304?c:K0(c,o)});i=ma(s,e.some(s,cf)?2:1)}else r.flags&2097152?i=To(e.sameMap(r.types,wl)):(el(r)||ki(r))&&(i=Uf(r.target,e.sameMap(vo(r),wl)));return i&&t===void 0&&(r.widened=i),i||r}return r}function Hy(r){var t=!1;if(e.getObjectFlags(r)&131072){if(r.flags&1048576)if(e.some(r.types,cf))t=!0;else for(var i=0,o=r.types;i<o.length;i++){var s=o[i];Hy(s)&&(t=!0)}if(el(r)||ki(r))for(var c=0,L=vo(r);c<L.length;c++){var s=L[c];Hy(s)&&(t=!0)}if(Gp(r))for(var G=0,ce=sf(r);G<ce.length;G++){var we=ce[G],s=An(we);e.getObjectFlags(s)&131072&&(Hy(s)||Mr(we.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,Wa(we),gn(wl(s))),t=!0)}}return t}function Fp(r,t,i){var o=gn(wl(t));if(!(e.isInJSFile(r)&&!e.isCheckJsEnabledForFile(e.getSourceFileOfNode(r),Xe))){var s;switch(r.kind){case 220:case 166:case 165:s=Ke?e.Diagnostics.Member_0_implicitly_has_an_1_type:e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 163:var c=r;if(e.isIdentifier(c.name)&&(e.isCallSignatureDeclaration(c.parent)||e.isMethodSignature(c.parent)||e.isFunctionTypeNode(c.parent))&&c.parent.parameters.indexOf(c)>-1&&(Uo(c,c.name.escapedText,788968,void 0,c.name.escapedText,!0)||c.name.originalKeywordKind&&e.isTypeNodeKind(c.name.originalKeywordKind))){var L="arg"+c.parent.parameters.indexOf(c),G=e.declarationNameToString(c.name)+(c.dotDotDotToken?"[]":"");pc(Ke,r,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,L,G);return}s=r.dotDotDotToken?Ke?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Ke?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 202:if(s=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!Ke)return;break;case 315:Mr(r,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,o);return;case 255:case 168:case 167:case 171:case 172:case 212:case 213:if(Ke&&!r.name){i===3?Mr(r,e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,o):Mr(r,e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,o);return}s=Ke?i===3?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 194:Ke&&Mr(r,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type);return;default:s=Ke?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}pc(Ke,r,s,e.declarationNameToString(e.getNameOfDeclaration(r)),o)}}function Jy(r,t,i){Se&&Ke&&e.getObjectFlags(t)&131072&&(!i||!T1(r))&&(Hy(t)||Fp(r,t,i))}function z0(r,t,i){var o=Tl(r),s=Tl(t),c=dv(r),L=dv(t),G=L?s-1:s,ce=c?G:Math.min(o,G),we=f_(r);if(we){var Ue=f_(t);Ue&&i(we,Ue)}for(var Je=0;Je<ce;Je++)i(Uc(r,Je),Uc(t,Je));L&&i(gg(r,ce),L)}function q0(r,t,i){var o=Dc(r),s=Dc(t);o&&s&&s0(o,s)&&o.type&&s.type?i(o.type,s.type):i(_o(r),_o(t))}function nv(r,t,i,o){return X0(r.map(Y0),t,i,o||A0)}function qR(r,t){return t===void 0&&(t=0),r&&X0(e.map(r.inferences,XL),r.signature,r.flags|t,r.compareTypes)}function X0(r,t,i,o){var s={inferences:r,signature:t,flags:i,compareTypes:o,mapper:p_(function(c){return qL(s,c,!0)}),nonFixingMapper:p_(function(c){return qL(s,c,!1)})};return s}function qL(r,t,i){for(var o=r.inferences,s=0;s<o.length;s++){var c=o[s];if(t===c.typeParameter)return i&&!c.isFixed&&(Ky(o),c.isFixed=!0),nA(r,s)}return t}function Ky(r){for(var t=0,i=r;t<i.length;t++){var o=i[t];o.isFixed||(o.inferredType=void 0)}}function Y0(r){return{typeParameter:r,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function XL(r){return{typeParameter:r.typeParameter,candidates:r.candidates&&r.candidates.slice(),contraCandidates:r.contraCandidates&&r.contraCandidates.slice(),inferredType:r.inferredType,priority:r.priority,topLevel:r.topLevel,isFixed:r.isFixed,impliedArity:r.impliedArity}}function XR(r){var t=e.filter(r.inferences,H_);return t.length?X0(e.map(t,XL),r.signature,r.flags,r.compareTypes):void 0}function Q0(r){return r&&r.mapper}function av(r){var t=e.getObjectFlags(r);if(t&1048576)return!!(t&2097152);var i=!!(r.flags&465829888||r.flags&524288&&!YL(r)&&(t&4&&(r.node||e.forEach(vo(r),av))||t&16&&r.symbol&&r.symbol.flags&14384&&r.symbol.declarations||t&8389664)||r.flags&3145728&&!(r.flags&1024)&&!YL(r)&&e.some(r.types,av));return r.flags&3899393&&(r.objectFlags|=1048576|(i?2097152:0)),i}function YL(r){if(r.aliasSymbol&&!r.aliasTypeArguments){var t=e.getDeclarationOfKind(r.aliasSymbol,258);return!!(t&&e.findAncestor(t.parent,function(i){return i.kind===303?!0:i.kind===260?!1:"quit"}))}return!1}function Z0(r,t){return!!(r===t||r.flags&3145728&&e.some(r.types,function(i){return Z0(i,t)})||r.flags&16777216&&(up(r)===t||fp(r)===t))}function YR(r){var t=e.createSymbolTable();v_(r,function(o){if(o.flags&128){var s=e.escapeLeadingUnderscores(o.value),c=fo(4,s);c.type=Ze,o.symbol&&(c.declarations=o.symbol.declarations,c.valueDeclaration=o.symbol.valueDeclaration),t.set(s,c)}});var i=r.flags&4?[Eu(xt,Qn,!1)]:e.emptyArray;return ts(void 0,t,e.emptyArray,e.emptyArray,i)}function QL(r,t,i){if(!Cs){var o=r.id+","+t.id+","+i.id;if(Es.has(o))return Es.get(o);Cs=!0;var s=QR(r,t,i);return Cs=!1,Es.set(o,s),s}}function $0(r){return!(e.getObjectFlags(r)&524288)||Gp(r)&&e.some(Yi(r),function(t){return $0(An(t))})||ki(r)&&e.some(vo(r),$0)}function QR(r,t,i){if(oc(r,xt)||Yi(r).length!==0&&$0(r)){if(el(r))return zs(zy(vo(r)[0],t,i),ag(r));if(ki(r)){var o=e.map(vo(r),function(L){return zy(L,t,i)}),s=ru(t)&4?e.sameMap(r.target.elementFlags,function(L){return L&2?1:L}):r.target.elementFlags;return Tu(o,s,r.target.readonly,r.target.labeledElementDeclarations)}var c=Bl(1040,void 0);return c.source=r,c.mappedType=t,c.constraintType=i,c}}function ZR(r){var t=Ja(r);return t.type||(t.type=zy(r.propertyType,r.mappedType,r.constraintType)),t.type}function zy(r,t,i){var o=Hl(i.type,eu(t)),s=yu(t),c=Y0(o);return uf([c],r,s),ZL(c)||tr}function e1(r,t,i,o){var s,c,L,G,ce,we,Ue;return Og(this,function(Je){switch(Je.label){case 0:s=Yi(t),c=0,L=s,Je.label=1;case 1:return c<L.length?(G=L[c],Gv(G)?[3,5]:i||!(G.flags&16777216||e.getCheckFlags(G)&48)?(ce=Ii(r,G.escapedName),ce?[3,3]:[4,G]):[3,5]):[3,6];case 2:return Je.sent(),[3,5];case 3:return o?(we=An(G),we.flags&109440?(Ue=An(ce),Ue.flags&1||kl(Ue)===kl(we)?[3,5]:[4,G]):[3,5]):[3,5];case 4:Je.sent(),Je.label=5;case 5:return c++,[3,1];case 6:return[2]}})}function r1(r,t,i,o){var s=e1(r,t,i,o).next();if(!s.done)return s.value}function $R(r,t){return!(t.target.combinedFlags&8)&&t.target.minLength>r.target.minLength||!t.target.hasRestElement&&(r.target.hasRestElement||t.target.fixedLength<r.target.fixedLength)}function ew(r,t){return ki(r)&&ki(t)?$R(r,t):!!r1(r,t,!1,!0)&&!!r1(t,r,!1,!1)}function ZL(r){return r.candidates?ma(r.candidates,2):r.contraCandidates?To(r.contraCandidates):void 0}function rw(r){return!!Zn(r).skipDirectInference}function $L(r){return!!(r.symbol&&e.some(r.symbol.declarations,rw))}function tw(r,t){var i=r.texts[0],o=t.texts[0],s=r.texts[r.texts.length-1],c=t.texts[t.texts.length-1],L=Math.min(i.length,o.length),G=Math.min(s.length,c.length);return i.slice(0,L)!==o.slice(0,L)||s.slice(s.length-G)!==c.slice(c.length-G)}function nw(r){var t=e.createScanner(99,!1),i=!0;t.setOnError(function(){return i=!1}),t.setText(r+"n");var o=t.scan();o===40&&(o=t.scan());var s=t.getTokenFlags();return i&&o===9&&t.getTextPos()===r.length+1&&!(s&512)}function aw(r,t){if(r===t||t.flags&5)return!0;if(r.flags&128){var i=r.value;return!!(t.flags&8&&i!==""&&isFinite(+i)||t.flags&64&&i!==""&&nw(i)||t.flags&98816&&i===t.intrinsicName)}if(r.flags&134217728){var o=r.texts;return o.length===2&&o[0]===""&&o[1]===""&&Qi(r.types[0],t)}return Qi(r,t)}function eA(r,t){return r.flags&128?tA([r.value],e.emptyArray,t):r.flags&134217728?e.arraysEqual(r.texts,t.texts)?e.map(r.types,iw):tA(r.texts,r.types,t):void 0}function rA(r,t){var i=eA(r,t);return!!i&&e.every(i,function(o,s){return aw(o,t.types[s])})}function iw(r){return r.flags&402653317?r:rg(["",""],[r])}function tA(r,t,i){var o=r.length-1,s=r[0],c=r[o],L=i.texts,G=L.length-1,ce=L[0],we=L[G];if(o===0&&s.length<ce.length+we.length||!s.startsWith(ce)||!c.endsWith(we))return;for(var Ue=c.slice(0,c.length-we.length),Je=[],ar=0,_r=ce.length,Gr=1;Gr<G;Gr++){var Zr=L[Gr];if(Zr.length>0){for(var Et=ar,Tt=_r;Tt=At(Et).indexOf(Zr,Tt),!(Tt>=0);){if(Et++,Et===r.length)return;Tt=0}Vt(Et,Tt),_r+=Zr.length}else if(_r<At(ar).length)Vt(ar,_r+1);else if(ar<o)Vt(ar+1,0);else return}return Vt(o,At(o).length),Je;function At(Nn){return Nn<o?r[Nn]:Ue}function Vt(Nn,on){var ca=Nn===ar?Lc(At(Nn).slice(_r,on)):rg(Gt(Gt([r[ar].slice(_r)],r.slice(ar+1,Nn),!0),[At(Nn).slice(0,on)],!1),t.slice(ar,Nn));Je.push(ca),ar=Nn,_r=on}}function uf(r,t,i,o,s){o===void 0&&(o=0),s===void 0&&(s=!1);var c=!1,L,G=2048,ce=!0,we,Ue,Je,ar=0;_r(t,i);function _r(Wt,Ft){if(av(Ft)){if(Wt===fr){var _n=L;L=Wt,_r(Ft,Ft),L=_n;return}if(Wt.aliasSymbol&&Wt.aliasTypeArguments&&Wt.aliasSymbol===Ft.aliasSymbol){Tt(Wt.aliasTypeArguments,Ft.aliasTypeArguments,wL(Wt.aliasSymbol));return}if(Wt===Ft&&Wt.flags&3145728){for(var Ca=0,Yn=Wt.types;Ca<Yn.length;Ca++){var Ba=Yn[Ca];_r(Ba,Ba)}return}if(Ft.flags&1048576){var Ti=Et(Wt.flags&1048576?Wt.types:[Wt],Ft.types,ow),Pi=Ti[0],jn=Ti[1],Fi=Et(Pi,jn,sw),Wr=Fi[0],Tr=Fi[1];if(Tr.length===0)return;if(Ft=ma(Tr),Wr.length===0){Gr(Wt,Ft,1);return}Wt=ma(Wr)}else if(Ft.flags&2097152&&e.some(Ft.types,function(qa){return!!Vt(qa)||El(qa)&&!!Vt(T0(qa)||en)})){if(!(Wt.flags&1048576)){var hn=Et(Wt.flags&2097152?Wt.types:[Wt],Ft.types,jf),Wr=hn[0],Tr=hn[1];if(Wr.length===0||Tr.length===0)return;Wt=To(Wr),Ft=To(Tr)}}else Ft.flags&41943040&&(Ft=d_(Ft));if(Ft.flags&8650752){if(e.getObjectFlags(Wt)&524288||Wt===yt||Wt===St||o&128&&(Wt===Cr||Wt===ta)||$L(Wt))return;var nn=Vt(Ft);if(nn){if(!nn.isFixed){if((nn.priority===void 0||o<nn.priority)&&(nn.candidates=void 0,nn.contraCandidates=void 0,nn.topLevel=!0,nn.priority=o),o===nn.priority){var Vn=L||Wt;s&&!c?e.contains(nn.contraCandidates,Vn)||(nn.contraCandidates=e.append(nn.contraCandidates,Vn),Ky(r)):e.contains(nn.candidates,Vn)||(nn.candidates=e.append(nn.candidates,Vn),Ky(r))}!(o&128)&&Ft.flags&262144&&nn.topLevel&&!Z0(i,Ft)&&(nn.topLevel=!1,Ky(r))}G=Math.min(G,o);return}else{var En=Vf(Ft,!1);if(En!==Ft)Zr(Wt,En,_r);else if(Ft.flags&8388608){var Fn=Vf(Ft.indexType,!1);if(Fn.flags&465829888){var Xr=tL(Vf(Ft.objectType,!1),Fn,!1);Xr&&Xr!==Ft&&Zr(Wt,Xr,_r)}}}}if(e.getObjectFlags(Wt)&4&&e.getObjectFlags(Ft)&4&&(Wt.target===Ft.target||el(Wt)&&el(Ft))&&!(Wt.node&&Ft.node))Tt(vo(Wt),vo(Ft),M0(Wt.target));else if(Wt.flags&4194304&&Ft.flags&4194304)s=!s,_r(Wt.type,Ft.type),s=!s;else if((mm(Wt)||Wt.flags&4)&&Ft.flags&4194304){var it=YR(Wt);s=!s,Gr(it,Ft.type,256),s=!s}else if(Wt.flags&8388608&&Ft.flags&8388608)_r(Wt.objectType,Ft.objectType),_r(Wt.indexType,Ft.indexType);else if(Wt.flags&268435456&&Ft.flags&268435456)Wt.symbol===Ft.symbol&&_r(Wt.type,Ft.type);else if(Wt.flags&33554432){_r(Wt.baseType,Ft);var Pt=o;o|=4,_r(Wt.substitute,Ft),o=Pt}else if(Ft.flags&16777216)Zr(Wt,Ft,la);else if(Ft.flags&3145728)on(Wt,Ft.types,Ft.flags);else if(Wt.flags&1048576)for(var Bt=Wt.types,Yt=0,mn=Bt;Yt<mn.length;Yt++){var ya=mn[Yt];_r(ya,Ft)}else if(Ft.flags&134217728)di(Wt,Ft);else{if(Wt=Eo(Wt),!(o&512&&Wt.flags&467927040)){var _a=wi(Wt);if(_a!==Wt&&ce&&!(_a.flags&2621440))return ce=!1,_r(_a,Ft);Wt=_a}Wt.flags&2621440&&Zr(Wt,Ft,Aa)}}}function Gr(Wt,Ft,_n){var Ca=o;o|=_n,_r(Wt,Ft),o=Ca}function Zr(Wt,Ft,_n){var Ca=Wt.id+","+Ft.id,Yn=we&&we.get(Ca);if(Yn!==void 0){G=Math.min(G,Yn);return}(we||(we=new e.Map)).set(Ca,-1);var Ba=G;G=2048;var Ti=ar,Pi=ph(Wt),jn=ph(Ft);e.contains(Ue,Pi)&&(ar|=1),e.contains(Je,jn)&&(ar|=2),ar!==3?((Ue||(Ue=[])).push(Pi),(Je||(Je=[])).push(jn),_n(Wt,Ft),Je.pop(),Ue.pop()):G=-1,ar=Ti,we.set(Ca,G),G=Math.min(G,Ba)}function Et(Wt,Ft,_n){for(var Ca,Yn,Ba=0,Ti=Ft;Ba<Ti.length;Ba++)for(var Pi=Ti[Ba],jn=0,Fi=Wt;jn<Fi.length;jn++){var Wr=Fi[jn];_n(Wr,Pi)&&(_r(Wr,Pi),Ca=e.appendIfUnique(Ca,Wr),Yn=e.appendIfUnique(Yn,Pi))}return[Ca?e.filter(Wt,function(Tr){return!e.contains(Ca,Tr)}):Wt,Yn?e.filter(Ft,function(Tr){return!e.contains(Yn,Tr)}):Ft]}function Tt(Wt,Ft,_n){for(var Ca=Wt.length<Ft.length?Wt.length:Ft.length,Yn=0;Yn<Ca;Yn++)Yn<_n.length&&(_n[Yn]&7)===2?At(Wt[Yn],Ft[Yn]):_r(Wt[Yn],Ft[Yn])}function At(Wt,Ft){lr||o&1024?(s=!s,_r(Wt,Ft),s=!s):_r(Wt,Ft)}function Vt(Wt){if(Wt.flags&8650752)for(var Ft=0,_n=r;Ft<_n.length;Ft++){var Ca=_n[Ft];if(Wt===Ca.typeParameter)return Ca}}function Nn(Wt){for(var Ft,_n=0,Ca=Wt;_n<Ca.length;_n++){var Yn=Ca[_n],Ba=Yn.flags&2097152&&e.find(Yn.types,function(Ti){return!!Vt(Ti)});if(!Ba||Ft&&Ba!==Ft)return;Ft=Ba}return Ft}function on(Wt,Ft,_n){var Ca=0;if(_n&1048576){for(var Yn=void 0,Ba=Wt.flags&1048576?Wt.types:[Wt],Ti=new Array(Ba.length),Pi=!1,jn=0,Fi=Ft;jn<Fi.length;jn++){var Wr=Fi[jn];if(Vt(Wr))Yn=Wr,Ca++;else for(var Tr=0;Tr<Ba.length;Tr++){var hn=G;G=2048,_r(Ba[Tr],Wr),G===o&&(Ti[Tr]=!0),Pi=Pi||G===-1,G=Math.min(G,hn)}}if(Ca===0){var nn=Nn(Ft);nn&&Gr(Wt,nn,1);return}if(Ca===1&&!Pi){var Vn=e.flatMap(Ba,function(Pt,Bt){return Ti[Bt]?void 0:Pt});if(Vn.length){_r(ma(Vn),Yn);return}}}else for(var En=0,Fn=Ft;En<Fn.length;En++){var Wr=Fn[En];Vt(Wr)?Ca++:_r(Wt,Wr)}if(_n&2097152?Ca===1:Ca>0)for(var Xr=0,it=Ft;Xr<it.length;Xr++){var Wr=it[Xr];Vt(Wr)&&Gr(Wt,Wr,1)}}function ca(Wt,Ft,_n){if(_n.flags&1048576){for(var Ca=!1,Yn=0,Ba=_n.types;Yn<Ba.length;Yn++){var Ti=Ba[Yn];Ca=ca(Wt,Ft,Ti)||Ca}return Ca}if(_n.flags&4194304){var Pi=Vt(_n.type);if(Pi&&!Pi.isFixed&&!$L(Wt)){var jn=QL(Wt,Ft,_n);jn&&Gr(jn,Pi.typeParameter,e.getObjectFlags(Wt)&524288?16:8)}return!0}if(_n.flags&262144){Gr(qu(Wt),_n,32);var Fi=kp(_n);if(Fi&&ca(Wt,Ft,Fi))return!0;var Wr=e.map(Yi(Wt),An),Tr=e.map(Ps(Wt),function(hn){return hn!==Yo?hn.type:en});return _r(ma(e.concatenate(Wr,Tr)),yu(Ft)),!0}return!1}function la(Wt,Ft){if(Wt.flags&16777216)_r(Wt.checkType,Ft.checkType),_r(Wt.extendsType,Ft.extendsType),_r(up(Wt),up(Ft)),_r(fp(Wt),fp(Ft));else{var _n=o;o|=s?64:0;var Ca=[up(Ft),fp(Ft)];on(Wt,Ca,Ft.flags),o=_n}}function di(Wt,Ft){var _n=eA(Wt,Ft),Ca=Ft.types;if(_n||e.every(Ft.texts,function(Ba){return Ba.length===0}))for(var Yn=0;Yn<Ca.length;Yn++)_r(_n?_n[Yn]:en,Ca[Yn])}function Aa(Wt,Ft){if(e.getObjectFlags(Wt)&4&&e.getObjectFlags(Ft)&4&&(Wt.target===Ft.target||el(Wt)&&el(Ft))){Tt(vo(Wt),vo(Ft),M0(Wt.target));return}if(El(Wt)&&El(Ft)){_r(Tc(Wt),Tc(Ft)),_r(yu(Wt),yu(Ft));var _n=of(Wt),Ca=of(Ft);_n&&Ca&&_r(_n,Ca)}if(e.getObjectFlags(Ft)&32&&!Ft.declaration.nameType){var Yn=Tc(Ft);if(ca(Wt,Ft,Yn))return}if(!ew(Wt,Ft)){if(el(Wt)||ki(Wt)){if(ki(Ft)){var Ba=op(Wt),Ti=op(Ft),Pi=vo(Ft),jn=Ft.target.elementFlags;if(ki(Wt)&&GR(Wt,Ft)){for(var Fi=0;Fi<Ti;Fi++)_r(vo(Wt)[Fi],Pi[Fi]);return}for(var Wr=ki(Wt)?Math.min(Wt.target.fixedLength,Ft.target.fixedLength):0,Tr=Math.min(ki(Wt)?Ay(Wt.target,3):0,Ft.target.hasRestElement?Ay(Ft.target,3):0),Fi=0;Fi<Wr;Fi++)_r(vo(Wt)[Fi],Pi[Fi]);if(!ki(Wt)||Ba-Wr-Tr===1&&Wt.target.elementFlags[Wr]&4)for(var hn=vo(Wt)[Wr],Fi=Wr;Fi<Ti-Tr;Fi++)_r(jn[Fi]&8?zs(hn):hn,Pi[Fi]);else{var nn=Ti-Wr-Tr;if(nn===2&&jn[Wr]&jn[Wr+1]&8&&ki(Wt)){var Vn=Vt(Pi[Wr]);Vn&&Vn.impliedArity!==void 0&&(_r(qg(Wt,Wr,Tr+Ba-Vn.impliedArity),Pi[Wr]),_r(qg(Wt,Wr+Vn.impliedArity,Tr),Pi[Wr+1]))}else if(nn===1&&jn[Wr]&8){var En=Ft.target.elementFlags[Ti-1]&2,Fn=ki(Wt)?qg(Wt,Wr,Tr):zs(vo(Wt)[0]);Gr(Fn,Pi[Wr],En?2:0)}else if(nn===1&&jn[Wr]&4){var hn=ki(Wt)?By(Wt,Wr,Tr):vo(Wt)[0];hn&&_r(hn,Pi[Wr])}}for(var Fi=0;Fi<Tr;Fi++)_r(vo(Wt)[Ba-Fi-1],Pi[Ti-Fi-1]);return}if(el(Ft)){xo(Wt,Ft);return}}Li(Wt,Ft),Bi(Wt,Ft,0),Bi(Wt,Ft,1),xo(Wt,Ft)}}function Li(Wt,Ft){for(var _n=sf(Ft),Ca=0,Yn=_n;Ca<Yn.length;Ca++){var Ba=Yn[Ca],Ti=Ii(Wt,Ba.escapedName);Ti&&_r(An(Ti),An(Ba))}}function Bi(Wt,Ft,_n){for(var Ca=Ni(Wt,_n),Yn=Ni(Ft,_n),Ba=Ca.length,Ti=Yn.length,Pi=Ba<Ti?Ba:Ti,jn=!!(e.getObjectFlags(Wt)&524288),Fi=0;Fi<Pi;Fi++)Ai(Ak(Ca[Ba-Pi+Fi]),Jg(Yn[Ti-Pi+Fi]),jn)}function Ai(Wt,Ft,_n){if(!_n){var Ca=c,Yn=Ft.declaration?Ft.declaration.kind:0;c=c||Yn===168||Yn===167||Yn===170,z0(Wt,Ft,At),c=Ca}q0(Wt,Ft,_r)}function xo(Wt,Ft){var _n=e.getObjectFlags(Wt)&e.getObjectFlags(Ft)&32?8:0,Ca=Ps(Ft);if(jy(Wt))for(var Yn=0,Ba=Ca;Yn<Ba.length;Yn++){for(var Ti=Ba[Yn],Pi=[],jn=0,Fi=Yi(Wt);jn<Fi.length;jn++){var Wr=Fi[jn];if(u_(eg(Wr,8576),Ti.keyType)){var Tr=An(Wr);Pi.push(Wr.flags&16777216?J0(Tr):Tr)}}for(var hn=0,nn=Ps(Wt);hn<nn.length;hn++){var Vn=nn[hn];u_(Vn.keyType,Ti.keyType)&&Pi.push(Vn.type)}Pi.length&&Gr(ma(Pi),Ti.type,_n)}for(var En=0,Fn=Ca;En<Fn.length;En++){var Ti=Fn[En],Xr=zm(Wt,Ti.keyType);Xr&&Gr(Xr.type,Ti.type,_n)}}}function ow(r,t){return de&&t===vt?r===t:jf(r,t)||!!(t.flags&4&&r.flags&128||t.flags&8&&r.flags&256)}function sw(r,t){return!!(r.flags&524288&&t.flags&524288&&r.symbol&&r.symbol===t.symbol||r.aliasSymbol&&r.aliasTypeArguments&&r.aliasSymbol===t.aliasSymbol)}function lw(r){var t=Nl(r);return!!t&&Jo(t.flags&16777216?Xv(t):t,406978556)}function Gp(r){return!!(e.getObjectFlags(r)&128)}function t1(r){return!!(e.getObjectFlags(r)&32896)}function cw(r){if(r.length>1){var t=e.filter(r,t1);if(t.length){var i=ma(t,2);return e.concatenate(e.filter(r,function(o){return!t1(o)}),[i])}}return r}function uw(r){return r.priority&416?To(r.contraCandidates):OR(r.contraCandidates)}function fw(r,t){var i=cw(r.candidates),o=lw(r.typeParameter),s=!o&&r.topLevel&&(r.isFixed||!Z0(_o(t),r.typeParameter)),c=o?e.sameMap(i,kl):s?e.sameMap(i,Pp):i,L=r.priority&416?ma(c,2):kR(c);return wl(L)}function nA(r,t){var i=r.inferences[t];if(!i.inferredType){var o=void 0,s=r.signature;if(s){var c=i.candidates?fw(i,s):void 0;if(i.contraCandidates)o=c&&!(c.flags&131072)&&e.some(i.contraCandidates,function(we){return Ed(c,we)})?c:uw(i);else if(c)o=c;else if(r.flags&1)o=St;else{var L=Bn(i.typeParameter);L&&(o=oi(L,JO(HO(r,t),r.nonFixingMapper)))}}else o=ZL(i);i.inferredType=o||n1(!!(r.flags&2));var G=Nl(i.typeParameter);if(G){var ce=oi(G,r.nonFixingMapper);(!o||!r.compareTypes(o,Il(ce,o)))&&(i.inferredType=o=ce)}}return i.inferredType}function n1(r){return r?Ze:tr}function a1(r){for(var t=[],i=0;i<r.inferences.length;i++)t.push(nA(r,i));return t}function aA(r){switch(r.escapedText){case"document":case"console":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return Xe.types?e.Diagnostics.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:e.Diagnostics.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 Xe.types?e.Diagnostics.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:e.Diagnostics.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 Xe.types?e.Diagnostics.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:e.Diagnostics.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 e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;default:return r.parent.kind===295?e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:e.Diagnostics.Cannot_find_name_0}}function Lu(r){var t=Zn(r);return t.resolvedSymbol||(t.resolvedSymbol=!e.nodeIsMissing(r)&&Uo(r,r.escapedText,1160127,aA(r),r,!e.isWriteOnlyAccess(r),!1)||We),t.resolvedSymbol}function lg(r){return!!e.findAncestor(r,function(t){return t.kind===180?!0:t.kind===79||t.kind===160?!1:"quit"})}function qy(r,t,i,o){switch(r.kind){case 79:if(!e.isThisInTypeQuery(r)){var s=Lu(r);return s!==We?"".concat(o?N(o):"-1","|").concat(Bc(t),"|").concat(Bc(i),"|").concat(y(s)):void 0}case 108:return"0|".concat(o?N(o):"-1","|").concat(Bc(t),"|").concat(Bc(i));case 229:case 211:return qy(r.expression,t,i,o);case 160:var c=qy(r.left,t,i,o);return c&&c+"."+r.right.escapedText;case 205:case 206:var L=g_(r);if(L!==void 0){var G=qy(r.expression,t,i,o);return G&&G+"."+L}}}function qs(r,t){switch(t.kind){case 211:case 229:return qs(r,t.expression);case 220:return e.isAssignmentExpression(t)&&qs(r,t.left)||e.isBinaryExpression(t)&&t.operatorToken.kind===27&&qs(r,t.right)}switch(r.kind){case 230:return t.kind===230&&r.keywordToken===t.keywordToken&&r.name.escapedText===t.name.escapedText;case 79:case 80:return e.isThisInTypeQuery(r)?t.kind===108:t.kind===79&&Lu(r)===Lu(t)||(t.kind===253||t.kind===202)&&tc(Lu(r))===wn(t);case 108:return t.kind===108;case 106:return t.kind===106;case 229:case 211:return qs(r.expression,t);case 205:case 206:return e.isAccessExpression(t)&&g_(r)===g_(t)&&qs(r.expression,t.expression);case 160:return e.isAccessExpression(t)&&r.right.escapedText===g_(t)&&qs(r.left,t.expression);case 220:return e.isBinaryExpression(r)&&r.operatorToken.kind===27&&qs(r.right,t)}return!1}function dw(r){if(e.isAccessExpression(r))return r;if(e.isIdentifier(r)){var t=Lu(r);if(bh(t)){var i=t.valueDeclaration;if(e.isVariableDeclaration(i)&&!i.type&&i.initializer&&e.isAccessExpression(i.initializer))return i.initializer;if(e.isBindingElement(i)&&!i.initializer){var o=i.parent.parent;if(e.isVariableDeclaration(o)&&!o.type&&o.initializer&&(e.isIdentifier(o.initializer)||e.isAccessExpression(o.initializer)))return i}}}}function g_(r){var t;return r.kind===205?r.name.escapedText:r.kind===206&&e.isStringOrNumericLiteralLike(r.argumentExpression)?e.escapeLeadingUnderscores(r.argumentExpression.text):r.kind===202&&(t=md(r))?e.escapeLeadingUnderscores(t):void 0}function iA(r,t){for(;e.isAccessExpression(r);)if(r=r.expression,qs(r,t))return!0;return!1}function vm(r,t){for(;e.isOptionalChain(r);)if(r=r.expression,qs(r,t))return!0;return!1}function iv(r,t){if(r&&r.flags&1048576){var i=hs(r,t);if(i&&e.getCheckFlags(i)&2)return i.isDiscriminantProperty===void 0&&(i.isDiscriminantProperty=(i.checkFlags&192)===192&&!Yg(An(i))),!!i.isDiscriminantProperty}return!1}function oA(r,t){for(var i,o=0,s=r;o<s.length;o++){var c=s[o];if(iv(t,c.escapedName)){if(i){i.push(c);continue}i=[c]}}return i}function pw(r,t){for(var i=new e.Map,o=0,s=function(we){if(we.flags&61603840){var Ue=ia(we,t);if(Ue){if(!mm(Ue))return{value:void 0};var Je=!1;v_(Ue,function(ar){var _r=Bc(kl(ar)),Gr=i.get(_r);Gr?Gr!==tr&&(i.set(_r,tr),Je=!0):i.set(_r,we)}),Je||o++}}},c=0,L=r;c<L.length;c++){var G=L[c],ce=s(G);if(typeof ce=="object")return ce.value}return o>=10&&o*2>=r.length?i:void 0}function Xy(r){var t=r.types;if(!(t.length<10||e.getObjectFlags(r)&65536||e.countWhere(t,function(s){return!!(s.flags&59506688)})<10)){if(r.keyPropertyName===void 0){var i=e.forEach(t,function(s){return s.flags&59506688?e.forEach(Yi(s),function(c){return Su(An(c))?c.escapedName:void 0}):void 0}),o=i&&pw(t,i);r.keyPropertyName=o?i:"",r.constituentMap=o}return r.keyPropertyName.length?r.keyPropertyName:void 0}}function Yy(r,t){var i,o=(i=r.constituentMap)===null||i===void 0?void 0:i.get(Bc(kl(t)));return o!==tr?o:void 0}function sA(r,t){var i=Xy(r),o=i&&ia(t,i);return o&&Yy(r,o)}function _w(r,t){var i=Xy(r),o=i&&e.find(t.properties,function(c){return c.symbol&&c.kind===294&&c.symbol.escapedName===i&&Eh(c.initializer)}),s=o&&wh(o.initializer);return s&&Yy(r,s)}function lA(r,t){return qs(r,t)||iA(r,t)}function cA(r,t){if(r.arguments)for(var i=0,o=r.arguments;i<o.length;i++){var s=o[i];if(lA(t,s))return!0}return!!(r.expression.kind===205&&lA(t,r.expression.expression))}function i1(r){return(!r.id||r.id<0)&&(r.id=k,k++),r.id}function mw(r,t){if(!(r.flags&1048576))return Qi(r,t);for(var i=0,o=r.types;i<o.length;i++){var s=o[i];if(Qi(s,t))return!0}return!1}function gw(r,t){if(r!==t){if(t.flags&131072)return t;var i=rl(r,function(o){return mw(t,o)});if(t.flags&512&&Mp(t)&&(i=ds(i,fm)),Qi(t,i))return i}return r}function o1(r){var t=Sc(r);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&Ed(r,Oe))}function mp(r,t){t===void 0&&(t=!1);var i=r.flags;if(i&4)return br?16317953:16776705;if(i&128){var o=r.value==="";return br?o?12123649:7929345:o?12582401:16776705}if(i&40)return br?16317698:16776450;if(i&256){var s=r.value===0;return br?s?12123394:7929090:s?12582146:16776450}if(i&64)return br?16317188:16775940;if(i&2048){var s=j0(r);return br?s?12122884:7928580:s?12581636:16775940}return i&16?br?16316168:16774920:i&528?br?r===mt||r===rn?12121864:7927560:r===mt||r===rn?12580616:16774920:i&524288&&!t?e.getObjectFlags(r)&16&&cf(r)?br?16318463:16777215:o1(r)?br?7880640:16728e3:br?7888800:16736160:i&49152?9830144:i&65536?9363232:i&12288?br?7925520:16772880:i&67108864?br?7888800:16736160:i&131072?0:i&465829888?tg(r)?br?7929345:16776705:mp(l(r)||tr,t):i&1048576?e.reduceLeft(r.types,function(c,L){return c|mp(L,t)},0):i&2097152?(t||(t=Jo(r,131068)),e.reduceLeft(r.types,function(c,L){return c&mp(L,t)},16777215)):16777215}function Fs(r,t){return rl(r,function(i){return(mp(i)&t)!==0})}function s1(r,t){return t?ma([is(r),tl(t)]):r}function uA(r,t){var i,o=lp(t);if(!gu(o))return dr;var s=vu(o);return ia(r,s)||ov((i=ip(r,s))===null||i===void 0?void 0:i.type)||dr}function fA(r,t){return Kf(r,ig)&&RR(r,t)||ov(Ld(65,r,Nr,void 0))||dr}function ov(r){return r&&(Xe.noUncheckedIndexedAccess?ma([r,Nr]):r)}function dA(r){return zs(Ld(65,r,Nr,void 0)||dr)}function vw(r){var t=r.parent.kind===203&&l1(r.parent)||r.parent.kind===294&&l1(r.parent.parent);return t?s1(mh(r),r.right):tl(r.right)}function l1(r){return r.parent.kind===220&&r.parent.left===r||r.parent.kind===243&&r.parent.initializer===r}function hw(r,t){return fA(mh(r),r.elements.indexOf(t))}function yw(r){return dA(mh(r.parent))}function pA(r){return uA(mh(r.parent),r.name)}function bw(r){return s1(pA(r),r.objectAssignmentInitializer)}function mh(r){var t=r.parent;switch(t.kind){case 242:return xt;case 243:return Bh(t)||dr;case 220:return vw(t);case 214:return Nr;case 203:return hw(t,r);case 224:return yw(t);case 294:return pA(t);case 295:return bw(t)}return dr}function Ew(r){var t=r.parent,i=mA(t.parent),o=t.kind===200?uA(i,r.propertyName||r.name):r.dotDotDotToken?dA(i):fA(i,t.elements.indexOf(r));return s1(o,r.initializer)}function _A(r){var t=Zn(r);return t.resolvedType||tl(r)}function Tw(r){return r.initializer?_A(r.initializer):r.parent.parent.kind===242?xt:r.parent.parent.kind===243&&Bh(r.parent.parent)||dr}function mA(r){return r.kind===253?Tw(r):Ew(r)}function Sw(r){return r.kind===253&&r.initializer&&gd(r.initializer)||r.kind!==202&&r.parent.kind===220&&gd(r.parent.right)}function Bp(r){switch(r.kind){case 211:return Bp(r.expression);case 220:switch(r.operatorToken.kind){case 63:case 75:case 76:case 77:return Bp(r.left);case 27:return Bp(r.right)}}return r}function gA(r){var t=r.parent;return t.kind===211||t.kind===220&&t.operatorToken.kind===63&&t.left===r||t.kind===220&&t.operatorToken.kind===27&&t.right===r?gA(t):r}function Dw(r){return r.kind===288?kl(tl(r.expression)):en}function Qy(r){var t=Zn(r);if(!t.switchTypes){t.switchTypes=[];for(var i=0,o=r.caseBlock.clauses;i<o.length;i++){var s=o[i];t.switchTypes.push(Dw(s))}}return t.switchTypes}function vA(r,t){for(var i=[],o=0,s=r.caseBlock.clauses;o<s.length;o++){var c=s[o];if(c.kind===288){if(e.isStringLiteralLike(c.expression)){i.push(c.expression.text);continue}return e.emptyArray}t&&i.push(void 0)}return i}function Lw(r,t){return r.flags&1048576?!e.forEach(r.types,function(i){return!e.contains(t,i)}):e.contains(t,r)}function gh(r,t){return r===t||t.flags&1048576&&Aw(r,t)}function Aw(r,t){if(r.flags&1048576){for(var i=0,o=r.types;i<o.length;i++){var s=o[i];if(!sp(t.types,s))return!1}return!0}return r.flags&1024&&Zs(r)===t?!0:sp(t.types,r)}function v_(r,t){return r.flags&1048576?e.forEach(r.types,t):t(r)}function hm(r,t){return r.flags&1048576?e.some(r.types,t):t(r)}function Kf(r,t){return r.flags&1048576?e.every(r.types,t):t(r)}function Cw(r,t){return r.flags&3145728?e.every(r.types,t):t(r)}function rl(r,t){if(r.flags&1048576){var i=r.types,o=e.filter(i,t);if(o===i)return r;var s=r.origin,c=void 0;if(s&&s.flags&1048576){var L=s.types,G=e.filter(L,function(ce){return!!(ce.flags&1048576)||t(ce)});if(L.length-G.length===i.length-o.length){if(G.length===1)return G[0];c=o0(1048576,G)}}return l0(o,r.objectFlags,void 0,void 0,c)}return r.flags&131072||t(r)?r:en}function Zy(r,t){return rl(r,function(i){return i!==t})}function xw(r){return r.flags&1048576?r.types.length:1}function ds(r,t,i){if(r.flags&131072)return r;if(!(r.flags&1048576))return t(r);for(var o=r.origin,s=o&&o.flags&1048576?o.types:r.types,c,L=!1,G=0,ce=s;G<ce.length;G++){var we=ce[G],Ue=we.flags&1048576?ds(we,t,i):t(we);L||(L=we!==Ue),Ue&&(c?c.push(Ue):c=[Ue])}return L?c&&ma(c,i?0:1):r}function hA(r,t,i,o){return r.flags&1048576&&i?ma(e.map(r.types,t),1,i,o):ds(r,t)}function yA(r){return r.flags&1048576?r.types.length:1}function W_(r,t){return rl(r,function(i){return(i.flags&t)!==0})}function bA(r,t){return Jo(r,134217804)&&Jo(t,402655616)?ds(r,function(i){return i.flags&4?W_(t,402653316):tg(i)&&!Jo(t,402653188)?W_(t,128):i.flags&8?W_(t,264):i.flags&64?W_(t,2112):i}):r}function ym(r){return r.flags===0}function h_(r){return r.flags===0?r.type:r}function bm(r,t){return t?{flags:0,type:r.flags&131072?St:r}:r}function Iw(r){var t=Bl(256);return t.elementType=r,t}function c1(r){return je[r.id]||(je[r.id]=Iw(r))}function EA(r,t){var i=sg(Du(wh(t)));return gh(i,r.elementType)?r:c1(ma([r.elementType,i]))}function Nw(r){return r.flags&131072?ta:zs(r.flags&1048576?ma(r.types,2):r)}function kw(r){return r.finalArrayType||(r.finalArrayType=Nw(r.elementType))}function $y(r){return e.getObjectFlags(r)&256?kw(r):r}function Ow(r){return e.getObjectFlags(r)&256?r.elementType:en}function Rw(r){for(var t=!1,i=0,o=r;i<o.length;i++){var s=o[i];if(!(s.flags&131072)){if(!(e.getObjectFlags(s)&256))return!1;t=!0}}return t}function TA(r){var t=gA(r),i=t.parent,o=e.isPropertyAccessExpression(i)&&(i.name.escapedText==="length"||i.parent.kind===207&&e.isIdentifier(i.name)&&e.isPushOrUnshiftIdentifier(i.name)),s=i.kind===206&&i.expression===t&&i.parent.kind===220&&i.parent.operatorToken.kind===63&&i.parent.left===i&&!e.isAssignmentTarget(i.parent)&&ys(tl(i.argumentExpression),296);return o||s}function ww(r){return(e.isVariableDeclaration(r)||e.isPropertyDeclaration(r)||e.isPropertySignature(r)||e.isParameter(r))&&!!(e.getEffectiveTypeAnnotationNode(r)||e.isInJSFile(r)&&e.hasInitializer(r)&&r.initializer&&e.isFunctionExpressionOrArrowFunction(r.initializer)&&e.getEffectiveReturnTypeNode(r.initializer))}function eb(r,t){if(r.flags&8752)return An(r);if(r.flags&7){if(e.getCheckFlags(r)&262144){var i=r.syntheticOrigin;if(i&&eb(i))return An(r)}var o=r.valueDeclaration;if(o){if(ww(o))return An(r);if(e.isVariableDeclaration(o)&&o.parent.parent.kind===243){var s=o.parent.parent,c=vh(s.expression,void 0);if(c){var L=s.awaitModifier?15:13;return Ld(L,c,Nr,void 0)}}t&&e.addRelatedInfo(t,e.createDiagnosticForNode(o,e.Diagnostics._0_needs_an_explicit_type_annotation,Wa(r)))}}}function vh(r,t){if(!(r.flags&16777216))switch(r.kind){case 79:var i=tc(Lu(r));return eb(i.flags&2097152?ms(i):i,t);case 108:return Qw(r);case 106:return _1(r);case 205:{var o=vh(r.expression,t);if(o){var s=r.name,c=void 0;if(e.isPrivateIdentifier(s)){if(!o.symbol)return;c=Ii(o,e.getSymbolNameForPrivateIdentifier(o.symbol,s.escapedText))}else c=Ii(o,s.escapedText);return c&&eb(c,t)}return}case 211:return vh(r.expression,t)}}function rb(r){var t=Zn(r),i=t.effectsSignature;if(i===void 0){var o=void 0;r.parent.kind===237?o=vh(r.expression,void 0):r.expression.kind!==106&&(e.isOptionalChain(r)?o=iu(tv(ui(r.expression),r.expression),r.expression):o=dg(r.expression));var s=Ni(o&&wi(o)||tr,0),c=s.length===1&&!s[0].typeParameters?s[0]:e.some(s,SA)?_g(r):void 0;i=t.effectsSignature=c&&SA(c)?c:lo}return i===lo?void 0:i}function SA(r){return!!(Dc(r)||r.declaration&&(lm(r.declaration)||tr).flags&131072)}function Mw(r,t){if(r.kind===1||r.kind===3)return t.arguments[r.parameterIndex];var i=e.skipParentheses(t.expression);return e.isAccessExpression(i)?e.skipParentheses(i.expression):void 0}function Pw(r){var t=e.findAncestor(r,e.isFunctionOrModuleBlock),i=e.getSourceFileOfNode(r),o=e.getSpanOfTokenAtPosition(i,t.statements.pos);ua.add(e.createFileDiagnostic(i,o.start,o.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function hh(r){var t=tb(r,!1);return il=r,Ml=t,t}function yh(r){var t=e.skipParentheses(r,!0);return t.kind===95||t.kind===220&&(t.operatorToken.kind===55&&(yh(t.left)||yh(t.right))||t.operatorToken.kind===56&&yh(t.left)&&yh(t.right))}function tb(r,t){for(;;){if(r===il)return Ml;var i=r.flags;if(i&4096){if(!t){var o=i1(r),s=Lt[o];return s!==void 0?s:Lt[o]=tb(r,!0)}t=!1}if(i&368)r=r.antecedent;else if(i&512){var c=rb(r.node);if(c){var L=Dc(c);if(L&&L.kind===3&&!L.type){var G=r.node.arguments[L.parameterIndex];if(G&&yh(G))return!1}if(_o(c).flags&131072)return!1}r=r.antecedent}else{if(i&4)return e.some(r.antecedents,function(ar){return tb(ar,!1)});if(i&8){var ce=r.antecedents;if(ce===void 0||ce.length===0)return!1;r=ce[0]}else if(i&128){if(r.clauseStart===r.clauseEnd&&qC(r.switchStatement))return!1;r=r.antecedent}else if(i&1024){il=void 0;var we=r.target,Ue=we.antecedents;we.antecedents=r.antecedents;var Je=tb(r.antecedent,!1);return we.antecedents=Ue,Je}else return!(i&1)}}}function nb(r,t){for(;;){var i=r.flags;if(i&4096){if(!t){var o=i1(r),s=Kt[o];return s!==void 0?s:Kt[o]=nb(r,!0)}t=!1}if(i&496)r=r.antecedent;else if(i&512){if(r.node.expression.kind===106)return!0;r=r.antecedent}else{if(i&4)return e.every(r.antecedents,function(ce){return nb(ce,!1)});if(i&8)r=r.antecedents[0];else if(i&1024){var c=r.target,L=c.antecedents;c.antecedents=r.antecedents;var G=nb(r.antecedent,!1);return c.antecedents=L,G}else return!!(i&1)}}}function DA(r){switch(r.kind){case 79:{var t=Lu(r);return bh(t)||e.isParameterOrCatchClauseVariable(t)&&!LA(t)}case 205:case 206:return DA(r.expression)&&Iu(Zn(r).resolvedSymbol||We)}return!1}function y_(r,t,i,o){i===void 0&&(i=t);var s,c=!1,L=0;if(Ir)return dr;if(!r.flowNode)return t;Us++;var G=Wo,ce=h_(Je(r.flowNode));Wo=G;var we=e.getObjectFlags(ce)&256&&TA(r)?ta:$y(ce);if(we===Mn||r.parent&&r.parent.kind===229&&!(we.flags&131072)&&Fs(we,2097152).flags&131072)return t;return we===xr?tr:we;function Ue(){return c?s:(c=!0,s=qy(r,t,i,o))}function Je(Xr){if(L===2e3)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","getTypeAtFlowNode_DepthLimit",{flowId:Xr.id}),Ir=!0,Pw(r),dr;L++;for(var it;;){var Pt=Xr.flags;if(Pt&4096){for(var Bt=G;Bt<Wo;Bt++)if(wr[Bt]===Xr)return L--,$r[Bt];it=Xr}var Yt=void 0;if(Pt&16){if(Yt=_r(Xr),!Yt){Xr=Xr.antecedent;continue}}else if(Pt&512){if(Yt=Zr(Xr),!Yt){Xr=Xr.antecedent;continue}}else if(Pt&96)Yt=Tt(Xr);else if(Pt&128)Yt=At(Xr);else if(Pt&12){if(Xr.antecedents.length===1){Xr=Xr.antecedents[0];continue}Yt=Pt&4?Vt(Xr):Nn(Xr)}else if(Pt&256){if(Yt=Et(Xr),!Yt){Xr=Xr.antecedent;continue}}else if(Pt&1024){var mn=Xr.target,ya=mn.antecedents;mn.antecedents=Xr.antecedents,Yt=Je(Xr.antecedent),mn.antecedents=ya}else if(Pt&2){var _a=Xr.node;if(_a&&_a!==o&&r.kind!==205&&r.kind!==206&&r.kind!==108){Xr=_a.flowNode;continue}Yt=i}else Yt=Tv(t);return it&&(wr[Wo]=it,$r[Wo]=Yt,Wo++),L--,Yt}}function ar(Xr){var it=Xr.node;return u1(it.kind===253||it.kind===202?mA(it):mh(it),r)}function _r(Xr){var it=Xr.node;if(qs(r,it)){if(!hh(Xr))return Mn;if(e.getAssignmentTargetKind(it)===2){var Pt=Je(Xr.antecedent);return bm(Du(h_(Pt)),ym(Pt))}if(t===Cr||t===ta){if(Sw(it))return c1(en);var Bt=Pp(ar(Xr));return Qi(Bt,t)?Bt:Sn}return t.flags&1048576?gw(t,ar(Xr)):t}if(iA(r,it)){if(!hh(Xr))return Mn;if(e.isVariableDeclaration(it)&&(e.isInJSFile(it)||e.isVarConst(it))){var Yt=e.getDeclaredExpandoInitializer(it);if(Yt&&(Yt.kind===212||Yt.kind===213))return Je(Xr.antecedent)}return t}if(e.isVariableDeclaration(it)&&it.parent.parent.kind===242&&qs(r,it.parent.parent.expression))return k1(h_(Je(Xr.antecedent)))}function Gr(Xr,it){var Pt=e.skipParentheses(it,!0);if(Pt.kind===95)return Mn;if(Pt.kind===220){if(Pt.operatorToken.kind===55)return Gr(Gr(Xr,Pt.left),Pt.right);if(Pt.operatorToken.kind===56)return ma([Gr(Xr,Pt.left),Gr(Xr,Pt.right)])}return En(Xr,Pt,!0)}function Zr(Xr){var it=rb(Xr.node);if(it){var Pt=Dc(it);if(Pt&&(Pt.kind===2||Pt.kind===3)){var Bt=Je(Xr.antecedent),Yt=$y(h_(Bt)),mn=Pt.type?Vn(Yt,Pt,Xr.node,!0):Pt.kind===3&&Pt.parameterIndex>=0&&Pt.parameterIndex<Xr.node.arguments.length?Gr(Yt,Xr.node.arguments[Pt.parameterIndex]):Yt;return mn===Yt?Bt:bm(mn,ym(Bt))}if(_o(it).flags&131072)return Mn}}function Et(Xr){if(t===Cr||t===ta){var it=Xr.node,Pt=it.kind===207?it.expression.expression:it.left.expression;if(qs(r,Bp(Pt))){var Bt=Je(Xr.antecedent),Yt=h_(Bt);if(e.getObjectFlags(Yt)&256){var mn=Yt;if(it.kind===207)for(var ya=0,_a=it.arguments;ya<_a.length;ya++){var qa=_a[ya];mn=EA(mn,qa)}else{var Vi=wh(it.left.argumentExpression);ys(Vi,296)&&(mn=EA(mn,it.right))}return mn===Yt?Bt:bm(mn,ym(Bt))}return Bt}}}function Tt(Xr){var it=Je(Xr.antecedent),Pt=h_(it);if(Pt.flags&131072)return it;var Bt=(Xr.flags&32)!==0,Yt=$y(Pt),mn=En(Yt,Xr.node,Bt);return mn===Yt?it:bm(mn,ym(it))}function At(Xr){var it=Xr.switchStatement.expression,Pt=Je(Xr.antecedent),Bt=h_(Pt);if(qs(r,it))Bt=Ba(Bt,Xr.switchStatement,Xr.clauseStart,Xr.clauseEnd);else if(it.kind===215&&qs(r,it.expression))Bt=jn(Bt,Xr.switchStatement,Xr.clauseStart,Xr.clauseEnd);else{br&&(vm(it,r)?Bt=Yn(Bt,Xr.switchStatement,Xr.clauseStart,Xr.clauseEnd,function(mn){return!(mn.flags&163840)}):it.kind===215&&vm(it.expression,r)&&(Bt=Yn(Bt,Xr.switchStatement,Xr.clauseStart,Xr.clauseEnd,function(mn){return!(mn.flags&131072||mn.flags&128&&mn.value==="undefined")})));var Yt=ca(it,Bt);Yt&&(Bt=Aa(Bt,Yt,Xr.switchStatement,Xr.clauseStart,Xr.clauseEnd))}return bm(Bt,ym(Pt))}function Vt(Xr){for(var it=[],Pt=!1,Bt=!1,Yt,mn=0,ya=Xr.antecedents;mn<ya.length;mn++){var _a=ya[mn];if(!Yt&&_a.flags&128&&_a.clauseStart===_a.clauseEnd){Yt=_a;continue}var qa=Je(_a),Vi=h_(qa);if(Vi===t&&t===i)return Vi;e.pushIfUnique(it,Vi),gh(Vi,t)||(Pt=!0),ym(qa)&&(Bt=!0)}if(Yt){var qa=Je(Yt),Vi=h_(qa);if(!e.contains(it,Vi)&&!qC(Yt.switchStatement)){if(Vi===t&&t===i)return Vi;it.push(Vi),gh(Vi,t)||(Pt=!0),ym(qa)&&(Bt=!0)}}return bm(on(it,Pt?2:1),Bt)}function Nn(Xr){var it=i1(Xr),Pt=La[it]||(La[it]=new e.Map),Bt=Ue();if(!Bt)return t;var Yt=Pt.get(Bt);if(Yt)return Yt;for(var mn=Ia;mn<oo;mn++)if(uu[mn]===Xr&&dc[mn]===Bt&&Nc[mn].length)return bm(on(Nc[mn],1),!0);for(var ya=[],_a=!1,qa,Vi=0,Qa=Xr.antecedents;Vi<Qa.length;Vi++){var ho=Qa[Vi],Vo=void 0;if(!qa)Vo=qa=Je(ho);else{uu[oo]=Xr,dc[oo]=Bt,Nc[oo]=ya,oo++;var ao=Co;Co=void 0,Vo=Je(ho),Co=ao,oo--;var Ds=Pt.get(Bt);if(Ds)return Ds}var ss=h_(Vo);if(e.pushIfUnique(ya,ss),gh(ss,t)||(_a=!0),ss===t)break}var Xs=on(ya,_a?2:1);return ym(qa)?bm(Xs,!0):(Pt.set(Bt,Xs),Xs)}function on(Xr,it){if(Rw(Xr))return c1(ma(e.map(Xr,Ow)));var Pt=ma(e.sameMap(Xr,$y),it);return Pt!==t&&Pt.flags&t.flags&1048576&&e.arraysEqual(Pt.types,t.types)?t:Pt}function ca(Xr,it){var Pt,Bt,Yt=t.flags&1048576?t:it;return Yt.flags&1048576&&(Pt=dw(Xr))&&(Bt=g_(Pt))&&qs(r,e.isAccessExpression(Pt)?Pt.expression:Pt.parent.parent.initializer)&&iv(Yt,Bt)?Pt:void 0}function la(Xr,it,Pt){var Bt=g_(it);if(Bt===void 0)return Xr;var Yt=br&&e.isOptionalChain(it)&&Jo(Xr,98304),mn=ia(Yt?Fs(Xr,2097152):Xr,Bt);if(!mn)return Xr;mn=Yt?Jf(mn):mn;var ya=Pt(mn);return rl(Xr,function(_a){var qa=ti(_a,Bt);return!(ya.flags&131072)&&ng(ya,qa)})}function di(Xr,it,Pt,Bt,Yt){if((Pt===36||Pt===37)&&Xr.flags&1048576){var mn=Xy(Xr);if(mn&&mn===g_(it)){var ya=Yy(Xr,tl(Bt));if(ya)return Pt===(Yt?36:37)?ya:Su(ia(ya,mn)||tr)?Zy(Xr,ya):Xr}}return la(Xr,it,function(_a){return _n(_a,Pt,Bt,Yt)})}function Aa(Xr,it,Pt,Bt,Yt){if(Bt<Yt&&Xr.flags&1048576&&Xy(Xr)===g_(it)){var mn=Qy(Pt).slice(Bt,Yt),ya=ma(e.map(mn,function(_a){return Yy(Xr,_a)||tr}));if(ya!==tr)return ya}return la(Xr,it,function(_a){return Ba(_a,Pt,Bt,Yt)})}function Li(Xr,it,Pt){if(qs(r,it))return Xr.flags&2&&Pt?xr:Fs(Xr,Pt?4194304:8388608);br&&Pt&&vm(it,r)&&(Xr=Fs(Xr,2097152));var Bt=ca(it,Xr);return Bt?la(Xr,Bt,function(Yt){return Fs(Yt,Pt?4194304:8388608)}):Xr}function Bi(Xr,it,Pt){var Bt=Ii(Xr,it);return Bt?Bt.flags&16777216?!0:Pt:ip(Xr,it)?!0:!Pt}function Ai(Xr,it,Pt){return Xr.flags&1048576||Xr.flags&524288&&t!==Xr||oh(Xr)||Xr.flags&2097152&&e.every(Xr.types,function(Bt){return Bt.symbol!==pr})?rl(Xr,function(Bt){return Bi(Bt,it,Pt)}):Xr}function xo(Xr,it,Pt){switch(it.operatorToken.kind){case 63:case 75:case 76:case 77:return Li(En(Xr,it.right,Pt),it.left,Pt);case 34:case 35:case 36:case 37:var Bt=it.operatorToken.kind,Yt=Bp(it.left),mn=Bp(it.right);if(Yt.kind===215&&e.isStringLiteralLike(mn))return Ca(Xr,Yt,Bt,mn,Pt);if(mn.kind===215&&e.isStringLiteralLike(Yt))return Ca(Xr,mn,Bt,Yt,Pt);if(qs(r,Yt))return _n(Xr,Bt,mn,Pt);if(qs(r,mn))return _n(Xr,Bt,Yt,Pt);br&&(vm(Yt,r)?Xr=Ft(Xr,Bt,mn,Pt):vm(mn,r)&&(Xr=Ft(Xr,Bt,Yt,Pt)));var ya=ca(Yt,Xr);if(ya)return di(Xr,ya,Bt,mn,Pt);var _a=ca(mn,Xr);if(_a)return di(Xr,_a,Bt,Yt,Pt);if(Fi(Yt))return Wr(Xr,Bt,mn,Pt);if(Fi(mn))return Wr(Xr,Bt,Yt,Pt);break;case 102:return Tr(Xr,it,Pt);case 101:if(e.isPrivateIdentifier(it.left))return Wt(Xr,it,Pt);var qa=Bp(it.right),Vi=jp(it.left);if(Vi.flags&128){var Qa=e.escapeLeadingUnderscores(Vi.value);if(Wy(Xr)&&e.isAccessExpression(r)&&qs(r.expression,qa)&&g_(r)===Qa)return Fs(Xr,Pt?524288:65536);if(qs(r,qa))return Ai(Xr,Qa,Pt)}break;case 27:return En(Xr,it.right,Pt);case 55:return Pt?En(En(Xr,it.left,!0),it.right,!0):ma([En(Xr,it.left,!1),En(Xr,it.right,!1)]);case 56:return Pt?ma([En(Xr,it.left,!0),En(Xr,it.right,!0)]):En(En(Xr,it.left,!1),it.right,!1)}return Xr}function Wt(Xr,it,Pt){var Bt=Bp(it.right);if(!qs(r,Bt))return Xr;e.Debug.assertNode(it.left,e.isPrivateIdentifier);var Yt=_b(it.left);if(Yt===void 0)return Xr;var mn=Yt.parent,ya=e.hasStaticModifier(e.Debug.checkDefined(Yt.valueDeclaration,"should always have a declaration"))?An(mn):po(mn);return hn(Xr,ya,Pt,_m)}function Ft(Xr,it,Pt,Bt){var Yt=it===34||it===36,mn=it===34||it===35?98304:32768,ya=tl(Pt),_a=Yt!==Bt&&Kf(ya,function(qa){return!!(qa.flags&mn)})||Yt===Bt&&Kf(ya,function(qa){return!(qa.flags&(3|mn))});return _a?Fs(Xr,2097152):Xr}function _n(Xr,it,Pt,Bt){if(Xr.flags&1)return Xr;(it===35||it===37)&&(Bt=!Bt);var Yt=tl(Pt);if(Bt&&Xr.flags&2&&(it===34||it===35)&&Yt.flags&65536)return ma([ut,Nr]);if(Xr.flags&2&&Bt&&(it===36||it===37))return Yt.flags&67239932?Yt:Yt.flags&524288?dn:Xr;if(Yt.flags&98304){if(!br)return Xr;var mn=it===34||it===35,ya=mn?Bt?262144:2097152:Yt.flags&65536?Bt?131072:1048576:Bt?65536:524288;return Xr.flags&2&&ya&3145728?xr:Fs(Xr,ya)}if(Bt){var _a=it===34?function(qa){return My(qa,Yt)||WR(qa,Yt)}:function(qa){return My(qa,Yt)};return bA(rl(Xr,_a),Yt)}return Su(Yt)?rl(Xr,function(qa){return!(UL(qa)&&My(qa,Yt))}):Xr}function Ca(Xr,it,Pt,Bt,Yt){(Pt===35||Pt===37)&&(Yt=!Yt);var mn=Bp(it.expression);if(!qs(r,mn))return br&&vm(mn,r)&&Yt===(Bt.text!=="undefined")?Fs(Xr,2097152):Xr;if(Xr.flags&1&&Bt.text==="function")return Xr;if(Yt&&Xr.flags&2&&Bt.text==="object")return Xr===xr?dn:ma([dn,ut]);var ya=Yt?z.get(Bt.text)||128:ie.get(Bt.text)||32768,_a=Ti(Xr,Bt.text);return Fs(Yt&&_a?ds(Xr,Pi(_a)):Xr,ya)}function Yn(Xr,it,Pt,Bt,Yt){var mn=Pt!==Bt&&e.every(Qy(it).slice(Pt,Bt),Yt);return mn?Fs(Xr,2097152):Xr}function Ba(Xr,it,Pt,Bt){var Yt=Qy(it);if(!Yt.length)return Xr;var mn=Yt.slice(Pt,Bt),ya=Pt===Bt||e.contains(mn,en);if(Xr.flags&2&&!ya){for(var _a=void 0,qa=0;qa<mn.length;qa+=1){var Vi=mn[qa];if(Vi.flags&67239932)_a!==void 0&&_a.push(Vi);else if(Vi.flags&524288)_a===void 0&&(_a=mn.slice(0,qa)),_a.push(dn);else return Xr}return ma(_a===void 0?mn:_a)}var Qa=ma(mn),ho=Qa.flags&131072?en:bA(rl(Xr,function(ao){return My(Qa,ao)}),Qa);if(!ya)return ho;var Vo=rl(Xr,function(ao){return!(UL(ao)&&e.contains(Yt,kl(MR(ao))))});return ho.flags&131072?Vo:ma([ho,Vo])}function Ti(Xr,it){switch(it){case"function":return Xr.flags&1?Xr:Oe;case"object":return Xr.flags&2?ma([dn,ut]):Xr;default:return rr.get(it)}}function Pi(Xr){return function(it){if(Ed(it,Xr))return it;if(Ed(Xr,it))return Xr;if(it.flags&465829888){var Pt=l(it)||Ze;if(Ed(Xr,Pt))return To([it,Xr])}return it}}function jn(Xr,it,Pt,Bt){var Yt=vA(it,!0);if(!Yt.length)return Xr;var mn=e.findIndex(Yt,function(ao){return ao===void 0}),ya=Pt===Bt||mn>=Pt&&mn<Bt,_a,qa;if(mn>-1){var Vi=Yt.filter(function(ao){return ao!==void 0}),Qa=mn<Pt?Pt-1:Pt,ho=mn<Bt?Bt-1:Bt;_a=Vi.slice(Qa,ho),qa=X1(Qa,ho,Vi,ya)}else _a=Yt.slice(Pt,Bt),qa=X1(Pt,Bt,Yt,ya);if(ya)return rl(Xr,function(ao){return(mp(ao)&qa)===qa});var Vo=Fs(ma(_a.map(function(ao){return Ti(Xr,ao)||Xr})),qa);return Fs(ds(Xr,Pi(Vo)),qa)}function Fi(Xr){return(e.isPropertyAccessExpression(Xr)&&e.idText(Xr.name)==="constructor"||e.isElementAccessExpression(Xr)&&e.isStringLiteralLike(Xr.argumentExpression)&&Xr.argumentExpression.text==="constructor")&&qs(r,Xr.expression)}function Wr(Xr,it,Pt,Bt){if(Bt?it!==34&&it!==36:it!==35&&it!==37)return Xr;var Yt=tl(Pt);if(!CT(Yt)&&!tm(Yt))return Xr;var mn=Ii(Yt,"prototype");if(!mn)return Xr;var ya=An(mn),_a=Na(ya)?void 0:ya;if(!_a||_a===Un||_a===Oe)return Xr;if(Na(Xr))return _a;return rl(Xr,function(Vi){return qa(Vi,_a)});function qa(Vi,Qa){return Vi.flags&524288&&e.getObjectFlags(Vi)&1||Qa.flags&524288&&e.getObjectFlags(Qa)&1?Vi.symbol===Qa.symbol:Ed(Vi,Qa)}}function Tr(Xr,it,Pt){var Bt=Bp(it.left);if(!qs(r,Bt))return Pt&&br&&vm(Bt,r)?Fs(Xr,2097152):Xr;var Yt=tl(it.right);if(!_m(Yt,Oe))return Xr;var mn,ya=Ii(Yt,"prototype");if(ya){var _a=An(ya);Na(_a)||(mn=_a)}if(Na(Xr)&&(mn===Un||mn===Oe))return Xr;if(!mn){var qa=Ni(Yt,1);mn=qa.length?ma(e.map(qa,function(Qa){return _o(Jg(Qa))})):Qn}if(!Pt&&Yt.flags&1048576){var Vi=e.find(Yt.types,function(Qa){return!tm(Qa)});if(!Vi)return Xr}return hn(Xr,mn,Pt,_m)}function hn(Xr,it,Pt,Bt){if(!Pt)return rl(Xr,function(mn){return!Bt(mn,it)});if(Xr.flags&1048576){var Yt=rl(Xr,function(mn){return Bt(mn,it)});if(!(Yt.flags&131072))return Yt}return Ed(it,Xr)?it:Qi(Xr,it)?Xr:Qi(it,Xr)?it:To([Xr,it])}function nn(Xr,it,Pt){if(cA(it,r)){var Bt=Pt||!e.isCallChain(it)?rb(it):void 0,Yt=Bt&&Dc(Bt);if(Yt&&(Yt.kind===0||Yt.kind===1))return Vn(Xr,Yt,it,Pt)}if(Wy(Xr)&&e.isAccessExpression(r)&&e.isPropertyAccessExpression(it.expression)){var mn=it.expression;if(qs(r.expression,Bp(mn.expression))&&e.isIdentifier(mn.name)&&mn.name.escapedText==="hasOwnProperty"&&it.arguments.length===1){var ya=it.arguments[0];if(e.isStringLiteralLike(ya)&&g_(r)===e.escapeLeadingUnderscores(ya.text))return Fs(Xr,Pt?524288:65536)}}return Xr}function Vn(Xr,it,Pt,Bt){if(it.type&&!(Na(Xr)&&(it.type===Un||it.type===Oe))){var Yt=Mw(it,Pt);if(Yt){if(qs(r,Yt))return hn(Xr,it.type,Bt,Ed);br&&Bt&&vm(Yt,r)&&!(mp(it.type)&65536)&&(Xr=Fs(Xr,2097152));var mn=ca(Yt,Xr);if(mn)return la(Xr,mn,function(ya){return hn(ya,it.type,Bt,Ed)})}}return Xr}function En(Xr,it,Pt){if(e.isExpressionOfOptionalChainRoot(it)||e.isBinaryExpression(it.parent)&&it.parent.operatorToken.kind===60&&it.parent.left===it)return Fn(Xr,it,Pt);switch(it.kind){case 79:if(!qs(r,it)&&Ve<5){var Bt=Lu(it);if(bh(Bt)){var Yt=Bt.valueDeclaration;if(Yt&&e.isVariableDeclaration(Yt)&&!Yt.type&&Yt.initializer&&DA(r)){Ve++;var mn=En(Xr,Yt.initializer,Pt);return Ve--,mn}}}case 108:case 106:case 205:case 206:return Li(Xr,it,Pt);case 207:return nn(Xr,it,Pt);case 211:case 229:return En(Xr,it.expression,Pt);case 220:return xo(Xr,it,Pt);case 218:if(it.operator===53)return En(Xr,it.operand,!Pt);break}return Xr}function Fn(Xr,it,Pt){if(qs(r,it))return Fs(Xr,Pt?2097152:262144);var Bt=ca(it,Xr);return Bt?la(Xr,Bt,function(Yt){return Fs(Yt,Pt?2097152:262144)}):Xr}}function Fw(r,t){if(r=r.exportSymbol||r,(t.kind===79||t.kind===80)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),e.isExpressionNode(t)&&(!e.isAssignmentTarget(t)||e.isWriteAccess(t)))){var i=tl(t);if(tc(Zn(t).resolvedSymbol)===r)return i}return e.isDeclarationName(t)&&e.isSetAccessor(t.parent)&&ml(t.parent)?an(t.parent.symbol,!0):Gf(r)}function sv(r){return e.findAncestor(r.parent,function(t){return e.isFunctionLike(t)&&!e.getImmediatelyInvokedFunctionExpression(t)||t.kind===261||t.kind===303||t.kind===166})}function LA(r){if(!r.valueDeclaration)return!1;var t=e.getRootDeclaration(r.valueDeclaration).parent,i=Zn(t);return i.flags&8388608||(i.flags|=8388608,Gw(t)||AA(t)),r.isAssigned||!1}function Gw(r){return!!e.findAncestor(r.parent,function(t){return(e.isFunctionLike(t)||e.isCatchClause(t))&&!!(Zn(t).flags&8388608)})}function AA(r){if(r.kind===79){if(e.isAssignmentTarget(r)){var t=Lu(r);e.isParameterOrCatchClauseVariable(t)&&(t.isAssigned=!0)}}else e.forEachChild(r,AA)}function bh(r){return r.flags&3&&(cv(r)&2)!==0}function Bw(r,t){if(E(t.symbol,2)){var i=br&&t.kind===163&&t.initializer&&lc(r)&32768&&!(lc(ui(t.initializer))&32768);return Ot(),i?Fs(r,524288):r}else return tp(t.symbol),r}function Uw(r,t){var i=t.parent;return i.kind===205||i.kind===207&&i.expression===t||i.kind===206&&i.expression===t&&!(hm(r,Ww)&&F_(tl(i.argumentExpression)))}function Vw(r){return!!(r.flags&465829888&&ee(r).flags&1146880)}function Ww(r){return!!(r.flags&465829888&&!Jo(ee(r),98304))}function jw(r){var t=(e.isIdentifier(r)||e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r))&&!((e.isJsxOpeningElement(r.parent)||e.isJsxSelfClosingElement(r.parent))&&r.parent.tagName===r)&&Ac(r,8);return t&&!Yg(t)}function u1(r,t,i){var o=!(i&&i&2)&&hm(r,Vw)&&(Uw(r,t)||jw(t));return o?ds(r,function(s){return s.flags&465829888?ee(s):s}):r}function CA(r){return!!e.findAncestor(r,function(t){var i=t.parent;return i===void 0?"quit":e.isExportAssignment(i)?i.expression===t&&e.isEntityNameExpression(t):e.isExportSpecifier(i)?i.name===t||i.propertyName===t:!1})}function ab(r,t){if(Dl(r,111551)&&!lg(t)&&!Ln(r)){var i=ms(r);i.flags&111551&&(Xe.isolatedModules||e.shouldPreserveConstEnums(Xe)&&CA(t)||!Dv(i)?ii(r):Rc(r))}}function Hw(r,t){var i=Lu(r);if(i===We)return dr;if(i===Jr){if(sC(r))return Mr(r,e.Diagnostics.arguments_cannot_be_referenced_in_property_initializers),dr;var o=e.getContainingFunction(r);return De<2&&(o.kind===213?Mr(r,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasSyntacticModifier(o,256)&&Mr(r,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Zn(o).flags|=8192,An(i)}r.parent&&e.isPropertyAccessExpression(r.parent)&&r.parent.expression===r||ab(i,r);var s=tc(i),c=s.flags&2097152?ms(s):s;c.declarations&&cv(c)&134217728&&u0(r,c)&&kc(r,c.declarations,r.escapedText);var L=s.valueDeclaration;if(L&&s.flags&32){if(L.kind===256&&e.nodeIsDecorated(L))for(var o=e.getContainingClass(r);o!==void 0;){if(o===L&&o.name!==r){Zn(L).flags|=16777216,Zn(r).flags|=33554432;break}o=e.getContainingClass(o)}else if(L.kind===225)for(var o=e.getThisContainer(r,!1);o.kind!==303;){if(o.parent===L){(e.isPropertyDeclaration(o)&&e.isStatic(o)||e.isClassStaticBlockDeclaration(o))&&(Zn(L).flags|=16777216,Zn(r).flags|=33554432);break}o=e.getThisContainer(o,!1)}}zw(r,i);var G=An(s),ce=e.getAssignmentTargetKind(r);if(ce){if(!(s.flags&3)&&!(e.isInJSFile(r)&&s.flags&512)){var we=s.flags&384?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:s.flags&32?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:s.flags&1536?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:s.flags&16?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:s.flags&2097152?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable;return Mr(r,we,Wa(i)),dr}if(Iu(s))return s.flags&3?Mr(r,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,Wa(i)):Mr(r,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Wa(i)),dr}var Ue=s.flags&2097152;if(s.flags&3){if(ce===1)return G}else if(Ue)L=ec(i);else return G;if(!L)return G;G=u1(G,r,t);for(var Je=e.getRootDeclaration(L).kind===163,ar=sv(L),_r=sv(r),Gr=_r!==ar,Zr=r.parent&&r.parent.parent&&e.isSpreadAssignment(r.parent)&&l1(r.parent.parent),Et=i.flags&134217728;_r!==ar&&(_r.kind===212||_r.kind===213||e.isObjectLiteralOrClassExpressionMethodOrAccessor(_r))&&(bh(s)&&G!==ta||Je&&!LA(s));)_r=sv(_r);var Tt=Je||Ue||Gr||Zr||Et||e.isBindingElement(L)||G!==Cr&&G!==ta&&(!br||(G.flags&16387)!==0||lg(r)||r.parent.kind===274)||r.parent.kind===229||L.kind===253&&L.exclamationToken||L.flags&8388608,At=Tt?Je?Bw(G,L):G:G===Cr||G===ta?Nr:Jf(G),Vt=y_(r,G,At,_r);if(!TA(r)&&(G===Cr||G===ta)){if(Vt===Cr||Vt===ta)return Ke&&(Mr(e.getNameOfDeclaration(L),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Wa(i),gn(Vt)),Mr(r,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Wa(i),gn(Vt))),Tv(Vt)}else if(!Tt&&!(lc(G)&32768)&&lc(Vt)&32768)return Mr(r,e.Diagnostics.Variable_0_is_used_before_being_assigned,Wa(i)),G;return ce?Du(Vt):Vt}function Jw(r,t){return!!e.findAncestor(r,function(i){return i===t?"quit":e.isFunctionLike(i)||i.parent&&e.isPropertyDeclaration(i.parent)&&!e.hasStaticModifier(i.parent)&&i.parent.initializer===i})}function Kw(r,t){return e.findAncestor(r,function(i){return i===t?"quit":i===t.initializer||i===t.condition||i===t.incrementor||i===t.statement})}function f1(r){return e.findAncestor(r,function(t){return!t||e.nodeStartsNewLexicalEnvironment(t)?"quit":e.isIterationStatement(t,!1)})}function zw(r,t){if(!(De>=2||!(t.flags&34)||!t.valueDeclaration||e.isSourceFile(t.valueDeclaration)||t.valueDeclaration.parent.kind===291)){var i=e.getEnclosingBlockScopeContainer(t.valueDeclaration),o=Jw(r,i),s=f1(i);if(s){if(o){var c=!0;if(e.isForStatement(i)){var L=e.getAncestor(t.valueDeclaration,254);if(L&&L.parent===i){var G=Kw(r.parent,i);if(G){var ce=Zn(G);ce.flags|=131072;var we=ce.capturedBlockScopeBindings||(ce.capturedBlockScopeBindings=[]);e.pushIfUnique(we,t),G===i.initializer&&(c=!1)}}}c&&(Zn(s).flags|=65536)}if(e.isForStatement(i)){var L=e.getAncestor(t.valueDeclaration,254);L&&L.parent===i&&Xw(r,i)&&(Zn(t.valueDeclaration).flags|=4194304)}Zn(t.valueDeclaration).flags|=524288}o&&(Zn(t.valueDeclaration).flags|=262144)}}function qw(r,t){var i=Zn(r);return!!i&&e.contains(i.capturedBlockScopeBindings,wn(t))}function Xw(r,t){for(var i=r;i.parent.kind===211;)i=i.parent;var o=!1;if(e.isAssignmentTarget(i))o=!0;else if(i.parent.kind===218||i.parent.kind===219){var s=i.parent;o=s.operator===45||s.operator===46}return o?!!e.findAncestor(i,function(c){return c===t?"quit":c===t.statement}):!1}function d1(r,t){if(Zn(r).flags|=2,t.kind===166||t.kind===170){var i=t.parent;Zn(i).flags|=4}else Zn(t).flags|=4}function xA(r){return e.isSuperCall(r)?r:e.isFunctionLike(r)?void 0:e.forEachChild(r,xA)}function IA(r){var t=wn(r),i=po(t),o=Ju(i);return o===ht}function NA(r,t,i){var o=t.parent,s=e.getClassExtendsHeritageElement(o);s&&!IA(o)&&r.flowNode&&!nb(r.flowNode,!1)&&Mr(r,i)}function Yw(r,t){e.isPropertyDeclaration(t)&&e.hasStaticModifier(t)&&t.initializer&&e.textRangeContainsPositionInclusive(t.initializer,r.pos)&&e.length(t.parent.decorators)&&Mr(r,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function ib(r){var t=lg(r),i=e.getThisContainer(r,!0),o=!1;switch(i.kind===170&&NA(r,i,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),i.kind===213&&(i=e.getThisContainer(i,!1),o=!0),Yw(r,i),i.kind){case 260:Mr(r,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 259:Mr(r,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 170:kA(r,i)&&Mr(r,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 161:Mr(r,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);break}!t&&o&&De<2&&d1(r,i);var s=p1(r,!0,i);if(Me){var c=An(pr);if(s===c&&o)Mr(r,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!s){var L=Mr(r,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(i)){var G=p1(i);G&&G!==c&&e.addRelatedInfo(L,e.createDiagnosticForNode(i,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return s||Ze}function p1(r,t,i){t===void 0&&(t=!0),i===void 0&&(i=e.getThisContainer(r,!1));var o=e.isInJSFile(r);if(e.isFunctionLike(i)&&(!g1(r)||e.getThisParameter(i))){var s=be(i)||o&&$w(i);if(!s){var c=Zw(i);if(o&&c){var L=ui(c).symbol;L&&L.members&&L.flags&16&&(s=po(L).thisType)}else ou(i)&&(s=po(Ga(i.symbol)).thisType);s||(s=RA(i))}if(s)return y_(r,s)}if(e.isClassLike(i.parent)){var G=wn(i.parent),ce=e.isStatic(i)?An(G):po(G).thisType;return y_(r,ce)}if(e.isSourceFile(i))if(i.commonJsModuleIndicator){var we=wn(i);return we&&An(we)}else{if(i.externalModuleIndicator)return Nr;if(t)return An(pr)}}function Qw(r){var t=e.getThisContainer(r,!1);if(e.isFunctionLike(t)){var i=bu(t);if(i.thisParameter)return eb(i.thisParameter)}if(e.isClassLike(t.parent)){var o=wn(t.parent);return e.isStatic(t)?An(o):po(o).thisType}}function Zw(r){if(r.kind===212&&e.isBinaryExpression(r.parent)&&e.getAssignmentDeclarationKind(r.parent)===3)return r.parent.left.expression.expression;if(r.kind===168&&r.parent.kind===204&&e.isBinaryExpression(r.parent.parent)&&e.getAssignmentDeclarationKind(r.parent.parent)===6)return r.parent.parent.left.expression;if(r.kind===212&&r.parent.kind===294&&r.parent.parent.kind===204&&e.isBinaryExpression(r.parent.parent.parent)&&e.getAssignmentDeclarationKind(r.parent.parent.parent)===6)return r.parent.parent.parent.left.expression;if(r.kind===212&&e.isPropertyAssignment(r.parent)&&e.isIdentifier(r.parent.name)&&(r.parent.name.escapedText==="value"||r.parent.name.escapedText==="get"||r.parent.name.escapedText==="set")&&e.isObjectLiteralExpression(r.parent.parent)&&e.isCallExpression(r.parent.parent.parent)&&r.parent.parent.parent.arguments[2]===r.parent.parent&&e.getAssignmentDeclarationKind(r.parent.parent.parent)===9)return r.parent.parent.parent.arguments[0].expression;if(e.isMethodDeclaration(r)&&e.isIdentifier(r.name)&&(r.name.escapedText==="value"||r.name.escapedText==="get"||r.name.escapedText==="set")&&e.isObjectLiteralExpression(r.parent)&&e.isCallExpression(r.parent.parent)&&r.parent.parent.arguments[2]===r.parent&&e.getAssignmentDeclarationKind(r.parent.parent)===9)return r.parent.parent.arguments[0].expression}function $w(r){var t=e.getJSDocType(r);if(t&&t.kind===315){var i=t;if(i.parameters.length>0&&i.parameters[0].name&&i.parameters[0].name.escapedText==="this")return Da(i.parameters[0].type)}var o=e.getJSDocThisTag(r);if(o&&o.typeExpression)return Da(o.typeExpression)}function kA(r,t){return!!e.findAncestor(r,function(i){return e.isFunctionLikeDeclaration(i)?"quit":i.kind===163&&i.parent===t})}function _1(r){var t=r.parent.kind===207&&r.parent.expression===r,i=e.getSuperContainer(r,!0),o=i,s=!1;if(!t)for(;o&&o.kind===213;)o=e.getSuperContainer(o,!0),s=De<2;var c=Je(o),L=0;if(!c){var G=e.findAncestor(r,function(ar){return ar===o?"quit":ar.kind===161});return G&&G.kind===161?Mr(r,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):t?Mr(r,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!o||!o.parent||!(e.isClassLike(o.parent)||o.parent.kind===204)?Mr(r,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Mr(r,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),dr}if(!t&&i.kind===170&&NA(r,o,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(o)||t?(L=512,!t&&De>=2&&De<=8&&(e.isPropertyDeclaration(o)||e.isClassStaticBlockDeclaration(o))&&e.forEachEnclosingBlockScopeContainer(r.parent,function(ar){(!e.isSourceFile(ar)||e.isExternalOrCommonJsModule(ar))&&(Zn(ar).flags|=134217728)})):L=256,Zn(r).flags|=L,o.kind===168&&e.hasSyntacticModifier(o,256)&&(e.isSuperProperty(r.parent)&&e.isAssignmentTarget(r.parent)?Zn(o).flags|=4096:Zn(o).flags|=2048),s&&d1(r.parent,o),o.parent.kind===204)return De<2?(Mr(r,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),dr):Ze;var ce=o.parent;if(!e.getClassExtendsHeritageElement(ce))return Mr(r,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),dr;var we=po(wn(ce)),Ue=we&&xl(we)[0];if(!Ue)return dr;if(o.kind===170&&kA(r,o))return Mr(r,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),dr;return L===512?Ju(we):Il(Ue,we.thisType);function Je(ar){return ar?t?ar.kind===170:e.isClassLike(ar.parent)||ar.parent.kind===204?e.isStatic(ar)?ar.kind===168||ar.kind===167||ar.kind===171||ar.kind===172||ar.kind===166||ar.kind===169:ar.kind===168||ar.kind===167||ar.kind===171||ar.kind===172||ar.kind===166||ar.kind===165||ar.kind===170:!1:!1}}function eM(r){return(r.kind===168||r.kind===171||r.kind===172)&&r.parent.kind===204?r.parent:r.kind===212&&r.parent.kind===294?r.parent.parent:void 0}function OA(r){return e.getObjectFlags(r)&4&&r.target===Jt?vo(r)[0]:void 0}function rM(r){return ds(r,function(t){return t.flags&2097152?e.forEach(t.types,OA):OA(t)})}function RA(r){if(r.kind!==213){if(TL(r)){var t=Th(r);if(t){var i=t.thisParameter;if(i)return An(i)}}var o=e.isInJSFile(r);if(Me||o){var s=eM(r);if(s){for(var c=Up(s),L=s,G=c;G;){var ce=rM(G);if(ce)return oi(ce,Q0(lv(s)));if(L.parent.kind!==294)break;L=L.parent.parent,G=Up(L)}return wl(c?Td(c):Ss(s))}var we=e.walkUpParenthesizedExpressions(r.parent);if(we.kind===220&&we.operatorToken.kind===63){var Ue=we.left;if(e.isAccessExpression(Ue)){var Je=Ue.expression;if(o&&e.isIdentifier(Je)){var ar=e.getSourceFileOfNode(we);if(ar.commonJsModuleIndicator&&Lu(Je)===ar.symbol)return}return wl(Ss(Je))}}}}}function wA(r){var t=r.parent;if(TL(t)){var i=e.getImmediatelyInvokedFunctionExpression(t);if(i&&i.arguments){var o=W1(i),s=t.parameters.indexOf(r);if(r.dotDotDotToken)return V1(o,s,o.length,Ze,void 0,0);var c=Zn(i),L=c.resolvedSignature;c.resolvedSignature=No;var G=s<o.length?Pp(ui(o[s])):r.initializer?void 0:zr;return c.resolvedSignature=L,G}var ce=Th(t);if(ce){var we=t.parameters.indexOf(r)-(e.getThisParameter(t)?1:0);return r.dotDotDotToken&&e.lastOrUndefined(t.parameters)===r?gg(ce,we):E_(ce,we)}}}function m1(r){var t=e.getEffectiveTypeAnnotationNode(r);if(t)return Da(t);switch(r.kind){case 163:return wA(r);case 202:return tM(r);case 166:if(e.isStatic(r))return nM(r)}}function tM(r){var t=r.parent.parent,i=r.propertyName||r.name,o=m1(t)||t.kind!==202&&t.initializer&&Rh(t);if(!(!o||e.isBindingPattern(i)||e.isComputedNonLiteralName(i))){if(t.name.kind===201){var s=e.indexOfNode(r.parent.elements,r);return s<0?void 0:b1(o,s)}var c=lp(i);if(gu(c)){var L=vu(c);return ia(o,L)}}}function nM(r){var t=e.isExpression(r.parent)&&Ac(r.parent);if(t)return b_(t,wn(r).escapedName)}function aM(r,t){var i=r.parent;if(e.hasInitializer(i)&&r===i.initializer){var o=m1(i);if(o)return o;if(!(t&8)&&e.isBindingPattern(i.name))return xs(i.name,!0,!1)}}function iM(r){var t=e.getContainingFunction(r);if(t){var i=v1(t);if(i){var o=e.getFunctionFlags(t);if(o&1){var s=o&2?2:1,c=Uh(i,s,void 0);if(!c)return;i=c.returnType}if(o&2){var L=ds(i,Sd);return L&&ma([L,JC(L)])}return i}}}function oM(r,t){var i=Ac(r,t);if(i){var o=Sd(i);return o&&ma([o,JC(o)])}}function sM(r){var t=e.getContainingFunction(r);if(t){var i=e.getFunctionFlags(t),o=v1(t);if(o)return r.asteriskToken?o:Lm(0,o,(i&2)!==0)}}function g1(r){for(var t=!1;r.parent&&!e.isFunctionLike(r.parent);){if(e.isParameter(r.parent)&&(t||r.parent.initializer===r))return!0;e.isBindingElement(r.parent)&&r.parent.initializer===r&&(t=!0),r=r.parent}return!1}function MA(r,t){var i=!!(e.getFunctionFlags(t)&2),o=v1(t);if(o)return Lm(r,o,i)||void 0}function v1(r){var t=lm(r);if(t)return t;var i=T1(r);if(i&&!qE(i))return _o(i);var o=e.getImmediatelyInvokedFunctionExpression(r);if(o)return Ac(o)}function PA(r,t){var i=W1(r),o=i.indexOf(t);return o===-1?void 0:h1(r,o)}function h1(r,t){if(e.isImportCall(r))return t===0?xt:t===1?kD(!1):Ze;var i=Zn(r).resolvedSignature===Lo?Lo:_g(r);if(e.isJsxOpeningLikeElement(r)&&t===0)return cb(i,r);var o=i.parameters.length-1;return ue(i)&&t>=o?Hl(An(i.parameters[o]),Wf(t-o),256):Uc(i,t)}function lM(r,t){if(r.parent.kind===209)return PA(r.parent,t)}function cM(r,t){var i=r.parent,o=i.left,s=i.operatorToken,c=i.right;switch(s.kind){case 63:case 76:case 75:case 77:return r===c?fM(i):void 0;case 56:case 60:var L=Ac(i,t);return r===c&&(L&&L.pattern||!L&&!e.isDefaultedExpandoInitializer(i))?tl(o):L;case 55:case 27:return r===c?Ac(i,t):void 0;default:return}}function uM(r){if(r.symbol)return r.symbol;if(e.isIdentifier(r))return Lu(r);if(e.isPropertyAccessExpression(r)){var t=tl(r.expression);return e.isPrivateIdentifier(r.name)?i(t,r.name):Ii(t,r.name.escapedText)}return;function i(o,s){var c=pb(s.escapedText,s);return c&&O1(o,c)}}function fM(r){var t,i,o=e.getAssignmentDeclarationKind(r);switch(o){case 0:case 4:var s=uM(r.left),c=s&&s.valueDeclaration;if(c&&(e.isPropertyDeclaration(c)||e.isPropertySignature(c))){var L=e.getEffectiveTypeAnnotationNode(c);return L&&oi(Da(L),Ja(s).mapper)||c.initializer&&tl(r.left)}return o===0?tl(r.left):FA(r);case 5:if(ob(r,o))return FA(r);if(r.left.symbol){var G=r.left.symbol.valueDeclaration;if(!G)return;var ce=e.cast(r.left,e.isAccessExpression),L=e.getEffectiveTypeAnnotationNode(G);if(L)return Da(L);if(e.isIdentifier(ce.expression)){var we=ce.expression,Ue=Uo(we,we.escapedText,111551,void 0,we.escapedText,!0);if(Ue){var Je=Ue.valueDeclaration&&e.getEffectiveTypeAnnotationNode(Ue.valueDeclaration);if(Je){var ar=e.getElementOrPropertyAccessName(ce);if(ar!==void 0)return b_(Da(Je),ar)}return}}return e.isInJSFile(G)?void 0:tl(r.left)}else return tl(r.left);case 1:case 6:case 3:var _r=(t=r.left.symbol)===null||t===void 0?void 0:t.valueDeclaration;case 2:_r||(_r=(i=r.symbol)===null||i===void 0?void 0:i.valueDeclaration);var Gr=_r&&e.getEffectiveTypeAnnotationNode(_r);return Gr?Da(Gr):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(o)}}function ob(r,t){if(t===void 0&&(t=e.getAssignmentDeclarationKind(r)),t===4)return!0;if(!e.isInJSFile(r)||t!==5||!e.isIdentifier(r.left.expression))return!1;var i=r.left.expression.escapedText,o=Uo(r.left,i,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(o==null?void 0:o.valueDeclaration)}function FA(r){if(!r.symbol)return tl(r.left);if(r.symbol.valueDeclaration){var t=e.getEffectiveTypeAnnotationNode(r.symbol.valueDeclaration);if(t){var i=Da(t);if(i)return i}}var o=e.cast(r.left,e.isAccessExpression);if(e.isObjectLiteralMethod(e.getThisContainer(o.expression,!1))){var s=ib(o.expression),c=e.getElementOrPropertyAccessName(o);return c!==void 0&&b_(s,c)||void 0}}function dM(r){return!!(e.getCheckFlags(r)&262144&&!r.type&&Qe(r,0)>=0)}function b_(r,t){return ds(r,function(i){var o;if(El(i)){var s=Tc(i),c=l(s)||s,L=Lc(e.unescapeLeadingUnderscores(t));if(Qi(L,c))return aL(i,L)}else if(i.flags&3670016){var G=Ii(i,t);if(G)return dM(G)?void 0:An(G);if(ki(i)){var ce=rv(i);if(ce&&zf(t)&&+t>=0)return ce}return(o=Zv(Km(i),Lc(e.unescapeLeadingUnderscores(t))))===null||o===void 0?void 0:o.type}},!0)}function pM(r,t){if(e.Debug.assert(e.isObjectLiteralMethod(r)),!(r.flags&16777216))return y1(r,t)}function y1(r,t){var i=r.parent,o=e.isPropertyAssignment(r)&&m1(r);if(o)return o;var s=Up(i,t);if(s){if(l_(r))return b_(s,wn(r).escapedName);if(r.name){var c=lp(r.name);return ds(s,function(L){var G;return(G=Zv(Km(L),c))===null||G===void 0?void 0:G.type},!0)}}}function b1(r,t){return r&&(b_(r,""+t)||ds(r,function(i){return pT(1,i,Nr,void 0,!1)},!0))}function _M(r,t){var i=r.parent;return r===i.whenTrue||r===i.whenFalse?Ac(i,t):void 0}function mM(r,t){var i=Up(r.openingElement.tagName),o=fb(Em(r));if(i&&!Na(i)&&o&&o!==""){var s=e.getSemanticJsxChildren(r.children),c=s.indexOf(t),L=b_(i,o);return L&&(s.length===1?L:ds(L,function(G){return _p(G)?Hl(G,Wf(c)):G},!0))}}function gM(r){var t=r.parent;return e.isJsxAttributeLike(t)?Ac(r):e.isJsxElement(t)?mM(t,r):void 0}function GA(r){if(e.isJsxAttribute(r)){var t=Up(r.parent);return!t||Na(t)?void 0:b_(t,r.name.escapedText)}else return Ac(r.parent)}function Eh(r){switch(r.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 152:return!0;case 205:case 211:return Eh(r.expression);case 287:return!r.expression||Eh(r.expression)}return!1}function vM(r,t){return _w(t,r)||w0(t,e.concatenate(e.map(e.filter(r.properties,function(i){return!!i.symbol&&i.kind===294&&Eh(i.initializer)&&iv(t,i.symbol.escapedName)}),function(i){return[function(){return wh(i.initializer)},i.symbol.escapedName]}),e.map(e.filter(Yi(t),function(i){var o;return!!(i.flags&16777216)&&!!(!((o=r==null?void 0:r.symbol)===null||o===void 0)&&o.members)&&!r.symbol.members.has(i.escapedName)&&iv(t,i.escapedName)}),function(i){return[function(){return Nr},i.escapedName]})),Qi,t)}function hM(r,t){return w0(t,e.concatenate(e.map(e.filter(r.properties,function(i){return!!i.symbol&&i.kind===284&&iv(t,i.symbol.escapedName)&&(!i.initializer||Eh(i.initializer))}),function(i){return[i.initializer?function(){return wh(i.initializer)}:function(){return sa},i.symbol.escapedName]}),e.map(e.filter(Yi(t),function(i){var o;return!!(i.flags&16777216)&&!!(!((o=r==null?void 0:r.symbol)===null||o===void 0)&&o.members)&&!r.symbol.members.has(i.escapedName)&&iv(t,i.escapedName)}),function(i){return[function(){return Nr},i.escapedName]})),Qi,t)}function Up(r,t){var i=e.isObjectLiteralMethod(r)?pM(r,t):Ac(r,t),o=sb(i,r,t);if(o&&!(t&&t&2&&o.flags&8650752)){var s=ds(o,wi,!0);return s.flags&1048576&&e.isObjectLiteralExpression(r)?vM(r,s):s.flags&1048576&&e.isJsxAttributes(r)?hM(r,s):s}}function sb(r,t,i){if(r&&Jo(r,465829888)){var o=lv(t);if(o&&e.some(o.inferences,H_)){if(i&&i&1)return lb(r,o.nonFixingMapper);if(o.returnMapper)return lb(r,o.returnMapper)}}return r}function lb(r,t){return r.flags&465829888?oi(r,t):r.flags&1048576?ma(e.map(r.types,function(i){return lb(i,t)}),0):r.flags&2097152?To(e.map(r.types,function(i){return lb(i,t)})):r}function Ac(r,t){if(r.flags&16777216)return;if(r.contextualType)return r.contextualType;var i=r.parent;switch(i.kind){case 253:case 163:case 166:case 165:case 202:return aM(r,t);case 213:case 246:return iM(r);case 223:return sM(i);case 217:return oM(i,t);case 207:case 208:return PA(i,r);case 210:case 228:return e.isConstTypeReference(i.type)?L(i):Da(i.type);case 220:return cM(r,t);case 294:case 295:return y1(i,t);case 296:return Ac(i.parent,t);case 203:{var o=i,s=Up(o,t);return b1(s,e.indexOfNode(o.elements,r))}case 221:return _M(r,t);case 232:return e.Debug.assert(i.parent.kind===222),lM(i.parent,r);case 211:{var c=e.isInJSFile(i)?e.getJSDocTypeTag(i):void 0;return c?e.isJSDocTypeTag(c)&&e.isConstTypeReference(c.typeExpression.type)?L(i):Da(c.typeExpression.type):Ac(i,t)}case 229:return Ac(i,t);case 287:return gM(i);case 284:case 286:return GA(i);case 279:case 278:return yM(i,t)}return;function L(G){return Ac(G)}}function lv(r){var t=e.findAncestor(r,function(i){return!!i.inferenceContext});return t&&t.inferenceContext}function yM(r,t){return e.isJsxOpeningElement(r)&&r.parent.contextualType&&t!==4?r.parent.contextualType:h1(r,0)}function cb(r,t){return SC(t)!==0?bM(r,t):SM(r,t)}function bM(r,t){var i=q1(r,tr);i=BA(t,Em(t),i);var o=Vp(P.IntrinsicAttributes,t);return Ua(o)||(i=om(o,i)),i}function EM(r,t){if(r.compositeSignatures){for(var i=[],o=0,s=r.compositeSignatures;o<s.length;o++){var c=s[o],L=_o(c);if(Na(L))return L;var G=ia(L,t);if(!G)return;i.push(G)}return To(i)}var ce=_o(r);return Na(ce)?ce:ia(ce,t)}function TM(r){if(fg(r.tagName)){var t=XA(r),i=Eb(r,t);return Ym(i)}var o=Ss(r.tagName);if(o.flags&128){var t=qA(o,r);if(!t)return dr;var i=Eb(r,t);return Ym(i)}return o}function BA(r,t,i){var o=WM(t);if(o){var s=po(o),c=TM(r);if(o.flags&524288){var L=Ja(o).typeParameters;if(e.length(L)>=2){var G=M_([c,i],L,2,e.isInJSFile(r));return Zm(o,G)}}if(e.length(s.typeParameters)>=2){var G=M_([c,i],s.typeParameters,2,e.isInJSFile(r));return Uf(s,G)}}return i}function SM(r,t){var i=Em(t),o=jM(i),s=o===void 0?q1(r,tr):o===""?_o(r):EM(r,o);if(!s)return o&&e.length(t.attributes.properties)&&Mr(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(o)),tr;if(s=BA(t,i,s),Na(s))return s;var c=s,L=Vp(P.IntrinsicClassAttributes,t);if(!Ua(L)){var G=mu(L.symbol),ce=_o(r);c=om(G?Uf(L,M_([ce],G,lf(G),e.isInJSFile(t))):L,c)}var we=Vp(P.IntrinsicAttributes,t);return Ua(we)||(c=om(we,c)),c}function DM(r){return e.getStrictOptionValue(Xe,"noImplicitAny")?e.reduceLeft(r,function(t,i){return t===i||!t?t:uy(t.typeParameters,i.typeParameters)?CM(t,i):void 0}):void 0}function LM(r,t,i){if(!r||!t)return r||t;var o=ma([An(r),oi(An(t),i)]);return V_(r,o)}function AM(r,t,i){for(var o=Tl(r),s=Tl(t),c=o>=s?r:t,L=c===r?t:r,G=c===r?o:s,ce=xu(r)||xu(t),we=ce&&!xu(c),Ue=new Array(G+(we?1:0)),Je=0;Je<G;Je++){var ar=E_(c,Je);c===t&&(ar=oi(ar,i));var _r=E_(L,Je)||tr;L===t&&(_r=oi(_r,i));var Gr=ma([ar,_r]),Zr=ce&&!we&&Je===G-1,Et=Je>=Cu(c)&&Je>=Cu(L),Tt=Je>=o?void 0:mg(r,Je),At=Je>=s?void 0:mg(t,Je),Vt=Tt===At?Tt:Tt?At?void 0:Tt:At,Nn=fo(1|(Et&&!Zr?16777216:0),Vt||"arg".concat(Je));Nn.type=Zr?zs(Gr):Gr,Ue[Je]=Nn}if(we){var on=fo(1,"args");on.type=zs(Uc(L,G)),L===t&&(on.type=oi(on.type,i)),Ue[G]=on}return Ue}function CM(r,t){var i=r.typeParameters||t.typeParameters,o;r.typeParameters&&t.typeParameters&&(o=Ol(t.typeParameters,r.typeParameters));var s=r.declaration,c=AM(r,t,o),L=LM(r.thisParameter,t.thisParameter,o),G=Math.max(r.minArgumentCount,t.minArgumentCount),ce=hu(s,i,L,c,void 0,void 0,G,(r.flags|t.flags)&39);return ce.compositeKind=2097152,ce.compositeSignatures=e.concatenate(r.compositeKind===2097152&&r.compositeSignatures||[r],[t]),o&&(ce.mapper=r.compositeKind===2097152&&r.mapper&&r.compositeSignatures?__(r.mapper,o):o),ce}function E1(r,t){var i=Ni(r,0),o=e.filter(i,function(s){return!xM(s,t)});return o.length===1?o[0]:DM(o)}function xM(r,t){for(var i=0;i<t.parameters.length;i++){var o=t.parameters[i];if(o.initializer||o.questionToken||o.dotDotDotToken||Xm(o))break}return t.parameters.length&&e.parameterIsThisKeyword(t.parameters[0])&&i--,!xu(r)&&Tl(r)<i}function T1(r){return e.isFunctionExpressionOrArrowFunction(r)||e.isObjectLiteralMethod(r)?Th(r):void 0}function Th(r){e.Debug.assert(r.kind!==168||e.isObjectLiteralMethod(r));var t=KE(r);if(t)return t;var i=Up(r,1);if(i){if(!(i.flags&1048576))return E1(i,r);for(var o,s=i.types,c=0,L=s;c<L.length;c++){var G=L[c],ce=E1(G,r);if(ce)if(!o)o=[ce];else if(_h(o[0],ce,!1,!0,!0,$g))o.push(ce);else return}if(o)return o.length===1?o[0]:oy(o[0],o)}}function IM(r,t){De<2&&nl(r,Xe.downlevelIteration?1536:1024);var i=ui(r.expression,t);return Ld(33,i,Nr,r.expression)}function NM(r){return r.isSpread?Hl(r.type,wt):r.type}function cg(r){return r.kind===202&&!!r.initializer||r.kind===220&&r.operatorToken.kind===63}function UA(r,t,i){for(var o=r.elements,s=o.length,c=[],L=[],G=Up(r),ce=e.isAssignmentTarget(r),we=vg(r),Ue=!1,Je=0;Je<s;Je++){var ar=o[Je];if(ar.kind===224){De<2&&nl(ar,Xe.downlevelIteration?1536:1024);var _r=ui(ar.expression,t,i);if(_p(_r))c.push(_r),L.push(8);else if(ce){var Gr=tu(_r,wt)||pT(65,_r,Nr,void 0,!1)||tr;c.push(Gr),L.push(4)}else c.push(Ld(33,_r,Nr,ar.expression)),L.push(4)}else if(de&&ar.kind===226)Ue=!0,c.push(vt),L.push(2);else{var Zr=b1(G,c.length),Et=hg(ar,t,Zr,i);c.push(Wl(Et,!0,Ue)),L.push(Ue?2:1)}}return ce?Tu(c,L):i||we||G&&hm(G,ig)?VA(Tu(c,L,we)):VA(zs(c.length?ma(e.sameMap(c,function(Tt,At){return L[At]&8?cp(Tt,wt)||Ze:Tt}),2):br?qt:zr,we))}function VA(r){if(!(e.getObjectFlags(r)&4))return r;var t=r.literalType;return t||(t=r.literalType=vD(r),t.objectFlags|=294912),t}function kM(r){switch(r.kind){case 161:return OM(r);case 79:return zf(r.escapedText);case 8:case 10:return zf(r.text);default:return!1}}function OM(r){return ys(qf(r),296)}function zf(r){return(+r).toString()===r}function qf(r){var t=Zn(r.expression);if(!t.resolvedType){if((e.isTypeLiteralNode(r.parent.parent)||e.isClassLike(r.parent.parent)||e.isInterfaceDeclaration(r.parent.parent))&&e.isBinaryExpression(r.expression)&&r.expression.operatorToken.kind===101)return t.resolvedType=dr;if(t.resolvedType=ui(r.expression),e.isPropertyDeclaration(r.parent)&&!e.hasStaticModifier(r.parent)&&e.isClassExpression(r.parent.parent)){var i=e.getEnclosingBlockScopeContainer(r.parent.parent),o=f1(i);o&&(Zn(o).flags|=65536,Zn(r).flags|=524288,Zn(r.parent.parent).flags|=524288)}(t.resolvedType.flags&98304||!ys(t.resolvedType,402665900)&&!Qi(t.resolvedType,pt))&&Mr(r,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return t.resolvedType}function RM(r){var t,i=(t=r.declarations)===null||t===void 0?void 0:t[0];return zf(r.escapedName)||i&&e.isNamedDeclaration(i)&&kM(i.name)}function WA(r){var t,i=(t=r.declarations)===null||t===void 0?void 0:t[0];return e.isKnownSymbol(r)||i&&e.isNamedDeclaration(i)&&e.isComputedPropertyName(i.name)&&ys(qf(i.name),4096)}function S1(r,t,i,o){for(var s=[],c=t;c<i.length;c++){var L=i[c];(o===xt&&!WA(L)||o===wt&&RM(L)||o===na&&WA(L))&&s.push(An(i[c]))}var G=s.length?ma(s,2):Nr;return Eu(o,G,vg(r))}function jA(r){e.Debug.assert((r.flags&2097152)!==0,"Should only get Alias here.");var t=Ja(r);if(!t.immediateTarget){var i=ec(r);if(!i)return e.Debug.fail();t.immediateTarget=mo(i,!0)}return t.immediateTarget}function wM(r,t){var i=e.isAssignmentTarget(r);nF(r,i);for(var o=br?e.createSymbolTable():void 0,s=e.createSymbolTable(),c=[],L=Qn,G=Up(r),ce=G&&G.pattern&&(G.pattern.kind===200||G.pattern.kind===204),we=vg(r),Ue=we?8:0,Je=e.isInJSFile(r)&&!e.isInJsonFile(r),ar=e.getJSDocEnumTag(r),_r=!G&&Je&&!ar,Gr=gr,Zr=!1,Et=!1,Tt=!1,At=!1,Vt=0,Nn=r.properties;Vt<Nn.length;Vt++){var on=Nn[Vt];on.name&&e.isComputedPropertyName(on.name)&&qf(on.name)}for(var ca=0,la=0,di=r.properties;la<di.length;la++){var Aa=di[la],Li=wn(Aa),Bi=Aa.name&&Aa.name.kind===161?qf(Aa.name):void 0;if(Aa.kind===294||Aa.kind===295||e.isObjectLiteralMethod(Aa)){var Ai=Aa.kind===294?ax(Aa,t):Aa.kind===295?hg(!i&&Aa.objectAssignmentInitializer?Aa.objectAssignmentInitializer:Aa.name,t):ix(Aa,t);if(Je){var xo=Pf(Aa);xo?(Rl(Ai,xo,Aa),Ai=xo):ar&&ar.typeExpression&&Rl(Ai,Da(ar.typeExpression),Aa)}Gr|=e.getObjectFlags(Ai)&917504;var Wt=Bi&&gu(Bi)?Bi:void 0,Ft=Wt?fo(4|Li.flags,vu(Wt),Ue|4096):fo(4|Li.flags,Li.escapedName,Ue);if(Wt&&(Ft.nameType=Wt),i){var _n=Aa.kind===294&&cg(Aa.initializer)||Aa.kind===295&&Aa.objectAssignmentInitializer;_n&&(Ft.flags|=16777216)}else if(ce&&!(e.getObjectFlags(G)&512)){var Ca=Ii(G,Li.escapedName);Ca?Ft.flags|=Ca.flags&16777216:!Xe.suppressExcessPropertyErrors&&!oc(G,xt)&&Mr(Aa.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Wa(Li),gn(G))}Ft.declarations=Li.declarations,Ft.parent=Li.parent,Li.valueDeclaration&&(Ft.valueDeclaration=Li.valueDeclaration),Ft.type=Ai,Ft.target=Li,Li=Ft,o==null||o.set(Ft.escapedName,Ft)}else if(Aa.kind===296){De<2&&nl(Aa,2),c.length>0&&(L=wp(L,Pi(),r.symbol,Gr,we),c=[],s=e.createSymbolTable(),Et=!1,Tt=!1,At=!1);var Ai=Eo(ui(Aa.expression));if(ug(Ai)){var Yn=v0(Ai,we);if(o&&JA(Yn,o,Aa),ca=c.length,Ua(L))continue;L=wp(L,Yn,r.symbol,Gr,we)}else Mr(Aa,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),L=dr;continue}else e.Debug.assert(Aa.kind===171||Aa.kind===172),Sv(Aa);Bi&&!(Bi.flags&8576)?Qi(Bi,pt)&&(Qi(Bi,wt)?Tt=!0:Qi(Bi,na)?At=!0:Et=!0,i&&(Zr=!0)):s.set(Li.escapedName,Li),c.push(Li)}if(ce&&r.parent.kind!==296)for(var Ba=0,Ti=Yi(G);Ba<Ti.length;Ba++){var Ft=Ti[Ba];!s.get(Ft.escapedName)&&!Ii(L,Ft.escapedName)&&(Ft.flags&16777216||Mr(Ft.valueDeclaration||Ft.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),s.set(Ft.escapedName,Ft),c.push(Ft))}if(Ua(L))return dr;if(L!==Qn)return c.length>0&&(L=wp(L,Pi(),r.symbol,Gr,we),c=[],s=e.createSymbolTable(),Et=!1,Tt=!1),ds(L,function(jn){return jn===Qn?Pi():jn});return Pi();function Pi(){var jn=[];Et&&jn.push(S1(r,ca,c,xt)),Tt&&jn.push(S1(r,ca,c,wt)),At&&jn.push(S1(r,ca,c,na));var Fi=ts(r.symbol,s,e.emptyArray,e.emptyArray,jn);return Fi.objectFlags|=Gr|128|262144,_r&&(Fi.objectFlags|=8192),Zr&&(Fi.objectFlags|=512),i&&(Fi.pattern=r),Fi}}function ug(r){if(r.flags&465829888){var t=l(r);if(t!==void 0)return ug(t)}return!!(r.flags&126615553||lc(r)&117632&&ug(HL(r))||r.flags&3145728&&e.every(r.types,ug))}function MM(r){C1(r)}function PM(r,t){return Sv(r),Sh(r)||Ze}function FM(r){C1(r.openingElement),fg(r.closingElement.tagName)?L1(r.closingElement):ui(r.closingElement.tagName),ub(r)}function GM(r,t){return Sv(r),Sh(r)||Ze}function BM(r){C1(r.openingFragment);var t=e.getSourceFileOfNode(r);return e.getJSXTransformEnabled(Xe)&&(Xe.jsxFactory||t.pragmas.has("jsx"))&&!Xe.jsxFragmentFactory&&!t.pragmas.has("jsxfrag")&&Mr(r,Xe.jsxFactory?e.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:e.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),ub(r),Sh(r)||Ze}function D1(r){return e.stringContains(r,"-")}function fg(r){return r.kind===79&&e.isIntrinsicJsxName(r.escapedText)}function HA(r,t){return r.initializer?hg(r.initializer,t):sa}function UM(r,t){for(var i=r.attributes,o=br?e.createSymbolTable():void 0,s=e.createSymbolTable(),c=Ra,L=!1,G,ce=!1,we=2048,Ue=fb(Em(r)),Je=0,ar=i.properties;Je<ar.length;Je++){var _r=ar[Je],Gr=_r.symbol;if(e.isJsxAttribute(_r)){var Zr=HA(_r,t);we|=e.getObjectFlags(Zr)&917504;var Et=fo(4|Gr.flags,Gr.escapedName);Et.declarations=Gr.declarations,Et.parent=Gr.parent,Gr.valueDeclaration&&(Et.valueDeclaration=Gr.valueDeclaration),Et.type=Zr,Et.target=Gr,s.set(Et.escapedName,Et),o==null||o.set(Et.escapedName,Et),_r.name.escapedText===Ue&&(ce=!0)}else{e.Debug.assert(_r.kind===286),s.size>0&&(c=wp(c,la(),i.symbol,we,!1),s=e.createSymbolTable());var Zr=Eo(Ss(_r.expression,t));Na(Zr)&&(L=!0),ug(Zr)?(c=wp(c,Zr,i.symbol,we,!1),o&&JA(Zr,o,_r)):G=G?To([G,Zr]):Zr}}L||s.size>0&&(c=wp(c,la(),i.symbol,we,!1));var Tt=r.parent.kind===277?r.parent:void 0;if(Tt&&Tt.openingElement===r&&Tt.children.length>0){var At=ub(Tt,t);if(!L&&Ue&&Ue!==""){ce&&Mr(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(Ue));var Vt=Up(r.attributes),Nn=Vt&&b_(Vt,Ue),on=fo(4,Ue);on.type=At.length===1?At[0]:Nn&&hm(Nn,ig)?Tu(At):zs(ma(At)),on.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(Ue),void 0,void 0),e.setParent(on.valueDeclaration,i),on.valueDeclaration.symbol=on;var ca=e.createSymbolTable();ca.set(Ue,on),c=wp(c,ts(i.symbol,ca,e.emptyArray,e.emptyArray,e.emptyArray),i.symbol,we,!1)}}if(L)return Ze;if(G&&c!==Ra)return To([G,c]);return G||(c===Ra?la():c);function la(){we|=gr;var di=ts(i.symbol,s,e.emptyArray,e.emptyArray,e.emptyArray);return di.objectFlags|=we|128|262144,di}}function ub(r,t){for(var i=[],o=0,s=r.children;o<s.length;o++){var c=s[o];if(c.kind===11)c.containsOnlyTriviaWhiteSpaces||i.push(xt);else{if(c.kind===287&&!c.expression)continue;i.push(hg(c,t))}}return i}function JA(r,t,i){for(var o=0,s=Yi(r);o<s.length;o++){var c=s[o];if(!(c.flags&16777216)){var L=t.get(c.escapedName);if(L){var G=Mr(L.valueDeclaration,e.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,e.unescapeLeadingUnderscores(L.escapedName));e.addRelatedInfo(G,e.createDiagnosticForNode(i,e.Diagnostics.This_spread_always_overwrites_this_property))}}}}function VM(r,t){return UM(r.parent,t)}function Vp(r,t){var i=Em(t),o=i&&Js(i),s=o&&ks(o,r,788968);return s?po(s):dr}function L1(r){var t=Zn(r);if(!t.resolvedSymbol){var i=Vp(P.IntrinsicElements,r);if(Ua(i))return Ke&&Mr(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(P.IntrinsicElements)),t.resolvedSymbol=We;if(!e.isIdentifier(r.tagName))return e.Debug.fail();var o=Ii(i,r.tagName.escapedText);if(o)return t.jsxFlags|=1,t.resolvedSymbol=o;var s=tu(i,xt);return s?(t.jsxFlags|=2,t.resolvedSymbol=i.symbol):(Mr(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(r.tagName),"JSX."+P.IntrinsicElements),t.resolvedSymbol=We)}return t.resolvedSymbol}function A1(r){var t=r&&e.getSourceFileOfNode(r),i=t&&Zn(t);if(!(i&&i.jsxImplicitImportContainer===!1)){if(i&&i.jsxImplicitImportContainer)return i.jsxImplicitImportContainer;var o=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(Xe,t),Xe);if(o){var s=e.getEmitModuleResolutionKind(Xe)===e.ModuleResolutionKind.Classic,c=s?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,L=Qu(r,o,c,r),G=L&&L!==We?Ga(wo(L)):void 0;return i&&(i.jsxImplicitImportContainer=G||!1),G}}}function Em(r){var t=r&&Zn(r);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||t.jsxNamespace!==!1){var i=A1(r);if(!i||i===We){var o=bo(r);i=Uo(r,o,1920,void 0,o,!1)}if(i){var s=wo(ks(Js(wo(i)),P.JSX,1920));if(s&&s!==We)return t&&(t.jsxNamespace=s),s}t&&(t.jsxNamespace=!1)}var c=wo(Kg(P.JSX,1920,void 0));if(c!==We)return c}function KA(r,t){var i=t&&ks(t.exports,r,788968),o=i&&po(i),s=o&&Yi(o);if(s){if(s.length===0)return"";if(s.length===1)return s[0].escapedName;s.length>1&&i.declarations&&Mr(i.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(r))}}function WM(r){return r&&ks(r.exports,P.LibraryManagedAttributes,788968)}function jM(r){return KA(P.ElementAttributesPropertyNameContainer,r)}function fb(r){return KA(P.ElementChildrenAttributeNameContainer,r)}function zA(r,t){if(r.flags&4)return[No];if(r.flags&128){var i=qA(r,t);if(i){var o=Eb(t,i);return[o]}else return Mr(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,"JSX."+P.IntrinsicElements),e.emptyArray}var s=wi(r),c=Ni(s,1);return c.length===0&&(c=Ni(s,0)),c.length===0&&s.flags&1048576&&(c=Vg(e.map(s.types,function(L){return zA(L,t)}))),c}function qA(r,t){var i=Vp(P.IntrinsicElements,t);if(!Ua(i)){var o=r.value,s=Ii(i,e.escapeLeadingUnderscores(o));if(s)return An(s);var c=tu(i,xt);return c||void 0}return Ze}function HM(r,t,i){if(r===1){var o=QA(i);o&&au(t,o,Ta,i.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,L)}else if(r===0){var s=YA(i);s&&au(t,s,Ta,i.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,L)}else{var o=QA(i),s=YA(i);if(!o||!s)return;var c=ma([o,s]);au(t,c,Ta,i.tagName,e.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,L)}function L(){var G=e.getTextOfNode(i.tagName);return e.chainDiagnosticMessages(void 0,e.Diagnostics._0_cannot_be_used_as_a_JSX_component,G)}}function XA(r){e.Debug.assert(fg(r.tagName));var t=Zn(r);if(!t.resolvedJsxElementAttributesType){var i=L1(r);return t.jsxFlags&1?t.resolvedJsxElementAttributesType=An(i)||dr:t.jsxFlags&2?t.resolvedJsxElementAttributesType=tu(Vp(P.IntrinsicElements,r),xt)||dr:t.resolvedJsxElementAttributesType=dr}return t.resolvedJsxElementAttributesType}function YA(r){var t=Vp(P.ElementClass,r);if(!Ua(t))return t}function Sh(r){return Vp(P.Element,r)}function QA(r){var t=Sh(r);if(t)return ma([t,ut])}function JM(r){var t=Vp(P.IntrinsicElements,r);return t?Yi(t):e.emptyArray}function KM(r){(Xe.jsx||0)===0&&Mr(r,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),Sh(r)===void 0&&Ke&&Mr(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function C1(r){var t=e.isJsxOpeningLikeElement(r);if(t&&aF(r),KM(r),!A1(r)){var i=ua&&Xe.jsx===2?e.Diagnostics.Cannot_find_name_0:void 0,o=bo(r),s=t?r.tagName:r,c=void 0;if(e.isJsxOpeningFragment(r)&&o==="null"||(c=Uo(s,o,111551,i,o,!0)),c&&(c.isReferenced=67108863,c.flags&2097152&&!Ln(c)&&ii(c)),e.isJsxOpeningFragment(r)){var L=e.getSourceFileOfNode(r),G=Ns(L);G&&Uo(s,G,111551,i,G,!0)}}if(t){var ce=r,we=_g(ce);Sb(we,r),HM(SC(ce),_o(we),ce)}}function x1(r,t,i){if(r.flags&524288){if(hd(r,t)||ip(r,t)||Ip(t)&&oc(r,xt)||i&&D1(t))return!0}else if(r.flags&3145728&&Dh(r))for(var o=0,s=r.types;o<s.length;o++){var c=s[o];if(x1(c,t,i))return!0}return!1}function Dh(r){return!!(r.flags&524288&&!(e.getObjectFlags(r)&512)||r.flags&67108864||r.flags&1048576&&e.some(r.types,Dh)||r.flags&2097152&&e.every(r.types,Dh))}function zM(r,t){if(oF(r),r.expression){var i=ui(r.expression,t);return r.dotDotDotToken&&i!==Ze&&!el(i)&&Mr(r,e.Diagnostics.JSX_spread_child_must_be_an_array_type),i}else return dr}function cv(r){return r.valueDeclaration?e.getCombinedNodeFlags(r.valueDeclaration):0}function I1(r){if(r.flags&8192||e.getCheckFlags(r)&4)return!0;if(e.isInJSFile(r.valueDeclaration)){var t=r.valueDeclaration.parent;return t&&e.isBinaryExpression(t)&&e.getAssignmentDeclarationKind(t)===3}}function N1(r,t,i,o,s,c){c===void 0&&(c=!0);var L=c?r.kind===160?r.right:r.kind===199?r:r.kind===202&&r.propertyName?r.propertyName:r.name:void 0;return ZA(r,t,i,o,s,L)}function ZA(r,t,i,o,s,c){var L=e.getDeclarationModifierFlagsFromSymbol(s,i);if(t){if(De<2&&$A(s))return c&&Mr(c,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(L&128)return c&&Mr(c,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Wa(s),gn(U_(s))),!1}if(L&128&&$A(s)&&(e.isThisProperty(r)||e.isThisInitializedObjectBindingExpression(r)||e.isObjectBindingPattern(r.parent)&&e.isThisInitializedDeclaration(r.parent.parent))){var G=e.getClassLikeDeclarationOfSymbol(Ts(s));if(G&&r8(r))return c&&Mr(c,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Wa(s),e.getTextOfIdentifierOrLiteral(G.name)),!1}if(!(L&24))return!0;if(L&8){var G=e.getClassLikeDeclarationOfSymbol(Ts(s));return ST(r,G)?!0:(c&&Mr(c,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,Wa(s),gn(U_(s))),!1)}if(t)return!0;var ce=oI(r,function(Je){var ar=po(wn(Je));return CR(ar,s,i)?ar:void 0});if(!ce){var we=void 0;if(L&32||!(we=qM(r))||!we.type)return c&&Mr(c,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Wa(s),gn(U_(s)||o)),!1;var Ue=Da(we.type);ce=(Ue.flags&262144?Nl(Ue):Ue).target}return L&32?!0:(o.flags&262144&&(o=o.isThisType?Nl(o):l(o)),!o||!Cp(o,ce)?(c&&Mr(c,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Wa(s),gn(ce),gn(o)),!1):!0)}function qM(r){var t=e.getThisContainer(r,!1);return t&&e.isFunctionLike(t)?e.getThisParameter(t):void 0}function $A(r){return!!fh(r,function(t){return!(t.flags&8192)})}function dg(r){return iu(ui(r),r)}function db(r){return!!((br?lc(r):r.flags)&98304)}function k1(r){return db(r)?Td(r):r}function XM(r,t){Mr(r,t&32768?t&65536?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null)}function YM(r,t){Mr(r,t&32768?t&65536?e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null)}function eC(r,t,i){if(br&&r.flags&2)return Mr(t,e.Diagnostics.Object_is_of_type_unknown),dr;var o=(br?lc(r):r.flags)&98304;if(o){i(t,o);var s=Td(r);return s.flags&229376?dr:s}return r}function iu(r,t){return eC(r,t,XM)}function rC(r,t){var i=iu(r,t);return i.flags&16384&&Mr(t,e.Diagnostics.Object_is_possibly_undefined),i}function tC(r,t){return r.flags&32?QM(r,t):R1(r,r.expression,dg(r.expression),r.name,t)}function QM(r,t){var i=ui(r.expression),o=tv(i,r.expression);return Vy(R1(r,r.expression,iu(o,r.expression),r.name,t),r,o!==i)}function nC(r,t){var i=e.isPartOfTypeQuery(r)&&e.isThisIdentifier(r.left)?iu(ib(r.left),r.left):dg(r.left);return R1(r,r.left,i,r.right,t)}function aC(r){for(;r.parent.kind===211;)r=r.parent;return e.isCallOrNewExpression(r.parent)&&r.parent.expression===r}function pb(r,t){for(var i=e.getContainingClass(t);i;i=e.getContainingClass(i)){var o=i.symbol,s=e.getSymbolNameForPrivateIdentifier(o,r),c=o.members&&o.members.get(s)||o.exports&&o.exports.get(s);if(c)return c}}function ZM(r){return e.getContainingClass(r)?e.isExpressionNode(r)?_b(r)?!1:sn(r,e.Diagnostics.Cannot_find_name_0,e.idText(r)):sn(r,e.Diagnostics.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):sn(r,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies)}function $M(r){ZM(r);var t=_b(r);return t&&Ah(t,void 0,!1),Ze}function _b(r){if(e.isExpressionNode(r)){var t=Zn(r);return t.resolvedSymbol===void 0&&(t.resolvedSymbol=pb(r.escapedText,r)),t.resolvedSymbol}}function O1(r,t){return Ii(r,t.escapedName)}function eP(r,t,i){var o,s=Yi(r);s&&e.forEach(s,function(Je){var ar=Je.valueDeclaration;if(ar&&e.isNamedDeclaration(ar)&&e.isPrivateIdentifier(ar.name)&&ar.name.escapedText===t.escapedText)return o=Je,!0});var c=Xl(t);if(o){var L=e.Debug.checkDefined(o.valueDeclaration),G=e.Debug.checkDefined(e.getContainingClass(L));if(i!=null&&i.valueDeclaration){var ce=i.valueDeclaration,we=e.getContainingClass(ce);if(e.Debug.assert(!!we),e.findAncestor(we,function(Je){return G===Je})){var Ue=Mr(t,e.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,c,gn(r));return e.addRelatedInfo(Ue,e.createDiagnosticForNode(ce,e.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,c),e.createDiagnosticForNode(L,e.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,c)),!0}}return Mr(t,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,c,Xl(G.name||f)),!0}return!1}function iC(r,t){return(a_(t)||e.isThisProperty(r)&&xe(t))&&e.getThisContainer(r,!0)===Er(t)}function R1(r,t,i,o,s){var c=Zn(t).resolvedSymbol,L=e.getAssignmentTargetKind(r),G=wi(L!==0||aC(r)?wl(i):i),ce=Na(G)||G===St,we;if(e.isPrivateIdentifier(o)){De<99&&(L!==0&&nl(r,1048576),L!==1&&nl(r,524288));var Ue=pb(o.escapedText,o);if(L&&Ue&&Ue.valueDeclaration&&e.isMethodDeclaration(Ue.valueDeclaration)&&sn(o,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,e.idText(o)),Ue!=null&&Ue.valueDeclaration&&e.getEmitScriptTarget(Xe)===99&&!Ye){var Je=e.getContainingClass(Ue.valueDeclaration),ar=e.findAncestor(r,function(Nn){return Nn===Je?"quit":!!(e.isPropertyDeclaration(Nn.parent)&&e.hasStaticModifier(Nn.parent)&&Nn.parent.initializer===Nn&&Nn.parent.parent===Je)});if(ar){var _r=wn(ar.parent);e.Debug.assert(_r,"Initializer without declaration symbol");var Gr=Mr(r,e.Diagnostics.Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false,e.symbolName(Ue));e.addRelatedInfo(Gr,e.createDiagnosticForNode(ar.parent,e.Diagnostics.Initializer_for_property_0,e.symbolName(_r)))}}if(ce){if(Ue)return Ua(G)?dr:G;if(!e.getContainingClass(o))return sn(o,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ze}if(we=Ue?O1(i,Ue):void 0,!we&&eP(i,o,Ue))return dr;var Zr=we&&we.flags&65536&&!(we.flags&32768);Zr&&L!==1&&Mr(r,e.Diagnostics.Private_accessor_was_defined_without_a_getter)}else{if(ce)return e.isIdentifier(t)&&c&&ab(c,r),Ua(G)?dr:G;we=Ii(G,o.escapedText)}e.isIdentifier(t)&&c&&(Xe.isolatedModules||!(we&&Dv(we))||e.shouldPreserveConstEnums(Xe)&&CA(r))&&ab(c,r);var Et;if(we){we.declarations&&cv(we)&134217728&&u0(r,we)&&kc(o,we.declarations,o.escapedText),rP(we,r,o),Ah(we,r,dC(t,c)),Zn(r).resolvedSymbol=we;var Vt=e.isWriteAccess(r);if(N1(r,t.kind===106,Vt,G,we),ZC(r,we,L))return Mr(o,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(o)),dr;Et=iC(r,we)?Cr:Vt?Mv(we):An(we)}else{var Tt=!e.isPrivateIdentifier(o)&&(L===0||!P_(i)||oh(i))?ip(G,o.escapedText):void 0;if(!(Tt&&Tt.type)){var At=w1(r,i.symbol,!0);return!At&&Xg(i)?Ze:i.symbol===pr?(pr.exports.has(o.escapedText)&&pr.exports.get(o.escapedText).flags&418?Mr(o,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(o.escapedText),gn(i)):Ke&&Mr(o,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,gn(i)),Ze):(o.escapedText&&!bp(r)&&lC(o,oh(i)?G:i,At),dr)}Tt.isReadonly&&(e.isAssignmentTarget(r)||e.isDeleteTarget(r))&&Mr(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,gn(G)),Et=Xe.noUncheckedIndexedAccess&&!e.isAssignmentTarget(r)?ma([Tt.type,Nr]):Tt.type,Xe.noPropertyAccessFromIndexSignature&&e.isPropertyAccessExpression(r)&&Mr(o,e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,e.unescapeLeadingUnderscores(o.escapedText))}return oC(r,we,Et,o,s)}function w1(r,t,i){var o=e.getSourceFileOfNode(r);if(o&&Xe.checkJs===void 0&&o.checkJsDirective===void 0&&(o.scriptKind===1||o.scriptKind===2)){var s=e.forEach(t==null?void 0:t.declarations,e.getSourceFileOfNode);return!(o!==s&&s&&Oc(s))&&!(i&&t&&t.flags&32)&&!(r&&i&&e.isPropertyAccessExpression(r)&&r.expression.kind===108)}return!1}function oC(r,t,i,o,s){var c=e.getAssignmentTargetKind(r);if(c===1)return gm(i,!!(t&&t.flags&16777216));if(t&&!(t.flags&98311)&&!(t.flags&8192&&i.flags&1048576)&&!Ub(t.declarations))return i;if(i===Cr)return Xt(r,t);i=u1(i,r,s);var L=!1;if(br&&kr&&e.isAccessExpression(r)&&r.expression.kind===108){var G=t&&t.valueDeclaration;if(G&&Xx(G)&&!e.isStatic(G)){var ce=sv(r);ce.kind===170&&ce.parent===G.parent&&!(G.flags&8388608)&&(L=!0)}}else br&&t&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(t.valueDeclaration)&&sv(r)===sv(t.valueDeclaration)&&(L=!0);var we=y_(r,i,L?Jf(i):i);return L&&!(lc(i)&32768)&&lc(we)&32768?(Mr(o,e.Diagnostics.Property_0_is_used_before_being_assigned,Wa(t)),i):c?Du(we):we}function rP(r,t,i){var o=r.valueDeclaration;if(!(!o||e.getSourceFileOfNode(t).isDeclarationFile)){var s,c=e.idText(i);sC(t)&&!vk(o)&&!(e.isAccessExpression(t)&&e.isAccessExpression(t.expression))&&!Ou(o,i)&&(Xe.useDefineForClassFields||!tP(r))?s=Mr(i,e.Diagnostics.Property_0_is_used_before_its_initialization,c):o.kind===256&&t.parent.kind!==177&&!(o.flags&8388608)&&!Ou(o,i)&&(s=Mr(i,e.Diagnostics.Class_0_used_before_its_declaration,c)),s&&e.addRelatedInfo(s,e.createDiagnosticForNode(o,e.Diagnostics._0_is_declared_here,c))}}function sC(r){return!!e.findAncestor(r,function(t){switch(t.kind){case 166:return!0;case 294:case 168:case 171:case 172:case 296:case 161:case 232:case 287:case 284:case 285:case 286:case 279:case 227:case 290:return!1;case 213:case 237:return e.isBlock(t.parent)&&e.isClassStaticBlockDeclaration(t.parent.parent)?!0:"quit";default:return e.isExpressionNode(t)?!1:"quit"}})}function tP(r){if(!(r.parent.flags&32))return!1;for(var t=An(r.parent);;){if(t=t.symbol&&nP(t),!t)return!1;var i=Ii(t,r.escapedName);if(i&&i.valueDeclaration)return!0}}function nP(r){var t=xl(r);if(t.length!==0)return To(t)}function lC(r,t,i){var o,s;if(!e.isPrivateIdentifier(r)&&t.flags&1048576&&!(t.flags&131068))for(var c=0,L=t.types;c<L.length;c++){var G=L[c];if(!Ii(G,r.escapedText)&&!ip(G,r.escapedText)){o=e.chainDiagnosticMessages(o,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(r),gn(G));break}}if(cC(r.escapedText,t)){var ce=e.declarationNameToString(r),we=gn(t);o=e.chainDiagnosticMessages(o,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,ce,we,we+"."+ce)}else{var Ue=hv(t);if(Ue&&Ii(Ue,r.escapedText))o=e.chainDiagnosticMessages(o,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(r),gn(t)),s=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_forget_to_use_await);else{var Je=e.declarationNameToString(r),ar=gn(t),_r=oP(Je,t);if(_r!==void 0)o=e.chainDiagnosticMessages(o,e.Diagnostics.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,Je,ar,_r);else{var Gr=M1(r,t);if(Gr!==void 0){var Zr=e.symbolName(Gr),Et=i?e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2:e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2;o=e.chainDiagnosticMessages(o,Et,Je,ar,Zr),s=Gr.valueDeclaration&&e.createDiagnosticForNode(Gr.valueDeclaration,e.Diagnostics._0_is_declared_here,Zr)}else{var Tt=aP(t)?e.Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:e.Diagnostics.Property_0_does_not_exist_on_type_1;o=e.chainDiagnosticMessages(Jm(o,t),Tt,Je,ar)}}}}var At=e.createDiagnosticForNodeFromMessageChain(r,o);s&&e.addRelatedInfo(At,s),$l(!i||o.code!==e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,At)}function aP(r){return Xe.lib&&!Xe.lib.includes("dom")&&Cw(r,function(t){return t.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(e.unescapeLeadingUnderscores(t.symbol.escapedName))})&&cf(r)}function cC(r,t){var i=t.symbol&&Ii(An(t.symbol),r);return i!==void 0&&!!i.valueDeclaration&&e.isStatic(i.valueDeclaration)}function iP(r){for(var t=Xl(r),i=e.getScriptTargetFeatures(),o=e.getOwnKeys(i),s=0,c=o;s<c.length;s++){var L=c[s],G=e.getOwnKeys(i[L]);if(G!==void 0&&e.contains(G,t))return L}}function oP(r,t){var i=wi(t).symbol;if(i)for(var o=e.getScriptTargetFeatures(),s=e.getOwnKeys(o),c=0,L=s;c<L.length;c++){var G=L[c],ce=o[G],we=ce[e.symbolName(i)];if(we!==void 0&&e.contains(we,r))return G}}function uC(r,t){return Lh(r,Yi(t),106500)}function M1(r,t){var i=Yi(t);if(typeof r!="string"){var o=r.parent;e.isPropertyAccessExpression(o)&&(i=e.filter(i,function(s){return pC(o,t,s)})),r=e.idText(r)}return Lh(r,i,111551)}function fC(r,t){var i=e.isString(r)?r:e.idText(r),o=Yi(t),s=i==="for"?e.find(o,function(c){return e.symbolName(c)==="htmlFor"}):i==="class"?e.find(o,function(c){return e.symbolName(c)==="className"}):void 0;return s??Lh(i,o,111551)}function P1(r,t){var i=M1(r,t);return i&&e.symbolName(i)}function F1(r,t,i){e.Debug.assert(t!==void 0,"outername should always be defined");var o=$f(r,t,i,void 0,t,!1,!1,!0,function(s,c,L){e.Debug.assertEqual(t,c,"name should equal outerName");var G=ks(s,c,L);if(G)return G;var ce;if(s===Pr){var we=e.mapDefined(["string","number","boolean","object","bigint","symbol"],function(Ue){return s.has(Ue.charAt(0).toUpperCase()+Ue.slice(1))?fo(524288,Ue):void 0});ce=we.concat(e.arrayFrom(s.values()))}else ce=e.arrayFrom(s.values());return Lh(e.unescapeLeadingUnderscores(c),ce,L)});return o}function sP(r,t,i){var o=F1(r,t,i);return o&&e.symbolName(o)}function mb(r,t){return t.exports&&Lh(e.idText(r),cd(t),2623475)}function lP(r,t){var i=mb(r,t);return i&&e.symbolName(i)}function cP(r,t,i){function o(L){var G=hd(r,L);if(G){var ce=j_(An(G));return!!ce&&Cu(ce)>=1&&Qi(i,Uc(ce,0))}return!1}var s=e.isAssignmentTarget(t)?"set":"get";if(o(s)){var c=e.tryGetPropertyAccessOrIdentifierToString(t.expression);return c===void 0?c=s:c+="."+s,c}}function uP(r,t){var i=t.types.filter(function(o){return!!(o.flags&128)});return e.getSpellingSuggestion(r.value,i,function(o){return o.value})}function Lh(r,t,i){return e.getSpellingSuggestion(r,t,o);function o(s){var c=e.symbolName(s);if(!e.startsWith(c,'"')){if(s.flags&i)return c;if(s.flags&2097152){var L=$p(s);if(L&&L.flags&i)return c}}}}function Ah(r,t,i){var o=r&&r.flags&106500&&r.valueDeclaration;if(o){var s=e.hasEffectiveModifier(o,8),c=r.valueDeclaration&&e.isNamedDeclaration(r.valueDeclaration)&&e.isPrivateIdentifier(r.valueDeclaration.name);if(!(!s&&!c)&&!(t&&e.isWriteOnlyAccess(t)&&!(r.flags&65536))){if(i){var L=e.findAncestor(t,e.isFunctionLikeDeclaration);if(L&&L.symbol===r)return}(e.getCheckFlags(r)&1?Ja(r).target:r).isReferenced=67108863}}}function dC(r,t){return r.kind===108||!!t&&e.isEntityNameExpression(r)&&t===Lu(e.getFirstIdentifier(r))}function fP(r,t){switch(r.kind){case 205:return G1(r,r.expression.kind===106,t,wl(ui(r.expression)));case 160:return G1(r,!1,t,wl(ui(r.left)));case 199:return G1(r,!1,t,Da(r))}}function pC(r,t,i){return B1(r,r.kind===205&&r.expression.kind===106,!1,t,i)}function G1(r,t,i,o){if(Na(o))return!0;var s=Ii(o,i);return!!s&&B1(r,t,!1,o,s)}function B1(r,t,i,o,s){if(Na(o))return!0;if(s.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(s.valueDeclaration)){var c=e.getContainingClass(s.valueDeclaration);return!e.isOptionalChain(r)&&!!e.findAncestor(r,function(L){return L===c})}return ZA(r,t,i,o,s)}function dP(r){var t=r.initializer;if(t.kind===254){var i=t.declarations[0];if(i&&!e.isBindingPattern(i.name))return wn(i)}else if(t.kind===79)return Lu(t)}function pP(r){return Ps(r).length===1&&!!oc(r,wt)}function _P(r){var t=e.skipParentheses(r);if(t.kind===79){var i=Lu(t);if(i.flags&3)for(var o=r,s=r.parent;s;){if(s.kind===242&&o===s.statement&&dP(s)===i&&pP(tl(s.expression)))return!0;o=s,s=s.parent}}return!1}function mP(r,t){return r.flags&32?gP(r,t):_C(r,dg(r.expression),t)}function gP(r,t){var i=ui(r.expression),o=tv(i,r.expression);return Vy(_C(r,iu(o,r.expression),t),r,o!==i)}function _C(r,t,i){var o=e.getAssignmentTargetKind(r)!==0||aC(r)?wl(t):t,s=r.argumentExpression,c=ui(s);if(Ua(o)||o===St)return o;if(Z1(o)&&!e.isStringLiteralLike(s))return Mr(s,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),dr;var L=_P(s)?wt:c,G=e.isAssignmentTarget(r)?4|(P_(o)&&!oh(o)?2:0):32,ce=cp(o,L,G,r)||dr;return vx(oC(r,Zn(r).resolvedSymbol,ce,s,i),r)}function mC(r){return e.isCallOrNewExpression(r)||e.isTaggedTemplateExpression(r)||e.isJsxOpeningLikeElement(r)}function Tm(r){return mC(r)&&e.forEach(r.typeArguments,Wi),r.kind===209?ui(r.template):e.isJsxOpeningLikeElement(r)?ui(r.attributes):r.kind!==164&&e.forEach(r.arguments,function(t){ui(t)}),No}function Au(r){return Tm(r),lo}function vP(r,t,i){var o,s,c=0,L,G=-1,ce;e.Debug.assert(!t.length);for(var we=0,Ue=r;we<Ue.length;we++){var Je=Ue[we],ar=Je.declaration&&wn(Je.declaration),_r=Je.declaration&&Je.declaration.parent;!s||ar===s?o&&_r===o?L=L+1:(o=_r,L=c):(L=c=t.length,o=_r),s=ar,X(Je)?(G++,ce=G,c++):ce=L,t.splice(ce,0,i?sy(Je,i):Je)}}function gb(r){return!!r&&(r.kind===224||r.kind===231&&r.isSpread)}function vb(r){return e.findIndex(r,gb)}function gC(r){return!!(r.flags&16384)}function hP(r){return!!(r.flags&49155)}function hb(r,t,i,o){o===void 0&&(o=!1);var s,c=!1,L=Tl(i),G=Cu(i);if(r.kind===209)if(s=t.length,r.template.kind===222){var ce=e.last(r.template.templateSpans);c=e.nodeIsMissing(ce.literal)||!!ce.literal.isUnterminated}else{var we=r.template;e.Debug.assert(we.kind===14),c=!!we.isUnterminated}else if(r.kind===164)s=LC(r,i);else if(e.isJsxOpeningLikeElement(r)){if(c=r.attributes.end===r.end,c)return!0;s=G===0?t.length:1,L=t.length===0?L:1,G=Math.min(G,1)}else if(r.arguments){s=o?t.length+1:t.length,c=r.arguments.end===r.end;var Ue=vb(t);if(Ue>=0)return Ue>=Cu(i)&&(xu(i)||Ue<Tl(i))}else return e.Debug.assert(r.kind===208),Cu(i)===0;if(!xu(i)&&s>L)return!1;if(c||s>=G)return!0;for(var Je=s;Je<G;Je++){var ar=Uc(i,Je);if(rl(ar,e.isInJSFile(r)&&!br?hP:gC).flags&131072)return!1}return!0}function vC(r,t){var i=e.length(r.typeParameters),o=lf(r.typeParameters);return!e.some(t)||t.length>=o&&t.length<=i}function j_(r){return uv(r,0,!1)}function hC(r){return uv(r,0,!1)||uv(r,1,!1)}function uv(r,t,i){if(r.flags&524288){var o=Sc(r);if(i||o.properties.length===0&&o.indexInfos.length===0){if(t===0&&o.callSignatures.length===1&&o.constructSignatures.length===0)return o.callSignatures[0];if(t===1&&o.constructSignatures.length===1&&o.callSignatures.length===0)return o.constructSignatures[0]}}}function yC(r,t,i,o){var s=nv(r.typeParameters,r,0,o),c=dv(t),L=i&&(c&&c.flags&262144?i.nonFixingMapper:i.mapper),G=L?pm(t,L):t;return z0(G,r,function(ce,we){uf(s.inferences,ce,we)}),i||q0(t,r,function(ce,we){uf(s.inferences,ce,we,128)}),th(r,a1(s),e.isInJSFile(t.declaration))}function yP(r,t,i,o){var s=cb(t,r),c=Dm(r.attributes,s,o,i);return uf(o.inferences,c,s),a1(o)}function bC(r){if(!r)return Wn;var t=ui(r);return e.isOptionalChainRoot(r.parent)?Td(t):e.isOptionalChain(r.parent)?H0(t):t}function U1(r,t,i,o,s){if(e.isJsxOpeningLikeElement(r))return yP(r,t,o,s);if(r.kind!==164){var c=Ac(r,e.every(t.typeParameters,function(di){return!!Bn(di)})?8:0);if(c){var L=lv(r),G=Q0(qR(L,1)),ce=oi(c,G),we=j_(ce),Ue=we&&we.typeParameters?Ym(XE(we,we.typeParameters)):ce,Je=_o(t);uf(s.inferences,Ue,Je,128);var ar=nv(t.typeParameters,t,s.flags),_r=oi(c,L&&L.returnMapper);uf(ar.inferences,_r,Je),s.returnMapper=e.some(ar.inferences,H_)?Q0(XR(ar)):void 0}}var Gr=pv(t),Zr=Gr?Math.min(Tl(t)-1,i.length):i.length;if(Gr&&Gr.flags&262144){var Et=e.find(s.inferences,function(di){return di.typeParameter===Gr});Et&&(Et.impliedArity=e.findIndex(i,gb,Zr)<0?i.length-Zr:void 0)}var Tt=f_(t);if(Tt){var At=DC(r);uf(s.inferences,bC(At),Tt)}for(var Vt=0;Vt<Zr;Vt++){var Nn=i[Vt];if(Nn.kind!==226){var on=Uc(t,Vt),ca=Dm(Nn,on,s,o);uf(s.inferences,ca,on)}}if(Gr){var la=V1(i,Zr,i.length,Gr,s,o);uf(s.inferences,la,Gr)}return a1(s)}function EC(r){return r.flags&1048576?ds(r,EC):r.flags&1||Gy(l(r)||r)?r:ki(r)?Tu(vo(r),r.target.elementFlags,!1,r.target.labeledElementDeclarations):Tu([r],[8])}function V1(r,t,i,o,s,c){if(t>=i-1){var L=r[i-1];if(gb(L))return EC(L.kind===231?L.type:Dm(L.expression,o,s,c))}for(var G=[],ce=[],we=[],Ue=t;Ue<i;Ue++){var L=r[Ue];if(gb(L)){var Je=L.kind===231?L.type:ui(L.expression);_p(Je)?(G.push(Je),ce.push(8)):(G.push(Ld(33,Je,Nr,L.kind===224?L.expression:L)),ce.push(4))}else{var ar=Hl(o,Wf(Ue-t),256),_r=Dm(L,ar,s,c),Gr=Jo(ar,406978556);G.push(Gr?kl(_r):Pp(_r)),ce.push(1)}L.kind===231&&L.tupleNameSource&&we.push(L.tupleNameSource)}return Tu(G,ce,!1,e.length(we)===e.length(G)?we:void 0)}function TC(r,t,i,o){for(var s=e.isInJSFile(r.declaration),c=r.typeParameters,L=M_(e.map(t,Da),c,lf(c),s),G,ce=0;ce<t.length;ce++){e.Debug.assert(c[ce]!==void 0,"Should not call checkTypeArguments with too many type arguments");var we=Nl(c[ce]);if(we){var Ue=i&&o?function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,Je=o||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;G||(G=Ol(c,L));var ar=L[ce];if(!Rl(ar,Il(oi(we,G),ar),i?t[ce]:void 0,Je,Ue))return}}return L}function SC(r){if(fg(r.tagName))return 2;var t=wi(ui(r.tagName));return e.length(Ni(t,1))?0:e.length(Ni(t,0))?1:2}function bP(r,t,i,o,s,c,L){var G=cb(t,r),ce=Dm(r.attributes,G,void 0,o);return we()&&C0(ce,G,i,s?r.tagName:void 0,r.attributes,void 0,c,L);function we(){var Ue;if(A1(r))return!0;var Je=e.isJsxOpeningElement(r)||e.isJsxSelfClosingElement(r)&&!fg(r.tagName)?ui(r.tagName):void 0;if(!Je)return!0;var ar=Ni(Je,0);if(!e.length(ar))return!0;var _r=mI(r);if(!_r)return!0;var Gr=rs(_r,111551,!0,!1,r);if(!Gr)return!0;var Zr=An(Gr),Et=Ni(Zr,0);if(!e.length(Et))return!0;for(var Tt=!1,At=0,Vt=0,Nn=Et;Vt<Nn.length;Vt++){var on=Nn[Vt],ca=Uc(on,0),la=Ni(ca,0);if(e.length(la))for(var di=0,Aa=la;di<Aa.length;di++){var Li=Aa[di];if(Tt=!0,xu(Li))return!0;var Bi=Tl(Li);Bi>At&&(At=Bi)}}if(!Tt)return!0;for(var Ai=1/0,xo=0,Wt=ar;xo<Wt.length;xo++){var Ft=Wt[xo],_n=Cu(Ft);_n<Ai&&(Ai=_n)}if(Ai<=At)return!0;if(s){var Ca=e.createDiagnosticForNode(r.tagName,e.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,e.entityNameToString(r.tagName),Ai,e.entityNameToString(_r),At),Yn=(Ue=Vc(r.tagName))===null||Ue===void 0?void 0:Ue.valueDeclaration;Yn&&e.addRelatedInfo(Ca,e.createDiagnosticForNode(Yn,e.Diagnostics._0_is_declared_here,e.entityNameToString(r.tagName))),L&&L.skipLogging&&(L.errors||(L.errors=[])).push(Ca),L.skipLogging||ua.add(Ca)}return!1}}function Ch(r,t,i,o,s,c,L){var G={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(r))return bP(r,i,o,s,c,L,G)?void 0:(e.Debug.assert(!c||!!G.errors,"jsx should have errors when reporting errors"),G.errors||e.emptyArray);var ce=f_(i);if(ce&&ce!==Wn&&r.kind!==208){var we=DC(r),Ue=bC(we),Je=c?we||r:void 0,ar=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!au(Ue,ce,o,Je,ar,L,G))return e.Debug.assert(!c||!!G.errors,"this parameter should have errors when reporting errors"),G.errors||e.emptyArray}for(var _r=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,Gr=pv(i),Zr=Gr?Math.min(Tl(i)-1,t.length):t.length,Et=0;Et<Zr;Et++){var Tt=t[Et];if(Tt.kind!==226){var At=Uc(i,Et),Vt=Dm(Tt,At,void 0,s),Nn=s&4?sg(Vt):Vt;if(!C0(Nn,At,o,c?Tt:void 0,Tt,_r,L,G))return e.Debug.assert(!c||!!G.errors,"parameter should have errors when reporting errors"),la(Tt,Nn,At),G.errors||e.emptyArray}}if(Gr){var on=V1(t,Zr,t.length,Gr,void 0,s),ca=t.length-Zr,Je=c?ca===0?r:ca===1?t[Zr]:e.setTextRangePosEnd(Wp(r,on),t[Zr].pos,t[t.length-1].end):void 0;if(!au(on,Gr,o,Je,_r,void 0,G))return e.Debug.assert(!c||!!G.errors,"rest parameter should have errors when reporting errors"),la(Je,on,Gr),G.errors||e.emptyArray}return;function la(di,Aa,Li){if(di&&c&&G.errors&&G.errors.length){if(vv(Li))return;var Bi=vv(Aa);Bi&&Hf(Bi,Li,o)&&e.addRelatedInfo(G.errors[0],e.createDiagnosticForNode(di,e.Diagnostics.Did_you_forget_to_use_await))}}}function DC(r){var t=r.kind===207?r.expression:r.kind===209?r.tag:void 0;if(t){var i=e.skipOuterExpressions(t);if(e.isAccessExpression(i))return i.expression}}function Wp(r,t,i,o){var s=e.parseNodeFactory.createSyntheticExpression(t,i,o);return e.setTextRange(s,r),e.setParent(s,r),s}function W1(r){if(r.kind===209){var t=r.template,i=[Wp(t,Rk())];return t.kind===222&&e.forEach(t.templateSpans,function(ce){i.push(ce.expression)}),i}if(r.kind===164)return EP(r);if(e.isJsxOpeningLikeElement(r))return r.attributes.properties.length>0||e.isJsxOpeningElement(r)&&r.parent.children.length>0?[r.attributes]:e.emptyArray;var o=r.arguments||e.emptyArray,s=vb(o);if(s>=0){for(var c=o.slice(0,s),L=function(ce){var we=o[ce],Ue=we.kind===224&&(oo?ui(we.expression):Ss(we.expression));Ue&&ki(Ue)?e.forEach(vo(Ue),function(Je,ar){var _r,Gr=Ue.target.elementFlags[ar],Zr=Wp(we,Gr&4?zs(Je):Je,!!(Gr&12),(_r=Ue.target.labeledElementDeclarations)===null||_r===void 0?void 0:_r[ar]);c.push(Zr)}):c.push(we)},G=s;G<o.length;G++)L(G);return c}return o}function EP(r){var t=r.parent,i=r.expression;switch(t.kind){case 256:case 225:return[Wp(i,An(wn(t)))];case 163:var o=t.parent;return[Wp(i,t.parent.kind===170?An(wn(o)):dr),Wp(i,Ze),Wp(i,wt)];case 166:case 168:case 171:case 172:var s=t.kind!==166&&De!==0;return[Wp(i,c8(t)),Wp(i,u8(t)),Wp(i,s?FD(jp(t)):Ze)]}return e.Debug.fail()}function LC(r,t){switch(r.parent.kind){case 256:case 225:return 1;case 166:return 2;case 168:case 171:case 172:return De===0||t.parameters.length<=2?2:3;case 163:return 3;default:return e.Debug.fail()}}function AC(r,t){var i,o,s=e.getSourceFileOfNode(r);if(e.isPropertyAccessExpression(r.expression)){var c=e.getErrorSpanForNode(s,r.expression.name);i=c.start,o=t?c.length:r.end-i}else{var L=e.getErrorSpanForNode(s,r.expression);i=L.start,o=t?L.length:r.end-i}return{start:i,length:o,sourceFile:s}}function yb(r,t,i,o,s,c){if(e.isCallExpression(r)){var L=AC(r),G=L.sourceFile,ce=L.start,we=L.length;return e.createFileDiagnostic(G,ce,we,t,i,o,s,c)}else return e.createDiagnosticForNode(r,t,i,o,s,c)}function TP(r){if(!e.isCallExpression(r)||!e.isIdentifier(r.expression))return!1;var t=Uo(r.expression,r.expression.escapedText,111551,void 0,void 0,!1),i=t==null?void 0:t.valueDeclaration;if(!i||!e.isParameter(i)||!e.isFunctionExpressionOrArrowFunction(i.parent)||!e.isNewExpression(i.parent.parent)||!e.isIdentifier(i.parent.parent.expression))return!1;var o=e0(!1);if(!o)return!1;var s=Vc(i.parent.parent.expression,!0);return s===o}function CC(r,t,i){var o,s=vb(i);if(s>-1)return e.createDiagnosticForNode(i[s],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var c=Number.POSITIVE_INFINITY,L=Number.NEGATIVE_INFINITY,G=Number.NEGATIVE_INFINITY,ce=Number.POSITIVE_INFINITY,we,Ue=0,Je=t;Ue<Je.length;Ue++){var ar=Je[Ue],_r=Cu(ar),Gr=Tl(ar);_r<c&&(c=_r,we=ar),L=Math.max(L,Gr),_r<i.length&&_r>G&&(G=_r),i.length<Gr&&Gr<ce&&(ce=Gr)}var Zr=e.some(t,xu),Et=Zr?c:c<L?c+"-"+L:c,Tt=Zr?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:Et===1&&i.length===0&&TP(r)?e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:e.Diagnostics.Expected_0_arguments_but_got_1;if(c<i.length&&i.length<L)return yb(r,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,i.length,G,ce);if(i.length<c){var At=yb(r,Tt,Et,i.length),Vt=(o=we==null?void 0:we.declaration)===null||o===void 0?void 0:o.parameters[we.thisParameter?i.length+1:i.length];if(Vt){var Nn=e.createDiagnosticForNode(Vt,e.isBindingPattern(Vt.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(Vt)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,Vt.name?e.isBindingPattern(Vt.name)?void 0:e.idText(e.getFirstIdentifier(Vt.name)):i.length);return e.addRelatedInfo(At,Nn)}return At}else{var on=e.factory.createNodeArray(i.slice(L)),ca=e.first(on).pos,la=e.last(on).end;return la===ca&&la++,e.setTextRangePosEnd(on,ca,la),e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),on,Tt,Et,i.length)}}function SP(r,t,i){var o=i.length;if(t.length===1){var s=t[0],c=lf(s.typeParameters),L=e.length(s.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),i,e.Diagnostics.Expected_0_type_arguments_but_got_1,c<L?c+"-"+L:c,o)}for(var G=-1/0,ce=1/0,we=0,Ue=t;we<Ue.length;we++){var s=Ue[we],Je=lf(s.typeParameters),L=e.length(s.typeParameters);Je>o?ce=Math.min(ce,Je):L<o&&(G=Math.max(G,L))}return G!==-1/0&&ce!==1/0?e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),i,e.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,o,G,ce):e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),i,e.Diagnostics.Expected_0_type_arguments_but_got_1,G===-1/0?ce:G,o)}function pg(r,t,i,o,s,c){var L=r.kind===209,G=r.kind===164,ce=e.isJsxOpeningLikeElement(r),we=!i&&Se,Ue;G||(Ue=r.typeArguments,(L||ce||r.expression.kind!==106)&&e.forEach(Ue,Wi));var Je=i||[];if(vP(t,Je,s),!Je.length)return we&&ua.add(yb(r,e.Diagnostics.Call_target_does_not_contain_any_signatures)),Au(r);var ar=W1(r),_r=Je.length===1&&!Je[0].typeParameters,Gr=!G&&!_r&&e.some(ar,nu)?4:0,Zr,Et,Tt,At,Vt=!!(o&16)&&r.kind===207&&r.arguments.hasTrailingComma;if(Je.length>1&&(At=En(Je,ha,_r,Vt)),At||(At=En(Je,Ta,_r,Vt)),At)return At;if(we)if(Zr)if(Zr.length===1||Zr.length>3){var Nn=Zr[Zr.length-1],on;Zr.length>3&&(on=e.chainDiagnosticMessages(on,e.Diagnostics.The_last_overload_gave_the_following_error),on=e.chainDiagnosticMessages(on,e.Diagnostics.No_overload_matches_this_call));var ca=Ch(r,ar,Nn,Ta,0,!0,function(){return on});if(ca)for(var la=0,di=ca;la<di.length;la++){var Aa=di[la];Nn.declaration&&Zr.length>3&&e.addRelatedInfo(Aa,e.createDiagnosticForNode(Nn.declaration,e.Diagnostics.The_last_overload_is_declared_here)),Vn(Nn,Aa),ua.add(Aa)}else e.Debug.fail("No error for last overload signature")}else{for(var Li=[],Bi=0,Ai=Number.MAX_VALUE,xo=0,Wt=0,Ft=function(Fn){var Xr=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,Wt+1,Je.length,pu(Fn))},it=Ch(r,ar,Fn,Ta,0,!0,Xr);it?(it.length<=Ai&&(Ai=it.length,xo=Wt),Bi=Math.max(Bi,it.length),Li.push(it)):e.Debug.fail("No error for 3 or fewer overload signatures"),Wt++},_n=0,Ca=Zr;_n<Ca.length;_n++){var Yn=Ca[_n];Ft(Yn)}var Ba=Bi>1?Li[xo]:e.flatten(Li);e.Debug.assert(Ba.length>0,"No errors reported for 3 or fewer overload signatures");var Ti=e.chainDiagnosticMessages(e.map(Ba,function(Fn){return typeof Fn.messageText=="string"?Fn:Fn.messageText}),e.Diagnostics.No_overload_matches_this_call),Pi=Gt([],e.flatMap(Ba,function(Fn){return Fn.relatedInformation}),!0),jn=void 0;if(e.every(Ba,function(Fn){return Fn.start===Ba[0].start&&Fn.length===Ba[0].length&&Fn.file===Ba[0].file})){var Fi=Ba[0],Wr=Fi.file,Tr=Fi.start,hn=Fi.length;jn={file:Wr,start:Tr,length:hn,code:Ti.code,category:Ti.category,messageText:Ti,relatedInformation:Pi}}else jn=e.createDiagnosticForNodeFromMessageChain(r,Ti,Pi);Vn(Zr[0],jn),ua.add(jn)}else if(Et)ua.add(CC(r,[Et],ar));else if(Tt)TC(Tt,r.typeArguments,!0,c);else{var nn=e.filter(t,function(Fn){return vC(Fn,Ue)});nn.length===0?ua.add(SP(r,t,Ue)):G?c&&ua.add(yb(r,c)):ua.add(CC(r,nn,ar))}return DP(r,Je,ar,!!i);function Vn(Fn,Xr){var it,Pt,Bt=Zr,Yt=Et,mn=Tt,ya=((Pt=(it=Fn.declaration)===null||it===void 0?void 0:it.symbol)===null||Pt===void 0?void 0:Pt.declarations)||e.emptyArray,_a=ya.length>1,qa=_a?e.find(ya,function(ho){return e.isFunctionLikeDeclaration(ho)&&e.nodeIsPresent(ho.body)}):void 0;if(qa){var Vi=bu(qa),Qa=!Vi.typeParameters;En([Vi],Ta,Qa)&&e.addRelatedInfo(Xr,e.createDiagnosticForNode(qa,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}Zr=Bt,Et=Yt,Tt=mn}function En(Fn,Xr,it,Pt){if(Pt===void 0&&(Pt=!1),Zr=void 0,Et=void 0,Tt=void 0,it){var Bt=Fn[0];if(e.some(Ue)||!hb(r,ar,Bt,Pt))return;if(Ch(r,ar,Bt,Xr,0,!1,void 0)){Zr=[Bt];return}return Bt}for(var Yt=0;Yt<Fn.length;Yt++){var Bt=Fn[Yt];if(!(!vC(Bt,Ue)||!hb(r,ar,Bt,Pt))){var mn=void 0,ya=void 0;if(Bt.typeParameters){var _a=void 0;if(e.some(Ue)){if(_a=TC(Bt,Ue,!1),!_a){Tt=Bt;continue}}else ya=nv(Bt.typeParameters,Bt,e.isInJSFile(r)?2:0),_a=U1(r,Bt,ar,Gr|8,ya),Gr|=ya.flags&4?8:0;if(mn=th(Bt,_a,e.isInJSFile(Bt.declaration),ya&&ya.inferredTypeParameters),pv(Bt)&&!hb(r,ar,mn,Pt)){Et=mn;continue}}else mn=Bt;if(Ch(r,ar,mn,Xr,Gr,!1,void 0)){(Zr||(Zr=[])).push(mn);continue}if(Gr){if(Gr=0,ya){var _a=U1(r,Bt,ar,Gr,ya);if(mn=th(Bt,_a,e.isInJSFile(Bt.declaration),ya&&ya.inferredTypeParameters),pv(Bt)&&!hb(r,ar,mn,Pt)){Et=mn;continue}}if(Ch(r,ar,mn,Xr,Gr,!1,void 0)){(Zr||(Zr=[])).push(mn);continue}}return Fn[Yt]=mn,mn}}}}function DP(r,t,i,o){return e.Debug.assert(t.length>0),Sv(r),o||t.length===1||t.some(function(s){return!!s.typeParameters})?CP(r,t,i):LP(t)}function LP(r){var t=e.mapDefined(r,function(ar){return ar.thisParameter}),i;t.length&&(i=xC(t,t.map(fv)));for(var o=e.minAndMax(r,AP),s=o.min,c=o.max,L=[],G=function(ar){var _r=e.mapDefined(r,function(Gr){return ue(Gr)?ar<Gr.parameters.length-1?Gr.parameters[ar]:e.last(Gr.parameters):ar<Gr.parameters.length?Gr.parameters[ar]:void 0});e.Debug.assert(_r.length!==0),L.push(xC(_r,e.mapDefined(r,function(Gr){return E_(Gr,ar)})))},ce=0;ce<c;ce++)G(ce);var we=e.mapDefined(r,function(ar){return ue(ar)?e.last(ar.parameters):void 0}),Ue=0;if(we.length!==0){var Je=zs(ma(e.mapDefined(r,fD),2));L.push(IC(we,Je)),Ue|=1}return r.some(X)&&(Ue|=2),hu(r[0].declaration,void 0,i,L,To(r.map(_o)),void 0,s,Ue)}function AP(r){var t=r.parameters.length;return ue(r)?t-1:t}function xC(r,t){return IC(r,ma(t,2))}function IC(r,t){return V_(e.first(r),t)}function CP(r,t,i){var o=NP(t,Lr===void 0?i.length:Lr),s=t[o],c=s.typeParameters;if(!c)return s;var L=mC(r)?r.typeArguments:void 0,G=L?by(s,xP(L,c,e.isInJSFile(r))):IP(r,c,s,i);return t[o]=G,G}function xP(r,t,i){for(var o=r.map(jp);o.length>t.length;)o.pop();for(;o.length<t.length;)o.push(Nl(t[o.length])||n1(i));return o}function IP(r,t,i,o){var s=nv(t,i,e.isInJSFile(r)?2:0),c=U1(r,i,o,12,s);return by(i,c)}function NP(r,t){for(var i=-1,o=-1,s=0;s<r.length;s++){var c=r[s],L=Tl(c);if(xu(c)||L>=t)return s;L>o&&(o=L,i=s)}return i}function kP(r,t,i){if(r.expression.kind===106){var o=_1(r.expression);if(Na(o)){for(var s=0,c=r.arguments;s<c.length;s++){var L=c[s];ui(L)}return No}if(!Ua(o)){var G=e.getEffectiveBaseTypeNode(e.getContainingClass(r));if(G){var ce=Bm(o,G.typeArguments,G);return pg(r,ce,t,i,0)}}return Tm(r)}var we,Ue=ui(r.expression);if(e.isCallChain(r)){var Je=tv(Ue,r.expression);we=Je===Ue?0:e.isOutermostOptionalChain(r)?16:8,Ue=Je}else we=0;if(Ue=eC(Ue,r.expression,YM),Ue===St)return Ha;var ar=wi(Ue);if(Ua(ar))return Au(r);var _r=Ni(ar,0),Gr=Ni(ar,1).length;if(bb(Ue,ar,_r.length,Gr))return!Ua(Ue)&&r.typeArguments&&Mr(r,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Tm(r);if(!_r.length){if(Gr)Mr(r,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,gn(Ue));else{var Zr=void 0;if(r.arguments.length===1){var Et=e.getSourceFileOfNode(r).text;e.isLineBreak(Et.charCodeAt(e.skipTrivia(Et,r.expression.end,!0)-1))&&(Zr=e.createDiagnosticForNode(r.expression,e.Diagnostics.Are_you_missing_a_semicolon))}H1(r.expression,ar,0,Zr)}return Au(r)}return i&8&&!r.typeArguments&&_r.some(OP)?(sx(r,i),Lo):_r.some(function(Tt){return e.isInJSFile(Tt.declaration)&&!!e.getJSDocClassTag(Tt.declaration)})?(Mr(r,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,gn(Ue)),Au(r)):pg(r,_r,t,i,we)}function OP(r){return!!(r.typeParameters&&CT(_o(r)))}function bb(r,t,i,o){return Na(r)||Na(t)&&!!(r.flags&262144)||!i&&!o&&!(t.flags&1048576)&&!(Eo(t).flags&131072)&&Qi(r,Oe)}function RP(r,t,i){if(r.arguments&&De<1){var o=vb(r.arguments);o>=0&&Mr(r.arguments[o],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var s=dg(r.expression);if(s===St)return Ha;if(s=wi(s),Ua(s))return Au(r);if(Na(s))return r.typeArguments&&Mr(r,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Tm(r);var c=Ni(s,1);if(c.length){if(!wP(r,c[0]))return Au(r);if(c.some(function(we){return we.flags&4}))return Mr(r,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Au(r);var L=s.symbol&&e.getClassLikeDeclarationOfSymbol(s.symbol);return L&&e.hasSyntacticModifier(L,128)?(Mr(r,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Au(r)):pg(r,c,t,i,0)}var G=Ni(s,0);if(G.length){var ce=pg(r,G,t,i,0);return Ke||(ce.declaration&&!ou(ce.declaration)&&_o(ce)!==Wn&&Mr(r,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),f_(ce)===Wn&&Mr(r,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),ce}return H1(r.expression,s,1),Au(r)}function j1(r,t){var i=xl(t);if(!e.length(i))return!1;var o=i[0];if(o.flags&2097152){for(var s=o.types,c=dy(s),L=0,G=0,ce=o.types;G<ce.length;G++){var we=ce[G];if(!c[L]&&e.getObjectFlags(we)&3&&(we.symbol===r||j1(r,we)))return!0;L++}return!1}return o.symbol===r?!0:j1(r,o)}function wP(r,t){if(!t||!t.declaration)return!0;var i=t.declaration,o=e.getSelectedEffectiveModifierFlags(i,24);if(!o||i.kind!==170)return!0;var s=e.getClassLikeDeclarationOfSymbol(i.parent.symbol),c=po(i.parent.symbol);if(!ST(r,s)){var L=e.getContainingClass(r);if(L&&o&16){var G=jp(L);if(j1(i.parent.symbol,G))return!0}return o&8&&Mr(r,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,gn(c)),o&16&&Mr(r,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,gn(c)),!1}return!0}function NC(r,t,i){var o,s=i===0,c=J_(t),L=c&&Ni(c,i).length>0;if(t.flags&1048576){for(var G=t.types,ce=!1,we=0,Ue=G;we<Ue.length;we++){var Je=Ue[we],ar=Ni(Je,i);if(ar.length!==0){if(ce=!0,o)break}else if(o||(o=e.chainDiagnosticMessages(o,s?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,gn(Je)),o=e.chainDiagnosticMessages(o,s?e.Diagnostics.Not_all_constituents_of_type_0_are_callable:e.Diagnostics.Not_all_constituents_of_type_0_are_constructable,gn(t))),ce)break}ce||(o=e.chainDiagnosticMessages(void 0,s?e.Diagnostics.No_constituent_of_type_0_is_callable:e.Diagnostics.No_constituent_of_type_0_is_constructable,gn(t))),o||(o=e.chainDiagnosticMessages(o,s?e.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:e.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,gn(t)))}else o=e.chainDiagnosticMessages(o,s?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,gn(t));var _r=s?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable;if(e.isCallExpression(r.parent)&&r.parent.arguments.length===0){var Gr=Zn(r).resolvedSymbol;Gr&&Gr.flags&32768&&(_r=e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:e.chainDiagnosticMessages(o,_r),relatedMessage:L?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function H1(r,t,i,o){var s=NC(r,t,i),c=s.messageChain,L=s.relatedMessage,G=e.createDiagnosticForNodeFromMessageChain(r,c);if(L&&e.addRelatedInfo(G,e.createDiagnosticForNode(r,L)),e.isCallExpression(r.parent)){var ce=AC(r.parent,!0),we=ce.start,Ue=ce.length;G.start=we,G.length=Ue}ua.add(G),kC(t,i,o?e.addRelatedInfo(G,o):G)}function kC(r,t,i){if(r.symbol){var o=Ja(r.symbol).originatingImport;if(o&&!e.isImportCall(o)){var s=Ni(An(Ja(r.symbol).target),t);if(!s||!s.length)return;e.addRelatedInfo(i,e.createDiagnosticForNode(o,e.Diagnostics.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 MP(r,t,i){var o=ui(r.tag),s=wi(o);if(Ua(s))return Au(r);var c=Ni(s,0),L=Ni(s,1).length;if(bb(o,s,c.length,L))return Tm(r);if(!c.length){if(e.isArrayLiteralExpression(r.parent)){var G=e.createDiagnosticForNode(r.tag,e.Diagnostics.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 ua.add(G),Au(r)}return H1(r.tag,s,0),Au(r)}return pg(r,c,t,i,0)}function OC(r){switch(r.parent.kind){case 256:case 225:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 163:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 166:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 168:case 171:case 172:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}function PP(r,t,i){var o=ui(r.expression),s=wi(o);if(Ua(s))return Au(r);var c=Ni(s,0),L=Ni(s,1).length;if(bb(o,s,c.length,L))return Tm(r);if(GP(r,c)){var G=e.getTextOfNode(r.expression,!1);return Mr(r,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,G),Au(r)}var ce=OC(r);if(!c.length){var we=NC(r.expression,s,0),Ue=e.chainDiagnosticMessages(we.messageChain,ce),Je=e.createDiagnosticForNodeFromMessageChain(r.expression,Ue);return we.relatedMessage&&e.addRelatedInfo(Je,e.createDiagnosticForNode(r.expression,we.relatedMessage)),ua.add(Je),kC(s,0,Je),Au(r)}return pg(r,c,t,i,0,ce)}function Eb(r,t){var i=Em(r),o=i&&Js(i),s=o&&ks(o,P.Element,788968),c=s&&Sr.symbolToEntityName(s,788968,r),L=e.factory.createFunctionTypeNode(void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"props",void 0,Sr.typeToTypeNode(t,r))],c?e.factory.createTypeReferenceNode(c,void 0):e.factory.createKeywordTypeNode(130)),G=fo(1,"props");return G.type=t,hu(L,void 0,void 0,[G],s?po(s):dr,void 0,1,0)}function FP(r,t,i){if(fg(r.tagName)){var o=XA(r),s=Eb(r,o);return pp(Dm(r.attributes,cb(s,r),void 0,0),o,r.tagName,r.attributes),e.length(r.typeArguments)&&(e.forEach(r.typeArguments,Wi),ua.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),r.typeArguments,e.Diagnostics.Expected_0_type_arguments_but_got_1,0,e.length(r.typeArguments)))),s}var c=ui(r.tagName),L=wi(c);if(Ua(L))return Au(r);var G=zA(c,r);return bb(c,L,G.length,0)?Tm(r):G.length===0?(Mr(r.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(r.tagName)),Au(r)):pg(r,G,t,i,0)}function GP(r,t){return t.length&&e.every(t,function(i){return i.minArgumentCount===0&&!ue(i)&&i.parameters.length<LC(r,i)})}function BP(r,t,i){switch(r.kind){case 207:return kP(r,t,i);case 208:return RP(r,t,i);case 209:return MP(r,t,i);case 164:return PP(r,t,i);case 279:case 278:return FP(r,t,i)}throw e.Debug.assertNever(r,"Branch in 'resolveSignature' should be unreachable.")}function _g(r,t,i){var o=Zn(r),s=o.resolvedSignature;if(s&&s!==Lo&&!t)return s;o.resolvedSignature=Lo;var c=BP(r,t,i||0);return c!==Lo&&(o.resolvedSignature=Ia===oo?c:s),c}function ou(r){var t;if(!r||!e.isInJSFile(r))return!1;var i=e.isFunctionDeclaration(r)||e.isFunctionExpression(r)?r:e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionExpression(r.initializer)?r.initializer:void 0;if(i){if(e.getJSDocClassTag(r))return!0;var o=wn(i);return!!(!((t=o==null?void 0:o.members)===null||t===void 0)&&t.size)}return!1}function J1(r,t){var i,o;if(t){var s=Ja(t);if(!s.inferredClassSymbol||!s.inferredClassSymbol.has(y(r))){var c=e.isTransientSymbol(r)?r:Nd(r);return c.exports=c.exports||e.createSymbolTable(),c.members=c.members||e.createSymbolTable(),c.flags|=t.flags&32,!((i=t.exports)===null||i===void 0)&&i.size&&dl(c.exports,t.exports),!((o=t.members)===null||o===void 0)&&o.size&&dl(c.members,t.members),(s.inferredClassSymbol||(s.inferredClassSymbol=new e.Map)).set(y(c),c),c}return s.inferredClassSymbol.get(y(r))}}function UP(r){var t,i=r&&Tb(r,!0),o=(t=i==null?void 0:i.exports)===null||t===void 0?void 0:t.get("prototype"),s=(o==null?void 0:o.valueDeclaration)&&VP(o.valueDeclaration);return s?wn(s):void 0}function Tb(r,t){if(r.parent){var i,o;if(e.isVariableDeclaration(r.parent)&&r.parent.initializer===r){if(!e.isInJSFile(r)&&!(e.isVarConst(r.parent)&&e.isFunctionLikeDeclaration(r)))return;i=r.parent.name,o=r.parent}else if(e.isBinaryExpression(r.parent)){var s=r.parent,c=r.parent.operatorToken.kind;if(c===63&&(t||s.right===r))i=s.left,o=i;else if((c===56||c===60)&&(e.isVariableDeclaration(s.parent)&&s.parent.initializer===s?(i=s.parent.name,o=s.parent):e.isBinaryExpression(s.parent)&&s.parent.operatorToken.kind===63&&(t||s.parent.right===s)&&(i=s.parent.left,o=i),!i||!e.isBindableStaticNameExpression(i)||!e.isSameEntityName(i,s.left)))return}else t&&e.isFunctionDeclaration(r)&&(i=r.name,o=r);if(!(!o||!i||!t&&!e.getExpandoInitializer(r,e.isPrototypeAccess(i))))return wn(o)}}function VP(r){if(!r.parent)return!1;for(var t=r.parent;t&&t.kind===205;)t=t.parent;if(t&&e.isBinaryExpression(t)&&e.isPrototypeAccess(t.left)&&t.operatorToken.kind===63){var i=e.getInitializerOfBinaryExpression(t);return e.isObjectLiteralExpression(i)&&i}}function WP(r,t){var i;Hh(r,r.typeArguments)||vI(r.arguments);var o=_g(r,void 0,t);if(o===Lo)return Ut;if(Sb(o,r),r.expression.kind===106)return Wn;if(r.kind===208){var s=o.declaration;if(s&&s.kind!==170&&s.kind!==174&&s.kind!==179&&!e.isJSDocConstructSignature(s)&&!ou(s))return Ke&&Mr(r,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Ze}if(e.isInJSFile(r)&&FC(r))return cD(r.arguments[0]);var c=_o(o);if(c.flags&12288&&RC(r))return b0(e.walkUpParenthesizedExpressions(r.parent));if(r.kind===207&&!r.questionDotToken&&r.parent.kind===237&&c.flags&16384&&Dc(o)){if(!e.isDottedName(r.expression))Mr(r.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!rb(r)){var L=Mr(r.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);vh(r.expression,L)}}if(e.isInJSFile(r)){var G=Tb(r,!1);if(!((i=G==null?void 0:G.exports)===null||i===void 0)&&i.size){var ce=ts(G,G.exports,e.emptyArray,e.emptyArray,e.emptyArray);return ce.objectFlags|=8192,To([c,ce])}}return c}function Sb(r,t){if(r.declaration&&r.declaration.flags&134217728){var i=xh(t),o=e.tryGetPropertyAccessOrIdentifierToString(e.getInvokedExpression(t));vf(i,r.declaration,o,pu(r))}}function xh(r){switch(r=e.skipParentheses(r),r.kind){case 207:case 164:case 208:return xh(r.expression);case 209:return xh(r.tag);case 279:case 278:return xh(r.tagName);case 206:return r.argumentExpression;case 205:return r.name;case 177:var t=r;return e.isQualifiedName(t.typeName)?t.typeName.right:t;default:return r}}function RC(r){if(!e.isCallExpression(r))return!1;var t=r.expression;if(e.isPropertyAccessExpression(t)&&t.name.escapedText==="for"&&(t=t.expression),!e.isIdentifier(t)||t.escapedText!=="Symbol")return!1;var i=OD(!1);return i?i===Uo(t,"Symbol",111551,void 0,void 0,!1):!1}function jP(r){if(vI(r.arguments)||IF(r),r.arguments.length===0)return kh(r,Ze);for(var t=r.arguments[0],i=Ss(t),o=r.arguments.length>1?Ss(r.arguments[1]):void 0,s=2;s<r.arguments.length;++s)Ss(r.arguments[s]);if((i.flags&32768||i.flags&65536||!Qi(i,xt))&&Mr(t,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,gn(i)),o){var c=kD(!0);c!==Qn&&Rl(o,Uy(c,32768),r.arguments[1])}var L=ws(r,t);if(L){var G=Fu(L,t,!0,!1);if(G)return kh(r,MC(An(G),G,L,t)||PC(An(G),G,L,t))}return kh(r,Ze)}function wC(r,t,i){var o=e.createSymbolTable(),s=fo(2097152,"default");return s.parent=t,s.nameType=Lc("default"),s.target=wo(r),o.set("default",s),ts(i,o,e.emptyArray,e.emptyArray,e.emptyArray)}function MC(r,t,i,o){var s=td(o);if(s&&r&&!Ua(r)){var c=r;if(!c.defaultOnlyType){var L=wC(t,i);c.defaultOnlyType=L}return c.defaultOnlyType}}function PC(r,t,i,o){var s;if(Dr&&r&&!Ua(r)){var c=r;if(!c.syntheticType){var L=(s=i.declarations)===null||s===void 0?void 0:s.find(e.isSourceFile),G=Ru(L,i,!1,o);if(G){var ce=fo(2048,"__type"),we=wC(t,i,ce);ce.type=we,c.syntheticType=ug(r)?wp(r,we,ce,0,!1):we}else c.syntheticType=r}return c.syntheticType}return r}function FC(r){if(!e.isRequireCall(r,!0))return!1;if(!e.isIdentifier(r.expression))return e.Debug.fail();var t=Uo(r.expression,r.expression.escapedText,111551,void 0,void 0,!0);if(t===ze)return!0;if(t.flags&2097152)return!1;var i=t.flags&16?255:t.flags&3?253:0;if(i!==0){var o=e.getDeclarationOfKind(t,i);return!!o&&!!(o.flags&8388608)}return!1}function HP(r){Z8(r)||Hh(r,r.typeArguments),De<2&&nl(r,262144);var t=_g(r);return Sb(t,r),_o(t)}function JP(r){if(r.kind===210){var t=e.getSourceFileOfNode(r);t&&e.fileExtensionIsOneOf(t.fileName,[".cts",".mts"])&&sn(r,e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return BC(r,r.type,r.expression)}function GC(r){switch(r.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 203:case 204:case 222:return!0;case 211:return GC(r.expression);case 218:var t=r.operator,i=r.operand;return t===40&&(i.kind===8||i.kind===9)||t===39&&i.kind===8;case 205:case 206:var o=r.expression,s=jp(o).symbol;return s&&s.flags&2097152&&(s=ms(s)),!!(s&&s.flags&384&&Bo(s)===1)}return!1}function BC(r,t,i,o){var s=ui(i,o);if(e.isConstTypeReference(t))return GC(i)||Mr(i,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),kl(s);Wi(t),s=sg(Du(s));var c=Da(t);if(Se&&!Ua(c)){var L=wl(s);ng(c,L)||CL(s,c,r,e.Diagnostics.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)}return c}function KP(r){var t=ui(r.expression),i=tv(t,r.expression);return Vy(Td(i),r,i!==t)}function zP(r){return r.flags&32?KP(r):Td(ui(r.expression))}function qP(r){return gF(r),r.keywordToken===103?K1(r):r.keywordToken===100?XP(r):e.Debug.assertNever(r.keywordToken)}function UC(r){switch(r.keywordToken){case 100:return wk();case 103:var t=K1(r);return Ua(t)?dr:e6(t);default:e.Debug.assertNever(r.keywordToken)}}function K1(r){var t=e.getNewTargetContainer(r);if(t)if(t.kind===170){var i=wn(t.parent);return An(i)}else{var i=wn(t);return An(i)}else return Mr(r,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),dr}function XP(r){Ae===e.ModuleKind.Node12||Ae===e.ModuleKind.NodeNext?e.getSourceFileOfNode(r).impliedNodeFormat!==e.ModuleKind.ESNext&&Mr(r,e.Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):Ae<e.ModuleKind.ES2020&&Ae!==e.ModuleKind.System&&Mr(r,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node12_or_nodenext);var t=e.getSourceFileOfNode(r);return e.Debug.assert(!!(t.flags&2097152),"Containing file is missing import meta node flag."),r.name.escapedText==="meta"?ND():dr}function fv(r){var t=An(r);if(br){var i=r.valueDeclaration;if(i&&e.hasInitializer(i))return Jf(t)}return t}function Db(r){return e.Debug.assert(e.isIdentifier(r.name)),r.name.escapedText}function mg(r,t,i){var o=r.parameters.length-(ue(r)?1:0);if(t<o)return r.parameters[t].escapedName;var s=r.parameters[o]||We,c=i||An(s);if(ki(c)){var L=c.target.labeledElementDeclarations,G=t-o;return L&&Db(L[G])||s.escapedName+"_"+G}return s.escapedName}function YP(r,t){var i=r.parameters.length-(ue(r)?1:0);if(t<i){var o=r.parameters[t];return VC(o)?[o.escapedName,!1]:void 0}var s=r.parameters[i]||We;if(VC(s)){var c=An(s);if(ki(c)){var L=c.target.labeledElementDeclarations,G=t-i,ce=L==null?void 0:L[G],we=!!(ce!=null&&ce.dotDotDotToken);return ce?[Db(ce),we]:void 0}if(t===i)return[s.escapedName,!0]}}function VC(r){return r.valueDeclaration&&e.isParameter(r.valueDeclaration)&&e.isIdentifier(r.valueDeclaration.name)}function WC(r){return r.kind===196||e.isParameter(r)&&r.name&&e.isIdentifier(r.name)}function QP(r,t){var i=r.parameters.length-(ue(r)?1:0);if(t<i){var o=r.parameters[t].valueDeclaration;return o&&WC(o)?o:void 0}var s=r.parameters[i]||We,c=An(s);if(ki(c)){var L=c.target.labeledElementDeclarations,G=t-i;return L&&L[G]}return s.valueDeclaration&&WC(s.valueDeclaration)?s.valueDeclaration:void 0}function Uc(r,t){return E_(r,t)||Ze}function E_(r,t){var i=r.parameters.length-(ue(r)?1:0);if(t<i)return fv(r.parameters[t]);if(ue(r)){var o=An(r.parameters[i]),s=t-i;if(!ki(o)||o.target.hasRestElement||s<o.target.fixedLength)return Hl(o,Wf(s))}}function gg(r,t){var i=Tl(r),o=Cu(r),s=dv(r);if(s&&t>=i-1)return t===i-1?s:zs(Hl(s,wt));for(var c=[],L=[],G=[],ce=t;ce<i;ce++){!s||ce<i-1?(c.push(Uc(r,ce)),L.push(ce<o?1:2)):(c.push(s),L.push(8));var we=QP(r,ce);we&&G.push(we)}return Tu(c,L,!1,e.length(G)===e.length(c)?G:void 0)}function Tl(r){var t=r.parameters.length;if(ue(r)){var i=An(r.parameters[t-1]);if(ki(i))return t+i.target.fixedLength-(i.target.hasRestElement?0:1)}return t}function Cu(r,t){var i=t&1,o=t&2;if(o||r.resolvedMinArgumentCount===void 0){var s=void 0;if(ue(r)){var c=An(r.parameters[r.parameters.length-1]);if(ki(c)){var L=e.findIndex(c.target.elementFlags,function(Ue){return!(Ue&1)}),G=L<0?c.target.fixedLength:L;G>0&&(s=r.parameters.length-1+G)}}if(s===void 0){if(!i&&r.flags&32)return 0;s=r.minArgumentCount}if(o)return s;for(var ce=s-1;ce>=0;ce--){var we=Uc(r,ce);if(rl(we,gC).flags&131072)break;s=ce}r.resolvedMinArgumentCount=s}return r.resolvedMinArgumentCount}function xu(r){if(ue(r)){var t=An(r.parameters[r.parameters.length-1]);return!ki(t)||t.target.hasRestElement}return!1}function dv(r){if(ue(r)){var t=An(r.parameters[r.parameters.length-1]);if(!ki(t))return t;if(t.target.hasRestElement)return qg(t,t.target.fixedLength)}}function pv(r){var t=dv(r);return t&&!el(t)&&!Na(t)&&!(Eo(t).flags&131072)?t:void 0}function z1(r){return q1(r,en)}function q1(r,t){return r.parameters.length>0?Uc(r,0):t}function ZP(r,t,i){for(var o=r.parameters.length-(ue(r)?1:0),s=0;s<o;s++){var c=r.parameters[s].valueDeclaration;if(c.type){var L=e.getEffectiveTypeAnnotationNode(c);L&&uf(i.inferences,Da(L),Uc(t,s))}}var G=dv(t);if(G&&G.flags&262144){var ce=pm(t,i.nonFixingMapper);jC(r,ce);var we=Tl(t)-1;uf(i.inferences,gg(r,we),G)}}function jC(r,t){if(t.typeParameters)if(!r.typeParameters)r.typeParameters=t.typeParameters;else return;if(t.thisParameter){var i=r.thisParameter;(!i||i.valueDeclaration&&!i.valueDeclaration.type)&&(i||(r.thisParameter=V_(t.thisParameter,void 0)),Ih(r.thisParameter,An(t.thisParameter)))}for(var o=r.parameters.length-(ue(r)?1:0),s=0;s<o;s++){var i=r.parameters[s];if(!e.getEffectiveTypeAnnotationNode(i.valueDeclaration)){var c=E_(t,s);Ih(i,c)}}if(ue(r)){var i=e.last(r.parameters);if(e.isTransientSymbol(i)||!e.getEffectiveTypeAnnotationNode(i.valueDeclaration)){var c=gg(t,o);Ih(i,c)}}}function $P(r){r.thisParameter&&Ih(r.thisParameter);for(var t=0,i=r.parameters;t<i.length;t++){var o=i[t];Ih(o)}}function Ih(r,t){var i=Ja(r);if(!i.type){var o=r.valueDeclaration;i.type=t||Cl(o,!0),o.name.kind!==79&&(i.type===tr&&(i.type=xs(o.name)),HC(o.name))}}function HC(r){for(var t=0,i=r.elements;t<i.length;t++){var o=i[t];e.isOmittedExpression(o)||(o.name.kind===79?Ja(wn(o)).type=tf(o):HC(o.name))}}function Nh(r){var t=ah(!0);return t!==va?(r=Sd(bv(r))||tr,Uf(t,[r])):tr}function JC(r){var t=wD(!0);return t!==va?(r=Sd(bv(r))||tr,Uf(t,[r])):tr}function kh(r,t){var i=Nh(t);return i===tr?(Mr(r,e.isImportCall(r)?e.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),dr):(e0(!0)||Mr(r,e.isImportCall(r)?e.Diagnostics.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:e.Diagnostics.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),i)}function e6(r){var t=fo(0,"NewTargetExpression"),i=fo(4,"target",8);i.parent=t,i.type=r;var o=e.createSymbolTable([i]);return t.members=o,ts(t,o,e.emptyArray,e.emptyArray,e.emptyArray)}function Lb(r,t){if(!r.body)return dr;var i=e.getFunctionFlags(r),o=(i&2)!==0,s=(i&1)!==0,c,L,G,ce=Wn;if(r.body.kind!==234)c=Ss(r.body,t&&t&-9),o&&(c=bv(yv(c,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(s){var we=YC(r,t);we?we.length>0&&(c=ma(we,2)):ce=en;var Ue=r6(r,t),Je=Ue.yieldTypes,ar=Ue.nextTypes;L=e.some(Je)?ma(Je,2):void 0,G=e.some(ar)?To(ar):void 0}else{var _r=YC(r,t);if(!_r)return i&2?kh(r,en):en;if(_r.length===0)return i&2?kh(r,Wn):Wn;c=ma(_r,2)}if(c||L||G){if(L&&Jy(r,L,3),c&&Jy(r,c,1),G&&Jy(r,G,2),c&&Su(c)||L&&Su(L)||G&&Su(G)){var Gr=T1(r),Zr=Gr?Gr===bu(r)?s?void 0:c:sb(_o(Gr),r):void 0;s?(L=W0(L,Zr,0,o),c=W0(c,Zr,1,o),G=W0(G,Zr,2,o)):c=PR(c,Zr,o)}L&&(L=wl(L)),c&&(c=wl(c)),G&&(G=wl(G))}return s?KC(L||en,c||ce,G||MA(2,r)||tr,o):o?Nh(c||ce):c||ce}function KC(r,t,i,o){var s=o?Po:Fo,c=s.getGlobalGeneratorType(!1);if(r=s.resolveIterationType(r,void 0)||tr,t=s.resolveIterationType(t,void 0)||tr,i=s.resolveIterationType(i,void 0)||tr,c===va){var L=s.getGlobalIterableIteratorType(!1),G=L!==va?Mx(L,s):void 0,ce=G?G.returnType:Ze,we=G?G.nextType:Nr;return Qi(t,ce)&&Qi(we,i)?L!==va?zg(L,[r]):(s.getGlobalIterableIteratorType(!0),Qn):(s.getGlobalGeneratorType(!0),Qn)}return zg(c,[r,t,i])}function r6(r,t){var i=[],o=[],s=(e.getFunctionFlags(r)&2)!==0;return e.forEachYieldExpression(r.body,function(c){var L=c.expression?ui(c.expression,t):zr;e.pushIfUnique(i,zC(c,L,Ze,s));var G;if(c.asteriskToken){var ce=Uh(L,s?19:17,c.expression);G=ce&&ce.nextType}else G=Ac(c);G&&e.pushIfUnique(o,G)}),{yieldTypes:i,nextTypes:o}}function zC(r,t,i,o){var s=r.expression||r,c=r.asteriskToken?Ld(o?19:17,t,i,s):t;return o?J_(c,s,r.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):c}function X1(r,t,i,o){var s=0;if(o){for(var c=t;c<i.length;c++)s|=ie.get(i[c])||32768;for(var c=r;c<t;c++)s&=~(ie.get(i[c])||0);for(var c=0;c<r;c++)s|=ie.get(i[c])||32768}else{for(var c=r;c<t;c++)s|=z.get(i[c])||128;for(var c=0;c<r;c++)s&=~(z.get(i[c])||0)}return s}function qC(r){var t=Zn(r);return t.isExhaustive!==void 0?t.isExhaustive:t.isExhaustive=t6(r)}function t6(r){if(r.expression.kind===215){var t=tl(r.expression.expression),i=vA(r,!1),o=X1(0,0,i,!0),s=l(t)||t;return s.flags&3?(556800&o)===556800:!!(rl(s,function(G){return(mp(G)&o)===o}).flags&131072)}var c=tl(r.expression);if(!mm(c))return!1;var L=Qy(r);return!L.length||e.some(L,wR)?!1:Lw(ds(c,kl),L)}function XC(r){return r.endFlowNode&&hh(r.endFlowNode)}function YC(r,t){var i=e.getFunctionFlags(r),o=[],s=XC(r),c=!1;if(e.forEachReturnStatement(r.body,function(L){var G=L.expression;if(G){var ce=Ss(G,t&&t&-9);i&2&&(ce=bv(yv(ce,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),ce.flags&131072&&(c=!0),e.pushIfUnique(o,ce)}else s=!0}),!(o.length===0&&!s&&(c||n6(r))))return br&&o.length&&s&&!(ou(r)&&o.some(function(L){return L.symbol===r.symbol}))&&e.pushIfUnique(o,Nr),o}function n6(r){switch(r.kind){case 212:case 213:return!0;case 168:return r.parent.kind===204;default:return!1}}function Y1(r,t){if(Se){var i=e.getFunctionFlags(r),o=t&&Pb(t,i);if(!(o&&Jo(o,16385))&&!(r.kind===167||e.nodeIsMissing(r.body)||r.body.kind!==234||!XC(r))){var s=r.flags&512,c=e.getEffectiveReturnTypeNode(r)||r;if(o&&o.flags&131072)Mr(c,e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(o&&!s)Mr(c,e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(o&&br&&!Qi(Nr,o))Mr(c,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(Xe.noImplicitReturns){if(!o){if(!s)return;var L=_o(bu(r));if(Wx(r,L))return}Mr(c,e.Diagnostics.Not_all_code_paths_return_a_value)}}}}function QC(r,t){if(e.Debug.assert(r.kind!==168||e.isObjectLiteralMethod(r)),Sv(r),e.isFunctionExpression(r)&&bg(r,r.name),t&&t&4&&nu(r)){if(!e.getEffectiveReturnTypeNode(r)&&!e.hasContextSensitiveParameters(r)){var i=Th(r);if(i&&av(_o(i))){var o=Zn(r);if(o.contextFreeType)return o.contextFreeType;var s=Lb(r,t),c=hu(void 0,void 0,void 0,e.emptyArray,s,void 0,0,0),L=ts(r.symbol,Le,[c],e.emptyArray,e.emptyArray);return L.objectFlags|=524288,o.contextFreeType=L}}return yi}var G=zb(r);return!G&&r.kind===212&&kT(r),a6(r,t),An(wn(r))}function a6(r,t){var i=Zn(r);if(!(i.flags&1024)){var o=Th(r);if(!(i.flags&1024)){i.flags|=1024;var s=e.firstOrUndefined(Ni(An(wn(r)),0));if(!s)return;if(nu(r))if(o){var c=lv(r);t&&t&2&&ZP(s,o,c);var L=c?pm(o,c.mapper):o;jC(s,L)}else $P(s);if(o&&!lm(r)&&!s.resolvedReturnType){var G=Lb(r,t);s.resolvedReturnType||(s.resolvedReturnType=G)}mv(r)}}}function i6(r){e.Debug.assert(r.kind!==168||e.isObjectLiteralMethod(r));var t=e.getFunctionFlags(r),i=lm(r);if(Y1(r,i),r.body)if(e.getEffectiveReturnTypeNode(r)||_o(bu(r)),r.body.kind===234)Wi(r.body);else{var o=ui(r.body),s=i&&Pb(i,t);if(s)if((t&3)===2){var c=yv(o,!1,r.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);pp(c,s,r.body,r.body)}else pp(o,s,r.body,r.body)}}function Ab(r,t,i,o){if(o===void 0&&(o=!1),!Qi(t,Mt)){var s=o&&vv(t);return ku(r,!!s&&Qi(s,Mt),i),!1}return!0}function o6(r){if(!e.isCallExpression(r)||!e.isBindableObjectDefinePropertyCall(r))return!1;var t=Ss(r.arguments[2]),i=ia(t,"value");if(i){var o=Ii(t,"writable"),s=o&&An(o);if(!s||s===mt||s===rn)return!0;if(o&&o.valueDeclaration&&e.isPropertyAssignment(o.valueDeclaration)){var c=o.valueDeclaration.initializer,L=ui(c);if(L===mt||L===rn)return!0}return!1}var G=Ii(t,"set");return!G}function Iu(r){return!!(e.getCheckFlags(r)&8||r.flags&4&&e.getDeclarationModifierFlagsFromSymbol(r)&64||r.flags&3&&cv(r)&2||r.flags&98304&&!(r.flags&65536)||r.flags&8||e.some(r.declarations,o6))}function ZC(r,t,i){var o,s;if(i===0)return!1;if(Iu(t)){if(t.flags&4&&e.isAccessExpression(r)&&r.expression.kind===108){var c=e.getContainingFunction(r);if(!(c&&(c.kind===170||ou(c))))return!0;if(t.valueDeclaration){var L=e.isBinaryExpression(t.valueDeclaration),G=c.parent===t.valueDeclaration.parent,ce=c===t.valueDeclaration.parent,we=L&&((o=t.parent)===null||o===void 0?void 0:o.valueDeclaration)===c.parent,Ue=L&&((s=t.parent)===null||s===void 0?void 0:s.valueDeclaration)===c,Je=G||ce||we||Ue;return!Je}}return!0}if(e.isAccessExpression(r)){var ar=e.skipParentheses(r.expression);if(ar.kind===79){var _r=Zn(ar).resolvedSymbol;if(_r.flags&2097152){var Gr=ec(_r);return!!Gr&&Gr.kind===267}}}return!1}function _v(r,t,i){var o=e.skipOuterExpressions(r,7);return o.kind!==79&&!e.isAccessExpression(o)?(Mr(r,t),!1):o.flags&32?(Mr(r,i),!1):!0}function s6(r){ui(r.expression);var t=e.skipParentheses(r.expression);if(!e.isAccessExpression(t))return Mr(t,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Jn;e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name)&&Mr(t,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);var i=Zn(t),o=tc(i.resolvedSymbol);return o&&(Iu(o)&&Mr(t,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),l6(t,o)),Jn}function l6(r,t){var i=An(t);br&&!(i.flags&131075)&&!(de?t.flags&16777216:lc(i)&32768)&&Mr(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_optional)}function c6(r){return ui(r.expression),yr}function u6(r){return ui(r.expression),zr}function f6(r){if(Se){var t=e.getContainingFunctionOrClassStaticBlock(r);if(t&&e.isClassStaticBlockDeclaration(t))Mr(r,e.Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(r.flags&32768))if(e.isInTopLevelContext(r)){var i=e.getSourceFileOfNode(r);if(!S_(i)){var o=void 0;if(!e.isEffectiveExternalModule(i,Xe)){o||(o=e.getSpanOfTokenAtPosition(i,r.pos));var s=e.createFileDiagnostic(i,o.start,o.length,e.Diagnostics.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);ua.add(s)}if(Ae!==e.ModuleKind.ES2022&&Ae!==e.ModuleKind.ESNext&&Ae!==e.ModuleKind.System&&!(Ae===e.ModuleKind.NodeNext&&e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.ESNext)||De<4){o=e.getSpanOfTokenAtPosition(i,r.pos);var s=e.createFileDiagnostic(i,o.start,o.length,e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher);ua.add(s)}}}else{var i=e.getSourceFileOfNode(r);if(!S_(i)){var o=e.getSpanOfTokenAtPosition(i,r.pos),s=e.createFileDiagnostic(i,o.start,o.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);if(t&&t.kind!==170&&!(e.getFunctionFlags(t)&2)){var c=e.createDiagnosticForNode(t,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(s,c)}ua.add(s)}}g1(r)&&Mr(r,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}var L=ui(r.expression),G=yv(L,!0,r,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return G===L&&!Ua(G)&&!(L.flags&3)&&$l(!1,e.createDiagnosticForNode(r,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),G}function d6(r){var t=ui(r.operand);if(t===St)return St;switch(r.operand.kind){case 8:switch(r.operator){case 40:return fm(Wf(-r.operand.text));case 39:return fm(Wf(+r.operand.text))}break;case 9:if(r.operator===40)return fm(y0({negative:!0,base10Value:e.parsePseudoBigInt(r.operand.text)}))}switch(r.operator){case 39:case 40:case 54:return iu(t,r.operand),Jo(t,12288)&&Mr(r.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(r.operator)),r.operator===39?(Jo(t,2112)&&Mr(r.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(r.operator),gn(Du(t))),wt):Q1(t);case 53:Eg(r.operand);var i=mp(t)&12582912;return i===4194304?mt:i===8388608?sa:Jn;case 45:case 46:var o=Ab(r.operand,iu(t,r.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return o&&_v(r.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Q1(t)}return dr}function p6(r){var t=ui(r.operand);if(t===St)return St;var i=Ab(r.operand,iu(t,r.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return i&&_v(r.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Q1(t)}function Q1(r){return Jo(r,2112)?ys(r,3)||Jo(r,296)?Mt:Qt:wt}function Jo(r,t){if(r.flags&t)return!0;if(r.flags&3145728)for(var i=r.types,o=0,s=i;o<s.length;o++){var c=s[o];if(Jo(c,t))return!0}return!1}function ys(r,t,i){return r.flags&t?!0:i&&r.flags&114691?!1:!!(t&296)&&Qi(r,wt)||!!(t&2112)&&Qi(r,Qt)||!!(t&402653316)&&Qi(r,xt)||!!(t&528)&&Qi(r,Jn)||!!(t&16384)&&Qi(r,Wn)||!!(t&131072)&&Qi(r,en)||!!(t&65536)&&Qi(r,ut)||!!(t&32768)&&Qi(r,Nr)||!!(t&4096)&&Qi(r,na)||!!(t&67108864)&&Qi(r,dn)}function Sm(r,t,i){return r.flags&1048576?e.every(r.types,function(o){return Sm(o,t,i)}):ys(r,t,i)}function Z1(r){return!!(e.getObjectFlags(r)&16)&&!!r.symbol&&$1(r.symbol)}function $1(r){return(r.flags&128)!==0}function _6(r,t,i,o){return i===St||o===St?St:(!Na(i)&&Sm(i,131068)&&Mr(r,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Na(o)||LT(o)||Ed(o,Oe)||Mr(t,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Jn)}function m6(r,t,i,o){if(i===St||o===St)return St;if(e.isPrivateIdentifier(r)){if(De<99&&nl(r,2097152),!Zn(r).resolvedSymbol&&e.getContainingClass(r)){var s=w1(r,o.symbol,!0);lC(r,o,s)}}else i=iu(i,r),Sm(i,402665900)||ys(i,407109632)||Mr(r,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or_symbol);o=iu(o,t);var c=kp(o);return(!Sm(o,126091264)||c&&(ys(o,3145728)&&!Sm(c,126091264)||!Jo(c,126615552)))&&Mr(t,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_not_be_a_primitive),Jn}function g6(r,t,i){var o=r.properties;if(br&&o.length===0)return iu(t,r);for(var s=0;s<o.length;s++)$C(r,t,s,o,i);return t}function $C(r,t,i,o,s){s===void 0&&(s=!1);var c=r.properties,L=c[i];if(L.kind===294||L.kind===295){var G=L.name,ce=lp(G);if(gu(ce)){var we=vu(ce),Ue=Ii(t,we);Ue&&(Ah(Ue,L,s),N1(L,!1,!0,t,Ue))}var Je=Hl(t,ce,32,G),ar=Vl(L,Je);return T_(L.kind===295?L:L.initializer,ar)}else if(L.kind===296)if(i<c.length-1)Mr(L,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{De<99&&nl(L,4);var _r=[];if(o)for(var Gr=0,Zr=o;Gr<Zr.length;Gr++){var Et=Zr[Gr];e.isSpreadAssignment(Et)||_r.push(Et.name)}var ar=cl(t,_r,t.symbol);return K_(o,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),T_(L.expression,ar)}else Mr(L,e.Diagnostics.Property_assignment_expected)}function v6(r,t,i){var o=r.elements;De<2&&Xe.downlevelIteration&&nl(r,512);for(var s=Ld(193,t,Nr,r)||dr,c=Xe.noUncheckedIndexedAccess?void 0:s,L=0;L<o.length;L++){var G=s;r.elements[L].kind===224&&(G=c=c??(Ld(65,t,Nr,r)||dr)),ex(r,t,L,G,i)}return t}function ex(r,t,i,o,s){var c=r.elements,L=c[i];if(L.kind!==226){if(L.kind!==224){var G=Wf(i);if(_p(t)){var ce=32|(cg(L)?16:0),we=cp(t,G,ce,Wp(L,G))||dr,Ue=cg(L)?Fs(we,524288):we,Je=Vl(L,Ue);return T_(L,Je,s)}return T_(L,o,s)}if(i<c.length-1)Mr(L,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var ar=L.expression;if(ar.kind===220&&ar.operatorToken.kind===63)Mr(ar.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer);else{K_(r.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);var Je=Kf(t,ki)?ds(t,function(Gr){return qg(Gr,i)}):zs(o);return T_(ar,Je,s)}}}}function T_(r,t,i,o){var s;if(r.kind===295){var c=r;c.objectAssignmentInitializer&&(br&&!(lc(ui(c.objectAssignmentInitializer))&32768)&&(t=Fs(t,524288)),E6(c.name,c.equalsToken,c.objectAssignmentInitializer,i)),s=r.name}else s=r;return s.kind===220&&s.operatorToken.kind===63&&(Fe(s,i),s=s.left),s.kind===204?g6(s,t,o):s.kind===203?v6(s,t,i):h6(s,t,i)}function h6(r,t,i){var o=ui(r,i),s=r.parent.kind===296?e.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,c=r.parent.kind===296?e.Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return _v(r,s,c)&&pp(t,o,r,r),e.isPrivateIdentifierPropertyAccessExpression(r)&&nl(r.parent,1048576),t}function Oh(r){switch(r=e.skipParentheses(r),r.kind){case 79:case 10:case 13:case 209:case 222:case 14:case 8:case 9:case 110:case 95:case 104:case 152:case 212:case 225:case 213:case 203:case 204:case 215:case 229:case 278:case 277:return!0;case 221:return Oh(r.whenTrue)&&Oh(r.whenFalse);case 220:return e.isAssignmentOperator(r.operatorToken.kind)?!1:Oh(r.left)&&Oh(r.right);case 218:case 219:switch(r.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 216:case 210:case 228:default:return!1}}function eT(r,t){return(t.flags&98304)!==0||ng(r,t)}function y6(){var r=e.createBinaryExpressionTrampoline(t,i,o,s,c,L);return function(ar,_r){var Gr=r(ar,_r);return e.Debug.assertIsDefined(Gr),Gr};function t(ar,_r,Gr){if(_r?(_r.stackIndex++,_r.skip=!1,we(_r,void 0),Je(_r,void 0)):_r={checkMode:Gr,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},e.isInJSFile(ar)&&e.getAssignedExpandoInitializer(ar))return _r.skip=!0,Je(_r,ui(ar.right,Gr)),_r;b6(ar);var Zr=ar.operatorToken.kind;return Zr===63&&(ar.left.kind===204||ar.left.kind===203)&&(_r.skip=!0,Je(_r,T_(ar.left,ui(ar.right,Gr),Gr,ar.right.kind===108))),_r}function i(ar,_r,Gr){if(!_r.skip)return G(_r,ar)}function o(ar,_r,Gr){if(!_r.skip){var Zr=Ue(_r);e.Debug.assertIsDefined(Zr),we(_r,Zr),Je(_r,void 0);var Et=ar.kind;if(Et===55||Et===56||Et===60){if(Et===55){var Tt=e.walkUpParenthesizedExpressions(Gr.parent);dT(Gr.left,Zr,e.isIfStatement(Tt)?Tt.thenStatement:void 0)}Nx(Zr,Gr.left)}}}function s(ar,_r,Gr){if(!_r.skip)return G(_r,ar)}function c(ar,_r){var Gr;if(_r.skip)Gr=Ue(_r);else{var Zr=ce(_r);e.Debug.assertIsDefined(Zr);var Et=Ue(_r);e.Debug.assertIsDefined(Et),Gr=rx(ar.left,ar.operatorToken,ar.right,Zr,Et,ar)}return _r.skip=!1,we(_r,void 0),Je(_r,void 0),_r.stackIndex--,Gr}function L(ar,_r,Gr){return Je(ar,_r),ar}function G(ar,_r){if(e.isBinaryExpression(_r))return _r;Je(ar,ui(_r,ar.checkMode))}function ce(ar){return ar.typeStack[ar.stackIndex]}function we(ar,_r){ar.typeStack[ar.stackIndex]=_r}function Ue(ar){return ar.typeStack[ar.stackIndex+1]}function Je(ar,_r){ar.typeStack[ar.stackIndex+1]=_r}}function b6(r){var t=r.left,i=r.operatorToken,o=r.right;i.kind===60&&(e.isBinaryExpression(t)&&(t.operatorToken.kind===56||t.operatorToken.kind===55)&&sn(t,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(t.operatorToken.kind),e.tokenToString(i.kind)),e.isBinaryExpression(o)&&(o.operatorToken.kind===56||o.operatorToken.kind===55)&&sn(o,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(o.operatorToken.kind),e.tokenToString(i.kind)))}function E6(r,t,i,o,s){var c=t.kind;if(c===63&&(r.kind===204||r.kind===203))return T_(r,ui(i,o),o,i.kind===108);var L;c===55||c===56||c===60?L=Eg(r,o):L=ui(r,o);var G=ui(i,o);return rx(r,t,i,L,G,s)}function rx(r,t,i,o,s,c){var L=t.kind;switch(L){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(o===St||s===St)return St;o=iu(o,r),s=iu(s,i);var G=void 0;if(o.flags&528&&s.flags&528&&(G=Aa(t.kind))!==void 0)return Mr(c||t,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(t.kind),e.tokenToString(G)),wt;var ce=Ab(r,o,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),we=Ab(i,s,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Ue;if(ys(o,3)&&ys(s,3)||!(Jo(o,2112)||Jo(s,2112)))Ue=wt;else if(on(o,s)){switch(L){case 49:case 72:xo();break;case 42:case 67:De<3&&Mr(c,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}Ue=Qt}else xo(on),Ue=dr;return ce&&we&&Li(Ue),Ue;case 39:case 64:if(o===St||s===St)return St;!ys(o,402653316)&&!ys(s,402653316)&&(o=iu(o,r),s=iu(s,i));var Je=void 0;if(ys(o,296,!0)&&ys(s,296,!0)?Je=wt:ys(o,2112,!0)&&ys(s,2112,!0)?Je=Qt:ys(o,402653316,!0)||ys(s,402653316,!0)?Je=xt:(Na(o)||Na(s))&&(Je=Ua(o)||Ua(s)?dr:Ze),Je&&!di(L))return Je;if(!Je){var ar=402655727;return xo(function(Ft,_n){return ys(Ft,ar)&&ys(_n,ar)}),Ze}return L===64&&Li(Je),Je;case 29:case 31:case 32:case 33:return di(L)&&(o=Du(iu(o,r)),s=Du(iu(s,i)),Ai(function(Ft,_n){return ng(Ft,_n)||ng(_n,Ft)||Qi(Ft,Mt)&&Qi(_n,Mt)})),Jn;case 34:case 35:case 36:case 37:return Ai(function(Ft,_n){return eT(Ft,_n)||eT(_n,Ft)}),Jn;case 102:return _6(r,i,o,s);case 101:return m6(r,i,o,s);case 55:case 76:{var _r=mp(o)&4194304?ma([BR(br?o:Du(s)),s]):o;return L===76&&Li(s),_r}case 56:case 75:{var Gr=mp(o)&8388608?ma([HL(o),s],2):o;return L===75&&Li(s),Gr}case 60:case 77:{var Zr=mp(o)&262144?ma([Td(o),s],2):o;return L===77&&Li(s),Zr}case 63:var Et=e.isBinaryExpression(r.parent)?e.getAssignmentDeclarationKind(r.parent):0;return ca(Et,s),Bi(Et)?((!(s.flags&524288)||Et!==2&&Et!==6&&!cf(s)&&!o1(s)&&!(e.getObjectFlags(s)&1))&&Li(s),o):(Li(s),sg(s));case 27:if(!Xe.allowUnreachableCode&&Oh(r)&&!la(i)){var Tt=e.getSourceFileOfNode(r),At=Tt.text,Vt=e.skipTrivia(At,r.pos),Nn=Tt.parseDiagnostics.some(function(Ft){return Ft.code!==e.Diagnostics.JSX_expressions_must_have_one_parent_element.code?!1:e.textSpanContainsPosition(Ft,Vt)});Nn||Mr(r,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return s;default:return e.Debug.fail()}function on(Ft,_n){return ys(Ft,2112)&&ys(_n,2112)}function ca(Ft,_n){if(Ft===2)for(var Ca=0,Yn=sf(_n);Ca<Yn.length;Ca++){var Ba=Yn[Ca],Ti=An(Ba);if(Ti.symbol&&Ti.symbol.flags&32){var Pi=Ba.escapedName,jn=Uo(Ba.valueDeclaration,Pi,788968,void 0,Pi,!1);jn!=null&&jn.declarations&&jn.declarations.some(e.isJSDocTypedefTag)&&(Hc(jn,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(Pi),Ba),Hc(Ba,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(Pi),jn))}}}function la(Ft){return Ft.kind===79&&Ft.escapedText==="eval"}function di(Ft){var _n=Jo(o,12288)?r:Jo(s,12288)?i:void 0;return _n?(Mr(_n,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(Ft)),!1):!0}function Aa(Ft){switch(Ft){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}}function Li(Ft){if(Se&&e.isAssignmentOperator(L)&&_v(r,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)&&(!e.isIdentifier(r)||e.unescapeLeadingUnderscores(r.escapedText)!=="exports")){var _n=void 0;if(de&&e.isPropertyAccessExpression(r)&&Jo(Ft,32768)){var Ca=ia(tl(r.expression),r.name.escapedText);R0(Ft,Ca)&&(_n=e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}pp(Ft,o,r,i,_n)}}function Bi(Ft){var _n;switch(Ft){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var Ca=wn(r),Yn=e.getAssignedExpandoInitializer(i);return!!Yn&&e.isObjectLiteralExpression(Yn)&&!!(!((_n=Ca==null?void 0:Ca.exports)===null||_n===void 0)&&_n.size);default:return!1}}function Ai(Ft){return Ft(o,s)?!1:(xo(Ft),!0)}function xo(Ft){var _n,Ca=!1,Yn=c||t;if(Ft){var Ba=Sd(o),Ti=Sd(s);Ca=!(Ba===o&&Ti===s)&&!!(Ba&&Ti)&&Ft(Ba,Ti)}var Pi=o,jn=s;!Ca&&Ft&&(_n=T6(o,s,Ft),Pi=_n[0],jn=_n[1]);var Fi=Rf(Pi,jn),Wr=Fi[0],Tr=Fi[1];Wt(Yn,Ca,Wr,Tr)||ku(Yn,Ca,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(t.kind),Wr,Tr)}function Wt(Ft,_n,Ca,Yn){var Ba;switch(t.kind){case 36:case 34:Ba="false";break;case 37:case 35:Ba="true"}if(Ba)return ku(Ft,_n,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,Ba,Ca,Yn)}}function T6(r,t,i){var o=r,s=t,c=Du(r),L=Du(t);return i(c,L)||(o=c,s=L),[o,s]}function S6(r){Se&&(r.flags&8192||Gs(r,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),g1(r)&&Mr(r,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var t=e.getContainingFunction(r);if(!t)return Ze;var i=e.getFunctionFlags(t);if(!(i&1))return Ze;var o=(i&2)!==0;r.asteriskToken&&(o&&De<99&&nl(r,26624),!o&&De<2&&Xe.downlevelIteration&&nl(r,256));var s=lm(t),c=s&&Vx(s,o),L=c&&c.yieldType||Ze,G=c&&c.nextType||Ze,ce=o?J_(G)||Ze:G,we=r.expression?ui(r.expression):zr,Ue=zC(r,we,ce,o);if(s&&Ue&&pp(Ue,L,r.expression||r,r.expression),r.asteriskToken){var Je=o?19:17;return Ox(Je,1,we,r.expression)||Ze}else if(s)return Lm(2,s,o)||Ze;var ar=MA(2,t);if(!ar&&(ar=Ze,Se&&Ke&&!e.expressionResultIsUnused(r))){var _r=Ac(r);(!_r||Na(_r))&&Mr(r,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}return ar}function D6(r,t){var i=Eg(r.condition);dT(r.condition,i,r.whenTrue);var o=ui(r.whenTrue,t),s=ui(r.whenFalse,t);return ma([o,s],2)}function tx(r){var t=r.parent;return e.isParenthesizedExpression(t)&&tx(t)||e.isElementAccessExpression(t)&&t.argumentExpression===r}function L6(r){for(var t=[r.head.text],i=[],o=0,s=r.templateSpans;o<s.length;o++){var c=s[o],L=ui(c.expression);Jo(L,12288)&&Mr(c.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),t.push(c.literal.text),i.push(Qi(L,It)?L:xt)}return vg(r)||tx(r)||hm(Ac(r)||tr,A6)?rg(t,i):xt}function A6(r){return!!(r.flags&134217856||r.flags&58982400&&Jo(l(r)||tr,402653316))}function C6(r){return r.kind===285&&!e.isJsxSelfClosingElement(r.parent)?r.parent.parent:r}function Dm(r,t,i,o){var s=C6(r),c=s.contextualType,L=s.inferenceContext;try{s.contextualType=t,s.inferenceContext=i;var G=ui(r,o|1|(i?2:0)),ce=Jo(G,2944)&&Cb(G,sb(t,r))?kl(G):G;return ce}finally{s.contextualType=c,s.inferenceContext=L}}function Ss(r,t){var i=Zn(r);if(!i.resolvedType){if(t&&t!==0)return ui(r,t);var o=Ia,s=Co;Ia=oo,Co=void 0,i.resolvedType=ui(r,t),Co=s,Ia=o}return i.resolvedType}function nx(r){return r=e.skipParentheses(r,!0),r.kind===210||r.kind===228||e.isJSDocTypeAssertion(r)}function Rh(r,t){var i=e.getEffectiveInitializer(r),o=cx(i)||(t?Dm(i,t,void 0,0):Ss(i));return e.isParameter(r)&&r.name.kind===201&&ki(o)&&!o.target.hasRestElement&&op(o)<r.name.elements.length?x6(o,r.name):o}function x6(r,t){for(var i=t.elements,o=vo(r).slice(),s=r.target.elementFlags.slice(),c=op(r);c<i.length;c++){var L=i[c];(c<i.length-1||!(L.kind===202&&L.dotDotDotToken))&&(o.push(!e.isOmittedExpression(L)&&cg(L)?Ho(L,!1,!1):Ze),s.push(2),!e.isOmittedExpression(L)&&!cg(L)&&Fp(L,Ze))}return Tu(o,s,r.target.readonly)}function rT(r,t){var i=e.getCombinedNodeFlags(r)&2||e.isDeclarationReadonly(r)?t:Pp(t);if(e.isInJSFile(r)){if(GL(i))return Fp(r,Ze),Ze;if(U0(i))return Fp(r,Sn),Sn}return i}function Cb(r,t){if(t){if(t.flags&3145728){var i=t.types;return e.some(i,function(s){return Cb(r,s)})}if(t.flags&58982400){var o=l(t)||tr;return Jo(o,4)&&Jo(r,128)||Jo(o,8)&&Jo(r,256)||Jo(o,64)&&Jo(r,2048)||Jo(o,4096)&&Jo(r,8192)||Cb(r,o)}return!!(t.flags&406847616&&Jo(r,128)||t.flags&256&&Jo(r,256)||t.flags&2048&&Jo(r,2048)||t.flags&512&&Jo(r,512)||t.flags&8192&&Jo(r,8192))}return!1}function vg(r){var t=r.parent;return e.isAssertionExpression(t)&&e.isConstTypeReference(t.type)||e.isJSDocTypeAssertion(t)&&e.isConstTypeReference(e.getJSDocTypeAssertionType(t))||(e.isParenthesizedExpression(t)||e.isArrayLiteralExpression(t)||e.isSpreadElement(t))&&vg(t)||(e.isPropertyAssignment(t)||e.isShorthandPropertyAssignment(t)||e.isTemplateSpan(t))&&vg(t.parent)}function hg(r,t,i,o){var s=ui(r,t,o);return vg(r)?kl(s):nx(r)?s:V0(s,sb(arguments.length===2?Ac(r):i,r))}function ax(r,t){return r.name.kind===161&&qf(r.name),hg(r.initializer,t)}function ix(r,t){TI(r),r.name.kind===161&&qf(r.name);var i=QC(r,t);return ox(r,i,t)}function ox(r,t,i){if(i&&i&10){var o=uv(t,0,!0),s=uv(t,1,!0),c=o||s;if(c&&c.typeParameters){var L=Up(r,2);if(L){var G=uv(Td(L),o?0:1,!1);if(G&&!G.typeParameters){if(i&8)return sx(r,i),yi;var ce=lv(r),we=ce.signature&&_o(ce.signature),Ue=we&&hC(we);if(Ue&&!Ue.typeParameters&&!e.every(ce.inferences,H_)){var Je=k6(ce,c.typeParameters),ar=XE(c,Je),_r=e.map(ce.inferences,function(Gr){return Y0(Gr.typeParameter)});if(z0(ar,G,function(Gr,Zr){uf(_r,Gr,Zr,0,!0)}),e.some(_r,H_)&&(q0(ar,G,function(Gr,Zr){uf(_r,Gr,Zr)}),!I6(ce.inferences,_r)))return N6(ce.inferences,_r),ce.inferredTypeParameters=e.concatenate(ce.inferredTypeParameters,Je),Ym(ar)}return Ym(yC(c,G,ce))}}}}return t}function sx(r,t){if(t&2){var i=lv(r);i.flags|=4}}function H_(r){return!!(r.candidates||r.contraCandidates)}function I6(r,t){for(var i=0;i<r.length;i++)if(H_(r[i])&&H_(t[i]))return!0;return!1}function N6(r,t){for(var i=0;i<r.length;i++)!H_(r[i])&&H_(t[i])&&(r[i]=t[i])}function k6(r,t){for(var i=[],o,s,c=0,L=t;c<L.length;c++){var G=L[c],ce=G.symbol.escapedName;if(tT(r.inferredTypeParameters,ce)||tT(i,ce)){var we=O6(e.concatenate(r.inferredTypeParameters,i),ce),Ue=fo(262144,we),Je=nc(Ue);Je.target=G,o=e.append(o,G),s=e.append(s,Je),i.push(Je)}else i.push(G)}if(s)for(var ar=Ol(o,s),_r=0,Gr=s;_r<Gr.length;_r++){var G=Gr[_r];G.mapper=ar}return i}function tT(r,t){return e.some(r,function(i){return i.symbol.escapedName===t})}function O6(r,t){for(var i=t.length;i>1&&t.charCodeAt(i-1)>=48&&t.charCodeAt(i-1)<=57;)i--;for(var o=t.slice(0,i),s=1;;s++){var c=o+s;if(!tT(r,c))return c}}function lx(r){var t=j_(r);if(t&&!t.typeParameters)return _o(t)}function R6(r){var t=ui(r.expression),i=tv(t,r.expression),o=lx(t);return o&&Vy(o,r,i!==t)}function tl(r){var t=cx(r);if(t)return t;if(r.flags&67108864&&Co){var i=Co[N(r)];if(i)return i}var o=Us,s=ui(r);if(Us!==o){var c=Co||(Co=[]);c[N(r)]=s,e.setNodeFlags(r,r.flags|67108864)}return s}function cx(r){var t=e.skipParentheses(r,!0);if(e.isJSDocTypeAssertion(t)){var i=e.getJSDocTypeAssertionType(t);if(!e.isConstTypeReference(i))return Da(i)}if(t=e.skipParentheses(r),e.isCallExpression(t)&&t.expression.kind!==106&&!e.isRequireCall(t,!0)&&!RC(t)){var i=e.isCallChain(t)?R6(t):lx(dg(t.expression));if(i)return i}else{if(e.isAssertionExpression(t)&&!e.isConstTypeReference(t.type))return Da(t.type);if(r.kind===8||r.kind===10||r.kind===110||r.kind===95)return ui(r)}}function wh(r){var t=Zn(r);if(t.contextFreeType)return t.contextFreeType;var i=r.contextualType;r.contextualType=Ze;try{var o=t.contextFreeType=ui(r,4);return o}finally{r.contextualType=i}}function ui(r,t,i){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkExpression",{kind:r.kind,pos:r.pos,end:r.end});var o=_e;_e=r,he=0;var s=P6(r,t,i),c=ox(r,s,t);return Z1(c)&&w6(r,c),_e=o,e.tracing===null||e.tracing===void 0||e.tracing.pop(),c}function w6(r,t){var i=r.parent.kind===205&&r.parent.expression===r||r.parent.kind===206&&r.parent.expression===r||(r.kind===79||r.kind===160)&&Vb(r)||r.parent.kind===180&&r.parent.exprName===r||r.parent.kind===274;if(i||Mr(r,e.Diagnostics.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),Xe.isolatedModules){e.Debug.assert(!!(t.symbol.flags&128));var o=t.symbol.valueDeclaration;o.flags&8388608&&Mr(r,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}function M6(r,t){if(e.hasJSDocNodes(r)&&e.isJSDocTypeAssertion(r)){var i=e.getJSDocTypeAssertionType(r);return BC(i,i,r.expression,t)}return ui(r.expression,t)}function P6(r,t,i){var o=r.kind;if(R)switch(o){case 225:case 212:case 213:R.throwIfCancellationRequested()}switch(o){case 79:return Hw(r,t);case 80:return $M(r);case 108:return ib(r);case 106:return _1(r);case 104:return ht;case 14:case 10:return fm(Lc(r.text));case 8:return wT(r),fm(Wf(+r.text));case 9:return LF(r),fm(y0({negative:!1,base10Value:e.parsePseudoBigInt(r.text)}));case 110:return sa;case 95:return mt;case 222:return L6(r);case 13:return Dt;case 203:return UA(r,t,i);case 204:return wM(r,t);case 205:return tC(r,t);case 160:return nC(r,t);case 206:return mP(r,t);case 207:if(r.expression.kind===100)return jP(r);case 208:return WP(r,t);case 209:return HP(r);case 211:return M6(r,t);case 225:return u3(r);case 212:case 213:return QC(r,t);case 215:return c6(r);case 210:case 228:return JP(r);case 229:return zP(r);case 230:return qP(r);case 214:return s6(r);case 216:return u6(r);case 217:return f6(r);case 218:return d6(r);case 219:return p6(r);case 220:return Fe(r,t);case 221:return D6(r,t);case 224:return IM(r,t);case 226:return zr;case 223:return S6(r);case 231:return NM(r);case 287:return zM(r,t);case 277:return GM(r);case 278:return PM(r);case 281:return BM(r);case 285:return VM(r,t);case 279:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return dr}function ux(r){r.expression&&Gs(r.expression,e.Diagnostics.Type_expected),Wi(r.constraint),Wi(r.default);var t=vl(wn(r));l(t),ga(t)||Mr(r.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,gn(t));var i=Nl(t),o=Bn(t);i&&o&&Rl(o,Il(oi(i,B_(t,o)),o),r.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),Se&&Tg(r.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function fx(r){ff(r),wb(r);var t=e.getContainingFunction(r);e.hasSyntacticModifier(r,16476)&&(t.kind===170&&e.nodeIsPresent(t.body)||Mr(r,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),t.kind===170&&e.isIdentifier(r.name)&&r.name.escapedText==="constructor"&&Mr(r.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),r.questionToken&&e.isBindingPattern(r.name)&&t.body&&Mr(r,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),r.name&&e.isIdentifier(r.name)&&(r.name.escapedText==="this"||r.name.escapedText==="new")&&(t.parameters.indexOf(r)!==0&&Mr(r,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,r.name.escapedText),(t.kind===170||t.kind===174||t.kind===179)&&Mr(r,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),t.kind===213&&Mr(r,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),(t.kind===171||t.kind===172)&&Mr(r,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),r.dotDotDotToken&&!e.isBindingPattern(r.name)&&!Qi(Eo(An(r.symbol)),xa)&&Mr(r,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function F6(r){var t=G6(r);if(!t){Mr(r,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}var i=bu(t),o=Dc(i);if(o){Wi(r.type);var s=r.parameterName;if(o.kind===0||o.kind===2)Iy(s);else if(o.parameterIndex>=0){if(ue(i)&&o.parameterIndex===i.parameters.length-1)Mr(s,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else if(o.type){var c=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)};Rl(o.type,An(i.parameters[o.parameterIndex]),r.type,void 0,c)}}else if(s){for(var L=!1,G=0,ce=t.parameters;G<ce.length;G++){var we=ce[G].name;if(e.isBindingPattern(we)&&dx(we,s,o.parameterName)){L=!0;break}}L||Mr(r.parameterName,e.Diagnostics.Cannot_find_parameter_0,o.parameterName)}}}function G6(r){switch(r.parent.kind){case 213:case 173:case 255:case 212:case 178:case 168:case 167:var t=r.parent;if(r===t.type)return t}}function dx(r,t,i){for(var o=0,s=r.elements;o<s.length;o++){var c=s[o];if(!e.isOmittedExpression(c)){var L=c.name;if(L.kind===79&&L.escapedText===i)return Mr(t,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,i),!0;if((L.kind===201||L.kind===200)&&dx(L,t,i))return!0}}}function mv(r){r.kind===175?Y8(r):(r.kind===178||r.kind===255||r.kind===179||r.kind===173||r.kind===170||r.kind===174)&&zb(r);var t=e.getFunctionFlags(r);if(t&4||((t&3)===3&&De<99&&nl(r,6144),(t&3)===2&&De<4&&nl(r,64),t&3&&De<2&&nl(r,128)),Vh(e.getEffectiveTypeParameterDeclarations(r)),e.forEach(r.parameters,fx),r.type&&Wi(r.type),Se){A4(r);var i=e.getEffectiveReturnTypeNode(r);if(Ke&&!i)switch(r.kind){case 174:Mr(r,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 173:Mr(r,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(i){var o=e.getFunctionFlags(r);if((o&5)===1){var s=Da(i);if(s===Wn)Mr(i,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var c=Lm(0,s,(o&2)!==0)||Ze,L=Lm(1,s,(o&2)!==0)||c,G=Lm(2,s,(o&2)!==0)||tr,ce=KC(c,L,G,!!(o&2));Rl(ce,s,i)}}else(o&3)===2&&c4(r,i)}r.kind!==175&&r.kind!==315&&Dd(r)}}function B6(r){for(var t=new e.Map,i=new e.Map,o=new e.Map,s=0,c=r.members;s<c.length;s++){var L=c[s];if(L.kind===170)for(var G=0,ce=L.parameters;G<ce.length;G++){var we=ce[G];e.isParameterPropertyDeclaration(we,L)&&!e.isBindingPattern(we.name)&&Et(t,we.name,we.name.escapedText,3)}else{var Ue=e.isStatic(L),Je=L.name;if(!Je)continue;var ar=e.isPrivateIdentifier(Je),_r=ar&&Ue?16:0,Gr=ar?o:Ue?i:t,Zr=Je&&e.getPropertyNameForPropertyNameNode(Je);if(Zr)switch(L.kind){case 171:Et(Gr,Je,Zr,1|_r);break;case 172:Et(Gr,Je,Zr,2|_r);break;case 166:Et(Gr,Je,Zr,3|_r);break;case 168:Et(Gr,Je,Zr,8|_r);break}}}function Et(Tt,At,Vt,Nn){var on=Tt.get(Vt);if(on)if((on&16)!==(Nn&16))Mr(At,e.Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,e.getTextOfNode(At));else{var ca=!!(on&8),la=!!(Nn&8);ca||la?ca!==la&&Mr(At,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(At)):on&Nn&-17?Mr(At,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(At)):Tt.set(Vt,on|Nn)}else Tt.set(Vt,Nn)}}function U6(r){for(var t=0,i=r.members;t<i.length;t++){var o=i[t],s=o.name,c=e.isStatic(o);if(c&&s){var L=e.getPropertyNameForPropertyNameNode(s);switch(L){case"name":case"length":case"caller":case"arguments":case"prototype":var G=e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,ce=Fc(wn(r));Mr(s,G,L,ce);break}}}}function px(r){for(var t=new e.Map,i=0,o=r.members;i<o.length;i++){var s=o[i];if(s.kind===165){var c=void 0,L=s.name;switch(L.kind){case 10:case 8:c=L.text;break;case 79:c=e.idText(L);break;default:continue}t.get(c)?(Mr(e.getNameOfDeclaration(s.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,c),Mr(s.name,e.Diagnostics.Duplicate_identifier_0,c)):t.set(c,!0)}}}function nT(r){if(r.kind===257){var t=wn(r);if(t.declarations&&t.declarations.length>0&&t.declarations[0]!==r)return}var i=dD(wn(r));if(i!=null&&i.declarations){for(var o=new e.Map,s=function(ce){ce.parameters.length===1&&ce.parameters[0].type&&v_(Da(ce.parameters[0].type),function(we){var Ue=o.get(Bc(we));Ue?Ue.declarations.push(ce):o.set(Bc(we),{type:we,declarations:[ce]})})},c=0,L=i.declarations;c<L.length;c++){var G=L[c];s(G)}o.forEach(function(ce){if(ce.declarations.length>1)for(var we=0,Ue=ce.declarations;we<Ue.length;we++){var Je=Ue[we];Mr(Je,e.Diagnostics.Duplicate_index_signature_for_type_0,gn(ce.type))}})}}function _x(r){!ff(r)&&!bF(r)&&qb(r.name),wb(r),aT(r),e.isPrivateIdentifier(r.name)&&e.hasStaticModifier(r)&&r.initializer&&De===99&&!Xe.useDefineForClassFields&&Mr(r.initializer,e.Diagnostics.Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag),e.hasSyntacticModifier(r,128)&&r.kind===166&&r.initializer&&Mr(r,e.Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,e.declarationNameToString(r.name))}function V6(r){return e.isPrivateIdentifier(r.name)&&Mr(r,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),_x(r)}function W6(r){TI(r)||qb(r.name),Tx(r),e.hasSyntacticModifier(r,128)&&r.kind===168&&r.body&&Mr(r,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(r.name)),e.isPrivateIdentifier(r.name)&&!e.getContainingClass(r)&&Mr(r,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),aT(r)}function aT(r){if(e.isPrivateIdentifier(r.name)&&De<99){for(var t=e.getEnclosingBlockScopeContainer(r);t;t=e.getEnclosingBlockScopeContainer(t))Zn(t).flags|=67108864;if(e.isClassExpression(r.parent)){var i=f1(r.parent);i&&(Zn(r.name).flags|=524288,Zn(i).flags|=65536)}}}function j6(r){ff(r),e.forEachChild(r,Wi)}function H6(r){mv(r),hF(r)||yF(r),Wi(r.body);var t=wn(r),i=e.getDeclarationOfKind(t,r.kind);if(r===i&&kb(t),e.nodeIsMissing(r.body)||!Se)return;function o(_r){return e.isPrivateIdentifierClassElementDeclaration(_r)?!0:_r.kind===166&&!e.isStatic(_r)&&!!_r.initializer}var s=r.parent;if(e.getClassExtendsHeritageElement(s)){d1(r.parent,s);var c=IA(s),L=xA(r.body);if(L){c&&Mr(L,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null);var G=(e.getEmitScriptTarget(Xe)!==99||!Ye)&&(e.some(r.parent.members,o)||e.some(r.parameters,function(_r){return e.hasSyntacticModifier(_r,16476)}));if(G){for(var ce=r.body.statements,we=void 0,Ue=0,Je=ce;Ue<Je.length;Ue++){var ar=Je[Ue];if(ar.kind===237&&e.isSuperCall(ar.expression)){we=ar;break}if(!e.isPrologueDirective(ar))break}we||Mr(r,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else c||Mr(r,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}function mx(r){if(Se){if(!zb(r)&&!sF(r)&&qb(r.name),Mh(r),mv(r),r.kind===171&&!(r.flags&8388608)&&e.nodeIsPresent(r.body)&&r.flags&256&&(r.flags&512||Mr(r.name,e.Diagnostics.A_get_accessor_must_return_a_value)),r.name.kind===161&&qf(r.name),l_(r)){var t=wn(r),i=e.getDeclarationOfKind(t,171),o=e.getDeclarationOfKind(t,172);if(i&&o&&!(Cm(i)&1)){Zn(i).flags|=1;var s=e.getEffectiveModifierFlags(i),c=e.getEffectiveModifierFlags(o);(s&128)!==(c&128)&&(Mr(i.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),Mr(o.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract)),(s&16&&!(c&24)||s&8&&!(c&8))&&(Mr(i.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Mr(o.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));var L=_(i),G=_(o);L&&G&&Rl(L,G,i,e.Diagnostics.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}var ce=nr(wn(r));r.kind===171&&Y1(r,ce)}Wi(r.body),aT(r)}function J6(r){Mh(r)}function xb(r,t){return M_(e.map(r.typeArguments,Da),t,lf(t),e.isInJSFile(r))}function gx(r,t){for(var i,o,s=!0,c=0;c<t.length;c++){var L=Nl(t[c]);L&&(i||(i=xb(r,t),o=Ol(t,i)),s=s&&Rl(i[c],oi(L,o),r.typeArguments[c],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return s}function iT(r){var t=nh(r);if(!Ua(t)){var i=Zn(r).resolvedSymbol;if(i)return i.flags&524288&&Ja(i).typeParameters||(e.getObjectFlags(t)&4?t.target.localTypeParameters:void 0)}}function oT(r){Hh(r,r.typeArguments),r.kind===177&&r.typeName.jsdocDotPos!==void 0&&!e.isInJSFile(r)&&!e.isInJSDoc(r)&&gp(r,r.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(r.typeArguments,Wi);var t=nh(r);if(!Ua(t)){if(r.typeArguments&&Se){var i=iT(r);i&&gx(r,i)}var o=Zn(r).resolvedSymbol;o&&(e.some(o.declarations,function(s){return jh(s)&&!!(s.flags&134217728)})&&kc(xh(r),o.declarations,o.escapedName),t.flags&32&&o.flags&8&&Mr(r,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,gn(t)))}}function K6(r){var t=e.tryCast(r.parent,e.isTypeReferenceType);if(t){var i=iT(t);if(i){var o=Nl(i[t.typeArguments.indexOf(r)]);return o&&oi(o,Ol(i,xb(t,i)))}}}function z6(r){AD(r)}function q6(r){if(e.forEach(r.members,Wi),Se){var t=dL(r);Fb(t,t.symbol),nT(r),px(r)}}function X6(r){Wi(r.elementType)}function Y6(r){for(var t=r.elements,i=!1,o=!1,s=e.some(t,e.isNamedTupleMember),c=0,L=t;c<L.length;c++){var G=L[c];if(G.kind!==196&&s){sn(G,e.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);break}var ce=t0(G);if(ce&8){var we=Da(G.type);if(!_p(we)){Mr(G,e.Diagnostics.A_rest_element_type_must_be_an_array_type);break}(el(we)||ki(we)&&we.target.combinedFlags&4)&&(o=!0)}else if(ce&4){if(o){sn(G,e.Diagnostics.A_rest_element_cannot_follow_another_rest_element);break}o=!0}else if(ce&2){if(o){sn(G,e.Diagnostics.An_optional_element_cannot_follow_a_rest_element);break}i=!0}else if(i){sn(G,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(r.elements,Wi),Da(r)}function Q6(r){e.forEach(r.types,Wi),Da(r)}function vx(r,t){if(!(r.flags&8388608))return r;var i=r.objectType,o=r.indexType;if(Qi(o,qu(i,!1)))return t.kind===206&&e.isAssignmentTarget(t)&&e.getObjectFlags(i)&32&&ru(i)&1&&Mr(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,gn(i)),r;var s=wi(i);if(oc(s,wt)&&ys(o,296))return r;if(P_(i)){var c=c0(o,t);if(c){var L=v_(s,function(G){return Ii(G,c)});if(L&&e.getDeclarationModifierFlagsFromSymbol(L)&24)return Mr(t,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(c)),dr}}return Mr(t,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,gn(o),gn(i)),dr}function Z6(r){Wi(r.objectType),Wi(r.indexType),vx(oL(r),r)}function $6(r){e4(r),Wi(r.typeParameter),Wi(r.nameType),Wi(r.type),r.type||Fp(r,Ze);var t=d0(r),i=of(t);if(i)Rl(i,_t,r.nameType);else{var o=Tc(t);Rl(o,_t,e.getEffectiveConstraintOfTypeParameter(r.typeParameter))}}function e4(r){var t;if(!((t=r.members)===null||t===void 0)&&t.length)return sn(r.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods)}function r4(r){Iy(r)}function t4(r){cF(r),Wi(r.type)}function n4(r){e.forEachChild(r,Wi)}function a4(r){e.findAncestor(r,function(t){return t.parent&&t.parent.kind===188&&t.parent.extendsType===t})||sn(r,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Wi(r.typeParameter),Dd(r)}function i4(r){for(var t=0,i=r.templateSpans;t<i.length;t++){var o=i[t];Wi(o.type);var s=Da(o.type);Rl(s,It,o.type)}Da(r)}function o4(r){Wi(r.argument),Da(r)}function s4(r){r.dotDotDotToken&&r.questionToken&&sn(r,e.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest),r.type.kind===184&&sn(r.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),r.type.kind===185&&sn(r.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Wi(r.type),Da(r)}function Ib(r){return(e.hasEffectiveModifier(r,8)||e.isPrivateIdentifierClassElementDeclaration(r))&&!!(r.flags&8388608)}function Nb(r,t){var i=e.getCombinedModifierFlags(r);return r.parent.kind!==257&&r.parent.kind!==256&&r.parent.kind!==225&&r.flags&8388608&&(!(i&2)&&!(e.isModuleBlock(r.parent)&&e.isModuleDeclaration(r.parent.parent)&&e.isGlobalScopeAugmentation(r.parent.parent))&&(i|=1),i|=2),i&t}function kb(r){if(!Se)return;function t(Yn,Ba){var Ti=Ba!==void 0&&Ba.parent===Yn[0].parent;return Ti?Ba:Yn[0]}function i(Yn,Ba,Ti,Pi,jn){var Fi=Pi^jn;if(Fi!==0){var Wr=Nb(t(Yn,Ba),Ti);e.forEach(Yn,function(Tr){var hn=Nb(Tr,Ti)^Wr;hn&1?Mr(e.getNameOfDeclaration(Tr),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):hn&2?Mr(e.getNameOfDeclaration(Tr),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):hn&24?Mr(e.getNameOfDeclaration(Tr)||Tr,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):hn&128&&Mr(e.getNameOfDeclaration(Tr),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function o(Yn,Ba,Ti,Pi){if(Ti!==Pi){var jn=e.hasQuestionToken(t(Yn,Ba));e.forEach(Yn,function(Fi){var Wr=e.hasQuestionToken(Fi)!==jn;Wr&&Mr(e.getNameOfDeclaration(Fi),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})}}var s=155,c=0,L=s,G=!1,ce=!0,we=!1,Ue,Je,ar,_r=r.declarations,Gr=(r.flags&16384)!==0;function Zr(Yn){if(!(Yn.name&&e.nodeIsMissing(Yn.name))){var Ba=!1,Ti=e.forEachChild(Yn.parent,function(hn){if(Ba)return hn;Ba=hn===Yn});if(Ti&&Ti.pos===Yn.end&&Ti.kind===Yn.kind){var Pi=Ti.name||Ti,jn=Ti.name;if(Yn.name&&jn&&(e.isPrivateIdentifier(Yn.name)&&e.isPrivateIdentifier(jn)&&Yn.name.escapedText===jn.escapedText||e.isComputedPropertyName(Yn.name)&&e.isComputedPropertyName(jn)||e.isPropertyNameLiteral(Yn.name)&&e.isPropertyNameLiteral(jn)&&e.getEscapedTextOfIdentifierOrLiteral(Yn.name)===e.getEscapedTextOfIdentifierOrLiteral(jn))){var Fi=(Yn.kind===168||Yn.kind===167)&&e.isStatic(Yn)!==e.isStatic(Ti);if(Fi){var Wr=e.isStatic(Yn)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static;Mr(Pi,Wr)}return}if(e.nodeIsPresent(Ti.body)){Mr(Pi,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(Yn.name));return}}var Tr=Yn.name||Yn;Gr?Mr(Tr,e.Diagnostics.Constructor_implementation_is_missing):e.hasSyntacticModifier(Yn,128)?Mr(Tr,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):Mr(Tr,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}var Et=!1,Tt=!1,At=!1,Vt=[];if(_r)for(var Nn=0,on=_r;Nn<on.length;Nn++){var ca=on[Nn],la=ca,di=la.flags&8388608,Aa=la.parent&&(la.parent.kind===257||la.parent.kind===181)||di;if(Aa&&(ar=void 0),(la.kind===256||la.kind===225)&&!di&&(At=!0),la.kind===255||la.kind===168||la.kind===167||la.kind===170){Vt.push(la);var Li=Nb(la,s);c|=Li,L&=Li,G=G||e.hasQuestionToken(la),ce=ce&&e.hasQuestionToken(la);var Bi=e.nodeIsPresent(la.body);Bi&&Ue?Gr?Tt=!0:Et=!0:(ar==null?void 0:ar.parent)===la.parent&&ar.end!==la.pos&&Zr(ar),Bi?Ue||(Ue=la):we=!0,ar=la,Aa||(Je=la)}}if(Tt&&e.forEach(Vt,function(Yn){Mr(Yn,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),Et&&e.forEach(Vt,function(Yn){Mr(e.getNameOfDeclaration(Yn)||Yn,e.Diagnostics.Duplicate_function_implementation)}),At&&!Gr&&r.flags&16&&_r){var Ai=e.filter(_r,function(Yn){return Yn.kind===256}).map(function(Yn){return e.createDiagnosticForNode(Yn,e.Diagnostics.Consider_adding_a_declare_modifier_to_this_class)});e.forEach(_r,function(Yn){var Ba=Yn.kind===256?e.Diagnostics.Class_declaration_cannot_implement_overload_list_for_0:Yn.kind===255?e.Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Ba&&e.addRelatedInfo.apply(void 0,Gt([Mr(e.getNameOfDeclaration(Yn)||Yn,Ba,e.symbolName(r))],Ai,!1))})}if(Je&&!Je.body&&!e.hasSyntacticModifier(Je,128)&&!Je.questionToken&&Zr(Je),we&&(_r&&(i(_r,Ue,s,c,L),o(_r,Ue,G,ce)),Ue))for(var xo=Op(r),Wt=bu(Ue),Ft=0,_n=xo;Ft<_n.length;Ft++){var Ca=_n[Ft];if(!vR(Wt,Ca)){e.addRelatedInfo(Mr(Ca.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode(Ue,e.Diagnostics.The_implementation_signature_is_declared_here));break}}}function gv(r){if(!Se)return;var t=r.localSymbol;if(!t&&(t=wn(r),!t.exportSymbol)||e.getDeclarationOfKind(t,r.kind)!==r)return;for(var i=0,o=0,s=0,c=0,L=t.declarations;c<L.length;c++){var G=L[c],ce=Et(G),we=Nb(G,513);we&1?we&512?s|=ce:i|=ce:o|=ce}var Ue=i|o,Je=i&o,ar=s&Ue;if(Je||ar)for(var _r=0,Gr=t.declarations;_r<Gr.length;_r++){var G=Gr[_r],ce=Et(G),Zr=e.getNameOfDeclaration(G);ce&ar?Mr(Zr,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(Zr)):ce&Je&&Mr(Zr,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(Zr))}function Et(Tt){var At=Tt;switch(At.kind){case 257:case 258:case 343:case 336:case 337:return 2;case 260:return e.isAmbientModule(At)||e.getModuleInstanceState(At)!==0?5:4;case 256:case 259:case 297:return 3;case 303:return 7;case 270:case 220:var Vt=At,Nn=e.isExportAssignment(Vt)?Vt.expression:Vt.right;if(!e.isEntityNameExpression(Nn))return 1;At=Nn;case 264:case 267:case 266:var on=0,ca=ms(wn(At));return e.forEach(ca.declarations,function(la){on|=Et(la)}),on;case 253:case 202:case 255:case 269:case 79:return 1;default:return e.Debug.failBadSyntaxKind(At)}}}function vv(r,t,i,o){var s=hv(r,t);return s&&J_(s,t,i,o)}function hv(r,t){if(!Na(r)){var i=r;if(i.promisedTypeOfPromise)return i.promisedTypeOfPromise;if(nf(r,ah(!1)))return i.promisedTypeOfPromise=vo(r)[0];if(!Sm(r,262140)){var o=ia(r,"then");if(!Na(o)){var s=o?Ni(o,0):e.emptyArray;if(s.length===0){t&&Mr(t,e.Diagnostics.A_promise_must_have_a_then_method);return}var c=Fs(ma(e.map(s,z1)),2097152);if(!Na(c)){var L=Ni(c,0);if(L.length===0){t&&Mr(t,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return i.promisedTypeOfPromise=ma(e.map(L,z1),2)}}}}}function yv(r,t,i,o,s){var c=t?J_(r,i,o,s):Sd(r,i,o,s);return c||dr}function hx(r){if(Sm(r,262140))return!1;var t=ia(r,"then");return!!t&&Ni(Fs(t,2097152),0).length>0}function sT(r){var t;if(r.flags&16777216){var i=r0(!1);return!!i&&r.aliasSymbol===i&&((t=r.aliasTypeArguments)===null||t===void 0?void 0:t.length)===1}return!1}function bv(r){return r.flags&1048576?ds(r,bv):sT(r)?r.aliasTypeArguments[0]:r}function l4(r){if(Na(r)||sT(r))return r;if(P_(r)){var t=l(r);if(!t||t.flags&3||cf(t)||hx(t)){var i=r0(!0);if(i)return Zm(i,[bv(r)])}}return e.Debug.assert(hv(r)===void 0,"type provided should not be a non-generic 'promise'-like."),r}function J_(r,t,i,o){var s=Sd(r,t,i,o);return s&&l4(s)}function Sd(r,t,i,o){if(Na(r)||sT(r))return r;var s=r;if(s.awaitedTypeOfType)return s.awaitedTypeOfType;if(r.flags&1048576){var c=t?function(ce){return Sd(ce,t,i,o)}:Sd;return s.awaitedTypeOfType=ds(r,c)}var L=hv(r);if(L){if(r.id===L.id||Fa.lastIndexOf(L.id)>=0){t&&Mr(t,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}Fa.push(r.id);var G=Sd(L,t,i,o);return Fa.pop(),G?s.awaitedTypeOfType=G:void 0}if(hx(r)){t&&(e.Debug.assertIsDefined(i),Mr(t,i,o));return}return s.awaitedTypeOfType=r}function c4(r,t){var i=Da(t);if(De>=2){if(Ua(i))return;var o=ah(!0);if(o!==va&&!nf(i,o)){Mr(t,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,gn(Sd(i)||Wn));return}}else{if(f4(t),Ua(i))return;var s=e.getEntityNameFromTypeNode(t);if(s===void 0){Mr(t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,gn(i));return}var c=rs(s,111551,!0),L=c?An(c):dr;if(Ua(L)){s.kind===79&&s.escapedText==="Promise"&&O_(i)===ah(!1)?Mr(t,e.Diagnostics.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):Mr(t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(s));return}var G=Pk(!0);if(G===Qn){Mr(t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(s));return}if(!Rl(L,G,t,e.Diagnostics.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;var ce=s&&e.getFirstIdentifier(s),we=ks(r.locals,ce.escapedText,111551);if(we){Mr(we.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(ce),e.entityNameToString(s));return}}yv(i,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function u4(r){var t=_g(r);Sb(t,r);var i=_o(t);if(!(i.flags&1)){var o,s=OC(r),c;switch(r.parent.kind){case 256:var L=wn(r.parent),G=An(L);o=ma([G,Wn]);break;case 163:o=Wn,c=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 166:o=Wn,c=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 168:case 171:case 172:var ce=jp(r.parent),we=FD(ce);o=ma([we,Wn]);break;default:return e.Debug.fail()}Rl(i,o,r,s,function(){return c})}}function f4(r){yx(r&&e.getEntityNameFromTypeNode(r))}function yx(r){if(r){var t=e.getFirstIdentifier(r),i=(r.kind===79?788968:1920)|2097152,o=Uo(t,t.escapedText,i,void 0,void 0,!0);o&&o.flags&2097152&&If(o)&&!Dv(ms(o))&&!Ln(o)&&ii(o)}}function yg(r){var t=lT(r);t&&e.isEntityName(t)&&yx(t)}function lT(r){if(r)switch(r.kind){case 187:case 186:return bx(r.types);case 188:return bx([r.trueType,r.falseType]);case 190:case 196:return lT(r.type);case 177:return r.typeName}}function bx(r){for(var t,i=0,o=r;i<o.length;i++){for(var s=o[i];s.kind===190||s.kind===196;)s=s.type;if(s.kind!==143&&!(!br&&(s.kind===195&&s.literal.kind===104||s.kind===152))){var c=lT(s);if(!c)return;if(t){if(!e.isIdentifier(t)||!e.isIdentifier(c)||t.escapedText!==c.escapedText)return}else t=c}}return t}function Ob(r){var t=e.getEffectiveTypeAnnotationNode(r);return e.isRestParameter(r)?e.getRestParameterElementType(t):t}function Mh(r){if(r.decorators&&e.nodeCanBeDecorated(r,r.parent,r.parent.parent)){Xe.experimentalDecorators||Mr(r,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning);var t=r.decorators[0];if(nl(t,8),r.kind===163&&nl(t,32),Xe.emitDecoratorMetadata)switch(nl(t,16),r.kind){case 256:var i=e.getFirstConstructorWithBody(r);if(i)for(var o=0,s=i.parameters;o<s.length;o++){var c=s[o];yg(Ob(c))}break;case 171:case 172:var L=r.kind===171?172:171,G=e.getDeclarationOfKind(wn(r),L);yg(ml(r)||G&&ml(G));break;case 168:for(var ce=0,we=r.parameters;ce<we.length;ce++){var c=we[ce];yg(Ob(c))}yg(e.getEffectiveReturnTypeNode(r));break;case 166:yg(e.getEffectiveTypeAnnotationNode(r));break;case 163:yg(Ob(r));for(var Ue=r.parent,Je=0,ar=Ue.parameters;Je<ar.length;Je++){var c=ar[Je];yg(Ob(c))}break}e.forEach(r.decorators,u4)}}function d4(r){Se&&(Tx(r),kT(r),bg(r,r.name))}function p4(r){r.typeExpression||Mr(r.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),r.name&&Tg(r.name,e.Diagnostics.Type_alias_name_cannot_be_0),Wi(r.typeExpression),Vh(e.getEffectiveTypeParameterDeclarations(r))}function _4(r){Wi(r.constraint);for(var t=0,i=r.typeParameters;t<i.length;t++){var o=i[t];Wi(o)}}function m4(r){Wi(r.typeExpression)}function g4(r){if(Wi(r.typeExpression),!e.getParameterSymbolFromJSDoc(r)){var t=e.getHostSignatureFromJSDoc(r);if(t){var i=e.getJSDocTags(t).filter(e.isJSDocParameterTag).indexOf(r);if(i>-1&&i<t.parameters.length&&e.isBindingPattern(t.parameters[i].name))return;zE(t)?e.findLast(e.getJSDocTags(t),e.isJSDocParameterTag)===r&&r.typeExpression&&r.typeExpression.type&&!el(Da(r.typeExpression.type))&&Mr(r.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,e.idText(r.name.kind===160?r.name.right:r.name)):e.isQualifiedName(r.name)?Mr(r.name,e.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,e.entityNameToString(r.name),e.entityNameToString(r.name.left)):Mr(r.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(r.name))}}}function v4(r){Wi(r.typeExpression)}function h4(r){Se&&!r.type&&!e.isJSDocConstructSignature(r)&&Fp(r,Ze),mv(r)}function y4(r){var t=e.getEffectiveJSDocHost(r);(!t||!e.isClassDeclaration(t)&&!e.isClassExpression(t))&&Mr(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(r.tagName))}function b4(r){var t=e.getEffectiveJSDocHost(r);if(!t||!e.isClassDeclaration(t)&&!e.isClassExpression(t)){Mr(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(r.tagName));return}var i=e.getJSDocTags(t).filter(e.isJSDocAugmentsTag);e.Debug.assert(i.length>0),i.length>1&&Mr(i[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var o=Ex(r.class.expression),s=e.getClassExtendsHeritageElement(t);if(s){var c=Ex(s.expression);c&&o.escapedText!==c.escapedText&&Mr(o,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(r.tagName),e.idText(o),e.idText(c))}}function E4(r){var t=e.getJSDocHost(r);t&&e.isPrivateIdentifierClassElementDeclaration(t)&&Mr(r,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function Ex(r){switch(r.kind){case 79:return r;case 205:return r.name;default:return}}function Tx(r){var t;Mh(r),mv(r);var i=e.getFunctionFlags(r);if(r.name&&r.name.kind===161&&qf(r.name),l_(r)){var o=wn(r),s=r.localSymbol||o,c=(t=s.declarations)===null||t===void 0?void 0:t.find(function(ce){return ce.kind===r.kind&&!(ce.flags&131072)});r===c&&kb(s),o.parent&&kb(o)}var L=r.kind===167?void 0:r.body;if(Wi(L),Y1(r,lm(r)),Se&&!e.getEffectiveReturnTypeNode(r)&&(e.nodeIsMissing(L)&&!Ib(r)&&Fp(r,Ze),i&1&&e.nodeIsPresent(L)&&_o(bu(r))),e.isInJSFile(r)){var G=e.getJSDocTypeTag(r);G&&G.typeExpression&&!E1(Da(G.typeExpression),r)&&Mr(G.typeExpression.type,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function Dd(r){if(Se){var t=e.getSourceFileOfNode(r),i=gi.get(t.path);i||(i=[],gi.set(t.path,i)),i.push(r)}}function Sx(r,t){for(var i=0,o=r;i<o.length;i++){var s=o[i];switch(s.kind){case 256:case 225:T4(s,t),cT(s,t);break;case 303:case 260:case 234:case 262:case 241:case 242:case 243:Ax(s,t);break;case 170:case 212:case 255:case 213:case 168:case 171:case 172:s.body&&Ax(s,t),cT(s,t);break;case 167:case 173:case 174:case 178:case 179:case 258:case 257:cT(s,t);break;case 189:S4(s,t);break;default:e.Debug.assertNever(s,"Node should not have been registered for unused identifiers check")}}}function Dx(r,t,i){var o=e.getNameOfDeclaration(r)||r,s=jh(r)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;i(r,0,e.createDiagnosticForNode(o,s,t))}function Ph(r){return e.isIdentifier(r)&&e.idText(r).charCodeAt(0)===95}function T4(r,t){for(var i=0,o=r.members;i<o.length;i++){var s=o[i];switch(s.kind){case 168:case 166:case 171:case 172:if(s.kind===172&&s.symbol.flags&32768)break;var c=wn(s);!c.isReferenced&&(e.hasEffectiveModifier(s,8)||e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name))&&!(s.flags&8388608)&&t(s,0,e.createDiagnosticForNode(s.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Wa(c)));break;case 170:for(var L=0,G=s.parameters;L<G.length;L++){var ce=G[L];!ce.symbol.isReferenced&&e.hasSyntacticModifier(ce,8)&&t(ce,0,e.createDiagnosticForNode(ce.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(ce.symbol)))}break;case 175:case 233:case 169:break;default:e.Debug.fail("Unexpected class member")}}}function S4(r,t){var i=r.typeParameter;uT(i)&&t(r,1,e.createDiagnosticForNode(r,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(i.name)))}function cT(r,t){var i=wn(r).declarations;if(!(!i||e.last(i)!==r))for(var o=e.getEffectiveTypeParameterDeclarations(r),s=new e.Set,c=0,L=o;c<L.length;c++){var G=L[c];if(uT(G)){var ce=e.idText(G.name),we=G.parent;if(we.kind!==189&&we.typeParameters.every(uT)){if(e.tryAddToSet(s,we)){var Ue=e.getSourceFileOfNode(we),Je=e.isJSDocTemplateTag(we)?e.rangeOfNode(we):e.rangeOfTypeParameters(Ue,we.typeParameters),ar=we.typeParameters.length===1,_r=ar?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,Gr=ar?ce:void 0;t(G,1,e.createFileDiagnostic(Ue,Je.pos,Je.end-Je.pos,_r,Gr))}}else t(G,1,e.createDiagnosticForNode(G,e.Diagnostics._0_is_declared_but_its_value_is_never_read,ce))}}}function uT(r){return!(Ga(r.symbol).isReferenced&262144)&&!Ph(r.name)}function Fh(r,t,i,o){var s=String(o(t)),c=r.get(s);c?c[1].push(i):r.set(s,[t,[i]])}function Lx(r){return e.tryCast(e.getRootDeclaration(r),e.isParameter)}function D4(r){return e.isBindingElement(r)?e.isObjectBindingPattern(r.parent)?!!(r.propertyName&&Ph(r.name)):Ph(r.name):e.isAmbientModule(r)||(e.isVariableDeclaration(r)&&e.isForInOrOfStatement(r.parent.parent)||Cx(r))&&Ph(r.name)}function Ax(r,t){var i=new e.Map,o=new e.Map,s=new e.Map;r.locals.forEach(function(c){if(!(c.flags&262144?!(c.flags&3&&!(c.isReferenced&3)):c.isReferenced||c.exportSymbol)&&c.declarations)for(var L=0,G=c.declarations;L<G.length;L++){var ce=G[L];if(!D4(ce))if(Cx(ce))Fh(i,L4(ce),ce,N);else if(e.isBindingElement(ce)&&e.isObjectBindingPattern(ce.parent)){var we=e.last(ce.parent.elements);(ce===we||!e.last(ce.parent.elements).dotDotDotToken)&&Fh(o,ce.parent,ce,N)}else if(e.isVariableDeclaration(ce))Fh(s,ce.parent,ce,N);else{var Ue=c.valueDeclaration&&Lx(c.valueDeclaration),Je=c.valueDeclaration&&e.getNameOfDeclaration(c.valueDeclaration);Ue&&Je?!e.isParameterPropertyDeclaration(Ue,Ue.parent)&&!e.parameterIsThisKeyword(Ue)&&!Ph(Je)&&(e.isBindingElement(ce)&&e.isArrayBindingPattern(ce.parent)?Fh(o,ce.parent,ce,N):t(Ue,1,e.createDiagnosticForNode(Je,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(c)))):Dx(ce,e.symbolName(c),t)}}}),i.forEach(function(c){var L=c[0],G=c[1],ce=L.parent,we=(L.name?1:0)+(L.namedBindings?L.namedBindings.kind===267?1:L.namedBindings.elements.length:0);if(we===G.length)t(ce,0,G.length===1?e.createDiagnosticForNode(ce,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(G).name)):e.createDiagnosticForNode(ce,e.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var Ue=0,Je=G;Ue<Je.length;Ue++){var ar=Je[Ue];Dx(ar,e.idText(ar.name),t)}}),o.forEach(function(c){var L=c[0],G=c[1],ce=Lx(L.parent)?1:0;if(L.elements.length===G.length)G.length===1&&L.parent.kind===253&&L.parent.parent.kind===254?Fh(s,L.parent.parent,L.parent,N):t(L,ce,G.length===1?e.createDiagnosticForNode(L,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Gh(e.first(G).name)):e.createDiagnosticForNode(L,e.Diagnostics.All_destructured_elements_are_unused));else for(var we=0,Ue=G;we<Ue.length;we++){var Je=Ue[we];t(Je,ce,e.createDiagnosticForNode(Je,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Gh(Je.name)))}}),s.forEach(function(c){var L=c[0],G=c[1];if(L.declarations.length===G.length)t(L,0,G.length===1?e.createDiagnosticForNode(e.first(G).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Gh(e.first(G).name)):e.createDiagnosticForNode(L.parent.kind===236?L.parent:L,e.Diagnostics.All_variables_are_unused));else for(var ce=0,we=G;ce<we.length;ce++){var Ue=we[ce];t(Ue,0,e.createDiagnosticForNode(Ue,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Gh(Ue.name)))}})}function Gh(r){switch(r.kind){case 79:return e.idText(r);case 201:case 200:return Gh(e.cast(e.first(r.elements),e.isBindingElement).name);default:return e.Debug.assertNever(r)}}function Cx(r){return r.kind===266||r.kind===269||r.kind===267}function L4(r){return r.kind===266?r:r.kind===267?r.parent:r.parent.parent}function Rb(r){if(r.kind===234&&df(r),e.isFunctionOrModuleBlock(r)){var t=Ir;e.forEach(r.statements,Wi),Ir=t}else e.forEach(r.statements,Wi);r.locals&&Dd(r)}function A4(r){De>=2||!e.hasRestParameter(r)||r.flags&8388608||e.nodeIsMissing(r.body)||e.forEach(r.parameters,function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===Jr.escapedName&&Zl("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function Ev(r,t,i){if((t==null?void 0:t.escapedText)!==i||r.kind===166||r.kind===165||r.kind===168||r.kind===167||r.kind===171||r.kind===172||r.kind===294||r.flags&8388608||(e.isImportClause(r)||e.isImportEqualsDeclaration(r)||e.isImportSpecifier(r))&&e.isTypeOnlyImportOrExportDeclaration(r))return!1;var o=e.getRootDeclaration(r);return!(e.isParameter(o)&&e.nodeIsMissing(o.parent.body))}function C4(r){e.findAncestor(r,function(t){if(Cm(t)&4){var i=r.kind!==79;return i?Mr(e.getNameOfDeclaration(r),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Mr(r,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0}return!1})}function x4(r){e.findAncestor(r,function(t){if(Cm(t)&8){var i=r.kind!==79;return i?Mr(e.getNameOfDeclaration(r),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Mr(r,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0}return!1})}function I4(r,t){if(!(Ae>=e.ModuleKind.ES2015&&!(Ae>=e.ModuleKind.Node12&&e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS))&&!(!t||!Ev(r,t,"require")&&!Ev(r,t,"exports"))&&!(e.isModuleDeclaration(r)&&e.getModuleInstanceState(r)!==1)){var i=fa(r);i.kind===303&&e.isExternalOrCommonJsModule(i)&&Zl("noEmit",t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(t),e.declarationNameToString(t))}}function N4(r,t){if(!(!t||De>=4||!Ev(r,t,"Promise"))&&!(e.isModuleDeclaration(r)&&e.getModuleInstanceState(r)!==1)){var i=fa(r);i.kind===303&&e.isExternalOrCommonJsModule(i)&&i.flags&2048&&Zl("noEmit",t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(t),e.declarationNameToString(t))}}function k4(r,t){De<=8&&(Ev(r,t,"WeakMap")||Ev(r,t,"WeakSet"))&&kn.push(r)}function O4(r){var t=e.getEnclosingBlockScopeContainer(r);Cm(t)&67108864&&(e.Debug.assert(e.isNamedDeclaration(r)&&e.isIdentifier(r.name)&&typeof r.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),Zl("noEmit",r,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,r.name.escapedText))}function R4(r,t){t&&De>=2&&De<=8&&Ev(r,t,"Reflect")&&Kn.push(r)}function w4(r){var t=!1;if(e.isClassExpression(r))for(var i=0,o=r.members;i<o.length;i++){var s=o[i];if(Cm(s)&134217728){t=!0;break}}else if(e.isFunctionExpression(r))Cm(r)&134217728&&(t=!0);else{var c=e.getEnclosingBlockScopeContainer(r);c&&Cm(c)&134217728&&(t=!0)}t&&(e.Debug.assert(e.isNamedDeclaration(r)&&e.isIdentifier(r.name),"The target of a Reflect collision check should be an identifier"),Zl("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,e.declarationNameToString(r.name),"Reflect"))}function bg(r,t){t&&(I4(r,t),N4(r,t),k4(r,t),R4(r,t),e.isClassLike(r)?(Tg(t,e.Diagnostics.Class_name_cannot_be_0),r.flags&8388608||s3(t)):e.isEnumDeclaration(r)&&Tg(t,e.Diagnostics.Enum_name_cannot_be_0))}function M4(r){if(!(e.getCombinedNodeFlags(r)&3||e.isParameterDeclaration(r))&&!(r.kind===253&&!r.initializer)){var t=wn(r);if(t.flags&1){if(!e.isIdentifier(r.name))return e.Debug.fail();var i=Uo(r,r.name.escapedText,3,void 0,void 0,!1);if(i&&i!==t&&i.flags&2&&cv(i)&3){var o=e.getAncestor(i.valueDeclaration,254),s=o.parent.kind===236&&o.parent.parent?o.parent.parent:void 0,c=s&&(s.kind===234&&e.isFunctionLike(s.parent)||s.kind===261||s.kind===260||s.kind===303);if(!c){var L=Wa(i);Mr(r,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,L,L)}}}}}function Tv(r){return r===Cr?Ze:r===ta?Sn:r}function wb(r){var t;if(Mh(r),e.isBindingElement(r)||Wi(r.type),!!r.name){if(r.name.kind===161&&(qf(r.name),r.initializer&&Ss(r.initializer)),e.isBindingElement(r)){e.isObjectBindingPattern(r.parent)&&r.dotDotDotToken&&De<5&&nl(r,4),r.propertyName&&r.propertyName.kind===161&&qf(r.propertyName);var i=r.parent.parent,o=Go(i),s=r.propertyName||r.name;if(o&&!e.isBindingPattern(s)){var c=lp(s);if(gu(c)){var L=vu(c),G=Ii(o,L);G&&(Ah(G,void 0,!1),N1(r,!!i.initializer&&i.initializer.kind===106,!1,o,G))}}}if(e.isBindingPattern(r.name)&&(r.name.kind===201&&De<2&&Xe.downlevelIteration&&nl(r,512),e.forEach(r.name.elements,Wi)),r.initializer&&e.isParameterDeclaration(r)&&e.nodeIsMissing(e.getContainingFunction(r).body)){Mr(r,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(e.isBindingPattern(r.name)){var ce=r.initializer&&r.parent.parent.kind!==242,we=r.name.elements.length===0;if(ce||we){var Ue=Cl(r);if(ce){var Je=Ss(r.initializer);br&&we?rC(Je,r):pp(Je,Cl(r),r,r.initializer)}we&&(e.isArrayBindingPattern(r.name)?Ld(65,Ue,Nr,r):br&&rC(Ue,r))}return}var ar=wn(r);if(ar.flags&2097152&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(r)){Gb(r);return}var _r=Tv(An(ar));if(r===ar.valueDeclaration){var Gr=e.getEffectiveInitializer(r);if(Gr){var Zr=e.isInJSFile(r)&&e.isObjectLiteralExpression(Gr)&&(Gr.properties.length===0||e.isPrototypeAccess(r.name))&&!!(!((t=ar.exports)===null||t===void 0)&&t.size);!Zr&&r.parent.parent.kind!==242&&pp(Ss(Gr),_r,r,Gr,void 0)}ar.declarations&&ar.declarations.length>1&&e.some(ar.declarations,function(Tt){return Tt!==r&&e.isVariableLike(Tt)&&!Ix(Tt,r)})&&Mr(r.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(r.name))}else{var Et=Tv(Cl(r));!Ua(_r)&&!Ua(Et)&&!jf(_r,Et)&&!(ar.flags&67108864)&&xx(ar.valueDeclaration,_r,r,Et),r.initializer&&pp(Ss(r.initializer),Et,r,r.initializer,void 0),ar.valueDeclaration&&!Ix(r,ar.valueDeclaration)&&Mr(r.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(r.name))}r.kind!==166&&r.kind!==165&&(gv(r),(r.kind===253||r.kind===202)&&M4(r),bg(r,r.name))}}function xx(r,t,i,o){var s=e.getNameOfDeclaration(i),c=i.kind===166||i.kind===165?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,L=e.declarationNameToString(s),G=Mr(s,c,L,gn(t),gn(o));r&&e.addRelatedInfo(G,e.createDiagnosticForNode(r,e.Diagnostics._0_was_also_declared_here,L))}function Ix(r,t){if(r.kind===163&&t.kind===253||r.kind===253&&t.kind===163)return!0;if(e.hasQuestionToken(r)!==e.hasQuestionToken(t))return!1;var i=504;return e.getSelectedEffectiveModifierFlags(r,i)===e.getSelectedEffectiveModifierFlags(t,i)}function fT(r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkVariableDeclaration",{kind:r.kind,pos:r.pos,end:r.end}),_F(r),wb(r),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function P4(r){return fF(r),wb(r)}function F4(r){!ff(r)&&!RT(r.declarationList)&&mF(r),e.forEach(r.declarationList.declarations,Wi)}function G4(r){df(r),ui(r.expression)}function B4(r){df(r);var t=Eg(r.expression);dT(r.expression,t,r.thenStatement),Wi(r.thenStatement),r.thenStatement.kind===235&&Mr(r.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Wi(r.elseStatement)}function dT(r,t,i){if(br&&!lc(t)){var o=e.isBinaryExpression(r)?r.right:r;if(!(e.isPropertyAccessExpression(o)&&nx(o.expression))){var s=e.isIdentifier(o)?o:e.isPropertyAccessExpression(o)?o.name:e.isBinaryExpression(o)&&e.isIdentifier(o.right)?o.right:void 0,c=Ni(t,0),L=!!vv(t);if(!(c.length===0&&!L)){var G=s&&Vc(s);if(!(!G&&!L)){var ce=G&&e.isBinaryExpression(r.parent)&&V4(r.parent,G)||G&&i&&U4(r,i,s,G);ce||(L?ku(o,!0,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined,Qd(t)):Mr(o,e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}}}}function U4(r,t,i,o){return!!e.forEachChild(t,function s(c){if(e.isIdentifier(c)){var L=Vc(c);if(L&&L===o){if(e.isIdentifier(r))return!0;for(var G=i.parent,ce=c.parent;G&&ce;){if(e.isIdentifier(G)&&e.isIdentifier(ce)||G.kind===108&&ce.kind===108)return Vc(G)===Vc(ce);if(e.isPropertyAccessExpression(G)&&e.isPropertyAccessExpression(ce)){if(Vc(G.name)!==Vc(ce.name))return!1;ce=ce.expression,G=G.expression}else if(e.isCallExpression(G)&&e.isCallExpression(ce))ce=ce.expression,G=G.expression;else return!1}}}return e.forEachChild(c,s)})}function V4(r,t){for(;e.isBinaryExpression(r)&&r.operatorToken.kind===55;){var i=e.forEachChild(r.right,function o(s){if(e.isIdentifier(s)){var c=Vc(s);if(c&&c===t)return!0}return e.forEachChild(s,o)});if(i)return!0;r=r.parent}return!1}function W4(r){df(r),Wi(r.statement),Eg(r.expression)}function j4(r){df(r),Eg(r.expression),Wi(r.statement)}function Nx(r,t){return r.flags&16384&&Mr(t,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),r}function Eg(r,t){return Nx(ui(r,t),r)}function H4(r){df(r)||r.initializer&&r.initializer.kind===254&&RT(r.initializer),r.initializer&&(r.initializer.kind===254?e.forEach(r.initializer.declarations,fT):ui(r.initializer)),r.condition&&Eg(r.condition),r.incrementor&&ui(r.incrementor),Wi(r.statement),r.locals&&Dd(r)}function J4(r){EI(r);var t=e.getContainingFunctionOrClassStaticBlock(r);if(r.awaitModifier)if(t&&e.isClassStaticBlockDeclaration(t))sn(r.awaitModifier,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block);else{var i=e.getFunctionFlags(t);(i&6)===2&&De<99&&nl(r,16384)}else Xe.downlevelIteration&&De<2&&nl(r,256);if(r.initializer.kind===254)kx(r);else{var o=r.initializer,s=Bh(r);if(o.kind===203||o.kind===204)T_(o,s||dr);else{var c=ui(o);_v(o,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),s&&pp(s,c,o,r.expression)}}Wi(r.statement),r.locals&&Dd(r)}function K4(r){EI(r);var t=k1(ui(r.expression));if(r.initializer.kind===254){var i=r.initializer.declarations[0];i&&e.isBindingPattern(i.name)&&Mr(i.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),kx(r)}else{var o=r.initializer,s=ui(o);o.kind===203||o.kind===204?Mr(o,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Qi(bO(t),s)?_v(o,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Mr(o,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(t===en||!ys(t,126091264))&&Mr(r.expression,e.Diagnostics.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,gn(t)),Wi(r.statement),r.locals&&Dd(r)}function kx(r){var t=r.initializer;if(t.declarations.length>=1){var i=t.declarations[0];fT(i)}}function Bh(r){var t=r.awaitModifier?15:13;return Ld(t,dg(r.expression),Nr,r.expression)}function Ld(r,t,i,o){return Na(t)?t:pT(r,t,i,o,!0)||Ze}function pT(r,t,i,o,s){var c=(r&2)!==0;if(t===en){vT(o,t,c);return}var L=De>=2,G=!L&&Xe.downlevelIteration,ce=Xe.noUncheckedIndexedAccess&&!!(r&128);if(L||G||c){var we=Uh(t,r,L?o:void 0);if(s&&we){var Ue=r&8?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r&32?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r&64?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r&16?e.Diagnostics.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;Ue&&Rl(i,we.nextType,o,Ue)}if(we||L)return ce?ov(we&&we.yieldType):we&&we.yieldType}var Je=t,ar=!1,_r=!1;if(r&4){if(Je.flags&1048576){var Gr=t.types,Zr=e.filter(Gr,function(ca){return!(ca.flags&402653316)});Zr!==Gr&&(Je=ma(Zr,2))}else Je.flags&402653316&&(Je=en);if(_r=Je!==t,_r&&(De<1&&o&&(Mr(o,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),ar=!0),Je.flags&131072))return ce?ov(xt):xt}if(!_p(Je)){if(o&&!ar){var Et=!!(r&4)&&!_r,Tt=on(Et,G),At=Tt[0],Vt=Tt[1];ku(o,Vt&&!!vv(Je),At,gn(Je))}return _r?ce?ov(xt):xt:void 0}var Nn=tu(Je,wt);if(_r&&Nn)return Nn.flags&402653316&&!Xe.noUncheckedIndexedAccess?xt:ma(ce?[Nn,xt,Nr]:[Nn,xt],2);return r&128?ov(Nn):Nn;function on(ca,la){var di;if(la)return ca?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0];var Aa=Ox(r,0,t,void 0);return Aa?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:z4((di=t.symbol)===null||di===void 0?void 0:di.escapedName)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:ca?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]}}function z4(r){switch(r){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 Ox(r,t,i,o){if(!Na(i)){var s=Uh(i,r,o);return s&&s[te(t)]}}function Xf(r,t,i){if(r===void 0&&(r=en),t===void 0&&(t=en),i===void 0&&(i=tr),r.flags&67359327&&t.flags&180227&&i.flags&180227){var o=sc([r,t,i]),s=co.get(o);return s||(s={yieldType:r,returnType:t,nextType:i},co.set(o,s)),s}return{yieldType:r,returnType:t,nextType:i}}function Rx(r){for(var t,i,o,s=0,c=r;s<c.length;s++){var L=c[s];if(!(L===void 0||L===za)){if(L===hi)return hi;t=e.append(t,L.yieldType),i=e.append(i,L.returnType),o=e.append(o,L.nextType)}}return t||i||o?Xf(t&&ma(t),i&&ma(i),o&&To(o)):za}function Mb(r,t){return r[t]}function Xu(r,t,i){return r[t]=i}function Uh(r,t,i){if(Na(r))return hi;if(!(r.flags&1048576)){var o=wx(r,t,i);if(o===za){i&&vT(i,r,!!(t&2));return}return o}var s=t&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",c=Mb(r,s);if(c)return c===za?void 0:c;for(var L,G=0,ce=r.types;G<ce.length;G++){var we=ce[G],Ue=wx(we,t,i);if(Ue===za){i&&vT(i,r,!!(t&2)),Xu(r,s,za);return}else L=e.append(L,Ue)}var Je=L?Rx(L):za;return Xu(r,s,Je),Je===za?void 0:Je}function _T(r,t){if(r===za)return za;if(r===hi)return hi;var i=r.yieldType,o=r.returnType,s=r.nextType;return t&&r0(!0),Xf(J_(i,t)||Ze,J_(o,t)||Ze,s)}function wx(r,t,i){if(Na(r))return hi;if(t&2){var o=mT(r,Po)||Px(r,Po);if(o)return t&8?_T(o,i):o}if(t&1){var o=mT(r,Fo)||Px(r,Fo);if(o)if(t&2){if(o!==za)return Xu(r,"iterationTypesOfAsyncIterable",_T(o,i))}else return o}if(t&2){var o=gT(r,Po,i);if(o!==za)return o}if(t&1){var o=gT(r,Fo,i);if(o!==za)return t&2?Xu(r,"iterationTypesOfAsyncIterable",o?_T(o,i):za):o}return za}function mT(r,t){return Mb(r,t.iterableCacheKey)}function Mx(r,t){var i=mT(r,t)||gT(r,t,void 0);return i===za?Mo:i}function Px(r,t){var i;if(nf(r,i=t.getGlobalIterableType(!1))||nf(r,i=t.getGlobalIterableIteratorType(!1))){var o=vo(r)[0],s=Mx(i,t),c=s.returnType,L=s.nextType;return Xu(r,t.iterableCacheKey,Xf(t.resolveIterationType(o,void 0)||o,t.resolveIterationType(c,void 0)||c,L))}if(nf(r,t.getGlobalGeneratorType(!1))){var G=vo(r),o=G[0],c=G[1],L=G[2];return Xu(r,t.iterableCacheKey,Xf(t.resolveIterationType(o,void 0)||o,t.resolveIterationType(c,void 0)||c,L))}}function q4(r){var t=OD(!1),i=t&&ia(An(t),e.escapeLeadingUnderscores(r));return i&&gu(i)?vu(i):"__@".concat(r)}function gT(r,t,i){var o,s=Ii(r,q4(t.iteratorSymbolName)),c=s&&!(s.flags&16777216)?An(s):void 0;if(Na(c))return Xu(r,t.iterableCacheKey,hi);var L=c?Ni(c,0):void 0;if(!e.some(L))return Xu(r,t.iterableCacheKey,za);var G=To(e.map(L,_o)),ce=(o=Fx(G,t,i))!==null&&o!==void 0?o:za;return Xu(r,t.iterableCacheKey,ce)}function vT(r,t,i){var o=i?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;ku(r,!!vv(t),o,gn(t))}function Fx(r,t,i){if(Na(r))return hi;var o=Gx(r,t)||X4(r,t)||Ux(r,t,i);return o===za?void 0:o}function Gx(r,t){return Mb(r,t.iteratorCacheKey)}function X4(r,t){var i=t.getGlobalIterableIteratorType(!1);if(nf(r,i)){var o=vo(r)[0],s=Gx(i,t)||Ux(i,t,void 0),c=s===za?Mo:s,L=c.returnType,G=c.nextType;return Xu(r,t.iteratorCacheKey,Xf(o,L,G))}if(nf(r,t.getGlobalIteratorType(!1))||nf(r,t.getGlobalGeneratorType(!1))){var ce=vo(r),o=ce[0],L=ce[1],G=ce[2];return Xu(r,t.iteratorCacheKey,Xf(o,L,G))}}function Bx(r,t){var i=ia(r,"done")||mt;return Qi(t===0?mt:sa,i)}function Y4(r){return Bx(r,0)}function Q4(r){return Bx(r,1)}function Z4(r){if(Na(r))return hi;var t=Mb(r,"iterationTypesOfIteratorResult");if(t)return t;if(nf(r,Hk(!1))){var i=vo(r)[0];return Xu(r,"iterationTypesOfIteratorResult",Xf(i,void 0,void 0))}if(nf(r,Jk(!1))){var o=vo(r)[0];return Xu(r,"iterationTypesOfIteratorResult",Xf(void 0,o,void 0))}var s=rl(r,Y4),c=s!==en?ia(s,"value"):void 0,L=rl(r,Q4),G=L!==en?ia(L,"value"):void 0;return!c&&!G?Xu(r,"iterationTypesOfIteratorResult",za):Xu(r,"iterationTypesOfIteratorResult",Xf(c,G||Wn,void 0))}function hT(r,t,i,o){var s,c,L,G,ce=Ii(r,i);if(!(!ce&&i!=="next")){var we=ce&&!(i==="next"&&ce.flags&16777216)?i==="next"?An(ce):Fs(An(ce),2097152):void 0;if(Na(we))return i==="next"?hi:Zi;var Ue=we?Ni(we,0):e.emptyArray;if(Ue.length===0){if(o){var Je=i==="next"?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic;Mr(o,Je,i)}return i==="next"?hi:void 0}if(we!=null&&we.symbol&&Ue.length===1){var ar=t.getGlobalGeneratorType(!1),_r=t.getGlobalIteratorType(!1),Gr=((c=(s=ar.symbol)===null||s===void 0?void 0:s.members)===null||c===void 0?void 0:c.get(i))===we.symbol,Zr=!Gr&&((G=(L=_r.symbol)===null||L===void 0?void 0:L.members)===null||G===void 0?void 0:G.get(i))===we.symbol;if(Gr||Zr){var Et=Gr?ar:_r,Tt=we.mapper;return Xf(dp(Et.typeParameters[0],Tt),dp(Et.typeParameters[1],Tt),i==="next"?dp(Et.typeParameters[2],Tt):void 0)}}for(var At,Vt,Nn=0,on=Ue;Nn<on.length;Nn++){var ca=on[Nn];i!=="throw"&&e.some(ca.parameters)&&(At=e.append(At,Uc(ca,0))),Vt=e.append(Vt,_o(ca))}var la,di;if(i!=="throw"){var Aa=At?ma(At):tr;if(i==="next")di=Aa;else if(i==="return"){var Li=t.resolveIterationType(Aa,o)||Ze;la=e.append(la,Li)}}var Bi,Ai=Vt?To(Vt):en,xo=t.resolveIterationType(Ai,o)||Ze,Wt=Z4(xo);return Wt===za?(o&&Mr(o,t.mustHaveAValueDiagnostic,i),Bi=Ze,la=e.append(la,Ze)):(Bi=Wt.yieldType,la=e.append(la,Wt.returnType)),Xf(Bi,ma(la),di)}}function Ux(r,t,i){var o=Rx([hT(r,t,"next",i),hT(r,t,"return",i),hT(r,t,"throw",i)]);return Xu(r,t.iteratorCacheKey,o)}function Lm(r,t,i){if(!Na(t)){var o=Vx(t,i);return o&&o[te(r)]}}function Vx(r,t){if(Na(r))return hi;var i=t?2:1,o=t?Po:Fo;return Uh(r,i,void 0)||Fx(r,o,void 0)}function $4(r){df(r)||uF(r)}function Pb(r,t){var i=!!(t&1),o=!!(t&2);return i?Lm(1,r,o)||dr:o?Sd(r)||dr:r}function Wx(r,t){var i=Pb(t,e.getFunctionFlags(r));return!!i&&Jo(i,16387)}function e3(r){var t;if(!df(r)){var i=e.getContainingFunctionOrClassStaticBlock(r);if(i&&e.isClassStaticBlockDeclaration(i)){Gs(r,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!i){Gs(r,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);return}var o=bu(i),s=_o(o),c=e.getFunctionFlags(i);if(br||r.expression||s.flags&131072){var L=r.expression?Ss(r.expression):Nr;if(i.kind===172)r.expression&&Mr(r,e.Diagnostics.Setters_cannot_return_a_value);else if(i.kind===170)r.expression&&!pp(L,s,r,r.expression)&&Mr(r,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(lm(i)){var G=(t=Pb(s,c))!==null&&t!==void 0?t:s,ce=c&2?yv(L,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):L;G&&pp(ce,G,r,r.expression)}}else i.kind!==170&&Xe.noImplicitReturns&&!Wx(i,s)&&Mr(r,e.Diagnostics.Not_all_code_paths_return_a_value)}}function r3(r){df(r)||r.flags&32768&&Gs(r,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),ui(r.expression);var t=e.getSourceFileOfNode(r);if(!S_(t)){var i=e.getSpanOfTokenAtPosition(t,r.pos).start,o=r.statement.pos;gp(t,i,o-i,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function t3(r){df(r);var t,i=!1,o=ui(r.expression),s=mm(o);e.forEach(r.caseBlock.clauses,function(c){if(c.kind===289&&!i&&(t===void 0?t=c:(sn(c,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),i=!0)),Se&&c.kind===288){var L=ui(c.expression),G=mm(L),ce=o;(!G||!s)&&(L=G?Du(L):L,ce=Du(o)),eT(ce,L)||CL(L,ce,c.expression,void 0)}e.forEach(c.statements,Wi),Xe.noFallthroughCasesInSwitch&&c.fallthroughFlowNode&&hh(c.fallthroughFlowNode)&&Mr(c,e.Diagnostics.Fallthrough_case_in_switch)}),r.caseBlock.locals&&Dd(r.caseBlock)}function n3(r){df(r)||e.findAncestor(r.parent,function(t){return e.isFunctionLike(t)?"quit":t.kind===249&&t.label.escapedText===r.label.escapedText?(sn(r.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(r.label)),!0):!1}),Wi(r.statement)}function a3(r){df(r)||e.isIdentifier(r.expression)&&!r.expression.escapedText&&AF(r,e.Diagnostics.Line_break_not_permitted_here),r.expression&&ui(r.expression)}function i3(r){df(r),Rb(r.tryBlock);var t=r.catchClause;if(t){if(t.variableDeclaration){var i=t.variableDeclaration,o=e.getEffectiveTypeAnnotationNode(e.getRootDeclaration(i));if(o){var s=ep(i,!1);s&&!(s.flags&3)&&Gs(o,e.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(i.initializer)Gs(i.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var c=t.block.locals;c&&e.forEachKey(t.locals,function(L){var G=c.get(L);G!=null&&G.valueDeclaration&&G.flags&2&&sn(G.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,L)})}}Rb(t.block)}r.finallyBlock&&Rb(r.finallyBlock)}function Fb(r,t,i){var o=Ps(r);if(o.length!==0){for(var s=0,c=sf(r);s<c.length;s++){var L=c[s];i&&L.flags&4194304||jx(r,L,eg(L,8576,!0),Gf(L))}var G=t.valueDeclaration;if(G&&e.isClassLike(G))for(var ce=0,we=G.members;ce<we.length;ce++){var Ue=we[ce];if(!e.isStatic(Ue)&&!l_(Ue)){var Je=wn(Ue);jx(r,Je,tl(Ue.name.expression),Gf(Je))}}if(o.length>1)for(var ar=0,_r=o;ar<_r.length;ar++){var Gr=_r[ar];o3(r,Gr)}}}function jx(r,t,i,o){var s=t.valueDeclaration,c=e.getNameOfDeclaration(s);if(!(c&&e.isPrivateIdentifier(c)))for(var L=$v(r,i),G=e.getObjectFlags(r)&2?e.getDeclarationOfKind(r.symbol,257):void 0,ce=s&&s.kind===220||c&&c.kind===161||Ts(t)===r.symbol?s:void 0,we=function(_r){var Gr=_r.declaration&&Ts(wn(_r.declaration))===r.symbol?_r.declaration:void 0,Zr=ce||Gr||(G&&!e.some(xl(r),function(Et){return!!hd(Et,t.escapedName)&&!!tu(Et,_r.keyType)})?G:void 0);Zr&&!Qi(o,_r.type)&&Mr(Zr,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Wa(t),gn(o),gn(_r.keyType),gn(_r.type))},Ue=0,Je=L;Ue<Je.length;Ue++){var ar=Je[Ue];we(ar)}}function o3(r,t){for(var i=t.declaration,o=$v(r,t.keyType),s=e.getObjectFlags(r)&2?e.getDeclarationOfKind(r.symbol,257):void 0,c=i&&Ts(wn(i))===r.symbol?i:void 0,L=function(Ue){if(Ue===t)return"continue";var Je=Ue.declaration&&Ts(wn(Ue.declaration))===r.symbol?Ue.declaration:void 0,ar=c||Je||(s&&!e.some(xl(r),function(_r){return!!oc(_r,t.keyType)&&!!tu(_r,Ue.keyType)})?s:void 0);ar&&!Qi(t.type,Ue.type)&&Mr(ar,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3,gn(t.keyType),gn(t.type),gn(Ue.keyType),gn(Ue.type))},G=0,ce=o;G<ce.length;G++){var we=ce[G];L(we)}}function Tg(r,t){switch(r.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Mr(r,t,r.escapedText)}}function s3(r){De>=1&&r.escapedText==="Object"&&(Ae<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&Mr(r,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[Ae])}function Vh(r){if(r)for(var t=!1,i=0;i<r.length;i++){var o=r[i];if(ux(o),Se){o.default?(t=!0,l3(o.default,r,i)):t&&Mr(o,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var s=0;s<i;s++)r[s].symbol===o.symbol&&Mr(o.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(o.name))}}}function l3(r,t,i){o(r);function o(s){if(s.kind===177){var c=nh(s);if(c.flags&262144)for(var L=i;L<t.length;L++)c.symbol===wn(t[L])&&Mr(s,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(s,o)}}function Hx(r){if(!(r.declarations&&r.declarations.length===1)){var t=Ja(r);if(!t.typeParametersChecked){t.typeParametersChecked=!0;var i=g3(r);if(!i||i.length<=1)return;var o=po(r);if(!c3(i,o.localTypeParameters))for(var s=Wa(r),c=0,L=i;c<L.length;c++){var G=L[c];Mr(G.name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,s)}}}}function c3(r,t){for(var i=e.length(t),o=lf(t),s=0,c=r;s<c.length;s++){var L=c[s],G=e.getEffectiveTypeParameterDeclarations(L),ce=G.length;if(ce<o||ce>i)return!1;for(var we=0;we<ce;we++){var Ue=G[we],Je=t[we];if(Ue.name.escapedText!==Je.symbol.escapedName)return!1;var ar=e.getEffectiveConstraintOfTypeParameter(Ue),_r=ar&&Da(ar),Gr=Nl(Je);if(_r&&Gr&&!jf(_r,Gr))return!1;var Zr=Ue.default&&Da(Ue.default),Et=Bn(Je);if(Zr&&Et&&!jf(Zr,Et))return!1}}return!0}function u3(r){return Jx(r),Sv(r),An(wn(r))}function f3(r){e.forEach(r.members,Wi),Dd(r)}function d3(r){e.some(r.decorators)&&e.some(r.members,function(t){return e.hasStaticModifier(t)&&e.isPrivateIdentifierClassElementDeclaration(t)})&&sn(r.decorators[0],e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!r.name&&!e.hasSyntacticModifier(r,512)&&Gs(r,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),Jx(r),e.forEach(r.members,Wi),Dd(r)}function Jx(r){z8(r),Mh(r),bg(r,r.name),Vh(e.getEffectiveTypeParameterDeclarations(r)),gv(r);var t=wn(r),i=po(t),o=Il(i),s=An(t);Hx(t),kb(t),B6(r);var c=!!(r.flags&8388608);c||U6(r);var L=e.getEffectiveBaseTypeNode(r);if(L){e.forEach(L.typeArguments,Wi),De<2&&nl(L.parent,1);var G=e.getClassExtendsHeritageElement(r);G&&G!==L&&ui(G.expression);var ce=xl(i);if(ce.length&&Se){var we=ce[0],Ue=Ju(i),Je=wi(Ue);if(_3(Je,L),Wi(L.expression),e.some(L.typeArguments)){e.forEach(L.typeArguments,Wi);for(var ar=0,_r=vd(Je,L.typeArguments,L);ar<_r.length;ar++){var Gr=_r[ar];if(!gx(L,Gr.typeParameters))break}}var Zr=Il(we,i.thisType);if(Rl(o,Zr,void 0)?Rl(s,SL(Je),r.name||r,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):qx(r,o,Zr,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),Ue.flags&8650752)if(!i_(s))Mr(r.name||r,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any);else{var Et=Ni(Ue,1);Et.some(function(di){return di.flags&4})&&!e.hasSyntacticModifier(r,128)&&Mr(r.name||r,e.Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract)}if(!(Je.symbol&&Je.symbol.flags&32)&&!(Ue.flags&8650752)){var Tt=Bm(Je,L.typeArguments,L);e.forEach(Tt,function(di){return!ou(di.declaration)&&!jf(_o(di),we)})&&Mr(L.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}v3(i,we)}}p3(r,i,o,s);var At=e.getEffectiveImplementsTypeNodes(r);if(At)for(var Vt=0,Nn=At;Vt<Nn.length;Vt++){var on=Nn[Vt];if((!e.isEntityNameExpression(on.expression)||e.isOptionalChain(on.expression))&&Mr(on.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),oT(on),Se){var ca=Eo(Da(on));if(!Ua(ca))if(Ku(ca)){var la=ca.symbol&&ca.symbol.flags&32?e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:e.Diagnostics.Class_0_incorrectly_implements_interface_1,Zr=Il(ca,i.thisType);Rl(o,Zr,void 0)||qx(r,o,Zr,la)}else Mr(on,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}Se&&(Fb(i,t),Fb(s,t,!0),nT(r),b3(r))}function p3(r,t,i,o){for(var s=e.getEffectiveBaseTypeNode(r),c=s&&xl(t),L=c!=null&&c.length?Il(e.first(c),t.thisType):void 0,G=Ju(t),ce=function(ar){if(e.hasAmbientModifier(ar))return"continue";e.isConstructorDeclaration(ar)&&e.forEach(ar.parameters,function(_r){e.isParameterPropertyDeclaration(_r,ar)&&Kx(r,o,G,L,t,i,_r,!0)}),Kx(r,o,G,L,t,i,ar,!1)},we=0,Ue=r.members;we<Ue.length;we++){var Je=Ue[we];ce(Je)}}function Kx(r,t,i,o,s,c,L,G,ce){ce===void 0&&(ce=!0);var we=L.name&&Vc(L.name)||Vc(L);return we?zx(r,t,i,o,s,c,e.hasOverrideModifier(L),e.hasAbstractModifier(L),e.isStatic(L),G,e.symbolName(we),ce?L:void 0):0}function zx(r,t,i,o,s,c,L,G,ce,we,Ue,Je){var ar=e.isInJSFile(r),_r=!!(r.flags&8388608);if(o&&(L||Xe.noImplicitOverride)){var Gr=e.escapeLeadingUnderscores(Ue),Zr=ce?t:c,Et=ce?i:o,Tt=Ii(Zr,Gr),At=Ii(Et,Gr),Vt=gn(o);if(Tt&&!At&&L){if(Je){var Nn=uC(Ue,Et);Nn?Mr(Je,ar?e.Diagnostics.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:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Vt,Wa(Nn)):Mr(Je,ar?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Vt)}return 2}else if(Tt&&(At!=null&&At.declarations)&&Xe.noImplicitOverride&&!_r){var on=e.some(At.declarations,e.hasAbstractModifier);if(L)return 0;if(on){if(G&&on)return Je&&Mr(Je,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Vt),1}else{if(Je){var ca=we?ar?e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:ar?e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Mr(Je,ca,Vt)}return 1}}}else if(L){if(Je){var la=gn(s);Mr(Je,ar?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,la)}return 2}return 0}function qx(r,t,i,o){for(var s=!1,c=function(we){if(e.isStatic(we))return"continue";var Ue=we.name&&Vc(we.name)||Vc(we);if(Ue){var Je=Ii(t,Ue.escapedName),ar=Ii(i,Ue.escapedName);if(Je&&ar){var _r=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Wa(Ue),gn(t),gn(i))};Rl(An(Je),An(ar),we.name||we,void 0,_r)||(s=!0)}}},L=0,G=r.members;L<G.length;L++){var ce=G[L];c(ce)}s||Rl(t,i,r.name||r,o)}function _3(r,t){var i=Ni(r,1);if(i.length){var o=i[0].declaration;if(o&&e.hasEffectiveModifier(o,8)){var s=e.getClassLikeDeclarationOfSymbol(r.symbol);ST(t,s)||Mr(t,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,sl(r.symbol))}}}function m3(r,t){if(!t.name)return 0;var i=wn(r),o=po(i),s=Il(o),c=An(i),L=e.getEffectiveBaseTypeNode(r),G=L&&xl(o),ce=G!=null&&G.length?Il(e.first(G),o.thisType):void 0,we=Ju(o),Ue=t.parent?e.hasOverrideModifier(t):e.hasSyntacticModifier(t,16384),Je=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(t.name));return zx(r,c,we,ce,o,s,Ue,e.hasAbstractModifier(t),e.isStatic(t),!1,Je)}function Am(r){return e.getCheckFlags(r)&1?r.target:r}function g3(r){return e.filter(r.declarations,function(t){return t.kind===256||t.kind===257})}function v3(r,t){var i,o,s=Yi(t);e:for(var c=0,L=s;c<L.length;c++){var G=L[c],ce=Am(G);if(!(ce.flags&4194304)){var we=hd(r,ce.escapedName);if(we){var Ue=Am(we),Je=e.getDeclarationModifierFlagsFromSymbol(ce);if(e.Debug.assert(!!Ue,"derived should point to something, even if it is the base class' declaration."),Ue===ce){var ar=e.getClassLikeDeclarationOfSymbol(r.symbol);if(Je&128&&(!ar||!e.hasSyntacticModifier(ar,128))){for(var _r=0,Gr=xl(r);_r<Gr.length;_r++){var Zr=Gr[_r];if(Zr!==t){var Et=hd(Zr,ce.escapedName),Tt=Et&&Am(Et);if(Tt&&Tt!==ce)continue e}}ar.kind===225?Mr(ar,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Wa(G),gn(t)):Mr(ar,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,gn(r),Wa(G),gn(t))}}else{var At=e.getDeclarationModifierFlagsFromSymbol(Ue);if(Je&8||At&8)continue;var Vt=void 0,Nn=ce.flags&98308,on=Ue.flags&98308;if(Nn&&on){if(Je&128&&!(ce.valueDeclaration&&e.isPropertyDeclaration(ce.valueDeclaration)&&ce.valueDeclaration.initializer)||ce.valueDeclaration&&ce.valueDeclaration.parent.kind===257||Ue.valueDeclaration&&e.isBinaryExpression(Ue.valueDeclaration))continue;var ca=Nn!==4&&on===4,la=Nn===4&&on!==4;if(ca||la){var di=ca?e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Mr(e.getNameOfDeclaration(Ue.valueDeclaration)||Ue.valueDeclaration,di,Wa(ce),gn(t),gn(r))}else if(Ye){var Aa=(i=Ue.declarations)===null||i===void 0?void 0:i.find(function(xo){return xo.kind===166&&!xo.initializer});if(Aa&&!(Ue.flags&33554432)&&!(Je&128)&&!(At&128)&&!(!((o=Ue.declarations)===null||o===void 0)&&o.some(function(xo){return!!(xo.flags&8388608)}))){var Li=$u(e.getClassLikeDeclarationOfSymbol(r.symbol)),Bi=Aa.name;if(Aa.exclamationToken||!Li||!e.isIdentifier(Bi)||!br||!Yx(Bi,r,Li)){var Ai=e.Diagnostics.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;Mr(e.getNameOfDeclaration(Ue.valueDeclaration)||Ue.valueDeclaration,Ai,Wa(ce),gn(t))}}}continue}else if(I1(ce)){if(I1(Ue)||Ue.flags&4)continue;e.Debug.assert(!!(Ue.flags&98304)),Vt=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else ce.flags&98304?Vt=e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Vt=e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Mr(e.getNameOfDeclaration(Ue.valueDeclaration)||Ue.valueDeclaration,Vt,gn(t),Wa(ce),gn(r))}}}}}function h3(r,t,i){if(!e.length(t))return i;var o=new e.Map;e.forEach(i,function(ar){o.set(ar.escapedName,ar)});for(var s=0,c=t;s<c.length;s++)for(var L=c[s],G=Yi(Il(L,r.thisType)),ce=0,we=G;ce<we.length;ce++){var Ue=we[ce],Je=o.get(Ue.escapedName);Je&&!PL(Je,Ue)&&o.delete(Ue.escapedName)}return e.arrayFrom(o.values())}function y3(r,t){var i=xl(r);if(i.length<2)return!0;var o=new e.Map;e.forEach(Gg(r).declaredProperties,function(Tt){o.set(Tt.escapedName,{prop:Tt,containingType:r})});for(var s=!0,c=0,L=i;c<L.length;c++)for(var G=L[c],ce=Yi(Il(G,r.thisType)),we=0,Ue=ce;we<Ue.length;we++){var Je=Ue[we],ar=o.get(Je.escapedName);if(!ar)o.set(Je.escapedName,{prop:Je,containingType:G});else{var _r=ar.containingType!==r;if(_r&&!PL(ar.prop,Je)){s=!1;var Gr=gn(ar.containingType),Zr=gn(G),Et=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,Wa(Je),Gr,Zr);Et=e.chainDiagnosticMessages(Et,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,gn(r),Gr,Zr),ua.add(e.createDiagnosticForNodeFromMessageChain(t,Et))}}}return s}function b3(r){if(!(!br||!kr||r.flags&8388608))for(var t=$u(r),i=0,o=r.members;i<o.length;i++){var s=o[i];if(!(e.getEffectiveModifierFlags(s)&2)&&!e.isStatic(s)&&Xx(s)){var c=s.name;if(e.isIdentifier(c)||e.isPrivateIdentifier(c)){var L=An(wn(s));L.flags&3||lc(L)&32768||(!t||!Yx(c,L,t))&&Mr(s.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(c))}}}}function Xx(r){return r.kind===166&&!e.hasAbstractModifier(r)&&!r.exclamationToken&&!r.initializer}function E3(r,t,i,o,s){for(var c=0,L=i;c<L.length;c++){var G=L[c];if(G.pos>=o&&G.pos<=s){var ce=e.factory.createPropertyAccessExpression(e.factory.createThis(),r);e.setParent(ce.expression,ce),e.setParent(ce,G),ce.flowNode=G.returnFlowNode;var we=y_(ce,t,Jf(t));if(!(lc(we)&32768))return!0}}return!1}function Yx(r,t,i){var o=e.factory.createPropertyAccessExpression(e.factory.createThis(),r);e.setParent(o.expression,o),e.setParent(o,i),o.flowNode=i.returnFlowNode;var s=y_(o,t,Jf(t));return!(lc(s)&32768)}function T3(r){if(ff(r)||tF(r),Vh(r.typeParameters),Se){Tg(r.name,e.Diagnostics.Interface_name_cannot_be_0),gv(r);var t=wn(r);Hx(t);var i=e.getDeclarationOfKind(t,257);if(r===i){var o=po(t),s=Il(o);if(y3(o,r.name)){for(var c=0,L=xl(o);c<L.length;c++){var G=L[c];Rl(s,Il(G,o.thisType),r.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1)}Fb(o,t)}}px(r)}e.forEach(e.getInterfaceBaseTypeNodes(r),function(ce){(!e.isEntityNameExpression(ce.expression)||e.isOptionalChain(ce.expression))&&Mr(ce.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),oT(ce)}),e.forEach(r.members,Wi),Se&&(nT(r),Dd(r))}function S3(r){ff(r),Tg(r.name,e.Diagnostics.Type_alias_name_cannot_be_0),gv(r),Vh(r.typeParameters),r.type.kind===138?(!V.has(r.name.escapedText)||e.length(r.typeParameters)!==1)&&Mr(r.type,e.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(Wi(r.type),Dd(r))}function Qx(r){var t=Zn(r);if(!(t.flags&16384)){t.flags|=16384;for(var i=0,o=0,s=r.members;o<s.length;o++){var c=s[o],L=D3(c,i);Zn(c).enumMemberValue=L,i=typeof L=="number"?L+1:void 0}}}function D3(r,t){if(e.isComputedNonLiteralName(r.name))Mr(r.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var i=e.getTextOfPropertyName(r.name);zf(i)&&!e.isInfinityOrNaNString(i)&&Mr(r.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}if(r.initializer)return L3(r);if(!(r.parent.flags&8388608&&!e.isEnumConst(r.parent)&&Bo(wn(r.parent))===0)){if(t!==void 0)return t;Mr(r.name,e.Diagnostics.Enum_member_must_have_initializer)}}function L3(r){var t=Bo(wn(r.parent)),i=e.isEnumConst(r.parent),o=r.initializer,s=t===1&&!zi(r)?void 0:L(o);if(s!==void 0)i&&typeof s=="number"&&!isFinite(s)&&Mr(o,isNaN(s)?e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(t===1)return Mr(o,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;if(i)Mr(o,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values);else if(r.parent.flags&8388608)Mr(o,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression);else{var c=ui(o);ys(c,296)?Rl(c,po(wn(r.parent)),o,void 0):Mr(o,e.Diagnostics.Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead,gn(c))}}return s;function L(ce){switch(ce.kind){case 218:var we=L(ce.operand);if(typeof we=="number")switch(ce.operator){case 39:return we;case 40:return-we;case 54:return~we}break;case 220:var Ue=L(ce.left),Je=L(ce.right);if(typeof Ue=="number"&&typeof Je=="number")switch(ce.operatorToken.kind){case 51:return Ue|Je;case 50:return Ue&Je;case 48:return Ue>>Je;case 49:return Ue>>>Je;case 47:return Ue<<Je;case 52:return Ue^Je;case 41:return Ue*Je;case 43:return Ue/Je;case 39:return Ue+Je;case 40:return Ue-Je;case 44:return Ue%Je;case 42:return Math.pow(Ue,Je)}else if(typeof Ue=="string"&&typeof Je=="string"&&ce.operatorToken.kind===39)return Ue+Je;break;case 10:case 14:return ce.text;case 8:return wT(ce),+ce.text;case 211:return L(ce.expression);case 79:var ar=ce;return e.isInfinityOrNaNString(ar.escapedText)?+ar.escapedText:e.nodeIsMissing(ce)?0:G(ce,wn(r.parent),ar.escapedText);case 206:case 205:var _r=ce;if(yT(_r)){var Gr=tl(_r.expression);if(Gr.symbol&&Gr.symbol.flags&384){var Zr=void 0;return _r.kind===205?Zr=_r.name.escapedText:Zr=e.escapeLeadingUnderscores(e.cast(_r.argumentExpression,e.isLiteralExpression).text),G(ce,Gr.symbol,Zr)}}break}}function G(ce,we,Ue){var Je=we.exports.get(Ue);if(Je){var ar=Je.valueDeclaration;if(ar!==r)return ar&&Ou(ar,r)?Kb(ar):(Mr(ce,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);Mr(ce,e.Diagnostics.Property_0_is_used_before_being_assigned,Wa(Je))}}}function yT(r){return r.kind===79||r.kind===205&&yT(r.expression)||r.kind===206&&yT(r.expression)&&e.isStringLiteralLike(r.argumentExpression)}function A3(r){if(Se){ff(r),bg(r,r.name),gv(r),r.members.forEach(C3),Qx(r);var t=wn(r),i=e.getDeclarationOfKind(t,r.kind);if(r===i){if(t.declarations&&t.declarations.length>1){var o=e.isEnumConst(r);e.forEach(t.declarations,function(c){e.isEnumDeclaration(c)&&e.isEnumConst(c)!==o&&Mr(e.getNameOfDeclaration(c),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})}var s=!1;e.forEach(t.declarations,function(c){if(c.kind!==259)return!1;var L=c;if(!L.members.length)return!1;var G=L.members[0];G.initializer||(s?Mr(G.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):s=!0)})}}}function C3(r){e.isPrivateIdentifier(r.name)&&Mr(r,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function x3(r){var t=r.declarations;if(t)for(var i=0,o=t;i<o.length;i++){var s=o[i];if((s.kind===256||s.kind===255&&e.nodeIsPresent(s.body))&&!(s.flags&8388608))return s}}function I3(r,t){var i=e.getEnclosingBlockScopeContainer(r),o=e.getEnclosingBlockScopeContainer(t);return Oc(i)?Oc(o):Oc(o)?!1:i===o}function N3(r){if(Se){var t=e.isGlobalScopeAugmentation(r),i=r.flags&8388608;t&&!i&&Mr(r.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var o=e.isAmbientModule(r),s=o?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module;if(Wh(r,s))return;ff(r)||!i&&r.name.kind===10&&sn(r.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(r.name)&&bg(r,r.name),gv(r);var c=wn(r);if(c.flags&512&&!i&&c.declarations&&c.declarations.length>1&&D(r,e.shouldPreserveConstEnums(Xe))){var L=x3(c);L&&(e.getSourceFileOfNode(r)!==e.getSourceFileOfNode(L)?Mr(r.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):r.pos<L.pos&&Mr(r.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var G=e.getDeclarationOfKind(c,256);G&&I3(r,G)&&(Zn(r).flags|=32768)}if(o)if(e.isExternalModuleAugmentation(r)){var ce=t||wn(r).flags&33554432;if(ce&&r.body)for(var we=0,Ue=r.body.statements;we<Ue.length;we++){var Je=Ue[we];bT(Je,t)}}else Oc(r.parent)?t?Mr(r.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(r.name))&&Mr(r.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):t?Mr(r.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Mr(r.name,e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}r.body&&(Wi(r.body),e.isGlobalScopeAugmentation(r)||Dd(r))}function bT(r,t){var i;switch(r.kind){case 236:for(var o=0,s=r.declarationList.declarations;o<s.length;o++){var c=s[o];bT(c,t)}break;case 270:case 271:Gs(r,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 264:case 265:Gs(r,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 202:case 253:var L=r.name;if(e.isBindingPattern(L)){for(var G=0,ce=L.elements;G<ce.length;G++){var we=ce[G];bT(we,t)}break}case 256:case 259:case 255:case 257:case 260:case 258:if(t)return;var Ue=wn(r);if(Ue){var Je=!(Ue.flags&33554432);Je||(Je=!!(!((i=Ue.parent)===null||i===void 0)&&i.declarations)&&e.isExternalModuleAugmentation(Ue.parent.declarations[0]))}break}}function k3(r){switch(r.kind){case 79:return r;case 160:do r=r.left;while(r.kind!==79);return r;case 205:do{if(e.isModuleExportsAccessExpression(r.expression)&&!e.isPrivateIdentifier(r.name))return r.name;r=r.expression}while(r.kind!==79);return r}}function ET(r){var t=e.getExternalModuleName(r);if(!t||e.nodeIsMissing(t))return!1;if(!e.isStringLiteral(t))return Mr(t,e.Diagnostics.String_literal_expected),!1;var i=r.parent.kind===261&&e.isAmbientModule(r.parent.parent);return r.parent.kind!==303&&!i?(Mr(t,r.kind===271?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1):i&&e.isExternalModuleNameRelative(t.text)&&!Ul(r)?(Mr(r,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1):!0}function Gb(r){var t,i=wn(r),o=ms(i);if(o!==We){i=Ga(i.exportSymbol||i);var s=(i.flags&1160127?111551:0)|(i.flags&788968?788968:0)|(i.flags&1920?1920:0);if(o.flags&s){var c=r.kind===274?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0;Mr(r,c,Wa(i))}if(Xe.isolatedModules&&!e.isTypeOnlyImportOrExportDeclaration(r)&&!(r.flags&8388608)){var L=Ln(i),G=!(o.flags&111551);if(G||L)switch(r.kind){case 266:case 269:case 264:{if(Xe.preserveValueImports){e.Debug.assertIsDefined(r.name,"An ImportClause with a symbol should have a name");var c=G?e.Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,ce=e.idText(r.kind===269&&r.propertyName||r.name);Rd(Mr(r,c,ce),G?void 0:L,ce)}break}case 274:if(e.getSourceFileOfNode(L)!==e.getSourceFileOfNode(r)){var c=G?e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled,ce=e.idText(r.propertyName||r.name);Rd(Mr(r,c,ce),G?void 0:L,ce);return}}}e.isImportSpecifier(r)&&(!((t=o.declarations)===null||t===void 0)&&t.every(function(we){return!!(e.getCombinedNodeFlags(we)&134217728)}))&&kc(r.name,o.declarations,i.escapedName)}}function Bb(r){bg(r,r.name),Gb(r),r.kind===269&&e.idText(r.propertyName||r.name)==="default"&&e.getESModuleInterop(Xe)&&Ae!==e.ModuleKind.System&&(Ae<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&nl(r,131072)}function Zx(r){var t;if(r.assertClause){if(Ae!==e.ModuleKind.ESNext)return sn(r.assertClause,e.Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext);if(e.isImportDeclaration(r)?!((t=r.importClause)===null||t===void 0)&&t.isTypeOnly:r.isTypeOnly)return sn(r.assertClause,e.Diagnostics.Import_assertions_cannot_be_used_with_type_only_imports_or_exports)}}function O3(r){if(!Wh(r,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)){if(!ff(r)&&e.hasEffectiveModifiers(r)&&Gs(r,e.Diagnostics.An_import_declaration_cannot_have_modifiers),ET(r)){var t=r.importClause;if(t&&!xF(t)&&(t.name&&Bb(t),t.namedBindings))if(t.namedBindings.kind===267)Bb(t.namedBindings),Ae!==e.ModuleKind.System&&(Ae<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&e.getESModuleInterop(Xe)&&nl(r,65536);else{var i=ws(r,r.moduleSpecifier);i&&e.forEach(t.namedBindings.elements,Bb)}}Zx(r)}}function R3(r){if(!Wh(r,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(ff(r),e.isInternalModuleImportEqualsDeclaration(r)||ET(r)))if(Bb(r),e.hasSyntacticModifier(r,1)&&us(r),r.moduleReference.kind!==276){var t=ms(wn(r));if(t!==We){if(t.flags&111551){var i=e.getFirstIdentifier(r.moduleReference);rs(i,112575).flags&1920||Mr(i,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(i))}t.flags&788968&&Tg(r.name,e.Diagnostics.Import_name_cannot_be_0)}r.isTypeOnly&&sn(r,e.Diagnostics.An_import_alias_cannot_use_import_type)}else Ae>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(r).impliedNodeFormat===void 0&&!r.isTypeOnly&&!(r.flags&8388608)&&sn(r,e.Diagnostics.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 w3(r){if(!Wh(r,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)){if(!ff(r)&&e.hasEffectiveModifiers(r)&&Gs(r,e.Diagnostics.An_export_declaration_cannot_have_modifiers),r.moduleSpecifier&&r.exportClause&&e.isNamedExports(r.exportClause)&&e.length(r.exportClause.elements)&&De===0&&nl(r,4194304),M3(r),!r.moduleSpecifier||ET(r))if(r.exportClause&&!e.isNamespaceExport(r.exportClause)){e.forEach(r.exportClause.elements,V3);var t=r.parent.kind===261&&e.isAmbientModule(r.parent.parent),i=!t&&r.parent.kind===261&&!r.moduleSpecifier&&r.flags&8388608;r.parent.kind!==303&&!t&&!i&&Mr(r,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var o=ws(r,r.moduleSpecifier);o&&ld(o)?Mr(r.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Wa(o)):r.exportClause&&Gb(r.exportClause),Ae!==e.ModuleKind.System&&(Ae<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&(r.exportClause?e.getESModuleInterop(Xe)&&nl(r,65536):nl(r,32768))}Zx(r)}}function M3(r){var t;return r.isTypeOnly?((t=r.exportClause)===null||t===void 0?void 0:t.kind)===272?xI(r.exportClause):sn(r,e.Diagnostics.Only_named_exports_may_use_export_type):!1}function Wh(r,t){var i=r.parent.kind===303||r.parent.kind===261||r.parent.kind===260;return i||Gs(r,t),!i}function P3(r){return e.forEachImportClauseDeclaration(r,function(t){return!!wn(t).isReferenced})}function F3(r){return e.forEachImportClauseDeclaration(r,function(t){return!!Ja(wn(t)).constEnumReferenced})}function G3(r){return e.isImportDeclaration(r)&&r.importClause&&!r.importClause.isTypeOnly&&P3(r.importClause)&&!Jb(r.importClause,!0)&&!F3(r.importClause)}function B3(r){return e.isImportEqualsDeclaration(r)&&e.isExternalModuleReference(r.moduleReference)&&!r.isTypeOnly&&wn(r).isReferenced&&!Jb(r,!1)&&!Ja(wn(r)).constEnumReferenced}function U3(r){for(var t=0,i=r.statements;t<i.length;t++){var o=i[t];(G3(o)||B3(o))&&Mr(o,e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}}function V3(r){if(Gb(r),e.getEmitDeclarations(Xe)&&Mf(r.propertyName||r.name,!0),r.parent.parent.moduleSpecifier)e.getESModuleInterop(Xe)&&Ae!==e.ModuleKind.System&&(Ae<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&e.idText(r.propertyName||r.name)==="default"&&nl(r,131072);else{var t=r.propertyName||r.name,i=Uo(t,t.escapedText,2998271,void 0,void 0,!0);if(i&&(i===He||i===pr||i.declarations&&Oc(fa(i.declarations[0]))))Mr(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(t));else{us(r);var o=i&&(i.flags&2097152?ms(i):i);(!o||o===We||o.flags&111551)&&Ss(r.propertyName||r.name)}}}function W3(r){var t=r.isExportEquals?e.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(!Wh(r,t)){var i=r.parent.kind===303?r.parent:r.parent.parent;if(i.kind===260&&!e.isAmbientModule(i)){r.isExportEquals?Mr(r,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Mr(r,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!ff(r)&&e.hasEffectiveModifiers(r)&&Gs(r,e.Diagnostics.An_export_assignment_cannot_have_modifiers);var o=e.getEffectiveTypeAnnotationNode(r);if(o&&Rl(Ss(r.expression),Da(o),r.expression),r.expression.kind===79){var s=r.expression,c=rs(s,67108863,!0,!0,r);if(c){ab(c,s);var L=c.flags&2097152?ms(c):c;(L===We||L.flags&111551)&&Ss(r.expression)}else Ss(r.expression);e.getEmitDeclarations(Xe)&&Mf(r.expression,!0)}else Ss(r.expression);$x(i),r.flags&8388608&&!e.isEntityNameExpression(r.expression)&&sn(r.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),r.isExportEquals&&!(r.flags&8388608)&&(Ae>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(r).impliedNodeFormat!==e.ModuleKind.CommonJS?sn(r,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):Ae===e.ModuleKind.System&&sn(r,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}}function j3(r){return e.forEachEntry(r.exports,function(t,i){return i!=="export="})}function $x(r){var t=wn(r),i=Ja(t);if(!i.exportsChecked){var o=t.exports.get("export=");if(o&&j3(t)){var s=ec(o)||o.valueDeclaration;s&&!Ul(s)&&!e.isInJSFile(s)&&Mr(s,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var c=Gl(t);c&&c.forEach(function(L,G){var ce=L.declarations,we=L.flags;if(G!=="__export"&&!(we&1984)){var Ue=e.countWhere(ce,q);if(!(we&524288&&Ue<=2)&&Ue>1&&!Ub(ce))for(var Je=0,ar=ce;Je<ar.length;Je++){var _r=ar[Je];u(_r)&&ua.add(e.createDiagnosticForNode(_r,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(G)))}}}),i.exportsChecked=!0}}function Ub(r){return r&&r.length>1&&r.every(function(t){return e.isInJSFile(t)&&e.isAccessExpression(t)&&(e.isExportsIdentifier(t.expression)||e.isModuleExportsAccessExpression(t.expression))})}function Wi(r){if(r){var t=_e;_e=r,he=0,H3(r),_e=t}}function H3(r){e.isInJSFile(r)&&e.forEach(r.jsDoc,function(i){var o=i.tags;return e.forEach(o,Wi)});var t=r.kind;if(R)switch(t){case 260:case 256:case 257:case 255:R.throwIfCancellationRequested()}switch(t>=236&&t<=252&&r.flowNode&&!hh(r.flowNode)&&pc(Xe.allowUnreachableCode===!1,r,e.Diagnostics.Unreachable_code_detected),t){case 162:return ux(r);case 163:return fx(r);case 166:return _x(r);case 165:return V6(r);case 179:case 178:case 173:case 174:case 175:return mv(r);case 168:case 167:return W6(r);case 169:return j6(r);case 170:return H6(r);case 171:case 172:return mx(r);case 177:return oT(r);case 176:return F6(r);case 180:return z6(r);case 181:return q6(r);case 182:return X6(r);case 183:return Y6(r);case 186:case 187:return Q6(r);case 190:case 184:case 185:return Wi(r.type);case 191:return r4(r);case 192:return t4(r);case 188:return n4(r);case 189:return a4(r);case 197:return i4(r);case 199:return o4(r);case 196:return s4(r);case 326:return b4(r);case 327:return y4(r);case 343:case 336:case 337:return p4(r);case 342:return _4(r);case 341:return m4(r);case 338:return g4(r);case 345:return v4(r);case 315:h4(r);case 313:case 312:case 310:case 311:case 320:eI(r),e.forEachChild(r,Wi);return;case 316:J3(r);return;case 307:return Wi(r.type);case 331:case 333:case 332:return E4(r);case 193:return Z6(r);case 194:return $6(r);case 255:return d4(r);case 234:case 261:return Rb(r);case 236:return F4(r);case 237:return G4(r);case 238:return B4(r);case 239:return W4(r);case 240:return j4(r);case 241:return H4(r);case 242:return K4(r);case 243:return J4(r);case 244:case 245:return $4(r);case 246:return e3(r);case 247:return r3(r);case 248:return t3(r);case 249:return n3(r);case 250:return a3(r);case 251:return i3(r);case 253:return fT(r);case 202:return P4(r);case 256:return d3(r);case 257:return T3(r);case 258:return S3(r);case 259:return A3(r);case 260:return N3(r);case 265:return O3(r);case 264:return R3(r);case 271:return w3(r);case 270:return W3(r);case 235:case 252:df(r);return;case 275:return J6(r)}}function eI(r){e.isInJSFile(r)||sn(r,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function J3(r){eI(r),Wi(r.type);var t=r.parent;if(e.isParameter(t)&&e.isJSDocFunctionType(t.parent)){e.last(t.parent.parameters)!==t&&Mr(r,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);return}e.isJSDocTypeExpression(t)||Mr(r,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var i=r.parent.parent;if(!e.isJSDocParameterTag(i)){Mr(r,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}var o=e.getParameterSymbolFromJSDoc(i);if(o){var s=e.getHostSignatureFromJSDoc(i);(!s||e.last(s.parameters).symbol!==o)&&Mr(r,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}function K3(r){var t=Da(r.type),i=r.parent,o=r.parent.parent;if(e.isJSDocTypeExpression(r.parent)&&e.isJSDocParameterTag(o)){var s=e.getHostSignatureFromJSDoc(o),c=e.isJSDocCallbackTag(o.parent.parent);if(s||c){var L=c?e.lastOrUndefined(o.parent.parent.typeExpression.parameters):e.lastOrUndefined(s.parameters),G=e.getParameterSymbolFromJSDoc(o);if(!L||G&&L.symbol===G&&e.isRestParameter(L))return zs(t)}}return e.isParameter(i)&&e.isJSDocFunctionType(i.parent)?zs(t):Wl(t)}function Sv(r){var t=e.getSourceFileOfNode(r),i=Zn(t);if(!(i.flags&1)){i.deferredNodes=i.deferredNodes||new e.Map;var o=N(r);i.deferredNodes.set(o,r)}}function z3(r){var t=Zn(r);t.deferredNodes&&t.deferredNodes.forEach(q3)}function q3(r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkDeferredNode",{kind:r.kind,pos:r.pos,end:r.end});var t=_e;switch(_e=r,he=0,r.kind){case 207:case 208:case 209:case 164:case 279:Tm(r);break;case 212:case 213:case 168:case 167:i6(r);break;case 171:case 172:mx(r);break;case 225:f3(r);break;case 278:MM(r);break;case 277:FM(r);break}_e=t,e.tracing===null||e.tracing===void 0||e.tracing.pop()}function TT(r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkSourceFile",{path:r.path},!0),e.performance.mark("beforeCheck"),X3(r),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck"),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function rI(r,t){if(t)return!1;switch(r){case 0:return!!Xe.noUnusedLocals;case 1:return!!Xe.noUnusedParameters;default:return e.Debug.assertNever(r)}}function tI(r){return gi.get(r.path)||e.emptyArray}function X3(r){var t=Zn(r);if(!(t.flags&1)){if(e.skipTypeChecking(r,Xe,j))return;SF(r),e.clear(pn),e.clear(fn),e.clear(kn),e.clear(Kn),e.forEach(r.statements,Wi),Wi(r.endOfFileToken),z3(r),e.isExternalOrCommonJsModule(r)&&Dd(r),!r.isDeclarationFile&&(Xe.noUnusedLocals||Xe.noUnusedParameters)&&Sx(tI(r),function(i,o,s){!e.containsParseError(i)&&rI(o,!!(i.flags&8388608))&&ua.add(s)}),Xe.importsNotUsedAsValues===2&&!r.isDeclarationFile&&e.isExternalModule(r)&&U3(r),e.isExternalOrCommonJsModule(r)&&$x(r),pn.length&&(e.forEach(pn,C4),e.clear(pn)),fn.length&&(e.forEach(fn,x4),e.clear(fn)),kn.length&&(e.forEach(kn,O4),e.clear(kn)),Kn.length&&(e.forEach(Kn,w4),e.clear(Kn)),t.flags|=1}}function nI(r,t){try{return R=t,Y3(r)}finally{R=void 0}}function Y3(r){if(aI(),r){var t=ua.getGlobalDiagnostics(),i=t.length;TT(r);var o=ua.getDiagnostics(r.fileName),s=ua.getGlobalDiagnostics();if(s!==t){var c=e.relativeComplement(t,s,e.compareDiagnostics);return e.concatenate(c,o)}else if(i===0&&s.length>0)return e.concatenate(s,o);return o}return e.forEach(j.getSourceFiles(),TT),ua.getDiagnostics()}function Q3(){return aI(),ua.getGlobalDiagnostics()}function aI(){if(!Se)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function Z3(r,t){if(r.flags&16777216)return[];var i=e.createSymbolTable(),o=!1;return s(),i.delete("this"),qm(i);function s(){for(;r;){switch(r.locals&&!Oc(r)&&L(r.locals,t),r.kind){case 303:if(!e.isExternalModule(r))break;case 260:G(wn(r).exports,t&2623475);break;case 259:L(wn(r).exports,t&8);break;case 225:var ce=r.name;ce&&c(r.symbol,t);case 256:case 257:o||L(af(wn(r)),t&788968);break;case 212:var we=r.name;we&&c(r.symbol,t);break}e.introducesArgumentsExoticObject(r)&&c(Jr,t),o=e.isStatic(r),r=r.parent}L(Pr,t)}function c(ce,we){if(e.getCombinedLocalAndExportSymbolFlags(ce)&we){var Ue=ce.escapedName;i.has(Ue)||i.set(Ue,ce)}}function L(ce,we){we&&ce.forEach(function(Ue){c(Ue,we)})}function G(ce,we){we&&ce.forEach(function(Ue){!e.getDeclarationOfKind(Ue,274)&&!e.getDeclarationOfKind(Ue,273)&&c(Ue,we)})}}function $3(r){return r.kind===79&&jh(r.parent)&&e.getNameOfDeclaration(r.parent)===r}function jh(r){switch(r.kind){case 162:case 256:case 257:case 258:case 259:case 343:case 336:case 337:return!0;case 266:return r.isTypeOnly;case 269:case 274:return r.parent.parent.isTypeOnly;default:return!1}}function iI(r){for(;r.parent.kind===160;)r=r.parent;return r.parent.kind===177}function e8(r){for(;r.parent.kind===205;)r=r.parent;return r.parent.kind===227}function oI(r,t){for(var i;r=e.getContainingClass(r),!(!r||(i=t(r))););return i}function r8(r){return!!e.findAncestor(r,function(t){return e.isConstructorDeclaration(t)&&e.nodeIsPresent(t.body)||e.isPropertyDeclaration(t)?!0:e.isClassLike(t)||e.isFunctionLikeDeclaration(t)?"quit":!1})}function ST(r,t){return!!oI(r,function(i){return i===t})}function t8(r){for(;r.parent.kind===160;)r=r.parent;if(r.parent.kind===264)return r.parent.moduleReference===r?r.parent:void 0;if(r.parent.kind===270)return r.parent.expression===r?r.parent:void 0}function Vb(r){return t8(r)!==void 0}function n8(r){var t=e.getAssignmentDeclarationKind(r.parent.parent);switch(t){case 1:case 3:return wn(r.parent);case 4:case 2:case 5:return wn(r.parent.parent)}}function a8(r){for(var t=r.parent;e.isQualifiedName(t);)r=t,t=t.parent;if(t&&t.kind===199&&t.qualifier===r)return t}function sI(r){if(e.isDeclarationName(r))return wn(r.parent);if(e.isInJSFile(r)&&r.parent.kind===205&&r.parent===r.parent.parent.left&&!e.isPrivateIdentifier(r)&&!e.isJSDocMemberName(r)){var t=n8(r);if(t)return t}if(r.parent.kind===270&&e.isEntityNameExpression(r)){var i=rs(r,2998271,!0);if(i&&i!==We)return i}else if(e.isEntityName(r)&&Vb(r)){var o=e.getAncestor(r,264);return e.Debug.assert(o!==void 0),sd(r,!0)}if(e.isEntityName(r)){var s=a8(r);if(s){Da(s);var c=Zn(r).resolvedSymbol;return c===We?void 0:c}}for(;e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(r);)r=r.parent;if(e8(r)){var L=0;r.parent.kind===227?(L=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(r.parent)&&(L|=111551)):L=1920,L|=2097152;var G=e.isEntityNameExpression(r)?rs(r,L):void 0;if(G)return G}if(r.parent.kind===338)return e.getParameterSymbolFromJSDoc(r.parent);if(r.parent.kind===162&&r.parent.parent.kind===342){e.Debug.assert(!e.isInJSFile(r));var ce=e.getTypeParameterFromJsDoc(r.parent);return ce&&ce.symbol}if(e.isExpressionNode(r)){if(e.nodeIsMissing(r))return;var we=e.findAncestor(r,e.or(e.isJSDocLinkLike,e.isJSDocNameReference,e.isJSDocMemberName)),L=we?901119:111551;if(r.kind===79){if(e.isJSXTagName(r)&&fg(r)){var Ue=L1(r.parent);return Ue===We?void 0:Ue}var Je=rs(r,L,!1,!we,e.getHostSignatureFromJSDoc(r));if(!Je&&we){var ar=e.findAncestor(r,e.or(e.isClassLike,e.isInterfaceDeclaration));if(ar)return Wb(r,wn(ar))}return Je}else{if(e.isPrivateIdentifier(r))return _b(r);if(r.kind===205||r.kind===160){var _r=Zn(r);return _r.resolvedSymbol?_r.resolvedSymbol:(r.kind===205?tC(r,0):nC(r,0),!_r.resolvedSymbol&&we&&e.isQualifiedName(r)?Wb(r):_r.resolvedSymbol)}else if(e.isJSDocMemberName(r))return Wb(r)}}else if(iI(r)){var L=r.parent.kind===177?788968:1920,Ue=rs(r,L,!1,!0);return Ue&&Ue!==We?Ue:Ty(r)}if(r.parent.kind===176)return rs(r,1)}function Wb(r,t){if(e.isEntityName(r)){var i=901119,o=rs(r,i,!1,!0,e.getHostSignatureFromJSDoc(r));if(!o&&e.isIdentifier(r)&&t&&(o=Ga(ks(Js(t),r.escapedText,i))),o)return o}var s=e.isIdentifier(r)?t:Wb(r.left),c=e.isIdentifier(r)?r.escapedText:r.right.escapedText;if(s){var L=s.flags&111551&&Ii(An(s),"prototype"),G=L?An(L):po(s);return Ii(G,c)}}function Vc(r,t){if(r.kind===303)return e.isExternalModule(r)?Ga(r.symbol):void 0;var i=r.parent,o=i.parent;if(!(r.flags&16777216)){if(g(r)){var s=wn(i);return e.isImportOrExportSpecifier(r.parent)&&r.parent.propertyName===r?jA(s):s}else if(e.isLiteralComputedPropertyDeclarationName(r))return wn(i.parent);if(r.kind===79){if(Vb(r))return sI(r);if(i.kind===202&&o.kind===200&&r===i.propertyName){var c=jp(o),L=Ii(c,r.escapedText);if(L)return L}else if(e.isMetaProperty(i)){var G=jp(i),L=Ii(G,r.escapedText);if(L)return L;if(i.keywordToken===103)return K1(i).symbol}}switch(r.kind){case 79:case 80:case 205:case 160:return sI(r);case 108:var ce=e.getThisContainer(r,!1);if(e.isFunctionLike(ce)){var we=bu(ce);if(we.thisParameter)return we.thisParameter}if(e.isInExpressionContext(r))return ui(r).symbol;case 191:return Iy(r).symbol;case 106:return ui(r).symbol;case 134:var Ue=r.parent;return Ue&&Ue.kind===170?Ue.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(r.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(r.parent.parent)===r||(r.parent.kind===265||r.parent.kind===271)&&r.parent.moduleSpecifier===r||e.isInJSFile(r)&&e.isRequireCall(r.parent,!1)||e.isImportCall(r.parent)||e.isLiteralTypeNode(r.parent)&&e.isLiteralImportTypeNode(r.parent.parent)&&r.parent.parent.argument===r.parent)return ws(r,r,t);if(e.isCallExpression(i)&&e.isBindableObjectDefinePropertyCall(i)&&i.arguments[1]===r)return wn(i);case 8:var Je=e.isElementAccessExpression(i)?i.argumentExpression===r?tl(i.expression):void 0:e.isLiteralTypeNode(i)&&e.isIndexedAccessTypeNode(o)?Da(o.objectType):void 0;return Je&&Ii(Je,e.escapeLeadingUnderscores(r.text));case 88:case 98:case 38:case 84:return wn(r.parent);case 199:return e.isLiteralImportTypeNode(r)?Vc(r.argument.literal,t):void 0;case 93:return e.isExportAssignment(r.parent)?e.Debug.checkDefined(r.parent.symbol):void 0;case 100:case 103:return e.isMetaProperty(r.parent)?UC(r.parent).symbol:void 0;case 230:return ui(r).symbol;default:return}}}function i8(r){if(e.isIdentifier(r)&&e.isPropertyAccessExpression(r.parent)&&r.parent.name===r){var t=lp(r),i=tl(r.parent.expression),o=i.flags&1048576?i.types:[i];return e.flatMap(o,function(s){return e.filter(Ps(s),function(c){return u_(t,c.keyType)})})}}function o8(r){if(r&&r.kind===295)return rs(r.name,2208703)}function s8(r){return e.isExportSpecifier(r)?r.parent.parent.moduleSpecifier?Pu(r.parent.parent,r):rs(r.propertyName||r.name,2998271):rs(r,2998271)}function jp(r){if(e.isSourceFile(r)&&!e.isExternalModule(r)||r.flags&16777216)return dr;var t=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(r),i=t&&Hn(wn(t.class));if(e.isPartOfTypeNode(r)){var o=Da(r);return i?Il(o,i.thisType):o}if(e.isExpressionNode(r))return lI(r);if(i&&!t.isImplements){var s=e.firstOrUndefined(xl(i));return s?Il(s,i.thisType):dr}if(jh(r)){var c=wn(r);return po(c)}if($3(r)){var c=Vc(r);return c?po(c):dr}if(e.isDeclaration(r)){var c=wn(r);return An(c)}if(g(r)){var c=Vc(r);return c?An(c):dr}if(e.isBindingPattern(r))return ep(r.parent,!0)||dr;if(Vb(r)){var c=Vc(r);if(c){var L=po(c);return Ua(L)?An(c):L}}return e.isMetaProperty(r.parent)&&r.parent.keywordToken===r.kind?UC(r.parent):dr}function jb(r){if(e.Debug.assert(r.kind===204||r.kind===203),r.parent.kind===243){var t=Bh(r.parent);return T_(r,t||dr)}if(r.parent.kind===220){var t=tl(r.parent.right);return T_(r,t||dr)}if(r.parent.kind===294){var i=e.cast(r.parent.parent,e.isObjectLiteralExpression),o=jb(i)||dr,s=e.indexOfNode(i.properties,r.parent);return $C(i,o,s)}var c=e.cast(r.parent,e.isArrayLiteralExpression),L=jb(c)||dr,G=Ld(65,L,Nr,r.parent)||dr;return ex(c,L,c.elements.indexOf(r),G)}function l8(r){var t=jb(e.cast(r.parent.parent,e.isAssignmentPattern));return t&&Ii(t,r.escapedText)}function lI(r){return e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),kl(tl(r))}function c8(r){var t=wn(r.parent);return e.isStatic(r)?An(t):po(t)}function u8(r){var t=r.name;switch(t.kind){case 79:return Lc(e.idText(t));case 8:case 10:return Lc(t.text);case 161:var i=qf(t);return ys(i,12288)?i:xt;default:return e.Debug.fail("Unsupported property name.")}}function DT(r){r=wi(r);var t=e.createSymbolTable(Yi(r)),i=Ni(r,0).length?oe:Ni(r,1).length?mr:void 0;return i&&e.forEach(Yi(i),function(o){t.has(o.escapedName)||t.set(o.escapedName,o)}),Bu(t)}function LT(r){return e.typeHasCallOrConstructSignatures(r,Yr)}function cI(r){var t=f8(r);return t?e.flatMap(t,cI):[r]}function f8(r){if(e.getCheckFlags(r)&6)return e.mapDefined(Ja(r).containingType.types,function(c){return Ii(c,r.escapedName)});if(r.flags&33554432){var t=r,i=t.leftSpread,o=t.rightSpread,s=t.syntheticOrigin;return i?[i,o]:s?[s]:e.singleElementArray(d8(r))}}function d8(r){for(var t,i=r;i=Ja(i).target;)t=i;return t}function p8(r){if(e.isGeneratedIdentifier(r))return!1;var t=e.getParseTreeNode(r,e.isIdentifier);if(!t)return!1;var i=t.parent;if(!i)return!1;var o=(e.isPropertyAccessExpression(i)||e.isPropertyAssignment(i))&&i.name===t;return!o&&Lv(t)===Jr}function _8(r){var t=ws(r.parent,r);if(!t||e.isShorthandAmbientModuleSymbol(t))return!0;var i=ld(t);t=ll(t);var o=Ja(t);return o.exportsSomeValue===void 0&&(o.exportsSomeValue=i?!!(t.flags&111551):e.forEachEntry(Gl(t),s)),o.exportsSomeValue;function s(c){return c=wo(c),c&&!!(c.flags&111551)}}function m8(r){return e.isModuleOrEnumDeclaration(r.parent)&&r===r.parent.name}function g8(r,t){var i,o=e.getParseTreeNode(r,e.isIdentifier);if(o){var s=Lv(o,m8(o));if(s){if(s.flags&1048576){var c=Ga(s.exportSymbol);if(!t&&c.flags&944&&!(c.flags&3))return;s=c}var L=Ts(s);if(L){if(L.flags&512&&((i=L.valueDeclaration)===null||i===void 0?void 0:i.kind)===303){var G=L.valueDeclaration,ce=e.getSourceFileOfNode(o),we=G!==ce;return we?void 0:G}return e.findAncestor(o.parent,function(Ue){return e.isModuleOrEnumDeclaration(Ue)&&wn(Ue)===L})}}}}function v8(r){if(r.generatedImportReference)return r.generatedImportReference;var t=e.getParseTreeNode(r,e.isIdentifier);if(t){var i=Lv(t);if(Dl(i,111551)&&!Ln(i))return ec(i)}}function h8(r){return r.valueDeclaration&&e.isBindingElement(r.valueDeclaration)&&e.walkUpBindingElementsAndPatterns(r.valueDeclaration).parent.kind===291}function uI(r){if(r.flags&418&&r.valueDeclaration&&!e.isSourceFile(r.valueDeclaration)){var t=Ja(r);if(t.isDeclarationWithCollidingName===void 0){var i=e.getEnclosingBlockScopeContainer(r.valueDeclaration);if(e.isStatementWithLocals(i)||h8(r)){var o=Zn(r.valueDeclaration);if(Uo(i.parent,r.escapedName,111551,void 0,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(o.flags&262144){var s=o.flags&524288,c=e.isIterationStatement(i,!1),L=i.kind===234&&e.isIterationStatement(i.parent,!1);t.isDeclarationWithCollidingName=!e.isBlockScopedContainerTopLevel(i)&&(!s||!c&&!L)}else t.isDeclarationWithCollidingName=!1}}return t.isDeclarationWithCollidingName}return!1}function y8(r){if(!e.isGeneratedIdentifier(r)){var t=e.getParseTreeNode(r,e.isIdentifier);if(t){var i=Lv(t);if(i&&uI(i))return i.valueDeclaration}}}function b8(r){var t=e.getParseTreeNode(r,e.isDeclaration);if(t){var i=wn(t);if(i)return uI(i)}return!1}function fI(r){switch(r.kind){case 264:return Hb(wn(r));case 266:case 267:case 269:case 274:var t=wn(r);return!!t&&Hb(t)&&!Ln(t);case 271:var i=r.exportClause;return!!i&&(e.isNamespaceExport(i)||e.some(i.elements,fI));case 270:return r.expression&&r.expression.kind===79?Hb(wn(r)):!0}return!1}function E8(r){var t=e.getParseTreeNode(r,e.isImportEqualsDeclaration);if(t===void 0||t.parent.kind!==303||!e.isInternalModuleImportEqualsDeclaration(t))return!1;var i=Hb(wn(t));return i&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference)}function Hb(r){if(!r)return!1;var t=ms(r);return t===We?!0:!!(t.flags&111551)&&(e.shouldPreserveConstEnums(Xe)||!Dv(t))}function Dv(r){return $1(r)||!!r.constEnumOnlyModule}function Jb(r,t){if(Ud(r)){var i=wn(r),o=i&&Ja(i);if(o!=null&&o.referenced)return!0;var s=Ja(i).target;if(s&&e.getEffectiveModifierFlags(r)&1&&s.flags&111551&&(e.shouldPreserveConstEnums(Xe)||!Dv(s)))return!0}return t?!!e.forEachChild(r,function(c){return Jb(c,t)}):!1}function dI(r){if(e.nodeIsPresent(r.body)){if(e.isGetAccessor(r)||e.isSetAccessor(r))return!1;var t=wn(r),i=Op(t);return i.length>1||i.length===1&&i[0].declaration!==r}return!1}function pI(r){return!!br&&!w_(r)&&!e.isJSDocParameterTag(r)&&!!r.initializer&&!e.hasSyntacticModifier(r,16476)}function T8(r){return br&&w_(r)&&!r.initializer&&e.hasSyntacticModifier(r,16476)}function S8(r){return!!br&&w_(r)&&!r.initializer}function D8(r){var t=e.getParseTreeNode(r,e.isFunctionDeclaration);if(!t)return!1;var i=wn(t);return!i||!(i.flags&16)?!1:!!e.forEachEntry(Js(i),function(o){return o.flags&111551&&o.valueDeclaration&&e.isPropertyAccessExpression(o.valueDeclaration)})}function L8(r){var t=e.getParseTreeNode(r,e.isFunctionDeclaration);if(!t)return e.emptyArray;var i=wn(t);return i&&Yi(An(i))||e.emptyArray}function Cm(r){var t,i=r.id||0;return i<0||i>=Ic.length?0:((t=Ic[i])===null||t===void 0?void 0:t.flags)||0}function Kb(r){return Qx(r.parent),Zn(r).enumMemberValue}function _I(r){switch(r.kind){case 297:case 205:case 206:return!0}return!1}function AT(r){if(r.kind===297)return Kb(r);var t=Zn(r).resolvedSymbol;if(t&&t.flags&8){var i=t.valueDeclaration;if(e.isEnumConst(i.parent))return Kb(i)}}function CT(r){return!!(r.flags&524288)&&Ni(r,0).length>0}function A8(r,t){var i,o,s=e.getParseTreeNode(r,e.isEntityName);if(!s||t&&(t=e.getParseTreeNode(t),!t))return e.TypeReferenceSerializationKind.Unknown;var c=!1;if(e.isQualifiedName(s)){var L=rs(e.getFirstIdentifier(s),111551,!0,!0,t);c=!!(!((i=L==null?void 0:L.declarations)===null||i===void 0)&&i.every(e.isTypeOnlyImportOrExportDeclaration))}var G=rs(s,111551,!0,!0,t),ce=G&&G.flags&2097152?ms(G):G;c||(c=!!(!((o=G==null?void 0:G.declarations)===null||o===void 0)&&o.every(e.isTypeOnlyImportOrExportDeclaration)));var we=rs(s,788968,!0,!1,t);if(ce&&ce===we){var Ue=e0(!1);if(Ue&&ce===Ue)return e.TypeReferenceSerializationKind.Promise;var Je=An(ce);if(Je&&tm(Je))return c?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!we)return c?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var ar=po(we);return Ua(ar)?c?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:ar.flags&3?e.TypeReferenceSerializationKind.ObjectType:ys(ar,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:ys(ar,528)?e.TypeReferenceSerializationKind.BooleanType:ys(ar,296)?e.TypeReferenceSerializationKind.NumberLikeType:ys(ar,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:ys(ar,402653316)?e.TypeReferenceSerializationKind.StringLikeType:ki(ar)?e.TypeReferenceSerializationKind.ArrayLikeType:ys(ar,12288)?e.TypeReferenceSerializationKind.ESSymbolType:CT(ar)?e.TypeReferenceSerializationKind.TypeWithCallSignature:el(ar)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function C8(r,t,i,o,s){var c=e.getParseTreeNode(r,e.isVariableLikeOrAccessor);if(!c)return e.factory.createToken(130);var L=wn(c),G=L&&!(L.flags&133120)?Pp(An(L)):dr;return G.flags&8192&&G.symbol===L&&(i|=1048576),s&&(G=Jf(G)),Sr.typeToTypeNode(G,t,i|1024,o)}function x8(r,t,i,o){var s=e.getParseTreeNode(r,e.isFunctionLike);if(!s)return e.factory.createToken(130);var c=bu(s);return Sr.typeToTypeNode(_o(c),t,i|1024,o)}function I8(r,t,i,o){var s=e.getParseTreeNode(r,e.isExpression);if(!s)return e.factory.createToken(130);var c=wl(lI(s));return Sr.typeToTypeNode(c,t,i|1024,o)}function N8(r){return Pr.has(e.escapeLeadingUnderscores(r))}function Lv(r,t){var i=Zn(r).resolvedSymbol;if(i)return i;var o=r;if(t){var s=r.parent;e.isDeclaration(s)&&r===s.name&&(o=fa(s))}return Uo(o,r.escapedText,3257279,void 0,void 0,!0)}function k8(r){if(!e.isGeneratedIdentifier(r)){var t=e.getParseTreeNode(r,e.isIdentifier);if(t){var i=Lv(t);if(i)return tc(i).valueDeclaration}}}function O8(r){return e.isDeclarationReadonly(r)||e.isVariableDeclaration(r)&&e.isVarConst(r)?Mp(An(wn(r))):!1}function R8(r,t,i){var o=r.flags&1024?Sr.symbolToExpression(r.symbol,111551,t,void 0,i):r===sa?e.factory.createTrue():r===mt&&e.factory.createFalse();if(o)return o;var s=r.value;return typeof s=="object"?e.factory.createBigIntLiteral(s):typeof s=="number"?e.factory.createNumericLiteral(s):e.factory.createStringLiteral(s)}function w8(r,t){var i=An(wn(r));return R8(i,r,t)}function mI(r){return r?(bo(r),e.getSourceFileOfNode(r).localJsxFactory||jt):jt}function xT(r){if(r){var t=e.getSourceFileOfNode(r);if(t){if(t.localJsxFragmentFactory)return t.localJsxFragmentFactory;var i=t.pragmas.get("jsxfrag"),o=e.isArray(i)?i[0]:i;if(o)return t.localJsxFragmentFactory=e.parseIsolatedEntityName(o.arguments.factory,De),t.localJsxFragmentFactory}}if(Xe.jsxFragmentFactory)return e.parseIsolatedEntityName(Xe.jsxFragmentFactory,De)}function M8(){var r=j.getResolvedTypeReferenceDirectives(),t;return r&&(t=new e.Map,r.forEach(function(ce,we){if(!(!ce||!ce.resolvedFileName)){var Ue=j.getSourceFile(ce.resolvedFileName);Ue&&G(Ue,we)}})),{getReferencedExportContainer:g8,getReferencedImportDeclaration:v8,getReferencedDeclarationWithCollidingName:y8,isDeclarationWithCollidingName:b8,isValueAliasDeclaration:function(ce){var we=e.getParseTreeNode(ce);return we?fI(we):!0},hasGlobalName:N8,isReferencedAliasDeclaration:function(ce,we){var Ue=e.getParseTreeNode(ce);return Ue?Jb(Ue,we):!0},getNodeCheckFlags:function(ce){var we=e.getParseTreeNode(ce);return we?Cm(we):0},isTopLevelValueImportEqualsWithEntityName:E8,isDeclarationVisible:Qc,isImplementationOfOverload:dI,isRequiredInitializedParameter:pI,isOptionalUninitializedParameterProperty:T8,isExpandoFunctionDeclaration:D8,getPropertiesOfContainerFunction:L8,createTypeOfDeclaration:C8,createReturnTypeOfSignatureDeclaration:x8,createTypeOfExpression:I8,createLiteralConstValue:w8,isSymbolAccessible:rf,isEntityNameVisible:r_,getConstantValue:function(ce){var we=e.getParseTreeNode(ce,_I);return we?AT(we):void 0},collectLinkedAliases:Mf,getReferencedValueDeclaration:k8,getTypeReferenceSerializationKind:A8,isOptionalParameter:w_,moduleExportsSomeValue:_8,isArgumentsLocalBinding:p8,getExternalModuleFileFromDeclaration:function(ce){var we=e.getParseTreeNode(ce,e.hasPossibleExternalModuleReference);return we&&IT(we)},getTypeReferenceDirectivesForEntityName:s,getTypeReferenceDirectivesForSymbol:c,isLiteralConstDeclaration:O8,isLateBound:function(ce){var we=e.getParseTreeNode(ce,e.isDeclaration),Ue=we&&wn(we);return!!(Ue&&e.getCheckFlags(Ue)&4096)},getJsxFactoryEntity:mI,getJsxFragmentFactoryEntity:xT,getAllAccessorDeclarations:function(ce){ce=e.getParseTreeNode(ce,e.isGetOrSetAccessorDeclaration);var we=ce.kind===172?171:172,Ue=e.getDeclarationOfKind(wn(ce),we),Je=Ue&&Ue.pos<ce.pos?Ue:ce,ar=Ue&&Ue.pos<ce.pos?ce:Ue,_r=ce.kind===172?ce:Ue,Gr=ce.kind===171?ce:Ue;return{firstAccessor:Je,secondAccessor:ar,setAccessor:_r,getAccessor:Gr}},getSymbolOfExternalModuleSpecifier:function(ce){return Mc(ce,ce,void 0)},isBindingCapturedByNode:function(ce,we){var Ue=e.getParseTreeNode(ce),Je=e.getParseTreeNode(we);return!!Ue&&!!Je&&(e.isVariableDeclaration(Je)||e.isBindingElement(Je))&&qw(Ue,Je)},getDeclarationStatementsForSourceFile:function(ce,we,Ue,Je){var ar=e.getParseTreeNode(ce);e.Debug.assert(ar&&ar.kind===303,"Non-sourcefile node passed into getDeclarationsForSourceFile");var _r=wn(ce);return _r?_r.exports?Sr.symbolTableToDeclarationStatements(_r.exports,ce,we,Ue,Je):[]:ce.locals?Sr.symbolTableToDeclarationStatements(ce.locals,ce,we,Ue,Je):[]},isImportRequiredByAugmentation:i};function i(ce){var we=e.getSourceFileOfNode(ce);if(!we.symbol)return!1;var Ue=IT(ce);if(!Ue||Ue===we)return!1;for(var Je=Gl(we.symbol),ar=0,_r=e.arrayFrom(Je.values());ar<_r.length;ar++){var Gr=_r[ar];if(Gr.mergeId){var Zr=Ga(Gr);if(Zr.declarations)for(var Et=0,Tt=Zr.declarations;Et<Tt.length;Et++){var At=Tt[Et],Vt=e.getSourceFileOfNode(At);if(Vt===Ue)return!0}}}return!1}function o(ce){return ce.parent&&ce.parent.kind===227&&ce.parent.parent&&ce.parent.parent.kind===290}function s(ce){if(t){var we=790504;(ce.kind===79&&lg(ce)||ce.kind===205&&!o(ce))&&(we=1160127);var Ue=rs(ce,we,!0);return Ue&&Ue!==We?c(Ue,we):void 0}}function c(ce,we){if(!(!t||!L(ce))){for(var Ue,Je=0,ar=ce.declarations;Je<ar.length;Je++){var _r=ar[Je];if(_r.symbol&&_r.symbol.flags&we){var Gr=e.getSourceFileOfNode(_r),Zr=t.get(Gr.path);if(Zr)(Ue||(Ue=[])).push(Zr);else return}}return Ue}}function L(ce){if(!ce.declarations)return!1;for(var we=ce;;){var Ue=Ts(we);if(Ue)we=Ue;else break}if(we.valueDeclaration&&we.valueDeclaration.kind===303&&we.flags&512)return!1;for(var Je=0,ar=ce.declarations;Je<ar.length;Je++){var _r=ar[Je],Gr=e.getSourceFileOfNode(_r);if(t.has(Gr.path))return!0}return!1}function G(ce,we){if(!t.has(ce.path)){t.set(ce.path,we);for(var Ue=0,Je=ce.referencedFiles;Ue<Je.length;Ue++){var ar=Je[Ue].fileName,_r=e.resolveTripleslashReference(ar,ce.fileName),Gr=j.getSourceFile(_r);Gr&&G(Gr,we)}}}}function IT(r){var t=r.kind===260?e.tryCast(r.name,e.isStringLiteral):e.getExternalModuleName(r),i=Mc(t,t,void 0);if(i)return e.getDeclarationOfKind(i,303)}function P8(){for(var r=0,t=j.getSourceFiles();r<t.length;r++){var i=t[r];e.bindSourceFile(i,Xe)}zo=new e.Map;for(var o,s=0,c=j.getSourceFiles();s<c.length;s++){var i=c[s];if(!i.redirectInfo){if(!e.isExternalOrCommonJsModule(i)){var L=i.locals.get("globalThis");if(L!=null&&L.declarations)for(var G=0,ce=L.declarations;G<ce.length;G++){var we=ce[G];ua.add(e.createDiagnosticForNode(we,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}dl(Pr,i.locals)}if(i.jsGlobalAugmentations&&dl(Pr,i.jsGlobalAugmentations),i.patternAmbientModules&&i.patternAmbientModules.length&&(dt=e.concatenate(dt,i.patternAmbientModules)),i.moduleAugmentations.length&&(o||(o=[])).push(i.moduleAugmentations),i.symbol&&i.symbol.globalExports){var Ue=i.symbol.globalExports;Ue.forEach(function(ca,la){Pr.has(la)||Pr.set(la,ca)})}}}if(o)for(var Je=0,ar=o;Je<ar.length;Je++)for(var _r=ar[Je],Gr=0,Zr=_r;Gr<Zr.length;Gr++){var Et=Zr[Gr];e.isGlobalScopeAugmentation(Et.parent)&&qp(Et)}if(Rs(Pr,Si,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),Ja(He).type=zr,Ja(Jr).type=$s("IArguments",0,!0),Ja(We).type=dr,Ja(pr).type=Bl(16,pr),se=$s("Array",1,!0),Un=$s("Object",0,!0),Oe=$s("Function",0,!0),oe=Ar&&$s("CallableFunction",0,!0)||Oe,mr=Ar&&$s("NewableFunction",0,!0)||Oe,er=$s("String",0,!0),vr=$s("Number",0,!0),qr=$s("Boolean",0,!0),Dt=$s("RegExp",0,!0),Sn=zs(Ze),ta=zs(Cr),ta===Qn&&(ta=ts(void 0,Le,e.emptyArray,e.emptyArray,e.emptyArray)),Be=PD("ReadonlyArray",1)||se,xa=Be?zg(Be,[Ze]):Sn,Jt=PD("ThisType",1),o)for(var Tt=0,At=o;Tt<At.length;Tt++)for(var _r=At[Tt],Vt=0,Nn=_r;Vt<Nn.length;Vt++){var Et=Nn[Vt];e.isGlobalScopeAugmentation(Et.parent)||qp(Et)}zo.forEach(function(on){var ca=on.firstFile,la=on.secondFile,di=on.conflictingSymbols;if(di.size<8)di.forEach(function(Li,Bi){for(var Ai=Li.isBlockScoped,xo=Li.firstFileLocations,Wt=Li.secondFileLocations,Ft=Ai?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,_n=0,Ca=xo;_n<Ca.length;_n++){var Yn=Ca[_n];Jc(Yn,Ft,Bi,Wt)}for(var Ba=0,Ti=Wt;Ba<Ti.length;Ba++){var Yn=Ti[Ba];Jc(Yn,Ft,Bi,xo)}});else{var Aa=e.arrayFrom(di.keys()).join(", ");ua.add(e.addRelatedInfo(e.createDiagnosticForNode(ca,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,Aa),e.createDiagnosticForNode(la,e.Diagnostics.Conflicts_are_in_this_file))),ua.add(e.addRelatedInfo(e.createDiagnosticForNode(la,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,Aa),e.createDiagnosticForNode(ca,e.Diagnostics.Conflicts_are_in_this_file)))}}),zo=void 0}function nl(r,t){if((Y&t)!==t&&Xe.importHelpers){var i=e.getSourceFileOfNode(r);if(e.isEffectiveExternalModule(i,Xe)&&!(r.flags&8388608)){var o=G8(i,r);if(o!==We){for(var s=t&~Y,c=1;c<=4194304;c<<=1)if(s&c){var L=F8(c),G=ks(o.exports,e.escapeLeadingUnderscores(L),111551);G?c&524288?e.some(Op(G),function(ce){return Tl(ce)>3})||Mr(r,e.Diagnostics.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,e.externalHelpersModuleNameText,L,4):c&1048576?e.some(Op(G),function(ce){return Tl(ce)>4})||Mr(r,e.Diagnostics.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,e.externalHelpersModuleNameText,L,5):c&1024&&(e.some(Op(G),function(ce){return Tl(ce)>2})||Mr(r,e.Diagnostics.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,e.externalHelpersModuleNameText,L,3)):Mr(r,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,L)}}Y|=t}}}function F8(r){switch(r){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";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";default:return e.Debug.fail("Unrecognized helper")}}function G8(r,t){return U||(U=Qu(r,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||We),U}function ff(r){return B8(r)||U8(r)}function B8(r){if(!r.decorators)return!1;if(e.nodeCanBeDecorated(r,r.parent,r.parent.parent)){if(r.kind===171||r.kind===172){var t=e.getAllAccessorDeclarations(r.parent.members,r);if(t.firstAccessor.decorators&&r===t.secondAccessor)return Gs(r,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return r.kind===168&&!e.nodeIsPresent(r.body)?Gs(r,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):Gs(r,e.Diagnostics.Decorators_are_not_valid_here);return!1}function U8(r){var t=V8(r);if(t!==void 0)return t;for(var i,o,s,c,L,G=0,ce=0,we=r.modifiers;ce<we.length;ce++){var Ue=we[ce];if(Ue.kind!==144){if(r.kind===165||r.kind===167)return sn(Ue,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(Ue.kind));if(r.kind===175&&(Ue.kind!==124||!e.isClassLike(r.parent)))return sn(Ue,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(Ue.kind))}switch(Ue.kind){case 85:if(r.kind!==259)return sn(r,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(85));break;case 158:if(G&16384)return sn(Ue,e.Diagnostics._0_modifier_already_seen,"override");if(G&2)return sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(G&64)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","readonly");if(G&256)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","async");G|=16384,L=Ue;break;case 123:case 122:case 121:var Je=pd(e.modifierToFlag(Ue.kind));if(G&28)return sn(Ue,e.Diagnostics.Accessibility_modifier_already_seen);if(G&16384)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,Je,"override");if(G&32)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,Je,"static");if(G&64)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,Je,"readonly");if(G&256)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,Je,"async");if(r.parent.kind===261||r.parent.kind===303)return sn(Ue,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,Je);if(G&128)return Ue.kind===121?sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,Je,"abstract"):sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,Je,"abstract");if(e.isPrivateIdentifierClassElementDeclaration(r))return sn(Ue,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);G|=e.modifierToFlag(Ue.kind);break;case 124:if(G&32)return sn(Ue,e.Diagnostics._0_modifier_already_seen,"static");if(G&64)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(G&256)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(r.parent.kind===261||r.parent.kind===303)return sn(Ue,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(r.kind===163)return sn(Ue,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(G&128)return sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(G&16384)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","override");G|=32,i=Ue;break;case 144:if(G&64)return sn(Ue,e.Diagnostics._0_modifier_already_seen,"readonly");if(r.kind!==166&&r.kind!==165&&r.kind!==175&&r.kind!==163)return sn(Ue,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);G|=64,c=Ue;break;case 93:if(G&1)return sn(Ue,e.Diagnostics._0_modifier_already_seen,"export");if(G&2)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(G&128)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(G&256)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(r.parent))return sn(Ue,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(r.kind===163)return sn(Ue,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");G|=1;break;case 88:var ar=r.parent.kind===303?r.parent:r.parent.parent;if(ar.kind===260&&!e.isAmbientModule(ar))return sn(Ue,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(!(G&1))return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","default");G|=512;break;case 135:if(G&2)return sn(Ue,e.Diagnostics._0_modifier_already_seen,"declare");if(G&256)return sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(G&16384)return sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(e.isClassLike(r.parent)&&!e.isPropertyDeclaration(r))return sn(Ue,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(r.kind===163)return sn(Ue,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(r.parent.flags&8388608&&r.parent.kind===261)return sn(Ue,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(e.isPrivateIdentifierClassElementDeclaration(r))return sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");G|=2,o=Ue;break;case 126:if(G&128)return sn(Ue,e.Diagnostics._0_modifier_already_seen,"abstract");if(r.kind!==256&&r.kind!==179){if(r.kind!==168&&r.kind!==166&&r.kind!==171&&r.kind!==172)return sn(Ue,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(r.parent.kind===256&&e.hasSyntacticModifier(r.parent,128)))return sn(Ue,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(G&32)return sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(G&8)return sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(G&256&&s)return sn(s,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(G&16384)return sn(Ue,e.Diagnostics._0_modifier_must_precede_1_modifier,"abstract","override")}if(e.isNamedDeclaration(r)&&r.name.kind===80)return sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");G|=128;break;case 131:if(G&256)return sn(Ue,e.Diagnostics._0_modifier_already_seen,"async");if(G&2||r.parent.flags&8388608)return sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(r.kind===163)return sn(Ue,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");if(G&128)return sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");G|=256,s=Ue;break}}return r.kind===170?G&32?sn(i,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):G&128?sn(i,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):G&16384?sn(L,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):G&256?sn(s,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):G&64?sn(c,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly"):!1:(r.kind===265||r.kind===264)&&G&2?sn(o,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):r.kind===163&&G&16476&&e.isBindingPattern(r.name)?sn(r,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):r.kind===163&&G&16476&&r.dotDotDotToken?sn(r,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):G&256?j8(r,s):!1}function V8(r){return r.modifiers?W8(r)?Gs(r,e.Diagnostics.Modifiers_cannot_appear_here):void 0:!1}function W8(r){switch(r.kind){case 171:case 172:case 170:case 166:case 165:case 168:case 167:case 175:case 260:case 265:case 264:case 271:case 270:case 212:case 213:case 163:return!1;default:if(r.parent.kind===261||r.parent.kind===303)return!1;switch(r.kind){case 255:return NT(r,131);case 256:case 179:return NT(r,126);case 257:case 236:case 258:case 169:return!0;case 259:return NT(r,85);default:e.Debug.fail()}}}function NT(r,t){return r.modifiers.length>1||r.modifiers[0].kind!==t}function j8(r,t){switch(r.kind){case 168:case 255:case 212:case 213:return!1}return sn(t,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function K_(r,t){return t===void 0&&(t=e.Diagnostics.Trailing_comma_not_allowed),r&&r.hasTrailingComma?gp(r[0],r.end-1,1,t):!1}function gI(r,t){if(r&&r.length===0){var i=r.pos-1,o=e.skipTrivia(t.text,r.end)+1;return gp(t,i,o-i,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function H8(r){for(var t=!1,i=r.length,o=0;o<i;o++){var s=r[o];if(s.dotDotDotToken){if(o!==i-1)return sn(s.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(s.flags&8388608||K_(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),s.questionToken)return sn(s.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(s.initializer)return sn(s.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(w_(s)){if(t=!0,s.questionToken&&s.initializer)return sn(s.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(t&&!s.initializer)return sn(s.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}function J8(r){return e.filter(r,function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)})}function K8(r){if(De>=3){var t=r.body&&e.isBlock(r.body)&&e.findUseStrictPrologue(r.body.statements);if(t){var i=J8(r.parameters);if(e.length(i)){e.forEach(i,function(s){e.addRelatedInfo(Mr(s,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(t,e.Diagnostics.use_strict_directive_used_here))});var o=i.map(function(s,c){return c===0?e.createDiagnosticForNode(s,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(s,e.Diagnostics.and_here)});return e.addRelatedInfo.apply(void 0,Gt([Mr(t,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],o,!1)),!0}}}return!1}function zb(r){var t=e.getSourceFileOfNode(r);return ff(r)||gI(r.typeParameters,t)||H8(r.parameters)||q8(r,t)||e.isFunctionLikeDeclaration(r)&&K8(r)}function z8(r){var t=e.getSourceFileOfNode(r);return rF(r)||gI(r.typeParameters,t)}function q8(r,t){if(!e.isArrowFunction(r))return!1;r.typeParameters&&!(e.length(r.typeParameters)>1||r.typeParameters.hasTrailingComma||r.typeParameters[0].constraint)&&t&&e.fileExtensionIsOneOf(t.fileName,[".mts",".cts"])&&sn(r.typeParameters[0],e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);var i=r.equalsGreaterThanToken,o=e.getLineAndCharacterOfPosition(t,i.pos).line,s=e.getLineAndCharacterOfPosition(t,i.end).line;return o!==s&&sn(i,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}function X8(r){var t=r.parameters[0];if(r.parameters.length!==1)return sn(t?t.name:r,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(K_(r.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return sn(t.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasEffectiveModifiers(t))return sn(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return sn(t.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return sn(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return sn(t.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);var i=Da(t.type);return hm(i,function(o){return!!(o.flags&8576)})||Yg(i)?sn(t.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):Kf(i,Ey)?r.type?!1:sn(r,e.Diagnostics.An_index_signature_must_have_a_type_annotation):sn(t.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function Y8(r){return ff(r)||X8(r)}function Q8(r,t){if(t&&t.length===0){var i=e.getSourceFileOfNode(r),o=t.pos-1,s=e.skipTrivia(i.text,t.end)+1;return gp(i,o,s-o,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}function Hh(r,t){return K_(t)||Q8(r,t)}function Z8(r){return r.questionDotToken||r.flags&32?sn(r.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function $8(r){if(r)for(var t=0,i=r;t<i.length;t++){var o=i[t];if(o.kind===226)return gp(o,o.pos,0,e.Diagnostics.Argument_expression_expected)}return!1}function vI(r){return $8(r)}function hI(r){var t=r.types;if(K_(t))return!0;if(t&&t.length===0){var i=e.tokenToString(r.token);return gp(r,t.pos,0,e.Diagnostics._0_list_cannot_be_empty,i)}return e.some(t,eF)}function eF(r){return Hh(r,r.typeArguments)}function rF(r){var t=!1,i=!1;if(!ff(r)&&r.heritageClauses)for(var o=0,s=r.heritageClauses;o<s.length;o++){var c=s[o];if(c.token===94){if(t)return Gs(c,e.Diagnostics.extends_clause_already_seen);if(i)return Gs(c,e.Diagnostics.extends_clause_must_precede_implements_clause);if(c.types.length>1)return Gs(c.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);t=!0}else{if(e.Debug.assert(c.token===117),i)return Gs(c,e.Diagnostics.implements_clause_already_seen);i=!0}hI(c)}}function tF(r){var t=!1;if(r.heritageClauses)for(var i=0,o=r.heritageClauses;i<o.length;i++){var s=o[i];if(s.token===94){if(t)return Gs(s,e.Diagnostics.extends_clause_already_seen);t=!0}else return e.Debug.assert(s.token===117),Gs(s,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);hI(s)}return!1}function qb(r){if(r.kind!==161)return!1;var t=r;return t.expression.kind===220&&t.expression.operatorToken.kind===27?sn(t.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function kT(r){if(r.asteriskToken){if(e.Debug.assert(r.kind===255||r.kind===212||r.kind===168),r.flags&8388608)return sn(r.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!r.body)return sn(r.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function yI(r,t){return!!r&&sn(r,t)}function bI(r,t){return!!r&&sn(r,t)}function nF(r,t){for(var i=new e.Map,o=0,s=r.properties;o<s.length;o++){var c=s[o];if(c.kind===296){if(t){var L=e.skipParentheses(c.expression);if(e.isArrayLiteralExpression(L)||e.isObjectLiteralExpression(L))return sn(c.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}continue}var G=c.name;if(G.kind===161&&qb(G),c.kind===295&&!t&&c.objectAssignmentInitializer)return sn(c.equalsToken,e.Diagnostics.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);if(G.kind===80&&sn(G,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),c.modifiers)for(var ce=0,we=c.modifiers;ce<we.length;ce++){var Ue=we[ce];(Ue.kind!==131||c.kind!==168)&&sn(Ue,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(Ue))}var Je=void 0;switch(c.kind){case 295:bI(c.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 294:yI(c.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),G.kind===8&&wT(G),Je=4;break;case 168:Je=8;break;case 171:Je=1;break;case 172:Je=2;break;default:throw e.Debug.assertNever(c,"Unexpected syntax kind:"+c.kind)}if(!t){var ar=e.getPropertyNameForPropertyNameNode(G);if(ar===void 0)continue;var _r=i.get(ar);if(!_r)i.set(ar,Je);else if(Je&12&&_r&12)sn(G,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(G));else if(Je&3&&_r&3)if(_r!==3&&Je!==_r)i.set(ar,Je|_r);else return sn(G,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return sn(G,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function aF(r){iF(r.tagName),Hh(r,r.typeArguments);for(var t=new e.Map,i=0,o=r.attributes.properties;i<o.length;i++){var s=o[i];if(s.kind!==286){var c=s.name,L=s.initializer;if(!t.get(c.escapedText))t.set(c.escapedText,!0);else return sn(c,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(L&&L.kind===287&&!L.expression)return sn(L,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}function iF(r){if(e.isPropertyAccessExpression(r)){var t=r;do{var i=s(t.name);if(i)return i;t=t.expression}while(e.isPropertyAccessExpression(t));var o=s(t);if(o)return o}function s(c){if(e.isIdentifier(c)&&e.idText(c).indexOf(":")!==-1)return sn(c,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}}function oF(r){if(r.expression&&e.isCommaSequence(r.expression))return sn(r.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function EI(r){if(df(r))return!0;if(r.kind===243&&r.awaitModifier&&!(r.flags&32768)){var t=e.getSourceFileOfNode(r);if(e.isInTopLevelContext(r))S_(t)||(e.isEffectiveExternalModule(t,Xe)||ua.add(e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.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)),(Ae!==e.ModuleKind.ES2022&&Ae!==e.ModuleKind.ESNext&&Ae!==e.ModuleKind.System&&!(Ae===e.ModuleKind.NodeNext&&e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.ESNext)||De<4)&&ua.add(e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher)));else if(!S_(t)){var i=e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),o=e.getContainingFunction(r);if(o&&o.kind!==170){e.Debug.assert((e.getFunctionFlags(o)&2)===0,"Enclosing function should never be an async function.");var s=e.createDiagnosticForNode(o,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(i,s)}return ua.add(i),!0}return!1}if(e.isForOfStatement(r)&&!(r.flags&32768)&&e.isIdentifier(r.initializer)&&r.initializer.escapedText==="async")return sn(r.initializer,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(r.initializer.kind===254){var c=r.initializer;if(!RT(c)){var L=c.declarations;if(!L.length)return!1;if(L.length>1){var i=r.kind===242?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Gs(c.declarations[1],i)}var G=L[0];if(G.initializer){var i=r.kind===242?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return sn(G.name,i)}if(G.type){var i=r.kind===242?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return sn(G,i)}}}return!1}function sF(r){if(!(r.flags&8388608)&&r.parent.kind!==181&&r.parent.kind!==257){if(De<1)return sn(r.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(De<2&&e.isPrivateIdentifier(r.name))return sn(r.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.body===void 0&&!e.hasSyntacticModifier(r,128))return gp(r,r.end-1,1,e.Diagnostics._0_expected,"{")}if(r.body){if(e.hasSyntacticModifier(r,128))return sn(r,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(r.parent.kind===181||r.parent.kind===257)return sn(r.body,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)}if(r.typeParameters)return sn(r.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!lF(r))return sn(r.name,r.kind===171?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(r.kind===172){if(r.type)return sn(r.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var t=e.Debug.checkDefined(e.getSetAccessorValueParameter(r),"Return value does not match parameter count assertion.");if(t.dotDotDotToken)return sn(t.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return sn(t.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return sn(r.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function lF(r){return OT(r)||r.parameters.length===(r.kind===171?0:1)}function OT(r){if(r.parameters.length===(r.kind===171?1:2))return e.getThisParameter(r)}function cF(r){if(r.operator===153){if(r.type.kind!==150)return sn(r.type,e.Diagnostics._0_expected,e.tokenToString(150));var t=e.walkUpParenthesizedTypes(r.parent);switch(e.isInJSFile(t)&&e.isJSDocTypeExpression(t)&&(t=t.parent,e.isJSDocTypeTag(t)&&(t=t.parent.parent)),t.kind){case 253:var i=t;if(i.name.kind!==79)return sn(r,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(i))return sn(r,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(i.parent.flags&2))return sn(t.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 166:if(!e.isStatic(t)||!e.hasEffectiveReadonlyModifier(t))return sn(t.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 165:if(!e.hasSyntacticModifier(t,64))return sn(t.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return sn(r,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(r.operator===144&&r.type.kind!==182&&r.type.kind!==183)return Gs(r,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(150))}function Sg(r,t){if(IE(r))return sn(r,t)}function TI(r){if(zb(r))return!0;if(r.kind===168){if(r.parent.kind===204){if(r.modifiers&&!(r.modifiers.length===1&&e.first(r.modifiers).kind===131))return Gs(r,e.Diagnostics.Modifiers_cannot_appear_here);if(yI(r.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(bI(r.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(r.body===void 0)return gp(r,r.end-1,1,e.Diagnostics._0_expected,"{")}if(kT(r))return!0}if(e.isClassLike(r.parent)){if(De<2&&e.isPrivateIdentifier(r.name))return sn(r.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.flags&8388608)return Sg(r.name,e.Diagnostics.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(r.kind===168&&!r.body)return Sg(r.name,e.Diagnostics.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(r.parent.kind===257)return Sg(r.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(r.parent.kind===181)return Sg(r.name,e.Diagnostics.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 uF(r){for(var t=r;t;){if(e.isFunctionLikeOrClassStaticBlockDeclaration(t))return sn(r,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 249:if(r.label&&t.label.escapedText===r.label.escapedText){var i=r.kind===244&&!e.isIterationStatement(t.statement,!0);return i?sn(r,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1}break;case 248:if(r.kind===245&&!r.label)return!1;break;default:if(e.isIterationStatement(t,!1)&&!r.label)return!1;break}t=t.parent}if(r.label){var o=r.kind===245?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return sn(r,o)}else{var o=r.kind===245?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return sn(r,o)}}function fF(r){if(r.dotDotDotToken){var t=r.parent.elements;if(r!==e.last(t))return sn(r,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(K_(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),r.propertyName)return sn(r.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}if(r.dotDotDotToken&&r.initializer)return gp(r,r.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}function SI(r){return e.isStringOrNumericLiteralLike(r)||r.kind===218&&r.operator===40&&r.operand.kind===8}function dF(r){return r.kind===9||r.kind===218&&r.operator===40&&r.operand.kind===9}function pF(r){if((e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)&&SI(r.argumentExpression))&&e.isEntityNameExpression(r.expression))return!!(Ss(r).flags&1024)}function DI(r){var t=r.initializer;if(t){var i=!(SI(t)||pF(t)||t.kind===110||t.kind===95||dF(t)),o=e.isDeclarationReadonly(r)||e.isVariableDeclaration(r)&&e.isVarConst(r);if(o&&!r.type){if(i)return sn(t,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return sn(t,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(!o||i)return sn(t,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function _F(r){if(r.parent.parent.kind!==242&&r.parent.parent.kind!==243){if(r.flags&8388608)DI(r);else if(!r.initializer){if(e.isBindingPattern(r.name)&&!e.isBindingPattern(r.parent))return sn(r,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(r))return sn(r,e.Diagnostics.const_declarations_must_be_initialized)}}if(r.exclamationToken&&(r.parent.parent.kind!==236||!r.type||r.initializer||r.flags&8388608)){var t=r.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return sn(r.exclamationToken,t)}(Ae<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&Ae!==e.ModuleKind.System&&!(r.parent.parent.flags&8388608)&&e.hasSyntacticModifier(r.parent.parent,1)&&LI(r.name);var i=e.isLet(r)||e.isVarConst(r);return i&&AI(r.name)}function LI(r){if(r.kind===79){if(e.idText(r)==="__esModule")return vF("noEmit",r,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var t=r.elements,i=0,o=t;i<o.length;i++){var s=o[i];if(!e.isOmittedExpression(s))return LI(s.name)}return!1}function AI(r){if(r.kind===79){if(r.originalKeywordKind===119)return sn(r,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var t=r.elements,i=0,o=t;i<o.length;i++){var s=o[i];e.isOmittedExpression(s)||AI(s.name)}return!1}function RT(r){var t=r.declarations;return K_(r.declarations)?!0:r.declarations.length?!1:gp(r,t.pos,t.end-t.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function CI(r){switch(r.kind){case 238:case 239:case 240:case 247:case 241:case 242:case 243:return!1;case 249:return CI(r.parent)}return!0}function mF(r){if(!CI(r.parent)){if(e.isLet(r.declarationList))return sn(r,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);if(e.isVarConst(r.declarationList))return sn(r,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}function gF(r){var t=r.name.escapedText;switch(r.keywordToken){case 103:if(t!=="target")return sn(r.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,r.name.escapedText,e.tokenToString(r.keywordToken),"target");break;case 100:if(t!=="meta")return sn(r.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,r.name.escapedText,e.tokenToString(r.keywordToken),"meta");break}}function S_(r){return r.parseDiagnostics.length>0}function Gs(r,t,i,o,s){var c=e.getSourceFileOfNode(r);if(!S_(c)){var L=e.getSpanOfTokenAtPosition(c,r.pos);return ua.add(e.createFileDiagnostic(c,L.start,L.length,t,i,o,s)),!0}return!1}function gp(r,t,i,o,s,c,L){var G=e.getSourceFileOfNode(r);return S_(G)?!1:(ua.add(e.createFileDiagnostic(G,t,i,o,s,c,L)),!0)}function vF(r,t,i,o,s,c){var L=e.getSourceFileOfNode(t);return S_(L)?!1:(Zl(r,t,i,o,s,c),!0)}function sn(r,t,i,o,s){var c=e.getSourceFileOfNode(r);return S_(c)?!1:(ua.add(e.createDiagnosticForNode(r,t,i,o,s)),!0)}function hF(r){var t=e.isInJSFile(r)?e.getJSDocTypeParameterDeclarations(r):void 0,i=r.typeParameters||t&&e.firstOrUndefined(t);if(i){var o=i.pos===i.end?i.pos:e.skipTrivia(e.getSourceFileOfNode(r).text,i.pos);return gp(r,o,i.end-o,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function yF(r){var t=e.getEffectiveReturnTypeNode(r);if(t)return sn(t,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function bF(r){if(e.isComputedPropertyName(r.name)&&e.isBinaryExpression(r.name.expression)&&r.name.expression.operatorToken.kind===101)return sn(r.parent.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods);if(e.isClassLike(r.parent)){if(e.isStringLiteral(r.name)&&r.name.text==="constructor")return sn(r.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(Sg(r.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(De<2&&e.isPrivateIdentifier(r.name))return sn(r.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(r.parent.kind===257){if(Sg(r.name,e.Diagnostics.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(r.initializer)return sn(r.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(e.isTypeLiteralNode(r.parent)){if(Sg(r.name,e.Diagnostics.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(r.initializer)return sn(r.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(r.flags&8388608&&DI(r),e.isPropertyDeclaration(r)&&r.exclamationToken&&(!e.isClassLike(r.parent)||!r.type||r.initializer||r.flags&8388608||e.isStatic(r)||e.hasAbstractModifier(r))){var t=r.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return sn(r.exclamationToken,t)}}function EF(r){return r.kind===257||r.kind===258||r.kind===265||r.kind===264||r.kind===271||r.kind===270||r.kind===263||e.hasSyntacticModifier(r,515)?!1:Gs(r,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function TF(r){for(var t=0,i=r.statements;t<i.length;t++){var o=i[t];if((e.isDeclaration(o)||o.kind===236)&&EF(o))return!0}return!1}function SF(r){return!!(r.flags&8388608)&&TF(r)}function df(r){if(r.flags&8388608){var t=Zn(r);if(!t.hasReportedStatementInAmbientContext&&(e.isFunctionLike(r.parent)||e.isAccessor(r.parent)))return Zn(r).hasReportedStatementInAmbientContext=Gs(r,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(r.parent.kind===234||r.parent.kind===261||r.parent.kind===303){var i=Zn(r.parent);if(!i.hasReportedStatementInAmbientContext)return i.hasReportedStatementInAmbientContext=Gs(r,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function wT(r){if(r.numericLiteralFlags&32){var t=void 0;if(De>=1?t=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(r,195)?t=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(r,297)&&(t=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),t){var i=e.isPrefixUnaryExpression(r.parent)&&r.parent.operator===40,o=(i?"-":"")+"0o"+r.text;return sn(i?r.parent:r,t,o)}}return DF(r),!1}function DF(r){if(!(r.numericLiteralFlags&16||r.text.length<=15||r.text.indexOf(".")!==-1)){var t=+e.getTextOfNode(r);t<=Math.pow(2,53)-1&&t+1>t||$l(!1,e.createDiagnosticForNode(r,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}}function LF(r){var t=e.isLiteralTypeNode(r.parent)||e.isPrefixUnaryExpression(r.parent)&&e.isLiteralTypeNode(r.parent.parent);return!!(!t&&De<7&&sn(r,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function AF(r,t,i,o,s){var c=e.getSourceFileOfNode(r);if(!S_(c)){var L=e.getSpanOfTokenAtPosition(c,r.pos);return ua.add(e.createFileDiagnostic(c,e.textSpanEnd(L),0,t,i,o,s)),!0}return!1}function CF(){return hr||(hr=[],Pr.forEach(function(r,t){n.test(t)&&hr.push(r)})),hr}function xF(r){var t;return r.isTypeOnly&&r.name&&r.namedBindings?sn(r,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):r.isTypeOnly&&((t=r.namedBindings)===null||t===void 0?void 0:t.kind)===268?xI(r.namedBindings):!1}function xI(r){return!!e.forEach(r.elements,function(t){if(t.isTypeOnly)return Gs(t,t.kind===269?e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function IF(r){if(Ae===e.ModuleKind.ES2015)return sn(r,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node12_or_nodenext);if(r.typeArguments)return sn(r,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var t=r.arguments;if(Ae!==e.ModuleKind.ESNext&&(K_(t),t.length>1)){var i=t[1];return sn(i,e.Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext)}if(t.length===0||t.length>2)return sn(r,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);var o=e.find(t,e.isSpreadElement);return o?sn(o,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element):!1}function NF(r,t){var i=e.getObjectFlags(r);if(i&20&&t.flags&1048576)return e.find(t.types,function(o){if(o.flags&524288){var s=i&e.getObjectFlags(o);if(s&4)return r.target===o.target;if(s&16)return!!r.aliasSymbol&&r.aliasSymbol===o.aliasSymbol}return!1})}function kF(r,t){if(e.getObjectFlags(r)&128&&hm(t,_p))return e.find(t.types,function(i){return!_p(i)})}function OF(r,t){var i=0,o=Ni(r,i).length>0||(i=1,Ni(r,i).length>0);if(o)return e.find(t.types,function(s){return Ni(s,i).length>0})}function RF(r,t){for(var i,o=0,s=0,c=t.types;s<c.length;s++){var L=c[s],G=To([qu(r),qu(L)]);if(G.flags&4194304)i=L,o=1/0;else if(G.flags&1048576){var ce=e.length(e.filter(G.types,Su));ce>=o&&(i=L,o=ce)}else Su(G)&&1>=o&&(i=L,o=1)}return i}function wF(r){if(Jo(r,67108864)){var t=rl(r,function(i){return!(i.flags&131068)});if(!(t.flags&131072))return t}return r}function II(r,t,i,o){if(t.flags&1048576&&r.flags&2621440){var s=sA(t,r);if(s)return s;var c=Yi(r);if(c){var L=oA(c,t);if(L)return w0(t,e.map(L,function(G){return[function(){return An(G)},G.escapedName]}),i,void 0,o)}}}}e.createTypeChecker=C;function m(j){return!e.isAccessor(j)}function u(j){return j.kind!==255&&j.kind!==168||!!j.body}function g(j){switch(j.parent.kind){case 269:case 274:return e.isIdentifier(j);default:return e.isDeclarationName(j)}}var P;(function(j){j.JSX="JSX",j.IntrinsicElements="IntrinsicElements",j.ElementClass="ElementClass",j.ElementAttributesPropertyNameContainer="ElementAttributesProperty",j.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",j.Element="Element",j.IntrinsicAttributes="IntrinsicAttributes",j.IntrinsicClassAttributes="IntrinsicClassAttributes",j.LibraryManagedAttributes="LibraryManagedAttributes"})(P||(P={}));function te(j){switch(j){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function ue(j){return!!(j.flags&1)}e.signatureHasRestParameter=ue;function X(j){return!!(j.flags&2)}e.signatureHasLiteralTypes=X}(jr||(jr={})),function(e){function n(b,M,S,B){if(b===void 0||M===void 0)return b;var H=M(b);if(H===b)return b;var I;if(H!==void 0)return e.isArray(H)?I=(B||ie)(H):I=H,e.Debug.assertNode(I,S),I}e.visitNode=n;function f(b,M,S,B,H){if(b===void 0||M===void 0)return b;var I,w=b.length;(B===void 0||B<0)&&(B=0),(H===void 0||H>w-B)&&(H=w-B);var x,O=-1,q=-1;(B>0||H<w)&&(I=[],x=b.hasTrailingComma&&B+H===w);for(var Z=0;Z<H;Z++){var ne=b[Z+B],F=ne!==void 0?M(ne):void 0;if((I!==void 0||F===void 0||F!==ne)&&(I===void 0&&(I=b.slice(0,Z),x=b.hasTrailingComma,O=b.pos,q=b.end),F))if(e.isArray(F))for(var Q=0,V=F;Q<V.length;Q++){var re=V[Q];e.Debug.assertNode(re,S),I.push(re)}else e.Debug.assertNode(F,S),I.push(F)}if(I){var T=e.factory.createNodeArray(I,x);return e.setTextRangePosEnd(T,O,q),T}return b}e.visitNodes=f;function p(b,M,S,B,H,I){return I===void 0&&(I=f),S.startLexicalEnvironment(),b=I(b,M,e.isStatement,B),H&&(b=S.factory.ensureUseStrict(b)),e.factory.mergeLexicalEnvironment(b,S.endLexicalEnvironment())}e.visitLexicalEnvironment=p;function a(b,M,S,B){B===void 0&&(B=f);var H;return S.startLexicalEnvironment(),b&&(S.setLexicalEnvironmentFlags(1,!0),H=B(b,M,e.isParameterDeclaration),S.getLexicalEnvironmentFlags()&2&&e.getEmitScriptTarget(S.getCompilerOptions())>=2&&(H=d(H,S)),S.setLexicalEnvironmentFlags(1,!1)),S.suspendLexicalEnvironment(),H}e.visitParameterList=a;function d(b,M){for(var S,B=0;B<b.length;B++){var H=b[B],I=k(H,M);(S||I!==H)&&(S||(S=b.slice(0,B)),S[B]=I)}return S?e.setTextRange(M.factory.createNodeArray(S,b.hasTrailingComma),b):b}function k(b,M){return b.dotDotDotToken?b:e.isBindingPattern(b.name)?J(b,M):b.initializer?h(b,b.name,b.initializer,M):b}function J(b,M){var S=M.factory;return M.addInitializationStatement(S.createVariableStatement(void 0,S.createVariableDeclarationList([S.createVariableDeclaration(b.name,void 0,b.type,b.initializer?S.createConditionalExpression(S.createStrictEquality(S.getGeneratedNameForNode(b),S.createVoidZero()),void 0,b.initializer,void 0,S.getGeneratedNameForNode(b)):S.getGeneratedNameForNode(b))]))),S.updateParameterDeclaration(b,b.decorators,b.modifiers,b.dotDotDotToken,S.getGeneratedNameForNode(b),b.questionToken,b.type,void 0)}function h(b,M,S,B){var H=B.factory;return B.addInitializationStatement(H.createIfStatement(H.createTypeCheck(H.cloneNode(M),"undefined"),e.setEmitFlags(e.setTextRange(H.createBlock([H.createExpressionStatement(e.setEmitFlags(e.setTextRange(H.createAssignment(e.setEmitFlags(H.cloneNode(M),48),e.setEmitFlags(S,48|e.getEmitFlags(S)|1536)),b),1536))]),b),1953))),H.updateParameterDeclaration(b,b.decorators,b.modifiers,b.dotDotDotToken,b.name,b.questionToken,b.type,void 0)}function v(b,M,S,B){B===void 0&&(B=n),S.resumeLexicalEnvironment();var H=B(b,M,e.isConciseBody),I=S.endLexicalEnvironment();if(e.some(I)){if(!H)return S.factory.createBlock(I);var w=S.factory.converters.convertToFunctionBlock(H),x=e.factory.mergeLexicalEnvironment(w.statements,I);return S.factory.updateBlock(w,x)}return H}e.visitFunctionBody=v;function A(b,M,S){S.startBlockScope();var B=n(b,M,e.isStatement,S.factory.liftToBlock),H=S.endBlockScope();return e.some(H)?e.isBlock(B)?(H.push.apply(H,B.statements),S.factory.updateBlock(B,H)):(H.push(B),S.factory.createBlock(H)):B}e.visitIterationBody=A;function z(b,M,S,B,H,I){if(B===void 0&&(B=f),I===void 0&&(I=n),b!==void 0){var w=b.kind;if(w>0&&w<=159||w===191)return b;var x=S.factory;switch(w){case 79:return e.Debug.type(b),x.updateIdentifier(b,B(b.typeArguments,M,e.isTypeNodeOrTypeParameterDeclaration));case 160:return e.Debug.type(b),x.updateQualifiedName(b,I(b.left,M,e.isEntityName),I(b.right,M,e.isIdentifier));case 161:return e.Debug.type(b),x.updateComputedPropertyName(b,I(b.expression,M,e.isExpression));case 162:return e.Debug.type(b),x.updateTypeParameterDeclaration(b,I(b.name,M,e.isIdentifier),I(b.constraint,M,e.isTypeNode),I(b.default,M,e.isTypeNode));case 163:return e.Debug.type(b),x.updateParameterDeclaration(b,B(b.decorators,M,e.isDecorator),B(b.modifiers,M,e.isModifier),I(b.dotDotDotToken,H,e.isDotDotDotToken),I(b.name,M,e.isBindingName),I(b.questionToken,H,e.isQuestionToken),I(b.type,M,e.isTypeNode),I(b.initializer,M,e.isExpression));case 164:return e.Debug.type(b),x.updateDecorator(b,I(b.expression,M,e.isExpression));case 165:return e.Debug.type(b),x.updatePropertySignature(b,B(b.modifiers,M,e.isModifier),I(b.name,M,e.isPropertyName),I(b.questionToken,H,e.isToken),I(b.type,M,e.isTypeNode));case 166:return e.Debug.type(b),x.updatePropertyDeclaration(b,B(b.decorators,M,e.isDecorator),B(b.modifiers,M,e.isModifier),I(b.name,M,e.isPropertyName),I(b.questionToken||b.exclamationToken,H,e.isQuestionOrExclamationToken),I(b.type,M,e.isTypeNode),I(b.initializer,M,e.isExpression));case 167:return e.Debug.type(b),x.updateMethodSignature(b,B(b.modifiers,M,e.isModifier),I(b.name,M,e.isPropertyName),I(b.questionToken,H,e.isQuestionToken),B(b.typeParameters,M,e.isTypeParameterDeclaration),B(b.parameters,M,e.isParameterDeclaration),I(b.type,M,e.isTypeNode));case 168:return e.Debug.type(b),x.updateMethodDeclaration(b,B(b.decorators,M,e.isDecorator),B(b.modifiers,M,e.isModifier),I(b.asteriskToken,H,e.isAsteriskToken),I(b.name,M,e.isPropertyName),I(b.questionToken,H,e.isQuestionToken),B(b.typeParameters,M,e.isTypeParameterDeclaration),a(b.parameters,M,S,B),I(b.type,M,e.isTypeNode),v(b.body,M,S,I));case 170:return e.Debug.type(b),x.updateConstructorDeclaration(b,B(b.decorators,M,e.isDecorator),B(b.modifiers,M,e.isModifier),a(b.parameters,M,S,B),v(b.body,M,S,I));case 171:return e.Debug.type(b),x.updateGetAccessorDeclaration(b,B(b.decorators,M,e.isDecorator),B(b.modifiers,M,e.isModifier),I(b.name,M,e.isPropertyName),a(b.parameters,M,S,B),I(b.type,M,e.isTypeNode),v(b.body,M,S,I));case 172:return e.Debug.type(b),x.updateSetAccessorDeclaration(b,B(b.decorators,M,e.isDecorator),B(b.modifiers,M,e.isModifier),I(b.name,M,e.isPropertyName),a(b.parameters,M,S,B),v(b.body,M,S,I));case 169:return e.Debug.type(b),S.startLexicalEnvironment(),S.suspendLexicalEnvironment(),x.updateClassStaticBlockDeclaration(b,B(b.decorators,M,e.isDecorator),B(b.modifiers,M,e.isModifier),v(b.body,M,S,I));case 173:return e.Debug.type(b),x.updateCallSignature(b,B(b.typeParameters,M,e.isTypeParameterDeclaration),B(b.parameters,M,e.isParameterDeclaration),I(b.type,M,e.isTypeNode));case 174:return e.Debug.type(b),x.updateConstructSignature(b,B(b.typeParameters,M,e.isTypeParameterDeclaration),B(b.parameters,M,e.isParameterDeclaration),I(b.type,M,e.isTypeNode));case 175:return e.Debug.type(b),x.updateIndexSignature(b,B(b.decorators,M,e.isDecorator),B(b.modifiers,M,e.isModifier),B(b.parameters,M,e.isParameterDeclaration),I(b.type,M,e.isTypeNode));case 176:return e.Debug.type(b),x.updateTypePredicateNode(b,I(b.assertsModifier,M,e.isAssertsKeyword),I(b.parameterName,M,e.isIdentifierOrThisTypeNode),I(b.type,M,e.isTypeNode));case 177:return e.Debug.type(b),x.updateTypeReferenceNode(b,I(b.typeName,M,e.isEntityName),B(b.typeArguments,M,e.isTypeNode));case 178:return e.Debug.type(b),x.updateFunctionTypeNode(b,B(b.typeParameters,M,e.isTypeParameterDeclaration),B(b.parameters,M,e.isParameterDeclaration),I(b.type,M,e.isTypeNode));case 179:return e.Debug.type(b),x.updateConstructorTypeNode(b,B(b.modifiers,M,e.isModifier),B(b.typeParameters,M,e.isTypeParameterDeclaration),B(b.parameters,M,e.isParameterDeclaration),I(b.type,M,e.isTypeNode));case 180:return e.Debug.type(b),x.updateTypeQueryNode(b,I(b.exprName,M,e.isEntityName));case 181:return e.Debug.type(b),x.updateTypeLiteralNode(b,B(b.members,M,e.isTypeElement));case 182:return e.Debug.type(b),x.updateArrayTypeNode(b,I(b.elementType,M,e.isTypeNode));case 183:return e.Debug.type(b),x.updateTupleTypeNode(b,B(b.elements,M,e.isTypeNode));case 184:return e.Debug.type(b),x.updateOptionalTypeNode(b,I(b.type,M,e.isTypeNode));case 185:return e.Debug.type(b),x.updateRestTypeNode(b,I(b.type,M,e.isTypeNode));case 186:return e.Debug.type(b),x.updateUnionTypeNode(b,B(b.types,M,e.isTypeNode));case 187:return e.Debug.type(b),x.updateIntersectionTypeNode(b,B(b.types,M,e.isTypeNode));case 188:return e.Debug.type(b),x.updateConditionalTypeNode(b,I(b.checkType,M,e.isTypeNode),I(b.extendsType,M,e.isTypeNode),I(b.trueType,M,e.isTypeNode),I(b.falseType,M,e.isTypeNode));case 189:return e.Debug.type(b),x.updateInferTypeNode(b,I(b.typeParameter,M,e.isTypeParameterDeclaration));case 199:return e.Debug.type(b),x.updateImportTypeNode(b,I(b.argument,M,e.isTypeNode),I(b.qualifier,M,e.isEntityName),f(b.typeArguments,M,e.isTypeNode),b.isTypeOf);case 196:return e.Debug.type(b),x.updateNamedTupleMember(b,n(b.dotDotDotToken,M,e.isDotDotDotToken),n(b.name,M,e.isIdentifier),n(b.questionToken,M,e.isQuestionToken),n(b.type,M,e.isTypeNode));case 190:return e.Debug.type(b),x.updateParenthesizedType(b,I(b.type,M,e.isTypeNode));case 192:return e.Debug.type(b),x.updateTypeOperatorNode(b,I(b.type,M,e.isTypeNode));case 193:return e.Debug.type(b),x.updateIndexedAccessTypeNode(b,I(b.objectType,M,e.isTypeNode),I(b.indexType,M,e.isTypeNode));case 194:return e.Debug.type(b),x.updateMappedTypeNode(b,I(b.readonlyToken,H,e.isReadonlyKeywordOrPlusOrMinusToken),I(b.typeParameter,M,e.isTypeParameterDeclaration),I(b.nameType,M,e.isTypeNode),I(b.questionToken,H,e.isQuestionOrPlusOrMinusToken),I(b.type,M,e.isTypeNode),B(b.members,M,e.isTypeElement));case 195:return e.Debug.type(b),x.updateLiteralTypeNode(b,I(b.literal,M,e.isExpression));case 197:return e.Debug.type(b),x.updateTemplateLiteralType(b,I(b.head,M,e.isTemplateHead),B(b.templateSpans,M,e.isTemplateLiteralTypeSpan));case 198:return e.Debug.type(b),x.updateTemplateLiteralTypeSpan(b,I(b.type,M,e.isTypeNode),I(b.literal,M,e.isTemplateMiddleOrTemplateTail));case 200:return e.Debug.type(b),x.updateObjectBindingPattern(b,B(b.elements,M,e.isBindingElement));case 201:return e.Debug.type(b),x.updateArrayBindingPattern(b,B(b.elements,M,e.isArrayBindingElement));case 202:return e.Debug.type(b),x.updateBindingElement(b,I(b.dotDotDotToken,H,e.isDotDotDotToken),I(b.propertyName,M,e.isPropertyName),I(b.name,M,e.isBindingName),I(b.initializer,M,e.isExpression));case 203:return e.Debug.type(b),x.updateArrayLiteralExpression(b,B(b.elements,M,e.isExpression));case 204:return e.Debug.type(b),x.updateObjectLiteralExpression(b,B(b.properties,M,e.isObjectLiteralElementLike));case 205:return b.flags&32?(e.Debug.type(b),x.updatePropertyAccessChain(b,I(b.expression,M,e.isExpression),I(b.questionDotToken,H,e.isQuestionDotToken),I(b.name,M,e.isMemberName))):(e.Debug.type(b),x.updatePropertyAccessExpression(b,I(b.expression,M,e.isExpression),I(b.name,M,e.isMemberName)));case 206:return b.flags&32?(e.Debug.type(b),x.updateElementAccessChain(b,I(b.expression,M,e.isExpression),I(b.questionDotToken,H,e.isQuestionDotToken),I(b.argumentExpression,M,e.isExpression))):(e.Debug.type(b),x.updateElementAccessExpression(b,I(b.expression,M,e.isExpression),I(b.argumentExpression,M,e.isExpression)));case 207:return b.flags&32?(e.Debug.type(b),x.updateCallChain(b,I(b.expression,M,e.isExpression),I(b.questionDotToken,H,e.isQuestionDotToken),B(b.typeArguments,M,e.isTypeNode),B(b.arguments,M,e.isExpression))):(e.Debug.type(b),x.updateCallExpression(b,I(b.expression,M,e.isExpression),B(b.typeArguments,M,e.isTypeNode),B(b.arguments,M,e.isExpression)));case 208:return e.Debug.type(b),x.updateNewExpression(b,I(b.expression,M,e.isExpression),B(b.typeArguments,M,e.isTypeNode),B(b.arguments,M,e.isExpression));case 209:return e.Debug.type(b),x.updateTaggedTemplateExpression(b,I(b.tag,M,e.isExpression),f(b.typeArguments,M,e.isTypeNode),I(b.template,M,e.isTemplateLiteral));case 210:return e.Debug.type(b),x.updateTypeAssertion(b,I(b.type,M,e.isTypeNode),I(b.expression,M,e.isExpression));case 211:return e.Debug.type(b),x.updateParenthesizedExpression(b,I(b.expression,M,e.isExpression));case 212:return e.Debug.type(b),x.updateFunctionExpression(b,B(b.modifiers,M,e.isModifier),I(b.asteriskToken,H,e.isAsteriskToken),I(b.name,M,e.isIdentifier),B(b.typeParameters,M,e.isTypeParameterDeclaration),a(b.parameters,M,S,B),I(b.type,M,e.isTypeNode),v(b.body,M,S,I));case 213:return e.Debug.type(b),x.updateArrowFunction(b,B(b.modifiers,M,e.isModifier),B(b.typeParameters,M,e.isTypeParameterDeclaration),a(b.parameters,M,S,B),I(b.type,M,e.isTypeNode),I(b.equalsGreaterThanToken,H,e.isEqualsGreaterThanToken),v(b.body,M,S,I));case 214:return e.Debug.type(b),x.updateDeleteExpression(b,I(b.expression,M,e.isExpression));case 215:return e.Debug.type(b),x.updateTypeOfExpression(b,I(b.expression,M,e.isExpression));case 216:return e.Debug.type(b),x.updateVoidExpression(b,I(b.expression,M,e.isExpression));case 217:return e.Debug.type(b),x.updateAwaitExpression(b,I(b.expression,M,e.isExpression));case 218:return e.Debug.type(b),x.updatePrefixUnaryExpression(b,I(b.operand,M,e.isExpression));case 219:return e.Debug.type(b),x.updatePostfixUnaryExpression(b,I(b.operand,M,e.isExpression));case 220:return e.Debug.type(b),x.updateBinaryExpression(b,I(b.left,M,e.isExpression),I(b.operatorToken,H,e.isBinaryOperatorToken),I(b.right,M,e.isExpression));case 221:return e.Debug.type(b),x.updateConditionalExpression(b,I(b.condition,M,e.isExpression),I(b.questionToken,H,e.isQuestionToken),I(b.whenTrue,M,e.isExpression),I(b.colonToken,H,e.isColonToken),I(b.whenFalse,M,e.isExpression));case 222:return e.Debug.type(b),x.updateTemplateExpression(b,I(b.head,M,e.isTemplateHead),B(b.templateSpans,M,e.isTemplateSpan));case 223:return e.Debug.type(b),x.updateYieldExpression(b,I(b.asteriskToken,H,e.isAsteriskToken),I(b.expression,M,e.isExpression));case 224:return e.Debug.type(b),x.updateSpreadElement(b,I(b.expression,M,e.isExpression));case 225:return e.Debug.type(b),x.updateClassExpression(b,B(b.decorators,M,e.isDecorator),B(b.modifiers,M,e.isModifier),I(b.name,M,e.isIdentifier),B(b.typeParameters,M,e.isTypeParameterDeclaration),B(b.heritageClauses,M,e.isHeritageClause),B(b.members,M,e.isClassElement));case 227:return e.Debug.type(b),x.updateExpressionWithTypeArguments(b,I(b.expression,M,e.isExpression),B(b.typeArguments,M,e.isTypeNode));case 228:return e.Debug.type(b),x.updateAsExpression(b,I(b.expression,M,e.isExpression),I(b.type,M,e.isTypeNode));case 229:return b.flags&32?(e.Debug.type(b),x.updateNonNullChain(b,I(b.expression,M,e.isExpression))):(e.Debug.type(b),x.updateNonNullExpression(b,I(b.expression,M,e.isExpression)));case 230:return e.Debug.type(b),x.updateMetaProperty(b,I(b.name,M,e.isIdentifier));case 232:return e.Debug.type(b),x.updateTemplateSpan(b,I(b.expression,M,e.isExpression),I(b.literal,M,e.isTemplateMiddleOrTemplateTail));case 234:return e.Debug.type(b),x.updateBlock(b,B(b.statements,M,e.isStatement));case 236:return e.Debug.type(b),x.updateVariableStatement(b,B(b.modifiers,M,e.isModifier),I(b.declarationList,M,e.isVariableDeclarationList));case 237:return e.Debug.type(b),x.updateExpressionStatement(b,I(b.expression,M,e.isExpression));case 238:return e.Debug.type(b),x.updateIfStatement(b,I(b.expression,M,e.isExpression),I(b.thenStatement,M,e.isStatement,x.liftToBlock),I(b.elseStatement,M,e.isStatement,x.liftToBlock));case 239:return e.Debug.type(b),x.updateDoStatement(b,A(b.statement,M,S),I(b.expression,M,e.isExpression));case 240:return e.Debug.type(b),x.updateWhileStatement(b,I(b.expression,M,e.isExpression),A(b.statement,M,S));case 241:return e.Debug.type(b),x.updateForStatement(b,I(b.initializer,M,e.isForInitializer),I(b.condition,M,e.isExpression),I(b.incrementor,M,e.isExpression),A(b.statement,M,S));case 242:return e.Debug.type(b),x.updateForInStatement(b,I(b.initializer,M,e.isForInitializer),I(b.expression,M,e.isExpression),A(b.statement,M,S));case 243:return e.Debug.type(b),x.updateForOfStatement(b,I(b.awaitModifier,H,e.isAwaitKeyword),I(b.initializer,M,e.isForInitializer),I(b.expression,M,e.isExpression),A(b.statement,M,S));case 244:return e.Debug.type(b),x.updateContinueStatement(b,I(b.label,M,e.isIdentifier));case 245:return e.Debug.type(b),x.updateBreakStatement(b,I(b.label,M,e.isIdentifier));case 246:return e.Debug.type(b),x.updateReturnStatement(b,I(b.expression,M,e.isExpression));case 247:return e.Debug.type(b),x.updateWithStatement(b,I(b.expression,M,e.isExpression),I(b.statement,M,e.isStatement,x.liftToBlock));case 248:return e.Debug.type(b),x.updateSwitchStatement(b,I(b.expression,M,e.isExpression),I(b.caseBlock,M,e.isCaseBlock));case 249:return e.Debug.type(b),x.updateLabeledStatement(b,I(b.label,M,e.isIdentifier),I(b.statement,M,e.isStatement,x.liftToBlock));case 250:return e.Debug.type(b),x.updateThrowStatement(b,I(b.expression,M,e.isExpression));case 251:return e.Debug.type(b),x.updateTryStatement(b,I(b.tryBlock,M,e.isBlock),I(b.catchClause,M,e.isCatchClause),I(b.finallyBlock,M,e.isBlock));case 253:return e.Debug.type(b),x.updateVariableDeclaration(b,I(b.name,M,e.isBindingName),I(b.exclamationToken,H,e.isExclamationToken),I(b.type,M,e.isTypeNode),I(b.initializer,M,e.isExpression));case 254:return e.Debug.type(b),x.updateVariableDeclarationList(b,B(b.declarations,M,e.isVariableDeclaration));case 255:return e.Debug.type(b),x.updateFunctionDeclaration(b,B(b.decorators,M,e.isDecorator),B(b.modifiers,M,e.isModifier),I(b.asteriskToken,H,e.isAsteriskToken),I(b.name,M,e.isIdentifier),B(b.typeParameters,M,e.isTypeParameterDeclaration),a(b.parameters,M,S,B),I(b.type,M,e.isTypeNode),v(b.body,M,S,I));case 256:return e.Debug.type(b),x.updateClassDeclaration(b,B(b.decorators,M,e.isDecorator),B(b.modifiers,M,e.isModifier),I(b.name,M,e.isIdentifier),B(b.typeParameters,M,e.isTypeParameterDeclaration),B(b.heritageClauses,M,e.isHeritageClause),B(b.members,M,e.isClassElement));case 257:return e.Debug.type(b),x.updateInterfaceDeclaration(b,B(b.decorators,M,e.isDecorator),B(b.modifiers,M,e.isModifier),I(b.name,M,e.isIdentifier),B(b.typeParameters,M,e.isTypeParameterDeclaration),B(b.heritageClauses,M,e.isHeritageClause),B(b.members,M,e.isTypeElement));case 258:return e.Debug.type(b),x.updateTypeAliasDeclaration(b,B(b.decorators,M,e.isDecorator),B(b.modifiers,M,e.isModifier),I(b.name,M,e.isIdentifier),B(b.typeParameters,M,e.isTypeParameterDeclaration),I(b.type,M,e.isTypeNode));case 259:return e.Debug.type(b),x.updateEnumDeclaration(b,B(b.decorators,M,e.isDecorator),B(b.modifiers,M,e.isModifier),I(b.name,M,e.isIdentifier),B(b.members,M,e.isEnumMember));case 260:return e.Debug.type(b),x.updateModuleDeclaration(b,B(b.decorators,M,e.isDecorator),B(b.modifiers,M,e.isModifier),I(b.name,M,e.isModuleName),I(b.body,M,e.isModuleBody));case 261:return e.Debug.type(b),x.updateModuleBlock(b,B(b.statements,M,e.isStatement));case 262:return e.Debug.type(b),x.updateCaseBlock(b,B(b.clauses,M,e.isCaseOrDefaultClause));case 263:return e.Debug.type(b),x.updateNamespaceExportDeclaration(b,I(b.name,M,e.isIdentifier));case 264:return e.Debug.type(b),x.updateImportEqualsDeclaration(b,B(b.decorators,M,e.isDecorator),B(b.modifiers,M,e.isModifier),b.isTypeOnly,I(b.name,M,e.isIdentifier),I(b.moduleReference,M,e.isModuleReference));case 265:return e.Debug.type(b),x.updateImportDeclaration(b,B(b.decorators,M,e.isDecorator),B(b.modifiers,M,e.isModifier),I(b.importClause,M,e.isImportClause),I(b.moduleSpecifier,M,e.isExpression),I(b.assertClause,M,e.isAssertClause));case 292:return e.Debug.type(b),x.updateAssertClause(b,B(b.elements,M,e.isAssertEntry),b.multiLine);case 293:return e.Debug.type(b),x.updateAssertEntry(b,I(b.name,M,e.isAssertionKey),I(b.value,M,e.isStringLiteral));case 266:return e.Debug.type(b),x.updateImportClause(b,b.isTypeOnly,I(b.name,M,e.isIdentifier),I(b.namedBindings,M,e.isNamedImportBindings));case 267:return e.Debug.type(b),x.updateNamespaceImport(b,I(b.name,M,e.isIdentifier));case 273:return e.Debug.type(b),x.updateNamespaceExport(b,I(b.name,M,e.isIdentifier));case 268:return e.Debug.type(b),x.updateNamedImports(b,B(b.elements,M,e.isImportSpecifier));case 269:return e.Debug.type(b),x.updateImportSpecifier(b,b.isTypeOnly,I(b.propertyName,M,e.isIdentifier),I(b.name,M,e.isIdentifier));case 270:return e.Debug.type(b),x.updateExportAssignment(b,B(b.decorators,M,e.isDecorator),B(b.modifiers,M,e.isModifier),I(b.expression,M,e.isExpression));case 271:return e.Debug.type(b),x.updateExportDeclaration(b,B(b.decorators,M,e.isDecorator),B(b.modifiers,M,e.isModifier),b.isTypeOnly,I(b.exportClause,M,e.isNamedExportBindings),I(b.moduleSpecifier,M,e.isExpression),I(b.assertClause,M,e.isAssertClause));case 272:return e.Debug.type(b),x.updateNamedExports(b,B(b.elements,M,e.isExportSpecifier));case 274:return e.Debug.type(b),x.updateExportSpecifier(b,b.isTypeOnly,I(b.propertyName,M,e.isIdentifier),I(b.name,M,e.isIdentifier));case 276:return e.Debug.type(b),x.updateExternalModuleReference(b,I(b.expression,M,e.isExpression));case 277:return e.Debug.type(b),x.updateJsxElement(b,I(b.openingElement,M,e.isJsxOpeningElement),B(b.children,M,e.isJsxChild),I(b.closingElement,M,e.isJsxClosingElement));case 278:return e.Debug.type(b),x.updateJsxSelfClosingElement(b,I(b.tagName,M,e.isJsxTagNameExpression),B(b.typeArguments,M,e.isTypeNode),I(b.attributes,M,e.isJsxAttributes));case 279:return e.Debug.type(b),x.updateJsxOpeningElement(b,I(b.tagName,M,e.isJsxTagNameExpression),B(b.typeArguments,M,e.isTypeNode),I(b.attributes,M,e.isJsxAttributes));case 280:return e.Debug.type(b),x.updateJsxClosingElement(b,I(b.tagName,M,e.isJsxTagNameExpression));case 281:return e.Debug.type(b),x.updateJsxFragment(b,I(b.openingFragment,M,e.isJsxOpeningFragment),B(b.children,M,e.isJsxChild),I(b.closingFragment,M,e.isJsxClosingFragment));case 284:return e.Debug.type(b),x.updateJsxAttribute(b,I(b.name,M,e.isIdentifier),I(b.initializer,M,e.isStringLiteralOrJsxExpression));case 285:return e.Debug.type(b),x.updateJsxAttributes(b,B(b.properties,M,e.isJsxAttributeLike));case 286:return e.Debug.type(b),x.updateJsxSpreadAttribute(b,I(b.expression,M,e.isExpression));case 287:return e.Debug.type(b),x.updateJsxExpression(b,I(b.expression,M,e.isExpression));case 288:return e.Debug.type(b),x.updateCaseClause(b,I(b.expression,M,e.isExpression),B(b.statements,M,e.isStatement));case 289:return e.Debug.type(b),x.updateDefaultClause(b,B(b.statements,M,e.isStatement));case 290:return e.Debug.type(b),x.updateHeritageClause(b,B(b.types,M,e.isExpressionWithTypeArguments));case 291:return e.Debug.type(b),x.updateCatchClause(b,I(b.variableDeclaration,M,e.isVariableDeclaration),I(b.block,M,e.isBlock));case 294:return e.Debug.type(b),x.updatePropertyAssignment(b,I(b.name,M,e.isPropertyName),I(b.initializer,M,e.isExpression));case 295:return e.Debug.type(b),x.updateShorthandPropertyAssignment(b,I(b.name,M,e.isIdentifier),I(b.objectAssignmentInitializer,M,e.isExpression));case 296:return e.Debug.type(b),x.updateSpreadAssignment(b,I(b.expression,M,e.isExpression));case 297:return e.Debug.type(b),x.updateEnumMember(b,I(b.name,M,e.isPropertyName),I(b.initializer,M,e.isExpression));case 303:return e.Debug.type(b),x.updateSourceFile(b,p(b.statements,M,S));case 348:return e.Debug.type(b),x.updatePartiallyEmittedExpression(b,I(b.expression,M,e.isExpression));case 349:return e.Debug.type(b),x.updateCommaListExpression(b,B(b.elements,M,e.isExpression));default:return b}}}e.visitEachChild=z;function ie(b){return e.Debug.assert(b.length<=1,"Too many nodes written to output."),e.singleOrUndefined(b)}}(jr||(jr={})),function(e){function n(O,q,Z,ne,F){var Q=F.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,V=Q.enter,re=Q.exit,T=[],N=[],y=new e.Map,D,C=[],m,u=[],g="",P=0,te=0,ue=0,X=0,j=0,Se=0,Ce=!1,R=0,Y=0,U=0,K=0,Te=0,ge=0,ke=!1,Pe=!1,Ie=!1;return{getSources:function(){return T},addSource:Ge,setSourceContent:he,addName:ve,addMapping:Le,appendSourceMap:qe,toJSON:Dr,toString:function(){return JSON.stringify(Dr())}};function Ge(lr){V();var Ar=e.getRelativePathToDirectoryOrUrl(ne,lr,O.getCurrentDirectory(),O.getCanonicalFileName,!0),kr=y.get(Ar);return kr===void 0&&(kr=N.length,N.push(Ar),T.push(lr),y.set(Ar,kr)),re(),kr}function he(lr,Ar){if(V(),Ar!==null){for(D||(D=[]);D.length<lr;)D.push(null);D[lr]=Ar}re()}function ve(lr){V(),m||(m=new e.Map);var Ar=m.get(lr);return Ar===void 0&&(Ar=C.length,C.push(lr),m.set(lr,Ar)),re(),Ar}function Ve(lr,Ar){return!ke||R!==lr||Y!==Ar}function _e(lr,Ar,kr){return lr!==void 0&&Ar!==void 0&&kr!==void 0&&U===lr&&(K>Ar||K===Ar&&Te>kr)}function Le(lr,Ar,kr,Ke,Me,Hr){e.Debug.assert(lr>=R,"generatedLine cannot backtrack"),e.Debug.assert(Ar>=0,"generatedCharacter cannot be negative"),e.Debug.assert(kr===void 0||kr>=0,"sourceIndex cannot be negative"),e.Debug.assert(Ke===void 0||Ke>=0,"sourceLine cannot be negative"),e.Debug.assert(Me===void 0||Me>=0,"sourceCharacter cannot be negative"),V(),(Ve(lr,Ar)||_e(kr,Ke,Me))&&(Ae(),R=lr,Y=Ar,Pe=!1,Ie=!1,ke=!0),kr!==void 0&&Ke!==void 0&&Me!==void 0&&(U=kr,K=Ke,Te=Me,Pe=!0,Hr!==void 0&&(ge=Hr,Ie=!0)),re()}function qe(lr,Ar,kr,Ke,Me,Hr){e.Debug.assert(lr>=R,"generatedLine cannot backtrack"),e.Debug.assert(Ar>=0,"generatedCharacter cannot be negative"),V();for(var ur=[],gr,de=v(kr.mappings),Fe=de.next();!Fe.done;Fe=de.next()){var $e=Fe.value;if(Hr&&($e.generatedLine>Hr.line||$e.generatedLine===Hr.line&&$e.generatedCharacter>Hr.character))break;if(!(Me&&($e.generatedLine<Me.line||Me.line===$e.generatedLine&&$e.generatedCharacter<Me.character))){var Sr=void 0,Pr=void 0,He=void 0,pr=void 0;if($e.sourceIndex!==void 0){if(Sr=ur[$e.sourceIndex],Sr===void 0){var Jr=kr.sources[$e.sourceIndex],ze=kr.sourceRoot?e.combinePaths(kr.sourceRoot,Jr):Jr,Lr=e.combinePaths(e.getDirectoryPath(Ke),ze);ur[$e.sourceIndex]=Sr=Ge(Lr),kr.sourcesContent&&typeof kr.sourcesContent[$e.sourceIndex]=="string"&&he(Sr,kr.sourcesContent[$e.sourceIndex])}Pr=$e.sourceLine,He=$e.sourceCharacter,kr.names&&$e.nameIndex!==void 0&&(gr||(gr=[]),pr=gr[$e.nameIndex],pr===void 0&&(gr[$e.nameIndex]=pr=ve(kr.names[$e.nameIndex])))}var Yr=$e.generatedLine-(Me?Me.line:0),lt=Yr+lr,tt=Me&&Me.line===$e.generatedLine?$e.generatedCharacter-Me.character:$e.generatedCharacter,Rt=Yr===0?tt+Ar:tt;Le(lt,Rt,Sr,Pr,He,pr)}}re()}function Xe(){return!Ce||P!==R||te!==Y||ue!==U||X!==K||j!==Te||Se!==ge}function De(lr){u.push(lr),u.length>=1024&&Ye()}function Ae(){if(!(!ke||!Xe())){if(V(),P<R){do De(59),P++;while(P<R);te=0}else e.Debug.assertEqual(P,R,"generatedLine cannot backtrack"),Ce&&De(44);br(Y-te),te=Y,Pe&&(br(U-ue),ue=U,br(K-X),X=K,br(Te-j),j=Te,Ie&&(br(ge-Se),Se=ge)),Ce=!0,re()}}function Ye(){u.length>0&&(g+=String.fromCharCode.apply(void 0,u),u.length=0)}function Dr(){return Ae(),Ye(),{version:3,file:q,sourceRoot:Z,sources:N,names:C,mappings:g,sourcesContent:D}}function br(lr){lr<0?lr=(-lr<<1)+1:lr=lr<<1;do{var Ar=lr&31;lr=lr>>5,lr>0&&(Ar=Ar|32),De(ie(Ar))}while(lr>0)}}e.createSourceMapGenerator=n;var f=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,p=/^\s*(\/\/[@#] .*)?$/;function a(O,q){return{getLineCount:function(){return q.length},getLineText:function(Z){return O.substring(q[Z],q[Z+1])}}}e.getLineInfo=a;function d(O){for(var q=O.getLineCount()-1;q>=0;q--){var Z=O.getLineText(q),ne=f.exec(Z);if(ne)return e.trimStringEnd(ne[1]);if(!Z.match(p))break}}e.tryGetSourceMappingURL=d;function k(O){return typeof O=="string"||O===null}function J(O){return O!==null&&typeof O=="object"&&O.version===3&&typeof O.file=="string"&&typeof O.mappings=="string"&&e.isArray(O.sources)&&e.every(O.sources,e.isString)&&(O.sourceRoot===void 0||O.sourceRoot===null||typeof O.sourceRoot=="string")&&(O.sourcesContent===void 0||O.sourcesContent===null||e.isArray(O.sourcesContent)&&e.every(O.sourcesContent,k))&&(O.names===void 0||O.names===null||e.isArray(O.names)&&e.every(O.names,e.isString))}e.isRawSourceMap=J;function h(O){try{var q=JSON.parse(O);if(J(q))return q}catch{}}e.tryParseRawSourceMap=h;function v(O){var q=!1,Z=0,ne=0,F=0,Q=0,V=0,re=0,T=0,N;return{get pos(){return Z},get error(){return N},get state(){return y(!0,!0)},next:function(){for(;!q&&Z<O.length;){var te=O.charCodeAt(Z);if(te===59){ne++,F=0,Z++;continue}if(te===44){Z++;continue}var ue=!1,X=!1;if(F+=P(),u())return D();if(F<0)return m("Invalid generatedCharacter found");if(!g()){if(ue=!0,Q+=P(),u())return D();if(Q<0)return m("Invalid sourceIndex found");if(g())return m("Unsupported Format: No entries after sourceIndex");if(V+=P(),u())return D();if(V<0)return m("Invalid sourceLine found");if(g())return m("Unsupported Format: No entries after sourceLine");if(re+=P(),u())return D();if(re<0)return m("Invalid sourceCharacter found");if(!g()){if(X=!0,T+=P(),u())return D();if(T<0)return m("Invalid nameIndex found");if(!g())return m("Unsupported Error Format: Entries after nameIndex")}}return{value:y(ue,X),done:q}}return D()}};function y(te,ue){return{generatedLine:ne,generatedCharacter:F,sourceIndex:te?Q:void 0,sourceLine:te?V:void 0,sourceCharacter:te?re:void 0,nameIndex:ue?T:void 0}}function D(){return q=!0,{value:void 0,done:!0}}function C(te){N===void 0&&(N=te)}function m(te){return C(te),D()}function u(){return N!==void 0}function g(){return Z===O.length||O.charCodeAt(Z)===44||O.charCodeAt(Z)===59}function P(){for(var te=!0,ue=0,X=0;te;Z++){if(Z>=O.length)return C("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var j=b(O.charCodeAt(Z));if(j===-1)return C("Invalid character in VLQ"),-1;te=(j&32)!==0,X=X|(j&31)<<ue,ue+=5}return X&1?(X=X>>1,X=-X):X=X>>1,X}}e.decodeMappings=v;function A(O,q){return O===q||O.generatedLine===q.generatedLine&&O.generatedCharacter===q.generatedCharacter&&O.sourceIndex===q.sourceIndex&&O.sourceLine===q.sourceLine&&O.sourceCharacter===q.sourceCharacter&&O.nameIndex===q.nameIndex}e.sameMapping=A;function z(O){return O.sourceIndex!==void 0&&O.sourceLine!==void 0&&O.sourceCharacter!==void 0}e.isSourceMapping=z;function ie(O){return O>=0&&O<26?65+O:O>=26&&O<52?97+O-26:O>=52&&O<62?48+O-52:O===62?43:O===63?47:e.Debug.fail("".concat(O,": not a base64 value"))}function b(O){return O>=65&&O<=90?O-65:O>=97&&O<=122?O-97+26:O>=48&&O<=57?O-48+52:O===43?62:O===47?63:-1}function M(O){return O.sourceIndex!==void 0&&O.sourcePosition!==void 0}function S(O,q){return O.generatedPosition===q.generatedPosition&&O.sourceIndex===q.sourceIndex&&O.sourcePosition===q.sourcePosition}function B(O,q){return e.Debug.assert(O.sourceIndex===q.sourceIndex),e.compareValues(O.sourcePosition,q.sourcePosition)}function H(O,q){return e.compareValues(O.generatedPosition,q.generatedPosition)}function I(O){return O.sourcePosition}function w(O){return O.generatedPosition}function x(O,q,Z){var ne=e.getDirectoryPath(Z),F=q.sourceRoot?e.getNormalizedAbsolutePath(q.sourceRoot,ne):ne,Q=e.getNormalizedAbsolutePath(q.file,ne),V=O.getSourceFileLike(Q),re=q.sources.map(function(ue){return e.getNormalizedAbsolutePath(ue,F)}),T=new e.Map(re.map(function(ue,X){return[O.getCanonicalFileName(ue),X]})),N,y,D;return{getSourcePosition:te,getGeneratedPosition:P};function C(ue){var X=V!==void 0?e.getPositionOfLineAndCharacter(V,ue.generatedLine,ue.generatedCharacter,!0):-1,j,Se;if(z(ue)){var Ce=O.getSourceFileLike(re[ue.sourceIndex]);j=q.sources[ue.sourceIndex],Se=Ce!==void 0?e.getPositionOfLineAndCharacter(Ce,ue.sourceLine,ue.sourceCharacter,!0):-1}return{generatedPosition:X,source:j,sourceIndex:ue.sourceIndex,sourcePosition:Se,nameIndex:ue.nameIndex}}function m(){if(N===void 0){var ue=v(q.mappings),X=e.arrayFrom(ue,C);ue.error!==void 0?(O.log&&O.log("Encountered error while decoding sourcemap: ".concat(ue.error)),N=e.emptyArray):N=X}return N}function u(ue){if(D===void 0){for(var X=[],j=0,Se=m();j<Se.length;j++){var Ce=Se[j];if(M(Ce)){var R=X[Ce.sourceIndex];R||(X[Ce.sourceIndex]=R=[]),R.push(Ce)}}D=X.map(function(Y){return e.sortAndDeduplicate(Y,B,S)})}return D[ue]}function g(){if(y===void 0){for(var ue=[],X=0,j=m();X<j.length;X++){var Se=j[X];ue.push(Se)}y=e.sortAndDeduplicate(ue,H,S)}return y}function P(ue){var X=T.get(O.getCanonicalFileName(ue.fileName));if(X===void 0)return ue;var j=u(X);if(!e.some(j))return ue;var Se=e.binarySearchKey(j,ue.pos,I,e.compareValues);Se<0&&(Se=~Se);var Ce=j[Se];return Ce===void 0||Ce.sourceIndex!==X?ue:{fileName:Q,pos:Ce.generatedPosition}}function te(ue){var X=g();if(!e.some(X))return ue;var j=e.binarySearchKey(X,ue.pos,w,e.compareValues);j<0&&(j=~j);var Se=X[j];return Se===void 0||!M(Se)?ue:{fileName:re[Se.sourceIndex],pos:Se.sourcePosition}}}e.createDocumentPositionMapper=x,e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}}(jr||(jr={})),function(e){function n(Z){return Z=e.getOriginalNode(Z),Z?e.getNodeId(Z):0}e.getOriginalNodeId=n;function f(Z){return!Z||!e.isNamedImports(Z)?!1:e.some(Z.elements,p)}function p(Z){return Z.propertyName!==void 0&&Z.propertyName.escapedText==="default"}function a(Z,ne){return F;function F(V){return V.kind===303?ne(V):Q(V)}function Q(V){return Z.factory.createBundle(e.map(V.sourceFiles,ne),V.prepends)}}e.chainBundle=a;function d(Z){return!!e.getNamespaceDeclarationNode(Z)}e.getExportNeedsImportStarHelper=d;function k(Z){if(e.getNamespaceDeclarationNode(Z))return!0;var ne=Z.importClause&&Z.importClause.namedBindings;if(!ne||!e.isNamedImports(ne))return!1;for(var F=0,Q=0,V=ne.elements;Q<V.length;Q++){var re=V[Q];p(re)&&F++}return F>0&&F!==ne.elements.length||!!(ne.elements.length-F)&&e.isDefaultImport(Z)}e.getImportNeedsImportStarHelper=k;function J(Z){return!k(Z)&&(e.isDefaultImport(Z)||!!Z.importClause&&e.isNamedImports(Z.importClause.namedBindings)&&f(Z.importClause.namedBindings))}e.getImportNeedsImportDefaultHelper=J;function h(Z,ne,F,Q){for(var V=[],re=e.createMultiMap(),T=[],N=new e.Map,y,D=!1,C,m=!1,u=!1,g=!1,P=0,te=ne.statements;P<te.length;P++){var ue=te[P];switch(ue.kind){case 265:V.push(ue),!u&&k(ue)&&(u=!0),!g&&J(ue)&&(g=!0);break;case 264:ue.moduleReference.kind===276&&V.push(ue);break;case 271:if(ue.moduleSpecifier)if(!ue.exportClause)V.push(ue),m=!0;else if(V.push(ue),e.isNamedExports(ue.exportClause))Y(ue);else{var X=ue.exportClause.name;N.get(e.idText(X))||(A(T,n(ue),X),N.set(e.idText(X),!0),y=e.append(y,X)),u=!0}else Y(ue);break;case 270:ue.isExportEquals&&!C&&(C=ue);break;case 236:if(e.hasSyntacticModifier(ue,1))for(var j=0,Se=ue.declarationList.declarations;j<Se.length;j++){var Ce=Se[j];y=v(Ce,N,y)}break;case 255:if(e.hasSyntacticModifier(ue,1))if(e.hasSyntacticModifier(ue,512))D||(A(T,n(ue),Z.factory.getDeclarationName(ue)),D=!0);else{var X=ue.name;N.get(e.idText(X))||(A(T,n(ue),X),N.set(e.idText(X),!0),y=e.append(y,X))}break;case 256:if(e.hasSyntacticModifier(ue,1))if(e.hasSyntacticModifier(ue,512))D||(A(T,n(ue),Z.factory.getDeclarationName(ue)),D=!0);else{var X=ue.name;X&&!N.get(e.idText(X))&&(A(T,n(ue),X),N.set(e.idText(X),!0),y=e.append(y,X))}break}}var R=e.createExternalHelpersImportDeclarationIfNeeded(Z.factory,Z.getEmitHelperFactory(),ne,Q,m,u,g);return R&&V.unshift(R),{externalImports:V,exportSpecifiers:re,exportEquals:C,hasExportStarsToExportValues:m,exportedBindings:T,exportedNames:y,externalHelpersImportDeclaration:R};function Y(U){for(var K=0,Te=e.cast(U.exportClause,e.isNamedExports).elements;K<Te.length;K++){var ge=Te[K];if(!N.get(e.idText(ge.name))){var ke=ge.propertyName||ge.name;U.moduleSpecifier||re.add(e.idText(ke),ge);var Pe=F.getReferencedImportDeclaration(ke)||F.getReferencedValueDeclaration(ke);Pe&&A(T,n(Pe),ge.name),N.set(e.idText(ge.name),!0),y=e.append(y,ge.name)}}}}e.collectExternalModuleInfo=h;function v(Z,ne,F){if(e.isBindingPattern(Z.name))for(var Q=0,V=Z.name.elements;Q<V.length;Q++){var re=V[Q];e.isOmittedExpression(re)||(F=v(re,ne,F))}else if(!e.isGeneratedIdentifier(Z.name)){var T=e.idText(Z.name);ne.get(T)||(ne.set(T,!0),F=e.append(F,Z.name))}return F}function A(Z,ne,F){var Q=Z[ne];return Q?Q.push(F):Z[ne]=Q=[F],Q}function z(Z){return e.isStringLiteralLike(Z)||Z.kind===8||e.isKeyword(Z.kind)||e.isIdentifier(Z)}e.isSimpleCopiableExpression=z;function ie(Z){return!e.isIdentifier(Z)&&z(Z)}e.isSimpleInlineableExpression=ie;function b(Z){return Z>=64&&Z<=78}e.isCompoundAssignment=b;function M(Z){switch(Z){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}}e.getNonAssignmentOperatorForCompoundAssignment=M;function S(Z,ne,F,Q){if(ne.body){var V=ne.body.statements,re=Z.copyPrologue(V,F,!1,Q);if(re===V.length)return re;var T=e.findIndex(V,function(y){return e.isExpressionStatement(y)&&e.isSuperCall(y.expression)},re);if(T>-1){for(var N=re;N<=T;N++)F.push(e.visitNode(V[N],Q,e.isStatement));return T+1}return re}return 0}e.addPrologueDirectivesAndInitialSuperCall=S;function B(Z,ne,F){return e.filter(Z.members,function(Q){return w(Q,ne,F)})}e.getProperties=B;function H(Z){return x(Z)||e.isClassStaticBlockDeclaration(Z)}function I(Z){return e.filter(Z.members,H)}e.getStaticPropertiesAndClassStaticBlock=I;function w(Z,ne,F){return e.isPropertyDeclaration(Z)&&(!!Z.initializer||!ne)&&e.hasStaticModifier(Z)===F}function x(Z){return e.isPropertyDeclaration(Z)&&e.hasStaticModifier(Z)}function O(Z){return Z.kind===166&&Z.initializer!==void 0}e.isInitializedProperty=O;function q(Z){return!e.isStatic(Z)&&e.isMethodOrAccessor(Z)&&e.isPrivateIdentifier(Z.name)}e.isNonStaticMethodOrAccessorWithPrivateName=q}(jr||(jr={})),function(e){(function(x){x[x.All=0]="All",x[x.ObjectRest=1]="ObjectRest"})(e.FlattenLevel||(e.FlattenLevel={}));function n(x,O,q,Z,ne,F){var Q=x,V;if(e.isDestructuringAssignment(x))for(V=x.right;e.isEmptyArrayLiteral(x.left)||e.isEmptyObjectLiteral(x.left);)if(e.isDestructuringAssignment(V))Q=x=V,V=x.right;else return e.visitNode(V,O,e.isExpression);var re,T={context:q,level:Z,downlevelIteration:!!q.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:N,emitBindingOrAssignment:y,createArrayBindingOrAssignmentPattern:function(D){return S(q.factory,D)},createObjectBindingOrAssignmentPattern:function(D){return H(q.factory,D)},createArrayBindingOrAssignmentElement:w,visitor:O};if(V&&(V=e.visitNode(V,O,e.isExpression),e.isIdentifier(V)&&f(x,V.escapedText)||a(x)?V=b(T,V,!1,Q):ne?V=b(T,V,!0,Q):e.nodeIsSynthesized(x)&&(Q=V)),J(T,x,V,Q,e.isDestructuringAssignment(x)),V&&ne){if(!e.some(re))return V;re.push(V)}return q.factory.inlineExpressions(re)||q.factory.createOmittedExpression();function N(D){re=e.append(re,D)}function y(D,C,m,u){e.Debug.assertNode(D,F?e.isIdentifier:e.isExpression);var g=F?F(D,C,m):e.setTextRange(q.factory.createAssignment(e.visitNode(D,O,e.isExpression),C),m);g.original=u,N(g)}}e.flattenDestructuringAssignment=n;function f(x,O){var q=e.getTargetOfBindingOrAssignmentElement(x);return e.isBindingOrAssignmentPattern(q)?p(q,O):e.isIdentifier(q)?q.escapedText===O:!1}function p(x,O){for(var q=e.getElementsOfBindingOrAssignmentPattern(x),Z=0,ne=q;Z<ne.length;Z++){var F=ne[Z];if(f(F,O))return!0}return!1}function a(x){var O=e.tryGetPropertyNameOfBindingOrAssignmentElement(x);if(O&&e.isComputedPropertyName(O)&&!e.isLiteralExpression(O.expression))return!0;var q=e.getTargetOfBindingOrAssignmentElement(x);return!!q&&e.isBindingOrAssignmentPattern(q)&&d(q)}function d(x){return!!e.forEach(e.getElementsOfBindingOrAssignmentPattern(x),a)}function k(x,O,q,Z,ne,F,Q){F===void 0&&(F=!1);var V,re=[],T=[],N={context:q,level:Z,downlevelIteration:!!q.getCompilerOptions().downlevelIteration,hoistTempVariables:F,emitExpression:Ce,emitBindingOrAssignment:R,createArrayBindingOrAssignmentPattern:function(Y){return M(q.factory,Y)},createObjectBindingOrAssignmentPattern:function(Y){return B(q.factory,Y)},createArrayBindingOrAssignmentElement:function(Y){return I(q.factory,Y)},visitor:O};if(e.isVariableDeclaration(x)){var y=e.getInitializerOfBindingOrAssignmentElement(x);y&&(e.isIdentifier(y)&&f(x,y.escapedText)||a(x))&&(y=b(N,e.visitNode(y,N.visitor),!1,y),x=q.factory.updateVariableDeclaration(x,x.name,void 0,void 0,y))}if(J(N,x,ne,x,Q),V){var D=q.factory.createTempVariable(void 0);if(F){var C=q.factory.inlineExpressions(V);V=void 0,R(D,C,void 0,void 0)}else{q.hoistVariableDeclaration(D);var m=e.last(re);m.pendingExpressions=e.append(m.pendingExpressions,q.factory.createAssignment(D,m.value)),e.addRange(m.pendingExpressions,V),m.value=D}}for(var u=0,g=re;u<g.length;u++){var P=g[u],te=P.pendingExpressions,ue=P.name,C=P.value,X=P.location,j=P.original,Se=q.factory.createVariableDeclaration(ue,void 0,void 0,te?q.factory.inlineExpressions(e.append(te,C)):C);Se.original=j,e.setTextRange(Se,X),T.push(Se)}return T;function Ce(Y){V=e.append(V,Y)}function R(Y,U,K,Te){e.Debug.assertNode(Y,e.isBindingName),V&&(U=q.factory.inlineExpressions(e.append(V,U)),V=void 0),re.push({pendingExpressions:V,name:Y,value:U,location:K,original:Te})}}e.flattenDestructuringBinding=k;function J(x,O,q,Z,ne){var F=e.getTargetOfBindingOrAssignmentElement(O);if(!ne){var Q=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(O),x.visitor,e.isExpression);Q?q?(q=z(x,q,Q,Z),!e.isSimpleInlineableExpression(Q)&&e.isBindingOrAssignmentPattern(F)&&(q=b(x,q,!0,Z))):q=Q:q||(q=x.context.factory.createVoidZero())}e.isObjectBindingOrAssignmentPattern(F)?h(x,O,F,q,Z):e.isArrayBindingOrAssignmentPattern(F)?v(x,O,F,q,Z):x.emitBindingOrAssignment(F,q,Z,O)}function h(x,O,q,Z,ne){var F=e.getElementsOfBindingOrAssignmentPattern(q),Q=F.length;if(Q!==1){var V=!e.isDeclarationBindingElement(O)||Q!==0;Z=b(x,Z,V,ne)}for(var re,T,N=0;N<Q;N++){var y=F[N];if(e.getRestIndicatorOfBindingOrAssignmentElement(y)){if(N===Q-1){re&&(x.emitBindingOrAssignment(x.createObjectBindingOrAssignmentPattern(re),Z,ne,q),re=void 0);var C=x.context.getEmitHelperFactory().createRestHelper(Z,F,T,q);J(x,y,C,y)}}else{var D=e.getPropertyNameOfBindingOrAssignmentElement(y);if(x.level>=1&&!(y.transformFlags&49152)&&!(e.getTargetOfBindingOrAssignmentElement(y).transformFlags&49152)&&!e.isComputedPropertyName(D))re=e.append(re,e.visitNode(y,x.visitor));else{re&&(x.emitBindingOrAssignment(x.createObjectBindingOrAssignmentPattern(re),Z,ne,q),re=void 0);var C=ie(x,Z,D);e.isComputedPropertyName(D)&&(T=e.append(T,C.argumentExpression)),J(x,y,C,y)}}}re&&x.emitBindingOrAssignment(x.createObjectBindingOrAssignmentPattern(re),Z,ne,q)}function v(x,O,q,Z,ne){var F=e.getElementsOfBindingOrAssignmentPattern(q),Q=F.length;if(x.level<1&&x.downlevelIteration)Z=b(x,e.setTextRange(x.context.getEmitHelperFactory().createReadHelper(Z,Q>0&&e.getRestIndicatorOfBindingOrAssignmentElement(F[Q-1])?void 0:Q),ne),!1,ne);else if(Q!==1&&(x.level<1||Q===0)||e.every(F,e.isOmittedExpression)){var V=!e.isDeclarationBindingElement(O)||Q!==0;Z=b(x,Z,V,ne)}for(var re,T,N=0;N<Q;N++){var y=F[N];if(x.level>=1)if(y.transformFlags&32768||x.hasTransformedPriorElement&&!A(y)){x.hasTransformedPriorElement=!0;var D=x.context.factory.createTempVariable(void 0);x.hoistTempVariables&&x.context.hoistVariableDeclaration(D),T=e.append(T,[D,y]),re=e.append(re,x.createArrayBindingOrAssignmentElement(D))}else re=e.append(re,y);else{if(e.isOmittedExpression(y))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(y)){if(N===Q-1){var C=x.context.factory.createArraySliceCall(Z,N);J(x,y,C,y)}}else{var C=x.context.factory.createElementAccessExpression(Z,N);J(x,y,C,y)}}}if(re&&x.emitBindingOrAssignment(x.createArrayBindingOrAssignmentPattern(re),Z,ne,q),T)for(var m=0,u=T;m<u.length;m++){var g=u[m],P=g[0],y=g[1];J(x,y,P,y)}}function A(x){var O=e.getTargetOfBindingOrAssignmentElement(x);if(!O||e.isOmittedExpression(O))return!0;var q=e.tryGetPropertyNameOfBindingOrAssignmentElement(x);if(q&&!e.isPropertyNameLiteral(q))return!1;var Z=e.getInitializerOfBindingOrAssignmentElement(x);return Z&&!e.isSimpleInlineableExpression(Z)?!1:e.isBindingOrAssignmentPattern(O)?e.every(e.getElementsOfBindingOrAssignmentPattern(O),A):e.isIdentifier(O)}function z(x,O,q,Z){return O=b(x,O,!0,Z),x.context.factory.createConditionalExpression(x.context.factory.createTypeCheck(O,"undefined"),void 0,q,void 0,O)}function ie(x,O,q){if(e.isComputedPropertyName(q)){var Z=b(x,e.visitNode(q.expression,x.visitor),!1,q);return x.context.factory.createElementAccessExpression(O,Z)}else if(e.isStringOrNumericLiteralLike(q)){var Z=e.factory.cloneNode(q);return x.context.factory.createElementAccessExpression(O,Z)}else{var ne=x.context.factory.createIdentifier(e.idText(q));return x.context.factory.createPropertyAccessExpression(O,ne)}}function b(x,O,q,Z){if(e.isIdentifier(O)&&q)return O;var ne=x.context.factory.createTempVariable(void 0);return x.hoistTempVariables?(x.context.hoistVariableDeclaration(ne),x.emitExpression(e.setTextRange(x.context.factory.createAssignment(ne,O),Z))):x.emitBindingOrAssignment(ne,O,Z,void 0),ne}function M(x,O){return e.Debug.assertEachNode(O,e.isArrayBindingElement),x.createArrayBindingPattern(O)}function S(x,O){return x.createArrayLiteralExpression(e.map(O,x.converters.convertToArrayAssignmentElement))}function B(x,O){return e.Debug.assertEachNode(O,e.isBindingElement),x.createObjectBindingPattern(O)}function H(x,O){return x.createObjectLiteralExpression(e.map(O,x.converters.convertToObjectAssignmentElement))}function I(x,O){return x.createBindingElement(void 0,void 0,O)}function w(x){return x}}(jr||(jr={})),function(e){var n;(function(d){d[d.LiftRestriction=0]="LiftRestriction",d[d.All=1]="All"})(n=e.ProcessLevel||(e.ProcessLevel={}));function f(d,k,J,h,v,A){var z=e.visitNode(k.tag,J,e.isExpression),ie=[void 0],b=[],M=[],S=k.template;if(A===n.LiftRestriction&&!e.hasInvalidEscape(S))return e.visitEachChild(k,J,d);if(e.isNoSubstitutionTemplateLiteral(S))b.push(p(S)),M.push(a(S,h));else{b.push(p(S.head)),M.push(a(S.head,h));for(var B=0,H=S.templateSpans;B<H.length;B++){var I=H[B];b.push(p(I.literal)),M.push(a(I.literal,h)),ie.push(e.visitNode(I.expression,J,e.isExpression))}}var w=d.getEmitHelperFactory().createTemplateObjectHelper(e.factory.createArrayLiteralExpression(b),e.factory.createArrayLiteralExpression(M));if(e.isExternalModule(h)){var x=e.factory.createUniqueName("templateObject");v(x),ie[0]=e.factory.createLogicalOr(x,e.factory.createAssignment(x,w))}else ie[0]=w;return e.factory.createCallExpression(z,void 0,ie)}e.processTaggedTemplateExpression=f;function p(d){return d.templateFlags?e.factory.createVoidZero():e.factory.createStringLiteral(d.text)}function a(d,k){var J=d.rawText;if(J===void 0){e.Debug.assertIsDefined(k,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),J=e.getSourceTextOfNodeFromSourceFile(k,d);var h=d.kind===14||d.kind===17;J=J.substring(1,J.length-(h?1:2))}return J=J.replace(/\r\n?/g,`
  234. `),e.setTextRange(e.factory.createStringLiteral(J),d)}}(jr||(jr={})),function(e){var n;(function(a){a[a.ClassAliases=1]="ClassAliases",a[a.NamespaceExports=2]="NamespaceExports",a[a.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"})(n||(n={}));var f;(function(a){a[a.None=0]="None",a[a.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",a[a.HasConstructorDecorators=2]="HasConstructorDecorators",a[a.HasMemberDecorators=4]="HasMemberDecorators",a[a.IsExportOfNamespace=8]="IsExportOfNamespace",a[a.IsNamedExternalExport=16]="IsNamedExternalExport",a[a.IsDefaultExternalExport=32]="IsDefaultExternalExport",a[a.IsDerivedClass=64]="IsDerivedClass",a[a.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",a[a.HasAnyDecorators=6]="HasAnyDecorators",a[a.NeedsName=5]="NeedsName",a[a.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",a[a.IsExported=56]="IsExported"})(f||(f={}));function p(a){var d=a.factory,k=a.getEmitHelperFactory,J=a.startLexicalEnvironment,h=a.resumeLexicalEnvironment,v=a.endLexicalEnvironment,A=a.hoistVariableDeclaration,z=a.getEmitResolver(),ie=a.getCompilerOptions(),b=e.getStrictOptionValue(ie,"strictNullChecks"),M=e.getEmitScriptTarget(ie),S=e.getEmitModuleKind(ie),B=a.onEmitNode,H=a.onSubstituteNode;a.onEmitNode=Zi,a.onSubstituteNode=Mo,a.enableSubstitution(205),a.enableSubstitution(206);var I,w,x,O,q,Z,ne,F,Q,V;return re;function re(oe){return oe.kind===304?T(oe):N(oe)}function T(oe){return d.createBundle(oe.sourceFiles.map(N),e.mapDefined(oe.prepends,function(mr){return mr.kind===306?e.createUnparsedSourceFile(mr,"js"):mr}))}function N(oe){if(oe.isDeclarationFile)return oe;I=oe;var mr=y(oe,R);return e.addEmitHelpers(mr,a.readEmitHelpers()),I=void 0,mr}function y(oe,mr){var se=O,Be=q,er=Z,vr=ne;D(oe);var qr=mr(oe);return O!==se&&(Z=er),O=se,q=Be,ne=vr,qr}function D(oe){switch(oe.kind){case 303:case 262:case 261:case 234:O=oe,q=void 0,Z=void 0;break;case 256:case 255:if(e.hasSyntacticModifier(oe,2))break;oe.name?ba(oe):e.Debug.assert(oe.kind===256||e.hasSyntacticModifier(oe,512)),e.isClassDeclaration(oe)&&(q=oe);break}}function C(oe){return y(oe,m)}function m(oe){return oe.transformFlags&1?Ce(oe):oe}function u(oe){return y(oe,g)}function g(oe){switch(oe.kind){case 265:case 264:case 270:case 271:return P(oe);default:return m(oe)}}function P(oe){var mr=e.getParseTreeNode(oe);if(mr!==oe)return oe.transformFlags&1?e.visitEachChild(oe,C,a):oe;switch(oe.kind){case 265:return qt(oe);case 264:return Ra(oe);case 270:return pt(oe);case 271:return _t(oe);default:e.Debug.fail("Unhandled ellided statement")}}function te(oe){return y(oe,ue)}function ue(oe){if(!(oe.kind===271||oe.kind===265||oe.kind===266||oe.kind===264&&oe.moduleReference.kind===276))return oe.transformFlags&1||e.hasSyntacticModifier(oe,1)?Ce(oe):oe}function X(oe){return y(oe,j)}function j(oe){switch(oe.kind){case 170:return or(oe);case 166:return ye(oe);case 175:case 171:case 172:case 168:case 169:return m(oe);case 233:return oe;default:return e.Debug.failBadSyntaxKind(oe)}}function Se(oe){if(!(e.modifierToFlag(oe.kind)&18654)&&!(w&&oe.kind===93))return oe}function Ce(oe){if(e.isStatement(oe)&&e.hasSyntacticModifier(oe,2))return d.createNotEmittedStatement(oe);switch(oe.kind){case 93:case 88:return w?void 0:oe;case 123:case 121:case 122:case 126:case 158:case 85:case 135:case 144:case 182:case 183:case 184:case 185:case 181:case 176:case 162:case 130:case 154:case 133:case 149:case 146:case 143:case 114:case 150:case 179:case 178:case 180:case 177:case 186:case 187:case 188:case 190:case 191:case 192:case 193:case 194:case 195:case 175:case 164:return;case 258:return d.createNotEmittedStatement(oe);case 166:return ye(oe);case 263:return;case 170:return or(oe);case 257:return d.createNotEmittedStatement(oe);case 256:return Te(oe);case 225:return Pe(oe);case 290:return ir(oe);case 227:return Or(oe);case 168:return Ee(oe);case 171:return $(oe);case 172:return Ne(oe);case 255:return me(oe);case 212:return Ze(oe);case 213:return Cr(oe);case 163:return fr(oe);case 211:return Vr(oe);case 210:case 228:return tr(oe);case 207:return Nr(oe);case 208:return zr(oe);case 209:return gt(oe);case 229:return xr(oe);case 259:return xt(oe);case 236:return dr(oe);case 253:return yt(oe);case 260:return en(oe);case 264:return Ra(oe);case 278:return vt(oe);case 279:return ut(oe);default:return e.visitEachChild(oe,C,a)}}function R(oe){var mr=e.getStrictOptionValue(ie,"alwaysStrict")&&!(e.isExternalModule(oe)&&S>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(oe);return d.updateSourceFile(oe,e.visitLexicalEnvironment(oe.statements,u,a,0,mr))}function Y(oe,mr){var se=0;e.some(mr)&&(se|=1);var Be=e.getEffectiveBaseTypeNode(oe);return Be&&e.skipOuterExpressions(Be.expression).kind!==104&&(se|=64),e.classOrConstructorParameterIsDecorated(oe)&&(se|=2),e.childIsDecorated(oe)&&(se|=4),Ci(oe)?se|=8:yi(oe)?se|=32:va(oe)&&(se|=16),M<=1&&se&7&&(se|=128),se}function U(oe){return!!(oe.transformFlags&4096)}function K(oe){return e.some(oe.decorators)||e.some(oe.typeParameters)||e.some(oe.heritageClauses,U)||e.some(oe.members,U)}function Te(oe){if(!K(oe)&&!(w&&e.hasSyntacticModifier(oe,1)))return e.visitEachChild(oe,C,a);var mr=e.getProperties(oe,!0,!0),se=Y(oe,mr);se&128&&a.startLexicalEnvironment();var Be=oe.name||(se&5?d.getGeneratedNameForNode(oe):void 0),er=se&2?ke(oe,Be):ge(oe,Be,se),vr=[er];if(Dr(vr,oe,!1),Dr(vr,oe,!0),Ar(vr,oe),se&128){var qr=e.createTokenRange(e.skipTrivia(I.text,oe.members.end),19),Dt=d.getInternalName(oe),Jt=d.createPartiallyEmittedExpression(Dt);e.setTextRangeEnd(Jt,qr.end),e.setEmitFlags(Jt,1536);var Sn=d.createReturnStatement(Jt);e.setTextRangePos(Sn,qr.pos),e.setEmitFlags(Sn,1920),vr.push(Sn),e.insertStatementsAfterStandardPrologue(vr,a.endLexicalEnvironment());var ta=d.createImmediatelyInvokedArrowFunction(vr);e.setEmitFlags(ta,33554432);var xa=d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(d.getLocalName(oe,!1,!1),void 0,void 0,ta)]));e.setOriginalNode(xa,oe),e.setCommentRange(xa,oe),e.setSourceMapRange(xa,e.moveRangePastDecorators(oe)),e.startOnNewLine(xa),vr=[xa]}return se&8?Ka(vr,oe):(se&128||se&2)&&(se&32?vr.push(d.createExportDefault(d.getLocalName(oe,!1,!0))):se&16&&vr.push(d.createExternalModuleExport(d.getLocalName(oe,!1,!0)))),vr.length>1&&(vr.push(d.createEndOfDeclarationMarker(oe)),e.setEmitFlags(er,e.getEmitFlags(er)|4194304)),e.singleOrMany(vr)}function ge(oe,mr,se){var Be=se&128?void 0:e.visitNodes(oe.modifiers,Se,e.isModifier),er=d.createClassDeclaration(void 0,Be,mr,void 0,e.visitNodes(oe.heritageClauses,C,e.isHeritageClause),Ie(oe)),vr=e.getEmitFlags(oe);return se&1&&(vr|=32),e.setTextRange(er,oe),e.setOriginalNode(er,oe),e.setEmitFlags(er,vr),er}function ke(oe,mr){var se=e.moveRangePastDecorators(oe),Be=No(oe),er=M<=2?d.getInternalName(oe,!1,!0):d.getLocalName(oe,!1,!0),vr=e.visitNodes(oe.heritageClauses,C,e.isHeritageClause),qr=Ie(oe),Dt=d.createClassExpression(void 0,void 0,mr,void 0,vr,qr);e.setOriginalNode(Dt,oe),e.setTextRange(Dt,se);var Jt=d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(er,void 0,void 0,Be?d.createAssignment(Be,Dt):Dt)],1));return e.setOriginalNode(Jt,oe),e.setTextRange(Jt,se),e.setCommentRange(Jt,oe),Jt}function Pe(oe){if(!K(oe))return e.visitEachChild(oe,C,a);var mr=d.createClassExpression(void 0,void 0,oe.name,void 0,e.visitNodes(oe.heritageClauses,C,e.isHeritageClause),Ie(oe));return e.setOriginalNode(mr,oe),e.setTextRange(mr,oe),mr}function Ie(oe){var mr=[],se=e.getFirstConstructorWithBody(oe),Be=se&&e.filter(se.parameters,function(Dt){return e.isParameterPropertyDeclaration(Dt,se)});if(Be)for(var er=0,vr=Be;er<vr.length;er++){var qr=vr[er];e.isIdentifier(qr.name)&&mr.push(e.setOriginalNode(d.createPropertyDeclaration(void 0,void 0,qr.name,void 0,void 0,void 0),qr))}return e.addRange(mr,e.visitNodes(oe.members,X,e.isClassElement)),e.setTextRange(d.createNodeArray(mr),oe.members)}function Ge(oe,mr){return e.filter(oe.members,mr?function(se){return he(se,oe)}:function(se){return ve(se,oe)})}function he(oe,mr){return Ve(oe,!0,mr)}function ve(oe,mr){return Ve(oe,!1,mr)}function Ve(oe,mr,se){return e.nodeOrChildIsDecorated(oe,se)&&mr===e.isStatic(oe)}function _e(oe){var mr;if(oe)for(var se=oe.parameters,Be=se.length>0&&e.parameterIsThisKeyword(se[0]),er=Be?1:0,vr=Be?se.length-1:se.length,qr=0;qr<vr;qr++){var Dt=se[qr+er];(mr||Dt.decorators)&&(mr||(mr=new Array(vr)),mr[qr]=Dt.decorators)}return mr}function Le(oe){var mr=oe.decorators,se=_e(e.getFirstConstructorWithBody(oe));if(!(!mr&&!se))return{decorators:mr,parameters:se}}function qe(oe,mr){switch(mr.kind){case 171:case 172:return Xe(oe,mr);case 168:return De(mr);case 166:return Ae(mr);default:return}}function Xe(oe,mr){if(mr.body){var se=e.getAllAccessorDeclarations(oe.members,mr),Be=se.firstAccessor,er=se.secondAccessor,vr=se.setAccessor,qr=Be.decorators?Be:er&&er.decorators?er:void 0;if(!(!qr||mr!==qr)){var Dt=qr.decorators,Jt=_e(vr);if(!(!Dt&&!Jt))return{decorators:Dt,parameters:Jt}}}}function De(oe){if(oe.body){var mr=oe.decorators,se=_e(oe);if(!(!mr&&!se))return{decorators:mr,parameters:se}}}function Ae(oe){var mr=oe.decorators;if(mr)return{decorators:mr}}function Ye(oe,mr,se){if(se){var Be=[];return e.addRange(Be,e.map(se.decorators,Ke)),e.addRange(Be,e.flatMap(se.parameters,Me)),Hr(oe,mr,Be),Be}}function Dr(oe,mr,se){e.addRange(oe,e.map(br(mr,se),ro))}function br(oe,mr){for(var se=Ge(oe,mr),Be,er=0,vr=se;er<vr.length;er++){var qr=vr[er],Dt=lr(oe,qr);Dt&&(Be?Be.push(Dt):Be=[Dt])}return Be}function lr(oe,mr){var se=qe(oe,mr),Be=Ye(mr,oe,se);if(Be){var er=Lo(oe,mr),vr=In(mr,!0),qr=M>0?mr.kind===166?d.createVoidZero():d.createNull():void 0,Dt=k().createDecorateHelper(Be,er,vr,qr);return e.setTextRange(Dt,e.moveRangePastDecorators(mr)),e.setEmitFlags(Dt,1536),Dt}}function Ar(oe,mr){var se=kr(mr);se&&oe.push(e.setOriginalNode(d.createExpressionStatement(se),mr))}function kr(oe){var mr=Le(oe),se=Ye(oe,oe,mr);if(se){var Be=Q&&Q[e.getOriginalNodeId(oe)],er=M<=2?d.getInternalName(oe,!1,!0):d.getLocalName(oe,!1,!0),vr=k().createDecorateHelper(se,er),qr=d.createAssignment(er,Be?d.createAssignment(Be,vr):vr);return e.setEmitFlags(qr,1536),e.setSourceMapRange(qr,e.moveRangePastDecorators(oe)),qr}}function Ke(oe){return e.visitNode(oe.expression,C,e.isExpression)}function Me(oe,mr){var se;if(oe){se=[];for(var Be=0,er=oe;Be<er.length;Be++){var vr=er[Be],qr=k().createParamHelper(Ke(vr),mr);e.setTextRange(qr,vr.expression),e.setEmitFlags(qr,1536),se.push(qr)}}return se}function Hr(oe,mr,se){ur(oe,mr,se)}function ur(oe,mr,se){ie.emitDecoratorMetadata&&(gr(oe)&&se.push(k().createMetadataHelper("design:type",Sr(oe))),Fe(oe)&&se.push(k().createMetadataHelper("design:paramtypes",Pr(oe,mr))),de(oe)&&se.push(k().createMetadataHelper("design:returntype",pr(oe))))}function gr(oe){var mr=oe.kind;return mr===168||mr===171||mr===172||mr===166}function de(oe){return oe.kind===168}function Fe(oe){switch(oe.kind){case 256:case 225:return e.getFirstConstructorWithBody(oe)!==void 0;case 168:case 171:case 172:return!0}return!1}function $e(oe){var mr=z.getAllAccessorDeclarations(oe);return mr.setAccessor&&e.getSetAccessorTypeAnnotationNode(mr.setAccessor)||mr.getAccessor&&e.getEffectiveReturnTypeNode(mr.getAccessor)}function Sr(oe){switch(oe.kind){case 166:case 163:return Jr(oe.type);case 172:case 171:return Jr($e(oe));case 256:case 225:case 168:return d.createIdentifier("Function");default:return d.createVoidZero()}}function Pr(oe,mr){var se=e.isClassLike(oe)?e.getFirstConstructorWithBody(oe):e.isFunctionLike(oe)&&e.nodeIsPresent(oe.body)?oe:void 0,Be=[];if(se)for(var er=He(se,mr),vr=er.length,qr=0;qr<vr;qr++){var Dt=er[qr];qr===0&&e.isIdentifier(Dt.name)&&Dt.name.escapedText==="this"||(Dt.dotDotDotToken?Be.push(Jr(e.getRestParameterElementType(Dt.type))):Be.push(Sr(Dt)))}return d.createArrayLiteralExpression(Be)}function He(oe,mr){if(mr&&oe.kind===171){var se=e.getAllAccessorDeclarations(mr.members,oe).setAccessor;if(se)return se.parameters}return oe.parameters}function pr(oe){return e.isFunctionLike(oe)&&oe.type?Jr(oe.type):e.isAsyncFunction(oe)?d.createIdentifier("Promise"):d.createVoidZero()}function Jr(oe){if(oe===void 0)return d.createIdentifier("Object");switch(oe.kind){case 114:case 152:case 143:return d.createVoidZero();case 190:return Jr(oe.type);case 178:case 179:return d.createIdentifier("Function");case 182:case 183:return d.createIdentifier("Array");case 176:case 133:return d.createIdentifier("Boolean");case 149:return d.createIdentifier("String");case 147:return d.createIdentifier("Object");case 195:switch(oe.literal.kind){case 10:case 14:return d.createIdentifier("String");case 218:case 8:return d.createIdentifier("Number");case 9:return bn();case 110:case 95:return d.createIdentifier("Boolean");case 104:return d.createVoidZero();default:return e.Debug.failBadSyntaxKind(oe.literal)}case 146:return d.createIdentifier("Number");case 157:return bn();case 150:return M<2?cn():d.createIdentifier("Symbol");case 177:return Lr(oe);case 187:case 186:return ze(oe.types);case 188:return ze([oe.trueType,oe.falseType]);case 192:if(oe.operator===144)return Jr(oe.type);break;case 180:case 193:case 194:case 181:case 130:case 154:case 191:case 199:break;case 310:case 311:case 315:case 316:case 317:break;case 312:case 313:case 314:return Jr(oe.type);default:return e.Debug.failBadSyntaxKind(oe)}return d.createIdentifier("Object")}function ze(oe){for(var mr,se=0,Be=oe;se<Be.length;se++){for(var er=Be[se];er.kind===190;)er=er.type;if(er.kind!==143&&!(!b&&(er.kind===195&&er.literal.kind===104||er.kind===152))){var vr=Jr(er);if(e.isIdentifier(vr)&&vr.escapedText==="Object")return vr;if(mr){if(!e.isIdentifier(mr)||!e.isIdentifier(vr)||mr.escapedText!==vr.escapedText)return d.createIdentifier("Object")}else mr=vr}}return mr||d.createVoidZero()}function Lr(oe){var mr=z.getTypeReferenceSerializationKind(oe.typeName,q||O);switch(mr){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(oe,function(er){return er.parent&&e.isConditionalTypeNode(er.parent)&&(er.parent.trueType===er||er.parent.falseType===er)}))return d.createIdentifier("Object");var se=lt(oe.typeName),Be=d.createTempVariable(A);return d.createConditionalExpression(d.createTypeCheck(d.createAssignment(Be,se),"function"),void 0,Be,void 0,d.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return tt(oe.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return d.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return bn();case e.TypeReferenceSerializationKind.BooleanType:return d.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return d.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return d.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return d.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return M<2?cn():d.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return d.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return d.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return d.createIdentifier("Object");default:return e.Debug.assertNever(mr)}}function Yr(oe,mr){return d.createLogicalAnd(d.createStrictInequality(d.createTypeOfExpression(oe),d.createStringLiteral("undefined")),mr)}function lt(oe){if(oe.kind===79){var mr=tt(oe);return Yr(mr,mr)}if(oe.left.kind===79)return Yr(tt(oe.left),tt(oe));var se=lt(oe.left),Be=d.createTempVariable(A);return d.createLogicalAnd(d.createLogicalAnd(se.left,d.createStrictInequality(d.createAssignment(Be,se.right),d.createVoidZero())),d.createPropertyAccessExpression(Be,oe.right))}function tt(oe){switch(oe.kind){case 79:var mr=e.setParent(e.setTextRange(e.parseNodeFactory.cloneNode(oe),oe),oe.parent);return mr.original=void 0,e.setParent(mr,e.getParseTreeNode(O)),mr;case 160:return Rt(oe)}}function Rt(oe){return d.createPropertyAccessExpression(tt(oe.left),oe.right)}function cn(){return d.createConditionalExpression(d.createTypeCheck(d.createIdentifier("Symbol"),"function"),void 0,d.createIdentifier("Symbol"),void 0,d.createIdentifier("Object"))}function bn(){return M<99?d.createConditionalExpression(d.createTypeCheck(d.createIdentifier("BigInt"),"function"),void 0,d.createIdentifier("BigInt"),void 0,d.createIdentifier("Object")):d.createIdentifier("BigInt")}function In(oe,mr){var se=oe.name;return e.isPrivateIdentifier(se)?d.createIdentifier(""):e.isComputedPropertyName(se)?mr&&!e.isSimpleInlineableExpression(se.expression)?d.getGeneratedNameForNode(se):se.expression:e.isIdentifier(se)?d.createStringLiteral(e.idText(se)):d.cloneNode(se)}function zn(oe){var mr=oe.name;if(e.isComputedPropertyName(mr)&&(!e.hasStaticModifier(oe)&&ne||e.some(oe.decorators))){var se=e.visitNode(mr.expression,C,e.isExpression),Be=e.skipPartiallyEmittedExpressions(se);if(!e.isSimpleInlineableExpression(Be)){var er=d.getGeneratedNameForNode(mr);return A(er),d.updateComputedPropertyName(mr,d.createAssignment(er,se))}}return e.visitNode(mr,C,e.isPropertyName)}function ir(oe){if(oe.token!==117)return e.visitEachChild(oe,C,a)}function Or(oe){return d.updateExpressionWithTypeArguments(oe,e.visitNode(oe.expression,C,e.isLeftHandSideExpression),void 0)}function sr(oe){return!e.nodeIsMissing(oe.body)}function ye(oe){if(!(oe.flags&8388608||e.hasSyntacticModifier(oe,128))){var mr=d.updatePropertyDeclaration(oe,void 0,e.visitNodes(oe.modifiers,C,e.isModifier),zn(oe),void 0,void 0,e.visitNode(oe.initializer,C));return mr!==oe&&(e.setCommentRange(mr,oe),e.setSourceMapRange(mr,e.moveRangePastDecorators(oe))),mr}}function or(oe){if(sr(oe))return d.updateConstructorDeclaration(oe,void 0,void 0,e.visitParameterList(oe.parameters,C,a),fe(oe.body,oe))}function fe(oe,mr){var se=mr&&e.filter(mr.parameters,function(qr){return e.isParameterPropertyDeclaration(qr,mr)});if(!e.some(se))return e.visitFunctionBody(oe,C,a);var Be=[],er=0;h(),er=e.addPrologueDirectivesAndInitialSuperCall(d,mr,Be,C),e.addRange(Be,e.map(se,je)),e.addRange(Be,e.visitNodes(oe.statements,C,e.isStatement,er)),Be=d.mergeLexicalEnvironment(Be,v());var vr=d.createBlock(e.setTextRange(d.createNodeArray(Be),oe.statements),!0);return e.setTextRange(vr,oe),e.setOriginalNode(vr,oe),vr}function je(oe){var mr=oe.name;if(e.isIdentifier(mr)){var se=e.setParent(e.setTextRange(d.cloneNode(mr),mr),mr.parent);e.setEmitFlags(se,1584);var Be=e.setParent(e.setTextRange(d.cloneNode(mr),mr),mr.parent);return e.setEmitFlags(Be,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(d.createExpressionStatement(d.createAssignment(e.setTextRange(d.createPropertyAccessExpression(d.createThis(),se),oe.name),Be)),oe),e.moveRangePos(oe,-1))))}}function Ee(oe){if(sr(oe)){var mr=d.updateMethodDeclaration(oe,void 0,e.visitNodes(oe.modifiers,Se,e.isModifier),oe.asteriskToken,zn(oe),void 0,void 0,e.visitParameterList(oe.parameters,C,a),void 0,e.visitFunctionBody(oe.body,C,a));return mr!==oe&&(e.setCommentRange(mr,oe),e.setSourceMapRange(mr,e.moveRangePastDecorators(oe))),mr}}function We(oe){return!(e.nodeIsMissing(oe.body)&&e.hasSyntacticModifier(oe,128))}function $(oe){if(We(oe)){var mr=d.updateGetAccessorDeclaration(oe,void 0,e.visitNodes(oe.modifiers,Se,e.isModifier),zn(oe),e.visitParameterList(oe.parameters,C,a),void 0,e.visitFunctionBody(oe.body,C,a)||d.createBlock([]));return mr!==oe&&(e.setCommentRange(mr,oe),e.setSourceMapRange(mr,e.moveRangePastDecorators(oe))),mr}}function Ne(oe){if(We(oe)){var mr=d.updateSetAccessorDeclaration(oe,void 0,e.visitNodes(oe.modifiers,Se,e.isModifier),zn(oe),e.visitParameterList(oe.parameters,C,a),e.visitFunctionBody(oe.body,C,a)||d.createBlock([]));return mr!==oe&&(e.setCommentRange(mr,oe),e.setSourceMapRange(mr,e.moveRangePastDecorators(oe))),mr}}function me(oe){if(!sr(oe))return d.createNotEmittedStatement(oe);var mr=d.updateFunctionDeclaration(oe,void 0,e.visitNodes(oe.modifiers,Se,e.isModifier),oe.asteriskToken,oe.name,void 0,e.visitParameterList(oe.parameters,C,a),void 0,e.visitFunctionBody(oe.body,C,a)||d.createBlock([]));if(Ci(oe)){var se=[mr];return Ka(se,oe),se}return mr}function Ze(oe){if(!sr(oe))return d.createOmittedExpression();var mr=d.updateFunctionExpression(oe,e.visitNodes(oe.modifiers,Se,e.isModifier),oe.asteriskToken,oe.name,void 0,e.visitParameterList(oe.parameters,C,a),void 0,e.visitFunctionBody(oe.body,C,a)||d.createBlock([]));return mr}function Cr(oe){var mr=d.updateArrowFunction(oe,e.visitNodes(oe.modifiers,Se,e.isModifier),void 0,e.visitParameterList(oe.parameters,C,a),void 0,oe.equalsGreaterThanToken,e.visitFunctionBody(oe.body,C,a));return mr}function fr(oe){if(!e.parameterIsThisKeyword(oe)){var mr=d.updateParameterDeclaration(oe,void 0,void 0,oe.dotDotDotToken,e.visitNode(oe.name,C,e.isBindingName),void 0,void 0,e.visitNode(oe.initializer,C,e.isExpression));return mr!==oe&&(e.setCommentRange(mr,oe),e.setTextRange(mr,e.moveRangePastModifiers(oe)),e.setSourceMapRange(mr,e.moveRangePastModifiers(oe)),e.setEmitFlags(mr.name,32)),mr}}function dr(oe){if(Ci(oe)){var mr=e.getInitializedVariables(oe.declarationList);return mr.length===0?void 0:e.setTextRange(d.createExpressionStatement(d.inlineExpressions(e.map(mr,et))),oe)}else return e.visitEachChild(oe,C,a)}function et(oe){var mr=oe.name;return e.isBindingPattern(mr)?e.flattenDestructuringAssignment(oe,C,a,0,!1,io):e.setTextRange(d.createAssignment(ji(mr),e.visitNode(oe.initializer,C,e.isExpression)),oe)}function yt(oe){return d.updateVariableDeclaration(oe,e.visitNode(oe.name,C,e.isBindingName),void 0,void 0,e.visitNode(oe.initializer,C,e.isExpression))}function Vr(oe){var mr=e.skipOuterExpressions(oe.expression,-7);if(e.isAssertionExpression(mr)){var se=e.visitNode(oe.expression,C,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(se,I))?d.updateParenthesizedExpression(oe,se):d.createPartiallyEmittedExpression(se,oe)}return e.visitEachChild(oe,C,a)}function tr(oe){var mr=e.visitNode(oe.expression,C,e.isExpression);return d.createPartiallyEmittedExpression(mr,oe)}function xr(oe){var mr=e.visitNode(oe.expression,C,e.isLeftHandSideExpression);return d.createPartiallyEmittedExpression(mr,oe)}function Nr(oe){return d.updateCallExpression(oe,e.visitNode(oe.expression,C,e.isExpression),void 0,e.visitNodes(oe.arguments,C,e.isExpression))}function zr(oe){return d.updateNewExpression(oe,e.visitNode(oe.expression,C,e.isExpression),void 0,e.visitNodes(oe.arguments,C,e.isExpression))}function gt(oe){return d.updateTaggedTemplateExpression(oe,e.visitNode(oe.tag,C,e.isExpression),void 0,e.visitNode(oe.template,C,e.isExpression))}function vt(oe){return d.updateJsxSelfClosingElement(oe,e.visitNode(oe.tagName,C,e.isJsxTagNameExpression),void 0,e.visitNode(oe.attributes,C,e.isJsxAttributes))}function ut(oe){return d.updateJsxOpeningElement(oe,e.visitNode(oe.tagName,C,e.isJsxTagNameExpression),void 0,e.visitNode(oe.attributes,C,e.isJsxAttributes))}function ht(oe){return!e.isEnumConst(oe)||e.shouldPreserveConstEnums(ie)}function xt(oe){if(!ht(oe))return d.createNotEmittedStatement(oe);var mr=[],se=2,Be=Wn(mr,oe);Be&&(S!==e.ModuleKind.System||O!==I)&&(se|=512);var er=Hi(oe),vr=to(oe),qr=e.hasSyntacticModifier(oe,1)?d.getExternalModuleOrNamespaceExportName(x,oe,!1,!0):d.getLocalName(oe,!1,!0),Dt=d.createLogicalOr(qr,d.createAssignment(qr,d.createObjectLiteralExpression()));if(sa(oe)){var Jt=d.getLocalName(oe,!1,!0);Dt=d.createAssignment(Jt,Dt)}var Sn=d.createExpressionStatement(d.createCallExpression(d.createFunctionExpression(void 0,void 0,void 0,void 0,[d.createParameterDeclaration(void 0,void 0,void 0,er)],void 0,wt(oe,vr)),void 0,[Dt]));return e.setOriginalNode(Sn,oe),Be&&(e.setSyntheticLeadingComments(Sn,void 0),e.setSyntheticTrailingComments(Sn,void 0)),e.setTextRange(Sn,oe),e.addEmitFlags(Sn,se),mr.push(Sn),mr.push(d.createEndOfDeclarationMarker(oe)),mr}function wt(oe,mr){var se=x;x=mr;var Be=[];J();var er=e.map(oe.members,Qt);return e.insertStatementsAfterStandardPrologue(Be,v()),e.addRange(Be,er),x=se,d.createBlock(e.setTextRange(d.createNodeArray(Be),oe.members),!0)}function Qt(oe){var mr=In(oe,!1),se=mt(oe),Be=d.createAssignment(d.createElementAccessExpression(x,mr),se),er=se.kind===10?Be:d.createAssignment(d.createElementAccessExpression(x,Be),mr);return e.setTextRange(d.createExpressionStatement(e.setTextRange(er,oe)),oe)}function mt(oe){var mr=z.getConstantValue(oe);return mr!==void 0?typeof mr=="string"?d.createStringLiteral(mr):d.createNumericLiteral(mr):(Ha(),oe.initializer?e.visitNode(oe.initializer,C,e.isExpression):d.createVoidZero())}function rn(oe){var mr=e.getParseTreeNode(oe,e.isModuleDeclaration);return mr?e.isInstantiatedModule(mr,e.shouldPreserveConstEnums(ie)):!0}function sa(oe){return Ci(oe)||_i(oe)&&S!==e.ModuleKind.ES2015&&S!==e.ModuleKind.ES2020&&S!==e.ModuleKind.ES2022&&S!==e.ModuleKind.ESNext&&S!==e.ModuleKind.System}function ba(oe){Z||(Z=new e.Map);var mr=na(oe);Z.has(mr)||Z.set(mr,oe)}function Jn(oe){if(Z){var mr=na(oe);return Z.get(mr)===oe}return!0}function na(oe){return e.Debug.assertNode(oe.name,e.isIdentifier),oe.name.escapedText}function Wn(oe,mr){var se=d.createVariableStatement(e.visitNodes(mr.modifiers,Se,e.isModifier),d.createVariableDeclarationList([d.createVariableDeclaration(d.getLocalName(mr,!1,!0))],O.kind===303?0:1));if(e.setOriginalNode(se,mr),ba(mr),Jn(mr))return mr.kind===259?e.setSourceMapRange(se.declarationList,mr):e.setSourceMapRange(se,mr),e.setCommentRange(se,mr),e.addEmitFlags(se,4195328),oe.push(se),!0;var Be=d.createMergeDeclarationMarker(se);return e.setEmitFlags(Be,4195840),oe.push(Be),!1}function en(oe){if(!rn(oe))return d.createNotEmittedStatement(oe);e.Debug.assertNode(oe.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),co();var mr=[],se=2,Be=Wn(mr,oe);Be&&(S!==e.ModuleKind.System||O!==I)&&(se|=512);var er=Hi(oe),vr=to(oe),qr=e.hasSyntacticModifier(oe,1)?d.getExternalModuleOrNamespaceExportName(x,oe,!1,!0):d.getLocalName(oe,!1,!0),Dt=d.createLogicalOr(qr,d.createAssignment(qr,d.createObjectLiteralExpression()));if(sa(oe)){var Jt=d.getLocalName(oe,!1,!0);Dt=d.createAssignment(Jt,Dt)}var Sn=d.createExpressionStatement(d.createCallExpression(d.createFunctionExpression(void 0,void 0,void 0,void 0,[d.createParameterDeclaration(void 0,void 0,void 0,er)],void 0,St(oe,vr)),void 0,[Dt]));return e.setOriginalNode(Sn,oe),Be&&(e.setSyntheticLeadingComments(Sn,void 0),e.setSyntheticTrailingComments(Sn,void 0)),e.setTextRange(Sn,oe),e.addEmitFlags(Sn,se),mr.push(Sn),mr.push(d.createEndOfDeclarationMarker(oe)),mr}function St(oe,mr){var se=x,Be=w,er=Z;x=mr,w=oe,Z=void 0;var vr=[];J();var qr,Dt;if(oe.body)if(oe.body.kind===261)y(oe.body,function(xa){return e.addRange(vr,e.visitNodes(xa.statements,te,e.isStatement))}),qr=oe.body.statements,Dt=oe.body;else{var Jt=en(oe.body);Jt&&(e.isArray(Jt)?e.addRange(vr,Jt):vr.push(Jt));var Sn=Ut(oe).body;qr=e.moveRangePos(Sn.statements,-1)}e.insertStatementsAfterStandardPrologue(vr,v()),x=se,w=Be,Z=er;var ta=d.createBlock(e.setTextRange(d.createNodeArray(vr),qr),!0);return e.setTextRange(ta,Dt),(!oe.body||oe.body.kind!==261)&&e.setEmitFlags(ta,e.getEmitFlags(ta)|1536),ta}function Ut(oe){if(oe.body.kind===260){var mr=Ut(oe.body);return mr||oe.body}}function qt(oe){if(!oe.importClause)return oe;if(!oe.importClause.isTypeOnly){var mr=e.visitNode(oe.importClause,Mn,e.isImportClause);return mr||ie.importsNotUsedAsValues===1||ie.importsNotUsedAsValues===2?d.updateImportDeclaration(oe,void 0,void 0,mr,oe.moduleSpecifier,oe.assertClause):void 0}}function Mn(oe){e.Debug.assert(!oe.isTypeOnly);var mr=Oe(oe)?oe.name:void 0,se=e.visitNode(oe.namedBindings,dn,e.isNamedImportBindings);return mr||se?d.updateImportClause(oe,!1,mr,se):void 0}function dn(oe){if(oe.kind===267)return Oe(oe)?oe:void 0;var mr=ie.preserveValueImports&&(ie.importsNotUsedAsValues===1||ie.importsNotUsedAsValues===2),se=e.visitNodes(oe.elements,oa,e.isImportSpecifier);return mr||e.some(se)?d.updateNamedImports(oe,se):void 0}function oa(oe){return!oe.isTypeOnly&&Oe(oe)?oe:void 0}function pt(oe){return z.isValueAliasDeclaration(oe)?e.visitEachChild(oe,C,a):void 0}function _t(oe){if(!oe.isTypeOnly){if(!oe.exportClause||e.isNamespaceExport(oe.exportClause))return oe;var mr=!!oe.moduleSpecifier&&(ie.importsNotUsedAsValues===1||ie.importsNotUsedAsValues===2),se=e.visitNode(oe.exportClause,function(Be){return rt(Be,mr)},e.isNamedExportBindings);return se?d.updateExportDeclaration(oe,void 0,void 0,oe.isTypeOnly,se,oe.moduleSpecifier,oe.assertClause):void 0}}function Mt(oe,mr){var se=e.visitNodes(oe.elements,Cn,e.isExportSpecifier);return mr||e.some(se)?d.updateNamedExports(oe,se):void 0}function It(oe){return d.updateNamespaceExport(oe,e.visitNode(oe.name,C,e.isIdentifier))}function rt(oe,mr){return e.isNamespaceExport(oe)?It(oe):Mt(oe,mr)}function Cn(oe){return!oe.isTypeOnly&&z.isValueAliasDeclaration(oe)?oe:void 0}function Qn(oe){return Oe(oe)||!e.isExternalModule(I)&&z.isTopLevelValueImportEqualsWithEntityName(oe)}function Ra(oe){if(!oe.isTypeOnly){if(e.isExternalModuleImportEqualsDeclaration(oe)){var mr=Oe(oe);return!mr&&ie.importsNotUsedAsValues===1?e.setOriginalNode(e.setTextRange(d.createImportDeclaration(void 0,void 0,void 0,oe.moduleReference.expression,void 0),oe),oe):mr?e.visitEachChild(oe,C,a):void 0}if(Qn(oe)){var se=e.createExpressionFromEntityName(d,oe.moduleReference);return e.setEmitFlags(se,3584),va(oe)||!Ci(oe)?e.setOriginalNode(e.setTextRange(d.createVariableStatement(e.visitNodes(oe.modifiers,Se,e.isModifier),d.createVariableDeclarationList([e.setOriginalNode(d.createVariableDeclaration(oe.name,void 0,void 0,se),oe)])),oe),oe):e.setOriginalNode(Mi(oe.name,se,oe),oe)}}}function Ci(oe){return w!==void 0&&e.hasSyntacticModifier(oe,1)}function _i(oe){return w===void 0&&e.hasSyntacticModifier(oe,1)}function va(oe){return _i(oe)&&!e.hasSyntacticModifier(oe,512)}function yi(oe){return _i(oe)&&e.hasSyntacticModifier(oe,512)}function ro(oe){return d.createExpressionStatement(oe)}function Ka(oe,mr){var se=d.createAssignment(d.getExternalModuleOrNamespaceExportName(x,mr,!1,!0),d.getLocalName(mr));e.setSourceMapRange(se,e.createRange(mr.name?mr.name.pos:mr.pos,mr.end));var Be=d.createExpressionStatement(se);e.setSourceMapRange(Be,e.createRange(-1,mr.end)),oe.push(Be)}function Mi(oe,mr,se){return e.setTextRange(d.createExpressionStatement(d.createAssignment(d.getNamespaceMemberName(x,oe,!1,!0),mr)),se)}function io(oe,mr,se){return e.setTextRange(d.createAssignment(ji(oe),mr),se)}function ji(oe){return d.getNamespaceMemberName(x,oe,!1,!0)}function Hi(oe){var mr=d.getGeneratedNameForNode(oe);return e.setSourceMapRange(mr,oe.name),mr}function to(oe){return d.getGeneratedNameForNode(oe)}function No(oe){if(z.getNodeCheckFlags(oe)&16777216){Yo();var mr=d.createUniqueName(oe.name&&!e.isGeneratedIdentifier(oe.name)?e.idText(oe.name):"default");return Q[e.getOriginalNodeId(oe)]=mr,A(mr),mr}}function lo(oe){return d.createPropertyAccessExpression(d.getDeclarationName(oe),"prototype")}function Lo(oe,mr){return e.isStatic(mr)?d.getDeclarationName(oe):lo(oe)}function Ha(){F&8||(F|=8,a.enableSubstitution(79))}function Yo(){F&1||(F|=1,a.enableSubstitution(79),Q=[])}function co(){F&2||(F|=2,a.enableSubstitution(79),a.enableSubstitution(295),a.enableEmitNotification(260))}function za(oe){return e.getOriginalNode(oe).kind===260}function hi(oe){return e.getOriginalNode(oe).kind===259}function Zi(oe,mr,se){var Be=V,er=I;e.isSourceFile(mr)&&(I=mr),F&2&&za(mr)&&(V|=2),F&8&&hi(mr)&&(V|=8),B(oe,mr,se),V=Be,I=er}function Mo(oe,mr){return mr=H(oe,mr),oe===1?Fo(mr):e.isShorthandPropertyAssignment(mr)?Po(mr):mr}function Po(oe){if(F&2){var mr=oe.name,se=Cs(mr);if(se){if(oe.objectAssignmentInitializer){var Be=d.createAssignment(se,oe.objectAssignmentInitializer);return e.setTextRange(d.createPropertyAssignment(mr,Be),oe)}return e.setTextRange(d.createPropertyAssignment(mr,se),oe)}}return oe}function Fo(oe){switch(oe.kind){case 79:return zo(oe);case 205:return hr(oe);case 206:return dt(oe)}return oe}function zo(oe){return Es(oe)||Cs(oe)||oe}function Es(oe){if(F&1&&z.getNodeCheckFlags(oe)&33554432){var mr=z.getReferencedValueDeclaration(oe);if(mr){var se=Q[mr.id];if(se){var Be=d.cloneNode(se);return e.setSourceMapRange(Be,oe),e.setCommentRange(Be,oe),Be}}}}function Cs(oe){if(F&V&&!e.isGeneratedIdentifier(oe)&&!e.isLocalName(oe)){var mr=z.getReferencedExportContainer(oe,!1);if(mr&&mr.kind!==303){var se=V&2&&mr.kind===260||V&8&&mr.kind===259;if(se)return e.setTextRange(d.createPropertyAccessExpression(d.getGeneratedNameForNode(mr),oe),oe)}}}function hr(oe){return tn(oe)}function dt(oe){return tn(oe)}function tn(oe){var mr=Un(oe);if(mr!==void 0){e.setConstantValue(oe,mr);var se=typeof mr=="string"?d.createStringLiteral(mr):d.createNumericLiteral(mr);if(!ie.removeComments){var Be=e.getOriginalNode(oe,e.isAccessExpression),er=e.isPropertyAccessExpression(Be)?e.declarationNameToString(Be.name):e.getTextOfNode(Be.argumentExpression);e.addSyntheticTrailingComment(se,3," ".concat(er," "))}return se}return oe}function Un(oe){if(!ie.isolatedModules)return e.isPropertyAccessExpression(oe)||e.isElementAccessExpression(oe)?z.getConstantValue(oe):void 0}function Oe(oe){return ie.preserveValueImports?z.isValueAliasDeclaration(oe):z.isReferencedAliasDeclaration(oe)}}e.transformTypeScript=p}(jr||(jr={})),function(e){var n;(function(h){h[h.ClassAliases=1]="ClassAliases",h[h.ClassStaticThisOrSuperReference=2]="ClassStaticThisOrSuperReference"})(n||(n={})),function(h){h.Field="f",h.Method="m",h.Accessor="a"}(e.PrivateIdentifierKind||(e.PrivateIdentifierKind={}));var f;(function(h){h[h.None=0]="None",h[h.ClassWasDecorated=1]="ClassWasDecorated",h[h.NeedsClassConstructorReference=2]="NeedsClassConstructorReference",h[h.NeedsClassSuperReference=4]="NeedsClassSuperReference",h[h.NeedsSubstitutionForThisInClassStaticField=8]="NeedsSubstitutionForThisInClassStaticField"})(f||(f={}));function p(h){var v=h.factory,A=h.hoistVariableDeclaration,z=h.endLexicalEnvironment,ie=h.startLexicalEnvironment,b=h.resumeLexicalEnvironment,M=h.addBlockScopedVariable,S=h.getEmitResolver(),B=h.getCompilerOptions(),H=e.getEmitScriptTarget(B),I=e.getUseDefineForClassFields(B),w=H<99,x=(H<=8||!I)&&H>=2,O=H<=8||!I,q=h.onSubstituteNode;h.onSubstituteNode=ze;var Z=h.onEmitNode;h.onEmitNode=Jr;var ne,F,Q,V,re=[],T=new e.Map,N,y,D;return e.chainBundle(h,C);function C($){var Ne=h.getCompilerOptions();if($.isDeclarationFile||I&&e.getEmitScriptTarget(Ne)===99)return $;var me=e.visitEachChild($,g,h);return e.addEmitHelpers(me,h.readEmitHelpers()),me}function m($,Ne){if($.transformFlags&8388608)switch($.kind){case 225:case 256:return Xe($);case 166:return U($);case 236:return Se($);case 80:return ue($);case 169:return Ar($)}if($.transformFlags&8388608||$.transformFlags&33554432&&x&&D&&N)switch($.kind){case 218:case 219:return Pe($,Ne);case 220:return Le($,Ne);case 207:return ve($);case 209:return Ve($);case 205:return ge($);case 206:return ke($);case 237:return Ge($);case 241:return Ie($);case 255:case 212:case 170:case 168:case 171:case 172:{var me=D;D=void 0;var Ze=e.visitEachChild($,g,h);return D=me,Ze}}return e.visitEachChild($,g,h)}function u($){return m($,!0)}function g($){return m($,!1)}function P($){switch($.kind){case 290:return e.visitEachChild($,P,h);case 227:return Dr($)}return g($)}function te($){switch($.kind){case 204:case 203:return We($);default:return g($)}}function ue($){return!w||e.isStatement($.parent)?$:e.setOriginalNode(v.createIdentifier(""),$)}function X($){if(!w)return $;var Ne=$.left;e.Debug.assertNode(Ne,e.isPrivateIdentifier),e.Debug.assert($.operatorToken.kind===101);var me=or(Ne);if(me){var Ze=e.visitNode($.right,g,e.isExpression);return e.setOriginalNode(h.getEmitHelperFactory().createClassPrivateFieldInHelper(me.brandCheckIdentifier,Ze),$)}return e.visitEachChild($,g,h)}function j($){switch($.kind){case 170:return;case 171:case 172:case 168:return R($);case 166:return U($);case 161:return Ce($);case 233:return $;default:return g($)}}function Se($){var Ne=V;V=[];var me=e.visitEachChild($,g,h),Ze=e.some(V)?Gt([me],V,!0):me;return V=Ne,Ze}function Ce($){var Ne=e.visitEachChild($,g,h);if(e.some(Q)){var me=Q;me.push(Ne.expression),Q=[],Ne=v.updateComputedPropertyName(Ne,v.inlineExpressions(me))}return Ne}function R($){if(e.Debug.assert(!e.some($.decorators)),!w||!e.isPrivateIdentifier($.name))return e.visitEachChild($,j,h);var Ne=or($.name);if(e.Debug.assert(Ne,"Undeclared private name for property declaration."),!Ne.isValid)return $;var me=Y($);me&&ir().push(v.createAssignment(me,v.createFunctionExpression(e.filter($.modifiers,function(Ze){return!e.isStaticModifier(Ze)}),$.asteriskToken,me,void 0,e.visitParameterList($.parameters,j,h),void 0,e.visitFunctionBody($.body,j,h))))}function Y($){e.Debug.assert(e.isPrivateIdentifier($.name));var Ne=or($.name);if(e.Debug.assert(Ne,"Undeclared private name for property declaration."),Ne.kind==="m")return Ne.methodName;if(Ne.kind==="a"){if(e.isGetAccessor($))return Ne.getterName;if(e.isSetAccessor($))return Ne.setterName}}function U($){if(e.Debug.assert(!e.some($.decorators)),e.isPrivateIdentifier($.name)){if(!w)return v.updatePropertyDeclaration($,void 0,e.visitNodes($.modifiers,g,e.isModifier),$.name,void 0,void 0,void 0);var Ne=or($.name);if(e.Debug.assert(Ne,"Undeclared private name for property declaration."),!Ne.isValid)return $}var me=Rt($.name,!!$.initializer||I);me&&!e.isSimpleInlineableExpression(me)&&ir().push(me)}function K($,Ne){return Te($,e.visitNode(Ne,g,e.isExpression))}function Te($,Ne){switch(e.setCommentRange(Ne,e.moveRangePos(Ne,-1)),$.kind){case"a":return h.getEmitHelperFactory().createClassPrivateFieldGetHelper(Ne,$.brandCheckIdentifier,$.kind,$.getterName);case"m":return h.getEmitHelperFactory().createClassPrivateFieldGetHelper(Ne,$.brandCheckIdentifier,$.kind,$.methodName);case"f":return h.getEmitHelperFactory().createClassPrivateFieldGetHelper(Ne,$.brandCheckIdentifier,$.kind,$.variableName);default:e.Debug.assertNever($,"Unknown private element type")}}function ge($){if(w&&e.isPrivateIdentifier($.name)){var Ne=or($.name);if(Ne)return e.setTextRange(e.setOriginalNode(K(Ne,$.expression),$),$)}if(x&&e.isSuperProperty($)&&e.isIdentifier($.name)&&D&&N){var me=N.classConstructor,Ze=N.superClassReference,Cr=N.facts;if(Cr&1)return pr($);if(me&&Ze){var fr=v.createReflectGetCall(Ze,v.createStringLiteralFromNode($.name),me);return e.setOriginalNode(fr,$.expression),e.setTextRange(fr,$.expression),fr}}return e.visitEachChild($,g,h)}function ke($){if(x&&e.isSuperProperty($)&&D&&N){var Ne=N.classConstructor,me=N.superClassReference,Ze=N.facts;if(Ze&1)return pr($);if(Ne&&me){var Cr=v.createReflectGetCall(me,e.visitNode($.argumentExpression,g,e.isExpression),Ne);return e.setOriginalNode(Cr,$.expression),e.setTextRange(Cr,$.expression),Cr}}return e.visitEachChild($,g,h)}function Pe($,Ne){if($.operator===45||$.operator===46){if(w&&e.isPrivateIdentifierPropertyAccessExpression($.operand)){var me=void 0;if(me=or($.operand.name)){var Ze=e.visitNode($.operand.expression,g,e.isExpression),Cr=he(Ze),fr=Cr.readExpression,dr=Cr.initializeExpression,et=K(me,fr),yt=e.isPrefixUnaryExpression($)||Ne?void 0:v.createTempVariable(A);return et=e.expandPreOrPostfixIncrementOrDecrementExpression(v,$,et,A,yt),et=qe(me,dr||fr,et,63),e.setOriginalNode(et,$),e.setTextRange(et,$),yt&&(et=v.createComma(et,yt),e.setTextRange(et,$)),et}}else if(x&&e.isSuperProperty($.operand)&&D&&N){var Vr=N.classConstructor,tr=N.superClassReference,xr=N.facts;if(xr&1){var Nr=pr($.operand);return e.isPrefixUnaryExpression($)?v.updatePrefixUnaryExpression($,Nr):v.updatePostfixUnaryExpression($,Nr)}if(Vr&&tr){var zr=void 0,gt=void 0;if(e.isPropertyAccessExpression($.operand)?e.isIdentifier($.operand.name)&&(gt=zr=v.createStringLiteralFromNode($.operand.name)):e.isSimpleInlineableExpression($.operand.argumentExpression)?gt=zr=$.operand.argumentExpression:(gt=v.createTempVariable(A),zr=v.createAssignment(gt,e.visitNode($.operand.argumentExpression,g,e.isExpression))),zr&&gt){var et=v.createReflectGetCall(tr,gt,Vr);e.setTextRange(et,$.operand);var yt=Ne?void 0:v.createTempVariable(A);return et=e.expandPreOrPostfixIncrementOrDecrementExpression(v,$,et,A,yt),et=v.createReflectSetCall(tr,zr,et,Vr),e.setOriginalNode(et,$),e.setTextRange(et,$),yt&&(et=v.createComma(et,yt),e.setTextRange(et,$)),et}}}}return e.visitEachChild($,g,h)}function Ie($){return v.updateForStatement($,e.visitNode($.initializer,u,e.isForInitializer),e.visitNode($.condition,g,e.isExpression),e.visitNode($.incrementor,u,e.isExpression),e.visitIterationBody($.statement,g,h))}function Ge($){return v.updateExpressionStatement($,e.visitNode($.expression,u,e.isExpression))}function he($){var Ne=e.nodeIsSynthesized($)?$:v.cloneNode($);if(e.isSimpleInlineableExpression($))return{readExpression:Ne,initializeExpression:void 0};var me=v.createTempVariable(A),Ze=v.createAssignment(me,Ne);return{readExpression:me,initializeExpression:Ze}}function ve($){if(w&&e.isPrivateIdentifierPropertyAccessExpression($.expression)){var Ne=v.createCallBinding($.expression,A,H),me=Ne.thisArg,Ze=Ne.target;return e.isCallChain($)?v.updateCallChain($,v.createPropertyAccessChain(e.visitNode(Ze,g),$.questionDotToken,"call"),void 0,void 0,Gt([e.visitNode(me,g,e.isExpression)],e.visitNodes($.arguments,g,e.isExpression),!0)):v.updateCallExpression($,v.createPropertyAccessExpression(e.visitNode(Ze,g),"call"),void 0,Gt([e.visitNode(me,g,e.isExpression)],e.visitNodes($.arguments,g,e.isExpression),!0))}if(x&&e.isSuperProperty($.expression)&&D&&(N!=null&&N.classConstructor)){var Cr=v.createFunctionCallCall(e.visitNode($.expression,g,e.isExpression),N.classConstructor,e.visitNodes($.arguments,g,e.isExpression));return e.setOriginalNode(Cr,$),e.setTextRange(Cr,$),Cr}return e.visitEachChild($,g,h)}function Ve($){if(w&&e.isPrivateIdentifierPropertyAccessExpression($.tag)){var Ne=v.createCallBinding($.tag,A,H),me=Ne.thisArg,Ze=Ne.target;return v.updateTaggedTemplateExpression($,v.createCallExpression(v.createPropertyAccessExpression(e.visitNode(Ze,g),"bind"),void 0,[e.visitNode(me,g,e.isExpression)]),void 0,e.visitNode($.template,g,e.isTemplateLiteral))}if(x&&e.isSuperProperty($.tag)&&D&&(N!=null&&N.classConstructor)){var Cr=v.createFunctionBindCall(e.visitNode($.tag,g,e.isExpression),N.classConstructor,[]);return e.setOriginalNode(Cr,$),e.setTextRange(Cr,$),v.updateTaggedTemplateExpression($,Cr,void 0,e.visitNode($.template,g,e.isTemplateLiteral))}return e.visitEachChild($,g,h)}function _e($){if(w){N&&T.set(e.getOriginalNodeId($),N),ie();var Ne=D;D=$;var me=e.visitNodes($.body.statements,g,e.isStatement);me=v.mergeLexicalEnvironment(me,z()),D=Ne;var Ze=v.createImmediatelyInvokedArrowFunction(me);return e.setOriginalNode(Ze,$),e.setTextRange(Ze,$),e.addEmitFlags(Ze,2),Ze}}function Le($,Ne){if(e.isDestructuringAssignment($)){var me=Q;Q=void 0,$=v.updateBinaryExpression($,e.visitNode($.left,te),$.operatorToken,e.visitNode($.right,g));var Ze=e.some(Q)?v.inlineExpressions(e.compact(Gt(Gt([],Q,!0),[$],!1))):$;return Q=me,Ze}if(e.isAssignmentExpression($)){if(w&&e.isPrivateIdentifierPropertyAccessExpression($.left)){var Cr=or($.left.name);if(Cr)return e.setTextRange(e.setOriginalNode(qe(Cr,$.left.expression,$.right,$.operatorToken.kind),$),$)}else if(x&&e.isSuperProperty($.left)&&D&&N){var fr=N.classConstructor,dr=N.superClassReference,et=N.facts;if(et&1)return v.updateBinaryExpression($,pr($.left),$.operatorToken,e.visitNode($.right,g,e.isExpression));if(fr&&dr){var yt=e.isElementAccessExpression($.left)?e.visitNode($.left.argumentExpression,g,e.isExpression):e.isIdentifier($.left.name)?v.createStringLiteralFromNode($.left.name):void 0;if(yt){var Vr=e.visitNode($.right,g,e.isExpression);if(e.isCompoundAssignment($.operatorToken.kind)){var tr=yt;e.isSimpleInlineableExpression(yt)||(tr=v.createTempVariable(A),yt=v.createAssignment(tr,yt));var xr=v.createReflectGetCall(dr,tr,fr);e.setOriginalNode(xr,$.left),e.setTextRange(xr,$.left),Vr=v.createBinaryExpression(xr,e.getNonAssignmentOperatorForCompoundAssignment($.operatorToken.kind),Vr),e.setTextRange(Vr,$)}var Nr=Ne?void 0:v.createTempVariable(A);return Nr&&(Vr=v.createAssignment(Nr,Vr),e.setTextRange(Nr,$)),Vr=v.createReflectSetCall(dr,yt,Vr,fr),e.setOriginalNode(Vr,$),e.setTextRange(Vr,$),Nr&&(Vr=v.createComma(Vr,Nr),e.setTextRange(Vr,$)),Vr}}}}return $.operatorToken.kind===101&&e.isPrivateIdentifier($.left)?X($):e.visitEachChild($,g,h)}function qe($,Ne,me,Ze){if(Ne=e.visitNode(Ne,g,e.isExpression),me=e.visitNode(me,g,e.isExpression),e.isCompoundAssignment(Ze)){var Cr=he(Ne),fr=Cr.readExpression,dr=Cr.initializeExpression;Ne=dr||fr,me=v.createBinaryExpression(Te($,fr),e.getNonAssignmentOperatorForCompoundAssignment(Ze),me)}switch(e.setCommentRange(Ne,e.moveRangePos(Ne,-1)),$.kind){case"a":return h.getEmitHelperFactory().createClassPrivateFieldSetHelper(Ne,$.brandCheckIdentifier,me,$.kind,$.setterName);case"m":return h.getEmitHelperFactory().createClassPrivateFieldSetHelper(Ne,$.brandCheckIdentifier,me,$.kind,void 0);case"f":return h.getEmitHelperFactory().createClassPrivateFieldSetHelper(Ne,$.brandCheckIdentifier,me,$.kind,$.variableName);default:e.Debug.assertNever($,"Unknown private element type")}}function Xe($){if(!e.forEach($.members,De))return e.visitEachChild($,g,h);var Ne=Q;if(Q=void 0,cn(),w){var me=e.getNameOfDeclaration($);me&&e.isIdentifier(me)&&(zn().className=e.idText(me));var Ze=Ae($);e.some(Ze)&&(zn().weakSetName=sr("instances",Ze[0].name))}var Cr=e.isClassDeclaration($)?br($):lr($);return bn(),Q=Ne,Cr}function De($){return e.isPropertyDeclaration($)||e.isClassStaticBlockDeclaration($)||w&&$.name&&e.isPrivateIdentifier($.name)}function Ae($){return e.filter($.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function Ye($){var Ne=0,me=e.getOriginalNode($);e.isClassDeclaration(me)&&e.classOrConstructorParameterIsDecorated(me)&&(Ne|=1);for(var Ze=0,Cr=$.members;Ze<Cr.length;Ze++){var fr=Cr[Ze];e.isStatic(fr)&&(fr.name&&e.isPrivateIdentifier(fr.name)&&w&&(Ne|=2),(e.isPropertyDeclaration(fr)||e.isClassStaticBlockDeclaration(fr))&&(O&&fr.transformFlags&8192&&(Ne|=8,Ne&1||(Ne|=2)),x&&fr.transformFlags&33554432&&(Ne&1||(Ne|=6))))}return Ne}function Dr($){var Ne=(N==null?void 0:N.facts)||0;if(Ne&4){var me=v.createTempVariable(A,!0);return In().superClassReference=me,v.updateExpressionWithTypeArguments($,v.createAssignment(me,e.visitNode($.expression,g,e.isExpression)),void 0)}return e.visitEachChild($,g,h)}function br($){var Ne=Ye($);Ne&&(In().facts=Ne),Ne&8&&Pr();var me=e.getStaticPropertiesAndClassStaticBlock($),Ze;if(Ne&2){var Cr=v.createTempVariable(A,!0);In().classConstructor=v.cloneNode(Cr),Ze=v.createAssignment(Cr,v.getInternalName($))}var fr=e.getEffectiveBaseTypeNode($),dr=!!(fr&&e.skipOuterExpressions(fr.expression).kind!==104),et=[v.updateClassDeclaration($,void 0,$.modifiers,$.name,void 0,e.visitNodes($.heritageClauses,P,e.isHeritageClause),kr($,dr))];return Ze&&ir().unshift(Ze),e.some(Q)&&et.push(v.createExpressionStatement(v.inlineExpressions(Q))),e.some(me)&&gr(et,me,v.getInternalName($)),et}function lr($){var Ne=Ye($);Ne&&(In().facts=Ne),Ne&8&&Pr();var me=!!(Ne&1),Ze=e.getStaticPropertiesAndClassStaticBlock($),Cr=e.getEffectiveBaseTypeNode($),fr=!!(Cr&&e.skipOuterExpressions(Cr.expression).kind!==104),dr=S.getNodeCheckFlags($)&16777216,et;function yt(){var zr=S.getNodeCheckFlags($),gt=zr&16777216,vt=zr&524288;return v.createTempVariable(vt?M:A,!!gt)}Ne&2&&(et=yt(),In().classConstructor=v.cloneNode(et));var Vr=v.updateClassExpression($,e.visitNodes($.decorators,g,e.isDecorator),$.modifiers,$.name,void 0,e.visitNodes($.heritageClauses,P,e.isHeritageClause),kr($,fr)),tr=e.some(Ze,function(zr){return e.isClassStaticBlockDeclaration(zr)||!!zr.initializer||w&&e.isPrivateIdentifier(zr.name)});if(tr||e.some(Q)){if(me)return e.Debug.assertIsDefined(V,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),V&&Q&&e.some(Q)&&V.push(v.createExpressionStatement(v.inlineExpressions(Q))),V&&e.some(Ze)&&gr(V,Ze,v.getInternalName($)),et?v.inlineExpressions([v.createAssignment(et,Vr),et]):Vr;var xr=[];if(et||(et=yt()),dr){Sr();var Nr=v.cloneNode(et);Nr.autoGenerateFlags&=-9,F[e.getOriginalNodeId($)]=Nr}return e.setEmitFlags(Vr,65536|e.getEmitFlags(Vr)),xr.push(e.startOnNewLine(v.createAssignment(et,Vr))),e.addRange(xr,e.map(Q,e.startOnNewLine)),e.addRange(xr,de(Ze,et)),xr.push(e.startOnNewLine(et)),v.inlineExpressions(xr)}return Vr}function Ar($){if(!w)return e.visitEachChild($,j,h)}function kr($,Ne){if(w){for(var me=0,Ze=$.members;me<Ze.length;me++){var Cr=Ze[me];e.isPrivateIdentifierClassElementDeclaration(Cr)&&Or(Cr)}e.some(Ae($))&&Ke()}var fr=[],dr=Hr($,Ne);return dr&&fr.push(dr),e.addRange(fr,e.visitNodes($.members,j,e.isClassElement)),e.setTextRange(v.createNodeArray(fr),$.members)}function Ke(){var $=zn().weakSetName;e.Debug.assert($,"weakSetName should be set in private identifier environment"),ir().push(v.createAssignment($,v.createNewExpression(v.createIdentifier("WeakSet"),void 0,[])))}function Me($){return e.isStatic($)||e.hasSyntacticModifier(e.getOriginalNode($),128)?!1:I?H<99:e.isInitializedProperty($)||w&&e.isPrivateIdentifierClassElementDeclaration($)}function Hr($,Ne){var me=e.visitNode(e.getFirstConstructorWithBody($),g,e.isConstructorDeclaration),Ze=$.members.filter(Me);if(!e.some(Ze))return me;var Cr=e.visitParameterList(me?me.parameters:void 0,g,h),fr=ur($,me,Ne);if(fr)return e.startOnNewLine(e.setOriginalNode(e.setTextRange(v.createConstructorDeclaration(void 0,void 0,Cr??[],fr),me||$),me))}function ur($,Ne,me){var Ze=e.getProperties($,!1,!1);I||(Ze=e.filter(Ze,function(tr){return!!tr.initializer||e.isPrivateIdentifier(tr.name)}));var Cr=Ae($),fr=e.some(Ze)||e.some(Cr);if(!Ne&&!fr)return e.visitFunctionBody(void 0,g,h);b();var dr=0,et=[];if(!Ne&&me&&et.push(v.createExpressionStatement(v.createCallExpression(v.createSuper(),void 0,[v.createSpreadElement(v.createIdentifier("arguments"))]))),Ne&&(dr=e.addPrologueDirectivesAndInitialSuperCall(v,Ne,et,g)),Ne!=null&&Ne.body){var yt=e.findIndex(Ne.body.statements,function(tr){return!e.isParameterPropertyDeclaration(e.getOriginalNode(tr),Ne)},dr);yt===-1&&(yt=Ne.body.statements.length),yt>dr&&(I||e.addRange(et,e.visitNodes(Ne.body.statements,g,e.isStatement,dr,yt-dr)),dr=yt)}var Vr=v.createThis();return He(et,Cr,Vr),gr(et,Ze,Vr),Ne&&e.addRange(et,e.visitNodes(Ne.body.statements,g,e.isStatement,dr)),et=v.mergeLexicalEnvironment(et,z()),e.setTextRange(v.createBlock(e.setTextRange(v.createNodeArray(et),Ne?Ne.body.statements:$.members),!0),Ne?Ne.body:void 0)}function gr($,Ne,me){for(var Ze=0,Cr=Ne;Ze<Cr.length;Ze++){var fr=Cr[Ze],dr=e.isClassStaticBlockDeclaration(fr)?_e(fr):Fe(fr,me);if(dr){var et=v.createExpressionStatement(dr);e.setSourceMapRange(et,e.moveRangePastModifiers(fr)),e.setCommentRange(et,fr),e.setOriginalNode(et,fr),$.push(et)}}}function de($,Ne){for(var me=[],Ze=0,Cr=$;Ze<Cr.length;Ze++){var fr=Cr[Ze],dr=e.isClassStaticBlockDeclaration(fr)?_e(fr):Fe(fr,Ne);dr&&(e.startOnNewLine(dr),e.setSourceMapRange(dr,e.moveRangePastModifiers(fr)),e.setCommentRange(dr,fr),e.setOriginalNode(dr,fr),me.push(dr))}return me}function Fe($,Ne){var me=D,Ze=$e($,Ne);return Ze&&e.hasStaticModifier($)&&(N!=null&&N.facts)&&(e.setOriginalNode(Ze,$),e.addEmitFlags(Ze,2),T.set(e.getOriginalNodeId(Ze),N)),D=me,Ze}function $e($,Ne){var me,Ze=!I,Cr=e.isComputedPropertyName($.name)&&!e.isSimpleInlineableExpression($.name.expression)?v.updateComputedPropertyName($.name,v.getGeneratedNameForNode($.name)):$.name;if(e.hasStaticModifier($)&&(D=$),w&&e.isPrivateIdentifier(Cr)){var fr=or(Cr);if(fr)return fr.kind==="f"?fr.isStatic?a(fr.variableName,e.visitNode($.initializer,g,e.isExpression)):d(Ne,e.visitNode($.initializer,g,e.isExpression),fr.brandCheckIdentifier):void 0;e.Debug.fail("Undeclared private name for property declaration.")}if(!((e.isPrivateIdentifier(Cr)||e.hasStaticModifier($))&&!$.initializer)){var dr=e.getOriginalNode($);if(!e.hasSyntacticModifier(dr,128)){var et=$.initializer||Ze?(me=e.visitNode($.initializer,g,e.isExpression))!==null&&me!==void 0?me:v.createVoidZero():e.isParameterPropertyDeclaration(dr,dr.parent)&&e.isIdentifier(Cr)?Cr:v.createVoidZero();if(Ze||e.isPrivateIdentifier(Cr)){var yt=e.createMemberAccessForPropertyName(v,Ne,Cr,Cr);return v.createAssignment(yt,et)}else{var Vr=e.isComputedPropertyName(Cr)?Cr.expression:e.isIdentifier(Cr)?v.createStringLiteral(e.unescapeLeadingUnderscores(Cr.escapedText)):Cr,tr=v.createPropertyDescriptor({value:et,configurable:!0,writable:!0,enumerable:!0});return v.createObjectDefinePropertyCall(Ne,Vr,tr)}}}}function Sr(){ne&1||(ne|=1,h.enableSubstitution(79),F=[])}function Pr(){ne&2||(ne|=2,h.enableSubstitution(108),h.enableEmitNotification(255),h.enableEmitNotification(212),h.enableEmitNotification(170),h.enableEmitNotification(171),h.enableEmitNotification(172),h.enableEmitNotification(168),h.enableEmitNotification(166),h.enableEmitNotification(161))}function He($,Ne,me){if(!(!w||!e.some(Ne))){var Ze=zn().weakSetName;e.Debug.assert(Ze,"weakSetName should be set in private identifier environment"),$.push(v.createExpressionStatement(k(me,Ze)))}}function pr($){return e.isPropertyAccessExpression($)?v.updatePropertyAccessExpression($,v.createVoidZero(),$.name):v.updateElementAccessExpression($,v.createVoidZero(),e.visitNode($.argumentExpression,g,e.isExpression))}function Jr($,Ne,me){var Ze=e.getOriginalNode(Ne);if(Ze.id){var Cr=T.get(Ze.id);if(Cr){var fr=N,dr=y;N=Cr,y=Cr,Z($,Ne,me),N=fr,y=dr;return}}switch(Ne.kind){case 212:if(e.isArrowFunction(Ze)||e.getEmitFlags(Ne)&262144)break;case 255:case 170:{var fr=N,dr=y;N=void 0,y=void 0,Z($,Ne,me),N=fr,y=dr;return}case 171:case 172:case 168:case 166:{var fr=N,dr=y;y=N,N=void 0,Z($,Ne,me),N=fr,y=dr;return}case 161:{var fr=N,dr=y;N=y,y=void 0,Z($,Ne,me),N=fr,y=dr;return}}Z($,Ne,me)}function ze($,Ne){return Ne=q($,Ne),$===1?Lr(Ne):Ne}function Lr($){switch($.kind){case 79:return lt($);case 108:return Yr($)}return $}function Yr($){if(ne&2&&N){var Ne=N.facts,me=N.classConstructor;if(Ne&1)return v.createParenthesizedExpression(v.createVoidZero());if(me)return e.setTextRange(e.setOriginalNode(v.cloneNode(me),$),$)}return $}function lt($){return tt($)||$}function tt($){if(ne&1&&S.getNodeCheckFlags($)&33554432){var Ne=S.getReferencedValueDeclaration($);if(Ne){var me=F[Ne.id];if(me){var Ze=v.cloneNode(me);return e.setSourceMapRange(Ze,$),e.setCommentRange(Ze,$),Ze}}}}function Rt($,Ne){if(e.isComputedPropertyName($)){var me=e.visitNode($.expression,g,e.isExpression),Ze=e.skipPartiallyEmittedExpressions(me),Cr=e.isSimpleInlineableExpression(Ze),fr=e.isAssignmentExpression(Ze)&&e.isGeneratedIdentifier(Ze.left);if(!fr&&!Cr&&Ne){var dr=v.getGeneratedNameForNode($);return S.getNodeCheckFlags($)&524288?M(dr):A(dr),v.createAssignment(dr,me)}return Cr||e.isIdentifier(Ze)?void 0:me}}function cn(){re.push(N),N=void 0}function bn(){N=re.pop()}function In(){return N||(N={facts:0,classConstructor:void 0,superClassReference:void 0,privateIdentifierEnvironment:void 0})}function zn(){var $=In();return $.privateIdentifierEnvironment||($.privateIdentifierEnvironment={className:"",identifiers:new e.Map}),$.privateIdentifierEnvironment}function ir(){return Q||(Q=[])}function Or($){var Ne,me=e.getTextOfPropertyName($.name),Ze=In(),Cr=Ze.classConstructor,fr=zn(),dr=fr.weakSetName,et=[],yt=$.name.escapedText,Vr=fr.identifiers.get(yt),tr=!J($.name)&&Vr===void 0;if(e.hasStaticModifier($))if(e.Debug.assert(Cr,"weakSetName should be set in private identifier environment"),e.isPropertyDeclaration($)){var xr=ye(me,$);fr.identifiers.set(yt,{kind:"f",variableName:xr,brandCheckIdentifier:Cr,isStatic:!0,isValid:tr})}else if(e.isMethodDeclaration($)){var Nr=ye(me,$);fr.identifiers.set(yt,{kind:"m",methodName:Nr,brandCheckIdentifier:Cr,isStatic:!0,isValid:tr})}else if(e.isGetAccessorDeclaration($)){var zr=ye(me+"_get",$);(Vr==null?void 0:Vr.kind)==="a"&&Vr.isStatic&&!Vr.getterName?Vr.getterName=zr:fr.identifiers.set(yt,{kind:"a",getterName:zr,setterName:void 0,brandCheckIdentifier:Cr,isStatic:!0,isValid:tr})}else if(e.isSetAccessorDeclaration($)){var gt=ye(me+"_set",$);(Vr==null?void 0:Vr.kind)==="a"&&Vr.isStatic&&!Vr.setterName?Vr.setterName=gt:fr.identifiers.set(yt,{kind:"a",getterName:void 0,setterName:gt,brandCheckIdentifier:Cr,isStatic:!0,isValid:tr})}else e.Debug.assertNever($,"Unknown class element type.");else if(e.isPropertyDeclaration($)){var vt=ye(me,$);fr.identifiers.set(yt,{kind:"f",brandCheckIdentifier:vt,isStatic:!1,variableName:void 0,isValid:tr}),et.push(v.createAssignment(vt,v.createNewExpression(v.createIdentifier("WeakMap"),void 0,[])))}else if(e.isMethodDeclaration($))e.Debug.assert(dr,"weakSetName should be set in private identifier environment"),fr.identifiers.set(yt,{kind:"m",methodName:ye(me,$),brandCheckIdentifier:dr,isStatic:!1,isValid:tr});else if(e.isAccessor($))if(e.Debug.assert(dr,"weakSetName should be set in private identifier environment"),e.isGetAccessor($)){var zr=ye(me+"_get",$);(Vr==null?void 0:Vr.kind)==="a"&&!Vr.isStatic&&!Vr.getterName?Vr.getterName=zr:fr.identifiers.set(yt,{kind:"a",getterName:zr,setterName:void 0,brandCheckIdentifier:dr,isStatic:!1,isValid:tr})}else{var gt=ye(me+"_set",$);(Vr==null?void 0:Vr.kind)==="a"&&!Vr.isStatic&&!Vr.setterName?Vr.setterName=gt:fr.identifiers.set(yt,{kind:"a",getterName:void 0,setterName:gt,brandCheckIdentifier:dr,isStatic:!1,isValid:tr})}else e.Debug.assertNever($,"Unknown class element type.");(Ne=ir()).push.apply(Ne,et)}function sr($,Ne){var me=zn().className,Ze=me?"_".concat(me):"",Cr=v.createUniqueName("".concat(Ze,"_").concat($),16);return S.getNodeCheckFlags(Ne)&524288?M(Cr):A(Cr),Cr}function ye($,Ne){return sr($.substring(1),Ne.name)}function or($){var Ne;if(N!=null&&N.privateIdentifierEnvironment){var me=N.privateIdentifierEnvironment.identifiers.get($.escapedText);if(me)return me}for(var Ze=re.length-1;Ze>=0;--Ze){var Cr=re[Ze];if(Cr){var me=(Ne=Cr.privateIdentifierEnvironment)===null||Ne===void 0?void 0:Ne.identifiers.get($.escapedText);if(me)return me}}}function fe($){var Ne=v.getGeneratedNameForNode($),me=or($.name);if(!me)return e.visitEachChild($,g,h);var Ze=$.expression;return(e.isThisProperty($)||e.isSuperProperty($)||!e.isSimpleCopiableExpression($.expression))&&(Ze=v.createTempVariable(A,!0),ir().push(v.createBinaryExpression(Ze,63,e.visitNode($.expression,g,e.isExpression)))),v.createAssignmentTargetWrapper(Ne,qe(me,Ze,Ne,63))}function je($){var Ne=e.getTargetOfBindingOrAssignmentElement($);if(Ne){var me=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(Ne))me=fe(Ne);else if(x&&e.isSuperProperty(Ne)&&D&&N){var Ze=N.classConstructor,Cr=N.superClassReference,fr=N.facts;if(fr&1)me=pr(Ne);else if(Ze&&Cr){var dr=e.isElementAccessExpression(Ne)?e.visitNode(Ne.argumentExpression,g,e.isExpression):e.isIdentifier(Ne.name)?v.createStringLiteralFromNode(Ne.name):void 0;if(dr){var et=v.createTempVariable(void 0);me=v.createAssignmentTargetWrapper(et,v.createReflectSetCall(Cr,dr,et,Ze))}}}if(me)return e.isAssignmentExpression($)?v.updateBinaryExpression($,me,$.operatorToken,e.visitNode($.right,g,e.isExpression)):e.isSpreadElement($)?v.updateSpreadElement($,me):me}return e.visitNode($,te)}function Ee($){if(e.isObjectBindingOrAssignmentElement($)&&!e.isShorthandPropertyAssignment($)){var Ne=e.getTargetOfBindingOrAssignmentElement($),me=void 0;if(Ne){if(e.isPrivateIdentifierPropertyAccessExpression(Ne))me=fe(Ne);else if(x&&e.isSuperProperty(Ne)&&D&&N){var Ze=N.classConstructor,Cr=N.superClassReference,fr=N.facts;if(fr&1)me=pr(Ne);else if(Ze&&Cr){var dr=e.isElementAccessExpression(Ne)?e.visitNode(Ne.argumentExpression,g,e.isExpression):e.isIdentifier(Ne.name)?v.createStringLiteralFromNode(Ne.name):void 0;if(dr){var et=v.createTempVariable(void 0);me=v.createAssignmentTargetWrapper(et,v.createReflectSetCall(Cr,dr,et,Ze))}}}}if(e.isPropertyAssignment($)){var yt=e.getInitializerOfBindingOrAssignmentElement($);return v.updatePropertyAssignment($,e.visitNode($.name,g,e.isPropertyName),me?yt?v.createAssignment(me,e.visitNode(yt,g)):me:e.visitNode($.initializer,te,e.isExpression))}if(e.isSpreadAssignment($))return v.updateSpreadAssignment($,me||e.visitNode($.expression,te,e.isExpression));e.Debug.assert(me===void 0,"Should not have generated a wrapped target")}return e.visitNode($,g)}function We($){return e.isArrayLiteralExpression($)?v.updateArrayLiteralExpression($,e.visitNodes($.elements,je,e.isExpression)):v.updateObjectLiteralExpression($,e.visitNodes($.properties,Ee,e.isObjectLiteralElementLike))}}e.transformClassFields=p;function a(h,v){return e.factory.createAssignment(h,e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment("value",v||e.factory.createVoidZero())]))}function d(h,v,A){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(A,"set"),void 0,[h,v||e.factory.createVoidZero()])}function k(h,v){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(v,"add"),void 0,[h])}function J(h){return h.escapedText==="#constructor"}}(jr||(jr={})),function(e){var n;(function(d){d[d.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(n||(n={}));var f;(function(d){d[d.NonTopLevel=1]="NonTopLevel",d[d.HasLexicalThis=2]="HasLexicalThis"})(f||(f={}));function p(d){var k=d.factory,J=d.getEmitHelperFactory,h=d.resumeLexicalEnvironment,v=d.endLexicalEnvironment,A=d.hoistVariableDeclaration,z=d.getEmitResolver(),ie=d.getCompilerOptions(),b=e.getEmitScriptTarget(ie),M,S=0,B,H,I,w=[],x=0,O=d.onEmitNode,q=d.onSubstituteNode;return d.onEmitNode=Ge,d.onSubstituteNode=he,e.chainBundle(d,Z);function Z(De){if(De.isDeclarationFile)return De;ne(1,!1),ne(2,!e.isEffectiveStrictModeSourceFile(De,ie));var Ae=e.visitEachChild(De,N,d);return e.addEmitHelpers(Ae,d.readEmitHelpers()),Ae}function ne(De,Ae){x=Ae?x|De:x&~De}function F(De){return(x&De)!==0}function Q(){return!F(1)}function V(){return F(2)}function re(De,Ae,Ye){var Dr=De&~x;if(Dr){ne(Dr,!0);var br=Ae(Ye);return ne(Dr,!1),br}return Ae(Ye)}function T(De){return e.visitEachChild(De,N,d)}function N(De){if(!(De.transformFlags&128))return De;switch(De.kind){case 131:return;case 217:return P(De);case 168:return re(3,te,De);case 255:return re(3,ue,De);case 212:return re(3,X,De);case 213:return re(1,j,De);case 205:return H&&e.isPropertyAccessExpression(De)&&De.expression.kind===106&&H.add(De.name.escapedText),e.visitEachChild(De,N,d);case 206:return H&&De.expression.kind===106&&(I=!0),e.visitEachChild(De,N,d);case 171:case 172:case 170:case 256:case 225:return re(3,T,De);default:return e.visitEachChild(De,N,d)}}function y(De){if(e.isNodeWithPossibleHoistedDeclaration(De))switch(De.kind){case 236:return C(De);case 241:return g(De);case 242:return m(De);case 243:return u(De);case 291:return D(De);case 234:case 248:case 262:case 288:case 289:case 251:case 239:case 240:case 238:case 247:case 249:return e.visitEachChild(De,y,d);default:return e.Debug.assertNever(De,"Unhandled node.")}return N(De)}function D(De){var Ae=new e.Set;Se(De.variableDeclaration,Ae);var Ye;if(Ae.forEach(function(lr,Ar){B.has(Ar)&&(Ye||(Ye=new e.Set(B)),Ye.delete(Ar))}),Ye){var Dr=B;B=Ye;var br=e.visitEachChild(De,y,d);return B=Dr,br}else return e.visitEachChild(De,y,d)}function C(De){if(Ce(De.declarationList)){var Ae=R(De.declarationList,!1);return Ae?k.createExpressionStatement(Ae):void 0}return e.visitEachChild(De,N,d)}function m(De){return k.updateForInStatement(De,Ce(De.initializer)?R(De.initializer,!0):e.visitNode(De.initializer,N,e.isForInitializer),e.visitNode(De.expression,N,e.isExpression),e.visitIterationBody(De.statement,y,d))}function u(De){return k.updateForOfStatement(De,e.visitNode(De.awaitModifier,N,e.isToken),Ce(De.initializer)?R(De.initializer,!0):e.visitNode(De.initializer,N,e.isForInitializer),e.visitNode(De.expression,N,e.isExpression),e.visitIterationBody(De.statement,y,d))}function g(De){var Ae=De.initializer;return k.updateForStatement(De,Ce(Ae)?R(Ae,!1):e.visitNode(De.initializer,N,e.isForInitializer),e.visitNode(De.condition,N,e.isExpression),e.visitNode(De.incrementor,N,e.isExpression),e.visitIterationBody(De.statement,y,d))}function P(De){return Q()?e.visitEachChild(De,N,d):e.setOriginalNode(e.setTextRange(k.createYieldExpression(void 0,e.visitNode(De.expression,N,e.isExpression)),De),De)}function te(De){return k.updateMethodDeclaration(De,void 0,e.visitNodes(De.modifiers,N,e.isModifier),De.asteriskToken,De.name,void 0,void 0,e.visitParameterList(De.parameters,N,d),void 0,e.getFunctionFlags(De)&2?ge(De):e.visitFunctionBody(De.body,N,d))}function ue(De){return k.updateFunctionDeclaration(De,void 0,e.visitNodes(De.modifiers,N,e.isModifier),De.asteriskToken,De.name,void 0,e.visitParameterList(De.parameters,N,d),void 0,e.getFunctionFlags(De)&2?ge(De):e.visitFunctionBody(De.body,N,d))}function X(De){return k.updateFunctionExpression(De,e.visitNodes(De.modifiers,N,e.isModifier),De.asteriskToken,De.name,void 0,e.visitParameterList(De.parameters,N,d),void 0,e.getFunctionFlags(De)&2?ge(De):e.visitFunctionBody(De.body,N,d))}function j(De){return k.updateArrowFunction(De,e.visitNodes(De.modifiers,N,e.isModifier),void 0,e.visitParameterList(De.parameters,N,d),void 0,De.equalsGreaterThanToken,e.getFunctionFlags(De)&2?ge(De):e.visitFunctionBody(De.body,N,d))}function Se(De,Ae){var Ye=De.name;if(e.isIdentifier(Ye))Ae.add(Ye.escapedText);else for(var Dr=0,br=Ye.elements;Dr<br.length;Dr++){var lr=br[Dr];e.isOmittedExpression(lr)||Se(lr,Ae)}}function Ce(De){return!!De&&e.isVariableDeclarationList(De)&&!(De.flags&3)&&De.declarations.some(Te)}function R(De,Ae){Y(De);var Ye=e.getInitializedVariables(De);return Ye.length===0?Ae?e.visitNode(k.converters.convertToAssignmentElementTarget(De.declarations[0].name),N,e.isExpression):void 0:k.inlineExpressions(e.map(Ye,K))}function Y(De){e.forEach(De.declarations,U)}function U(De){var Ae=De.name;if(e.isIdentifier(Ae))A(Ae);else for(var Ye=0,Dr=Ae.elements;Ye<Dr.length;Ye++){var br=Dr[Ye];e.isOmittedExpression(br)||U(br)}}function K(De){var Ae=e.setSourceMapRange(k.createAssignment(k.converters.convertToAssignmentElementTarget(De.name),De.initializer),De);return e.visitNode(Ae,N,e.isExpression)}function Te(De){var Ae=De.name;if(e.isIdentifier(Ae))return B.has(Ae.escapedText);for(var Ye=0,Dr=Ae.elements;Ye<Dr.length;Ye++){var br=Dr[Ye];if(!e.isOmittedExpression(br)&&Te(br))return!0}return!1}function ge(De){h();var Ae=e.getOriginalNode(De,e.isFunctionLike),Ye=Ae.type,Dr=b<2?Pe(Ye):void 0,br=De.kind===213,lr=(z.getNodeCheckFlags(De)&8192)!==0,Ar=B;B=new e.Set;for(var kr=0,Ke=De.parameters;kr<Ke.length;kr++){var Me=Ke[kr];Se(Me,B)}var Hr=H,ur=I;br||(H=new e.Set,I=!1);var gr;if(br){var He=J().createAwaiterHelper(V(),lr,Dr,ke(De.body)),pr=v();if(e.some(pr)){var Pr=k.converters.convertToFunctionBlock(He);gr=k.updateBlock(Pr,e.setTextRange(k.createNodeArray(e.concatenate(pr,Pr.statements)),Pr.statements))}else gr=He}else{var de=[],Fe=k.copyPrologue(De.body.statements,de,!1,N);de.push(k.createReturnStatement(J().createAwaiterHelper(V(),lr,Dr,ke(De.body,Fe)))),e.insertStatementsAfterStandardPrologue(de,v());var $e=b>=2&&z.getNodeCheckFlags(De)&6144;if($e&&(Ie(),H.size)){var Sr=a(k,z,De,H);w[e.getNodeId(Sr)]=!0,e.insertStatementsAfterStandardPrologue(de,[Sr])}var Pr=k.createBlock(de,!0);e.setTextRange(Pr,De.body),$e&&I&&(z.getNodeCheckFlags(De)&4096?e.addEmitHelper(Pr,e.advancedAsyncSuperHelper):z.getNodeCheckFlags(De)&2048&&e.addEmitHelper(Pr,e.asyncSuperHelper)),gr=Pr}return B=Ar,br||(H=Hr,I=ur),gr}function ke(De,Ae){return e.isBlock(De)?k.updateBlock(De,e.visitNodes(De.statements,y,e.isStatement,Ae)):k.converters.convertToFunctionBlock(e.visitNode(De,y,e.isConciseBody))}function Pe(De){var Ae=De&&e.getEntityNameFromTypeNode(De);if(Ae&&e.isEntityName(Ae)){var Ye=z.getTypeReferenceSerializationKind(Ae);if(Ye===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||Ye===e.TypeReferenceSerializationKind.Unknown)return Ae}}function Ie(){M&1||(M|=1,d.enableSubstitution(207),d.enableSubstitution(205),d.enableSubstitution(206),d.enableEmitNotification(256),d.enableEmitNotification(168),d.enableEmitNotification(171),d.enableEmitNotification(172),d.enableEmitNotification(170),d.enableEmitNotification(236))}function Ge(De,Ae,Ye){if(M&1&&qe(Ae)){var Dr=z.getNodeCheckFlags(Ae)&6144;if(Dr!==S){var br=S;S=Dr,O(De,Ae,Ye),S=br;return}}else if(M&&w[e.getNodeId(Ae)]){var br=S;S=0,O(De,Ae,Ye),S=br;return}O(De,Ae,Ye)}function he(De,Ae){return Ae=q(De,Ae),De===1&&S?ve(Ae):Ae}function ve(De){switch(De.kind){case 205:return Ve(De);case 206:return _e(De);case 207:return Le(De)}return De}function Ve(De){return De.expression.kind===106?e.setTextRange(k.createPropertyAccessExpression(k.createUniqueName("_super",48),De.name),De):De}function _e(De){return De.expression.kind===106?Xe(De.argumentExpression,De):De}function Le(De){var Ae=De.expression;if(e.isSuperProperty(Ae)){var Ye=e.isPropertyAccessExpression(Ae)?Ve(Ae):_e(Ae);return k.createCallExpression(k.createPropertyAccessExpression(Ye,"call"),void 0,Gt([k.createThis()],De.arguments,!0))}return De}function qe(De){var Ae=De.kind;return Ae===256||Ae===170||Ae===168||Ae===171||Ae===172}function Xe(De,Ae){return S&4096?e.setTextRange(k.createPropertyAccessExpression(k.createCallExpression(k.createUniqueName("_superIndex",48),void 0,[De]),"value"),Ae):e.setTextRange(k.createCallExpression(k.createUniqueName("_superIndex",48),void 0,[De]),Ae)}}e.transformES2017=p;function a(d,k,J,h){var v=(k.getNodeCheckFlags(J)&4096)!==0,A=[];return h.forEach(function(z,ie){var b=e.unescapeLeadingUnderscores(ie),M=[];M.push(d.createPropertyAssignment("get",d.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(d.createPropertyAccessExpression(e.setEmitFlags(d.createSuper(),4),b),4)))),v&&M.push(d.createPropertyAssignment("set",d.createArrowFunction(void 0,void 0,[d.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,d.createAssignment(e.setEmitFlags(d.createPropertyAccessExpression(e.setEmitFlags(d.createSuper(),4),b),4),d.createIdentifier("v"))))),A.push(d.createPropertyAssignment(b,d.createObjectLiteralExpression(M)))}),d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(d.createUniqueName("_super",48),void 0,void 0,d.createCallExpression(d.createPropertyAccessExpression(d.createIdentifier("Object"),"create"),void 0,[d.createNull(),d.createObjectLiteralExpression(A,!0)]))],2))}e.createSuperAccessVariableStatement=a}(jr||(jr={})),function(e){var n;(function(a){a[a.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(n||(n={}));var f;(function(a){a[a.None=0]="None",a[a.HasLexicalThis=1]="HasLexicalThis",a[a.IterationContainer=2]="IterationContainer",a[a.AncestorFactsMask=3]="AncestorFactsMask",a[a.SourceFileIncludes=1]="SourceFileIncludes",a[a.SourceFileExcludes=2]="SourceFileExcludes",a[a.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",a[a.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",a[a.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",a[a.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",a[a.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",a[a.IterationStatementIncludes=2]="IterationStatementIncludes",a[a.IterationStatementExcludes=0]="IterationStatementExcludes"})(f||(f={}));function p(a){var d=a.factory,k=a.getEmitHelperFactory,J=a.resumeLexicalEnvironment,h=a.endLexicalEnvironment,v=a.hoistVariableDeclaration,A=a.getEmitResolver(),z=a.getCompilerOptions(),ie=e.getEmitScriptTarget(z),b=a.onEmitNode;a.onEmitNode=Hr;var M=a.onSubstituteNode;a.onSubstituteNode=ur;var S=!1,B,H,I=0,w=0,x,O,q,Z,ne=[];return e.chainBundle(a,T);function F(He,pr){return w!==(w&~He|pr)}function Q(He,pr){var Jr=w;return w=(w&~He|pr)&3,Jr}function V(He){w=He}function re(He){O=e.append(O,d.createVariableDeclaration(He))}function T(He){if(He.isDeclarationFile)return He;x=He;var pr=R(He);return e.addEmitHelpers(pr,a.readEmitHelpers()),x=void 0,O=void 0,pr}function N(He){return u(He,!1)}function y(He){return u(He,!0)}function D(He){if(He.kind!==131)return He}function C(He,pr,Jr,ze){if(F(Jr,ze)){var Lr=Q(Jr,ze),Yr=He(pr);return V(Lr),Yr}return He(pr)}function m(He){return e.visitEachChild(He,N,a)}function u(He,pr){if(!(He.transformFlags&64))return He;switch(He.kind){case 217:return g(He);case 223:return P(He);case 246:return te(He);case 249:return ue(He);case 204:return j(He);case 220:return U(He,pr);case 349:return K(He,pr);case 291:return Te(He);case 236:return ge(He);case 253:return ke(He);case 239:case 240:case 242:return C(m,He,0,2);case 243:return he(He,void 0);case 241:return C(Ie,He,0,2);case 216:return Ge(He);case 170:return C(Xe,He,2,1);case 168:return C(Ye,He,2,1);case 171:return C(De,He,2,1);case 172:return C(Ae,He,2,1);case 255:return C(Dr,He,2,1);case 212:return C(lr,He,2,1);case 213:return C(br,He,2,0);case 163:return qe(He);case 237:return Se(He);case 211:return Ce(He,pr);case 209:return Y(He);case 205:return q&&e.isPropertyAccessExpression(He)&&He.expression.kind===106&&q.add(He.name.escapedText),e.visitEachChild(He,N,a);case 206:return q&&He.expression.kind===106&&(Z=!0),e.visitEachChild(He,N,a);case 256:case 225:return C(m,He,2,1);default:return e.visitEachChild(He,N,a)}}function g(He){return H&2&&H&1?e.setOriginalNode(e.setTextRange(d.createYieldExpression(void 0,k().createAwaitHelper(e.visitNode(He.expression,N,e.isExpression))),He),He):e.visitEachChild(He,N,a)}function P(He){if(H&2&&H&1){if(He.asteriskToken){var pr=e.visitNode(e.Debug.assertDefined(He.expression),N,e.isExpression);return e.setOriginalNode(e.setTextRange(d.createYieldExpression(void 0,k().createAwaitHelper(d.updateYieldExpression(He,He.asteriskToken,e.setTextRange(k().createAsyncDelegatorHelper(e.setTextRange(k().createAsyncValuesHelper(pr),pr)),pr)))),He),He)}return e.setOriginalNode(e.setTextRange(d.createYieldExpression(void 0,_e(He.expression?e.visitNode(He.expression,N,e.isExpression):d.createVoidZero())),He),He)}return e.visitEachChild(He,N,a)}function te(He){return H&2&&H&1?d.updateReturnStatement(He,_e(He.expression?e.visitNode(He.expression,N,e.isExpression):d.createVoidZero())):e.visitEachChild(He,N,a)}function ue(He){if(H&2){var pr=e.unwrapInnermostStatementOfLabel(He);return pr.kind===243&&pr.awaitModifier?he(pr,He):d.restoreEnclosingLabel(e.visitNode(pr,N,e.isStatement,d.liftToBlock),He)}return e.visitEachChild(He,N,a)}function X(He){for(var pr,Jr=[],ze=0,Lr=He;ze<Lr.length;ze++){var Yr=Lr[ze];if(Yr.kind===296){pr&&(Jr.push(d.createObjectLiteralExpression(pr)),pr=void 0);var lt=Yr.expression;Jr.push(e.visitNode(lt,N,e.isExpression))}else pr=e.append(pr,Yr.kind===294?d.createPropertyAssignment(Yr.name,e.visitNode(Yr.initializer,N,e.isExpression)):e.visitNode(Yr,N,e.isObjectLiteralElementLike))}return pr&&Jr.push(d.createObjectLiteralExpression(pr)),Jr}function j(He){if(He.transformFlags&32768){var pr=X(He.properties);pr.length&&pr[0].kind!==204&&pr.unshift(d.createObjectLiteralExpression());var Jr=pr[0];if(pr.length>1){for(var ze=1;ze<pr.length;ze++)Jr=k().createAssignHelper([Jr,pr[ze]]);return Jr}else return k().createAssignHelper(pr)}return e.visitEachChild(He,N,a)}function Se(He){return e.visitEachChild(He,y,a)}function Ce(He,pr){return e.visitEachChild(He,pr?y:N,a)}function R(He){var pr=Q(2,e.isEffectiveStrictModeSourceFile(He,z)?0:1);S=!1;var Jr=e.visitEachChild(He,N,a),ze=e.concatenate(Jr.statements,O&&[d.createVariableStatement(void 0,d.createVariableDeclarationList(O))]),Lr=d.updateSourceFile(Jr,e.setTextRange(d.createNodeArray(ze),He.statements));return V(pr),Lr}function Y(He){return e.processTaggedTemplateExpression(a,He,N,x,re,e.ProcessLevel.LiftRestriction)}function U(He,pr){return e.isDestructuringAssignment(He)&&He.left.transformFlags&32768?e.flattenDestructuringAssignment(He,N,a,1,!pr):He.operatorToken.kind===27?d.updateBinaryExpression(He,e.visitNode(He.left,y,e.isExpression),He.operatorToken,e.visitNode(He.right,pr?y:N,e.isExpression)):e.visitEachChild(He,N,a)}function K(He,pr){if(pr)return e.visitEachChild(He,y,a);for(var Jr,ze=0;ze<He.elements.length;ze++){var Lr=He.elements[ze],Yr=e.visitNode(Lr,ze<He.elements.length-1?y:N,e.isExpression);(Jr||Yr!==Lr)&&(Jr||(Jr=He.elements.slice(0,ze)),Jr.push(Yr))}var lt=Jr?e.setTextRange(d.createNodeArray(Jr),He.elements):He.elements;return d.updateCommaListExpression(He,lt)}function Te(He){if(He.variableDeclaration&&e.isBindingPattern(He.variableDeclaration.name)&&He.variableDeclaration.name.transformFlags&32768){var pr=d.getGeneratedNameForNode(He.variableDeclaration.name),Jr=d.updateVariableDeclaration(He.variableDeclaration,He.variableDeclaration.name,void 0,void 0,pr),ze=e.flattenDestructuringBinding(Jr,N,a,1),Lr=e.visitNode(He.block,N,e.isBlock);return e.some(ze)&&(Lr=d.updateBlock(Lr,Gt([d.createVariableStatement(void 0,ze)],Lr.statements,!0))),d.updateCatchClause(He,d.updateVariableDeclaration(He.variableDeclaration,pr,void 0,void 0,void 0),Lr)}return e.visitEachChild(He,N,a)}function ge(He){if(e.hasSyntacticModifier(He,1)){var pr=S;S=!0;var Jr=e.visitEachChild(He,N,a);return S=pr,Jr}return e.visitEachChild(He,N,a)}function ke(He){if(S){var pr=S;S=!1;var Jr=Pe(He,!0);return S=pr,Jr}return Pe(He,!1)}function Pe(He,pr){return e.isBindingPattern(He.name)&&He.name.transformFlags&32768?e.flattenDestructuringBinding(He,N,a,1,void 0,pr):e.visitEachChild(He,N,a)}function Ie(He){return d.updateForStatement(He,e.visitNode(He.initializer,y,e.isForInitializer),e.visitNode(He.condition,N,e.isExpression),e.visitNode(He.incrementor,y,e.isExpression),e.visitIterationBody(He.statement,N,a))}function Ge(He){return e.visitEachChild(He,y,a)}function he(He,pr){var Jr=Q(0,2);He.initializer.transformFlags&32768&&(He=ve(He));var ze=He.awaitModifier?Le(He,pr,Jr):d.restoreEnclosingLabel(e.visitEachChild(He,N,a),pr);return V(Jr),ze}function ve(He){var pr=e.skipParentheses(He.initializer);if(e.isVariableDeclarationList(pr)||e.isAssignmentPattern(pr)){var Jr=void 0,ze=void 0,Lr=d.createTempVariable(void 0),Yr=[e.createForOfBindingStatement(d,pr,Lr)];return e.isBlock(He.statement)?(e.addRange(Yr,He.statement.statements),Jr=He.statement,ze=He.statement.statements):He.statement&&(e.append(Yr,He.statement),Jr=He.statement,ze=He.statement),d.updateForOfStatement(He,He.awaitModifier,e.setTextRange(d.createVariableDeclarationList([e.setTextRange(d.createVariableDeclaration(Lr),He.initializer)],1),He.initializer),He.expression,e.setTextRange(d.createBlock(e.setTextRange(d.createNodeArray(Yr),ze),!0),Jr))}return He}function Ve(He,pr){var Jr=e.createForOfBindingStatement(d,He.initializer,pr),ze,Lr,Yr=[e.visitNode(Jr,N,e.isStatement)],lt=e.visitIterationBody(He.statement,N,a);return e.isBlock(lt)?(e.addRange(Yr,lt.statements),ze=lt,Lr=lt.statements):Yr.push(lt),e.setEmitFlags(e.setTextRange(d.createBlock(e.setTextRange(d.createNodeArray(Yr),Lr),!0),ze),432)}function _e(He){return H&1?d.createYieldExpression(void 0,k().createAwaitHelper(He)):d.createAwaitExpression(He)}function Le(He,pr,Jr){var ze=e.visitNode(He.expression,N,e.isExpression),Lr=e.isIdentifier(ze)?d.getGeneratedNameForNode(ze):d.createTempVariable(void 0),Yr=e.isIdentifier(ze)?d.getGeneratedNameForNode(Lr):d.createTempVariable(void 0),lt=d.createUniqueName("e"),tt=d.getGeneratedNameForNode(lt),Rt=d.createTempVariable(void 0),cn=e.setTextRange(k().createAsyncValuesHelper(ze),He.expression),bn=d.createCallExpression(d.createPropertyAccessExpression(Lr,"next"),void 0,[]),In=d.createPropertyAccessExpression(Yr,"done"),zn=d.createPropertyAccessExpression(Yr,"value"),ir=d.createFunctionCallCall(Rt,Lr,[]);v(lt),v(Rt);var Or=Jr&2?d.inlineExpressions([d.createAssignment(lt,d.createVoidZero()),cn]):cn,sr=e.setEmitFlags(e.setTextRange(d.createForStatement(e.setEmitFlags(e.setTextRange(d.createVariableDeclarationList([e.setTextRange(d.createVariableDeclaration(Lr,void 0,void 0,Or),He.expression),d.createVariableDeclaration(Yr)]),He.expression),2097152),d.createComma(d.createAssignment(Yr,_e(bn)),d.createLogicalNot(In)),void 0,Ve(He,zn)),He),256);return d.createTryStatement(d.createBlock([d.restoreEnclosingLabel(sr,pr)]),d.createCatchClause(d.createVariableDeclaration(tt),e.setEmitFlags(d.createBlock([d.createExpressionStatement(d.createAssignment(lt,d.createObjectLiteralExpression([d.createPropertyAssignment("error",tt)])))]),1)),d.createBlock([d.createTryStatement(d.createBlock([e.setEmitFlags(d.createIfStatement(d.createLogicalAnd(d.createLogicalAnd(Yr,d.createLogicalNot(In)),d.createAssignment(Rt,d.createPropertyAccessExpression(Lr,"return"))),d.createExpressionStatement(_e(ir))),1)]),void 0,e.setEmitFlags(d.createBlock([e.setEmitFlags(d.createIfStatement(lt,d.createThrowStatement(d.createPropertyAccessExpression(lt,"error"))),1)]),1))]))}function qe(He){return He.transformFlags&32768?d.updateParameterDeclaration(He,void 0,void 0,He.dotDotDotToken,d.getGeneratedNameForNode(He),void 0,void 0,e.visitNode(He.initializer,N,e.isExpression)):e.visitEachChild(He,N,a)}function Xe(He){var pr=H;H=0;var Jr=d.updateConstructorDeclaration(He,void 0,He.modifiers,e.visitParameterList(He.parameters,N,a),kr(He));return H=pr,Jr}function De(He){var pr=H;H=0;var Jr=d.updateGetAccessorDeclaration(He,void 0,He.modifiers,e.visitNode(He.name,N,e.isPropertyName),e.visitParameterList(He.parameters,N,a),void 0,kr(He));return H=pr,Jr}function Ae(He){var pr=H;H=0;var Jr=d.updateSetAccessorDeclaration(He,void 0,He.modifiers,e.visitNode(He.name,N,e.isPropertyName),e.visitParameterList(He.parameters,N,a),kr(He));return H=pr,Jr}function Ye(He){var pr=H;H=e.getFunctionFlags(He);var Jr=d.updateMethodDeclaration(He,void 0,H&1?e.visitNodes(He.modifiers,D,e.isModifier):He.modifiers,H&2?void 0:He.asteriskToken,e.visitNode(He.name,N,e.isPropertyName),e.visitNode(void 0,N,e.isToken),void 0,e.visitParameterList(He.parameters,N,a),void 0,H&2&&H&1?Ar(He):kr(He));return H=pr,Jr}function Dr(He){var pr=H;H=e.getFunctionFlags(He);var Jr=d.updateFunctionDeclaration(He,void 0,H&1?e.visitNodes(He.modifiers,D,e.isModifier):He.modifiers,H&2?void 0:He.asteriskToken,He.name,void 0,e.visitParameterList(He.parameters,N,a),void 0,H&2&&H&1?Ar(He):kr(He));return H=pr,Jr}function br(He){var pr=H;H=e.getFunctionFlags(He);var Jr=d.updateArrowFunction(He,He.modifiers,void 0,e.visitParameterList(He.parameters,N,a),void 0,He.equalsGreaterThanToken,kr(He));return H=pr,Jr}function lr(He){var pr=H;H=e.getFunctionFlags(He);var Jr=d.updateFunctionExpression(He,H&1?e.visitNodes(He.modifiers,D,e.isModifier):He.modifiers,H&2?void 0:He.asteriskToken,He.name,void 0,e.visitParameterList(He.parameters,N,a),void 0,H&2&&H&1?Ar(He):kr(He));return H=pr,Jr}function Ar(He){J();var pr=[],Jr=d.copyPrologue(He.body.statements,pr,!1,N);Ke(pr,He);var ze=q,Lr=Z;q=new e.Set,Z=!1;var Yr=d.createReturnStatement(k().createAsyncGeneratorHelper(d.createFunctionExpression(void 0,d.createToken(41),He.name&&d.getGeneratedNameForNode(He.name),void 0,[],void 0,d.updateBlock(He.body,e.visitLexicalEnvironment(He.body.statements,N,a,Jr))),!!(w&1))),lt=ie>=2&&A.getNodeCheckFlags(He)&6144;if(lt){Me();var tt=e.createSuperAccessVariableStatement(d,A,He,q);ne[e.getNodeId(tt)]=!0,e.insertStatementsAfterStandardPrologue(pr,[tt])}pr.push(Yr),e.insertStatementsAfterStandardPrologue(pr,h());var Rt=d.updateBlock(He.body,pr);return lt&&Z&&(A.getNodeCheckFlags(He)&4096?e.addEmitHelper(Rt,e.advancedAsyncSuperHelper):A.getNodeCheckFlags(He)&2048&&e.addEmitHelper(Rt,e.asyncSuperHelper)),q=ze,Z=Lr,Rt}function kr(He){var pr;J();var Jr=0,ze=[],Lr=(pr=e.visitNode(He.body,N,e.isConciseBody))!==null&&pr!==void 0?pr:d.createBlock([]);e.isBlock(Lr)&&(Jr=d.copyPrologue(Lr.statements,ze,!1,N)),e.addRange(ze,Ke(void 0,He));var Yr=h();if(Jr>0||e.some(ze)||e.some(Yr)){var lt=d.converters.convertToFunctionBlock(Lr,!0);return e.insertStatementsAfterStandardPrologue(ze,Yr),e.addRange(ze,lt.statements.slice(Jr)),d.updateBlock(lt,e.setTextRange(d.createNodeArray(ze),lt.statements))}return Lr}function Ke(He,pr){for(var Jr=0,ze=pr.parameters;Jr<ze.length;Jr++){var Lr=ze[Jr];if(Lr.transformFlags&32768){var Yr=d.getGeneratedNameForNode(Lr),lt=e.flattenDestructuringBinding(Lr,N,a,1,Yr,!1,!0);if(e.some(lt)){var tt=d.createVariableStatement(void 0,d.createVariableDeclarationList(lt));e.setEmitFlags(tt,1048576),He=e.append(He,tt)}}}return He}function Me(){B&1||(B|=1,a.enableSubstitution(207),a.enableSubstitution(205),a.enableSubstitution(206),a.enableEmitNotification(256),a.enableEmitNotification(168),a.enableEmitNotification(171),a.enableEmitNotification(172),a.enableEmitNotification(170),a.enableEmitNotification(236))}function Hr(He,pr,Jr){if(B&1&&Sr(pr)){var ze=A.getNodeCheckFlags(pr)&6144;if(ze!==I){var Lr=I;I=ze,b(He,pr,Jr),I=Lr;return}}else if(B&&ne[e.getNodeId(pr)]){var Lr=I;I=0,b(He,pr,Jr),I=Lr;return}b(He,pr,Jr)}function ur(He,pr){return pr=M(He,pr),He===1&&I?gr(pr):pr}function gr(He){switch(He.kind){case 205:return de(He);case 206:return Fe(He);case 207:return $e(He)}return He}function de(He){return He.expression.kind===106?e.setTextRange(d.createPropertyAccessExpression(d.createUniqueName("_super",48),He.name),He):He}function Fe(He){return He.expression.kind===106?Pr(He.argumentExpression,He):He}function $e(He){var pr=He.expression;if(e.isSuperProperty(pr)){var Jr=e.isPropertyAccessExpression(pr)?de(pr):Fe(pr);return d.createCallExpression(d.createPropertyAccessExpression(Jr,"call"),void 0,Gt([d.createThis()],He.arguments,!0))}return He}function Sr(He){var pr=He.kind;return pr===256||pr===170||pr===168||pr===171||pr===172}function Pr(He,pr){return I&4096?e.setTextRange(d.createPropertyAccessExpression(d.createCallExpression(d.createIdentifier("_superIndex"),void 0,[He]),"value"),pr):e.setTextRange(d.createCallExpression(d.createIdentifier("_superIndex"),void 0,[He]),pr)}}e.transformES2018=p}(jr||(jr={})),function(e){function n(f){var p=f.factory;return e.chainBundle(f,a);function a(J){return J.isDeclarationFile?J:e.visitEachChild(J,d,f)}function d(J){if(!(J.transformFlags&32))return J;switch(J.kind){case 291:return k(J);default:return e.visitEachChild(J,d,f)}}function k(J){return J.variableDeclaration?e.visitEachChild(J,d,f):p.updateCatchClause(J,p.createVariableDeclaration(p.createTempVariable(void 0)),e.visitNode(J.block,d,e.isBlock))}}e.transformES2019=n}(jr||(jr={})),function(e){function n(f){var p=f.factory,a=f.hoistVariableDeclaration;return e.chainBundle(f,d);function d(B){return B.isDeclarationFile?B:e.visitEachChild(B,k,f)}function k(B){if(!(B.transformFlags&16))return B;switch(B.kind){case 207:{var H=A(B,!1);return e.Debug.assertNotNode(H,e.isSyntheticReference),H}case 205:case 206:if(e.isOptionalChain(B)){var H=ie(B,!1,!1);return e.Debug.assertNotNode(H,e.isSyntheticReference),H}return e.visitEachChild(B,k,f);case 220:return B.operatorToken.kind===60?M(B):e.visitEachChild(B,k,f);case 214:return S(B);default:return e.visitEachChild(B,k,f)}}function J(B){e.Debug.assertNotNode(B,e.isNonNullChain);for(var H=[B];!B.questionDotToken&&!e.isTaggedTemplateExpression(B);)B=e.cast(e.skipPartiallyEmittedExpressions(B.expression),e.isOptionalChain),e.Debug.assertNotNode(B,e.isNonNullChain),H.unshift(B);return{expression:B.expression,chain:H}}function h(B,H,I){var w=z(B.expression,H,I);return e.isSyntheticReference(w)?p.createSyntheticReferenceExpression(p.updateParenthesizedExpression(B,w.expression),w.thisArg):p.updateParenthesizedExpression(B,w)}function v(B,H,I){if(e.isOptionalChain(B))return ie(B,H,I);var w=e.visitNode(B.expression,k,e.isExpression);e.Debug.assertNotNode(w,e.isSyntheticReference);var x;return H&&(e.isSimpleCopiableExpression(w)?x=w:(x=p.createTempVariable(a),w=p.createAssignment(x,w))),w=B.kind===205?p.updatePropertyAccessExpression(B,w,e.visitNode(B.name,k,e.isIdentifier)):p.updateElementAccessExpression(B,w,e.visitNode(B.argumentExpression,k,e.isExpression)),x?p.createSyntheticReferenceExpression(w,x):w}function A(B,H){if(e.isOptionalChain(B))return ie(B,H,!1);if(e.isParenthesizedExpression(B.expression)&&e.isOptionalChain(e.skipParentheses(B.expression))){var I=h(B.expression,!0,!1),w=e.visitNodes(B.arguments,k,e.isExpression);return e.isSyntheticReference(I)?e.setTextRange(p.createFunctionCallCall(I.expression,I.thisArg,w),B):p.updateCallExpression(B,I,void 0,w)}return e.visitEachChild(B,k,f)}function z(B,H,I){switch(B.kind){case 211:return h(B,H,I);case 205:case 206:return v(B,H,I);case 207:return A(B,H);default:return e.visitNode(B,k,e.isExpression)}}function ie(B,H,I){var w=J(B),x=w.expression,O=w.chain,q=z(x,e.isCallChain(O[0]),!1),Z=e.isSyntheticReference(q)?q.thisArg:void 0,ne=e.isSyntheticReference(q)?q.expression:q,F=ne;e.isSimpleCopiableExpression(ne)||(F=p.createTempVariable(a),ne=p.createAssignment(F,ne));for(var Q=F,V,re=0;re<O.length;re++){var T=O[re];switch(T.kind){case 205:case 206:re===O.length-1&&H&&(e.isSimpleCopiableExpression(Q)?V=Q:(V=p.createTempVariable(a),Q=p.createAssignment(V,Q))),Q=T.kind===205?p.createPropertyAccessExpression(Q,e.visitNode(T.name,k,e.isIdentifier)):p.createElementAccessExpression(Q,e.visitNode(T.argumentExpression,k,e.isExpression));break;case 207:re===0&&Z?Q=p.createFunctionCallCall(Q,Z.kind===106?p.createThis():Z,e.visitNodes(T.arguments,k,e.isExpression)):Q=p.createCallExpression(Q,void 0,e.visitNodes(T.arguments,k,e.isExpression));break}e.setOriginalNode(Q,T)}var N=I?p.createConditionalExpression(b(ne,F,!0),void 0,p.createTrue(),void 0,p.createDeleteExpression(Q)):p.createConditionalExpression(b(ne,F,!0),void 0,p.createVoidZero(),void 0,Q);return e.setTextRange(N,B),V?p.createSyntheticReferenceExpression(N,V):N}function b(B,H,I){return p.createBinaryExpression(p.createBinaryExpression(B,p.createToken(I?36:37),p.createNull()),p.createToken(I?56:55),p.createBinaryExpression(H,p.createToken(I?36:37),p.createVoidZero()))}function M(B){var H=e.visitNode(B.left,k,e.isExpression),I=H;return e.isSimpleCopiableExpression(H)||(I=p.createTempVariable(a),H=p.createAssignment(I,H)),e.setTextRange(p.createConditionalExpression(b(H,I),void 0,I,void 0,e.visitNode(B.right,k,e.isExpression)),B)}function S(B){return e.isOptionalChain(e.skipParentheses(B.expression))?e.setOriginalNode(z(B.expression,!1,!0),B):p.updateDeleteExpression(B,e.visitNode(B.expression,k,e.isExpression))}}e.transformES2020=n}(jr||(jr={})),function(e){function n(f){var p=f.hoistVariableDeclaration,a=f.factory;return e.chainBundle(f,d);function d(h){return h.isDeclarationFile?h:e.visitEachChild(h,k,f)}function k(h){if(!(h.transformFlags&8))return h;switch(h.kind){case 220:var v=h;if(e.isLogicalOrCoalescingAssignmentExpression(v))return J(v);default:return e.visitEachChild(h,k,f)}}function J(h){var v=h.operatorToken,A=e.getNonAssignmentOperatorForCompoundAssignment(v.kind),z=e.skipParentheses(e.visitNode(h.left,k,e.isLeftHandSideExpression)),ie=z,b=e.skipParentheses(e.visitNode(h.right,k,e.isExpression));if(e.isAccessExpression(z)){var M=e.isSimpleCopiableExpression(z.expression),S=M?z.expression:a.createTempVariable(p),B=M?z.expression:a.createAssignment(S,z.expression);if(e.isPropertyAccessExpression(z))ie=a.createPropertyAccessExpression(S,z.name),z=a.createPropertyAccessExpression(B,z.name);else{var H=e.isSimpleCopiableExpression(z.argumentExpression),I=H?z.argumentExpression:a.createTempVariable(p);ie=a.createElementAccessExpression(S,I),z=a.createElementAccessExpression(B,H?z.argumentExpression:a.createAssignment(I,z.argumentExpression))}}return a.createBinaryExpression(z,A,a.createParenthesizedExpression(a.createAssignment(ie,b)))}}e.transformES2021=n}(jr||(jr={})),function(e){function n(f){return e.chainBundle(f,p);function p(d){return d.isDeclarationFile?d:e.visitEachChild(d,a,f)}function a(d){if(!(d.transformFlags&4))return d;switch(d.kind){default:return e.visitEachChild(d,a,f)}}}e.transformESNext=n}(jr||(jr={})),function(e){function n(p){var a=p.factory,d=p.getEmitHelperFactory,k=p.getCompilerOptions(),J,h;return e.chainBundle(p,M);function v(){if(h.filenameDeclaration)return h.filenameDeclaration.name;var Y=a.createVariableDeclaration(a.createUniqueName("_jsxFileName",48),void 0,void 0,a.createStringLiteral(J.fileName));return h.filenameDeclaration=Y,h.filenameDeclaration.name}function A(Y){return k.jsx===5?"jsxDEV":Y?"jsxs":"jsx"}function z(Y){var U=A(Y);return b(U)}function ie(){return b("Fragment")}function b(Y){var U,K,Te=Y==="createElement"?h.importSpecifier:e.getJSXRuntimeImport(h.importSpecifier,k),ge=(K=(U=h.utilizedImplicitRuntimeImports)===null||U===void 0?void 0:U.get(Te))===null||K===void 0?void 0:K.get(Y);if(ge)return ge.name;h.utilizedImplicitRuntimeImports||(h.utilizedImplicitRuntimeImports=e.createMap());var ke=h.utilizedImplicitRuntimeImports.get(Te);ke||(ke=e.createMap(),h.utilizedImplicitRuntimeImports.set(Te,ke));var Pe=a.createUniqueName("_".concat(Y),112),Ie=a.createImportSpecifier(!1,a.createIdentifier(Y),Pe);return Pe.generatedImportReference=Ie,ke.set(Y,Ie),Pe}function M(Y){if(Y.isDeclarationFile)return Y;J=Y,h={},h.importSpecifier=e.getJSXImplicitImportBase(k,Y);var U=e.visitEachChild(Y,S,p);e.addEmitHelpers(U,p.readEmitHelpers());var K=U.statements;if(h.filenameDeclaration&&(K=e.insertStatementAfterCustomPrologue(K.slice(),a.createVariableStatement(void 0,a.createVariableDeclarationList([h.filenameDeclaration],2)))),h.utilizedImplicitRuntimeImports)for(var Te=0,ge=e.arrayFrom(h.utilizedImplicitRuntimeImports.entries());Te<ge.length;Te++){var ke=ge[Te],Pe=ke[0],Ie=ke[1];if(e.isExternalModule(Y)){var Ge=a.createImportDeclaration(void 0,void 0,a.createImportClause(!1,void 0,a.createNamedImports(e.arrayFrom(Ie.values()))),a.createStringLiteral(Pe),void 0);e.setParentRecursive(Ge,!1),K=e.insertStatementAfterCustomPrologue(K.slice(),Ge)}else if(e.isExternalOrCommonJsModule(Y)){var he=a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(a.createObjectBindingPattern(e.map(e.arrayFrom(Ie.values()),function(ve){return a.createBindingElement(void 0,ve.propertyName,ve.name)})),void 0,void 0,a.createCallExpression(a.createIdentifier("require"),void 0,[a.createStringLiteral(Pe)]))],2));e.setParentRecursive(he,!1),K=e.insertStatementAfterCustomPrologue(K.slice(),he)}}return K!==U.statements&&(U=a.updateSourceFile(U,K)),h=void 0,U}function S(Y){return Y.transformFlags&2?B(Y):Y}function B(Y){switch(Y.kind){case 277:return x(Y,!1);case 278:return O(Y,!1);case 281:return q(Y,!1);case 287:return R(Y);default:return e.visitEachChild(Y,S,p)}}function H(Y){switch(Y.kind){case 11:return P(Y);case 287:return R(Y);case 277:return x(Y,!0);case 278:return O(Y,!0);case 281:return q(Y,!0);default:return e.Debug.failBadSyntaxKind(Y)}}function I(Y){for(var U=!1,K=0,Te=Y.attributes.properties;K<Te.length;K++){var ge=Te[K];if(e.isJsxSpreadAttribute(ge))U=!0;else if(U&&e.isJsxAttribute(ge)&&ge.name.escapedText==="key")return!0}return!1}function w(Y){return h.importSpecifier===void 0||I(Y)}function x(Y,U){var K=w(Y.openingElement)?V:F;return K(Y.openingElement,Y.children,U,Y)}function O(Y,U){var K=w(Y)?V:F;return K(Y,void 0,U,Y)}function q(Y,U){var K=h.importSpecifier===void 0?T:re;return K(Y.openingFragment,Y.children,U,Y)}function Z(Y){var U=ne(Y);return U&&a.createObjectLiteralExpression([U])}function ne(Y){var U=e.getSemanticJsxChildren(Y);if(e.length(U)===1&&!U[0].dotDotDotToken){var K=H(U[0]);return K&&a.createPropertyAssignment("children",K)}var Te=e.mapDefined(Y,H);return e.length(Te)?a.createPropertyAssignment("children",a.createArrayLiteralExpression(Te)):void 0}function F(Y,U,K,Te){var ge=Se(Y),ke=U&&U.length?ne(U):void 0,Pe=e.find(Y.attributes.properties,function(he){return!!he.name&&e.isIdentifier(he.name)&&he.name.escapedText==="key"}),Ie=Pe?e.filter(Y.attributes.properties,function(he){return he!==Pe}):Y.attributes.properties,Ge=e.length(Ie)?y(Ie,ke):a.createObjectLiteralExpression(ke?[ke]:e.emptyArray);return Q(ge,Ge,Pe,U||e.emptyArray,K,Te)}function Q(Y,U,K,Te,ge,ke){var Pe,Ie=e.getSemanticJsxChildren(Te),Ge=e.length(Ie)>1||!!(!((Pe=Ie[0])===null||Pe===void 0)&&Pe.dotDotDotToken),he=[Y,U,K?g(K.initializer):a.createVoidZero()];if(k.jsx===5){var ve=e.getOriginalNode(J);if(ve&&e.isSourceFile(ve)){he.push(Ge?a.createTrue():a.createFalse());var Ve=e.getLineAndCharacterOfPosition(ve,ke.pos);he.push(a.createObjectLiteralExpression([a.createPropertyAssignment("fileName",v()),a.createPropertyAssignment("lineNumber",a.createNumericLiteral(Ve.line+1)),a.createPropertyAssignment("columnNumber",a.createNumericLiteral(Ve.character+1))])),he.push(a.createThis())}}var _e=e.setTextRange(a.createCallExpression(z(Ge),void 0,he),ke);return ge&&e.startOnNewLine(_e),_e}function V(Y,U,K,Te){var ge=Se(Y),ke=Y.attributes.properties,Pe=e.length(ke)?y(ke):a.createNull(),Ie=h.importSpecifier===void 0?e.createJsxFactoryExpression(a,p.getEmitResolver().getJsxFactoryEntity(J),k.reactNamespace,Y):b("createElement"),Ge=e.createExpressionForJsxElement(a,Ie,ge,Pe,e.mapDefined(U,H),Te);return K&&e.startOnNewLine(Ge),Ge}function re(Y,U,K,Te){var ge;if(U&&U.length){var ke=Z(U);ke&&(ge=ke)}return Q(ie(),ge||a.createObjectLiteralExpression([]),void 0,U,K,Te)}function T(Y,U,K,Te){var ge=e.createExpressionForJsxFragment(a,p.getEmitResolver().getJsxFactoryEntity(J),p.getEmitResolver().getJsxFragmentFactoryEntity(J),k.reactNamespace,e.mapDefined(U,H),Y,Te);return K&&e.startOnNewLine(ge),ge}function N(Y){return a.createSpreadAssignment(e.visitNode(Y.expression,S,e.isExpression))}function y(Y,U){var K=e.getEmitScriptTarget(k);return K&&K>=5?a.createObjectLiteralExpression(D(Y,U)):C(Y,U)}function D(Y,U){var K=e.flatten(e.spanMap(Y,e.isJsxSpreadAttribute,function(Te,ge){return e.map(Te,function(ke){return ge?N(ke):u(ke)})}));return U&&K.push(U),K}function C(Y,U){var K=e.flatten(e.spanMap(Y,e.isJsxSpreadAttribute,function(Te,ge){return ge?e.map(Te,m):a.createObjectLiteralExpression(e.map(Te,u))}));return e.isJsxSpreadAttribute(Y[0])&&K.unshift(a.createObjectLiteralExpression()),U&&K.push(a.createObjectLiteralExpression([U])),e.singleOrUndefined(K)||d().createAssignHelper(K)}function m(Y){return e.visitNode(Y.expression,S,e.isExpression)}function u(Y){var U=Ce(Y),K=g(Y.initializer);return a.createPropertyAssignment(U,K)}function g(Y){if(Y===void 0)return a.createTrue();if(Y.kind===10){var U=Y.singleQuote!==void 0?Y.singleQuote:!e.isStringDoubleQuoted(Y,J),K=a.createStringLiteral(j(Y.text)||Y.text,U);return e.setTextRange(K,Y)}else return Y.kind===287?Y.expression===void 0?a.createTrue():e.visitNode(Y.expression,S,e.isExpression):e.Debug.failBadSyntaxKind(Y)}function P(Y){var U=te(Y.text);return U===void 0?void 0:a.createStringLiteral(U)}function te(Y){for(var U,K=0,Te=-1,ge=0;ge<Y.length;ge++){var ke=Y.charCodeAt(ge);e.isLineBreak(ke)?(K!==-1&&Te!==-1&&(U=ue(U,Y.substr(K,Te-K+1))),K=-1):e.isWhiteSpaceSingleLine(ke)||(Te=ge,K===-1&&(K=ge))}return K!==-1?ue(U,Y.substr(K)):U}function ue(Y,U){var K=X(U);return Y===void 0?K:Y+" "+K}function X(Y){return Y.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(U,K,Te,ge,ke,Pe,Ie){if(ke)return e.utf16EncodeAsString(parseInt(ke,10));if(Pe)return e.utf16EncodeAsString(parseInt(Pe,16));var Ge=f.get(Ie);return Ge?e.utf16EncodeAsString(Ge):U})}function j(Y){var U=X(Y);return U===Y?void 0:U}function Se(Y){if(Y.kind===277)return Se(Y.openingElement);var U=Y.tagName;return e.isIdentifier(U)&&e.isIntrinsicJsxName(U.escapedText)?a.createStringLiteral(e.idText(U)):e.createExpressionFromEntityName(a,U)}function Ce(Y){var U=Y.name,K=e.idText(U);return/^[A-Za-z_]\w*$/.test(K)?U:a.createStringLiteral(K)}function R(Y){var U=e.visitNode(Y.expression,S,e.isExpression);return Y.dotDotDotToken?a.createSpreadElement(U):U}}e.transformJsx=n;var f=new e.Map(e.getEntries({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}))}(jr||(jr={})),function(e){function n(f){var p=f.factory,a=f.hoistVariableDeclaration;return e.chainBundle(f,d);function d(A){return A.isDeclarationFile?A:e.visitEachChild(A,k,f)}function k(A){if(!(A.transformFlags&256))return A;switch(A.kind){case 220:return J(A);default:return e.visitEachChild(A,k,f)}}function J(A){switch(A.operatorToken.kind){case 67:return h(A);case 42:return v(A);default:return e.visitEachChild(A,k,f)}}function h(A){var z,ie,b=e.visitNode(A.left,k,e.isExpression),M=e.visitNode(A.right,k,e.isExpression);if(e.isElementAccessExpression(b)){var S=p.createTempVariable(a),B=p.createTempVariable(a);z=e.setTextRange(p.createElementAccessExpression(e.setTextRange(p.createAssignment(S,b.expression),b.expression),e.setTextRange(p.createAssignment(B,b.argumentExpression),b.argumentExpression)),b),ie=e.setTextRange(p.createElementAccessExpression(S,B),b)}else if(e.isPropertyAccessExpression(b)){var S=p.createTempVariable(a);z=e.setTextRange(p.createPropertyAccessExpression(e.setTextRange(p.createAssignment(S,b.expression),b.expression),b.name),b),ie=e.setTextRange(p.createPropertyAccessExpression(S,b.name),b)}else z=b,ie=b;return e.setTextRange(p.createAssignment(z,e.setTextRange(p.createGlobalMethodCall("Math","pow",[ie,M]),A)),A)}function v(A){var z=e.visitNode(A.left,k,e.isExpression),ie=e.visitNode(A.right,k,e.isExpression);return e.setTextRange(p.createGlobalMethodCall("Math","pow",[z,ie]),A)}}e.transformES2016=n}(jr||(jr={})),function(e){var n;(function(v){v[v.CapturedThis=1]="CapturedThis",v[v.BlockScopedBindings=2]="BlockScopedBindings"})(n||(n={}));var f;(function(v){v[v.Body=1]="Body",v[v.Initializer=2]="Initializer"})(f||(f={}));var p;(function(v){v[v.ToOriginal=0]="ToOriginal",v[v.ToOutParameter=1]="ToOutParameter"})(p||(p={}));var a;(function(v){v[v.Break=2]="Break",v[v.Continue=4]="Continue",v[v.Return=8]="Return"})(a||(a={}));var d;(function(v){v[v.None=0]="None",v[v.Function=1]="Function",v[v.ArrowFunction=2]="ArrowFunction",v[v.AsyncFunctionBody=4]="AsyncFunctionBody",v[v.NonStaticClassElement=8]="NonStaticClassElement",v[v.CapturesThis=16]="CapturesThis",v[v.ExportedVariableStatement=32]="ExportedVariableStatement",v[v.TopLevel=64]="TopLevel",v[v.Block=128]="Block",v[v.IterationStatement=256]="IterationStatement",v[v.IterationStatementBlock=512]="IterationStatementBlock",v[v.IterationContainer=1024]="IterationContainer",v[v.ForStatement=2048]="ForStatement",v[v.ForInOrForOfStatement=4096]="ForInOrForOfStatement",v[v.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",v[v.StaticInitializer=16384]="StaticInitializer",v[v.AncestorFactsMask=32767]="AncestorFactsMask",v[v.BlockScopeIncludes=0]="BlockScopeIncludes",v[v.BlockScopeExcludes=7104]="BlockScopeExcludes",v[v.SourceFileIncludes=64]="SourceFileIncludes",v[v.SourceFileExcludes=8064]="SourceFileExcludes",v[v.FunctionIncludes=65]="FunctionIncludes",v[v.FunctionExcludes=32670]="FunctionExcludes",v[v.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",v[v.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",v[v.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",v[v.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",v[v.ConstructorIncludes=73]="ConstructorIncludes",v[v.ConstructorExcludes=32662]="ConstructorExcludes",v[v.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",v[v.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",v[v.ForStatementIncludes=3328]="ForStatementIncludes",v[v.ForStatementExcludes=5056]="ForStatementExcludes",v[v.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",v[v.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",v[v.BlockIncludes=128]="BlockIncludes",v[v.BlockExcludes=6976]="BlockExcludes",v[v.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",v[v.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",v[v.StaticInitializerIncludes=16449]="StaticInitializerIncludes",v[v.StaticInitializerExcludes=32670]="StaticInitializerExcludes",v[v.NewTarget=32768]="NewTarget",v[v.CapturedLexicalThis=65536]="CapturedLexicalThis",v[v.SubtreeFactsMask=-32768]="SubtreeFactsMask",v[v.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",v[v.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes"})(d||(d={}));var k;(function(v){v[v.None=0]="None",v[v.UnpackedSpread=1]="UnpackedSpread",v[v.PackedSpread=2]="PackedSpread"})(k||(k={}));function J(v,A){return{kind:v,expression:A}}function h(v){var A=v.factory,z=v.getEmitHelperFactory,ie=v.startLexicalEnvironment,b=v.resumeLexicalEnvironment,M=v.endLexicalEnvironment,S=v.hoistVariableDeclaration,B=v.getCompilerOptions(),H=v.getEmitResolver(),I=v.onSubstituteNode,w=v.onEmitNode;v.onEmitNode=hi,v.onSubstituteNode=Po;var x,O,q,Z;function ne(Oe){Z=e.append(Z,A.createVariableDeclaration(Oe))}var F,Q;return e.chainBundle(v,V);function V(Oe){if(Oe.isDeclarationFile)return Oe;x=Oe,O=Oe.text;var oe=te(Oe);return e.addEmitHelpers(oe,v.readEmitHelpers()),x=void 0,O=void 0,Z=void 0,q=0,oe}function re(Oe,oe){var mr=q;return q=(q&~Oe|oe)&32767,mr}function T(Oe,oe,mr){q=(q&~oe|mr)&-32768|Oe}function N(Oe){return(q&8192)!==0&&Oe.kind===246&&!Oe.expression}function y(Oe){return Oe.transformFlags&2097152&&(e.isReturnStatement(Oe)||e.isIfStatement(Oe)||e.isWithStatement(Oe)||e.isSwitchStatement(Oe)||e.isCaseBlock(Oe)||e.isCaseClause(Oe)||e.isDefaultClause(Oe)||e.isTryStatement(Oe)||e.isCatchClause(Oe)||e.isLabeledStatement(Oe)||e.isIterationStatement(Oe,!1)||e.isBlock(Oe))}function D(Oe){return(Oe.transformFlags&512)!==0||F!==void 0||q&8192&&y(Oe)||e.isIterationStatement(Oe,!1)&&Vr(Oe)||(e.getEmitFlags(Oe)&33554432)!==0}function C(Oe){return D(Oe)?P(Oe,!1):Oe}function m(Oe){return D(Oe)?P(Oe,!0):Oe}function u(Oe){if(D(Oe)){var oe=e.getOriginalNode(Oe);if(e.isPropertyDeclaration(oe)&&e.hasStaticModifier(oe)){var mr=re(32670,16449),se=P(Oe,!1);return T(mr,98304,0),se}return P(Oe,!1)}return Oe}function g(Oe){return Oe.kind===106?co(!0):C(Oe)}function P(Oe,oe){switch(Oe.kind){case 124:return;case 256:return K(Oe);case 225:return Te(Oe);case 163:return qe(Oe);case 255:return $e(Oe);case 213:return de(Oe);case 212:return Fe(Oe);case 253:return In(Oe);case 79:return Y(Oe);case 254:return tt(Oe);case 248:return ue(Oe);case 262:return X(Oe);case 234:return He(Oe,!1);case 245:case 244:return U(Oe);case 249:return Or(Oe);case 239:case 240:return or(Oe,void 0);case 241:return fe(Oe,void 0);case 242:return Ee(Oe,void 0);case 243:return We(Oe,void 0);case 237:return pr(Oe);case 204:return Cr(Oe);case 291:return pt(Oe);case 295:return rt(Oe);case 161:return Cn(Oe);case 203:return Ra(Oe);case 207:return Ci(Oe);case 208:return ro(Oe);case 211:return Jr(Oe,oe);case 220:return ze(Oe,oe);case 349:return Lr(Oe,oe);case 14:case 15:case 16:case 17:return No(Oe);case 10:return lo(Oe);case 8:return Lo(Oe);case 209:return Ha(Oe);case 222:return Yo(Oe);case 223:return Qn(Oe);case 224:return to(Oe);case 106:return co(!1);case 108:return Ce(Oe);case 230:return za(Oe);case 168:return Mt(Oe);case 171:case 172:return It(Oe);case 236:return lt(Oe);case 246:return Se(Oe);case 216:return R(Oe);default:return e.visitEachChild(Oe,C,v)}}function te(Oe){var oe=re(8064,64),mr=[],se=[];ie();var Be=A.copyPrologue(Oe.statements,mr,!1,C);return e.addRange(se,e.visitNodes(Oe.statements,C,e.isStatement,Be)),Z&&se.push(A.createVariableStatement(void 0,A.createVariableDeclarationList(Z))),A.mergeLexicalEnvironment(mr,M()),lr(mr,Oe),T(oe,0,0),A.updateSourceFile(Oe,e.setTextRange(A.createNodeArray(e.concatenate(mr,se)),Oe.statements))}function ue(Oe){if(F!==void 0){var oe=F.allowedNonLabeledJumps;F.allowedNonLabeledJumps|=2;var mr=e.visitEachChild(Oe,C,v);return F.allowedNonLabeledJumps=oe,mr}return e.visitEachChild(Oe,C,v)}function X(Oe){var oe=re(7104,0),mr=e.visitEachChild(Oe,C,v);return T(oe,0,0),mr}function j(Oe){return e.setOriginalNode(A.createReturnStatement(A.createUniqueName("_this",48)),Oe)}function Se(Oe){return F?(F.nonLocalJumps|=8,N(Oe)&&(Oe=j(Oe)),A.createReturnStatement(A.createObjectLiteralExpression([A.createPropertyAssignment(A.createIdentifier("value"),Oe.expression?e.visitNode(Oe.expression,C,e.isExpression):A.createVoidZero())]))):N(Oe)?j(Oe):e.visitEachChild(Oe,C,v)}function Ce(Oe){return q&2&&!(q&16384)&&(q|=65536),F?q&2?(F.containsLexicalThis=!0,Oe):F.thisName||(F.thisName=A.createUniqueName("this")):Oe}function R(Oe){return e.visitEachChild(Oe,m,v)}function Y(Oe){return F&&H.isArgumentsLocalBinding(Oe)?F.argumentsName||(F.argumentsName=A.createUniqueName("arguments")):Oe}function U(Oe){if(F){var oe=Oe.kind===245?2:4,mr=Oe.label&&F.labels&&F.labels.get(e.idText(Oe.label))||!Oe.label&&F.allowedNonLabeledJumps&oe;if(!mr){var se=void 0,Be=Oe.label;Be?Oe.kind===245?(se="break-".concat(Be.escapedText),en(F,!0,e.idText(Be),se)):(se="continue-".concat(Be.escapedText),en(F,!1,e.idText(Be),se)):Oe.kind===245?(F.nonLocalJumps|=2,se="break"):(F.nonLocalJumps|=4,se="continue");var er=A.createStringLiteral(se);if(F.loopOutParameters.length){for(var vr=F.loopOutParameters,qr=void 0,Dt=0;Dt<vr.length;Dt++){var Jt=ba(vr[Dt],1);Dt===0?qr=Jt:qr=A.createBinaryExpression(qr,27,Jt)}er=A.createBinaryExpression(qr,27,er)}return A.createReturnStatement(er)}}return e.visitEachChild(Oe,C,v)}function K(Oe){var oe=A.createVariableDeclaration(A.getLocalName(Oe,!0),void 0,void 0,ge(Oe));e.setOriginalNode(oe,Oe);var mr=[],se=A.createVariableStatement(void 0,A.createVariableDeclarationList([oe]));if(e.setOriginalNode(se,Oe),e.setTextRange(se,Oe),e.startOnNewLine(se),mr.push(se),e.hasSyntacticModifier(Oe,1)){var Be=e.hasSyntacticModifier(Oe,512)?A.createExportDefault(A.getLocalName(Oe)):A.createExternalModuleExport(A.getLocalName(Oe));e.setOriginalNode(Be,se),mr.push(Be)}var er=e.getEmitFlags(Oe);return er&4194304||(mr.push(A.createEndOfDeclarationMarker(Oe)),e.setEmitFlags(se,er|4194304)),e.singleOrMany(mr)}function Te(Oe){return ge(Oe)}function ge(Oe){Oe.name&&Zi();var oe=e.getClassExtendsHeritageElement(Oe),mr=A.createFunctionExpression(void 0,void 0,void 0,void 0,oe?[A.createParameterDeclaration(void 0,void 0,void 0,A.createUniqueName("_super",48))]:[],void 0,ke(Oe,oe));e.setEmitFlags(mr,e.getEmitFlags(Oe)&65536|524288);var se=A.createPartiallyEmittedExpression(mr);e.setTextRangeEnd(se,Oe.end),e.setEmitFlags(se,1536);var Be=A.createPartiallyEmittedExpression(se);e.setTextRangeEnd(Be,e.skipTrivia(O,Oe.pos)),e.setEmitFlags(Be,1536);var er=A.createParenthesizedExpression(A.createCallExpression(Be,void 0,oe?[e.visitNode(oe.expression,C,e.isExpression)]:[]));return e.addSyntheticLeadingComment(er,3,"* @class "),er}function ke(Oe,oe){var mr=[],se=A.getInternalName(Oe),Be=e.isIdentifierANonContextualKeyword(se)?A.getGeneratedNameForNode(se):se;ie(),Pe(mr,Oe,oe),Ie(mr,Oe,Be,oe),Ke(mr,Oe);var er=e.createTokenRange(e.skipTrivia(O,Oe.members.end),19),vr=A.createPartiallyEmittedExpression(Be);e.setTextRangeEnd(vr,er.end),e.setEmitFlags(vr,1536);var qr=A.createReturnStatement(vr);e.setTextRangePos(qr,er.pos),e.setEmitFlags(qr,1920),mr.push(qr),e.insertStatementsAfterStandardPrologue(mr,M());var Dt=A.createBlock(e.setTextRange(A.createNodeArray(mr),Oe.members),!0);return e.setEmitFlags(Dt,1536),Dt}function Pe(Oe,oe,mr){mr&&Oe.push(e.setTextRange(A.createExpressionStatement(z().createExtendsHelper(A.getInternalName(oe))),mr))}function Ie(Oe,oe,mr,se){var Be=F;F=void 0;var er=re(32662,73),vr=e.getFirstConstructorWithBody(oe),qr=Un(vr,se!==void 0),Dt=A.createFunctionDeclaration(void 0,void 0,void 0,mr,void 0,Ge(vr,qr),void 0,ve(vr,oe,se,qr));e.setTextRange(Dt,vr||oe),se&&e.setEmitFlags(Dt,8),Oe.push(Dt),T(er,98304,0),F=Be}function Ge(Oe,oe){return e.visitParameterList(Oe&&!oe?Oe.parameters:void 0,C,v)||[]}function he(Oe,oe){var mr=[];b(),A.mergeLexicalEnvironment(mr,M()),oe&&mr.push(A.createReturnStatement(Le()));var se=A.createNodeArray(mr);e.setTextRange(se,Oe.members);var Be=A.createBlock(se,!0);return e.setTextRange(Be,Oe),e.setEmitFlags(Be,1536),Be}function ve(Oe,oe,mr,se){var Be=!!mr&&e.skipOuterExpressions(mr.expression).kind!==104;if(!Oe)return he(oe,Be);var er=[],vr=[];b();var qr=0;se||(qr=A.copyStandardPrologue(Oe.body.statements,er,!1)),De(vr,Oe),br(vr,Oe,se),se||(qr=A.copyCustomPrologue(Oe.body.statements,vr,qr,C));var Dt;if(se)Dt=Le();else if(Be&&qr<Oe.body.statements.length){var Jt=Oe.body.statements[qr];e.isExpressionStatement(Jt)&&e.isSuperCall(Jt.expression)&&(Dt=va(Jt.expression))}if(Dt&&(q|=8192,qr++),e.addRange(vr,e.visitNodes(Oe.body.statements,C,e.isStatement,qr)),A.mergeLexicalEnvironment(er,M()),kr(er,Oe,!1),Be)if(Dt&&qr===Oe.body.statements.length&&!(Oe.body.transformFlags&8192)){var Sn=e.cast(e.cast(Dt,e.isBinaryExpression).left,e.isCallExpression),ta=A.createReturnStatement(Dt);e.setCommentRange(ta,e.getCommentRange(Sn)),e.setEmitFlags(Sn,1536),vr.push(ta)}else Ar(vr,Oe,Dt||_e()),Ve(Oe.body)||vr.push(A.createReturnStatement(A.createUniqueName("_this",48)));else lr(er,Oe);var xa=A.createBlock(e.setTextRange(A.createNodeArray(e.concatenate(er,vr)),Oe.body.statements),!0);return e.setTextRange(xa,Oe.body),xa}function Ve(Oe){if(Oe.kind===246)return!0;if(Oe.kind===238){var oe=Oe;if(oe.elseStatement)return Ve(oe.thenStatement)&&Ve(oe.elseStatement)}else if(Oe.kind===234){var mr=e.lastOrUndefined(Oe.statements);if(mr&&Ve(mr))return!0}return!1}function _e(){return e.setEmitFlags(A.createThis(),4)}function Le(){return A.createLogicalOr(A.createLogicalAnd(A.createStrictInequality(A.createUniqueName("_super",48),A.createNull()),A.createFunctionApplyCall(A.createUniqueName("_super",48),_e(),A.createIdentifier("arguments"))),_e())}function qe(Oe){if(!Oe.dotDotDotToken)return e.isBindingPattern(Oe.name)?e.setOriginalNode(e.setTextRange(A.createParameterDeclaration(void 0,void 0,void 0,A.getGeneratedNameForNode(Oe),void 0,void 0,void 0),Oe),Oe):Oe.initializer?e.setOriginalNode(e.setTextRange(A.createParameterDeclaration(void 0,void 0,void 0,Oe.name,void 0,void 0,void 0),Oe),Oe):Oe}function Xe(Oe){return Oe.initializer!==void 0||e.isBindingPattern(Oe.name)}function De(Oe,oe){if(!e.some(oe.parameters,Xe))return!1;for(var mr=!1,se=0,Be=oe.parameters;se<Be.length;se++){var er=Be[se],vr=er.name,qr=er.initializer,Dt=er.dotDotDotToken;Dt||(e.isBindingPattern(vr)?mr=Ae(Oe,er,vr,qr)||mr:qr&&(Ye(Oe,er,vr,qr),mr=!0))}return mr}function Ae(Oe,oe,mr,se){return mr.elements.length>0?(e.insertStatementAfterCustomPrologue(Oe,e.setEmitFlags(A.createVariableStatement(void 0,A.createVariableDeclarationList(e.flattenDestructuringBinding(oe,C,v,0,A.getGeneratedNameForNode(oe)))),1048576)),!0):se?(e.insertStatementAfterCustomPrologue(Oe,e.setEmitFlags(A.createExpressionStatement(A.createAssignment(A.getGeneratedNameForNode(oe),e.visitNode(se,C,e.isExpression))),1048576)),!0):!1}function Ye(Oe,oe,mr,se){se=e.visitNode(se,C,e.isExpression);var Be=A.createIfStatement(A.createTypeCheck(A.cloneNode(mr),"undefined"),e.setEmitFlags(e.setTextRange(A.createBlock([A.createExpressionStatement(e.setEmitFlags(e.setTextRange(A.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(A.cloneNode(mr),mr),mr.parent),48),e.setEmitFlags(se,48|e.getEmitFlags(se)|1536)),oe),1536))]),oe),1953));e.startOnNewLine(Be),e.setTextRange(Be,oe),e.setEmitFlags(Be,1050528),e.insertStatementAfterCustomPrologue(Oe,Be)}function Dr(Oe,oe){return!!(Oe&&Oe.dotDotDotToken&&!oe)}function br(Oe,oe,mr){var se=[],Be=e.lastOrUndefined(oe.parameters);if(!Dr(Be,mr))return!1;var er=Be.name.kind===79?e.setParent(e.setTextRange(A.cloneNode(Be.name),Be.name),Be.name.parent):A.createTempVariable(void 0);e.setEmitFlags(er,48);var vr=Be.name.kind===79?A.cloneNode(Be.name):er,qr=oe.parameters.length-1,Dt=A.createLoopVariable();se.push(e.setEmitFlags(e.setTextRange(A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(er,void 0,void 0,A.createArrayLiteralExpression([]))])),Be),1048576));var Jt=A.createForStatement(e.setTextRange(A.createVariableDeclarationList([A.createVariableDeclaration(Dt,void 0,void 0,A.createNumericLiteral(qr))]),Be),e.setTextRange(A.createLessThan(Dt,A.createPropertyAccessExpression(A.createIdentifier("arguments"),"length")),Be),e.setTextRange(A.createPostfixIncrement(Dt),Be),A.createBlock([e.startOnNewLine(e.setTextRange(A.createExpressionStatement(A.createAssignment(A.createElementAccessExpression(vr,qr===0?Dt:A.createSubtract(Dt,A.createNumericLiteral(qr))),A.createElementAccessExpression(A.createIdentifier("arguments"),Dt))),Be))]));return e.setEmitFlags(Jt,1048576),e.startOnNewLine(Jt),se.push(Jt),Be.name.kind!==79&&se.push(e.setEmitFlags(e.setTextRange(A.createVariableStatement(void 0,A.createVariableDeclarationList(e.flattenDestructuringBinding(Be,C,v,0,vr))),Be),1048576)),e.insertStatementsAfterCustomPrologue(Oe,se),!0}function lr(Oe,oe){return q&65536&&oe.kind!==213?(Ar(Oe,oe,A.createThis()),!0):!1}function Ar(Oe,oe,mr){Mo();var se=A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(A.createUniqueName("_this",48),void 0,void 0,mr)]));e.setEmitFlags(se,1050112),e.setSourceMapRange(se,oe),e.insertStatementAfterCustomPrologue(Oe,se)}function kr(Oe,oe,mr){if(q&32768){var se=void 0;switch(oe.kind){case 213:return Oe;case 168:case 171:case 172:se=A.createVoidZero();break;case 170:se=A.createPropertyAccessExpression(e.setEmitFlags(A.createThis(),4),"constructor");break;case 255:case 212:se=A.createConditionalExpression(A.createLogicalAnd(e.setEmitFlags(A.createThis(),4),A.createBinaryExpression(e.setEmitFlags(A.createThis(),4),102,A.getLocalName(oe))),void 0,A.createPropertyAccessExpression(e.setEmitFlags(A.createThis(),4),"constructor"),void 0,A.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(oe)}var Be=A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(A.createUniqueName("_newTarget",48),void 0,void 0,se)]));e.setEmitFlags(Be,1050112),mr&&(Oe=Oe.slice()),e.insertStatementAfterCustomPrologue(Oe,Be)}return Oe}function Ke(Oe,oe){for(var mr=0,se=oe.members;mr<se.length;mr++){var Be=se[mr];switch(Be.kind){case 233:Oe.push(Me(Be));break;case 168:Oe.push(Hr(tn(oe,Be),Be,oe));break;case 171:case 172:var er=e.getAllAccessorDeclarations(oe.members,Be);Be===er.firstAccessor&&Oe.push(ur(tn(oe,Be),er,oe));break;case 170:case 169:break;default:e.Debug.failBadSyntaxKind(Be,x&&x.fileName);break}}}function Me(Oe){return e.setTextRange(A.createEmptyStatement(),Oe)}function Hr(Oe,oe,mr){var se=e.getCommentRange(oe),Be=e.getSourceMapRange(oe),er=Sr(oe,oe,void 0,mr),vr=e.visitNode(oe.name,C,e.isPropertyName),qr;if(!e.isPrivateIdentifier(vr)&&e.getUseDefineForClassFields(v.getCompilerOptions())){var Dt=e.isComputedPropertyName(vr)?vr.expression:e.isIdentifier(vr)?A.createStringLiteral(e.unescapeLeadingUnderscores(vr.escapedText)):vr;qr=A.createObjectDefinePropertyCall(Oe,Dt,A.createPropertyDescriptor({value:er,enumerable:!1,writable:!0,configurable:!0}))}else{var Jt=e.createMemberAccessForPropertyName(A,Oe,vr,oe.name);qr=A.createAssignment(Jt,er)}e.setEmitFlags(er,1536),e.setSourceMapRange(er,Be);var Sn=e.setTextRange(A.createExpressionStatement(qr),oe);return e.setOriginalNode(Sn,oe),e.setCommentRange(Sn,se),e.setEmitFlags(Sn,48),Sn}function ur(Oe,oe,mr){var se=A.createExpressionStatement(gr(Oe,oe,mr,!1));return e.setEmitFlags(se,1536),e.setSourceMapRange(se,e.getSourceMapRange(oe.firstAccessor)),se}function gr(Oe,oe,mr,se){var Be=oe.firstAccessor,er=oe.getAccessor,vr=oe.setAccessor,qr=e.setParent(e.setTextRange(A.cloneNode(Oe),Oe),Oe.parent);e.setEmitFlags(qr,1568),e.setSourceMapRange(qr,Be.name);var Dt=e.visitNode(Be.name,C,e.isPropertyName);if(e.isPrivateIdentifier(Dt))return e.Debug.failBadSyntaxKind(Dt,"Encountered unhandled private identifier while transforming ES2015.");var Jt=e.createExpressionForPropertyName(A,Dt);e.setEmitFlags(Jt,1552),e.setSourceMapRange(Jt,Be.name);var Sn=[];if(er){var ta=Sr(er,void 0,void 0,mr);e.setSourceMapRange(ta,e.getSourceMapRange(er)),e.setEmitFlags(ta,512);var xa=A.createPropertyAssignment("get",ta);e.setCommentRange(xa,e.getCommentRange(er)),Sn.push(xa)}if(vr){var Di=Sr(vr,void 0,void 0,mr);e.setSourceMapRange(Di,e.getSourceMapRange(vr)),e.setEmitFlags(Di,512);var $a=A.createPropertyAssignment("set",Di);e.setCommentRange($a,e.getCommentRange(vr)),Sn.push($a)}Sn.push(A.createPropertyAssignment("enumerable",er||vr?A.createFalse():A.createTrue()),A.createPropertyAssignment("configurable",A.createTrue()));var Ji=A.createCallExpression(A.createPropertyAccessExpression(A.createIdentifier("Object"),"defineProperty"),void 0,[qr,Jt,A.createObjectLiteralExpression(Sn,!0)]);return se&&e.startOnNewLine(Ji),Ji}function de(Oe){Oe.transformFlags&8192&&!(q&16384)&&(q|=65536);var oe=F;F=void 0;var mr=re(15232,66),se=A.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(Oe.parameters,C,v),void 0,Pr(Oe));return e.setTextRange(se,Oe),e.setOriginalNode(se,Oe),e.setEmitFlags(se,8),T(mr,0,0),F=oe,se}function Fe(Oe){var oe=e.getEmitFlags(Oe)&262144?re(32662,69):re(32670,65),mr=F;F=void 0;var se=e.visitParameterList(Oe.parameters,C,v),Be=Pr(Oe),er=q&32768?A.getLocalName(Oe):Oe.name;return T(oe,98304,0),F=mr,A.updateFunctionExpression(Oe,void 0,Oe.asteriskToken,er,void 0,se,void 0,Be)}function $e(Oe){var oe=F;F=void 0;var mr=re(32670,65),se=e.visitParameterList(Oe.parameters,C,v),Be=Pr(Oe),er=q&32768?A.getLocalName(Oe):Oe.name;return T(mr,98304,0),F=oe,A.updateFunctionDeclaration(Oe,void 0,e.visitNodes(Oe.modifiers,C,e.isModifier),Oe.asteriskToken,er,void 0,se,void 0,Be)}function Sr(Oe,oe,mr,se){var Be=F;F=void 0;var er=se&&e.isClassLike(se)&&!e.isStatic(Oe)?re(32670,73):re(32670,65),vr=e.visitParameterList(Oe.parameters,C,v),qr=Pr(Oe);return q&32768&&!mr&&(Oe.kind===255||Oe.kind===212)&&(mr=A.getGeneratedNameForNode(Oe)),T(er,98304,0),F=Be,e.setOriginalNode(e.setTextRange(A.createFunctionExpression(void 0,Oe.asteriskToken,mr,void 0,vr,void 0,qr),oe),Oe)}function Pr(Oe){var oe=!1,mr=!1,se,Be,er=[],vr=[],qr=Oe.body,Dt;if(b(),e.isBlock(qr)&&(Dt=A.copyStandardPrologue(qr.statements,er,!1),Dt=A.copyCustomPrologue(qr.statements,vr,Dt,C,e.isHoistedFunction),Dt=A.copyCustomPrologue(qr.statements,vr,Dt,C,e.isHoistedVariableStatement)),oe=De(vr,Oe)||oe,oe=br(vr,Oe,!1)||oe,e.isBlock(qr))Dt=A.copyCustomPrologue(qr.statements,vr,Dt,C),se=qr.statements,e.addRange(vr,e.visitNodes(qr.statements,C,e.isStatement,Dt)),!oe&&qr.multiLine&&(oe=!0);else{e.Debug.assert(Oe.kind===213),se=e.moveRangeEnd(qr,-1);var Jt=Oe.equalsGreaterThanToken;!e.nodeIsSynthesized(Jt)&&!e.nodeIsSynthesized(qr)&&(e.rangeEndIsOnSameLineAsRangeStart(Jt,qr,x)?mr=!0:oe=!0);var Sn=e.visitNode(qr,C,e.isExpression),ta=A.createReturnStatement(Sn);e.setTextRange(ta,qr),e.moveSyntheticComments(ta,qr),e.setEmitFlags(ta,1440),vr.push(ta),Be=qr}if(A.mergeLexicalEnvironment(er,M()),kr(er,Oe,!1),lr(er,Oe),e.some(er)&&(oe=!0),vr.unshift.apply(vr,er),e.isBlock(qr)&&e.arrayIsEqualTo(vr,qr.statements))return qr;var xa=A.createBlock(e.setTextRange(A.createNodeArray(vr),se),oe);return e.setTextRange(xa,Oe.body),!oe&&mr&&e.setEmitFlags(xa,1),Be&&e.setTokenSourceMapRange(xa,19,Be),e.setOriginalNode(xa,Oe.body),xa}function He(Oe,oe){if(oe)return e.visitEachChild(Oe,C,v);var mr=q&256?re(7104,512):re(6976,128),se=e.visitEachChild(Oe,C,v);return T(mr,0,0),se}function pr(Oe){return e.visitEachChild(Oe,m,v)}function Jr(Oe,oe){return e.visitEachChild(Oe,oe?m:C,v)}function ze(Oe,oe){return e.isDestructuringAssignment(Oe)?e.flattenDestructuringAssignment(Oe,C,v,0,!oe):Oe.operatorToken.kind===27?A.updateBinaryExpression(Oe,e.visitNode(Oe.left,m,e.isExpression),Oe.operatorToken,e.visitNode(Oe.right,oe?m:C,e.isExpression)):e.visitEachChild(Oe,C,v)}function Lr(Oe,oe){if(oe)return e.visitEachChild(Oe,m,v);for(var mr,se=0;se<Oe.elements.length;se++){var Be=Oe.elements[se],er=e.visitNode(Be,se<Oe.elements.length-1?m:C,e.isExpression);(mr||er!==Be)&&(mr||(mr=Oe.elements.slice(0,se)),mr.push(er))}var vr=mr?e.setTextRange(A.createNodeArray(mr),Oe.elements):Oe.elements;return A.updateCommaListExpression(Oe,vr)}function Yr(Oe){return Oe.declarationList.declarations.length===1&&!!Oe.declarationList.declarations[0].initializer&&!!(e.getEmitFlags(Oe.declarationList.declarations[0].initializer)&33554432)}function lt(Oe){var oe=re(0,e.hasSyntacticModifier(Oe,1)?32:0),mr;if(F&&!(Oe.declarationList.flags&3)&&!Yr(Oe)){for(var se=void 0,Be=0,er=Oe.declarationList.declarations;Be<er.length;Be++){var vr=er[Be];if(xr(F,vr),vr.initializer){var qr=void 0;e.isBindingPattern(vr.name)?qr=e.flattenDestructuringAssignment(vr,C,v,0):(qr=A.createBinaryExpression(vr.name,63,e.visitNode(vr.initializer,C,e.isExpression)),e.setTextRange(qr,vr)),se=e.append(se,qr)}}se?mr=e.setTextRange(A.createExpressionStatement(A.inlineExpressions(se)),Oe):mr=void 0}else mr=e.visitEachChild(Oe,C,v);return T(oe,0,0),mr}function tt(Oe){if(Oe.flags&3||Oe.transformFlags&262144){Oe.flags&3&&Zi();var oe=e.flatMap(Oe.declarations,Oe.flags&1?bn:In),mr=A.createVariableDeclarationList(oe);return e.setOriginalNode(mr,Oe),e.setTextRange(mr,Oe),e.setCommentRange(mr,Oe),Oe.transformFlags&262144&&(e.isBindingPattern(Oe.declarations[0].name)||e.isBindingPattern(e.last(Oe.declarations).name))&&e.setSourceMapRange(mr,Rt(oe)),mr}return e.visitEachChild(Oe,C,v)}function Rt(Oe){for(var oe=-1,mr=-1,se=0,Be=Oe;se<Be.length;se++){var er=Be[se];oe=oe===-1?er.pos:er.pos===-1?oe:Math.min(oe,er.pos),mr=Math.max(mr,er.end)}return e.createRange(oe,mr)}function cn(Oe){var oe=H.getNodeCheckFlags(Oe),mr=oe&262144,se=oe&524288,Be=(q&64)!==0||mr&&se&&(q&512)!==0,er=!Be&&(q&4096)===0&&(!H.isDeclarationWithCollidingName(Oe)||se&&!mr&&(q&6144)===0);return er}function bn(Oe){var oe=Oe.name;return e.isBindingPattern(oe)?In(Oe):!Oe.initializer&&cn(Oe)?A.updateVariableDeclaration(Oe,Oe.name,void 0,void 0,A.createVoidZero()):e.visitEachChild(Oe,C,v)}function In(Oe){var oe=re(32,0),mr;return e.isBindingPattern(Oe.name)?mr=e.flattenDestructuringBinding(Oe,C,v,0,void 0,(oe&32)!==0):mr=e.visitEachChild(Oe,C,v),T(oe,0,0),mr}function zn(Oe){F.labels.set(e.idText(Oe.label),!0)}function ir(Oe){F.labels.set(e.idText(Oe.label),!1)}function Or(Oe){F&&!F.labels&&(F.labels=new e.Map);var oe=e.unwrapInnermostStatementOfLabel(Oe,F&&zn);return e.isIterationStatement(oe,!1)?sr(oe,Oe):A.restoreEnclosingLabel(e.visitNode(oe,C,e.isStatement,A.liftToBlock),Oe,F&&ir)}function sr(Oe,oe){switch(Oe.kind){case 239:case 240:return or(Oe,oe);case 241:return fe(Oe,oe);case 242:return Ee(Oe,oe);case 243:return We(Oe,oe)}}function ye(Oe,oe,mr,se,Be){var er=re(Oe,oe),vr=Nr(mr,se,er,Be);return T(er,0,0),vr}function or(Oe,oe){return ye(0,1280,Oe,oe)}function fe(Oe,oe){return ye(5056,3328,Oe,oe)}function je(Oe){return A.updateForStatement(Oe,e.visitNode(Oe.initializer,m,e.isForInitializer),e.visitNode(Oe.condition,C,e.isExpression),e.visitNode(Oe.incrementor,m,e.isExpression),e.visitNode(Oe.statement,C,e.isStatement,A.liftToBlock))}function Ee(Oe,oe){return ye(3008,5376,Oe,oe)}function We(Oe,oe){return ye(3008,5376,Oe,oe,B.downlevelIteration?Ze:me)}function $(Oe,oe,mr){var se=[],Be=Oe.initializer;if(e.isVariableDeclarationList(Be)){Oe.initializer.flags&3&&Zi();var er=e.firstOrUndefined(Be.declarations);if(er&&e.isBindingPattern(er.name)){var vr=e.flattenDestructuringBinding(er,C,v,0,oe),qr=e.setTextRange(A.createVariableDeclarationList(vr),Oe.initializer);e.setOriginalNode(qr,Oe.initializer),e.setSourceMapRange(qr,e.createRange(vr[0].pos,e.last(vr).end)),se.push(A.createVariableStatement(void 0,qr))}else se.push(e.setTextRange(A.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(A.createVariableDeclarationList([A.createVariableDeclaration(er?er.name:A.createTempVariable(void 0),void 0,void 0,oe)]),e.moveRangePos(Be,-1)),Be)),e.moveRangeEnd(Be,-1)))}else{var Dt=A.createAssignment(Be,oe);e.isDestructuringAssignment(Dt)?se.push(A.createExpressionStatement(ze(Dt,!0))):(e.setTextRangeEnd(Dt,Be.end),se.push(e.setTextRange(A.createExpressionStatement(e.visitNode(Dt,C,e.isExpression)),e.moveRangeEnd(Be,-1))))}if(mr)return Ne(e.addRange(se,mr));var Jt=e.visitNode(Oe.statement,C,e.isStatement,A.liftToBlock);return e.isBlock(Jt)?A.updateBlock(Jt,e.setTextRange(A.createNodeArray(e.concatenate(se,Jt.statements)),Jt.statements)):(se.push(Jt),Ne(se))}function Ne(Oe){return e.setEmitFlags(A.createBlock(A.createNodeArray(Oe),!0),432)}function me(Oe,oe,mr){var se=e.visitNode(Oe.expression,C,e.isExpression),Be=A.createLoopVariable(),er=e.isIdentifier(se)?A.getGeneratedNameForNode(se):A.createTempVariable(void 0);e.setEmitFlags(se,48|e.getEmitFlags(se));var vr=e.setTextRange(A.createForStatement(e.setEmitFlags(e.setTextRange(A.createVariableDeclarationList([e.setTextRange(A.createVariableDeclaration(Be,void 0,void 0,A.createNumericLiteral(0)),e.moveRangePos(Oe.expression,-1)),e.setTextRange(A.createVariableDeclaration(er,void 0,void 0,se),Oe.expression)]),Oe.expression),2097152),e.setTextRange(A.createLessThan(Be,A.createPropertyAccessExpression(er,"length")),Oe.expression),e.setTextRange(A.createPostfixIncrement(Be),Oe.expression),$(Oe,A.createElementAccessExpression(er,Be),mr)),Oe);return e.setEmitFlags(vr,256),e.setTextRange(vr,Oe),A.restoreEnclosingLabel(vr,oe,F&&ir)}function Ze(Oe,oe,mr,se){var Be=e.visitNode(Oe.expression,C,e.isExpression),er=e.isIdentifier(Be)?A.getGeneratedNameForNode(Be):A.createTempVariable(void 0),vr=e.isIdentifier(Be)?A.getGeneratedNameForNode(er):A.createTempVariable(void 0),qr=A.createUniqueName("e"),Dt=A.getGeneratedNameForNode(qr),Jt=A.createTempVariable(void 0),Sn=e.setTextRange(z().createValuesHelper(Be),Oe.expression),ta=A.createCallExpression(A.createPropertyAccessExpression(er,"next"),void 0,[]);S(qr),S(Jt);var xa=se&1024?A.inlineExpressions([A.createAssignment(qr,A.createVoidZero()),Sn]):Sn,Di=e.setEmitFlags(e.setTextRange(A.createForStatement(e.setEmitFlags(e.setTextRange(A.createVariableDeclarationList([e.setTextRange(A.createVariableDeclaration(er,void 0,void 0,xa),Oe.expression),A.createVariableDeclaration(vr,void 0,void 0,ta)]),Oe.expression),2097152),A.createLogicalNot(A.createPropertyAccessExpression(vr,"done")),A.createAssignment(vr,ta),$(Oe,A.createPropertyAccessExpression(vr,"value"),mr)),Oe),256);return A.createTryStatement(A.createBlock([A.restoreEnclosingLabel(Di,oe,F&&ir)]),A.createCatchClause(A.createVariableDeclaration(Dt),e.setEmitFlags(A.createBlock([A.createExpressionStatement(A.createAssignment(qr,A.createObjectLiteralExpression([A.createPropertyAssignment("error",Dt)])))]),1)),A.createBlock([A.createTryStatement(A.createBlock([e.setEmitFlags(A.createIfStatement(A.createLogicalAnd(A.createLogicalAnd(vr,A.createLogicalNot(A.createPropertyAccessExpression(vr,"done"))),A.createAssignment(Jt,A.createPropertyAccessExpression(er,"return"))),A.createExpressionStatement(A.createFunctionCallCall(Jt,er,[]))),1)]),void 0,e.setEmitFlags(A.createBlock([e.setEmitFlags(A.createIfStatement(qr,A.createThrowStatement(A.createPropertyAccessExpression(qr,"error"))),1)]),1))]))}function Cr(Oe){for(var oe=Oe.properties,mr=-1,se=!1,Be=0;Be<oe.length;Be++){var er=oe[Be];if(er.transformFlags&524288&&q&4||(se=e.Debug.checkDefined(er.name).kind===161)){mr=Be;break}}if(mr<0)return e.visitEachChild(Oe,C,v);var vr=A.createTempVariable(S),qr=[],Dt=A.createAssignment(vr,e.setEmitFlags(A.createObjectLiteralExpression(e.visitNodes(oe,C,e.isObjectLiteralElementLike,0,mr),Oe.multiLine),se?65536:0));return Oe.multiLine&&e.startOnNewLine(Dt),qr.push(Dt),qt(qr,Oe,vr,mr),qr.push(Oe.multiLine?e.startOnNewLine(e.setParent(e.setTextRange(A.cloneNode(vr),vr),vr.parent)):vr),A.inlineExpressions(qr)}function fr(Oe){return(H.getNodeCheckFlags(Oe)&131072)!==0}function dr(Oe){return e.isForStatement(Oe)&&!!Oe.initializer&&fr(Oe.initializer)}function et(Oe){return e.isForStatement(Oe)&&!!Oe.condition&&fr(Oe.condition)}function yt(Oe){return e.isForStatement(Oe)&&!!Oe.incrementor&&fr(Oe.incrementor)}function Vr(Oe){return tr(Oe)||dr(Oe)}function tr(Oe){return(H.getNodeCheckFlags(Oe)&65536)!==0}function xr(Oe,oe){Oe.hoistedLocalVariables||(Oe.hoistedLocalVariables=[]),mr(oe.name);function mr(se){if(se.kind===79)Oe.hoistedLocalVariables.push(se);else for(var Be=0,er=se.elements;Be<er.length;Be++){var vr=er[Be];e.isOmittedExpression(vr)||mr(vr.name)}}}function Nr(Oe,oe,mr,se){if(!Vr(Oe)){var Be=void 0;F&&(Be=F.allowedNonLabeledJumps,F.allowedNonLabeledJumps=6);var er=se?se(Oe,oe,void 0,mr):A.restoreEnclosingLabel(e.isForStatement(Oe)?je(Oe):e.visitEachChild(Oe,C,v),oe,F&&ir);return F&&(F.allowedNonLabeledJumps=Be),er}var vr=wt(Oe),qr=[],Dt=F;F=vr;var Jt=dr(Oe)?rn(Oe,vr):void 0,Sn=tr(Oe)?sa(Oe,vr,Dt):void 0;F=Dt,Jt&&qr.push(Jt.functionDeclaration),Sn&&qr.push(Sn.functionDeclaration),Qt(qr,vr,Dt),Jt&&qr.push(na(Jt.functionName,Jt.containsYield));var ta;if(Sn)if(se)ta=se(Oe,oe,Sn.part,mr);else{var xa=zr(Oe,Jt,A.createBlock(Sn.part,!0));ta=A.restoreEnclosingLabel(xa,oe,F&&ir)}else{var Di=zr(Oe,Jt,e.visitNode(Oe.statement,C,e.isStatement,A.liftToBlock));ta=A.restoreEnclosingLabel(Di,oe,F&&ir)}return qr.push(ta),qr}function zr(Oe,oe,mr){switch(Oe.kind){case 241:return gt(Oe,oe,mr);case 242:return ut(Oe,mr);case 243:return vt(Oe,mr);case 239:return ht(Oe,mr);case 240:return xt(Oe,mr);default:return e.Debug.failBadSyntaxKind(Oe,"IterationStatement expected")}}function gt(Oe,oe,mr){var se=Oe.condition&&fr(Oe.condition),Be=se||Oe.incrementor&&fr(Oe.incrementor);return A.updateForStatement(Oe,e.visitNode(oe?oe.part:Oe.initializer,m,e.isForInitializer),e.visitNode(se?void 0:Oe.condition,C,e.isExpression),e.visitNode(Be?void 0:Oe.incrementor,m,e.isExpression),mr)}function vt(Oe,oe){return A.updateForOfStatement(Oe,void 0,e.visitNode(Oe.initializer,C,e.isForInitializer),e.visitNode(Oe.expression,C,e.isExpression),oe)}function ut(Oe,oe){return A.updateForInStatement(Oe,e.visitNode(Oe.initializer,C,e.isForInitializer),e.visitNode(Oe.expression,C,e.isExpression),oe)}function ht(Oe,oe){return A.updateDoStatement(Oe,oe,e.visitNode(Oe.expression,C,e.isExpression))}function xt(Oe,oe){return A.updateWhileStatement(Oe,e.visitNode(Oe.expression,C,e.isExpression),oe)}function wt(Oe){var oe;switch(Oe.kind){case 241:case 242:case 243:var mr=Oe.initializer;mr&&mr.kind===254&&(oe=mr);break}var se=[],Be=[];if(oe&&e.getCombinedNodeFlags(oe)&3)for(var er=dr(Oe),vr=0,qr=oe.declarations;vr<qr.length;vr++){var Dt=qr[vr];Ut(Oe,Dt,se,Be,er)}var Jt={loopParameters:se,loopOutParameters:Be};return F&&(F.argumentsName&&(Jt.argumentsName=F.argumentsName),F.thisName&&(Jt.thisName=F.thisName),F.hoistedLocalVariables&&(Jt.hoistedLocalVariables=F.hoistedLocalVariables)),Jt}function Qt(Oe,oe,mr){var se;if(oe.argumentsName&&(mr?mr.argumentsName=oe.argumentsName:(se||(se=[])).push(A.createVariableDeclaration(oe.argumentsName,void 0,void 0,A.createIdentifier("arguments")))),oe.thisName&&(mr?mr.thisName=oe.thisName:(se||(se=[])).push(A.createVariableDeclaration(oe.thisName,void 0,void 0,A.createIdentifier("this")))),oe.hoistedLocalVariables)if(mr)mr.hoistedLocalVariables=oe.hoistedLocalVariables;else{se||(se=[]);for(var Be=0,er=oe.hoistedLocalVariables;Be<er.length;Be++){var vr=er[Be];se.push(A.createVariableDeclaration(vr))}}if(oe.loopOutParameters.length){se||(se=[]);for(var qr=0,Dt=oe.loopOutParameters;qr<Dt.length;qr++){var Jt=Dt[qr];se.push(A.createVariableDeclaration(Jt.outParamName))}}oe.conditionVariable&&(se||(se=[]),se.push(A.createVariableDeclaration(oe.conditionVariable,void 0,void 0,A.createFalse()))),se&&Oe.push(A.createVariableStatement(void 0,A.createVariableDeclarationList(se)))}function mt(Oe){return A.createVariableDeclaration(Oe.originalName,void 0,void 0,Oe.outParamName)}function rn(Oe,oe){var mr=A.createUniqueName("_loop_init"),se=(Oe.initializer.transformFlags&524288)!==0,Be=0;oe.containsLexicalThis&&(Be|=8),se&&q&4&&(Be|=262144);var er=[];er.push(A.createVariableStatement(void 0,Oe.initializer)),Jn(oe.loopOutParameters,2,1,er);var vr=A.createVariableStatement(void 0,e.setEmitFlags(A.createVariableDeclarationList([A.createVariableDeclaration(mr,void 0,void 0,e.setEmitFlags(A.createFunctionExpression(void 0,se?A.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(A.createBlock(er,!0),C,e.isBlock)),Be))]),2097152)),qr=A.createVariableDeclarationList(e.map(oe.loopOutParameters,mt));return{functionName:mr,containsYield:se,functionDeclaration:vr,part:qr}}function sa(Oe,oe,mr){var se=A.createUniqueName("_loop");ie();var Be=e.visitNode(Oe.statement,C,e.isStatement,A.liftToBlock),er=M(),vr=[];(et(Oe)||yt(Oe))&&(oe.conditionVariable=A.createUniqueName("inc"),Oe.incrementor?vr.push(A.createIfStatement(oe.conditionVariable,A.createExpressionStatement(e.visitNode(Oe.incrementor,C,e.isExpression)),A.createExpressionStatement(A.createAssignment(oe.conditionVariable,A.createTrue())))):vr.push(A.createIfStatement(A.createLogicalNot(oe.conditionVariable),A.createExpressionStatement(A.createAssignment(oe.conditionVariable,A.createTrue())))),et(Oe)&&vr.push(A.createIfStatement(A.createPrefixUnaryExpression(53,e.visitNode(Oe.condition,C,e.isExpression)),e.visitNode(A.createBreakStatement(),C,e.isStatement)))),e.isBlock(Be)?e.addRange(vr,Be.statements):vr.push(Be),Jn(oe.loopOutParameters,1,1,vr),e.insertStatementsAfterStandardPrologue(vr,er);var qr=A.createBlock(vr,!0);e.isBlock(Be)&&e.setOriginalNode(qr,Be);var Dt=(Oe.statement.transformFlags&524288)!==0,Jt=524288;oe.containsLexicalThis&&(Jt|=8),Dt&&q&4&&(Jt|=262144);var Sn=A.createVariableStatement(void 0,e.setEmitFlags(A.createVariableDeclarationList([A.createVariableDeclaration(se,void 0,void 0,e.setEmitFlags(A.createFunctionExpression(void 0,Dt?A.createToken(41):void 0,void 0,void 0,oe.loopParameters,void 0,qr),Jt))]),2097152)),ta=Wn(se,oe,mr,Dt);return{functionName:se,containsYield:Dt,functionDeclaration:Sn,part:ta}}function ba(Oe,oe){var mr=oe===0?Oe.outParamName:Oe.originalName,se=oe===0?Oe.originalName:Oe.outParamName;return A.createBinaryExpression(se,63,mr)}function Jn(Oe,oe,mr,se){for(var Be=0,er=Oe;Be<er.length;Be++){var vr=er[Be];vr.flags&oe&&se.push(A.createExpressionStatement(ba(vr,mr)))}}function na(Oe,oe){var mr=A.createCallExpression(Oe,void 0,[]),se=oe?A.createYieldExpression(A.createToken(41),e.setEmitFlags(mr,8388608)):mr;return A.createExpressionStatement(se)}function Wn(Oe,oe,mr,se){var Be=[],er=!(oe.nonLocalJumps&-5)&&!oe.labeledNonLocalBreaks&&!oe.labeledNonLocalContinues,vr=A.createCallExpression(Oe,void 0,e.map(oe.loopParameters,function(xa){return xa.name})),qr=se?A.createYieldExpression(A.createToken(41),e.setEmitFlags(vr,8388608)):vr;if(er)Be.push(A.createExpressionStatement(qr)),Jn(oe.loopOutParameters,1,0,Be);else{var Dt=A.createUniqueName("state"),Jt=A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(Dt,void 0,void 0,qr)]));if(Be.push(Jt),Jn(oe.loopOutParameters,1,0,Be),oe.nonLocalJumps&8){var Sn=void 0;mr?(mr.nonLocalJumps|=8,Sn=A.createReturnStatement(Dt)):Sn=A.createReturnStatement(A.createPropertyAccessExpression(Dt,"value")),Be.push(A.createIfStatement(A.createTypeCheck(Dt,"object"),Sn))}if(oe.nonLocalJumps&2&&Be.push(A.createIfStatement(A.createStrictEquality(Dt,A.createStringLiteral("break")),A.createBreakStatement())),oe.labeledNonLocalBreaks||oe.labeledNonLocalContinues){var ta=[];St(oe.labeledNonLocalBreaks,!0,Dt,mr,ta),St(oe.labeledNonLocalContinues,!1,Dt,mr,ta),Be.push(A.createSwitchStatement(Dt,A.createCaseBlock(ta)))}}return Be}function en(Oe,oe,mr,se){oe?(Oe.labeledNonLocalBreaks||(Oe.labeledNonLocalBreaks=new e.Map),Oe.labeledNonLocalBreaks.set(mr,se)):(Oe.labeledNonLocalContinues||(Oe.labeledNonLocalContinues=new e.Map),Oe.labeledNonLocalContinues.set(mr,se))}function St(Oe,oe,mr,se,Be){Oe&&Oe.forEach(function(er,vr){var qr=[];if(!se||se.labels&&se.labels.get(vr)){var Dt=A.createIdentifier(vr);qr.push(oe?A.createBreakStatement(Dt):A.createContinueStatement(Dt))}else en(se,oe,vr,er),qr.push(A.createReturnStatement(mr));Be.push(A.createCaseClause(A.createStringLiteral(er),qr))})}function Ut(Oe,oe,mr,se,Be){var er=oe.name;if(e.isBindingPattern(er))for(var vr=0,qr=er.elements;vr<qr.length;vr++){var Dt=qr[vr];e.isOmittedExpression(Dt)||Ut(Oe,Dt,mr,se,Be)}else{mr.push(A.createParameterDeclaration(void 0,void 0,void 0,er));var Jt=H.getNodeCheckFlags(oe);if(Jt&4194304||Be){var Sn=A.createUniqueName("out_"+e.idText(er)),ta=0;Jt&4194304&&(ta|=1),e.isForStatement(Oe)&&Oe.initializer&&H.isBindingCapturedByNode(Oe.initializer,oe)&&(ta|=2),se.push({flags:ta,originalName:er,outParamName:Sn})}}}function qt(Oe,oe,mr,se){for(var Be=oe.properties,er=Be.length,vr=se;vr<er;vr++){var qr=Be[vr];switch(qr.kind){case 171:case 172:var Dt=e.getAllAccessorDeclarations(oe.properties,qr);qr===Dt.firstAccessor&&Oe.push(gr(mr,Dt,oe,!!oe.multiLine));break;case 168:Oe.push(oa(qr,mr,oe,oe.multiLine));break;case 294:Oe.push(Mn(qr,mr,oe.multiLine));break;case 295:Oe.push(dn(qr,mr,oe.multiLine));break;default:e.Debug.failBadSyntaxKind(oe);break}}}function Mn(Oe,oe,mr){var se=A.createAssignment(e.createMemberAccessForPropertyName(A,oe,e.visitNode(Oe.name,C,e.isPropertyName)),e.visitNode(Oe.initializer,C,e.isExpression));return e.setTextRange(se,Oe),mr&&e.startOnNewLine(se),se}function dn(Oe,oe,mr){var se=A.createAssignment(e.createMemberAccessForPropertyName(A,oe,e.visitNode(Oe.name,C,e.isPropertyName)),A.cloneNode(Oe.name));return e.setTextRange(se,Oe),mr&&e.startOnNewLine(se),se}function oa(Oe,oe,mr,se){var Be=A.createAssignment(e.createMemberAccessForPropertyName(A,oe,e.visitNode(Oe.name,C,e.isPropertyName)),Sr(Oe,Oe,void 0,mr));return e.setTextRange(Be,Oe),se&&e.startOnNewLine(Be),Be}function pt(Oe){var oe=re(7104,0),mr;if(e.Debug.assert(!!Oe.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(Oe.variableDeclaration.name)){var se=A.createTempVariable(void 0),Be=A.createVariableDeclaration(se);e.setTextRange(Be,Oe.variableDeclaration);var er=e.flattenDestructuringBinding(Oe.variableDeclaration,C,v,0,se),vr=A.createVariableDeclarationList(er);e.setTextRange(vr,Oe.variableDeclaration);var qr=A.createVariableStatement(void 0,vr);mr=A.updateCatchClause(Oe,Be,_t(Oe.block,qr))}else mr=e.visitEachChild(Oe,C,v);return T(oe,0,0),mr}function _t(Oe,oe){var mr=e.visitNodes(Oe.statements,C,e.isStatement);return A.updateBlock(Oe,Gt([oe],mr,!0))}function Mt(Oe){e.Debug.assert(!e.isComputedPropertyName(Oe.name));var oe=Sr(Oe,e.moveRangePos(Oe,-1),void 0,void 0);return e.setEmitFlags(oe,512|e.getEmitFlags(oe)),e.setTextRange(A.createPropertyAssignment(Oe.name,oe),Oe)}function It(Oe){e.Debug.assert(!e.isComputedPropertyName(Oe.name));var oe=F;F=void 0;var mr=re(32670,65),se,Be=e.visitParameterList(Oe.parameters,C,v),er=Pr(Oe);return Oe.kind===171?se=A.updateGetAccessorDeclaration(Oe,Oe.decorators,Oe.modifiers,Oe.name,Be,Oe.type,er):se=A.updateSetAccessorDeclaration(Oe,Oe.decorators,Oe.modifiers,Oe.name,Be,er),T(mr,98304,0),F=oe,se}function rt(Oe){return e.setTextRange(A.createPropertyAssignment(Oe.name,Y(A.cloneNode(Oe.name))),Oe)}function Cn(Oe){return e.visitEachChild(Oe,C,v)}function Qn(Oe){return e.visitEachChild(Oe,C,v)}function Ra(Oe){return e.some(Oe.elements,e.isSpreadElement)?Ka(Oe.elements,!1,!!Oe.multiLine,!!Oe.elements.hasTrailingComma):e.visitEachChild(Oe,C,v)}function Ci(Oe){if(e.getEmitFlags(Oe)&33554432)return _i(Oe);var oe=e.skipOuterExpressions(Oe.expression);return oe.kind===106||e.isSuperProperty(oe)||e.some(Oe.arguments,e.isSpreadElement)?yi(Oe,!0):A.updateCallExpression(Oe,e.visitNode(Oe.expression,g,e.isExpression),void 0,e.visitNodes(Oe.arguments,C,e.isExpression))}function _i(Oe){var oe=e.cast(e.cast(e.skipOuterExpressions(Oe.expression),e.isArrowFunction).body,e.isBlock),mr=function(bt){return e.isVariableStatement(bt)&&!!e.first(bt.declarationList.declarations).initializer},se=F;F=void 0;var Be=e.visitNodes(oe.statements,u,e.isStatement);F=se;var er=e.filter(Be,mr),vr=e.filter(Be,function(bt){return!mr(bt)}),qr=e.cast(e.first(er),e.isVariableStatement),Dt=qr.declarationList.declarations[0],Jt=e.skipOuterExpressions(Dt.initializer),Sn=e.tryCast(Jt,e.isAssignmentExpression);!Sn&&e.isBinaryExpression(Jt)&&Jt.operatorToken.kind===27&&(Sn=e.tryCast(Jt.left,e.isAssignmentExpression));var ta=e.cast(Sn?e.skipOuterExpressions(Sn.right):Jt,e.isCallExpression),xa=e.cast(e.skipOuterExpressions(ta.expression),e.isFunctionExpression),Di=xa.body.statements,$a=0,Ji=-1,So=[];if(Sn){var cs=e.tryCast(Di[$a],e.isExpressionStatement);cs&&(So.push(cs),$a++),So.push(Di[$a]),$a++,So.push(A.createExpressionStatement(A.createAssignment(Sn.left,e.cast(Dt.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(Di,Ji));)Ji--;return e.addRange(So,Di,$a,Ji),Ji<-1&&e.addRange(So,Di,Ji+1),e.addRange(So,vr),e.addRange(So,er,1),A.restoreOuterExpressions(Oe.expression,A.restoreOuterExpressions(Dt.initializer,A.restoreOuterExpressions(Sn&&Sn.right,A.updateCallExpression(ta,A.restoreOuterExpressions(ta.expression,A.updateFunctionExpression(xa,void 0,void 0,void 0,void 0,xa.parameters,void 0,A.updateBlock(xa.body,So))),void 0,ta.arguments))))}function va(Oe){return yi(Oe,!1)}function yi(Oe,oe){if(Oe.transformFlags&16384||Oe.expression.kind===106||e.isSuperProperty(e.skipOuterExpressions(Oe.expression))){var mr=A.createCallBinding(Oe.expression,S),se=mr.target,Be=mr.thisArg;Oe.expression.kind===106&&e.setEmitFlags(Be,4);var er=void 0;if(Oe.transformFlags&16384?er=A.createFunctionApplyCall(e.visitNode(se,g,e.isExpression),Oe.expression.kind===106?Be:e.visitNode(Be,C,e.isExpression),Ka(Oe.arguments,!0,!1,!1)):er=e.setTextRange(A.createFunctionCallCall(e.visitNode(se,g,e.isExpression),Oe.expression.kind===106?Be:e.visitNode(Be,C,e.isExpression),e.visitNodes(Oe.arguments,C,e.isExpression)),Oe),Oe.expression.kind===106){var vr=A.createLogicalOr(er,_e());er=oe?A.createAssignment(A.createUniqueName("_this",48),vr):vr}return e.setOriginalNode(er,Oe)}return e.visitEachChild(Oe,C,v)}function ro(Oe){if(e.some(Oe.arguments,e.isSpreadElement)){var oe=A.createCallBinding(A.createPropertyAccessExpression(Oe.expression,"bind"),S),mr=oe.target,se=oe.thisArg;return A.createNewExpression(A.createFunctionApplyCall(e.visitNode(mr,C,e.isExpression),se,Ka(A.createNodeArray(Gt([A.createVoidZero()],Oe.arguments,!0)),!0,!1,!1)),void 0,[])}return e.visitEachChild(Oe,C,v)}function Ka(Oe,oe,mr,se){var Be=Oe.length,er=e.flatten(e.spanMap(Oe,Mi,function(xa,Di,$a,Ji){return Di(xa,mr,se&&Ji===Be)}));if(er.length===1){var vr=er[0];if(oe&&!B.downlevelIteration||e.isPackedArrayLiteral(vr.expression)||e.isCallToHelper(vr.expression,"___spreadArray"))return vr.expression}for(var qr=z(),Dt=er[0].kind!==0,Jt=Dt?A.createArrayLiteralExpression():er[0].expression,Sn=Dt?0:1;Sn<er.length;Sn++){var ta=er[Sn];Jt=qr.createSpreadArrayHelper(Jt,ta.expression,ta.kind===1&&!oe)}return Jt}function Mi(Oe){return e.isSpreadElement(Oe)?io:Hi}function io(Oe){return e.map(Oe,ji)}function ji(Oe){var oe=e.visitNode(Oe.expression,C,e.isExpression),mr=e.isCallToHelper(oe,"___read"),se=mr||e.isPackedArrayLiteral(oe)?2:1;return B.downlevelIteration&&se===1&&!e.isArrayLiteralExpression(oe)&&!mr&&(oe=z().createReadHelper(oe,void 0),se=2),J(se,oe)}function Hi(Oe,oe,mr){var se=A.createArrayLiteralExpression(e.visitNodes(A.createNodeArray(Oe,mr),C,e.isExpression),oe);return J(0,se)}function to(Oe){return e.visitNode(Oe.expression,C,e.isExpression)}function No(Oe){return e.setTextRange(A.createStringLiteral(Oe.text),Oe)}function lo(Oe){return Oe.hasExtendedUnicodeEscape?e.setTextRange(A.createStringLiteral(Oe.text),Oe):Oe}function Lo(Oe){return Oe.numericLiteralFlags&384?e.setTextRange(A.createNumericLiteral(Oe.text),Oe):Oe}function Ha(Oe){return e.processTaggedTemplateExpression(v,Oe,C,x,ne,e.ProcessLevel.All)}function Yo(Oe){for(var oe=A.createStringLiteral(Oe.head.text),mr=0,se=Oe.templateSpans;mr<se.length;mr++){var Be=se[mr],er=[e.visitNode(Be.expression,C,e.isExpression)];Be.literal.text.length>0&&er.push(A.createStringLiteral(Be.literal.text)),oe=A.createCallExpression(A.createPropertyAccessExpression(oe,"concat"),void 0,er)}return e.setTextRange(oe,Oe)}function co(Oe){return q&8&&!Oe?A.createPropertyAccessExpression(A.createUniqueName("_super",48),"prototype"):A.createUniqueName("_super",48)}function za(Oe){return Oe.keywordToken===103&&Oe.name.escapedText==="target"?(q|=32768,A.createUniqueName("_newTarget",48)):Oe}function hi(Oe,oe,mr){if(Q&1&&e.isFunctionLike(oe)){var se=re(32670,e.getEmitFlags(oe)&8?81:65);w(Oe,oe,mr),T(se,0,0);return}w(Oe,oe,mr)}function Zi(){Q&2||(Q|=2,v.enableSubstitution(79))}function Mo(){Q&1||(Q|=1,v.enableSubstitution(108),v.enableEmitNotification(170),v.enableEmitNotification(168),v.enableEmitNotification(171),v.enableEmitNotification(172),v.enableEmitNotification(213),v.enableEmitNotification(212),v.enableEmitNotification(255))}function Po(Oe,oe){return oe=I(Oe,oe),Oe===1?Es(oe):e.isIdentifier(oe)?Fo(oe):oe}function Fo(Oe){if(Q&2&&!e.isInternalName(Oe)){var oe=e.getParseTreeNode(Oe,e.isIdentifier);if(oe&&zo(oe))return e.setTextRange(A.getGeneratedNameForNode(oe),Oe)}return Oe}function zo(Oe){switch(Oe.parent.kind){case 202:case 256:case 259:case 253:return Oe.parent.name===Oe&&H.isDeclarationWithCollidingName(Oe.parent)}return!1}function Es(Oe){switch(Oe.kind){case 79:return Cs(Oe);case 108:return dt(Oe)}return Oe}function Cs(Oe){if(Q&2&&!e.isInternalName(Oe)){var oe=H.getReferencedDeclarationWithCollidingName(Oe);if(oe&&!(e.isClassLike(oe)&&hr(oe,Oe)))return e.setTextRange(A.getGeneratedNameForNode(e.getNameOfDeclaration(oe)),Oe)}return Oe}function hr(Oe,oe){var mr=e.getParseTreeNode(oe);if(!mr||mr===Oe||mr.end<=Oe.pos||mr.pos>=Oe.end)return!1;for(var se=e.getEnclosingBlockScopeContainer(Oe);mr;){if(mr===se||mr===Oe)return!1;if(e.isClassElement(mr)&&mr.parent===Oe)return!0;mr=mr.parent}return!1}function dt(Oe){return Q&1&&q&16?e.setTextRange(A.createUniqueName("_this",48),Oe):Oe}function tn(Oe,oe){return e.isStatic(oe)?A.getInternalName(Oe):A.createPropertyAccessExpression(A.getInternalName(Oe),"prototype")}function Un(Oe,oe){if(!Oe||!oe||e.some(Oe.parameters))return!1;var mr=e.firstOrUndefined(Oe.body.statements);if(!mr||!e.nodeIsSynthesized(mr)||mr.kind!==237)return!1;var se=mr.expression;if(!e.nodeIsSynthesized(se)||se.kind!==207)return!1;var Be=se.expression;if(!e.nodeIsSynthesized(Be)||Be.kind!==106)return!1;var er=e.singleOrUndefined(se.arguments);if(!er||!e.nodeIsSynthesized(er)||er.kind!==224)return!1;var vr=er.expression;return e.isIdentifier(vr)&&vr.escapedText==="arguments"}}e.transformES2015=h}(jr||(jr={})),function(e){function n(f){var p=f.factory,a=f.getCompilerOptions(),d,k;(a.jsx===1||a.jsx===3)&&(d=f.onEmitNode,f.onEmitNode=v,f.enableEmitNotification(279),f.enableEmitNotification(280),f.enableEmitNotification(278),k=[]);var J=f.onSubstituteNode;return f.onSubstituteNode=A,f.enableSubstitution(205),f.enableSubstitution(294),e.chainBundle(f,h);function h(M){return M}function v(M,S,B){switch(S.kind){case 279:case 280:case 278:var H=S.tagName;k[e.getOriginalNodeId(H)]=!0;break}d(M,S,B)}function A(M,S){return S.id&&k&&k[S.id]?J(M,S):(S=J(M,S),e.isPropertyAccessExpression(S)?z(S):e.isPropertyAssignment(S)?ie(S):S)}function z(M){if(e.isPrivateIdentifier(M.name))return M;var S=b(M.name);return S?e.setTextRange(p.createElementAccessExpression(M.expression,S),M):M}function ie(M){var S=e.isIdentifier(M.name)&&b(M.name);return S?p.updatePropertyAssignment(M,S,M.initializer):M}function b(M){var S=M.originalKeywordKind||(e.nodeIsSynthesized(M)?e.stringToToken(e.idText(M)):void 0);if(S!==void 0&&S>=81&&S<=116)return e.setTextRange(p.createStringLiteralFromNode(M),M)}}e.transformES5=n}(jr||(jr={})),function(e){var n;(function(h){h[h.Nop=0]="Nop",h[h.Statement=1]="Statement",h[h.Assign=2]="Assign",h[h.Break=3]="Break",h[h.BreakWhenTrue=4]="BreakWhenTrue",h[h.BreakWhenFalse=5]="BreakWhenFalse",h[h.Yield=6]="Yield",h[h.YieldStar=7]="YieldStar",h[h.Return=8]="Return",h[h.Throw=9]="Throw",h[h.Endfinally=10]="Endfinally"})(n||(n={}));var f;(function(h){h[h.Open=0]="Open",h[h.Close=1]="Close"})(f||(f={}));var p;(function(h){h[h.Exception=0]="Exception",h[h.With=1]="With",h[h.Switch=2]="Switch",h[h.Loop=3]="Loop",h[h.Labeled=4]="Labeled"})(p||(p={}));var a;(function(h){h[h.Try=0]="Try",h[h.Catch=1]="Catch",h[h.Finally=2]="Finally",h[h.Done=3]="Done"})(a||(a={}));var d;(function(h){h[h.Next=0]="Next",h[h.Throw=1]="Throw",h[h.Return=2]="Return",h[h.Break=3]="Break",h[h.Yield=4]="Yield",h[h.YieldStar=5]="YieldStar",h[h.Catch=6]="Catch",h[h.Endfinally=7]="Endfinally"})(d||(d={}));function k(h){switch(h){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function J(h){var v=h.factory,A=h.getEmitHelperFactory,z=h.resumeLexicalEnvironment,ie=h.endLexicalEnvironment,b=h.hoistFunctionDeclaration,M=h.hoistVariableDeclaration,S=h.getCompilerOptions(),B=e.getEmitScriptTarget(S),H=h.getEmitResolver(),I=h.onSubstituteNode;h.onSubstituteNode=$;var w,x,O,q,Z,ne,F,Q,V,re,T=1,N,y,D,C,m=0,u=0,g,P,te,ue,X,j,Se,Ce;return e.chainBundle(h,R);function R(hr){if(hr.isDeclarationFile||!(hr.transformFlags&1024))return hr;var dt=e.visitEachChild(hr,Y,h);return e.addEmitHelpers(dt,h.readEmitHelpers()),dt}function Y(hr){var dt=hr.transformFlags;return q?U(hr):O?K(hr):e.isFunctionLikeDeclaration(hr)&&hr.asteriskToken?ge(hr):dt&1024?e.visitEachChild(hr,Y,h):hr}function U(hr){switch(hr.kind){case 239:return He(hr);case 240:return Jr(hr);case 248:return sr(hr);case 249:return or(hr);default:return K(hr)}}function K(hr){switch(hr.kind){case 255:return ke(hr);case 212:return Pe(hr);case 171:case 172:return Ie(hr);case 236:return he(hr);case 241:return Lr(hr);case 242:return lt(hr);case 245:return bn(hr);case 244:return Rt(hr);case 246:return zn(hr);default:return hr.transformFlags&524288?Te(hr):hr.transformFlags&2098176?e.visitEachChild(hr,Y,h):hr}}function Te(hr){switch(hr.kind){case 220:return ve(hr);case 349:return qe(hr);case 221:return De(hr);case 223:return Ae(hr);case 203:return Ye(hr);case 204:return br(hr);case 206:return lr(hr);case 207:return Ar(hr);case 208:return kr(hr);default:return e.visitEachChild(hr,Y,h)}}function ge(hr){switch(hr.kind){case 255:return ke(hr);case 212:return Pe(hr);default:return e.Debug.failBadSyntaxKind(hr)}}function ke(hr){if(hr.asteriskToken)hr=e.setOriginalNode(e.setTextRange(v.createFunctionDeclaration(void 0,hr.modifiers,void 0,hr.name,void 0,e.visitParameterList(hr.parameters,Y,h),void 0,Ge(hr.body)),hr),hr);else{var dt=O,tn=q;O=!1,q=!1,hr=e.visitEachChild(hr,Y,h),O=dt,q=tn}if(O){b(hr);return}else return hr}function Pe(hr){if(hr.asteriskToken)hr=e.setOriginalNode(e.setTextRange(v.createFunctionExpression(void 0,void 0,hr.name,void 0,e.visitParameterList(hr.parameters,Y,h),void 0,Ge(hr.body)),hr),hr);else{var dt=O,tn=q;O=!1,q=!1,hr=e.visitEachChild(hr,Y,h),O=dt,q=tn}return hr}function Ie(hr){var dt=O,tn=q;return O=!1,q=!1,hr=e.visitEachChild(hr,Y,h),O=dt,q=tn,hr}function Ge(hr){var dt=[],tn=O,Un=q,Oe=Z,oe=ne,mr=F,se=Q,Be=V,er=re,vr=T,qr=N,Dt=y,Jt=D,Sn=C;O=!0,q=!1,Z=void 0,ne=void 0,F=void 0,Q=void 0,V=void 0,re=void 0,T=1,N=void 0,y=void 0,D=void 0,C=v.createTempVariable(void 0),z();var ta=v.copyPrologue(hr.statements,dt,!1,Y);Ke(hr.statements,ta);var xa=Mi();return e.insertStatementsAfterStandardPrologue(dt,ie()),dt.push(v.createReturnStatement(xa)),O=tn,q=Un,Z=Oe,ne=oe,F=mr,Q=se,V=Be,re=er,T=vr,N=qr,y=Dt,D=Jt,C=Sn,e.setTextRange(v.createBlock(dt,hr.multiLine),hr)}function he(hr){if(hr.transformFlags&524288){Fe(hr.declarationList);return}else{if(e.getEmitFlags(hr)&1048576)return hr;for(var dt=0,tn=hr.declarationList.declarations;dt<tn.length;dt++){var Un=tn[dt];M(Un.name)}var Oe=e.getInitializedVariables(hr.declarationList);return Oe.length===0?void 0:e.setSourceMapRange(v.createExpressionStatement(v.inlineExpressions(e.map(Oe,$e))),hr)}}function ve(hr){var dt=e.getExpressionAssociativity(hr);switch(dt){case 0:return _e(hr);case 1:return Ve(hr);default:return e.Debug.assertNever(dt)}}function Ve(hr){var dt=hr.left,tn=hr.right;if(Ee(tn)){var Un=void 0;switch(dt.kind){case 205:Un=v.updatePropertyAccessExpression(dt,Ze(e.visitNode(dt.expression,Y,e.isLeftHandSideExpression)),dt.name);break;case 206:Un=v.updateElementAccessExpression(dt,Ze(e.visitNode(dt.expression,Y,e.isLeftHandSideExpression)),Ze(e.visitNode(dt.argumentExpression,Y,e.isExpression)));break;default:Un=e.visitNode(dt,Y,e.isExpression);break}var Oe=hr.operatorToken.kind;return e.isCompoundAssignment(Oe)?e.setTextRange(v.createAssignment(Un,e.setTextRange(v.createBinaryExpression(Ze(Un),e.getNonAssignmentOperatorForCompoundAssignment(Oe),e.visitNode(tn,Y,e.isExpression)),hr)),hr):v.updateBinaryExpression(hr,Un,hr.operatorToken,e.visitNode(tn,Y,e.isExpression))}return e.visitEachChild(hr,Y,h)}function _e(hr){return Ee(hr.right)?e.isLogicalOperator(hr.operatorToken.kind)?Xe(hr):hr.operatorToken.kind===27?Le(hr):v.updateBinaryExpression(hr,Ze(e.visitNode(hr.left,Y,e.isExpression)),hr.operatorToken,e.visitNode(hr.right,Y,e.isExpression)):e.visitEachChild(hr,Y,h)}function Le(hr){var dt=[];return tn(hr.left),tn(hr.right),v.inlineExpressions(dt);function tn(Un){e.isBinaryExpression(Un)&&Un.operatorToken.kind===27?(tn(Un.left),tn(Un.right)):(Ee(Un)&&dt.length>0&&(Ka(1,[v.createExpressionStatement(v.inlineExpressions(dt))]),dt=[]),dt.push(e.visitNode(Un,Y,e.isExpression)))}}function qe(hr){for(var dt=[],tn=0,Un=hr.elements;tn<Un.length;tn++){var Oe=Un[tn];e.isBinaryExpression(Oe)&&Oe.operatorToken.kind===27?dt.push(Le(Oe)):(Ee(Oe)&&dt.length>0&&(Ka(1,[v.createExpressionStatement(v.inlineExpressions(dt))]),dt=[]),dt.push(e.visitNode(Oe,Y,e.isExpression)))}return v.inlineExpressions(dt)}function Xe(hr){var dt=fr(),tn=Cr();return rt(tn,e.visitNode(hr.left,Y,e.isExpression),hr.left),hr.operatorToken.kind===55?Ra(dt,tn,hr.left):Qn(dt,tn,hr.left),rt(tn,e.visitNode(hr.right,Y,e.isExpression),hr.right),dr(dt),tn}function De(hr){if(Ee(hr.whenTrue)||Ee(hr.whenFalse)){var dt=fr(),tn=fr(),Un=Cr();return Ra(dt,e.visitNode(hr.condition,Y,e.isExpression),hr.condition),rt(Un,e.visitNode(hr.whenTrue,Y,e.isExpression),hr.whenTrue),Cn(tn),dr(dt),rt(Un,e.visitNode(hr.whenFalse,Y,e.isExpression),hr.whenFalse),dr(tn),Un}return e.visitEachChild(hr,Y,h)}function Ae(hr){var dt=fr(),tn=e.visitNode(hr.expression,Y,e.isExpression);if(hr.asteriskToken){var Un=e.getEmitFlags(hr.expression)&8388608?tn:e.setTextRange(A().createValuesHelper(tn),hr);Ci(Un,hr)}else _i(tn,hr);return dr(dt),_t(hr)}function Ye(hr){return Dr(hr.elements,void 0,void 0,hr.multiLine)}function Dr(hr,dt,tn,Un){var Oe=We(hr),oe;if(Oe>0){oe=Cr();var mr=e.visitNodes(hr,Y,e.isExpression,0,Oe);rt(oe,v.createArrayLiteralExpression(dt?Gt([dt],mr,!0):mr)),dt=void 0}var se=e.reduceLeft(hr,Be,[],Oe);return oe?v.createArrayConcatCall(oe,[v.createArrayLiteralExpression(se,Un)]):e.setTextRange(v.createArrayLiteralExpression(dt?Gt([dt],se,!0):se,Un),tn);function Be(er,vr){if(Ee(vr)&&er.length>0){var qr=oe!==void 0;oe||(oe=Cr()),rt(oe,qr?v.createArrayConcatCall(oe,[v.createArrayLiteralExpression(er,Un)]):v.createArrayLiteralExpression(dt?Gt([dt],er,!0):er,Un)),dt=void 0,er=[]}return er.push(e.visitNode(vr,Y,e.isExpression)),er}}function br(hr){var dt=hr.properties,tn=hr.multiLine,Un=We(dt),Oe=Cr();rt(Oe,v.createObjectLiteralExpression(e.visitNodes(dt,Y,e.isObjectLiteralElementLike,0,Un),tn));var oe=e.reduceLeft(dt,mr,[],Un);return oe.push(tn?e.startOnNewLine(e.setParent(e.setTextRange(v.cloneNode(Oe),Oe),Oe.parent)):Oe),v.inlineExpressions(oe);function mr(se,Be){Ee(Be)&&se.length>0&&(It(v.createExpressionStatement(v.inlineExpressions(se))),se=[]);var er=e.createExpressionForObjectLiteralElementLike(v,hr,Be,Oe),vr=e.visitNode(er,Y,e.isExpression);return vr&&(tn&&e.startOnNewLine(vr),se.push(vr)),se}}function lr(hr){return Ee(hr.argumentExpression)?v.updateElementAccessExpression(hr,Ze(e.visitNode(hr.expression,Y,e.isLeftHandSideExpression)),e.visitNode(hr.argumentExpression,Y,e.isExpression)):e.visitEachChild(hr,Y,h)}function Ar(hr){if(!e.isImportCall(hr)&&e.forEach(hr.arguments,Ee)){var dt=v.createCallBinding(hr.expression,M,B,!0),tn=dt.target,Un=dt.thisArg;return e.setOriginalNode(e.setTextRange(v.createFunctionApplyCall(Ze(e.visitNode(tn,Y,e.isLeftHandSideExpression)),Un,Dr(hr.arguments)),hr),hr)}return e.visitEachChild(hr,Y,h)}function kr(hr){if(e.forEach(hr.arguments,Ee)){var dt=v.createCallBinding(v.createPropertyAccessExpression(hr.expression,"bind"),M),tn=dt.target,Un=dt.thisArg;return e.setOriginalNode(e.setTextRange(v.createNewExpression(v.createFunctionApplyCall(Ze(e.visitNode(tn,Y,e.isExpression)),Un,Dr(hr.arguments,v.createVoidZero())),void 0,[]),hr),hr)}return e.visitEachChild(hr,Y,h)}function Ke(hr,dt){dt===void 0&&(dt=0);for(var tn=hr.length,Un=dt;Un<tn;Un++)Hr(hr[Un])}function Me(hr){e.isBlock(hr)?Ke(hr.statements):Hr(hr)}function Hr(hr){var dt=q;q||(q=Ee(hr)),ur(hr),q=dt}function ur(hr){switch(hr.kind){case 234:return gr(hr);case 237:return de(hr);case 238:return Sr(hr);case 239:return Pr(hr);case 240:return pr(hr);case 241:return ze(hr);case 242:return Yr(hr);case 244:return tt(hr);case 245:return cn(hr);case 246:return In(hr);case 247:return ir(hr);case 248:return Or(hr);case 249:return ye(hr);case 250:return fe(hr);case 251:return je(hr);default:return It(e.visitNode(hr,Y,e.isStatement))}}function gr(hr){Ee(hr)?Ke(hr.statements):It(e.visitNode(hr,Y,e.isStatement))}function de(hr){It(e.visitNode(hr,Y,e.isStatement))}function Fe(hr){for(var dt=0,tn=hr.declarations;dt<tn.length;dt++){var Un=tn[dt],Oe=v.cloneNode(Un.name);e.setCommentRange(Oe,Un.name),M(Oe)}for(var oe=e.getInitializedVariables(hr),mr=oe.length,se=0,Be=[];se<mr;){for(var er=se;er<mr;er++){var Un=oe[er];if(Ee(Un.initializer)&&Be.length>0)break;Be.push($e(Un))}Be.length&&(It(v.createExpressionStatement(v.inlineExpressions(Be))),se+=Be.length,Be=[])}}function $e(hr){return e.setSourceMapRange(v.createAssignment(e.setSourceMapRange(v.cloneNode(hr.name),hr.name),e.visitNode(hr.initializer,Y,e.isExpression)),hr)}function Sr(hr){if(Ee(hr))if(Ee(hr.thenStatement)||Ee(hr.elseStatement)){var dt=fr(),tn=hr.elseStatement?fr():void 0;Ra(hr.elseStatement?tn:dt,e.visitNode(hr.expression,Y,e.isExpression),hr.expression),Me(hr.thenStatement),hr.elseStatement&&(Cn(dt),dr(tn),Me(hr.elseStatement)),dr(dt)}else It(e.visitNode(hr,Y,e.isStatement));else It(e.visitNode(hr,Y,e.isStatement))}function Pr(hr){if(Ee(hr)){var dt=fr(),tn=fr();xt(dt),dr(tn),Me(hr.statement),dr(dt),Qn(tn,e.visitNode(hr.expression,Y,e.isExpression)),wt()}else It(e.visitNode(hr,Y,e.isStatement))}function He(hr){return q?(ht(),hr=e.visitEachChild(hr,Y,h),wt(),hr):e.visitEachChild(hr,Y,h)}function pr(hr){if(Ee(hr)){var dt=fr(),tn=xt(dt);dr(dt),Ra(tn,e.visitNode(hr.expression,Y,e.isExpression)),Me(hr.statement),Cn(dt),wt()}else It(e.visitNode(hr,Y,e.isStatement))}function Jr(hr){return q?(ht(),hr=e.visitEachChild(hr,Y,h),wt(),hr):e.visitEachChild(hr,Y,h)}function ze(hr){if(Ee(hr)){var dt=fr(),tn=fr(),Un=xt(tn);if(hr.initializer){var Oe=hr.initializer;e.isVariableDeclarationList(Oe)?Fe(Oe):It(e.setTextRange(v.createExpressionStatement(e.visitNode(Oe,Y,e.isExpression)),Oe))}dr(dt),hr.condition&&Ra(Un,e.visitNode(hr.condition,Y,e.isExpression)),Me(hr.statement),dr(tn),hr.incrementor&&It(e.setTextRange(v.createExpressionStatement(e.visitNode(hr.incrementor,Y,e.isExpression)),hr.incrementor)),Cn(dt),wt()}else It(e.visitNode(hr,Y,e.isStatement))}function Lr(hr){q&&ht();var dt=hr.initializer;if(dt&&e.isVariableDeclarationList(dt)){for(var tn=0,Un=dt.declarations;tn<Un.length;tn++){var Oe=Un[tn];M(Oe.name)}var oe=e.getInitializedVariables(dt);hr=v.updateForStatement(hr,oe.length>0?v.inlineExpressions(e.map(oe,$e)):void 0,e.visitNode(hr.condition,Y,e.isExpression),e.visitNode(hr.incrementor,Y,e.isExpression),e.visitIterationBody(hr.statement,Y,h))}else hr=e.visitEachChild(hr,Y,h);return q&&wt(),hr}function Yr(hr){if(Ee(hr)){var dt=Cr(),tn=Cr(),Un=v.createLoopVariable(),Oe=hr.initializer;M(Un),rt(dt,v.createArrayLiteralExpression()),It(v.createForInStatement(tn,e.visitNode(hr.expression,Y,e.isExpression),v.createExpressionStatement(v.createCallExpression(v.createPropertyAccessExpression(dt,"push"),void 0,[tn])))),rt(Un,v.createNumericLiteral(0));var oe=fr(),mr=fr(),se=xt(mr);dr(oe),Ra(se,v.createLessThan(Un,v.createPropertyAccessExpression(dt,"length")));var Be=void 0;if(e.isVariableDeclarationList(Oe)){for(var er=0,vr=Oe.declarations;er<vr.length;er++){var qr=vr[er];M(qr.name)}Be=v.cloneNode(Oe.declarations[0].name)}else Be=e.visitNode(Oe,Y,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(Be));rt(Be,v.createElementAccessExpression(dt,Un)),Me(hr.statement),dr(mr),It(v.createExpressionStatement(v.createPostfixIncrement(Un))),Cn(oe),wt()}else It(e.visitNode(hr,Y,e.isStatement))}function lt(hr){q&&ht();var dt=hr.initializer;if(e.isVariableDeclarationList(dt)){for(var tn=0,Un=dt.declarations;tn<Un.length;tn++){var Oe=Un[tn];M(Oe.name)}hr=v.updateForInStatement(hr,dt.declarations[0].name,e.visitNode(hr.expression,Y,e.isExpression),e.visitNode(hr.statement,Y,e.isStatement,v.liftToBlock))}else hr=e.visitEachChild(hr,Y,h);return q&&wt(),hr}function tt(hr){var dt=qt(hr.label?e.idText(hr.label):void 0);dt>0?Cn(dt,hr):It(hr)}function Rt(hr){if(q){var dt=qt(hr.label&&e.idText(hr.label));if(dt>0)return oa(dt,hr)}return e.visitEachChild(hr,Y,h)}function cn(hr){var dt=Ut(hr.label?e.idText(hr.label):void 0);dt>0?Cn(dt,hr):It(hr)}function bn(hr){if(q){var dt=Ut(hr.label&&e.idText(hr.label));if(dt>0)return oa(dt,hr)}return e.visitEachChild(hr,Y,h)}function In(hr){va(e.visitNode(hr.expression,Y,e.isExpression),hr)}function zn(hr){return pt(e.visitNode(hr.expression,Y,e.isExpression),hr)}function ir(hr){Ee(hr)?(xr(Ze(e.visitNode(hr.expression,Y,e.isExpression))),Me(hr.statement),Nr()):It(e.visitNode(hr,Y,e.isStatement))}function Or(hr){if(Ee(hr.caseBlock)){for(var dt=hr.caseBlock,tn=dt.clauses.length,Un=mt(),Oe=Ze(e.visitNode(hr.expression,Y,e.isExpression)),oe=[],mr=-1,se=0;se<tn;se++){var Be=dt.clauses[se];oe.push(fr()),Be.kind===289&&mr===-1&&(mr=se)}for(var er=0,vr=[];er<tn;){for(var qr=0,se=er;se<tn;se++){var Be=dt.clauses[se];if(Be.kind===288){if(Ee(Be.expression)&&vr.length>0)break;vr.push(v.createCaseClause(e.visitNode(Be.expression,Y,e.isExpression),[oa(oe[se],Be.expression)]))}else qr++}vr.length&&(It(v.createSwitchStatement(Oe,v.createCaseBlock(vr))),er+=vr.length,vr=[]),qr>0&&(er+=qr,qr=0)}mr>=0?Cn(oe[mr]):Cn(Un);for(var se=0;se<tn;se++)dr(oe[se]),Ke(dt.clauses[se].statements);rn()}else It(e.visitNode(hr,Y,e.isStatement))}function sr(hr){return q&&Qt(),hr=e.visitEachChild(hr,Y,h),q&&rn(),hr}function ye(hr){Ee(hr)?(ba(e.idText(hr.label)),Me(hr.statement),Jn()):It(e.visitNode(hr,Y,e.isStatement))}function or(hr){return q&&sa(e.idText(hr.label)),hr=e.visitEachChild(hr,Y,h),q&&Jn(),hr}function fe(hr){var dt;yi(e.visitNode((dt=hr.expression)!==null&&dt!==void 0?dt:v.createVoidZero(),Y,e.isExpression),hr)}function je(hr){Ee(hr)?(zr(),Me(hr.tryBlock),hr.catchClause&&(gt(hr.catchClause.variableDeclaration),Me(hr.catchClause.block)),hr.finallyBlock&&(vt(),Me(hr.finallyBlock)),ut()):It(e.visitEachChild(hr,Y,h))}function Ee(hr){return!!hr&&(hr.transformFlags&524288)!==0}function We(hr){for(var dt=hr.length,tn=0;tn<dt;tn++)if(Ee(hr[tn]))return tn;return-1}function $(hr,dt){return dt=I(hr,dt),hr===1?Ne(dt):dt}function Ne(hr){return e.isIdentifier(hr)?me(hr):hr}function me(hr){if(!e.isGeneratedIdentifier(hr)&&w&&w.has(e.idText(hr))){var dt=e.getOriginalNode(hr);if(e.isIdentifier(dt)&&dt.parent){var tn=H.getReferencedValueDeclaration(dt);if(tn){var Un=x[e.getOriginalNodeId(tn)];if(Un){var Oe=e.setParent(e.setTextRange(v.cloneNode(Un),Un),Un.parent);return e.setSourceMapRange(Oe,hr),e.setCommentRange(Oe,hr),Oe}}}}return hr}function Ze(hr){if(e.isGeneratedIdentifier(hr)||e.getEmitFlags(hr)&4096)return hr;var dt=v.createTempVariable(M);return rt(dt,hr,hr),dt}function Cr(hr){var dt=hr?v.createUniqueName(hr):v.createTempVariable(void 0);return M(dt),dt}function fr(){V||(V=[]);var hr=T;return T++,V[hr]=-1,hr}function dr(hr){e.Debug.assert(V!==void 0,"No labels were defined."),V[hr]=N?N.length:0}function et(hr){Z||(Z=[],F=[],ne=[],Q=[]);var dt=F.length;return F[dt]=0,ne[dt]=N?N.length:0,Z[dt]=hr,Q.push(hr),dt}function yt(){var hr=Vr();if(hr===void 0)return e.Debug.fail("beginBlock was never called.");var dt=F.length;return F[dt]=1,ne[dt]=N?N.length:0,Z[dt]=hr,Q.pop(),hr}function Vr(){return e.lastOrUndefined(Q)}function tr(){var hr=Vr();return hr&&hr.kind}function xr(hr){var dt=fr(),tn=fr();dr(dt),et({kind:1,expression:hr,startLabel:dt,endLabel:tn})}function Nr(){e.Debug.assert(tr()===1);var hr=yt();dr(hr.endLabel)}function zr(){var hr=fr(),dt=fr();return dr(hr),et({kind:0,state:0,startLabel:hr,endLabel:dt}),Mt(),dt}function gt(hr){e.Debug.assert(tr()===0);var dt;if(e.isGeneratedIdentifier(hr.name))dt=hr.name,M(hr.name);else{var tn=e.idText(hr.name);dt=Cr(tn),w||(w=new e.Map,x=[],h.enableSubstitution(79)),w.set(tn,!0),x[e.getOriginalNodeId(hr)]=dt}var Un=Vr();e.Debug.assert(Un.state<1);var Oe=Un.endLabel;Cn(Oe);var oe=fr();dr(oe),Un.state=1,Un.catchVariable=dt,Un.catchLabel=oe,rt(dt,v.createCallExpression(v.createPropertyAccessExpression(C,"sent"),void 0,[])),Mt()}function vt(){e.Debug.assert(tr()===0);var hr=Vr();e.Debug.assert(hr.state<2);var dt=hr.endLabel;Cn(dt);var tn=fr();dr(tn),hr.state=2,hr.finallyLabel=tn}function ut(){e.Debug.assert(tr()===0);var hr=yt(),dt=hr.state;dt<2?Cn(hr.endLabel):ro(),dr(hr.endLabel),Mt(),hr.state=3}function ht(){et({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function xt(hr){var dt=fr();return et({kind:3,isScript:!1,breakLabel:dt,continueLabel:hr}),dt}function wt(){e.Debug.assert(tr()===3);var hr=yt(),dt=hr.breakLabel;hr.isScript||dr(dt)}function Qt(){et({kind:2,isScript:!0,breakLabel:-1})}function mt(){var hr=fr();return et({kind:2,isScript:!1,breakLabel:hr}),hr}function rn(){e.Debug.assert(tr()===2);var hr=yt(),dt=hr.breakLabel;hr.isScript||dr(dt)}function sa(hr){et({kind:4,isScript:!0,labelText:hr,breakLabel:-1})}function ba(hr){var dt=fr();et({kind:4,isScript:!1,labelText:hr,breakLabel:dt})}function Jn(){e.Debug.assert(tr()===4);var hr=yt();hr.isScript||dr(hr.breakLabel)}function na(hr){return hr.kind===2||hr.kind===3}function Wn(hr){return hr.kind===4}function en(hr){return hr.kind===3}function St(hr,dt){for(var tn=dt;tn>=0;tn--){var Un=Q[tn];if(Wn(Un)){if(Un.labelText===hr)return!0}else break}return!1}function Ut(hr){if(Q)if(hr)for(var dt=Q.length-1;dt>=0;dt--){var tn=Q[dt];if(Wn(tn)&&tn.labelText===hr)return tn.breakLabel;if(na(tn)&&St(hr,dt-1))return tn.breakLabel}else for(var dt=Q.length-1;dt>=0;dt--){var tn=Q[dt];if(na(tn))return tn.breakLabel}return 0}function qt(hr){if(Q)if(hr)for(var dt=Q.length-1;dt>=0;dt--){var tn=Q[dt];if(en(tn)&&St(hr,dt-1))return tn.continueLabel}else for(var dt=Q.length-1;dt>=0;dt--){var tn=Q[dt];if(en(tn))return tn.continueLabel}return 0}function Mn(hr){if(hr!==void 0&&hr>0){re===void 0&&(re=[]);var dt=v.createNumericLiteral(-1);return re[hr]===void 0?re[hr]=[dt]:re[hr].push(dt),dt}return v.createOmittedExpression()}function dn(hr){var dt=v.createNumericLiteral(hr);return e.addSyntheticTrailingComment(dt,3,k(hr)),dt}function oa(hr,dt){return e.Debug.assertLessThan(0,hr,"Invalid label"),e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression([dn(3),Mn(hr)])),dt)}function pt(hr,dt){return e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression(hr?[dn(2),hr]:[dn(2)])),dt)}function _t(hr){return e.setTextRange(v.createCallExpression(v.createPropertyAccessExpression(C,"sent"),void 0,[]),hr)}function Mt(){Ka(0)}function It(hr){hr?Ka(1,[hr]):Mt()}function rt(hr,dt,tn){Ka(2,[hr,dt],tn)}function Cn(hr,dt){Ka(3,[hr],dt)}function Qn(hr,dt,tn){Ka(4,[hr,dt],tn)}function Ra(hr,dt,tn){Ka(5,[hr,dt],tn)}function Ci(hr,dt){Ka(7,[hr],dt)}function _i(hr,dt){Ka(6,[hr],dt)}function va(hr,dt){Ka(8,[hr],dt)}function yi(hr,dt){Ka(9,[hr],dt)}function ro(){Ka(10)}function Ka(hr,dt,tn){N===void 0&&(N=[],y=[],D=[]),V===void 0&&dr(fr());var Un=N.length;N[Un]=hr,y[Un]=dt,D[Un]=tn}function Mi(){m=0,u=0,g=void 0,P=!1,te=!1,ue=void 0,X=void 0,j=void 0,Se=void 0,Ce=void 0;var hr=io();return A().createGeneratorHelper(e.setEmitFlags(v.createFunctionExpression(void 0,void 0,void 0,void 0,[v.createParameterDeclaration(void 0,void 0,void 0,C)],void 0,v.createBlock(hr,hr.length>0)),524288))}function io(){if(N){for(var hr=0;hr<N.length;hr++)Yo(hr);Hi(N.length)}else Hi(0);if(ue){var dt=v.createPropertyAccessExpression(C,"label"),tn=v.createSwitchStatement(dt,v.createCaseBlock(ue));return[e.startOnNewLine(tn)]}return X||[]}function ji(){X&&(No(!P),P=!1,te=!1,u++)}function Hi(hr){to(hr)&&(lo(hr),Ce=void 0,Zi(void 0,void 0)),X&&ue&&No(!1),Lo()}function to(hr){if(!te)return!0;if(!V||!re)return!1;for(var dt=0;dt<V.length;dt++)if(V[dt]===hr&&re[dt])return!0;return!1}function No(hr){if(ue||(ue=[]),X){if(Ce)for(var dt=Ce.length-1;dt>=0;dt--){var tn=Ce[dt];X=[v.createWithStatement(tn.expression,v.createBlock(X))]}if(Se){var Un=Se.startLabel,Oe=Se.catchLabel,oe=Se.finallyLabel,mr=Se.endLabel;X.unshift(v.createExpressionStatement(v.createCallExpression(v.createPropertyAccessExpression(v.createPropertyAccessExpression(C,"trys"),"push"),void 0,[v.createArrayLiteralExpression([Mn(Un),Mn(Oe),Mn(oe),Mn(mr)])]))),Se=void 0}hr&&X.push(v.createExpressionStatement(v.createAssignment(v.createPropertyAccessExpression(C,"label"),v.createNumericLiteral(u+1))))}ue.push(v.createCaseClause(v.createNumericLiteral(u),X||[])),X=void 0}function lo(hr){if(V)for(var dt=0;dt<V.length;dt++)V[dt]===hr&&(ji(),g===void 0&&(g=[]),g[u]===void 0?g[u]=[dt]:g[u].push(dt))}function Lo(){if(re!==void 0&&g!==void 0)for(var hr=0;hr<g.length;hr++){var dt=g[hr];if(dt!==void 0)for(var tn=0,Un=dt;tn<Un.length;tn++){var Oe=Un[tn],oe=re[Oe];if(oe!==void 0)for(var mr=0,se=oe;mr<se.length;mr++){var Be=se[mr];Be.text=String(hr)}}}}function Ha(hr){if(Z)for(;m<F.length&&ne[m]<=hr;m++){var dt=Z[m],tn=F[m];switch(dt.kind){case 0:tn===0?(j||(j=[]),X||(X=[]),j.push(Se),Se=dt):tn===1&&(Se=j.pop());break;case 1:tn===0?(Ce||(Ce=[]),Ce.push(dt)):tn===1&&Ce.pop();break}}}function Yo(hr){if(lo(hr),Ha(hr),!P){P=!1,te=!1;var dt=N[hr];if(dt!==0){if(dt===10)return Cs();var tn=y[hr];if(dt===1)return co(tn[0]);var Un=D[hr];switch(dt){case 2:return za(tn[0],tn[1],Un);case 3:return Mo(tn[0],Un);case 4:return Po(tn[0],tn[1],Un);case 5:return Fo(tn[0],tn[1],Un);case 6:return zo(tn[0],Un);case 7:return Es(tn[0],Un);case 8:return Zi(tn[0],Un);case 9:return hi(tn[0],Un)}}}}function co(hr){hr&&(X?X.push(hr):X=[hr])}function za(hr,dt,tn){co(e.setTextRange(v.createExpressionStatement(v.createAssignment(hr,dt)),tn))}function hi(hr,dt){P=!0,te=!0,co(e.setTextRange(v.createThrowStatement(hr),dt))}function Zi(hr,dt){P=!0,te=!0,co(e.setEmitFlags(e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression(hr?[dn(2),hr]:[dn(2)])),dt),384))}function Mo(hr,dt){P=!0,co(e.setEmitFlags(e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression([dn(3),Mn(hr)])),dt),384))}function Po(hr,dt,tn){co(e.setEmitFlags(v.createIfStatement(dt,e.setEmitFlags(e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression([dn(3),Mn(hr)])),tn),384)),1))}function Fo(hr,dt,tn){co(e.setEmitFlags(v.createIfStatement(v.createLogicalNot(dt),e.setEmitFlags(e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression([dn(3),Mn(hr)])),tn),384)),1))}function zo(hr,dt){P=!0,co(e.setEmitFlags(e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression(hr?[dn(4),hr]:[dn(4)])),dt),384))}function Es(hr,dt){P=!0,co(e.setEmitFlags(e.setTextRange(v.createReturnStatement(v.createArrayLiteralExpression([dn(5),hr])),dt),384))}function Cs(){P=!0,co(v.createReturnStatement(v.createArrayLiteralExpression([dn(7)])))}}e.transformGenerators=J}(jr||(jr={})),function(e){function n(p){function a(ze){switch(ze){case e.ModuleKind.AMD:return Q;case e.ModuleKind.UMD:return V;default:return F}}var d=p.factory,k=p.getEmitHelperFactory,J=p.startLexicalEnvironment,h=p.endLexicalEnvironment,v=p.hoistVariableDeclaration,A=p.getCompilerOptions(),z=p.getEmitResolver(),ie=p.getEmitHost(),b=e.getEmitScriptTarget(A),M=e.getEmitModuleKind(A),S=p.onSubstituteNode,B=p.onEmitNode;p.onSubstituteNode=de,p.onEmitNode=gr,p.enableSubstitution(207),p.enableSubstitution(209),p.enableSubstitution(79),p.enableSubstitution(220),p.enableSubstitution(295),p.enableEmitNotification(303);var H=[],I=[],w,x,O=[],q;return e.chainBundle(p,Z);function Z(ze){if(ze.isDeclarationFile||!(e.isEffectiveExternalModule(ze,A)||ze.transformFlags&4194304||e.isJsonSourceFile(ze)&&e.hasJsonModuleEmitEnabled(A)&&e.outFile(A)))return ze;w=ze,x=e.collectExternalModuleInfo(p,ze,z,A),H[e.getOriginalNodeId(ze)]=x;var Lr=a(M),Yr=Lr(ze);return w=void 0,x=void 0,q=!1,Yr}function ne(){return!!(!x.exportEquals&&e.isExternalModule(w))}function F(ze){J();var Lr=[],Yr=e.getStrictOptionValue(A,"alwaysStrict")||!A.noImplicitUseStrict&&e.isExternalModule(w),lt=d.copyPrologue(ze.statements,Lr,Yr&&!e.isJsonSourceFile(ze),D);if(ne()&&e.append(Lr,Ke()),e.length(x.exportedNames))for(var tt=50,Rt=0;Rt<x.exportedNames.length;Rt+=tt)e.append(Lr,d.createExpressionStatement(e.reduceLeft(x.exportedNames.slice(Rt,Rt+tt),function(bn,In){return d.createAssignment(d.createPropertyAccessExpression(d.createIdentifier("exports"),d.createIdentifier(e.idText(In))),bn)},d.createVoidZero())));e.append(Lr,e.visitNode(x.externalHelpersImportDeclaration,D,e.isStatement)),e.addRange(Lr,e.visitNodes(ze.statements,D,e.isStatement,lt)),y(Lr,!1),e.insertStatementsAfterStandardPrologue(Lr,h());var cn=d.updateSourceFile(ze,e.setTextRange(d.createNodeArray(Lr),ze.statements));return e.addEmitHelpers(cn,p.readEmitHelpers()),cn}function Q(ze){var Lr=d.createIdentifier("define"),Yr=e.tryGetModuleNameFromFile(d,ze,ie,A),lt=e.isJsonSourceFile(ze)&&ze,tt=re(ze,!0),Rt=tt.aliasedModuleNames,cn=tt.unaliasedModuleNames,bn=tt.importAliasNames,In=d.updateSourceFile(ze,e.setTextRange(d.createNodeArray([d.createExpressionStatement(d.createCallExpression(Lr,void 0,Gt(Gt([],Yr?[Yr]:[],!0),[d.createArrayLiteralExpression(lt?e.emptyArray:Gt(Gt([d.createStringLiteral("require"),d.createStringLiteral("exports")],Rt,!0),cn,!0)),lt?lt.statements.length?lt.statements[0].expression:d.createObjectLiteralExpression():d.createFunctionExpression(void 0,void 0,void 0,void 0,Gt([d.createParameterDeclaration(void 0,void 0,void 0,"require"),d.createParameterDeclaration(void 0,void 0,void 0,"exports")],bn,!0),void 0,N(ze))],!1)))]),ze.statements));return e.addEmitHelpers(In,p.readEmitHelpers()),In}function V(ze){var Lr=re(ze,!1),Yr=Lr.aliasedModuleNames,lt=Lr.unaliasedModuleNames,tt=Lr.importAliasNames,Rt=e.tryGetModuleNameFromFile(d,ze,ie,A),cn=d.createFunctionExpression(void 0,void 0,void 0,void 0,[d.createParameterDeclaration(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(d.createBlock([d.createIfStatement(d.createLogicalAnd(d.createTypeCheck(d.createIdentifier("module"),"object"),d.createTypeCheck(d.createPropertyAccessExpression(d.createIdentifier("module"),"exports"),"object")),d.createBlock([d.createVariableStatement(void 0,[d.createVariableDeclaration("v",void 0,void 0,d.createCallExpression(d.createIdentifier("factory"),void 0,[d.createIdentifier("require"),d.createIdentifier("exports")]))]),e.setEmitFlags(d.createIfStatement(d.createStrictInequality(d.createIdentifier("v"),d.createIdentifier("undefined")),d.createExpressionStatement(d.createAssignment(d.createPropertyAccessExpression(d.createIdentifier("module"),"exports"),d.createIdentifier("v")))),1)]),d.createIfStatement(d.createLogicalAnd(d.createTypeCheck(d.createIdentifier("define"),"function"),d.createPropertyAccessExpression(d.createIdentifier("define"),"amd")),d.createBlock([d.createExpressionStatement(d.createCallExpression(d.createIdentifier("define"),void 0,Gt(Gt([],Rt?[Rt]:[],!0),[d.createArrayLiteralExpression(Gt(Gt([d.createStringLiteral("require"),d.createStringLiteral("exports")],Yr,!0),lt,!0)),d.createIdentifier("factory")],!1)))])))],!0),void 0)),bn=d.updateSourceFile(ze,e.setTextRange(d.createNodeArray([d.createExpressionStatement(d.createCallExpression(cn,void 0,[d.createFunctionExpression(void 0,void 0,void 0,void 0,Gt([d.createParameterDeclaration(void 0,void 0,void 0,"require"),d.createParameterDeclaration(void 0,void 0,void 0,"exports")],tt,!0),void 0,N(ze))]))]),ze.statements));return e.addEmitHelpers(bn,p.readEmitHelpers()),bn}function re(ze,Lr){for(var Yr=[],lt=[],tt=[],Rt=0,cn=ze.amdDependencies;Rt<cn.length;Rt++){var bn=cn[Rt];bn.name?(Yr.push(d.createStringLiteral(bn.path)),tt.push(d.createParameterDeclaration(void 0,void 0,void 0,bn.name))):lt.push(d.createStringLiteral(bn.path))}for(var In=0,zn=x.externalImports;In<zn.length;In++){var ir=zn[In],Or=e.getExternalModuleNameLiteral(d,ir,w,ie,z,A),sr=e.getLocalNameForExternalImport(d,ir,w);Or&&(Lr&&sr?(e.setEmitFlags(sr,4),Yr.push(Or),tt.push(d.createParameterDeclaration(void 0,void 0,void 0,sr))):lt.push(Or))}return{aliasedModuleNames:Yr,unaliasedModuleNames:lt,importAliasNames:tt}}function T(ze){if(!(e.isImportEqualsDeclaration(ze)||e.isExportDeclaration(ze)||!e.getExternalModuleNameLiteral(d,ze,w,ie,z,A))){var Lr=e.getLocalNameForExternalImport(d,ze,w),Yr=Te(ze,Lr);if(Yr!==Lr)return d.createExpressionStatement(d.createAssignment(Lr,Yr))}}function N(ze){J();var Lr=[],Yr=d.copyPrologue(ze.statements,Lr,!A.noImplicitUseStrict,D);ne()&&e.append(Lr,Ke()),e.length(x.exportedNames)&&e.append(Lr,d.createExpressionStatement(e.reduceLeft(x.exportedNames,function(tt,Rt){return d.createAssignment(d.createPropertyAccessExpression(d.createIdentifier("exports"),d.createIdentifier(e.idText(Rt))),tt)},d.createVoidZero()))),e.append(Lr,e.visitNode(x.externalHelpersImportDeclaration,D,e.isStatement)),M===e.ModuleKind.AMD&&e.addRange(Lr,e.mapDefined(x.externalImports,T)),e.addRange(Lr,e.visitNodes(ze.statements,D,e.isStatement,Yr)),y(Lr,!0),e.insertStatementsAfterStandardPrologue(Lr,h());var lt=d.createBlock(Lr,!0);return q&&e.addEmitHelper(lt,f),lt}function y(ze,Lr){if(x.exportEquals){var Yr=e.visitNode(x.exportEquals.expression,m);if(Yr)if(Lr){var lt=d.createReturnStatement(Yr);e.setTextRange(lt,x.exportEquals),e.setEmitFlags(lt,1920),ze.push(lt)}else{var lt=d.createExpressionStatement(d.createAssignment(d.createPropertyAccessExpression(d.createIdentifier("module"),"exports"),Yr));e.setTextRange(lt,x.exportEquals),e.setEmitFlags(lt,1536),ze.push(lt)}}}function D(ze){switch(ze.kind){case 265:return ge(ze);case 264:return Pe(ze);case 271:return Ie(ze);case 270:return Ge(ze);case 236:return Ve(ze);case 255:return he(ze);case 256:return ve(ze);case 350:return qe(ze);case 351:return De(ze);default:return m(ze)}}function C(ze,Lr){if(!(ze.transformFlags&71305216))return ze;switch(ze.kind){case 241:return te(ze);case 237:return ue(ze);case 211:return X(ze,Lr);case 348:return j(ze,Lr);case 207:if(e.isImportCall(ze)&&w.impliedNodeFormat===void 0)return Ce(ze);break;case 220:if(e.isDestructuringAssignment(ze))return P(ze,Lr);break;case 218:case 219:return Se(ze,Lr)}return e.visitEachChild(ze,m,p)}function m(ze){return C(ze,!1)}function u(ze){return C(ze,!0)}function g(ze){if(e.isObjectLiteralExpression(ze))for(var Lr=0,Yr=ze.properties;Lr<Yr.length;Lr++){var lt=Yr[Lr];switch(lt.kind){case 294:if(g(lt.initializer))return!0;break;case 295:if(g(lt.name))return!0;break;case 296:if(g(lt.expression))return!0;break;case 168:case 171:case 172:return!1;default:e.Debug.assertNever(lt,"Unhandled object member kind")}}else if(e.isArrayLiteralExpression(ze))for(var tt=0,Rt=ze.elements;tt<Rt.length;tt++){var lt=Rt[tt];if(e.isSpreadElement(lt)){if(g(lt.expression))return!0}else if(g(lt))return!0}else if(e.isIdentifier(ze))return e.length(Jr(ze))>(e.isExportName(ze)?1:0);return!1}function P(ze,Lr){return g(ze.left)?e.flattenDestructuringAssignment(ze,m,p,0,!Lr,_e):e.visitEachChild(ze,m,p)}function te(ze){return d.updateForStatement(ze,e.visitNode(ze.initializer,u,e.isForInitializer),e.visitNode(ze.condition,m,e.isExpression),e.visitNode(ze.incrementor,u,e.isExpression),e.visitIterationBody(ze.statement,m,p))}function ue(ze){return d.updateExpressionStatement(ze,e.visitNode(ze.expression,u,e.isExpression))}function X(ze,Lr){return d.updateParenthesizedExpression(ze,e.visitNode(ze.expression,Lr?u:m,e.isExpression))}function j(ze,Lr){return d.updatePartiallyEmittedExpression(ze,e.visitNode(ze.expression,Lr?u:m,e.isExpression))}function Se(ze,Lr){if((ze.operator===45||ze.operator===46)&&e.isIdentifier(ze.operand)&&!e.isGeneratedIdentifier(ze.operand)&&!e.isLocalName(ze.operand)&&!e.isDeclarationNameOfEnumOrNamespace(ze.operand)){var Yr=Jr(ze.operand);if(Yr){var lt=void 0,tt=e.visitNode(ze.operand,m,e.isExpression);e.isPrefixUnaryExpression(ze)?tt=d.updatePrefixUnaryExpression(ze,tt):(tt=d.updatePostfixUnaryExpression(ze,tt),Lr||(lt=d.createTempVariable(v),tt=d.createAssignment(lt,tt),e.setTextRange(tt,ze)),tt=d.createComma(tt,d.cloneNode(ze.operand)),e.setTextRange(tt,ze));for(var Rt=0,cn=Yr;Rt<cn.length;Rt++){var bn=cn[Rt];O[e.getNodeId(tt)]=!0,tt=Hr(bn,tt),e.setTextRange(tt,ze)}return lt&&(O[e.getNodeId(tt)]=!0,tt=d.createComma(tt,lt),e.setTextRange(tt,ze)),tt}}return e.visitEachChild(ze,m,p)}function Ce(ze){var Lr=e.getExternalModuleNameLiteral(d,ze,w,ie,z,A),Yr=e.visitNode(e.firstOrUndefined(ze.arguments),m),lt=Lr&&(!Yr||!e.isStringLiteral(Yr)||Yr.text!==Lr.text)?Lr:Yr,tt=!!(ze.transformFlags&8192);switch(A.module){case e.ModuleKind.AMD:return Y(lt,tt);case e.ModuleKind.UMD:return R(lt??d.createVoidZero(),tt);case e.ModuleKind.CommonJS:default:return U(lt,tt)}}function R(ze,Lr){if(q=!0,e.isSimpleCopiableExpression(ze)){var Yr=e.isGeneratedIdentifier(ze)?ze:e.isStringLiteral(ze)?d.createStringLiteralFromNode(ze):e.setEmitFlags(e.setTextRange(d.cloneNode(ze),ze),1536);return d.createConditionalExpression(d.createIdentifier("__syncRequire"),void 0,U(ze,Lr),void 0,Y(Yr,Lr))}else{var lt=d.createTempVariable(v);return d.createComma(d.createAssignment(lt,ze),d.createConditionalExpression(d.createIdentifier("__syncRequire"),void 0,U(lt,Lr),void 0,Y(lt,Lr)))}}function Y(ze,Lr){var Yr=d.createUniqueName("resolve"),lt=d.createUniqueName("reject"),tt=[d.createParameterDeclaration(void 0,void 0,void 0,Yr),d.createParameterDeclaration(void 0,void 0,void 0,lt)],Rt=d.createBlock([d.createExpressionStatement(d.createCallExpression(d.createIdentifier("require"),void 0,[d.createArrayLiteralExpression([ze||d.createOmittedExpression()]),Yr,lt]))]),cn;b>=2?cn=d.createArrowFunction(void 0,void 0,tt,void 0,void 0,Rt):(cn=d.createFunctionExpression(void 0,void 0,void 0,void 0,tt,void 0,Rt),Lr&&e.setEmitFlags(cn,8));var bn=d.createNewExpression(d.createIdentifier("Promise"),void 0,[cn]);return e.getESModuleInterop(A)?d.createCallExpression(d.createPropertyAccessExpression(bn,d.createIdentifier("then")),void 0,[k().createImportStarCallbackHelper()]):bn}function U(ze,Lr){var Yr=d.createCallExpression(d.createPropertyAccessExpression(d.createIdentifier("Promise"),"resolve"),void 0,[]),lt=d.createCallExpression(d.createIdentifier("require"),void 0,ze?[ze]:[]);e.getESModuleInterop(A)&&(lt=k().createImportStarHelper(lt));var tt;return b>=2?tt=d.createArrowFunction(void 0,void 0,[],void 0,void 0,lt):(tt=d.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,d.createBlock([d.createReturnStatement(lt)])),Lr&&e.setEmitFlags(tt,8)),d.createCallExpression(d.createPropertyAccessExpression(Yr,"then"),void 0,[tt])}function K(ze,Lr){return!e.getESModuleInterop(A)||e.getEmitFlags(ze)&67108864?Lr:e.getExportNeedsImportStarHelper(ze)?k().createImportStarHelper(Lr):Lr}function Te(ze,Lr){return!e.getESModuleInterop(A)||e.getEmitFlags(ze)&67108864?Lr:e.getImportNeedsImportStarHelper(ze)?k().createImportStarHelper(Lr):e.getImportNeedsImportDefaultHelper(ze)?k().createImportDefaultHelper(Lr):Lr}function ge(ze){var Lr,Yr=e.getNamespaceDeclarationNode(ze);if(M!==e.ModuleKind.AMD)if(ze.importClause){var lt=[];Yr&&!e.isDefaultImport(ze)?lt.push(d.createVariableDeclaration(d.cloneNode(Yr.name),void 0,void 0,Te(ze,ke(ze)))):(lt.push(d.createVariableDeclaration(d.getGeneratedNameForNode(ze),void 0,void 0,Te(ze,ke(ze)))),Yr&&e.isDefaultImport(ze)&&lt.push(d.createVariableDeclaration(d.cloneNode(Yr.name),void 0,void 0,d.getGeneratedNameForNode(ze)))),Lr=e.append(Lr,e.setOriginalNode(e.setTextRange(d.createVariableStatement(void 0,d.createVariableDeclarationList(lt,b>=2?2:0)),ze),ze))}else return e.setOriginalNode(e.setTextRange(d.createExpressionStatement(ke(ze)),ze),ze);else Yr&&e.isDefaultImport(ze)&&(Lr=e.append(Lr,d.createVariableStatement(void 0,d.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(d.createVariableDeclaration(d.cloneNode(Yr.name),void 0,void 0,d.getGeneratedNameForNode(ze)),ze),ze)],b>=2?2:0))));if(Xe(ze)){var tt=e.getOriginalNodeId(ze);I[tt]=Ae(I[tt],ze)}else Lr=Ae(Lr,ze);return e.singleOrMany(Lr)}function ke(ze){var Lr=e.getExternalModuleNameLiteral(d,ze,w,ie,z,A),Yr=[];return Lr&&Yr.push(Lr),d.createCallExpression(d.createIdentifier("require"),void 0,Yr)}function Pe(ze){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(ze),"import= for internal module references should be handled in an earlier transformer.");var Lr;if(M!==e.ModuleKind.AMD?e.hasSyntacticModifier(ze,1)?Lr=e.append(Lr,e.setOriginalNode(e.setTextRange(d.createExpressionStatement(Hr(ze.name,ke(ze))),ze),ze)):Lr=e.append(Lr,e.setOriginalNode(e.setTextRange(d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(d.cloneNode(ze.name),void 0,void 0,ke(ze))],b>=2?2:0)),ze),ze)):e.hasSyntacticModifier(ze,1)&&(Lr=e.append(Lr,e.setOriginalNode(e.setTextRange(d.createExpressionStatement(Hr(d.getExportName(ze),d.getLocalName(ze))),ze),ze))),Xe(ze)){var Yr=e.getOriginalNodeId(ze);I[Yr]=Ye(I[Yr],ze)}else Lr=Ye(Lr,ze);return e.singleOrMany(Lr)}function Ie(ze){if(ze.moduleSpecifier){var Lr=d.getGeneratedNameForNode(ze);if(ze.exportClause&&e.isNamedExports(ze.exportClause)){var Yr=[];M!==e.ModuleKind.AMD&&Yr.push(e.setOriginalNode(e.setTextRange(d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(Lr,void 0,void 0,ke(ze))])),ze),ze));for(var lt=0,tt=ze.exportClause.elements;lt<tt.length;lt++){var Rt=tt[lt];if(b===0)Yr.push(e.setOriginalNode(e.setTextRange(d.createExpressionStatement(k().createCreateBindingHelper(Lr,d.createStringLiteralFromNode(Rt.propertyName||Rt.name),Rt.propertyName?d.createStringLiteralFromNode(Rt.name):void 0)),Rt),Rt));else{var cn=!!e.getESModuleInterop(A)&&!(e.getEmitFlags(ze)&67108864)&&e.idText(Rt.propertyName||Rt.name)==="default",bn=d.createPropertyAccessExpression(cn?k().createImportDefaultHelper(Lr):Lr,Rt.propertyName||Rt.name);Yr.push(e.setOriginalNode(e.setTextRange(d.createExpressionStatement(Hr(d.getExportName(Rt),bn,void 0,!0)),Rt),Rt))}}return e.singleOrMany(Yr)}else if(ze.exportClause){var Yr=[];return Yr.push(e.setOriginalNode(e.setTextRange(d.createExpressionStatement(Hr(d.cloneNode(ze.exportClause.name),K(ze,M!==e.ModuleKind.AMD?ke(ze):e.isExportNamespaceAsDefaultDeclaration(ze)?Lr:d.createIdentifier(e.idText(ze.exportClause.name))))),ze),ze)),e.singleOrMany(Yr)}else return e.setOriginalNode(e.setTextRange(d.createExpressionStatement(k().createExportStarHelper(M!==e.ModuleKind.AMD?ke(ze):Lr)),ze),ze)}}function Ge(ze){if(!ze.isExportEquals){var Lr,Yr=ze.original;if(Yr&&Xe(Yr)){var lt=e.getOriginalNodeId(ze);I[lt]=kr(I[lt],d.createIdentifier("default"),e.visitNode(ze.expression,m),ze,!0)}else Lr=kr(Lr,d.createIdentifier("default"),e.visitNode(ze.expression,m),ze,!0);return e.singleOrMany(Lr)}}function he(ze){var Lr;if(e.hasSyntacticModifier(ze,1)?Lr=e.append(Lr,e.setOriginalNode(e.setTextRange(d.createFunctionDeclaration(void 0,e.visitNodes(ze.modifiers,ur,e.isModifier),ze.asteriskToken,d.getDeclarationName(ze,!0,!0),void 0,e.visitNodes(ze.parameters,m),void 0,e.visitEachChild(ze.body,m,p)),ze),ze)):Lr=e.append(Lr,e.visitEachChild(ze,m,p)),Xe(ze)){var Yr=e.getOriginalNodeId(ze);I[Yr]=lr(I[Yr],ze)}else Lr=lr(Lr,ze);return e.singleOrMany(Lr)}function ve(ze){var Lr;if(e.hasSyntacticModifier(ze,1)?Lr=e.append(Lr,e.setOriginalNode(e.setTextRange(d.createClassDeclaration(void 0,e.visitNodes(ze.modifiers,ur,e.isModifier),d.getDeclarationName(ze,!0,!0),void 0,e.visitNodes(ze.heritageClauses,m),e.visitNodes(ze.members,m)),ze),ze)):Lr=e.append(Lr,e.visitEachChild(ze,m,p)),Xe(ze)){var Yr=e.getOriginalNodeId(ze);I[Yr]=lr(I[Yr],ze)}else Lr=lr(Lr,ze);return e.singleOrMany(Lr)}function Ve(ze){var Lr,Yr,lt;if(e.hasSyntacticModifier(ze,1)){for(var tt=void 0,Rt=!1,cn=0,bn=ze.declarationList.declarations;cn<bn.length;cn++){var In=bn[cn];if(e.isIdentifier(In.name)&&e.isLocalName(In.name))tt||(tt=e.visitNodes(ze.modifiers,ur,e.isModifier)),Yr=e.append(Yr,In);else if(In.initializer)if(!e.isBindingPattern(In.name)&&(e.isArrowFunction(In.initializer)||e.isFunctionExpression(In.initializer)||e.isClassExpression(In.initializer))){var zn=d.createAssignment(e.setTextRange(d.createPropertyAccessExpression(d.createIdentifier("exports"),In.name),In.name),d.createIdentifier(e.getTextOfIdentifierOrLiteral(In.name))),ir=d.createVariableDeclaration(In.name,In.exclamationToken,In.type,e.visitNode(In.initializer,m));Yr=e.append(Yr,ir),lt=e.append(lt,zn),Rt=!0}else lt=e.append(lt,Le(In))}if(Yr&&(Lr=e.append(Lr,d.updateVariableStatement(ze,tt,d.updateVariableDeclarationList(ze.declarationList,Yr)))),lt){var Or=e.setOriginalNode(e.setTextRange(d.createExpressionStatement(d.inlineExpressions(lt)),ze),ze);Rt&&e.removeAllComments(Or),Lr=e.append(Lr,Or)}}else Lr=e.append(Lr,e.visitEachChild(ze,m,p));if(Xe(ze)){var sr=e.getOriginalNodeId(ze);I[sr]=Dr(I[sr],ze)}else Lr=Dr(Lr,ze);return e.singleOrMany(Lr)}function _e(ze,Lr,Yr){var lt=Jr(ze);if(lt){for(var tt=e.isExportName(ze)?Lr:d.createAssignment(ze,Lr),Rt=0,cn=lt;Rt<cn.length;Rt++){var bn=cn[Rt];e.setEmitFlags(tt,4),tt=Hr(bn,tt,Yr)}return tt}return d.createAssignment(ze,Lr)}function Le(ze){return e.isBindingPattern(ze.name)?e.flattenDestructuringAssignment(e.visitNode(ze,m),void 0,p,0,!1,_e):d.createAssignment(e.setTextRange(d.createPropertyAccessExpression(d.createIdentifier("exports"),ze.name),ze.name),ze.initializer?e.visitNode(ze.initializer,m):d.createVoidZero())}function qe(ze){if(Xe(ze)&&ze.original.kind===236){var Lr=e.getOriginalNodeId(ze);I[Lr]=Dr(I[Lr],ze.original)}return ze}function Xe(ze){return(e.getEmitFlags(ze)&4194304)!==0}function De(ze){var Lr=e.getOriginalNodeId(ze),Yr=I[Lr];return Yr?(delete I[Lr],e.append(Yr,ze)):ze}function Ae(ze,Lr){if(x.exportEquals)return ze;var Yr=Lr.importClause;if(!Yr)return ze;Yr.name&&(ze=Ar(ze,Yr));var lt=Yr.namedBindings;if(lt)switch(lt.kind){case 267:ze=Ar(ze,lt);break;case 268:for(var tt=0,Rt=lt.elements;tt<Rt.length;tt++){var cn=Rt[tt];ze=Ar(ze,cn,!0)}break}return ze}function Ye(ze,Lr){return x.exportEquals?ze:Ar(ze,Lr)}function Dr(ze,Lr){if(x.exportEquals)return ze;for(var Yr=0,lt=Lr.declarationList.declarations;Yr<lt.length;Yr++){var tt=lt[Yr];ze=br(ze,tt)}return ze}function br(ze,Lr){if(x.exportEquals)return ze;if(e.isBindingPattern(Lr.name))for(var Yr=0,lt=Lr.name.elements;Yr<lt.length;Yr++){var tt=lt[Yr];e.isOmittedExpression(tt)||(ze=br(ze,tt))}else e.isGeneratedIdentifier(Lr.name)||(ze=Ar(ze,Lr));return ze}function lr(ze,Lr){if(x.exportEquals)return ze;if(e.hasSyntacticModifier(Lr,1)){var Yr=e.hasSyntacticModifier(Lr,512)?d.createIdentifier("default"):d.getDeclarationName(Lr);ze=kr(ze,Yr,d.getLocalName(Lr),Lr)}return Lr.name&&(ze=Ar(ze,Lr)),ze}function Ar(ze,Lr,Yr){var lt=d.getDeclarationName(Lr),tt=x.exportSpecifiers.get(e.idText(lt));if(tt)for(var Rt=0,cn=tt;Rt<cn.length;Rt++){var bn=cn[Rt];ze=kr(ze,bn.name,lt,bn.name,void 0,Yr)}return ze}function kr(ze,Lr,Yr,lt,tt,Rt){return ze=e.append(ze,Me(Lr,Yr,lt,tt,Rt)),ze}function Ke(){var ze;return b===0?ze=d.createExpressionStatement(Hr(d.createIdentifier("__esModule"),d.createTrue())):ze=d.createExpressionStatement(d.createCallExpression(d.createPropertyAccessExpression(d.createIdentifier("Object"),"defineProperty"),void 0,[d.createIdentifier("exports"),d.createStringLiteral("__esModule"),d.createObjectLiteralExpression([d.createPropertyAssignment("value",d.createTrue())])])),e.setEmitFlags(ze,1048576),ze}function Me(ze,Lr,Yr,lt,tt){var Rt=e.setTextRange(d.createExpressionStatement(Hr(ze,Lr,void 0,tt)),Yr);return e.startOnNewLine(Rt),lt||e.setEmitFlags(Rt,1536),Rt}function Hr(ze,Lr,Yr,lt){return e.setTextRange(lt&&b!==0?d.createCallExpression(d.createPropertyAccessExpression(d.createIdentifier("Object"),"defineProperty"),void 0,[d.createIdentifier("exports"),d.createStringLiteralFromNode(ze),d.createObjectLiteralExpression([d.createPropertyAssignment("enumerable",d.createTrue()),d.createPropertyAssignment("get",d.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,d.createBlock([d.createReturnStatement(Lr)])))])]):d.createAssignment(d.createPropertyAccessExpression(d.createIdentifier("exports"),d.cloneNode(ze)),Lr),Yr)}function ur(ze){switch(ze.kind){case 93:case 88:return}return ze}function gr(ze,Lr,Yr){Lr.kind===303?(w=Lr,x=H[e.getOriginalNodeId(w)],B(ze,Lr,Yr),w=void 0,x=void 0):B(ze,Lr,Yr)}function de(ze,Lr){return Lr=S(ze,Lr),Lr.id&&O[Lr.id]?Lr:ze===1?$e(Lr):e.isShorthandPropertyAssignment(Lr)?Fe(Lr):Lr}function Fe(ze){var Lr=ze.name,Yr=He(Lr);if(Yr!==Lr){if(ze.objectAssignmentInitializer){var lt=d.createAssignment(Yr,ze.objectAssignmentInitializer);return e.setTextRange(d.createPropertyAssignment(Lr,lt),ze)}return e.setTextRange(d.createPropertyAssignment(Lr,Yr),ze)}return ze}function $e(ze){switch(ze.kind){case 79:return He(ze);case 207:return Sr(ze);case 209:return Pr(ze);case 220:return pr(ze)}return ze}function Sr(ze){if(e.isIdentifier(ze.expression)){var Lr=He(ze.expression);if(O[e.getNodeId(Lr)]=!0,!e.isIdentifier(Lr))return e.addEmitFlags(d.updateCallExpression(ze,Lr,void 0,ze.arguments),536870912)}return ze}function Pr(ze){if(e.isIdentifier(ze.tag)){var Lr=He(ze.tag);if(O[e.getNodeId(Lr)]=!0,!e.isIdentifier(Lr))return e.addEmitFlags(d.updateTaggedTemplateExpression(ze,Lr,void 0,ze.template),536870912)}return ze}function He(ze){var Lr,Yr;if(e.getEmitFlags(ze)&4096){var lt=e.getExternalHelpersModuleName(w);return lt?d.createPropertyAccessExpression(lt,ze):ze}else if(!(e.isGeneratedIdentifier(ze)&&!(ze.autoGenerateFlags&64))&&!e.isLocalName(ze)){var tt=z.getReferencedExportContainer(ze,e.isExportName(ze));if(tt&&tt.kind===303)return e.setTextRange(d.createPropertyAccessExpression(d.createIdentifier("exports"),d.cloneNode(ze)),ze);var Rt=z.getReferencedImportDeclaration(ze);if(Rt){if(e.isImportClause(Rt))return e.setTextRange(d.createPropertyAccessExpression(d.getGeneratedNameForNode(Rt.parent),d.createIdentifier("default")),ze);if(e.isImportSpecifier(Rt)){var cn=Rt.propertyName||Rt.name;return e.setTextRange(d.createPropertyAccessExpression(d.getGeneratedNameForNode(((Yr=(Lr=Rt.parent)===null||Lr===void 0?void 0:Lr.parent)===null||Yr===void 0?void 0:Yr.parent)||Rt),d.cloneNode(cn)),ze)}}}return ze}function pr(ze){if(e.isAssignmentOperator(ze.operatorToken.kind)&&e.isIdentifier(ze.left)&&!e.isGeneratedIdentifier(ze.left)&&!e.isLocalName(ze.left)&&!e.isDeclarationNameOfEnumOrNamespace(ze.left)){var Lr=Jr(ze.left);if(Lr){for(var Yr=ze,lt=0,tt=Lr;lt<tt.length;lt++){var Rt=tt[lt];O[e.getNodeId(Yr)]=!0,Yr=Hr(Rt,Yr,ze)}return Yr}}return ze}function Jr(ze){if(!e.isGeneratedIdentifier(ze)){var Lr=z.getReferencedImportDeclaration(ze)||z.getReferencedValueDeclaration(ze);if(Lr)return x&&x.exportedBindings[e.getOriginalNodeId(Lr)]}}}e.transformModule=n;var f={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
  235. var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}(jr||(jr={})),function(e){function n(f){var p=f.factory,a=f.startLexicalEnvironment,d=f.endLexicalEnvironment,k=f.hoistVariableDeclaration,J=f.getCompilerOptions(),h=f.getEmitResolver(),v=f.getEmitHost(),A=f.onSubstituteNode,z=f.onEmitNode;f.onSubstituteNode=lt,f.onEmitNode=Yr,f.enableSubstitution(79),f.enableSubstitution(295),f.enableSubstitution(220),f.enableSubstitution(230),f.enableEmitNotification(303);var ie=[],b=[],M=[],S=[],B=[],H,I,w,x,O,q,Z;return e.chainBundle(f,ne);function ne(ye){if(ye.isDeclarationFile||!(e.isEffectiveExternalModule(ye,J)||ye.transformFlags&4194304))return ye;var or=e.getOriginalNodeId(ye);H=ye,q=ye,I=ie[or]=e.collectExternalModuleInfo(f,ye,h,J),w=p.createUniqueName("exports"),M[or]=w,x=B[or]=p.createUniqueName("context");var fe=F(I.externalImports),je=Q(ye,fe),Ee=p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,w),p.createParameterDeclaration(void 0,void 0,void 0,x)],void 0,je),We=e.tryGetModuleNameFromFile(p,ye,v,J),$=p.createArrayLiteralExpression(e.map(fe,function(me){return me.name})),Ne=e.setEmitFlags(p.updateSourceFile(ye,e.setTextRange(p.createNodeArray([p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(p.createIdentifier("System"),"register"),void 0,We?[We,$,Ee]:[$,Ee]))]),ye.statements)),1024);return e.outFile(J)||e.moveEmitHelpers(Ne,je,function(me){return!me.scoped}),Z&&(S[or]=Z,Z=void 0),H=void 0,I=void 0,w=void 0,x=void 0,O=void 0,q=void 0,Ne}function F(ye){for(var or=new e.Map,fe=[],je=0,Ee=ye;je<Ee.length;je++){var We=Ee[je],$=e.getExternalModuleNameLiteral(p,We,H,v,h,J);if($){var Ne=$.text,me=or.get(Ne);me!==void 0?fe[me].externalImports.push(We):(or.set(Ne,fe.length),fe.push({name:$,externalImports:[We]}))}}return fe}function Q(ye,or){var fe=[];a();var je=e.getStrictOptionValue(J,"alwaysStrict")||!J.noImplicitUseStrict&&e.isExternalModule(H),Ee=p.copyPrologue(ye.statements,fe,je,N);fe.push(p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration("__moduleName",void 0,void 0,p.createLogicalAnd(x,p.createPropertyAccessExpression(x,"id")))]))),e.visitNode(I.externalHelpersImportDeclaration,N,e.isStatement);var We=e.visitNodes(ye.statements,N,e.isStatement,Ee);e.addRange(fe,O),e.insertStatementsAfterStandardPrologue(fe,d());var $=V(fe),Ne=ye.transformFlags&1048576?p.createModifiersFromModifierFlags(256):void 0,me=p.createObjectLiteralExpression([p.createPropertyAssignment("setters",T($,or)),p.createPropertyAssignment("execute",p.createFunctionExpression(Ne,void 0,void 0,void 0,[],void 0,p.createBlock(We,!0)))],!0);return fe.push(p.createReturnStatement(me)),p.createBlock(fe,!0)}function V(ye){if(I.hasExportStarsToExportValues){if(!I.exportedNames&&I.exportSpecifiers.size===0){for(var or=!1,fe=0,je=I.externalImports;fe<je.length;fe++){var Ee=je[fe];if(Ee.kind===271&&Ee.exportClause){or=!0;break}}if(!or){var We=re(void 0);return ye.push(We),We.name}}var $=[];if(I.exportedNames)for(var Ne=0,me=I.exportedNames;Ne<me.length;Ne++){var Ze=me[Ne];Ze.escapedText!=="default"&&$.push(p.createPropertyAssignment(p.createStringLiteralFromNode(Ze),p.createTrue()))}var Cr=p.createUniqueName("exportedNames");ye.push(p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(Cr,void 0,void 0,p.createObjectLiteralExpression($,!0))])));var fr=re(Cr);return ye.push(fr),fr.name}}function re(ye){var or=p.createUniqueName("exportStar"),fe=p.createIdentifier("m"),je=p.createIdentifier("n"),Ee=p.createIdentifier("exports"),We=p.createStrictInequality(je,p.createStringLiteral("default"));return ye&&(We=p.createLogicalAnd(We,p.createLogicalNot(p.createCallExpression(p.createPropertyAccessExpression(ye,"hasOwnProperty"),void 0,[je])))),p.createFunctionDeclaration(void 0,void 0,void 0,or,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,fe)],void 0,p.createBlock([p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(Ee,void 0,void 0,p.createObjectLiteralExpression([]))])),p.createForInStatement(p.createVariableDeclarationList([p.createVariableDeclaration(je)]),fe,p.createBlock([e.setEmitFlags(p.createIfStatement(We,p.createExpressionStatement(p.createAssignment(p.createElementAccessExpression(Ee,je),p.createElementAccessExpression(fe,je)))),1)])),p.createExpressionStatement(p.createCallExpression(w,void 0,[Ee]))],!0))}function T(ye,or){for(var fe=[],je=0,Ee=or;je<Ee.length;je++){for(var We=Ee[je],$=e.forEach(We.externalImports,function(xr){return e.getLocalNameForExternalImport(p,xr,H)}),Ne=$?p.getGeneratedNameForNode($):p.createUniqueName(""),me=[],Ze=0,Cr=We.externalImports;Ze<Cr.length;Ze++){var fr=Cr[Ze],dr=e.getLocalNameForExternalImport(p,fr,H);switch(fr.kind){case 265:if(!fr.importClause)break;case 264:e.Debug.assert(dr!==void 0),me.push(p.createExpressionStatement(p.createAssignment(dr,Ne)));break;case 271:if(e.Debug.assert(dr!==void 0),fr.exportClause)if(e.isNamedExports(fr.exportClause)){for(var et=[],yt=0,Vr=fr.exportClause.elements;yt<Vr.length;yt++){var tr=Vr[yt];et.push(p.createPropertyAssignment(p.createStringLiteral(e.idText(tr.name)),p.createElementAccessExpression(Ne,p.createStringLiteral(e.idText(tr.propertyName||tr.name)))))}me.push(p.createExpressionStatement(p.createCallExpression(w,void 0,[p.createObjectLiteralExpression(et,!0)])))}else me.push(p.createExpressionStatement(p.createCallExpression(w,void 0,[p.createStringLiteral(e.idText(fr.exportClause.name)),Ne])));else me.push(p.createExpressionStatement(p.createCallExpression(ye,void 0,[Ne])));break}}fe.push(p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,Ne)],void 0,p.createBlock(me,!0)))}return p.createArrayLiteralExpression(fe,!0)}function N(ye){switch(ye.kind){case 265:return y(ye);case 264:return C(ye);case 271:return D(ye);case 270:return m(ye);default:return Ve(ye)}}function y(ye){var or;if(ye.importClause&&k(e.getLocalNameForExternalImport(p,ye,H)),Y(ye)){var fe=e.getOriginalNodeId(ye);b[fe]=K(b[fe],ye)}else or=K(or,ye);return e.singleOrMany(or)}function D(ye){e.Debug.assertIsDefined(ye)}function C(ye){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(ye),"import= for internal module references should be handled in an earlier transformer.");var or;if(k(e.getLocalNameForExternalImport(p,ye,H)),Y(ye)){var fe=e.getOriginalNodeId(ye);b[fe]=Te(b[fe],ye)}else or=Te(or,ye);return e.singleOrMany(or)}function m(ye){if(!ye.isExportEquals){var or=e.visitNode(ye.expression,de,e.isExpression),fe=ye.original;if(fe&&Y(fe)){var je=e.getOriginalNodeId(ye);b[je]=Ge(b[je],p.createIdentifier("default"),or,!0)}else return he(p.createIdentifier("default"),or,!0)}}function u(ye){if(e.hasSyntacticModifier(ye,1)?O=e.append(O,p.updateFunctionDeclaration(ye,ye.decorators,e.visitNodes(ye.modifiers,Lr,e.isModifier),ye.asteriskToken,p.getDeclarationName(ye,!0,!0),void 0,e.visitNodes(ye.parameters,de,e.isParameterDeclaration),void 0,e.visitNode(ye.body,de,e.isBlock))):O=e.append(O,e.visitEachChild(ye,de,f)),Y(ye)){var or=e.getOriginalNodeId(ye);b[or]=Pe(b[or],ye)}else O=Pe(O,ye)}function g(ye){var or,fe=p.getLocalName(ye);if(k(fe),or=e.append(or,e.setTextRange(p.createExpressionStatement(p.createAssignment(fe,e.setTextRange(p.createClassExpression(e.visitNodes(ye.decorators,de,e.isDecorator),void 0,ye.name,void 0,e.visitNodes(ye.heritageClauses,de,e.isHeritageClause),e.visitNodes(ye.members,de,e.isClassElement)),ye))),ye)),Y(ye)){var je=e.getOriginalNodeId(ye);b[je]=Pe(b[je],ye)}else or=Pe(or,ye);return e.singleOrMany(or)}function P(ye){if(!ue(ye.declarationList))return e.visitNode(ye,de,e.isStatement);for(var or,fe=e.hasSyntacticModifier(ye,1),je=Y(ye),Ee=0,We=ye.declarationList.declarations;Ee<We.length;Ee++){var $=We[Ee];$.initializer?or=e.append(or,X($,fe&&!je)):te($)}var Ne;if(or&&(Ne=e.append(Ne,e.setTextRange(p.createExpressionStatement(p.inlineExpressions(or)),ye))),je){var me=e.getOriginalNodeId(ye);b[me]=ge(b[me],ye,fe)}else Ne=ge(Ne,ye,!1);return e.singleOrMany(Ne)}function te(ye){if(e.isBindingPattern(ye.name))for(var or=0,fe=ye.name.elements;or<fe.length;or++){var je=fe[or];e.isOmittedExpression(je)||te(je)}else k(p.cloneNode(ye.name))}function ue(ye){return(e.getEmitFlags(ye)&2097152)===0&&(q.kind===303||(e.getOriginalNode(ye).flags&3)===0)}function X(ye,or){var fe=or?j:Se;return e.isBindingPattern(ye.name)?e.flattenDestructuringAssignment(ye,de,f,0,!1,fe):ye.initializer?fe(ye.name,e.visitNode(ye.initializer,de,e.isExpression)):ye.name}function j(ye,or,fe){return Ce(ye,or,fe,!0)}function Se(ye,or,fe){return Ce(ye,or,fe,!1)}function Ce(ye,or,fe,je){return k(p.cloneNode(ye)),je?ve(ye,Or(e.setTextRange(p.createAssignment(ye,or),fe))):Or(e.setTextRange(p.createAssignment(ye,or),fe))}function R(ye){if(Y(ye)&&ye.original.kind===236){var or=e.getOriginalNodeId(ye),fe=e.hasSyntacticModifier(ye.original,1);b[or]=ge(b[or],ye.original,fe)}return ye}function Y(ye){return(e.getEmitFlags(ye)&4194304)!==0}function U(ye){var or=e.getOriginalNodeId(ye),fe=b[or];if(fe)return delete b[or],e.append(fe,ye);var je=e.getOriginalNode(ye);return e.isModuleOrEnumDeclaration(je)?e.append(Ie(fe,je),ye):ye}function K(ye,or){if(I.exportEquals)return ye;var fe=or.importClause;if(!fe)return ye;fe.name&&(ye=Ie(ye,fe));var je=fe.namedBindings;if(je)switch(je.kind){case 267:ye=Ie(ye,je);break;case 268:for(var Ee=0,We=je.elements;Ee<We.length;Ee++){var $=We[Ee];ye=Ie(ye,$)}break}return ye}function Te(ye,or){return I.exportEquals?ye:Ie(ye,or)}function ge(ye,or,fe){if(I.exportEquals)return ye;for(var je=0,Ee=or.declarationList.declarations;je<Ee.length;je++){var We=Ee[je];(We.initializer||fe)&&(ye=ke(ye,We,fe))}return ye}function ke(ye,or,fe){if(I.exportEquals)return ye;if(e.isBindingPattern(or.name))for(var je=0,Ee=or.name.elements;je<Ee.length;je++){var We=Ee[je];e.isOmittedExpression(We)||(ye=ke(ye,We,fe))}else if(!e.isGeneratedIdentifier(or.name)){var $=void 0;fe&&(ye=Ge(ye,or.name,p.getLocalName(or)),$=e.idText(or.name)),ye=Ie(ye,or,$)}return ye}function Pe(ye,or){if(I.exportEquals)return ye;var fe;if(e.hasSyntacticModifier(or,1)){var je=e.hasSyntacticModifier(or,512)?p.createStringLiteral("default"):or.name;ye=Ge(ye,je,p.getLocalName(or)),fe=e.getTextOfIdentifierOrLiteral(je)}return or.name&&(ye=Ie(ye,or,fe)),ye}function Ie(ye,or,fe){if(I.exportEquals)return ye;var je=p.getDeclarationName(or),Ee=I.exportSpecifiers.get(e.idText(je));if(Ee)for(var We=0,$=Ee;We<$.length;We++){var Ne=$[We];Ne.name.escapedText!==fe&&(ye=Ge(ye,Ne.name,je))}return ye}function Ge(ye,or,fe,je){return ye=e.append(ye,he(or,fe,je)),ye}function he(ye,or,fe){var je=p.createExpressionStatement(ve(ye,or));return e.startOnNewLine(je),fe||e.setEmitFlags(je,1536),je}function ve(ye,or){var fe=e.isIdentifier(ye)?p.createStringLiteralFromNode(ye):ye;return e.setEmitFlags(or,e.getEmitFlags(or)|1536),e.setCommentRange(p.createCallExpression(w,void 0,[fe,or]),or)}function Ve(ye){switch(ye.kind){case 236:return P(ye);case 255:return u(ye);case 256:return g(ye);case 241:return _e(ye,!0);case 242:return Le(ye);case 243:return qe(ye);case 239:return Ae(ye);case 240:return Ye(ye);case 249:return Dr(ye);case 247:return br(ye);case 248:return lr(ye);case 262:return Ar(ye);case 288:return kr(ye);case 289:return Ke(ye);case 251:return Me(ye);case 291:return Hr(ye);case 234:return ur(ye);case 350:return R(ye);case 351:return U(ye);default:return de(ye)}}function _e(ye,or){var fe=q;return q=ye,ye=p.updateForStatement(ye,e.visitNode(ye.initializer,or?De:Fe,e.isForInitializer),e.visitNode(ye.condition,de,e.isExpression),e.visitNode(ye.incrementor,Fe,e.isExpression),e.visitIterationBody(ye.statement,or?Ve:de,f)),q=fe,ye}function Le(ye){var or=q;return q=ye,ye=p.updateForInStatement(ye,De(ye.initializer),e.visitNode(ye.expression,de,e.isExpression),e.visitIterationBody(ye.statement,Ve,f)),q=or,ye}function qe(ye){var or=q;return q=ye,ye=p.updateForOfStatement(ye,ye.awaitModifier,De(ye.initializer),e.visitNode(ye.expression,de,e.isExpression),e.visitIterationBody(ye.statement,Ve,f)),q=or,ye}function Xe(ye){return e.isVariableDeclarationList(ye)&&ue(ye)}function De(ye){if(Xe(ye)){for(var or=void 0,fe=0,je=ye.declarations;fe<je.length;fe++){var Ee=je[fe];or=e.append(or,X(Ee,!1)),Ee.initializer||te(Ee)}return or?p.inlineExpressions(or):p.createOmittedExpression()}else return e.visitNode(ye,Fe,e.isExpression)}function Ae(ye){return p.updateDoStatement(ye,e.visitIterationBody(ye.statement,Ve,f),e.visitNode(ye.expression,de,e.isExpression))}function Ye(ye){return p.updateWhileStatement(ye,e.visitNode(ye.expression,de,e.isExpression),e.visitIterationBody(ye.statement,Ve,f))}function Dr(ye){return p.updateLabeledStatement(ye,ye.label,e.visitNode(ye.statement,Ve,e.isStatement,p.liftToBlock))}function br(ye){return p.updateWithStatement(ye,e.visitNode(ye.expression,de,e.isExpression),e.visitNode(ye.statement,Ve,e.isStatement,p.liftToBlock))}function lr(ye){return p.updateSwitchStatement(ye,e.visitNode(ye.expression,de,e.isExpression),e.visitNode(ye.caseBlock,Ve,e.isCaseBlock))}function Ar(ye){var or=q;return q=ye,ye=p.updateCaseBlock(ye,e.visitNodes(ye.clauses,Ve,e.isCaseOrDefaultClause)),q=or,ye}function kr(ye){return p.updateCaseClause(ye,e.visitNode(ye.expression,de,e.isExpression),e.visitNodes(ye.statements,Ve,e.isStatement))}function Ke(ye){return e.visitEachChild(ye,Ve,f)}function Me(ye){return e.visitEachChild(ye,Ve,f)}function Hr(ye){var or=q;return q=ye,ye=p.updateCatchClause(ye,ye.variableDeclaration,e.visitNode(ye.block,Ve,e.isBlock)),q=or,ye}function ur(ye){var or=q;return q=ye,ye=e.visitEachChild(ye,Ve,f),q=or,ye}function gr(ye,or){if(!(ye.transformFlags&71305216))return ye;switch(ye.kind){case 241:return _e(ye,!1);case 237:return $e(ye);case 211:return Sr(ye,or);case 348:return Pr(ye,or);case 220:if(e.isDestructuringAssignment(ye))return pr(ye,or);break;case 207:if(e.isImportCall(ye))return He(ye);break;case 218:case 219:return ze(ye,or)}return e.visitEachChild(ye,de,f)}function de(ye){return gr(ye,!1)}function Fe(ye){return gr(ye,!0)}function $e(ye){return p.updateExpressionStatement(ye,e.visitNode(ye.expression,Fe,e.isExpression))}function Sr(ye,or){return p.updateParenthesizedExpression(ye,e.visitNode(ye.expression,or?Fe:de,e.isExpression))}function Pr(ye,or){return p.updatePartiallyEmittedExpression(ye,e.visitNode(ye.expression,or?Fe:de,e.isExpression))}function He(ye){var or=e.getExternalModuleNameLiteral(p,ye,H,v,h,J),fe=e.visitNode(e.firstOrUndefined(ye.arguments),de),je=or&&(!fe||!e.isStringLiteral(fe)||fe.text!==or.text)?or:fe;return p.createCallExpression(p.createPropertyAccessExpression(x,p.createIdentifier("import")),void 0,je?[je]:[])}function pr(ye,or){return Jr(ye.left)?e.flattenDestructuringAssignment(ye,de,f,0,!or):e.visitEachChild(ye,de,f)}function Jr(ye){if(e.isAssignmentExpression(ye,!0))return Jr(ye.left);if(e.isSpreadElement(ye))return Jr(ye.expression);if(e.isObjectLiteralExpression(ye))return e.some(ye.properties,Jr);if(e.isArrayLiteralExpression(ye))return e.some(ye.elements,Jr);if(e.isShorthandPropertyAssignment(ye))return Jr(ye.name);if(e.isPropertyAssignment(ye))return Jr(ye.initializer);if(e.isIdentifier(ye)){var or=h.getReferencedExportContainer(ye);return or!==void 0&&or.kind===303}else return!1}function ze(ye,or){if((ye.operator===45||ye.operator===46)&&e.isIdentifier(ye.operand)&&!e.isGeneratedIdentifier(ye.operand)&&!e.isLocalName(ye.operand)&&!e.isDeclarationNameOfEnumOrNamespace(ye.operand)){var fe=ir(ye.operand);if(fe){var je=void 0,Ee=e.visitNode(ye.operand,de,e.isExpression);e.isPrefixUnaryExpression(ye)?Ee=p.updatePrefixUnaryExpression(ye,Ee):(Ee=p.updatePostfixUnaryExpression(ye,Ee),or||(je=p.createTempVariable(k),Ee=p.createAssignment(je,Ee),e.setTextRange(Ee,ye)),Ee=p.createComma(Ee,p.cloneNode(ye.operand)),e.setTextRange(Ee,ye));for(var We=0,$=fe;We<$.length;We++){var Ne=$[We];Ee=ve(Ne,Or(Ee))}return je&&(Ee=p.createComma(Ee,je),e.setTextRange(Ee,ye)),Ee}}return e.visitEachChild(ye,de,f)}function Lr(ye){switch(ye.kind){case 93:case 88:return}return ye}function Yr(ye,or,fe){if(or.kind===303){var je=e.getOriginalNodeId(or);H=or,I=ie[je],w=M[je],Z=S[je],x=B[je],Z&&delete S[je],z(ye,or,fe),H=void 0,I=void 0,w=void 0,x=void 0,Z=void 0}else z(ye,or,fe)}function lt(ye,or){return or=A(ye,or),sr(or)?or:ye===1?cn(or):ye===4?tt(or):or}function tt(ye){switch(ye.kind){case 295:return Rt(ye)}return ye}function Rt(ye){var or,fe,je=ye.name;if(!e.isGeneratedIdentifier(je)&&!e.isLocalName(je)){var Ee=h.getReferencedImportDeclaration(je);if(Ee){if(e.isImportClause(Ee))return e.setTextRange(p.createPropertyAssignment(p.cloneNode(je),p.createPropertyAccessExpression(p.getGeneratedNameForNode(Ee.parent),p.createIdentifier("default"))),ye);if(e.isImportSpecifier(Ee))return e.setTextRange(p.createPropertyAssignment(p.cloneNode(je),p.createPropertyAccessExpression(p.getGeneratedNameForNode(((fe=(or=Ee.parent)===null||or===void 0?void 0:or.parent)===null||fe===void 0?void 0:fe.parent)||Ee),p.cloneNode(Ee.propertyName||Ee.name))),ye)}}return ye}function cn(ye){switch(ye.kind){case 79:return bn(ye);case 220:return In(ye);case 230:return zn(ye)}return ye}function bn(ye){var or,fe;if(e.getEmitFlags(ye)&4096){var je=e.getExternalHelpersModuleName(H);return je?p.createPropertyAccessExpression(je,ye):ye}if(!e.isGeneratedIdentifier(ye)&&!e.isLocalName(ye)){var Ee=h.getReferencedImportDeclaration(ye);if(Ee){if(e.isImportClause(Ee))return e.setTextRange(p.createPropertyAccessExpression(p.getGeneratedNameForNode(Ee.parent),p.createIdentifier("default")),ye);if(e.isImportSpecifier(Ee))return e.setTextRange(p.createPropertyAccessExpression(p.getGeneratedNameForNode(((fe=(or=Ee.parent)===null||or===void 0?void 0:or.parent)===null||fe===void 0?void 0:fe.parent)||Ee),p.cloneNode(Ee.propertyName||Ee.name)),ye)}}return ye}function In(ye){if(e.isAssignmentOperator(ye.operatorToken.kind)&&e.isIdentifier(ye.left)&&!e.isGeneratedIdentifier(ye.left)&&!e.isLocalName(ye.left)&&!e.isDeclarationNameOfEnumOrNamespace(ye.left)){var or=ir(ye.left);if(or){for(var fe=ye,je=0,Ee=or;je<Ee.length;je++){var We=Ee[je];fe=ve(We,Or(fe))}return fe}}return ye}function zn(ye){return e.isImportMeta(ye)?p.createPropertyAccessExpression(x,p.createIdentifier("meta")):ye}function ir(ye){var or;if(!e.isGeneratedIdentifier(ye)){var fe=h.getReferencedImportDeclaration(ye)||h.getReferencedValueDeclaration(ye);if(fe){var je=h.getReferencedExportContainer(ye,!1);je&&je.kind===303&&(or=e.append(or,p.getDeclarationName(fe))),or=e.addRange(or,I&&I.exportedBindings[e.getOriginalNodeId(fe)])}}return or}function Or(ye){return Z===void 0&&(Z=[]),Z[e.getNodeId(ye)]=!0,ye}function sr(ye){return Z&&ye.id&&Z[ye.id]}}e.transformSystemModule=n}(jr||(jr={})),function(e){function n(f){var p=f.factory,a=f.getEmitHelperFactory,d=f.getEmitHost(),k=f.getEmitResolver(),J=f.getCompilerOptions(),h=e.getEmitScriptTarget(J),v=f.onEmitNode,A=f.onSubstituteNode;f.onEmitNode=q,f.onSubstituteNode=Z,f.enableEmitNotification(303),f.enableSubstitution(79);var z,ie,b;return e.chainBundle(f,M);function M(F){if(F.isDeclarationFile)return F;if(e.isExternalModule(F)||J.isolatedModules){ie=F,b=void 0;var Q=S(F);return ie=void 0,b&&(Q=p.updateSourceFile(Q,e.setTextRange(p.createNodeArray(e.insertStatementsAfterCustomPrologue(Q.statements.slice(),b)),Q.statements))),!e.isExternalModule(F)||e.some(Q.statements,e.isExternalModuleIndicator)?Q:p.updateSourceFile(Q,e.setTextRange(p.createNodeArray(Gt(Gt([],Q.statements,!0),[e.createEmptyExports(p)],!1)),Q.statements))}return F}function S(F){var Q=e.createExternalHelpersImportDeclarationIfNeeded(p,a(),F,J);if(Q){var V=[],re=p.copyPrologue(F.statements,V);return e.append(V,Q),e.addRange(V,e.visitNodes(F.statements,B,e.isStatement,re)),p.updateSourceFile(F,e.setTextRange(p.createNodeArray(V),F.statements))}else return e.visitEachChild(F,B,f)}function B(F){switch(F.kind){case 264:return e.getEmitScriptTarget(J)>=e.ModuleKind.ES2020?I(F):void 0;case 270:return x(F);case 271:var Q=F;return O(Q)}return F}function H(F){var Q=e.getExternalModuleNameLiteral(p,F,e.Debug.checkDefined(ie),d,k,J),V=[];if(Q&&V.push(Q),!b){var re=p.createUniqueName("_createRequire",48),T=p.createImportDeclaration(void 0,void 0,p.createImportClause(!1,void 0,p.createNamedImports([p.createImportSpecifier(!1,p.createIdentifier("createRequire"),re)])),p.createStringLiteral("module")),N=p.createUniqueName("__require",48),y=p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(N,void 0,void 0,p.createCallExpression(p.cloneNode(re),void 0,[p.createPropertyAccessExpression(p.createMetaProperty(100,p.createIdentifier("meta")),p.createIdentifier("url"))]))],h>=2?2:0));b=[T,y]}var D=b[1].declarationList.declarations[0].name;return e.Debug.assertNode(D,e.isIdentifier),p.createCallExpression(p.cloneNode(D),void 0,V)}function I(F){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(F),"import= for internal module references should be handled in an earlier transformer.");var Q;return Q=e.append(Q,e.setOriginalNode(e.setTextRange(p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(p.cloneNode(F.name),void 0,void 0,H(F))],h>=2?2:0)),F),F)),Q=w(Q,F),e.singleOrMany(Q)}function w(F,Q){return e.hasSyntacticModifier(Q,1)&&(F=e.append(F,p.createExportDeclaration(void 0,void 0,Q.isTypeOnly,p.createNamedExports([p.createExportSpecifier(!1,void 0,e.idText(Q.name))])))),F}function x(F){return F.isExportEquals?void 0:F}function O(F){if(J.module!==void 0&&J.module>e.ModuleKind.ES2015||!F.exportClause||!e.isNamespaceExport(F.exportClause)||!F.moduleSpecifier)return F;var Q=F.exportClause.name,V=p.getGeneratedNameForNode(Q),re=p.createImportDeclaration(void 0,void 0,p.createImportClause(!1,void 0,p.createNamespaceImport(V)),F.moduleSpecifier,F.assertClause);e.setOriginalNode(re,F.exportClause);var T=e.isExportNamespaceAsDefaultDeclaration(F)?p.createExportDefault(V):p.createExportDeclaration(void 0,void 0,!1,p.createNamedExports([p.createExportSpecifier(!1,V,Q)]));return e.setOriginalNode(T,F),[re,T]}function q(F,Q,V){e.isSourceFile(Q)?((e.isExternalModule(Q)||J.isolatedModules)&&J.importHelpers&&(z=new e.Map),v(F,Q,V),z=void 0):v(F,Q,V)}function Z(F,Q){return Q=A(F,Q),z&&e.isIdentifier(Q)&&e.getEmitFlags(Q)&4096?ne(Q):Q}function ne(F){var Q=e.idText(F),V=z.get(Q);return V||z.set(Q,V=p.createUniqueName(Q,48)),V}}e.transformECMAScriptModule=n}(jr||(jr={})),function(e){function n(f){var p=f.onSubstituteNode,a=f.onEmitNode,d=e.transformECMAScriptModule(f),k=f.onSubstituteNode,J=f.onEmitNode;f.onSubstituteNode=p,f.onEmitNode=a;var h=e.transformModule(f),v=f.onSubstituteNode,A=f.onEmitNode;f.onSubstituteNode=ie,f.onEmitNode=b,f.enableSubstitution(303),f.enableEmitNotification(303);var z;return B;function ie(I,w){return e.isSourceFile(w)?(z=w,p(I,w)):z?z.impliedNodeFormat===e.ModuleKind.ESNext?k(I,w):v(I,w):p(I,w)}function b(I,w,x){return e.isSourceFile(w)&&(z=w),z?z.impliedNodeFormat===e.ModuleKind.ESNext?J(I,w,x):A(I,w,x):a(I,w,x)}function M(I){return I.impliedNodeFormat===e.ModuleKind.ESNext?d:h}function S(I){if(I.isDeclarationFile)return I;z=I;var w=M(I)(I);return z=void 0,e.Debug.assert(e.isSourceFile(w)),w}function B(I){return I.kind===303?S(I):H(I)}function H(I){return f.factory.createBundle(e.map(I.sourceFiles,S),I.prepends)}}e.transformNodeModule=n}(jr||(jr={})),function(e){function n(a){return e.isVariableDeclaration(a)||e.isPropertyDeclaration(a)||e.isPropertySignature(a)||e.isBindingElement(a)||e.isSetAccessor(a)||e.isGetAccessor(a)||e.isConstructSignatureDeclaration(a)||e.isCallSignatureDeclaration(a)||e.isMethodDeclaration(a)||e.isMethodSignature(a)||e.isFunctionDeclaration(a)||e.isParameter(a)||e.isTypeParameterDeclaration(a)||e.isExpressionWithTypeArguments(a)||e.isImportEqualsDeclaration(a)||e.isTypeAliasDeclaration(a)||e.isConstructorDeclaration(a)||e.isIndexSignatureDeclaration(a)||e.isPropertyAccessExpression(a)||e.isJSDocTypeAlias(a)}e.canProduceDiagnostics=n;function f(a){if(e.isSetAccessor(a)||e.isGetAccessor(a))return d;return e.isMethodSignature(a)||e.isMethodDeclaration(a)?J:p(a);function d(v){var A=k(v);return A!==void 0?{diagnosticMessage:A,errorNode:a,typeName:a.name}:void 0}function k(v){return e.isStatic(a)?v.errorModuleName?v.accessibility===2?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:a.parent.kind===256?v.errorModuleName?v.accessibility===2?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:v.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}function J(v){var A=h(v);return A!==void 0?{diagnosticMessage:A,errorNode:a,typeName:a.name}:void 0}function h(v){return e.isStatic(a)?v.errorModuleName?v.accessibility===2?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:a.parent.kind===256?v.errorModuleName?v.accessibility===2?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:v.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}}e.createGetSymbolAccessibilityDiagnosticForNodeName=f;function p(a){if(e.isVariableDeclaration(a)||e.isPropertyDeclaration(a)||e.isPropertySignature(a)||e.isPropertyAccessExpression(a)||e.isBindingElement(a)||e.isConstructorDeclaration(a))return k;return e.isSetAccessor(a)||e.isGetAccessor(a)?J:e.isConstructSignatureDeclaration(a)||e.isCallSignatureDeclaration(a)||e.isMethodDeclaration(a)||e.isMethodSignature(a)||e.isFunctionDeclaration(a)||e.isIndexSignatureDeclaration(a)?h:e.isParameter(a)?e.isParameterPropertyDeclaration(a,a.parent)&&e.hasSyntacticModifier(a.parent,8)?k:v:e.isTypeParameterDeclaration(a)?z:e.isExpressionWithTypeArguments(a)?ie:e.isImportEqualsDeclaration(a)?b:e.isTypeAliasDeclaration(a)||e.isJSDocTypeAlias(a)?M:e.Debug.assertNever(a,"Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(e.SyntaxKind[a.kind]));function d(S){if(a.kind===253||a.kind===202)return S.errorModuleName?S.accessibility===2?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1;if(a.kind===166||a.kind===205||a.kind===165||a.kind===163&&e.hasSyntacticModifier(a.parent,8))return e.isStatic(a)?S.errorModuleName?S.accessibility===2?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:a.parent.kind===256||a.kind===163?S.errorModuleName?S.accessibility===2?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:S.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}function k(S){var B=d(S);return B!==void 0?{diagnosticMessage:B,errorNode:a,typeName:a.name}:void 0}function J(S){var B;return a.kind===172?e.isStatic(a)?B=S.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:B=S.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.isStatic(a)?B=S.errorModuleName?S.accessibility===2?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:B=S.errorModuleName?S.accessibility===2?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:B,errorNode:a.name,typeName:a.name}}function h(S){var B;switch(a.kind){case 174:B=S.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 173:B=S.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 175:B=S.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 168:case 167:e.isStatic(a)?B=S.errorModuleName?S.accessibility===2?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:a.parent.kind===256?B=S.errorModuleName?S.accessibility===2?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:B=S.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 255:B=S.errorModuleName?S.accessibility===2?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+a.kind)}return{diagnosticMessage:B,errorNode:a.name||a}}function v(S){var B=A(S);return B!==void 0?{diagnosticMessage:B,errorNode:a,typeName:a.name}:void 0}function A(S){switch(a.parent.kind){case 170:return S.errorModuleName?S.accessibility===2?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 174:case 179:return S.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 173:return S.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 175:return S.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 168:case 167:return e.isStatic(a.parent)?S.errorModuleName?S.accessibility===2?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:a.parent.parent.kind===256?S.errorModuleName?S.accessibility===2?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:S.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 255:case 178:return S.errorModuleName?S.accessibility===2?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 172:case 171:return S.errorModuleName?S.accessibility===2?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: ".concat(e.SyntaxKind[a.parent.kind]))}}function z(){var S;switch(a.parent.kind){case 256:S=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 257:S=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 194:S=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 179:case 174:S=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 173:S=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 168:case 167:e.isStatic(a.parent)?S=e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:a.parent.parent.kind===256?S=e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:S=e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 178:case 255:S=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 258:S=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+a.parent.kind)}return{diagnosticMessage:S,errorNode:a,typeName:a.name}}function ie(){var S;return e.isClassDeclaration(a.parent.parent)?S=e.isHeritageClause(a.parent)&&a.parent.token===117?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:a.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:S=e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:S,errorNode:a,typeName:e.getNameOfDeclaration(a.parent.parent)}}function b(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:a,typeName:a.name}}function M(S){return{diagnosticMessage:S.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(a)?e.Debug.checkDefined(a.typeExpression):a.type,typeName:e.isJSDocTypeAlias(a)?e.getNameOfDeclaration(a):a.name}}}e.createGetSymbolAccessibilityDiagnosticForNode=p}(jr||(jr={})),function(e){function n(b,M,S){var B=b.getCompilerOptions(),H=e.transformNodes(M,b,e.factory,B,S?[S]:e.filter(b.getSourceFiles(),e.isSourceFileNotJson),[d],!1);return H.diagnostics}e.getDeclarationDiagnostics=n;function f(b,M){var S=M.text.substring(b.pos,b.end);return e.stringContains(S,"@internal")}function p(b,M){var S=e.getParseTreeNode(b);if(S&&S.kind===163){var B=S.parent.parameters.indexOf(S),H=B>0?S.parent.parameters[B-1]:void 0,I=M.text,w=H?e.concatenate(e.getTrailingCommentRanges(I,e.skipTrivia(I,H.end+1,!1,!0)),e.getLeadingCommentRanges(I,b.pos)):e.getTrailingCommentRanges(I,e.skipTrivia(I,b.pos,!1,!0));return w&&w.length&&f(e.last(w),M)}var x=S&&e.getLeadingCommentRangesOfNode(S,M);return!!e.forEach(x,function(O){return f(O,M)})}e.isInternalDeclaration=p;var a=531469;function d(b){var M=function(){return e.Debug.fail("Diagnostic emitted without context")},S=M,B=!0,H=!1,I=!1,w=!1,x=!1,O,q,Z,ne,F,Q,V=b.factory,re=b.getEmitHost(),T={trackSymbol:R,reportInaccessibleThisError:ge,reportInaccessibleUniqueSymbolError:K,reportCyclicStructureError:Te,reportPrivateInBaseOfClassExpression:Y,reportLikelyUnsafeImportRequiredError:ke,reportTruncationError:Pe,moduleResolverHost:re,trackReferencedAmbientModule:j,trackExternalModuleSymbolOfImportTypeNode:Ce,reportNonlocalAugmentation:Ie,reportNonSerializableProperty:Ge},N,y,D,C,m,u,g=b.getEmitResolver(),P=b.getCompilerOptions(),te=P.noResolve,ue=P.stripInternal;return ve;function X(ir){if(ir){q=q||new e.Set;for(var Or=0,sr=ir;Or<sr.length;Or++){var ye=sr[Or];q.add(ye)}}}function j(ir,Or){var sr=g.getTypeReferenceDirectivesForSymbol(Or,67108863);if(e.length(sr))return X(sr);var ye=e.getSourceFileOfNode(ir);C.set(e.getOriginalNodeId(ye),ye)}function Se(ir){if(ir.accessibility===0){if(ir&&ir.aliasesToMakeVisible)if(!Z)Z=ir.aliasesToMakeVisible;else for(var Or=0,sr=ir.aliasesToMakeVisible;Or<sr.length;Or++){var ye=sr[Or];e.pushIfUnique(Z,ye)}}else{var or=S(ir);if(or)return or.typeName?b.addDiagnostic(e.createDiagnosticForNode(ir.errorNode||or.errorNode,or.diagnosticMessage,e.getTextOfNode(or.typeName),ir.errorSymbolName,ir.errorModuleName)):b.addDiagnostic(e.createDiagnosticForNode(ir.errorNode||or.errorNode,or.diagnosticMessage,ir.errorSymbolName,ir.errorModuleName)),!0}return!1}function Ce(ir){H||(Q||(Q=[])).push(ir)}function R(ir,Or,sr){if(ir.flags&262144)return!1;var ye=Se(g.isSymbolAccessible(ir,Or,sr,!0));return X(g.getTypeReferenceDirectivesForSymbol(ir,sr)),ye}function Y(ir){(N||y)&&b.addDiagnostic(e.createDiagnosticForNode(N||y,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,ir))}function U(){return N?e.declarationNameToString(N):y&&e.getNameOfDeclaration(y)?e.declarationNameToString(e.getNameOfDeclaration(y)):y&&e.isExportAssignment(y)?y.isExportEquals?"export=":"default":"(Missing)"}function K(){(N||y)&&b.addDiagnostic(e.createDiagnosticForNode(N||y,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,U(),"unique symbol"))}function Te(){(N||y)&&b.addDiagnostic(e.createDiagnosticForNode(N||y,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,U()))}function ge(){(N||y)&&b.addDiagnostic(e.createDiagnosticForNode(N||y,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,U(),"this"))}function ke(ir){(N||y)&&b.addDiagnostic(e.createDiagnosticForNode(N||y,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,U(),ir))}function Pe(){(N||y)&&b.addDiagnostic(e.createDiagnosticForNode(N||y,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Ie(ir,Or,sr){var ye,or=(ye=Or.declarations)===null||ye===void 0?void 0:ye.find(function($){return e.getSourceFileOfNode($)===ir}),fe=e.filter(sr.declarations,function($){return e.getSourceFileOfNode($)!==ir});if(fe)for(var je=0,Ee=fe;je<Ee.length;je++){var We=Ee[je];b.addDiagnostic(e.addRelatedInfo(e.createDiagnosticForNode(We,e.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),e.createDiagnosticForNode(or,e.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}}function Ge(ir){(N||y)&&b.addDiagnostic(e.createDiagnosticForNode(N||y,e.Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,ir))}function he(ir,Or){var sr=S;S=function(or){return or.errorNode&&e.canProduceDiagnostics(or.errorNode)?e.createGetSymbolAccessibilityDiagnosticForNode(or.errorNode)(or):{diagnosticMessage:or.errorModuleName?e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:or.errorNode||ir}};var ye=g.getDeclarationStatementsForSourceFile(ir,a,T,Or);return S=sr,ye}function ve(ir){if(ir.kind===303&&ir.isDeclarationFile)return ir;if(ir.kind===304){H=!0,C=new e.Map,m=new e.Map;var Or=!1,sr=V.createBundle(e.map(ir.sourceFiles,function(dr){if(!dr.isDeclarationFile){if(Or=Or||dr.hasNoDefaultLib,D=dr,O=dr,Z=void 0,F=!1,ne=new e.Map,S=M,w=!1,x=!1,Ve(dr,C),_e(dr,m),e.isExternalOrCommonJsModule(dr)||e.isJsonSourceFile(dr)){I=!1,B=!1;var et=e.isSourceFileJS(dr)?V.createNodeArray(he(dr,!0)):e.visitNodes(dr.statements,Pr),yt=V.updateSourceFile(dr,[V.createModuleDeclaration([],[V.createModifier(135)],V.createStringLiteral(e.getResolvedExternalModuleName(b.getEmitHost(),dr)),V.createModuleBlock(e.setTextRange(V.createNodeArray(Fe(et)),dr.statements)))],!0,[],[],!1,[]);return yt}B=!0;var Vr=e.isSourceFileJS(dr)?V.createNodeArray(he(dr)):e.visitNodes(dr.statements,Pr);return V.updateSourceFile(dr,Fe(Vr),!0,[],[],!1,[])}}),e.mapDefined(ir.prepends,function(dr){if(dr.kind===306){var et=e.createUnparsedSourceFile(dr,"dts",ue);return Or=Or||!!et.hasNoDefaultLib,Ve(et,C),X(et.typeReferenceDirectives),_e(et,m),et}return dr}));sr.syntheticFileReferences=[],sr.syntheticTypeReferences=Ze(),sr.syntheticLibReferences=me(),sr.hasNoDefaultLib=Or;var ye=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(ir,re,!0).declarationFilePath)),or=fr(sr.syntheticFileReferences,ye);return C.forEach(or),sr}B=!0,w=!1,x=!1,O=ir,D=ir,S=M,H=!1,I=!1,F=!1,Z=void 0,ne=new e.Map,q=void 0,C=Ve(D,new e.Map),m=_e(D,new e.Map);var fe=[],je=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(ir,re,!0).declarationFilePath)),Ee=fr(fe,je),We;if(e.isSourceFileJS(D))We=V.createNodeArray(he(ir)),C.forEach(Ee),u=e.filter(We,e.isAnyImportSyntax);else{var $=e.visitNodes(ir.statements,Pr);We=e.setTextRange(V.createNodeArray(Fe($)),ir.statements),C.forEach(Ee),u=e.filter(We,e.isAnyImportSyntax),e.isExternalModule(ir)&&(!I||w&&!x)&&(We=e.setTextRange(V.createNodeArray(Gt(Gt([],We,!0),[e.createEmptyExports(V)],!1)),We))}var Ne=V.updateSourceFile(ir,We,!0,fe,Ze(),ir.hasNoDefaultLib,me());return Ne.exportedModulesFromDeclarationEmit=Q,Ne;function me(){return e.map(e.arrayFrom(m.keys()),function(dr){return{fileName:dr,pos:-1,end:-1}})}function Ze(){return q?e.mapDefined(e.arrayFrom(q.keys()),Cr):[]}function Cr(dr){if(u)for(var et=0,yt=u;et<yt.length;et++){var Vr=yt[et];if(e.isImportEqualsDeclaration(Vr)&&e.isExternalModuleReference(Vr.moduleReference)){var tr=Vr.moduleReference.expression;if(e.isStringLiteralLike(tr)&&tr.text===dr)return}else if(e.isImportDeclaration(Vr)&&e.isStringLiteral(Vr.moduleSpecifier)&&Vr.moduleSpecifier.text===dr)return}return{fileName:dr,pos:-1,end:-1}}function fr(dr,et){return function(yt){var Vr;if(yt.isDeclarationFile)Vr=yt.fileName;else{if(H&&e.contains(ir.sourceFiles,yt))return;var tr=e.getOutputPathsFor(yt,re,!0);Vr=tr.declarationFilePath||tr.jsFilePath||yt.fileName}if(Vr){var xr=e.moduleSpecifiers.getModuleSpecifier(P,D,e.toPath(et,re.getCurrentDirectory(),re.getCanonicalFileName),e.toPath(Vr,re.getCurrentDirectory(),re.getCanonicalFileName),re);if(!e.pathIsRelative(xr)){X([xr]);return}var Nr=e.getRelativePathToDirectoryOrUrl(et,Vr,re.getCurrentDirectory(),re.getCanonicalFileName,!1);if(e.startsWith(Nr,"./")&&e.hasExtension(Nr)&&(Nr=Nr.substring(2)),e.startsWith(Nr,"node_modules/")||e.pathContainsNodeModules(Nr))return;dr.push({pos:-1,end:-1,fileName:Nr})}}}}function Ve(ir,Or){return te||!e.isUnparsedSource(ir)&&e.isSourceFileJS(ir)||e.forEach(ir.referencedFiles,function(sr){var ye=re.getSourceFileFromReference(ir,sr);ye&&Or.set(e.getOriginalNodeId(ye),ye)}),Or}function _e(ir,Or){return e.forEach(ir.libReferenceDirectives,function(sr){var ye=re.getLibFileFromReference(sr);ye&&Or.set(e.toFileNameLowerCase(sr.fileName),!0)}),Or}function Le(ir){if(ir.kind===79)return ir;return ir.kind===201?V.updateArrayBindingPattern(ir,e.visitNodes(ir.elements,Or)):V.updateObjectBindingPattern(ir,e.visitNodes(ir.elements,Or));function Or(sr){return sr.kind===226?sr:V.updateBindingElement(sr,sr.dotDotDotToken,sr.propertyName,Le(sr.name),Xe(sr)?sr.initializer:void 0)}}function qe(ir,Or,sr){var ye;F||(ye=S,S=e.createGetSymbolAccessibilityDiagnosticForNode(ir));var or=V.updateParameterDeclaration(ir,void 0,J(ir,Or),ir.dotDotDotToken,Le(ir.name),g.isOptionalParameter(ir)?ir.questionToken||V.createToken(57):void 0,Ae(ir,sr||ir.type,!0),De(ir));return F||(S=ye),or}function Xe(ir){return A(ir)&&g.isLiteralConstDeclaration(e.getParseTreeNode(ir))}function De(ir){if(Xe(ir))return g.createLiteralConstValue(e.getParseTreeNode(ir),T)}function Ae(ir,Or,sr){if(!sr&&e.hasEffectiveModifier(ir,8)||Xe(ir))return;var ye=ir.kind===163&&(g.isRequiredInitializedParameter(ir)||g.isOptionalUninitializedParameterProperty(ir));if(Or&&!ye)return e.visitNode(Or,$e);if(!e.getParseTreeNode(ir))return Or?e.visitNode(Or,$e):V.createKeywordTypeNode(130);if(ir.kind===172)return V.createKeywordTypeNode(130);N=ir.name;var or;if(F||(or=S,S=e.createGetSymbolAccessibilityDiagnosticForNode(ir)),ir.kind===253||ir.kind===202)return fe(g.createTypeOfDeclaration(ir,O,a,T));if(ir.kind===163||ir.kind===166||ir.kind===165)return ir.initializer?fe(g.createTypeOfDeclaration(ir,O,a,T,ye)||g.createTypeOfExpression(ir.initializer,O,a,T)):fe(g.createTypeOfDeclaration(ir,O,a,T,ye));return fe(g.createReturnTypeOfSignatureDeclaration(ir,O,a,T));function fe(je){return N=void 0,F||(S=or),je||V.createKeywordTypeNode(130)}}function Ye(ir){switch(ir=e.getParseTreeNode(ir),ir.kind){case 255:case 260:case 257:case 256:case 258:case 259:return!g.isDeclarationVisible(ir);case 253:return!br(ir);case 264:case 265:case 271:case 270:return!1;case 169:return!0}return!1}function Dr(ir){var Or;if(ir.body)return!0;var sr=(Or=ir.symbol.declarations)===null||Or===void 0?void 0:Or.filter(function(ye){return e.isFunctionDeclaration(ye)&&!ye.body});return!sr||sr.indexOf(ir)===sr.length-1}function br(ir){return e.isOmittedExpression(ir)?!1:e.isBindingPattern(ir.name)?e.some(ir.name.elements,br):g.isDeclarationVisible(ir)}function lr(ir,Or,sr){if(!e.hasEffectiveModifier(ir,8)){var ye=e.map(Or,function(or){return qe(or,sr)});if(ye)return V.createNodeArray(ye,Or.hasTrailingComma)}}function Ar(ir,Or){var sr;if(!Or){var ye=e.getThisParameter(ir);ye&&(sr=[qe(ye)])}if(e.isSetAccessorDeclaration(ir)){var or=void 0;if(!Or){var fe=e.getSetAccessorValueParameter(ir);if(fe){var je=In(ir,g.getAllAccessorDeclarations(ir));or=qe(fe,void 0,je)}}or||(or=V.createParameterDeclaration(void 0,void 0,void 0,"value")),sr=e.append(sr,or)}return V.createNodeArray(sr||e.emptyArray)}function kr(ir,Or){return e.hasEffectiveModifier(ir,8)?void 0:e.visitNodes(Or,$e)}function Ke(ir){return e.isSourceFile(ir)||e.isTypeAliasDeclaration(ir)||e.isModuleDeclaration(ir)||e.isClassDeclaration(ir)||e.isInterfaceDeclaration(ir)||e.isFunctionLike(ir)||e.isIndexSignatureDeclaration(ir)||e.isMappedTypeNode(ir)}function Me(ir,Or){var sr=g.isEntityNameVisible(ir,Or);Se(sr),X(g.getTypeReferenceDirectivesForEntityName(ir))}function Hr(ir,Or){return e.hasJSDocNodes(ir)&&e.hasJSDocNodes(Or)&&(ir.jsDoc=Or.jsDoc),e.setCommentRange(ir,e.getCommentRange(Or))}function ur(ir,Or){if(Or){if(I=I||ir.kind!==260&&ir.kind!==199,e.isStringLiteralLike(Or))if(H){var sr=e.getExternalModuleNameFromDeclaration(b.getEmitHost(),g,ir);if(sr)return V.createStringLiteral(sr)}else{var ye=g.getSymbolOfExternalModuleSpecifier(Or);ye&&(Q||(Q=[])).push(ye)}return Or}}function gr(ir){if(g.isDeclarationVisible(ir))if(ir.moduleReference.kind===276){var Or=e.getExternalModuleImportEqualsDeclarationExpression(ir);return V.updateImportEqualsDeclaration(ir,void 0,ir.modifiers,ir.isTypeOnly,ir.name,V.updateExternalModuleReference(ir.moduleReference,ur(ir,Or)))}else{var sr=S;return S=e.createGetSymbolAccessibilityDiagnosticForNode(ir),Me(ir.moduleReference,O),S=sr,ir}}function de(ir){if(!ir.importClause)return V.updateImportDeclaration(ir,void 0,ir.modifiers,ir.importClause,ur(ir,ir.moduleSpecifier),void 0);var Or=ir.importClause&&ir.importClause.name&&g.isDeclarationVisible(ir.importClause)?ir.importClause.name:void 0;if(!ir.importClause.namedBindings)return Or&&V.updateImportDeclaration(ir,void 0,ir.modifiers,V.updateImportClause(ir.importClause,ir.importClause.isTypeOnly,Or,void 0),ur(ir,ir.moduleSpecifier),void 0);if(ir.importClause.namedBindings.kind===267){var sr=g.isDeclarationVisible(ir.importClause.namedBindings)?ir.importClause.namedBindings:void 0;return Or||sr?V.updateImportDeclaration(ir,void 0,ir.modifiers,V.updateImportClause(ir.importClause,ir.importClause.isTypeOnly,Or,sr),ur(ir,ir.moduleSpecifier),void 0):void 0}var ye=e.mapDefined(ir.importClause.namedBindings.elements,function(or){return g.isDeclarationVisible(or)?or:void 0});if(ye&&ye.length||Or)return V.updateImportDeclaration(ir,void 0,ir.modifiers,V.updateImportClause(ir.importClause,ir.importClause.isTypeOnly,Or,ye&&ye.length?V.updateNamedImports(ir.importClause.namedBindings,ye):void 0),ur(ir,ir.moduleSpecifier),void 0);if(g.isImportRequiredByAugmentation(ir))return V.updateImportDeclaration(ir,void 0,ir.modifiers,void 0,ur(ir,ir.moduleSpecifier),void 0)}function Fe(ir){for(;e.length(Z);){var Or=Z.shift();if(!e.isLateVisibilityPaintedStatement(Or))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: ".concat(e.SyntaxKind?e.SyntaxKind[Or.kind]:Or.kind));var sr=B;B=Or.parent&&e.isSourceFile(Or.parent)&&!(e.isExternalModule(Or.parent)&&H);var ye=pr(Or);B=sr,ne.set(e.getOriginalNodeId(Or),ye)}return e.visitNodes(ir,or);function or(fe){if(e.isLateVisibilityPaintedStatement(fe)){var je=e.getOriginalNodeId(fe);if(ne.has(je)){var Ee=ne.get(je);return ne.delete(je),Ee&&((e.isArray(Ee)?e.some(Ee,e.needsScopeMarker):e.needsScopeMarker(Ee))&&(w=!0),e.isSourceFile(fe.parent)&&(e.isArray(Ee)?e.some(Ee,e.isExternalModuleIndicator):e.isExternalModuleIndicator(Ee))&&(I=!0)),Ee}}return fe}}function $e(ir){if(lt(ir)||e.isDeclaration(ir)&&(Ye(ir)||e.hasDynamicName(ir)&&!g.isLateBound(e.getParseTreeNode(ir)))||e.isFunctionLike(ir)&&g.isImplementationOfOverload(ir)||e.isSemicolonClassElement(ir))return;var Or;Ke(ir)&&(Or=O,O=ir);var sr=S,ye=e.canProduceDiagnostics(ir),or=F,fe=(ir.kind===181||ir.kind===194)&&ir.parent.kind!==258;if((e.isMethodDeclaration(ir)||e.isMethodSignature(ir))&&e.hasEffectiveModifier(ir,8))return ir.symbol&&ir.symbol.declarations&&ir.symbol.declarations[0]!==ir?void 0:dr(V.createPropertyDeclaration(void 0,cn(ir),ir.name,void 0,void 0,void 0));if(ye&&!F&&(S=e.createGetSymbolAccessibilityDiagnosticForNode(ir)),e.isTypeQueryNode(ir)&&Me(ir.exprName,O),fe&&(F=!0),ie(ir))switch(ir.kind){case 227:{(e.isEntityName(ir.expression)||e.isEntityNameExpression(ir.expression))&&Me(ir.expression,O);var je=e.visitEachChild(ir,$e,b);return dr(V.updateExpressionWithTypeArguments(je,je.expression,je.typeArguments))}case 177:{Me(ir.typeName,O);var je=e.visitEachChild(ir,$e,b);return dr(V.updateTypeReferenceNode(je,je.typeName,je.typeArguments))}case 174:return dr(V.updateConstructSignature(ir,kr(ir,ir.typeParameters),lr(ir,ir.parameters),Ae(ir,ir.type)));case 170:{var Ee=V.createConstructorDeclaration(void 0,cn(ir),lr(ir,ir.parameters,0),void 0);return dr(Ee)}case 168:{if(e.isPrivateIdentifier(ir.name))return dr(void 0);var We=V.createMethodDeclaration(void 0,cn(ir),void 0,ir.name,ir.questionToken,kr(ir,ir.typeParameters),lr(ir,ir.parameters),Ae(ir,ir.type),void 0);return dr(We)}case 171:{if(e.isPrivateIdentifier(ir.name))return dr(void 0);var $=In(ir,g.getAllAccessorDeclarations(ir));return dr(V.updateGetAccessorDeclaration(ir,void 0,cn(ir),ir.name,Ar(ir,e.hasEffectiveModifier(ir,8)),Ae(ir,$),void 0))}case 172:return e.isPrivateIdentifier(ir.name)?dr(void 0):dr(V.updateSetAccessorDeclaration(ir,void 0,cn(ir),ir.name,Ar(ir,e.hasEffectiveModifier(ir,8)),void 0));case 166:return e.isPrivateIdentifier(ir.name)?dr(void 0):dr(V.updatePropertyDeclaration(ir,void 0,cn(ir),ir.name,ir.questionToken,Ae(ir,ir.type),De(ir)));case 165:return e.isPrivateIdentifier(ir.name)?dr(void 0):dr(V.updatePropertySignature(ir,cn(ir),ir.name,ir.questionToken,Ae(ir,ir.type)));case 167:return e.isPrivateIdentifier(ir.name)?dr(void 0):dr(V.updateMethodSignature(ir,cn(ir),ir.name,ir.questionToken,kr(ir,ir.typeParameters),lr(ir,ir.parameters),Ae(ir,ir.type)));case 173:return dr(V.updateCallSignature(ir,kr(ir,ir.typeParameters),lr(ir,ir.parameters),Ae(ir,ir.type)));case 175:return dr(V.updateIndexSignature(ir,void 0,cn(ir),lr(ir,ir.parameters),e.visitNode(ir.type,$e)||V.createKeywordTypeNode(130)));case 253:return e.isBindingPattern(ir.name)?ze(ir.name):(fe=!0,F=!0,dr(V.updateVariableDeclaration(ir,ir.name,void 0,Ae(ir,ir.type),De(ir))));case 162:return Sr(ir)&&(ir.default||ir.constraint)?dr(V.updateTypeParameterDeclaration(ir,ir.name,void 0,void 0)):dr(e.visitEachChild(ir,$e,b));case 188:{var Ne=e.visitNode(ir.checkType,$e),me=e.visitNode(ir.extendsType,$e),Ze=O;O=ir.trueType;var Cr=e.visitNode(ir.trueType,$e);O=Ze;var fr=e.visitNode(ir.falseType,$e);return dr(V.updateConditionalTypeNode(ir,Ne,me,Cr,fr))}case 178:return dr(V.updateFunctionTypeNode(ir,e.visitNodes(ir.typeParameters,$e),lr(ir,ir.parameters),e.visitNode(ir.type,$e)));case 179:return dr(V.updateConstructorTypeNode(ir,cn(ir),e.visitNodes(ir.typeParameters,$e),lr(ir,ir.parameters),e.visitNode(ir.type,$e)));case 199:return e.isLiteralImportTypeNode(ir)?dr(V.updateImportTypeNode(ir,V.updateLiteralTypeNode(ir.argument,ur(ir,ir.argument.literal)),ir.qualifier,e.visitNodes(ir.typeArguments,$e,e.isTypeNode),ir.isTypeOf)):dr(ir);default:e.Debug.assertNever(ir,"Attempted to process unhandled node kind: ".concat(e.SyntaxKind[ir.kind]))}return e.isTupleTypeNode(ir)&&e.getLineAndCharacterOfPosition(D,ir.pos).line===e.getLineAndCharacterOfPosition(D,ir.end).line&&e.setEmitFlags(ir,1),dr(e.visitEachChild(ir,$e,b));function dr(et){return et&&ye&&e.hasDynamicName(ir)&&Yr(ir),Ke(ir)&&(O=Or),ye&&!F&&(S=sr),fe&&(F=or),et===ir?et:et&&e.setOriginalNode(Hr(et,ir),ir)}}function Sr(ir){return ir.parent.kind===168&&e.hasEffectiveModifier(ir.parent,8)}function Pr(ir){if(z(ir)&&!lt(ir)){switch(ir.kind){case 271:return e.isSourceFile(ir.parent)&&(I=!0),x=!0,V.updateExportDeclaration(ir,void 0,ir.modifiers,ir.isTypeOnly,ir.exportClause,ur(ir,ir.moduleSpecifier),void 0);case 270:{if(e.isSourceFile(ir.parent)&&(I=!0),x=!0,ir.expression.kind===79)return ir;var Or=V.createUniqueName("_default",16);S=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:ir}},y=ir;var sr=V.createVariableDeclaration(Or,void 0,g.createTypeOfExpression(ir.expression,ir,a,T),void 0);y=void 0;var ye=V.createVariableStatement(B?[V.createModifier(135)]:[],V.createVariableDeclarationList([sr],2));return[ye,V.updateExportAssignment(ir,ir.decorators,ir.modifiers,Or)]}}var or=pr(ir);return ne.set(e.getOriginalNodeId(ir),or),ir}}function He(ir){if(e.isImportEqualsDeclaration(ir)||e.hasEffectiveModifier(ir,512)||!e.canHaveModifiers(ir))return ir;var Or=V.createModifiersFromModifierFlags(e.getEffectiveModifierFlags(ir)&27646);return V.updateModifiers(ir,Or)}function pr(ir){if(lt(ir))return;switch(ir.kind){case 264:return gr(ir);case 265:return de(ir)}if(e.isDeclaration(ir)&&Ye(ir)||e.isFunctionLike(ir)&&g.isImplementationOfOverload(ir))return;var Or;Ke(ir)&&(Or=O,O=ir);var sr=e.canProduceDiagnostics(ir),ye=S;sr&&(S=e.createGetSymbolAccessibilityDiagnosticForNode(ir));var or=B;switch(ir.kind){case 258:return en(V.updateTypeAliasDeclaration(ir,void 0,cn(ir),ir.name,e.visitNodes(ir.typeParameters,$e,e.isTypeParameterDeclaration),e.visitNode(ir.type,$e,e.isTypeNode)));case 257:return en(V.updateInterfaceDeclaration(ir,void 0,cn(ir),ir.name,kr(ir,ir.typeParameters),zn(ir.heritageClauses),e.visitNodes(ir.members,$e)));case 255:{var fe=en(V.updateFunctionDeclaration(ir,void 0,cn(ir),void 0,ir.name,kr(ir,ir.typeParameters),lr(ir,ir.parameters),Ae(ir,ir.type),void 0));if(fe&&g.isExpandoFunctionDeclaration(ir)&&Dr(ir)){var je=g.getPropertiesOfContainerFunction(ir),Ee=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,fe.name||V.createIdentifier("_default"),V.createModuleBlock([]),16);e.setParent(Ee,O),Ee.locals=e.createSymbolTable(je),Ee.symbol=je[0].parent;var We=[],$=e.mapDefined(je,function(St){if(!(!St.valueDeclaration||!e.isPropertyAccessExpression(St.valueDeclaration))){S=e.createGetSymbolAccessibilityDiagnosticForNode(St.valueDeclaration);var Ut=g.createTypeOfDeclaration(St.valueDeclaration,Ee,a,T);S=ye;var qt=e.unescapeLeadingUnderscores(St.escapedName),Mn=e.isStringANonContextualKeyword(qt),dn=Mn?V.getGeneratedNameForNode(St.valueDeclaration):V.createIdentifier(qt);Mn&&We.push([dn,qt]);var oa=V.createVariableDeclaration(dn,void 0,Ut,void 0);return V.createVariableStatement(Mn?void 0:[V.createToken(93)],V.createVariableDeclarationList([oa]))}});We.length?$.push(V.createExportDeclaration(void 0,void 0,!1,V.createNamedExports(e.map(We,function(St){var Ut=St[0],qt=St[1];return V.createExportSpecifier(!1,Ut,qt)})))):$=e.mapDefined($,function(St){return V.updateModifiers(St,0)});var Ne=V.createModuleDeclaration(void 0,cn(ir),ir.name,V.createModuleBlock($),16);if(!e.hasEffectiveModifier(fe,512))return[fe,Ne];var me=V.createModifiersFromModifierFlags(e.getEffectiveModifierFlags(fe)&-514|2),Ze=V.updateFunctionDeclaration(fe,void 0,me,void 0,fe.name,fe.typeParameters,fe.parameters,fe.type,void 0),Cr=V.updateModuleDeclaration(Ne,void 0,me,Ne.name,Ne.body),fr=V.createExportAssignment(void 0,void 0,!1,Ne.name);return e.isSourceFile(ir.parent)&&(I=!0),x=!0,[Ze,Cr,fr]}else return fe}case 260:{B=!1;var dr=ir.body;if(dr&&dr.kind===261){var et=w,yt=x;x=!1,w=!1;var Vr=e.visitNodes(dr.statements,Pr),tr=Fe(Vr);ir.flags&8388608&&(w=!1),!e.isGlobalScopeAugmentation(ir)&&!Rt(tr)&&!x&&(w?tr=V.createNodeArray(Gt(Gt([],tr,!0),[e.createEmptyExports(V)],!1)):tr=e.visitNodes(tr,He));var xr=V.updateModuleBlock(dr,tr);B=or,w=et,x=yt;var Nr=cn(ir);return en(V.updateModuleDeclaration(ir,void 0,Nr,e.isExternalModuleAugmentation(ir)?ur(ir,ir.name):ir.name,xr))}else{B=or;var Nr=cn(ir);B=!1,e.visitNode(dr,Pr);var zr=e.getOriginalNodeId(dr),xr=ne.get(zr);return ne.delete(zr),en(V.updateModuleDeclaration(ir,void 0,Nr,ir.name,xr))}}case 256:{N=ir.name,y=ir;var me=V.createNodeArray(cn(ir)),gt=kr(ir,ir.typeParameters),vt=e.getFirstConstructorWithBody(ir),ut=void 0;if(vt){var ht=S;ut=e.compact(e.flatMap(vt.parameters,function(Ut){if(!e.hasSyntacticModifier(Ut,16476)||lt(Ut))return;if(S=e.createGetSymbolAccessibilityDiagnosticForNode(Ut),Ut.name.kind===79)return Hr(V.createPropertyDeclaration(void 0,cn(Ut),Ut.name,Ut.questionToken,Ae(Ut,Ut.type),De(Ut)),Ut);return qt(Ut.name);function qt(Mn){for(var dn,oa=0,pt=Mn.elements;oa<pt.length;oa++){var _t=pt[oa];e.isOmittedExpression(_t)||(e.isBindingPattern(_t.name)&&(dn=e.concatenate(dn,qt(_t.name))),dn=dn||[],dn.push(V.createPropertyDeclaration(void 0,cn(Ut),_t.name,void 0,Ae(_t,void 0),void 0)))}return dn}})),S=ht}var xt=e.some(ir.members,function(Ut){return!!Ut.name&&e.isPrivateIdentifier(Ut.name)}),wt=xt?[V.createPropertyDeclaration(void 0,void 0,V.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,Qt=e.concatenate(e.concatenate(wt,ut),e.visitNodes(ir.members,$e)),mt=V.createNodeArray(Qt),rn=e.getEffectiveBaseTypeNode(ir);if(rn&&!e.isEntityNameExpression(rn.expression)&&rn.expression.kind!==104){var sa=ir.name?e.unescapeLeadingUnderscores(ir.name.escapedText):"default",ba=V.createUniqueName("".concat(sa,"_base"),16);S=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:rn,typeName:ir.name}};var Jn=V.createVariableDeclaration(ba,void 0,g.createTypeOfExpression(rn.expression,ir,a,T),void 0),na=V.createVariableStatement(B?[V.createModifier(135)]:[],V.createVariableDeclarationList([Jn],2)),Wn=V.createNodeArray(e.map(ir.heritageClauses,function(Ut){if(Ut.token===94){var qt=S;S=e.createGetSymbolAccessibilityDiagnosticForNode(Ut.types[0]);var Mn=V.updateHeritageClause(Ut,e.map(Ut.types,function(dn){return V.updateExpressionWithTypeArguments(dn,ba,e.visitNodes(dn.typeArguments,$e))}));return S=qt,Mn}return V.updateHeritageClause(Ut,e.visitNodes(V.createNodeArray(e.filter(Ut.types,function(dn){return e.isEntityNameExpression(dn.expression)||dn.expression.kind===104})),$e))}));return[na,en(V.updateClassDeclaration(ir,void 0,me,ir.name,gt,Wn,mt))]}else{var Wn=zn(ir.heritageClauses);return en(V.updateClassDeclaration(ir,void 0,me,ir.name,gt,Wn,mt))}}case 236:return en(Jr(ir));case 259:return en(V.updateEnumDeclaration(ir,void 0,V.createNodeArray(cn(ir)),ir.name,V.createNodeArray(e.mapDefined(ir.members,function(St){if(!lt(St)){var Ut=g.getConstantValue(St);return Hr(V.updateEnumMember(St,St.name,Ut!==void 0?typeof Ut=="string"?V.createStringLiteral(Ut):V.createNumericLiteral(Ut):void 0),St)}}))))}return e.Debug.assertNever(ir,"Unhandled top-level node in declaration emit: ".concat(e.SyntaxKind[ir.kind]));function en(St){return Ke(ir)&&(O=Or),sr&&(S=ye),ir.kind===260&&(B=or),St===ir?St:(y=void 0,N=void 0,St&&e.setOriginalNode(Hr(St,ir),ir))}}function Jr(ir){if(e.forEach(ir.declarationList.declarations,br)){var Or=e.visitNodes(ir.declarationList.declarations,$e);if(e.length(Or))return V.updateVariableStatement(ir,V.createNodeArray(cn(ir)),V.updateVariableDeclarationList(ir.declarationList,Or))}}function ze(ir){return e.flatten(e.mapDefined(ir.elements,function(Or){return Lr(Or)}))}function Lr(ir){if(ir.kind!==226&&ir.name)return br(ir)?e.isBindingPattern(ir.name)?ze(ir.name):V.createVariableDeclaration(ir.name,void 0,Ae(ir,void 0),void 0):void 0}function Yr(ir){var Or;F||(Or=S,S=e.createGetSymbolAccessibilityDiagnosticForNodeName(ir)),N=ir.name,e.Debug.assert(g.isLateBound(e.getParseTreeNode(ir)));var sr=ir,ye=sr.name.expression;Me(ye,O),F||(S=Or),N=void 0}function lt(ir){return!!ue&&!!ir&&p(ir,D)}function tt(ir){return e.isExportAssignment(ir)||e.isExportDeclaration(ir)}function Rt(ir){return e.some(ir,tt)}function cn(ir){var Or=e.getEffectiveModifierFlags(ir),sr=bn(ir);return Or===sr?ir.modifiers:V.createModifiersFromModifierFlags(sr)}function bn(ir){var Or=11003,sr=B&&!k(ir)?2:0,ye=ir.parent.kind===303;return(!ye||H&&ye&&e.isExternalModule(ir.parent))&&(Or^=2,sr=0),h(ir,Or,sr)}function In(ir,Or){var sr=v(ir);return!sr&&ir!==Or.firstAccessor&&(sr=v(Or.firstAccessor),S=e.createGetSymbolAccessibilityDiagnosticForNode(Or.firstAccessor)),!sr&&Or.secondAccessor&&ir!==Or.secondAccessor&&(sr=v(Or.secondAccessor),S=e.createGetSymbolAccessibilityDiagnosticForNode(Or.secondAccessor)),sr}function zn(ir){return V.createNodeArray(e.filter(e.map(ir,function(Or){return V.updateHeritageClause(Or,e.visitNodes(V.createNodeArray(e.filter(Or.types,function(sr){return e.isEntityNameExpression(sr.expression)||Or.token===94&&sr.expression.kind===104})),$e))}),function(Or){return Or.types&&!!Or.types.length}))}}e.transformDeclarations=d;function k(b){return b.kind===257}function J(b,M,S){return e.factory.createModifiersFromModifierFlags(h(b,M,S))}function h(b,M,S){M===void 0&&(M=27643),S===void 0&&(S=0);var B=e.getEffectiveModifierFlags(b)&M|S;return B&512&&!(B&1)&&(B^=1),B&512&&B&2&&(B^=2),B}function v(b){if(b)return b.kind===171?b.type:b.parameters.length>0?b.parameters[0].type:void 0}function A(b){switch(b.kind){case 166:case 165:return!e.hasEffectiveModifier(b,8);case 163:case 253:return!0}return!1}function z(b){switch(b.kind){case 255:case 260:case 264:case 257:case 256:case 258:case 259:case 236:case 265:case 271:case 270:return!0}return!1}function ie(b){switch(b.kind){case 174:case 170:case 168:case 171:case 172:case 166:case 165:case 167:case 173:case 175:case 253:case 162:case 227:case 177:case 188:case 178:case 179:case 199:return!0}return!1}}(jr||(jr={})),function(e){function n(M){switch(M){case e.ModuleKind.ESNext:case e.ModuleKind.ES2022:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return e.transformNodeModule;default:return e.transformModule}}var f;(function(M){M[M.Uninitialized=0]="Uninitialized",M[M.Initialized=1]="Initialized",M[M.Completed=2]="Completed",M[M.Disposed=3]="Disposed"})(f||(f={}));var p;(function(M){M[M.Substitution=1]="Substitution",M[M.EmitNotifications=2]="EmitNotifications"})(p||(p={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray};function a(M,S,B){return{scriptTransformers:d(M,S,B),declarationTransformers:k(S)}}e.getTransformers=a;function d(M,S,B){if(B)return e.emptyArray;var H=e.getEmitScriptTarget(M),I=e.getEmitModuleKind(M),w=[];return e.addRange(w,S&&e.map(S.before,v)),w.push(e.transformTypeScript),w.push(e.transformClassFields),e.getJSXTransformEnabled(M)&&w.push(e.transformJsx),H<99&&w.push(e.transformESNext),H<8&&w.push(e.transformES2021),H<7&&w.push(e.transformES2020),H<6&&w.push(e.transformES2019),H<5&&w.push(e.transformES2018),H<4&&w.push(e.transformES2017),H<3&&w.push(e.transformES2016),H<2&&(w.push(e.transformES2015),w.push(e.transformGenerators)),w.push(n(I)),H<1&&w.push(e.transformES5),e.addRange(w,S&&e.map(S.after,v)),w}function k(M){var S=[];return S.push(e.transformDeclarations),e.addRange(S,M&&e.map(M.afterDeclarations,A)),S}function J(M){return function(S){return e.isBundle(S)?M.transformBundle(S):M.transformSourceFile(S)}}function h(M,S){return function(B){var H=M(B);return typeof H=="function"?S(B,H):J(H)}}function v(M){return h(M,e.chainBundle)}function A(M){return h(M,function(S,B){return B})}function z(M,S){return S}e.noEmitSubstitution=z;function ie(M,S,B){B(M,S)}e.noEmitNotification=ie;function b(M,S,B,H,I,w,x){for(var O=new Array(353),q,Z,ne,F=0,Q=[],V=[],re=[],T=[],N=0,y=!1,D=[],C=0,m,u,g=z,P=ie,te=0,ue=[],X={factory:B,getCompilerOptions:function(){return H},getEmitResolver:function(){return M},getEmitHost:function(){return S},getEmitHelperFactory:e.memoize(function(){return e.createEmitHelperFactory(X)}),startLexicalEnvironment:qe,suspendLexicalEnvironment:Xe,resumeLexicalEnvironment:De,endLexicalEnvironment:Ae,setLexicalEnvironmentFlags:Ye,getLexicalEnvironmentFlags:Dr,hoistVariableDeclaration:Ve,hoistFunctionDeclaration:_e,addInitializationStatement:Le,startBlockScope:br,endBlockScope:lr,addBlockScopedVariable:Ar,requestEmitHelper:kr,readEmitHelpers:Ke,enableSubstitution:ke,enableEmitNotification:Ge,isSubstitutionEnabled:Pe,isEmitNotificationEnabled:he,get onSubstituteNode(){return g},set onSubstituteNode(Hr){e.Debug.assert(te<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(Hr!==void 0,"Value must not be 'undefined'"),g=Hr},get onEmitNode(){return P},set onEmitNode(Hr){e.Debug.assert(te<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(Hr!==void 0,"Value must not be 'undefined'"),P=Hr},addDiagnostic:function(Hr){ue.push(Hr)}},j=0,Se=I;j<Se.length;j++){var Ce=Se[j];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(Ce)))}e.performance.mark("beforeTransform");var R=w.map(function(Hr){return Hr(X)}),Y=function(Hr){for(var ur=0,gr=R;ur<gr.length;ur++){var de=gr[ur];Hr=de(Hr)}return Hr};te=1;for(var U=[],K=0,Te=I;K<Te.length;K++){var Ce=Te[K];e.tracing===null||e.tracing===void 0||e.tracing.push("emit","transformNodes",Ce.kind===303?{path:Ce.path}:{kind:Ce.kind,pos:Ce.pos,end:Ce.end}),U.push((x?Y:ge)(Ce)),e.tracing===null||e.tracing===void 0||e.tracing.pop()}return te=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:U,substituteNode:Ie,emitNodeWithNotification:ve,isEmitNotificationEnabled:he,dispose:Me,diagnostics:ue};function ge(Hr){return Hr&&(!e.isSourceFile(Hr)||!Hr.isDeclarationFile)?Y(Hr):Hr}function ke(Hr){e.Debug.assert(te<2,"Cannot modify the transformation context after transformation has completed."),O[Hr]|=1}function Pe(Hr){return(O[Hr.kind]&1)!==0&&(e.getEmitFlags(Hr)&4)===0}function Ie(Hr,ur){return e.Debug.assert(te<3,"Cannot substitute a node after the result is disposed."),ur&&Pe(ur)&&g(Hr,ur)||ur}function Ge(Hr){e.Debug.assert(te<2,"Cannot modify the transformation context after transformation has completed."),O[Hr]|=2}function he(Hr){return(O[Hr.kind]&2)!==0||(e.getEmitFlags(Hr)&2)!==0}function ve(Hr,ur,gr){e.Debug.assert(te<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),ur&&(he(ur)?P(Hr,ur,gr):gr(Hr,ur))}function Ve(Hr){e.Debug.assert(te>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(te<2,"Cannot modify the lexical environment after transformation has completed.");var ur=e.setEmitFlags(B.createVariableDeclaration(Hr),64);q?q.push(ur):q=[ur],F&1&&(F|=2)}function _e(Hr){e.Debug.assert(te>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(te<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(Hr,1048576),Z?Z.push(Hr):Z=[Hr]}function Le(Hr){e.Debug.assert(te>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(te<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(Hr,1048576),ne?ne.push(Hr):ne=[Hr]}function qe(){e.Debug.assert(te>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(te<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!y,"Lexical environment is suspended."),Q[N]=q,V[N]=Z,re[N]=ne,T[N]=F,N++,q=void 0,Z=void 0,ne=void 0,F=0}function Xe(){e.Debug.assert(te>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(te<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!y,"Lexical environment is already suspended."),y=!0}function De(){e.Debug.assert(te>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(te<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(y,"Lexical environment is not suspended."),y=!1}function Ae(){e.Debug.assert(te>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(te<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!y,"Lexical environment is suspended.");var Hr;if(q||Z||ne){if(Z&&(Hr=Gt([],Z,!0)),q){var ur=B.createVariableStatement(void 0,B.createVariableDeclarationList(q));e.setEmitFlags(ur,1048576),Hr?Hr.push(ur):Hr=[ur]}ne&&(Hr?Hr=Gt(Gt([],Hr,!0),ne,!0):Hr=Gt([],ne,!0))}return N--,q=Q[N],Z=V[N],ne=re[N],F=T[N],N===0&&(Q=[],V=[],re=[],T=[]),Hr}function Ye(Hr,ur){F=ur?F|Hr:F&~Hr}function Dr(){return F}function br(){e.Debug.assert(te>0,"Cannot start a block scope during initialization."),e.Debug.assert(te<2,"Cannot start a block scope after transformation has completed."),D[C]=m,C++,m=void 0}function lr(){e.Debug.assert(te>0,"Cannot end a block scope during initialization."),e.Debug.assert(te<2,"Cannot end a block scope after transformation has completed.");var Hr=e.some(m)?[B.createVariableStatement(void 0,B.createVariableDeclarationList(m.map(function(ur){return B.createVariableDeclaration(ur)}),1))]:void 0;return C--,m=D[C],C===0&&(D=[]),Hr}function Ar(Hr){e.Debug.assert(C>0,"Cannot add a block scoped variable outside of an iteration body."),(m||(m=[])).push(Hr)}function kr(Hr){if(e.Debug.assert(te>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(te<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!Hr.scoped,"Cannot request a scoped emit helper."),Hr.dependencies)for(var ur=0,gr=Hr.dependencies;ur<gr.length;ur++){var de=gr[ur];kr(de)}u=e.append(u,Hr)}function Ke(){e.Debug.assert(te>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(te<2,"Cannot modify the transformation context after transformation has completed.");var Hr=u;return u=void 0,Hr}function Me(){if(te<3){for(var Hr=0,ur=I;Hr<ur.length;Hr++){var gr=ur[Hr];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(gr)))}q=void 0,Q=void 0,Z=void 0,V=void 0,g=void 0,P=void 0,u=void 0,te=3}}}e.transformNodes=b,e.nullTransformationContext={factory:e.factory,getCompilerOptions:function(){return{}},getEmitResolver:e.notImplemented,getEmitHost:e.notImplemented,getEmitHelperFactory:e.notImplemented,startLexicalEnvironment:e.noop,resumeLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,endLexicalEnvironment:e.returnUndefined,setLexicalEnvironmentFlags:e.noop,getLexicalEnvironmentFlags:function(){return 0},hoistVariableDeclaration:e.noop,hoistFunctionDeclaration:e.noop,addInitializationStatement:e.noop,startBlockScope:e.noop,endBlockScope:e.returnUndefined,addBlockScopedVariable:e.noop,requestEmitHelper:e.noop,readEmitHelpers:e.notImplemented,enableSubstitution:e.noop,enableEmitNotification:e.noop,isSubstitutionEnabled:e.notImplemented,isEmitNotificationEnabled:e.notImplemented,onSubstituteNode:z,onEmitNode:ie,addDiagnostic:e.noop}}(jr||(jr={})),function(e){var n=V();function f(y){return e.fileExtensionIs(y,".tsbuildinfo")}e.isBuildInfoFile=f;function p(y,D,C,m,u,g){m===void 0&&(m=!1);var P=e.isArray(C)?C:e.getSourceFilesToEmit(y,C,m),te=y.getCompilerOptions();if(e.outFile(te)){var ue=y.getPrependNodes();if(P.length||ue.length){var X=e.factory.createBundle(P,ue),j=D(k(X,y,m),X);if(j)return j}}else{if(!u)for(var Se=0,Ce=P;Se<Ce.length;Se++){var R=Ce[Se],j=D(k(R,y,m),R);if(j)return j}if(g){var Y=a(te);if(Y)return D({buildInfoPath:Y},void 0)}}}e.forEachEmittedFile=p;function a(y){var D=y.configFilePath;if(e.isIncrementalCompilation(y)){if(y.tsBuildInfoFile)return y.tsBuildInfoFile;var C=e.outFile(y),m;if(C)m=e.removeFileExtension(C);else{if(!D)return;var u=e.removeFileExtension(D);m=y.outDir?y.rootDir?e.resolvePath(y.outDir,e.getRelativePathFromDirectory(y.rootDir,u,!0)):e.combinePaths(y.outDir,e.getBaseFileName(u)):u}return m+".tsbuildinfo"}}e.getTsBuildInfoEmitOutputFilePath=a;function d(y,D){var C=e.outFile(y),m=y.emitDeclarationOnly?void 0:C,u=m&&J(m,y),g=D||e.getEmitDeclarations(y)?e.removeFileExtension(C)+".d.ts":void 0,P=g&&e.getAreDeclarationMapsEnabled(y)?g+".map":void 0,te=a(y);return{jsFilePath:m,sourceMapFilePath:u,declarationFilePath:g,declarationMapPath:P,buildInfoPath:te}}e.getOutputPathsForBundle=d;function k(y,D,C){var m=D.getCompilerOptions();if(y.kind===304)return d(m,C);var u=e.getOwnEmitOutputFilePath(y.fileName,D,h(y.fileName,m)),g=e.isJsonSourceFile(y),P=g&&e.comparePaths(y.fileName,u,D.getCurrentDirectory(),!D.useCaseSensitiveFileNames())===0,te=m.emitDeclarationOnly||P?void 0:u,ue=!te||e.isJsonSourceFile(y)?void 0:J(te,m),X=C||e.getEmitDeclarations(m)&&!g?e.getDeclarationEmitOutputFilePath(y.fileName,D):void 0,j=X&&e.getAreDeclarationMapsEnabled(m)?X+".map":void 0;return{jsFilePath:te,sourceMapFilePath:ue,declarationFilePath:X,declarationMapPath:j,buildInfoPath:void 0}}e.getOutputPathsFor=k;function J(y,D){return D.sourceMap&&!D.inlineSourceMap?y+".map":void 0}function h(y,D){return e.fileExtensionIs(y,".json")?".json":D.jsx===1&&e.fileExtensionIsOneOf(y,[".jsx",".tsx"])?".jsx":e.fileExtensionIsOneOf(y,[".mts",".mjs"])?".mjs":e.fileExtensionIsOneOf(y,[".cts",".cjs"])?".cjs":".js"}e.getOutputExtension=h;function v(y,D,C,m,u){return m?e.resolvePath(m,e.getRelativePathFromDirectory(u?u():B(D,C),y,C)):y}function A(y,D,C,m){return e.changeExtension(v(y,D,C,D.options.declarationDir||D.options.outDir,m),e.getDeclarationEmitExtensionForPath(y))}e.getOutputDeclarationFileName=A;function z(y,D,C,m){if(!D.options.emitDeclarationOnly){var u=e.fileExtensionIs(y,".json"),g=e.changeExtension(v(y,D,C,D.options.outDir,m),h(y,D.options));return!u||e.comparePaths(y,g,e.Debug.checkDefined(D.options.configFilePath),C)!==0?g:void 0}}function ie(){var y;return{addOutput:D,getOutputs:C};function D(m){m&&(y||(y=[])).push(m)}function C(){return y||e.emptyArray}}function b(y,D){var C=d(y.options,!1),m=C.jsFilePath,u=C.sourceMapFilePath,g=C.declarationFilePath,P=C.declarationMapPath,te=C.buildInfoPath;D(m),D(u),D(g),D(P),D(te)}function M(y,D,C,m,u){if(!e.fileExtensionIs(D,".d.ts")){var g=z(D,y,C,u);if(m(g),!e.fileExtensionIs(D,".json")&&(g&&y.options.sourceMap&&m("".concat(g,".map")),e.getEmitDeclarations(y.options))){var P=A(D,y,C,u);m(P),y.options.declarationMap&&m("".concat(P,".map"))}}}function S(y,D,C,m,u){var g;return y.rootDir?(g=e.getNormalizedAbsolutePath(y.rootDir,C),u==null||u(y.rootDir)):y.composite&&y.configFilePath?(g=e.getDirectoryPath(e.normalizeSlashes(y.configFilePath)),u==null||u(g)):g=e.computeCommonSourceDirectoryOfFilenames(D(),C,m),g&&g[g.length-1]!==e.directorySeparator&&(g+=e.directorySeparator),g}e.getCommonSourceDirectory=S;function B(y,D){var C=y.options,m=y.fileNames;return S(C,function(){return e.filter(m,function(u){return!(C.noEmitForJsFiles&&e.fileExtensionIsOneOf(u,e.supportedJSExtensionsFlat))&&!e.fileExtensionIs(u,".d.ts")})},e.getDirectoryPath(e.normalizeSlashes(e.Debug.checkDefined(C.configFilePath))),e.createGetCanonicalFileName(!D))}e.getCommonSourceDirectoryOfConfig=B;function H(y,D){var C=ie(),m=C.addOutput,u=C.getOutputs;if(e.outFile(y.options))b(y,m);else{for(var g=e.memoize(function(){return B(y,D)}),P=0,te=y.fileNames;P<te.length;P++){var ue=te[P];M(y,ue,D,m,g)}m(a(y.options))}return u()}e.getAllProjectOutputs=H;function I(y,D,C){D=e.normalizePath(D),e.Debug.assert(e.contains(y.fileNames,D),"Expected fileName to be present in command line");var m=ie(),u=m.addOutput,g=m.getOutputs;return e.outFile(y.options)?b(y,u):M(y,D,C,u),g()}e.getOutputFileNames=I;function w(y,D){if(e.outFile(y.options)){var C=d(y.options,!1).jsFilePath;return e.Debug.checkDefined(C,"project ".concat(y.options.configFilePath," expected to have at least one output"))}for(var m=e.memoize(function(){return B(y,D)}),u=0,g=y.fileNames;u<g.length;u++){var P=g[u];if(!e.fileExtensionIs(P,".d.ts")){var C=z(P,y,D,m);if(C)return C;if(!e.fileExtensionIs(P,".json")&&e.getEmitDeclarations(y.options))return A(P,y,D,m)}}var te=a(y.options);return te||e.Debug.fail("project ".concat(y.options.configFilePath," expected to have at least one output"))}e.getFirstProjectOutput=w;function x(y,D,C,m,u,g,P){var te=m.scriptTransformers,ue=m.declarationTransformers,X=D.getCompilerOptions(),j=X.sourceMap||X.inlineSourceMap||e.getAreDeclarationMapsEnabled(X)?[]:void 0,Se=X.listEmittedFiles?[]:void 0,Ce=e.createDiagnosticCollection(),R=e.getNewLineCharacter(X,function(){return D.getNewLine()}),Y=e.createTextWriter(R),U=e.performance.createTimer("printTime","beforePrint","afterPrint"),K=U.enter,Te=U.exit,ge,ke=!1,Pe;return K(),p(D,Ie,e.getSourceFilesToEmit(D,C,P),P,g,!C),Te(),{emitSkipped:ke,diagnostics:Ce.getDiagnostics(),emittedFiles:Se,sourceMaps:j,exportedModulesFromDeclarationEmit:Pe};function Ie(Ae,Ye){var Dr=Ae.jsFilePath,br=Ae.sourceMapFilePath,lr=Ae.declarationFilePath,Ar=Ae.declarationMapPath,kr=Ae.buildInfoPath,Ke;kr&&Ye&&e.isBundle(Ye)&&(Ke=e.getDirectoryPath(e.getNormalizedAbsolutePath(kr,D.getCurrentDirectory())),ge={commonSourceDirectory:Me(D.getCommonSourceDirectory()),sourceFiles:Ye.sourceFiles.map(function(Hr){return Me(e.getNormalizedAbsolutePath(Hr.fileName,D.getCurrentDirectory()))})}),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitJsFileOrBundle",{jsFilePath:Dr}),he(Ye,Dr,br,Me),e.tracing===null||e.tracing===void 0||e.tracing.pop(),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitDeclarationFileOrBundle",{declarationFilePath:lr}),ve(Ye,lr,Ar,Me),e.tracing===null||e.tracing===void 0||e.tracing.pop(),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitBuildInfo",{buildInfoPath:kr}),Ge(ge,kr),e.tracing===null||e.tracing===void 0||e.tracing.pop(),!ke&&Se&&(u||(Dr&&Se.push(Dr),br&&Se.push(br),kr&&Se.push(kr)),lr&&Se.push(lr),Ar&&Se.push(Ar));function Me(Hr){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(Ke,Hr,D.getCanonicalFileName))}}function Ge(Ae,Ye){if(!(!Ye||C||ke)){var Dr=D.getProgramBuildInfo();if(D.isEmitBlocked(Ye)){ke=!0;return}var br=e.version;e.writeFile(D,Ce,Ye,O({bundle:Ae,program:Dr,version:br}),!1)}}function he(Ae,Ye,Dr,br){if(!(!Ae||u||!Ye)){if(Ye&&D.isEmitBlocked(Ye)||X.noEmit){ke=!0;return}var lr=e.transformNodes(y,D,e.factory,X,[Ae],te,!1),Ar={removeComments:X.removeComments,newLine:X.newLine,noEmitHelpers:X.noEmitHelpers,module:X.module,target:X.target,sourceMap:X.sourceMap,inlineSourceMap:X.inlineSourceMap,inlineSources:X.inlineSources,extendedDiagnostics:X.extendedDiagnostics,writeBundleFileInfo:!!ge,relativeToBuildInfo:br},kr=Q(Ar,{hasGlobalName:y.hasGlobalName,onEmitNode:lr.emitNodeWithNotification,isEmitNotificationEnabled:lr.isEmitNotificationEnabled,substituteNode:lr.substituteNode});e.Debug.assert(lr.transformed.length===1,"Should only see one output from the transform"),_e(Ye,Dr,lr.transformed[0],kr,X),lr.dispose(),ge&&(ge.js=kr.bundleFileInfo)}}function ve(Ae,Ye,Dr,br){if(Ae){if(!Ye){(u||X.emitDeclarationOnly)&&(ke=!0);return}var lr=e.isSourceFile(Ae)?[Ae]:Ae.sourceFiles,Ar=P?lr:e.filter(lr,e.isSourceFileNotJson),kr=e.outFile(X)?[e.factory.createBundle(Ar,e.isSourceFile(Ae)?void 0:Ae.prepends)]:Ar;u&&!e.getEmitDeclarations(X)&&Ar.forEach(Ve);var Ke=e.transformNodes(y,D,e.factory,X,kr,ue,!1);if(e.length(Ke.diagnostics))for(var Me=0,Hr=Ke.diagnostics;Me<Hr.length;Me++){var ur=Hr[Me];Ce.add(ur)}var gr={removeComments:X.removeComments,newLine:X.newLine,noEmitHelpers:!0,module:X.module,target:X.target,sourceMap:X.sourceMap,inlineSourceMap:X.inlineSourceMap,extendedDiagnostics:X.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!ge,recordInternalSection:!!ge,relativeToBuildInfo:br},de=Q(gr,{hasGlobalName:y.hasGlobalName,onEmitNode:Ke.emitNodeWithNotification,isEmitNotificationEnabled:Ke.isEmitNotificationEnabled,substituteNode:Ke.substituteNode}),Fe=!!Ke.diagnostics&&!!Ke.diagnostics.length||!!D.isEmitBlocked(Ye)||!!X.noEmit;if(ke=ke||Fe,(!Fe||P)&&(e.Debug.assert(Ke.transformed.length===1,"Should only see one output from the decl transform"),_e(Ye,Dr,Ke.transformed[0],de,{sourceMap:!P&&X.declarationMap,sourceRoot:X.sourceRoot,mapRoot:X.mapRoot,extendedDiagnostics:X.extendedDiagnostics}),P&&Ke.transformed[0].kind===303)){var $e=Ke.transformed[0];Pe=$e.exportedModulesFromDeclarationEmit}Ke.dispose(),ge&&(ge.dts=de.bundleFileInfo)}}function Ve(Ae){if(e.isExportAssignment(Ae)){Ae.expression.kind===79&&y.collectLinkedAliases(Ae.expression,!0);return}else if(e.isExportSpecifier(Ae)){y.collectLinkedAliases(Ae.propertyName||Ae.name,!0);return}e.forEachChild(Ae,Ve)}function _e(Ae,Ye,Dr,br,lr){var Ar=Dr.kind===304?Dr:void 0,kr=Dr.kind===303?Dr:void 0,Ke=Ar?Ar.sourceFiles:[kr],Me;if(Le(lr,Dr)&&(Me=e.createSourceMapGenerator(D,e.getBaseFileName(e.normalizeSlashes(Ae)),qe(lr),Xe(lr,Ae,kr),lr)),Ar?br.writeBundle(Ar,Y,Me):br.writeFile(kr,Y,Me),Me){j&&j.push({inputSourceFileNames:Me.getSources(),sourceMap:Me.toJSON()});var Hr=De(lr,Me,Ae,Ye,kr);if(Hr&&(Y.isAtStartOfLine()||Y.rawWrite(R),Y.writeComment("//# ".concat("sourceMappingURL","=").concat(Hr))),Ye){var ur=Me.toString();e.writeFile(D,Ce,Ye,ur,!1,Ke)}}else Y.writeLine();e.writeFile(D,Ce,Ae,Y.getText(),!!X.emitBOM,Ke),Y.clear()}function Le(Ae,Ye){return(Ae.sourceMap||Ae.inlineSourceMap)&&(Ye.kind!==303||!e.fileExtensionIs(Ye.fileName,".json"))}function qe(Ae){var Ye=e.normalizeSlashes(Ae.sourceRoot||"");return Ye&&e.ensureTrailingDirectorySeparator(Ye)}function Xe(Ae,Ye,Dr){if(Ae.sourceRoot)return D.getCommonSourceDirectory();if(Ae.mapRoot){var br=e.normalizeSlashes(Ae.mapRoot);return Dr&&(br=e.getDirectoryPath(e.getSourceFilePathInNewDir(Dr.fileName,D,br))),e.getRootLength(br)===0&&(br=e.combinePaths(D.getCommonSourceDirectory(),br)),br}return e.getDirectoryPath(e.normalizePath(Ye))}function De(Ae,Ye,Dr,br,lr){if(Ae.inlineSourceMap){var Ar=Ye.toString(),kr=e.base64encode(e.sys,Ar);return"data:application/json;base64,".concat(kr)}var Ke=e.getBaseFileName(e.normalizeSlashes(e.Debug.checkDefined(br)));if(Ae.mapRoot){var Me=e.normalizeSlashes(Ae.mapRoot);return lr&&(Me=e.getDirectoryPath(e.getSourceFilePathInNewDir(lr.fileName,D,Me))),e.getRootLength(Me)===0?(Me=e.combinePaths(D.getCommonSourceDirectory(),Me),encodeURI(e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(Dr)),e.combinePaths(Me,Ke),D.getCurrentDirectory(),D.getCanonicalFileName,!0))):encodeURI(e.combinePaths(Me,Ke))}return encodeURI(Ke)}}e.emitFiles=x;function O(y){return JSON.stringify(y)}e.getBuildInfoText=O;function q(y){return JSON.parse(y)}e.getBuildInfo=q,e.notImplementedResolver={hasGlobalName:e.notImplemented,getReferencedExportContainer:e.notImplemented,getReferencedImportDeclaration:e.notImplemented,getReferencedDeclarationWithCollidingName:e.notImplemented,isDeclarationWithCollidingName:e.notImplemented,isValueAliasDeclaration:e.notImplemented,isReferencedAliasDeclaration:e.notImplemented,isTopLevelValueImportEqualsWithEntityName:e.notImplemented,getNodeCheckFlags:e.notImplemented,isDeclarationVisible:e.notImplemented,isLateBound:function(y){return!1},collectLinkedAliases:e.notImplemented,isImplementationOfOverload:e.notImplemented,isRequiredInitializedParameter:e.notImplemented,isOptionalUninitializedParameterProperty:e.notImplemented,isExpandoFunctionDeclaration:e.notImplemented,getPropertiesOfContainerFunction:e.notImplemented,createTypeOfDeclaration:e.notImplemented,createReturnTypeOfSignatureDeclaration:e.notImplemented,createTypeOfExpression:e.notImplemented,createLiteralConstValue:e.notImplemented,isSymbolAccessible:e.notImplemented,isEntityNameVisible:e.notImplemented,getConstantValue:e.notImplemented,getReferencedValueDeclaration:e.notImplemented,getTypeReferenceSerializationKind:e.notImplemented,isOptionalParameter:e.notImplemented,moduleExportsSomeValue:e.notImplemented,isArgumentsLocalBinding:e.notImplemented,getExternalModuleFileFromDeclaration:e.notImplemented,getTypeReferenceDirectivesForEntityName:e.notImplemented,getTypeReferenceDirectivesForSymbol:e.notImplemented,isLiteralConstDeclaration:e.notImplemented,getJsxFactoryEntity:e.notImplemented,getJsxFragmentFactoryEntity:e.notImplemented,getAllAccessorDeclarations:e.notImplemented,getSymbolOfExternalModuleSpecifier:e.notImplemented,isBindingCapturedByNode:e.notImplemented,getDeclarationStatementsForSourceFile:e.notImplemented,isImportRequiredByAugmentation:e.notImplemented};function Z(y,D,C){var m,u=e.Debug.checkDefined(y.js),g=((m=u.sources)===null||m===void 0?void 0:m.prologues)&&e.arrayToMap(u.sources.prologues,function(P){return P.file});return y.sourceFiles.map(function(P,te){var ue,X,j=g==null?void 0:g.get(te),Se=j==null?void 0:j.directives.map(function(Y){var U=e.setTextRange(e.factory.createStringLiteral(Y.expression.text),Y.expression),K=e.setTextRange(e.factory.createExpressionStatement(U),Y);return e.setParent(U,K),K}),Ce=e.factory.createToken(1),R=e.factory.createSourceFile(Se??[],Ce,0);return R.fileName=e.getRelativePathFromDirectory(C.getCurrentDirectory(),e.getNormalizedAbsolutePath(P,D),!C.useCaseSensitiveFileNames()),R.text=(ue=j==null?void 0:j.text)!==null&&ue!==void 0?ue:"",e.setTextRangePosWidth(R,0,(X=j==null?void 0:j.text.length)!==null&&X!==void 0?X:0),e.setEachParent(R.statements,R),e.setTextRangePosWidth(Ce,R.end,0),e.setParent(Ce,R),R})}function ne(y,D,C,m){var u=d(y.options,!1),g=u.buildInfoPath,P=u.jsFilePath,te=u.sourceMapFilePath,ue=u.declarationFilePath,X=u.declarationMapPath,j=D.readFile(e.Debug.checkDefined(g));if(!j)return g;var Se=D.readFile(e.Debug.checkDefined(P));if(!Se)return P;var Ce=te&&D.readFile(te);if(te&&!Ce||y.options.inlineSourceMap)return te||"inline sourcemap decoding";var R=ue&&D.readFile(ue);if(ue&&!R)return ue;var Y=X&&D.readFile(X);if(X&&!Y||y.options.inlineSourceMap)return X||"inline sourcemap decoding";var U=q(j);if(!U.bundle||!U.bundle.js||R&&!U.bundle.dts)return g;var K=e.getDirectoryPath(e.getNormalizedAbsolutePath(g,D.getCurrentDirectory())),Te=e.createInputFiles(Se,R,te,Ce,X,Y,P,ue,g,U,!0),ge=[],ke=e.createPrependNodes(y.projectReferences,C,function(Ge){return D.readFile(Ge)}),Pe=Z(U.bundle,K,D),Ie={getPrependNodes:e.memoize(function(){return Gt(Gt([],ke,!0),[Te],!1)}),getCanonicalFileName:D.getCanonicalFileName,getCommonSourceDirectory:function(){return e.getNormalizedAbsolutePath(U.bundle.commonSourceDirectory,K)},getCompilerOptions:function(){return y.options},getCurrentDirectory:function(){return D.getCurrentDirectory()},getNewLine:function(){return D.getNewLine()},getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:function(){return Pe},getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,getProjectReferenceRedirect:e.returnUndefined,isSourceOfProjectReferenceRedirect:e.returnFalse,writeFile:function(Ge,he,ve){switch(Ge){case P:if(Se===he)return;break;case te:if(Ce===he)return;break;case g:var Ve=q(he);Ve.program=U.program;var _e=U.bundle,Le=_e.js,qe=_e.dts,Xe=_e.sourceFiles;Ve.bundle.js.sources=Le.sources,qe&&(Ve.bundle.dts.sources=qe.sources),Ve.bundle.sourceFiles=Xe,ge.push({name:Ge,text:O(Ve),writeByteOrderMark:ve});return;case ue:if(R===he)return;break;case X:if(Y===he)return;break;default:e.Debug.fail("Unexpected path: ".concat(Ge))}ge.push({name:Ge,text:he,writeByteOrderMark:ve})},isEmitBlocked:e.returnFalse,readFile:function(Ge){return D.readFile(Ge)},fileExists:function(Ge){return D.fileExists(Ge)},useCaseSensitiveFileNames:function(){return D.useCaseSensitiveFileNames()},getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap(),getFileIncludeReasons:e.notImplemented};return x(e.notImplementedResolver,Ie,void 0,e.getTransformers(y.options,m)),ge}e.emitUsingBuildInfo=ne;var F;(function(y){y[y.Notification=0]="Notification",y[y.Substitution=1]="Substitution",y[y.Comments=2]="Comments",y[y.SourceMaps=3]="SourceMaps",y[y.Emit=4]="Emit"})(F||(F={}));function Q(y,D){y===void 0&&(y={}),D===void 0&&(D={});var C=D.hasGlobalName,m=D.onEmitNode,u=m===void 0?e.noEmitNotification:m,g=D.isEmitNotificationEnabled,P=D.substituteNode,te=P===void 0?e.noEmitSubstitution:P,ue=D.onBeforeEmitNode,X=D.onAfterEmitNode,j=D.onBeforeEmitNodeArray,Se=D.onAfterEmitNodeArray,Ce=D.onBeforeEmitToken,R=D.onAfterEmitToken,Y=!!y.extendedDiagnostics,U=e.getNewLineCharacter(y),K=e.getEmitModuleKind(y),Te=new e.Map,ge,ke,Pe,Ie,Ge,he,ve,Ve,_e=y.preserveSourceNewlines,Le,qe,Xe,De=Yl,Ae,Ye=y.writeBundleFileInfo?{sections:[]}:void 0,Dr=Ye?e.Debug.checkDefined(y.relativeToBuildInfo):void 0,br=y.recordInternalSection,lr=0,Ar="text",kr=!0,Ke,Me,Hr=-1,ur,gr=-1,de=-1,Fe=-1,$e=-1,Sr,Pr,He=!1,pr=!!y.removeComments,Jr,ze,Lr=e.performance.createTimerIf(Y,"commentTime","beforeComment","afterComment"),Yr=Lr.enter,lt=Lr.exit,tt=e.factory.parenthesizer,Rt=ft();return et(),{printNode:cn,printList:bn,printFile:zn,printBundle:In,writeNode:Or,writeList:sr,writeFile:Ne,writeBundle:We,bundleFileInfo:Ye};function cn(E,Qe,nt){switch(E){case 0:e.Debug.assert(e.isSourceFile(Qe),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(Qe),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(Qe),"Expected an Expression node.");break}switch(Qe.kind){case 303:return zn(Qe);case 304:return In(Qe);case 305:return ir(Qe)}return Or(E,Qe,nt,me()),Ze()}function bn(E,Qe,nt){return sr(E,Qe,nt,me()),Ze()}function In(E){return We(E,me(),void 0),Ze()}function zn(E){return Ne(E,me(),void 0),Ze()}function ir(E){return $(E,me()),Ze()}function Or(E,Qe,nt,Ot){var fa=qe;dr(Ot,void 0),Cr(E,Qe,nt),et(),qe=fa}function sr(E,Qe,nt,Ot){var fa=qe;dr(Ot,void 0),nt&&fr(nt),mo(void 0,Qe,E),et(),qe=fa}function ye(){return qe.getTextPosWithWriteLine?qe.getTextPosWithWriteLine():qe.getTextPos()}function or(E,Qe,nt){var Ot=e.lastOrUndefined(Ye.sections);Ot&&Ot.kind===nt?Ot.end=Qe:Ye.sections.push({pos:E,end:Qe,kind:nt})}function fe(E){if(br&&Ye&&ge&&(e.isDeclaration(E)||e.isVariableStatement(E))&&e.isInternalDeclaration(E,ge)&&Ar!=="internal"){var Qe=Ar;return Ee(qe.getTextPos()),lr=ye(),Ar="internal",Qe}}function je(E){E&&(Ee(qe.getTextPos()),lr=ye(),Ar=E)}function Ee(E){return lr<E?(or(lr,E,Ar),!0):!1}function We(E,Qe,nt){var Ot;Ae=!1;var fa=qe;dr(Qe,nt),wu(E),td(E),na(E),Ud(E);for(var Oa=0,ia=E.prepends;Oa<ia.length;Oa++){var ti=ia[Oa];fs();var Na=qe.getTextPos(),Ua=Ye&&Ye.sections;if(Ua&&(Ye.sections=[]),Cr(4,ti,void 0),Ye){var Go=Ye.sections;Ye.sections=Ua,ti.oldFileOfCurrentEmit?(Ot=Ye.sections).push.apply(Ot,Go):(Go.forEach(function(md){return e.Debug.assert(e.isBundleFileTextLike(md))}),Ye.sections.push({pos:Na,end:qe.getTextPos(),kind:"prepend",data:Dr(ti.fileName),texts:Go}))}}lr=ye();for(var cl=0,os=E.sourceFiles;cl<os.length;cl++){var is=os[cl];Cr(0,is,is)}if(Ye&&E.sourceFiles.length){var Vl=qe.getTextPos();if(Ee(Vl)){var Zc=Ru(E);Zc&&(Ye.sources||(Ye.sources={}),Ye.sources.prologues=Zc);var $c=Jn(E);$c&&(Ye.sources||(Ye.sources={}),Ye.sources.helpers=$c)}}et(),qe=fa}function $(E,Qe){var nt=qe;dr(Qe,void 0),Cr(4,E,void 0),et(),qe=nt}function Ne(E,Qe,nt){Ae=!0;var Ot=qe;dr(Qe,nt),wu(E),td(E),Cr(0,E,E),et(),qe=Ot}function me(){return Xe||(Xe=e.createTextWriter(U))}function Ze(){var E=Xe.getText();return Xe.clear(),E}function Cr(E,Qe,nt){nt&&fr(nt),vt(E,Qe,void 0)}function fr(E){ge=E,Sr=void 0,Pr=void 0,E&&Fc(E)}function dr(E,Qe){E&&y.omitTrailingSemicolon&&(E=e.getTrailingSemicolonDeferringWriter(E)),qe=E,Ke=Qe,kr=!qe||!Ke}function et(){ke=[],Pe=[],Ie=new e.Set,Ge=[],he=0,ve=[],ge=void 0,Sr=void 0,Pr=void 0,dr(void 0,void 0)}function yt(){return Sr||(Sr=e.getLineStarts(ge))}function Vr(E,Qe){if(E!==void 0){var nt=fe(E);vt(4,E,Qe),je(nt)}}function tr(E){E!==void 0&&vt(2,E,void 0)}function xr(E,Qe){E!==void 0&&vt(1,E,Qe)}function Nr(E){vt(e.isStringLiteral(E)?6:4,E)}function zr(E){_e&&e.getEmitFlags(E)&134217728&&(_e=!1)}function gt(E){_e=E}function vt(E,Qe,nt){ze=nt;var Ot=xt(0,E,Qe);Ot(E,Qe),ze=void 0}function ut(E){return!pr&&!e.isSourceFile(E)}function ht(E){return!kr&&!e.isSourceFile(E)&&!e.isInJsonFile(E)&&!e.isUnparsedSource(E)&&!e.isUnparsedPrepend(E)}function xt(E,Qe,nt){switch(E){case 0:if(u!==e.noEmitNotification&&(!g||g(nt)))return Qt;case 1:if(te!==e.noEmitSubstitution&&(Jr=te(Qe,nt)||nt)!==nt)return ze&&(Jr=ze(Jr)),ba;case 2:if(ut(nt))return Bu;case 3:if(ht(nt))return Yc;case 4:return mt;default:return e.Debug.assertNever(E)}}function wt(E,Qe,nt){return xt(E+1,Qe,nt)}function Qt(E,Qe){var nt=wt(0,E,Qe);u(E,Qe,nt)}function mt(E,Qe){if(ue==null||ue(Qe),_e){var nt=_e;zr(Qe),rn(E,Qe),gt(nt)}else rn(E,Qe);X==null||X(Qe),ze=void 0}function rn(E,Qe,nt){if(nt===void 0&&(nt=!0),nt){var Ot=e.getSnippetElement(Qe);if(Ot)return oa(E,Qe,Ot)}if(E===0)return ec(e.cast(Qe,e.isSourceFile));if(E===2)return Mt(e.cast(Qe,e.isIdentifier));if(E===6)return St(e.cast(Qe,e.isStringLiteral),!0);if(E===3)return sa(e.cast(Qe,e.isTypeParameterDeclaration));if(E===5)return e.Debug.assertNode(Qe,e.isEmptyStatement),Co(!0);if(E===4){switch(Qe.kind){case 15:case 16:case 17:return St(Qe,!1);case 79:return Mt(Qe);case 80:return It(Qe);case 160:return rt(Qe);case 161:return Qn(Qe);case 162:return Ra(Qe);case 163:return Ci(Qe);case 164:return _i(Qe);case 165:return va(Qe);case 166:return yi(Qe);case 167:return ro(Qe);case 168:return Ka(Qe);case 169:return Mi(Qe);case 170:return io(Qe);case 171:case 172:return ji(Qe);case 173:return Hi(Qe);case 174:return to(Qe);case 175:return No(Qe);case 176:return Ha(Qe);case 177:return Yo(Qe);case 178:return co(Qe);case 179:return Po(Qe);case 180:return Fo(Qe);case 181:return zo(Qe);case 182:return Es(Qe);case 183:return hr(Qe);case 184:return tn(Qe);case 186:return Un(Qe);case 187:return Oe(Qe);case 188:return oe(Qe);case 189:return mr(Qe);case 190:return se(Qe);case 227:return gi(Qe);case 191:return Be();case 192:return er(Qe);case 193:return vr(Qe);case 194:return qr(Qe);case 195:return Dt(Qe);case 196:return dt(Qe);case 197:return Jt(Qe);case 198:return lo(Qe);case 199:return Sn(Qe);case 200:return ta(Qe);case 201:return xa(Qe);case 202:return Di(Qe);case 232:return Ir(Qe);case 233:return Lo();case 234:return Us(Qe);case 236:return Ml(Qe);case 235:return Co(!1);case 237:return Vs(Qe);case 238:return Ql(Qe);case 239:return uc(Qe);case 240:return cu(Qe);case 241:return no(Qe);case 242:return ql(Qe);case 243:return fc(Qe);case 244:return xc(Qe);case 245:return Ic(Qe);case 246:return uu(Qe);case 247:return dc(Qe);case 248:return Nc(Qe);case 249:return wr(Qe);case 250:return $r(Qe);case 251:return Lt(Qe);case 252:return Kt(Qe);case 253:return pn(Qe);case 254:return fn(Qe);case 255:return kn(Qe);case 256:return jt(Qe);case 257:return ha(Qe);case 258:return ri(Qe);case 259:return Ta(Qe);case 260:return Ya(Qe);case 261:return fi(Qe);case 262:return ci(Qe);case 263:return pc(Qe);case 264:return Si(Qe);case 265:return bo(Qe);case 266:return Ns(Qe);case 267:return Ys(Qe);case 273:return ku(Qe);case 268:return Nu(Qe);case 269:return gf(Qe);case 270:return Zl(Qe);case 271:return jc(Qe);case 272:return ol(Qe);case 274:return kc(Qe);case 292:return Mr(Qe);case 293:return $l(Qe);case 275:return;case 276:return Zf(Qe);case 11:return Jc(Qe);case 279:case 282:return Hc(Qe);case 280:case 283:return zp(Qe);case 284:return qp(Qe);case 285:return dl(Qe);case 286:return Rs(Qe);case 287:return ks(Qe);case 288:return Ou(Qe);case 289:return kd(Qe);case 290:return $f(Qe);case 291:return Od(Qe);case 294:return Rd(Qe);case 295:return Xp(Qe);case 296:return yp(Qe);case 297:return Xl(Qe);case 298:return qt(Qe);case 305:case 299:return Ut(Qe);case 300:case 301:return Mn(Qe);case 302:return dn(Qe);case 303:return ec(Qe);case 304:return e.Debug.fail("Bundles should be printed using printBundle");case 306:return e.Debug.fail("InputFiles should not be printed");case 307:return mc(Qe);case 308:return wd(Qe);case 310:return Ln("*");case 311:return Ln("?");case 312:return hi(Qe);case 313:return Zi(Qe);case 314:return Mo(Qe);case 315:return za(Qe);case 185:case 316:return Cs(Qe);case 317:return;case 318:return C_(Qe);case 320:return Gd(Qe);case 321:return Qp(Qe);case 325:case 330:return Yp(Qe);case 326:case 327:return Md(Qe);case 328:case 329:return;case 331:case 332:case 333:case 334:case 335:return;case 336:return Ep(Qe);case 338:case 345:return Bd(Qe);case 337:case 339:case 340:case 341:return ed(Qe);case 342:return Pd(Qe);case 343:return Fd(Qe);case 344:return bp(Qe);case 347:case 351:case 350:return}if(e.isExpression(Qe)&&(E=1,te!==e.noEmitSubstitution)){var fa=te(E,Qe)||Qe;fa!==Qe&&(Qe=fa,ze&&(Qe=ze(Qe)))}}if(E===1)switch(Qe.kind){case 8:case 9:return en(Qe);case 10:case 13:case 14:return St(Qe,!1);case 79:return Mt(Qe);case 80:return It(Qe);case 203:return $a(Qe);case 204:return Ji(Qe);case 205:return So(Qe);case 206:return bt(Qe);case 207:return Pn(Qe);case 208:return da(Qe);case 209:return ei(Qe);case 210:return bi(Qe);case 211:return xi(Qe);case 212:return ka(Qe);case 213:return mi(Qe);case 214:return Gi(Qe);case 215:return Ro(Qe);case 216:return ko(Qe);case 217:return es(Qe);case 218:return as(Qe);case 219:return Rr(Qe);case 220:return Rt(Qe);case 221:return Zt(Qe);case 222:return Re(Qe);case 223:return Qr(Qe);case 224:return vn(Qe);case 225:return Xn(Qe);case 226:return;case 228:return Ia(Qe);case 229:return oo(Qe);case 230:return Wo(Qe);case 231:return e.Debug.fail("SyntheticExpression should never be printed.");case 277:return hf(Qe);case 278:return Nd(Qe);case 281:return _s(Qe);case 346:return e.Debug.fail("SyntaxList should not be printed");case 347:return;case 348:return Ef(Qe);case 349:return Zp(Qe);case 350:case 351:return;case 352:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}if(e.isKeyword(Qe.kind))return ws(Qe,ii);if(e.isTokenKind(Qe.kind))return ws(Qe,Ln);e.Debug.fail("Unhandled SyntaxKind: ".concat(e.Debug.formatSyntaxKind(Qe.kind),"."))}function sa(E){Vr(E.name),Dn(),ii("in"),Dn(),Vr(E.constraint)}function ba(E,Qe){var nt=wt(1,E,Qe);e.Debug.assertIsDefined(Jr),Qe=Jr,Jr=void 0,nt(E,Qe)}function Jn(E){var Qe;if(!(K===e.ModuleKind.None||y.noEmitHelpers)){for(var nt=new e.Map,Ot=0,fa=E.sourceFiles;Ot<fa.length;Ot++){var Oa=fa[Ot],ia=e.getExternalHelpersModuleName(Oa)!==void 0,ti=Wn(Oa);if(ti)for(var Na=0,Ua=ti;Na<Ua.length;Na++){var Go=Ua[Na];!Go.scoped&&!ia&&!nt.get(Go.name)&&(nt.set(Go.name,!0),(Qe||(Qe=[])).push(Go.name))}}return Qe}}function na(E){var Qe=!1,nt=E.kind===304?E:void 0;if(!(nt&&K===e.ModuleKind.None)){for(var Ot=nt?nt.prepends.length:0,fa=nt?nt.sourceFiles.length+Ot:1,Oa=0;Oa<fa;Oa++){var ia=nt?Oa<Ot?nt.prepends[Oa]:nt.sourceFiles[Oa-Ot]:E,ti=e.isSourceFile(ia)?ia:e.isUnparsedSource(ia)?void 0:ge,Na=y.noEmitHelpers||!!ti&&e.hasRecordedExternalHelpers(ti),Ua=(e.isSourceFile(ia)||e.isUnparsedSource(ia))&&!Ae,Go=e.isUnparsedSource(ia)?ia.helpers:Wn(ia);if(Go)for(var cl=0,os=Go;cl<os.length;cl++){var is=os[cl];if(is.scoped){if(nt)continue}else{if(Na)continue;if(Ua){if(Te.get(is.name))continue;Te.set(is.name,!0)}}var Vl=ye();typeof is.text=="string"?Df(is.text):Df(is.text(If)),Ye&&Ye.sections.push({pos:Vl,end:qe.getTextPos(),kind:"emitHelpers",data:is.name}),Qe=!0}}return Qe}}function Wn(E){var Qe=e.getEmitHelpers(E);return Qe&&e.stableSort(Qe,e.compareEmitHelpers)}function en(E){St(E,!1)}function St(E,Qe){var nt=Js(E,y.neverAsciiEscape,Qe);(y.sourceMap||y.inlineSourceMap)&&(E.kind===10||e.isTemplateLiteralKind(E.kind))?ms(nt):$p(nt)}function Ut(E){for(var Qe=0,nt=E.texts;Qe<nt.length;Qe++){var Ot=nt[Qe];fs(),Vr(Ot)}}function qt(E){qe.rawWrite(E.parent.text.substring(E.pos,E.end))}function Mn(E){var Qe=ye();qt(E),Ye&&or(Qe,qe.getTextPos(),E.kind===300?"text":"internal")}function dn(E){var Qe=ye();if(qt(E),Ye){var nt=e.clone(E.section);nt.pos=Qe,nt.end=qe.getTextPos(),Ye.sections.push(nt)}}function oa(E,Qe,nt){switch(nt.kind){case 1:pt(E,Qe,nt);break;case 0:_t(nt);break}}function pt(E,Qe,nt){rs("${".concat(nt.order,":")),rn(E,Qe,!1),rs("}")}function _t(E){rs("$".concat(E.order))}function Mt(E){var Qe=E.symbol?od:De;Qe(Gu(E,!1),E.symbol),mo(E,E.typeArguments,53776)}function It(E){var Qe=E.symbol?od:De;Qe(Gu(E,!1),E.symbol)}function rt(E){Cn(E.left),Ln("."),Vr(E.right)}function Cn(E){E.kind===79?xr(E):Vr(E)}function Qn(E){Ln("["),xr(E.expression,tt.parenthesizeExpressionOfComputedPropertyName),Ln("]")}function Ra(E){Vr(E.name),E.constraint&&(Dn(),ii("extends"),Dn(),Vr(E.constraint)),E.default&&(Dn(),Rc("="),Dn(),Vr(E.default))}function Ci(E){Pl(E,E.decorators),js(E,E.modifiers),Vr(E.dotDotDotToken),Mu(E.name,sd),Vr(E.questionToken),E.parent&&E.parent.kind===315&&!E.name?Vr(E.type):gc(E.type),nd(E.initializer,E.type?E.type.end:E.questionToken?E.questionToken.end:E.name?E.name.end:E.modifiers?E.modifiers.end:E.decorators?E.decorators.end:E.pos,E,tt.parenthesizeExpressionForDisallowedComma)}function _i(E){Ln("@"),xr(E.expression,tt.parenthesizeLeftSideOfAccess)}function va(E){Pl(E,E.decorators),js(E,E.modifiers),Mu(E.name,N_),Vr(E.questionToken),gc(E.type),us()}function yi(E){Pl(E,E.decorators),js(E,E.modifiers),Vr(E.name),Vr(E.questionToken),Vr(E.exclamationToken),gc(E.type),nd(E.initializer,E.type?E.type.end:E.questionToken?E.questionToken.end:E.name.end,E),us()}function ro(E){Gl(E),Pl(E,E.decorators),js(E,E.modifiers),Vr(E.name),Vr(E.questionToken),Fl(E,E.typeParameters),pl(E,E.parameters),gc(E.type),us(),Kc(E)}function Ka(E){Pl(E,E.decorators),js(E,E.modifiers),Vr(E.asteriskToken),Vr(E.name),Vr(E.questionToken),Fa(E,ua)}function Mi(E){Pl(E,E.decorators),js(E,E.modifiers),ii("static"),rr(E.body)}function io(E){js(E,E.modifiers),ii("constructor"),Fa(E,ua)}function ji(E){Pl(E,E.decorators),js(E,E.modifiers),ii(E.kind===171?"get":"set"),Dn(),Vr(E.name),Fa(E,ua)}function Hi(E){Gl(E),Pl(E,E.decorators),js(E,E.modifiers),Fl(E,E.typeParameters),pl(E,E.parameters),gc(E.type),us(),Kc(E)}function to(E){Gl(E),Pl(E,E.decorators),js(E,E.modifiers),ii("new"),Dn(),Fl(E,E.typeParameters),pl(E,E.parameters),gc(E.type),us(),Kc(E)}function No(E){Pl(E,E.decorators),js(E,E.modifiers),Wd(E,E.parameters),gc(E.type),us()}function lo(E){Vr(E.type),Vr(E.literal)}function Lo(){us()}function Ha(E){E.assertsModifier&&(Vr(E.assertsModifier),Dn()),Vr(E.parameterName),E.type&&(Dn(),ii("is"),Dn(),Vr(E.type))}function Yo(E){Vr(E.typeName),Sl(E,E.typeArguments)}function co(E){Gl(E),Fl(E,E.typeParameters),Tf(E,E.parameters),Dn(),Ln("=>"),Dn(),Vr(E.type),Kc(E)}function za(E){ii("function"),pl(E,E.parameters),Ln(":"),Vr(E.type)}function hi(E){Ln("?"),Vr(E.type)}function Zi(E){Ln("!"),Vr(E.type)}function Mo(E){Vr(E.type),Ln("=")}function Po(E){Gl(E),js(E,E.modifiers),ii("new"),Dn(),Fl(E,E.typeParameters),pl(E,E.parameters),Dn(),Ln("=>"),Dn(),Vr(E.type),Kc(E)}function Fo(E){ii("typeof"),Dn(),Vr(E.exprName)}function zo(E){Ln("{");var Qe=e.getEmitFlags(E)&1?768:32897;mo(E,E.members,Qe|524288),Ln("}")}function Es(E){Vr(E.elementType,tt.parenthesizeElementTypeOfArrayType),Ln("["),Ln("]")}function Cs(E){Ln("..."),Vr(E.type)}function hr(E){La(22,E.pos,Ln,E);var Qe=e.getEmitFlags(E)&1?528:657;mo(E,E.elements,Qe|524288),La(23,E.elements.end,Ln,E)}function dt(E){Vr(E.dotDotDotToken),Vr(E.name),Vr(E.questionToken),La(58,E.name.end,Ln,E),Dn(),Vr(E.type)}function tn(E){Vr(E.type,tt.parenthesizeElementTypeOfArrayType),Ln("?")}function Un(E){mo(E,E.types,516,tt.parenthesizeMemberOfElementType)}function Oe(E){mo(E,E.types,520,tt.parenthesizeMemberOfElementType)}function oe(E){Vr(E.checkType,tt.parenthesizeMemberOfConditionalType),Dn(),ii("extends"),Dn(),Vr(E.extendsType,tt.parenthesizeMemberOfConditionalType),Dn(),Ln("?"),Dn(),Vr(E.trueType),Dn(),Ln(":"),Dn(),Vr(E.falseType)}function mr(E){ii("infer"),Dn(),Vr(E.typeParameter)}function se(E){Ln("("),Vr(E.type),Ln(")")}function Be(){ii("this")}function er(E){Mc(E.operator,ii),Dn(),Vr(E.type,tt.parenthesizeMemberOfElementType)}function vr(E){Vr(E.objectType,tt.parenthesizeMemberOfElementType),Ln("["),Vr(E.indexType),Ln("]")}function qr(E){var Qe=e.getEmitFlags(E);Ln("{"),Qe&1?Dn():(fs(),wc()),E.readonlyToken&&(Vr(E.readonlyToken),E.readonlyToken.kind!==144&&ii("readonly"),Dn()),Ln("["),vt(3,E.typeParameter),E.nameType&&(Dn(),ii("as"),Dn(),Vr(E.nameType)),Ln("]"),E.questionToken&&(Vr(E.questionToken),E.questionToken.kind!==57&&Ln("?")),Ln(":"),Dn(),Vr(E.type),us(),Qe&1?Dn():(fs(),Hs()),Ln("}")}function Dt(E){xr(E.literal)}function Jt(E){Vr(E.head),mo(E,E.templateSpans,262144)}function Sn(E){E.isTypeOf&&(ii("typeof"),Dn()),ii("import"),Ln("("),Vr(E.argument),Ln(")"),E.qualifier&&(Ln("."),Vr(E.qualifier)),Sl(E,E.typeArguments)}function ta(E){Ln("{"),mo(E,E.elements,525136),Ln("}")}function xa(E){Ln("["),mo(E,E.elements,524880),Ln("]")}function Di(E){Vr(E.dotDotDotToken),E.propertyName&&(Vr(E.propertyName),Ln(":"),Dn()),Vr(E.name),nd(E.initializer,E.name.end,E,tt.parenthesizeExpressionForDisallowedComma)}function $a(E){var Qe=E.elements,nt=E.multiLine?65536:0;Dl(E,Qe,8914|nt,tt.parenthesizeExpressionForDisallowedComma)}function Ji(E){e.forEach(E.properties,wn);var Qe=e.getEmitFlags(E)&65536;Qe&&wc();var nt=E.multiLine?65536:0,Ot=ge.languageVersion>=1&&!e.isJsonSourceFile(ge)?64:0;mo(E,E.properties,526226|Ot|nt),Qe&&Hs()}function So(E){xr(E.expression,tt.parenthesizeLeftSideOfAccess);var Qe=E.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),E.expression.end,E.name.pos),nt=yc(E,E.expression,Qe),Ot=yc(E,Qe,E.name);hc(nt,!1);var fa=Qe.kind!==28&&cs(E.expression)&&!qe.hasTrailingComment()&&!qe.hasTrailingWhitespace();fa&&Ln("."),E.questionDotToken?Vr(Qe):La(Qe.kind,E.expression.end,Ln,E),hc(Ot,!1),Vr(E.name),Lf(nt,Ot)}function cs(E){if(E=e.skipPartiallyEmittedExpressions(E),e.isNumericLiteral(E)){var Qe=Js(E,!0,!1);return!E.numericLiteralFlags&&!e.stringContains(Qe,e.tokenToString(24))}else if(e.isAccessExpression(E)){var nt=e.getConstantValue(E);return typeof nt=="number"&&isFinite(nt)&&Math.floor(nt)===nt}}function bt(E){xr(E.expression,tt.parenthesizeLeftSideOfAccess),Vr(E.questionDotToken),La(22,E.expression.end,Ln,E),xr(E.argumentExpression),La(23,E.argumentExpression.end,Ln,E)}function Pn(E){var Qe=e.getEmitFlags(E)&536870912;Qe&&(Ln("("),ms("0"),Ln(","),Dn()),xr(E.expression,tt.parenthesizeLeftSideOfAccess),Qe&&Ln(")"),Vr(E.questionDotToken),Sl(E,E.typeArguments),Dl(E,E.arguments,2576,tt.parenthesizeExpressionForDisallowedComma)}function da(E){La(103,E.pos,ii,E),Dn(),xr(E.expression,tt.parenthesizeExpressionOfNew),Sl(E,E.typeArguments),Dl(E,E.arguments,18960,tt.parenthesizeExpressionForDisallowedComma)}function ei(E){var Qe=e.getEmitFlags(E)&536870912;Qe&&(Ln("("),ms("0"),Ln(","),Dn()),xr(E.tag,tt.parenthesizeLeftSideOfAccess),Qe&&Ln(")"),Sl(E,E.typeArguments),Dn(),xr(E.template)}function bi(E){Ln("<"),Vr(E.type),Ln(">"),xr(E.expression,tt.parenthesizeOperandOfPrefixUnary)}function xi(E){var Qe=La(20,E.pos,Ln,E),nt=ld(E.expression,E);xr(E.expression,void 0),cd(E.expression,E),Lf(nt),La(21,E.expression?E.expression.end:Qe,Ln,E)}function ka(E){Ts(E.name),Kn(E)}function mi(E){Pl(E,E.decorators),js(E,E.modifiers),Fa(E,Xi)}function Xi(E){Fl(E,E.typeParameters),Tf(E,E.parameters),gc(E.type),Dn(),Vr(E.equalsGreaterThanToken)}function Gi(E){La(89,E.pos,ii,E),Dn(),xr(E.expression,tt.parenthesizeOperandOfPrefixUnary)}function Ro(E){La(112,E.pos,ii,E),Dn(),xr(E.expression,tt.parenthesizeOperandOfPrefixUnary)}function ko(E){La(114,E.pos,ii,E),Dn(),xr(E.expression,tt.parenthesizeOperandOfPrefixUnary)}function es(E){La(132,E.pos,ii,E),Dn(),xr(E.expression,tt.parenthesizeOperandOfPrefixUnary)}function as(E){Mc(E.operator,Rc),pe(E)&&Dn(),xr(E.operand,tt.parenthesizeOperandOfPrefixUnary)}function pe(E){var Qe=E.operand;return Qe.kind===218&&(E.operator===39&&(Qe.operator===39||Qe.operator===45)||E.operator===40&&(Qe.operator===40||Qe.operator===46))}function Rr(E){xr(E.operand,tt.parenthesizeOperandOfPostfixUnary),Mc(E.operator,Rc)}function ft(){return e.createBinaryExpressionTrampoline(E,Qe,nt,Ot,fa,void 0);function E(ia,ti){if(ti){ti.stackIndex++,ti.preserveSourceNewlinesStack[ti.stackIndex]=_e,ti.containerPosStack[ti.stackIndex]=de,ti.containerEndStack[ti.stackIndex]=Fe,ti.declarationListContainerEndStack[ti.stackIndex]=$e;var Na=ti.shouldEmitCommentsStack[ti.stackIndex]=ut(ia),Ua=ti.shouldEmitSourceMapsStack[ti.stackIndex]=ht(ia);ue==null||ue(ia),Na&&dd(ia),Ua&&Lp(ia),zr(ia)}else ti={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return ti}function Qe(ia,ti,Na){return Oa(ia,Na,"left")}function nt(ia,ti,Na){var Ua=ia.kind!==27,Go=yc(Na,Na.left,ia),cl=yc(Na,ia,Na.right);hc(Go,Ua),Xc(ia.pos),ws(ia,ia.kind===101?ii:Rc),Wu(ia.end,!0),hc(cl,!0)}function Ot(ia,ti,Na){return Oa(ia,Na,"right")}function fa(ia,ti){var Na=yc(ia,ia.left,ia.operatorToken),Ua=yc(ia,ia.operatorToken,ia.right);if(Lf(Na,Ua),ti.stackIndex>0){var Go=ti.preserveSourceNewlinesStack[ti.stackIndex],cl=ti.containerPosStack[ti.stackIndex],os=ti.containerEndStack[ti.stackIndex],is=ti.declarationListContainerEndStack[ti.stackIndex],Vl=ti.shouldEmitCommentsStack[ti.stackIndex],Zc=ti.shouldEmitSourceMapsStack[ti.stackIndex];gt(Go),Zc&&pd(ia),Vl&&zd(ia,cl,os,is),X==null||X(ia),ti.stackIndex--}}function Oa(ia,ti,Na){var Ua=Na==="left"?tt.getParenthesizeLeftSideOfBinaryForOperator(ti.operatorToken.kind):tt.getParenthesizeRightSideOfBinaryForOperator(ti.operatorToken.kind),Go=xt(0,1,ia);if(Go===ba&&(e.Debug.assertIsDefined(Jr),ia=Ua(e.cast(Jr,e.isExpression)),Go=wt(1,1,ia),Jr=void 0),(Go===Bu||Go===Yc||Go===mt)&&e.isBinaryExpression(ia))return ia;ze=Ua,Go(1,ia)}}function Zt(E){var Qe=yc(E,E.condition,E.questionToken),nt=yc(E,E.questionToken,E.whenTrue),Ot=yc(E,E.whenTrue,E.colonToken),fa=yc(E,E.colonToken,E.whenFalse);xr(E.condition,tt.parenthesizeConditionOfConditionalExpression),hc(Qe,!0),Vr(E.questionToken),hc(nt,!0),xr(E.whenTrue,tt.parenthesizeBranchOfConditionalExpression),Lf(Qe,nt),hc(Ot,!0),Vr(E.colonToken),hc(fa,!0),xr(E.whenFalse,tt.parenthesizeBranchOfConditionalExpression),Lf(Ot,fa)}function Re(E){Vr(E.head),mo(E,E.templateSpans,262144)}function Qr(E){La(125,E.pos,ii,E),Vr(E.asteriskToken),Pu(E.expression,tt.parenthesizeExpressionForDisallowedComma)}function vn(E){La(25,E.pos,Ln,E),xr(E.expression,tt.parenthesizeExpressionForDisallowedComma)}function Xn(E){Ts(E.name),yn(E)}function gi(E){xr(E.expression,tt.parenthesizeLeftSideOfAccess),Sl(E,E.typeArguments)}function Ia(E){xr(E.expression,void 0),E.type&&(Dn(),ii("as"),Dn(),Vr(E.type))}function oo(E){xr(E.expression,tt.parenthesizeLeftSideOfAccess),Rc("!")}function Wo(E){Sf(E.keywordToken,E.pos,Ln),Ln("."),Vr(E.name)}function Ir(E){xr(E.expression),Vr(E.literal)}function Us(E){il(E,!E.multiLine&&ud(E))}function il(E,Qe){La(18,E.pos,Ln,E);var nt=Qe||e.getEmitFlags(E)&1?768:129;mo(E,E.statements,nt),La(19,E.statements.end,Ln,E,!!(nt&1))}function Ml(E){js(E,E.modifiers),Vr(E.declarationList),us()}function Co(E){E?Ln(";"):us()}function Vs(E){xr(E.expression,tt.parenthesizeExpressionOfExpressionStatement),(!e.isJsonSourceFile(ge)||e.nodeIsSynthesized(E.expression))&&us()}function Ql(E){var Qe=La(99,E.pos,ii,E);Dn(),La(20,Qe,Ln,E),xr(E.expression),La(21,E.expression.end,Ln,E),vc(E,E.thenStatement),E.elseStatement&&(Qu(E,E.thenStatement,E.elseStatement),La(91,E.thenStatement.end,ii,E),E.elseStatement.kind===238?(Dn(),Vr(E.elseStatement)):vc(E,E.elseStatement))}function zl(E,Qe){var nt=La(115,Qe,ii,E);Dn(),La(20,nt,Ln,E),xr(E.expression),La(21,E.expression.end,Ln,E)}function uc(E){La(90,E.pos,ii,E),vc(E,E.statement),e.isBlock(E.statement)&&!_e?Dn():Qu(E,E.statement,E.expression),zl(E,E.statement.end),us()}function cu(E){zl(E,E.pos),vc(E,E.statement)}function no(E){var Qe=La(97,E.pos,ii,E);Dn();var nt=La(20,Qe,Ln,E);Ws(E.initializer),nt=La(26,E.initializer?E.initializer.end:nt,Ln,E),Pu(E.condition),nt=La(26,E.condition?E.condition.end:nt,Ln,E),Pu(E.incrementor),La(21,E.incrementor?E.incrementor.end:nt,Ln,E),vc(E,E.statement)}function ql(E){var Qe=La(97,E.pos,ii,E);Dn(),La(20,Qe,Ln,E),Ws(E.initializer),Dn(),La(101,E.initializer.end,ii,E),Dn(),xr(E.expression),La(21,E.expression.end,Ln,E),vc(E,E.statement)}function fc(E){var Qe=La(97,E.pos,ii,E);Dn(),I_(E.awaitModifier),La(20,Qe,Ln,E),Ws(E.initializer),Dn(),La(159,E.initializer.end,ii,E),Dn(),xr(E.expression),La(21,E.expression.end,Ln,E),vc(E,E.statement)}function Ws(E){E!==void 0&&(E.kind===254?Vr(E):xr(E))}function xc(E){La(86,E.pos,ii,E),ad(E.label),us()}function Ic(E){La(81,E.pos,ii,E),ad(E.label),us()}function La(E,Qe,nt,Ot,fa){var Oa=e.getParseTreeNode(Ot),ia=Oa&&Oa.kind===Ot.kind,ti=Qe;if(ia&&ge&&(Qe=e.skipTrivia(ge.text,Qe)),ia&&Ot.pos!==ti){var Na=fa&&ge&&!e.positionsAreOnSameLine(ti,Qe,ge);Na&&wc(),Xc(ti),Na&&Hs()}if(Qe=Mc(E,nt,Qe),ia&&Ot.end!==Qe){var Ua=Ot.kind===287;Wu(Qe,!Ua,Ua)}return Qe}function uu(E){La(105,E.pos,ii,E),Pu(E.expression),us()}function dc(E){var Qe=La(116,E.pos,ii,E);Dn(),La(20,Qe,Ln,E),xr(E.expression),La(21,E.expression.end,Ln,E),vc(E,E.statement)}function Nc(E){var Qe=La(107,E.pos,ii,E);Dn(),La(20,Qe,Ln,E),xr(E.expression),La(21,E.expression.end,Ln,E),Dn(),Vr(E.caseBlock)}function wr(E){Vr(E.label),La(58,E.label.end,Ln,E),Dn(),Vr(E.statement)}function $r(E){La(109,E.pos,ii,E),Pu(E.expression),us()}function Lt(E){La(111,E.pos,ii,E),Dn(),Vr(E.tryBlock),E.catchClause&&(Qu(E,E.tryBlock,E.catchClause),Vr(E.catchClause)),E.finallyBlock&&(Qu(E,E.catchClause||E.tryBlock,E.finallyBlock),La(96,(E.catchClause||E.tryBlock).end,ii,E),Dn(),Vr(E.finallyBlock))}function Kt(E){Sf(87,E.pos,ii),us()}function pn(E){Vr(E.name),Vr(E.exclamationToken),gc(E.type),nd(E.initializer,E.type?E.type.end:E.name.end,E,tt.parenthesizeExpressionForDisallowedComma)}function fn(E){ii(e.isLet(E)?"let":e.isVarConst(E)?"const":"var"),Dn(),mo(E,E.declarations,528)}function kn(E){Kn(E)}function Kn(E){Pl(E,E.decorators),js(E,E.modifiers),ii("function"),Vr(E.asteriskToken),Dn(),tr(E.name),Fa(E,ua)}function Fa(E,Qe){var nt=E.body;if(nt)if(e.isBlock(nt)){var Ot=e.getEmitFlags(E)&65536;Ot&&wc(),Gl(E),e.forEach(E.parameters,Ga),Ga(E.body),Qe(E),rr(nt),Kc(E),Ot&&Hs()}else Qe(E),Dn(),xr(nt,tt.parenthesizeConciseBodyOfArrowFunction);else Qe(E),us()}function ua(E){Fl(E,E.typeParameters),pl(E,E.parameters),gc(E.type)}function le(E){if(e.getEmitFlags(E)&1)return!0;if(E.multiLine||!e.nodeIsSynthesized(E)&&!e.rangeIsOnSingleLine(E,ge)||ll(E,E.statements,2)||Fu(E,E.statements,2))return!1;for(var Qe,nt=0,Ot=E.statements;nt<Ot.length;nt++){var fa=Ot[nt];if(e_(Qe,fa,2)>0)return!1;Qe=fa}return!0}function rr(E){ue==null||ue(E),Dn(),Ln("{"),wc();var Qe=le(E)?yr:ct;Uu?Uu(E,E.statements,Qe):Qe(E),Hs(),Sf(19,E.statements.end,Ln,E),X==null||X(E)}function yr(E){ct(E,!0)}function ct(E,Qe){var nt=Vd(E.statements),Ot=qe.getTextPos();na(E),nt===0&&Ot===qe.getTextPos()&&Qe?(Hs(),mo(E,E.statements,768),wc()):mo(E,E.statements,1,void 0,nt)}function jt(E){yn(E)}function yn(E){e.forEach(E.members,wn),Pl(E,E.decorators),js(E,E.modifiers),ii("class"),E.name&&(Dn(),tr(E.name));var Qe=e.getEmitFlags(E)&65536;Qe&&wc(),Fl(E,E.typeParameters),mo(E,E.heritageClauses,0),Dn(),Ln("{"),mo(E,E.members,129),Ln("}"),Qe&&Hs()}function ha(E){Pl(E,E.decorators),js(E,E.modifiers),ii("interface"),Dn(),Vr(E.name),Fl(E,E.typeParameters),mo(E,E.heritageClauses,512),Dn(),Ln("{"),mo(E,E.members,129),Ln("}")}function ri(E){Pl(E,E.decorators),js(E,E.modifiers),ii("type"),Dn(),Vr(E.name),Fl(E,E.typeParameters),Dn(),Ln("="),Dn(),Vr(E.type),us()}function Ta(E){js(E,E.modifiers),ii("enum"),Dn(),Vr(E.name),Dn(),Ln("{"),mo(E,E.members,145),Ln("}")}function Ya(E){js(E,E.modifiers),~E.flags&1024&&(ii(E.flags&16?"namespace":"module"),Dn()),Vr(E.name);var Qe=E.body;if(!Qe)return us();for(;Qe&&e.isModuleDeclaration(Qe);)Ln("."),Vr(Qe.name),Qe=Qe.body;Dn(),Vr(Qe)}function fi(E){Gl(E),e.forEach(E.statements,Ga),il(E,ud(E)),Kc(E)}function ci(E){La(18,E.pos,Ln,E),mo(E,E.clauses,129),La(19,E.clauses.end,Ln,E,!0)}function Si(E){js(E,E.modifiers),La(100,E.modifiers?E.modifiers.end:E.pos,ii,E),Dn(),E.isTypeOnly&&(La(151,E.pos,ii,E),Dn()),Vr(E.name),Dn(),La(63,E.name.end,Ln,E),Dn(),Do(E.moduleReference),us()}function Do(E){E.kind===79?xr(E):Vr(E)}function bo(E){js(E,E.modifiers),La(100,E.modifiers?E.modifiers.end:E.pos,ii,E),Dn(),E.importClause&&(Vr(E.importClause),Dn(),La(155,E.importClause.end,ii,E),Dn()),xr(E.moduleSpecifier),E.assertClause&&ad(E.assertClause),us()}function Ns(E){E.isTypeOnly&&(La(151,E.pos,ii,E),Dn()),Vr(E.name),E.name&&E.namedBindings&&(La(27,E.name.end,Ln,E),Dn()),Vr(E.namedBindings)}function Ys(E){var Qe=La(41,E.pos,Ln,E);Dn(),La(127,Qe,ii,E),Dn(),Vr(E.name)}function Nu(E){vf(E)}function gf(E){fo(E)}function Zl(E){var Qe=La(93,E.pos,ii,E);Dn(),E.isExportEquals?La(63,Qe,Rc,E):La(88,Qe,ii,E),Dn(),xr(E.expression,E.isExportEquals?tt.getParenthesizeRightSideOfBinaryForOperator(63):tt.parenthesizeExpressionOfExportDefault),us()}function jc(E){var Qe=La(93,E.pos,ii,E);if(Dn(),E.isTypeOnly&&(Qe=La(151,Qe,ii,E),Dn()),E.exportClause?Vr(E.exportClause):Qe=La(41,Qe,Ln,E),E.moduleSpecifier){Dn();var nt=E.exportClause?E.exportClause.end:Qe;La(155,nt,ii,E),Dn(),xr(E.moduleSpecifier)}E.assertClause&&ad(E.assertClause),us()}function Mr(E){La(129,E.pos,ii,E),Dn();var Qe=E.elements;mo(E,Qe,526226)}function $l(E){Vr(E.name),Ln(":"),Dn();var Qe=E.value;if(!(e.getEmitFlags(Qe)&512)){var nt=e.getCommentRange(Qe);Wu(nt.pos)}Vr(Qe)}function pc(E){var Qe=La(93,E.pos,ii,E);Dn(),Qe=La(127,Qe,ii,E),Dn(),Qe=La(142,Qe,ii,E),Dn(),Vr(E.name),us()}function ku(E){var Qe=La(41,E.pos,Ln,E);Dn(),La(127,Qe,ii,E),Dn(),Vr(E.name)}function ol(E){vf(E)}function kc(E){fo(E)}function vf(E){Ln("{"),mo(E,E.elements,525136),Ln("}")}function fo(E){E.isTypeOnly&&(ii("type"),Dn()),E.propertyName&&(Vr(E.propertyName),Dn(),La(127,E.propertyName.end,ii,E),Dn()),Vr(E.name)}function Zf(E){ii("require"),Ln("("),xr(E.expression),Ln(")")}function hf(E){Vr(E.openingElement),mo(E,E.children,262144),Vr(E.closingElement)}function Nd(E){Ln("<"),yf(E.tagName),Sl(E,E.typeArguments),Dn(),Vr(E.attributes),Ln("/>")}function _s(E){Vr(E.openingFragment),mo(E,E.children,262144),Vr(E.closingFragment)}function Hc(E){if(Ln("<"),e.isJsxOpeningElement(E)){var Qe=ld(E.tagName,E);yf(E.tagName),Sl(E,E.typeArguments),E.attributes.properties&&E.attributes.properties.length>0&&Dn(),Vr(E.attributes),cd(E.attributes,E),Lf(Qe)}Ln(">")}function Jc(E){qe.writeLiteral(E.text)}function zp(E){Ln("</"),e.isJsxClosingElement(E)&&yf(E.tagName),Ln(">")}function dl(E){mo(E,E.properties,262656)}function qp(E){Vr(E.name),x_("=",Ln,E.initializer,Nr)}function Rs(E){Ln("{..."),xr(E.expression),Ln("}")}function Ja(E){var Qe=!1;return e.forEachTrailingCommentRange((ge==null?void 0:ge.text)||"",E+1,function(){return Qe=!0}),Qe}function Zn(E){var Qe=!1;return e.forEachLeadingCommentRange((ge==null?void 0:ge.text)||"",E+1,function(){return Qe=!0}),Qe}function Oc(E){return Ja(E)||Zn(E)}function ks(E){var Qe;if(E.expression||!pr&&!e.nodeIsSynthesized(E)&&Oc(E.pos)){var nt=ge&&!e.nodeIsSynthesized(E)&&e.getLineAndCharacterOfPosition(ge,E.pos).line!==e.getLineAndCharacterOfPosition(ge,E.end).line;nt&&qe.increaseIndent();var Ot=La(18,E.pos,Ln,E);Vr(E.dotDotDotToken),xr(E.expression),La(19,((Qe=E.expression)===null||Qe===void 0?void 0:Qe.end)||Ot,Ln,E),nt&&qe.decreaseIndent()}}function yf(E){E.kind===79?xr(E):Vr(E)}function Ou(E){La(82,E.pos,ii,E),Dn(),xr(E.expression,tt.parenthesizeExpressionForDisallowedComma),Uo(E,E.statements,E.expression.end)}function kd(E){var Qe=La(88,E.pos,ii,E);Uo(E,E.statements,Qe)}function Uo(E,Qe,nt){var Ot=Qe.length===1&&(e.nodeIsSynthesized(E)||e.nodeIsSynthesized(Qe[0])||e.rangeStartPositionsAreOnSameLine(E,Qe[0],ge)),fa=163969;Ot?(Sf(58,nt,Ln,E),Dn(),fa&=-130):La(58,nt,Ln,E),mo(E,Qe,fa)}function $f(E){Dn(),Mc(E.token,ii),Dn(),mo(E,E.types,528)}function Od(E){var Qe=La(83,E.pos,ii,E);Dn(),E.variableDeclaration&&(La(20,Qe,Ln,E),Vr(E.variableDeclaration),La(21,E.variableDeclaration.end,Ln,E),Dn()),Vr(E.block)}function Rd(E){Vr(E.name),Ln(":"),Dn();var Qe=E.initializer;if(!(e.getEmitFlags(Qe)&512)){var nt=e.getCommentRange(Qe);Wu(nt.pos)}xr(Qe,tt.parenthesizeExpressionForDisallowedComma)}function Xp(E){Vr(E.name),E.objectAssignmentInitializer&&(Dn(),Ln("="),Dn(),xr(E.objectAssignmentInitializer,tt.parenthesizeExpressionForDisallowedComma))}function yp(E){E.expression&&(La(25,E.pos,Ln,E),xr(E.expression,tt.parenthesizeExpressionForDisallowedComma))}function Xl(E){Vr(E.name),nd(E.initializer,E.name.end,E,tt.parenthesizeExpressionForDisallowedComma)}function C_(E){if(De("/**"),E.comment){var Qe=e.getTextOfJSDocComment(E.comment);if(Qe)for(var nt=Qe.split(/\r\n?|\n/g),Ot=0,fa=nt;Ot<fa.length;Ot++){var Oa=fa[Ot];fs(),Dn(),Ln("*"),Dn(),De(Oa)}}E.tags&&(E.tags.length===1&&E.tags[0].kind===341&&!E.comment?(Dn(),Vr(E.tags[0])):mo(E,E.tags,33)),Dn(),De("*/")}function ed(E){fu(E.tagName),mc(E.typeExpression),_c(E.comment)}function bp(E){fu(E.tagName),Vr(E.name),_c(E.comment)}function wd(E){Dn(),Ln("{"),Vr(E.name),Ln("}")}function Md(E){fu(E.tagName),Dn(),Ln("{"),Vr(E.class),Ln("}"),_c(E.comment)}function Pd(E){fu(E.tagName),mc(E.constraint),Dn(),mo(E,E.typeParameters,528),_c(E.comment)}function Fd(E){fu(E.tagName),E.typeExpression&&(E.typeExpression.kind===307?mc(E.typeExpression):(Dn(),Ln("{"),De("Object"),E.typeExpression.isArrayType&&(Ln("["),Ln("]")),Ln("}"))),E.fullName&&(Dn(),Vr(E.fullName)),_c(E.comment),E.typeExpression&&E.typeExpression.kind===320&&Gd(E.typeExpression)}function Ep(E){fu(E.tagName),E.name&&(Dn(),Vr(E.name)),_c(E.comment),Qp(E.typeExpression)}function Yp(E){fu(E.tagName),_c(E.comment)}function Gd(E){mo(E,e.factory.createNodeArray(E.jsDocPropertyTags),33)}function Qp(E){E.typeParameters&&mo(E,e.factory.createNodeArray(E.typeParameters),33),E.parameters&&mo(E,e.factory.createNodeArray(E.parameters),33),E.type&&(fs(),Dn(),Ln("*"),Dn(),Vr(E.type))}function Bd(E){fu(E.tagName),mc(E.typeExpression),Dn(),E.isBracketed&&Ln("["),Vr(E.name),E.isBracketed&&Ln("]"),_c(E.comment)}function fu(E){Ln("@"),Vr(E)}function _c(E){var Qe=e.getTextOfJSDocComment(E);Qe&&(Dn(),De(Qe))}function mc(E){E&&(Dn(),Ln("{"),Vr(E.type),Ln("}"))}function ec(E){fs();var Qe=E.statements;if(Uu){var nt=Qe.length===0||!e.isPrologueDirective(Qe[0])||e.nodeIsSynthesized(Qe[0]);if(nt){Uu(E,Qe,Sp);return}}Sp(E)}function Ud(E){Tp(!!E.hasNoDefaultLib,E.syntheticFileReferences||[],E.syntheticTypeReferences||[],E.syntheticLibReferences||[]);for(var Qe=0,nt=E.prepends;Qe<nt.length;Qe++){var Ot=nt[Qe];if(e.isUnparsedSource(Ot)&&Ot.syntheticReferences)for(var fa=0,Oa=Ot.syntheticReferences;fa<Oa.length;fa++){var ia=Oa[fa];Vr(ia),fs()}}}function bf(E){E.isDeclarationFile&&Tp(E.hasNoDefaultLib,E.referencedFiles,E.typeReferenceDirectives,E.libReferenceDirectives)}function Tp(E,Qe,nt,Ot){if(E){var fa=qe.getTextPos();sl('/// <reference no-default-lib="true"/>'),Ye&&Ye.sections.push({pos:fa,end:qe.getTextPos(),kind:"no-default-lib"}),fs()}if(ge&&ge.moduleName&&(sl('/// <amd-module name="'.concat(ge.moduleName,'" />')),fs()),ge&&ge.amdDependencies)for(var Oa=0,ia=ge.amdDependencies;Oa<ia.length;Oa++){var ti=ia[Oa];ti.name?sl('/// <amd-dependency name="'.concat(ti.name,'" path="').concat(ti.path,'" />')):sl('/// <amd-dependency path="'.concat(ti.path,'" />')),fs()}for(var Na=0,Ua=Qe;Na<Ua.length;Na++){var Go=Ua[Na],fa=qe.getTextPos();sl('/// <reference path="'.concat(Go.fileName,'" />')),Ye&&Ye.sections.push({pos:fa,end:qe.getTextPos(),kind:"reference",data:Go.fileName}),fs()}for(var cl=0,os=nt;cl<os.length;cl++){var Go=os[cl],fa=qe.getTextPos();sl('/// <reference types="'.concat(Go.fileName,'" />')),Ye&&Ye.sections.push({pos:fa,end:qe.getTextPos(),kind:"type",data:Go.fileName}),fs()}for(var is=0,Vl=Ot;is<Vl.length;is++){var Go=Vl[is],fa=qe.getTextPos();sl('/// <reference lib="'.concat(Go.fileName,'" />')),Ye&&Ye.sections.push({pos:fa,end:qe.getTextPos(),kind:"lib",data:Go.fileName}),fs()}}function Sp(E){var Qe=E.statements;Gl(E),e.forEach(E.statements,Ga),na(E);var nt=e.findIndex(Qe,function(Ot){return!e.isPrologueDirective(Ot)});bf(E),mo(E,Qe,1,void 0,nt===-1?Qe.length:nt),Kc(E)}function Ef(E){xr(E.expression)}function Zp(E){Dl(E,E.elements,528,void 0)}function Vd(E,Qe,nt,Ot){for(var fa=!!Qe,Oa=0;Oa<E.length;Oa++){var ia=E[Oa];if(e.isPrologueDirective(ia)){var ti=nt?!nt.has(ia.expression.text):!0;if(ti){fa&&(fa=!1,fr(Qe)),fs();var Na=qe.getTextPos();Vr(ia),Ot&&Ye&&Ye.sections.push({pos:Na,end:qe.getTextPos(),kind:"prologue",data:ia.expression.text}),nt&&nt.add(ia.expression.text)}}else return Oa}return E.length}function rd(E,Qe){for(var nt=0,Ot=E;nt<Ot.length;nt++){var fa=Ot[nt];if(!Qe.has(fa.data)){fs();var Oa=qe.getTextPos();Vr(fa),Ye&&Ye.sections.push({pos:Oa,end:qe.getTextPos(),kind:"prologue",data:fa.data}),Qe&&Qe.add(fa.data)}}}function td(E){if(e.isSourceFile(E))Vd(E.statements,E);else{for(var Qe=new e.Set,nt=0,Ot=E.prepends;nt<Ot.length;nt++){var fa=Ot[nt];rd(fa.prologues,Qe)}for(var Oa=0,ia=E.sourceFiles;Oa<ia.length;Oa++){var ti=ia[Oa];Vd(ti.statements,ti,Qe,!0)}fr(void 0)}}function Ru(E){for(var Qe=new e.Set,nt,Ot=0;Ot<E.sourceFiles.length;Ot++){for(var fa=E.sourceFiles[Ot],Oa=void 0,ia=0,ti=0,Na=fa.statements;ti<Na.length;ti++){var Ua=Na[ti];if(!e.isPrologueDirective(Ua))break;Qe.has(Ua.expression.text)||(Qe.add(Ua.expression.text),(Oa||(Oa=[])).push({pos:Ua.pos,end:Ua.end,expression:{pos:Ua.expression.pos,end:Ua.expression.end,text:Ua.expression.text}}),ia=ia<Ua.end?Ua.end:ia)}Oa&&(nt||(nt=[])).push({file:Ot,text:fa.text.substring(0,ia),directives:Oa})}return nt}function wu(E){if(e.isSourceFile(E)||e.isUnparsedSource(E)){var Qe=e.getShebang(E.text);if(Qe)return sl(Qe),fs(),!0}else{for(var nt=0,Ot=E.prepends;nt<Ot.length;nt++){var fa=Ot[nt];if(e.Debug.assertNode(fa,e.isUnparsedSource),wu(fa))return!0}for(var Oa=0,ia=E.sourceFiles;Oa<ia.length;Oa++){var ti=ia[Oa];if(wu(ti))return!0}}}function Mu(E,Qe){if(E){var nt=De;De=Qe,Vr(E),De=nt}}function js(E,Qe){Qe&&Qe.length&&(mo(E,Qe,262656),Dn())}function gc(E){E&&(Ln(":"),Dn(),Vr(E))}function nd(E,Qe,nt,Ot){E&&(Dn(),La(63,Qe,Rc,nt),Dn(),xr(E,Ot))}function x_(E,Qe,nt,Ot){nt&&(Qe(E),Ot(nt))}function ad(E){E&&(Dn(),Vr(E))}function Pu(E,Qe){E&&(Dn(),xr(E,Qe))}function I_(E){E&&(Vr(E),Dn())}function vc(E,Qe){e.isBlock(Qe)||e.getEmitFlags(E)&1?(Dn(),Vr(Qe)):(fs(),wc(),e.isEmptyStatement(Qe)?vt(5,Qe):Vr(Qe),Hs())}function Pl(E,Qe){mo(E,Qe,2146305)}function Sl(E,Qe){mo(E,Qe,53776,tt.parenthesizeMemberOfElementType)}function Fl(E,Qe){if(e.isFunctionLike(E)&&E.typeArguments)return Sl(E,E.typeArguments);mo(E,Qe,53776)}function pl(E,Qe){mo(E,Qe,2576)}function Dp(E,Qe){var nt=e.singleOrUndefined(Qe);return nt&&nt.pos===E.pos&&e.isArrowFunction(E)&&!E.type&&!e.some(E.decorators)&&!e.some(E.modifiers)&&!e.some(E.typeParameters)&&!e.some(nt.decorators)&&!e.some(nt.modifiers)&&!nt.dotDotDotToken&&!nt.questionToken&&!nt.type&&!nt.initializer&&e.isIdentifier(nt.name)}function Tf(E,Qe){Dp(E,Qe)?mo(E,Qe,528):pl(E,Qe)}function Wd(E,Qe){mo(E,Qe,8848)}function id(E){switch(E&60){case 0:break;case 16:Ln(",");break;case 4:Dn(),Ln("|");break;case 32:Dn(),Ln("*"),Dn();break;case 8:Dn(),Ln("&");break}}function mo(E,Qe,nt,Ot,fa,Oa){wo(Vr,E,Qe,nt,Ot,fa,Oa)}function Dl(E,Qe,nt,Ot,fa,Oa){wo(xr,E,Qe,nt,Ot,fa,Oa)}function wo(E,Qe,nt,Ot,fa,Oa,ia){Oa===void 0&&(Oa=0),ia===void 0&&(ia=nt?nt.length-Oa:0);var ti=nt===void 0;if(!(ti&&Ot&16384)){var Na=nt===void 0||Oa>=nt.length||ia===0;if(Na&&Ot&32768){j&&j(nt),Se&&Se(nt);return}if(Ot&15360&&(Ln(re(Ot)),Na&&nt&&Wu(nt.pos,!0)),j&&j(nt),Na)Ot&1&&!(_e&&(!Qe||e.rangeIsOnSingleLine(Qe,ge)))?fs():Ot&256&&!(Ot&524288)&&Dn();else{e.Debug.type(nt);var Ua=(Ot&262144)===0,Go=Ua,cl=ll(Qe,nt,Ot);cl?(fs(cl),Go=!1):Ot&256&&Dn(),Ot&128&&wc();for(var os=void 0,is=void 0,Vl=!1,Zc=0;Zc<ia;Zc++){var $c=nt[Oa+Zc];if(Ot&32)fs(),id(Ot);else if(os){Ot&60&&os.end!==(Qe?Qe.end:-1)&&Xc(os.end),id(Ot),je(is);var md=e_(os,$c,Ot);md>0?(Ot&131||(wc(),Vl=!0),fs(md),Go=!1):os&&Ot&512&&Dn()}if(is=fe($c),Go){if(Wu){var t_=e.getCommentRange($c);Wu(t_.pos)}}else Go=Ua;Le=$c.pos,E.length===1?E($c):E($c,fa),Vl&&(Hs(),Vl=!1),os=$c}var tf=os?e.getEmitFlags(os):0,Pf=pr||!!(tf&1024),n_=(nt==null?void 0:nt.hasTrailingComma)&&Ot&64&&Ot&16;n_&&(os&&!Pf?La(27,os.end,Ln,os):Ln(",")),os&&(Qe?Qe.end:-1)!==os.end&&Ot&60&&!Pf&&Xc(n_&&(nt!=null&&nt.end)?nt.end:os.end),Ot&128&&Hs(),je(is);var gd=Fu(Qe,nt,Ot);gd?fs(gd):Ot&2097408&&Dn()}Se&&Se(nt),Ot&15360&&(Na&&nt&&Xc(nt.end),Ln(T(Ot)))}}function ms(E){qe.writeLiteral(E)}function $p(E){qe.writeStringLiteral(E)}function Yl(E){qe.write(E)}function od(E,Qe){qe.writeSymbol(E,Qe)}function Ln(E){qe.writePunctuation(E)}function us(){qe.writeTrailingSemicolon(";")}function ii(E){qe.writeKeyword(E)}function Rc(E){qe.writeOperator(E)}function sd(E){qe.writeParameter(E)}function sl(E){qe.writeComment(E)}function Dn(){qe.writeSpace(" ")}function N_(E){qe.writeProperty(E)}function rs(E){qe.nonEscapingWrite?qe.nonEscapingWrite(E):qe.write(E)}function fs(E){E===void 0&&(E=1);for(var Qe=0;Qe<E;Qe++)qe.writeLine(Qe>0)}function wc(){qe.increaseIndent()}function Hs(){qe.decreaseIndent()}function Sf(E,Qe,nt,Ot){return kr?Mc(E,nt,Qe):_d(Ot,E,nt,Qe,Mc)}function ws(E,Qe){Ce&&Ce(E),Qe(e.tokenToString(E.kind)),R&&R(E)}function Mc(E,Qe,nt){var Ot=e.tokenToString(E);return Qe(Ot),nt<0?nt:nt+Ot.length}function Qu(E,Qe,nt){if(e.getEmitFlags(E)&1)Dn();else if(_e){var Ot=yc(E,Qe,nt);Ot?fs(Ot):Dn()}else fs()}function Df(E){for(var Qe=E.split(/\r\n?|\n/g),nt=e.guessIndentation(Qe),Ot=0,fa=Qe;Ot<fa.length;Ot++){var Oa=fa[Ot],ia=nt?Oa.slice(nt):Oa;ia.length&&(fs(),De(ia))}}function hc(E,Qe){E?(wc(),fs(E)):Qe&&Dn()}function Lf(E,Qe){E&&Hs(),Qe&&Hs()}function ll(E,Qe,nt){if(nt&2||_e){if(nt&65536)return 1;var Ot=Qe[0];if(Ot===void 0)return!E||e.rangeIsOnSingleLine(E,ge)?0:1;if(Ot.pos===Le||Ot.kind===11)return 0;if(E&&!e.positionIsSynthesized(E.pos)&&!e.nodeIsSynthesized(Ot)&&(!Ot.parent||e.getOriginalNode(Ot.parent)===e.getOriginalNode(E)))return _e?Af(function(fa){return e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(Ot.pos,E.pos,ge,fa)}):e.rangeStartPositionsAreOnSameLine(E,Ot,ge)?0:1;if(Cf(Ot,nt))return 1}return nt&1?1:0}function e_(E,Qe,nt){if(nt&2||_e){if(E===void 0||Qe===void 0||Qe.kind===11)return 0;if(!e.nodeIsSynthesized(E)&&!e.nodeIsSynthesized(Qe))return _e&&ef(E,Qe)?Af(function(Ot){return e.getLinesBetweenRangeEndAndRangeStart(E,Qe,ge,Ot)}):!_e&&Xd(E,Qe)?e.rangeEndIsOnSameLineAsRangeStart(E,Qe,ge)?0:1:nt&65536?1:0;if(Cf(E,nt)||Cf(Qe,nt))return 1}else if(e.getStartsOnNewLine(Qe))return 1;return nt&1?1:0}function Fu(E,Qe,nt){if(nt&2||_e){if(nt&65536)return 1;var Ot=e.lastOrUndefined(Qe);if(Ot===void 0)return!E||e.rangeIsOnSingleLine(E,ge)?0:1;if(E&&!e.positionIsSynthesized(E.pos)&&!e.nodeIsSynthesized(Ot)&&(!Ot.parent||Ot.parent===E)){if(_e){var fa=e.isNodeArray(Qe)&&!e.positionIsSynthesized(Qe.end)?Qe.end:Ot.end;return Af(function(Oa){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(fa,E.end,ge,Oa)})}return e.rangeEndPositionsAreOnSameLine(E,Ot,ge)?0:1}if(Cf(Ot,nt))return 1}return nt&1&&!(nt&131072)?1:0}function Af(E){e.Debug.assert(!!_e);var Qe=E(!0);return Qe===0?E(!1):Qe}function ld(E,Qe){var nt=_e&&ll(Qe,[E],0);return nt&&hc(nt,!1),!!nt}function cd(E,Qe){var nt=_e&&Fu(Qe,[E],0);nt&&fs(nt)}function Cf(E,Qe){if(e.nodeIsSynthesized(E)){var nt=e.getStartsOnNewLine(E);return nt===void 0?(Qe&65536)!==0:nt}return(Qe&65536)!==0}function yc(E,Qe,nt){return e.getEmitFlags(E)&131072?0:(E=xf(E),Qe=xf(Qe),nt=xf(nt),e.getStartsOnNewLine(nt)?1:!e.nodeIsSynthesized(E)&&!e.nodeIsSynthesized(Qe)&&!e.nodeIsSynthesized(nt)?_e?Af(function(Ot){return e.getLinesBetweenRangeEndAndRangeStart(Qe,nt,ge,Ot)}):e.rangeEndIsOnSameLineAsRangeStart(Qe,nt,ge)?0:1:0)}function ud(E){return E.statements.length===0&&e.rangeEndIsOnSameLineAsRangeStart(E,E,ge)}function xf(E){for(;E.kind===211&&e.nodeIsSynthesized(E);)E=E.expression;return E}function Gu(E,Qe){return e.isGeneratedIdentifier(E)?jd(E):(e.isIdentifier(E)||e.isPrivateIdentifier(E))&&(e.nodeIsSynthesized(E)||!E.parent||!ge||E.parent&&ge&&e.getSourceFileOfNode(E)!==e.getOriginalNode(ge))?e.idText(E):E.kind===10&&E.textSourceNode?Gu(E.textSourceNode,Qe):e.isLiteralExpression(E)&&(e.nodeIsSynthesized(E)||!E.parent)?E.text:e.getSourceTextOfNodeFromSourceFile(ge,E,Qe)}function Js(E,Qe,nt){if(E.kind===10&&E.textSourceNode){var Ot=E.textSourceNode;if(e.isIdentifier(Ot)||e.isNumericLiteral(Ot)){var fa=e.isNumericLiteral(Ot)?Ot.text:Gu(Ot);return nt?'"'.concat(e.escapeJsxAttributeString(fa),'"'):Qe||e.getEmitFlags(E)&16777216?'"'.concat(e.escapeString(fa),'"'):'"'.concat(e.escapeNonAsciiString(fa),'"')}else return Js(Ot,Qe,nt)}var Oa=(Qe?1:0)|(nt?2:0)|(y.terminateUnterminatedLiterals?4:0)|(y.target&&y.target===99?8:0);return e.getLiteralText(E,ge,Oa)}function Gl(E){E&&e.getEmitFlags(E)&524288||(Ge.push(he),he=0,ve.push(Ve))}function Kc(E){E&&e.getEmitFlags(E)&524288||(he=Ge.pop(),Ve=ve.pop())}function fd(E){(!Ve||Ve===e.lastOrUndefined(ve))&&(Ve=new e.Set),Ve.add(E)}function Ga(E){if(E)switch(E.kind){case 234:e.forEach(E.statements,Ga);break;case 249:case 247:case 239:case 240:Ga(E.statement);break;case 238:Ga(E.thenStatement),Ga(E.elseStatement);break;case 241:case 243:case 242:Ga(E.initializer),Ga(E.statement);break;case 248:Ga(E.caseBlock);break;case 262:e.forEach(E.clauses,Ga);break;case 288:case 289:e.forEach(E.statements,Ga);break;case 251:Ga(E.tryBlock),Ga(E.catchClause),Ga(E.finallyBlock);break;case 291:Ga(E.variableDeclaration),Ga(E.block);break;case 236:Ga(E.declarationList);break;case 254:e.forEach(E.declarations,Ga);break;case 253:case 163:case 202:case 256:Ts(E.name);break;case 255:Ts(E.name),e.getEmitFlags(E)&524288&&(e.forEach(E.parameters,Ga),Ga(E.body));break;case 200:case 201:e.forEach(E.elements,Ga);break;case 265:Ga(E.importClause);break;case 266:Ts(E.name),Ga(E.namedBindings);break;case 267:Ts(E.name);break;case 273:Ts(E.name);break;case 268:e.forEach(E.elements,Ga);break;case 269:Ts(E.propertyName||E.name);break}}function wn(E){if(E)switch(E.kind){case 294:case 295:case 166:case 168:case 171:case 172:Ts(E.name);break}}function Ts(E){E&&(e.isGeneratedIdentifier(E)?jd(E):e.isBindingPattern(E)&&Ga(E))}function jd(E){if((E.autoGenerateFlags&7)===4)return rc(Nf(E),E.autoGenerateFlags);var Qe=E.autoGenerateId;return Pe[Qe]||(Pe[Qe]=nc(E))}function rc(E,Qe){var nt=e.getNodeId(E);return ke[nt]||(ke[nt]=Kd(E,Qe))}function Zu(E){return zc(E)&&!Ie.has(E)&&!(Ve&&Ve.has(E))}function zc(E){return ge?e.isFileLevelUniqueName(ge,E,C):!0}function Hd(E,Qe){for(var nt=Qe;e.isNodeDescendantOf(nt,Qe);nt=nt.nextContainer)if(nt.locals){var Ot=nt.locals.get(e.escapeLeadingUnderscores(E));if(Ot&&Ot.flags&3257279)return!1}return!0}function Ll(E,Qe){if(E&&!(he&E)){var nt=E===268435456?"_i":"_n";if(Zu(nt))return he|=E,Qe&&fd(nt),nt}for(;;){var Ot=he&268435455;if(he++,Ot!==8&&Ot!==13){var nt=Ot<26?"_"+String.fromCharCode(97+Ot):"_"+(Ot-26);if(Zu(nt))return Qe&&fd(nt),nt}}}function tc(E,Qe,nt,Ot){if(Qe===void 0&&(Qe=Zu),nt&&Qe(E))return Ot?fd(E):Ie.add(E),E;E.charCodeAt(E.length-1)!==95&&(E+="_");for(var fa=1;;){var Oa=E+fa;if(Qe(Oa))return Ot?fd(Oa):Ie.add(Oa),Oa;fa++}}function If(E){return tc(E,zc,!0)}function $u(E){var Qe=Gu(E.name);return Hd(Qe,E)?Qe:tc(Qe)}function Qs(E){var Qe=e.getExternalModuleName(E),nt=e.isStringLiteral(Qe)?e.makeIdentifierFromModuleName(Qe.text):"module";return tc(nt)}function Jd(){return tc("default")}function jo(){return tc("class")}function Bl(E){return e.isIdentifier(E.name)?rc(E.name):Ll(0)}function Kd(E,Qe){switch(E.kind){case 79:return tc(Gu(E),Zu,!!(Qe&16),!!(Qe&8));case 260:case 259:return $u(E);case 265:case 271:return Qs(E);case 255:case 256:case 270:return Jd();case 225:return jo();case 168:case 171:case 172:return Bl(E);case 161:return Ll(0,!0);default:return Ll(0)}}function nc(E){switch(E.autoGenerateFlags&7){case 1:return Ll(0,!!(E.autoGenerateFlags&8));case 2:return Ll(268435456,!!(E.autoGenerateFlags&8));case 3:return tc(e.idText(E),E.autoGenerateFlags&32?zc:Zu,!!(E.autoGenerateFlags&16),!!(E.autoGenerateFlags&8))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}function Nf(E){for(var Qe=E.autoGenerateId,nt=E,Ot=nt.original;Ot&&(nt=Ot,!(e.isIdentifier(nt)&&nt.autoGenerateFlags&4&&nt.autoGenerateId!==Qe));)Ot=nt.original;return nt}function Bu(E,Qe){var nt=wt(2,E,Qe),Ot=de,fa=Fe,Oa=$e;dd(Qe),nt(E,Qe),zd(Qe,Ot,fa,Oa)}function dd(E){var Qe=e.getEmitFlags(E),nt=e.getCommentRange(E);Al(E,Qe,nt.pos,nt.end),Qe&2048&&(pr=!0)}function zd(E,Qe,nt,Ot){var fa=e.getEmitFlags(E),Oa=e.getCommentRange(E);fa&2048&&(pr=!1),ts(E,fa,Oa.pos,Oa.end,Qe,nt,Ot)}function Al(E,Qe,nt,Ot){Yr(),He=!1;var fa=nt<0||(Qe&512)!==0||E.kind===11,Oa=Ot<0||(Qe&1024)!==0||E.kind===11;(nt>0||Ot>0)&&nt!==Ot&&(fa||Of(nt,E.kind!==347),(!fa||nt>=0&&Qe&512)&&(de=nt),(!Oa||Ot>=0&&Qe&1024)&&(Fe=Ot,E.kind===254&&($e=Ot))),e.forEach(e.getSyntheticLeadingComments(E),du),lt()}function ts(E,Qe,nt,Ot,fa,Oa,ia){Yr();var ti=Ot<0||(Qe&1024)!==0||E.kind===11;e.forEach(e.getSyntheticTrailingComments(E),qd),(nt>0||Ot>0)&&nt!==Ot&&(de=fa,Fe=Oa,$e=ia,!ti&&E.kind!==347&&Yd(Ot)),lt()}function du(E){(E.hasLeadingNewline||E.kind===2)&&qe.writeLine(),ac(E),E.hasTrailingNewLine||E.kind===2?qe.writeLine():qe.writeSpace(" ")}function qd(E){qe.isAtStartOfLine()||qe.writeSpace(" "),ac(E),E.hasTrailingNewLine&&qe.writeLine()}function ac(E){var Qe=kf(E),nt=E.kind===3?e.computeLineStarts(Qe):void 0;e.writeCommentRange(Qe,nt,qe,0,Qe.length,U)}function kf(E){return E.kind===3?"/*".concat(E.text,"*/"):"//".concat(E.text)}function Uu(E,Qe,nt){Yr();var Ot=Qe.pos,fa=Qe.end,Oa=e.getEmitFlags(E),ia=Ot<0||(Oa&512)!==0,ti=pr||fa<0||(Oa&1024)!==0;ia||Zd(Qe),lt(),Oa&2048&&!pr?(pr=!0,nt(E),pr=!1):nt(E),Yr(),ti||(Of(Qe.end,!0),He&&!qe.isAtStartOfLine()&&qe.writeLine()),lt()}function Xd(E,Qe){return E=e.getOriginalNode(E),E.parent&&E.parent===e.getOriginalNode(Qe).parent}function ef(E,Qe){if(Qe.pos<E.end)return!1;E=e.getOriginalNode(E),Qe=e.getOriginalNode(Qe);var nt=E.parent;if(!nt||nt!==Qe.parent)return!1;var Ot=e.getContainingNodeArray(E),fa=Ot==null?void 0:Ot.indexOf(E);return fa!==void 0&&fa>-1&&Ot.indexOf(Qe)===fa+1}function Of(E,Qe){He=!1,Qe?E===0&&(ge!=null&&ge.isDeclarationFile)?pu(E,qc):pu(E,Vu):E===0&&pu(E,bc)}function bc(E,Qe,nt,Ot,fa){$d(E,Qe)&&Vu(E,Qe,nt,Ot,fa)}function qc(E,Qe,nt,Ot,fa){$d(E,Qe)||Vu(E,Qe,nt,Ot,fa)}function rf(E,Qe){return y.onlyPrintJsDocStyle?e.isJSDocLikeText(E,Qe)||e.isPinnedComment(E,Qe):!0}function Vu(E,Qe,nt,Ot,fa){rf(ge.text,E)&&(He||(e.emitNewLineBeforeLeadingCommentOfPosition(yt(),qe,fa,E),He=!0),Ul(E),e.writeCommentRange(ge.text,yt(),qe,E,Qe,U),Ul(Qe),Ot?qe.writeLine():nt===3&&qe.writeSpace(" "))}function Xc(E){pr||E===-1||Of(E,!0)}function Yd(E){gn(E,Ec)}function Ec(E,Qe,nt,Ot){rf(ge.text,E)&&(qe.isAtStartOfLine()||qe.writeSpace(" "),Ul(E),e.writeCommentRange(ge.text,yt(),qe,E,Qe,U),Ul(Qe),Ot&&qe.writeLine())}function Wu(E,Qe,nt){pr||(Yr(),gn(E,Qe?Ec:nt?r_:Wa),lt())}function r_(E,Qe,nt){Ul(E),e.writeCommentRange(ge.text,yt(),qe,E,Qe,U),Ul(Qe),nt===2&&qe.writeLine()}function Wa(E,Qe,nt,Ot){Ul(E),e.writeCommentRange(ge.text,yt(),qe,E,Qe,U),Ul(Qe),Ot?qe.writeLine():qe.writeSpace(" ")}function pu(E,Qe){ge&&(de===-1||E!==de)&&(Rf(E)?Qd(Qe):e.forEachLeadingCommentRange(ge.text,E,Qe,E))}function gn(E,Qe){ge&&(Fe===-1||E!==Fe&&E!==$e)&&e.forEachTrailingCommentRange(ge.text,E,Qe)}function Rf(E){return Pr!==void 0&&e.last(Pr).nodePos===E}function Qd(E){var Qe=e.last(Pr).detachedCommentEndPos;Pr.length-1?Pr.pop():Pr=void 0,e.forEachLeadingCommentRange(ge.text,Qe,E,Qe)}function Zd(E){var Qe=e.emitDetachedComments(ge.text,yt(),qe,Pc,E,U,pr);Qe&&(Pr?Pr.push(Qe):Pr=[Qe])}function Pc(E,Qe,nt,Ot,fa,Oa){rf(ge.text,Ot)&&(Ul(Ot),e.writeCommentRange(E,Qe,nt,Ot,fa,Oa),Ul(fa))}function $d(E,Qe){return e.isRecognizedTripleSlashComment(ge.text,E,Qe)}function k_(E){return E.parsedSourceMap===void 0&&E.sourceMapText!==void 0&&(E.parsedSourceMap=e.tryParseRawSourceMap(E.sourceMapText)||!1),E.parsedSourceMap||void 0}function Yc(E,Qe){var nt=wt(3,E,Qe);Lp(Qe),nt(E,Qe),pd(Qe)}function Lp(E){var Qe=e.getEmitFlags(E),nt=e.getSourceMapRange(E);if(e.isUnparsedNode(E)){e.Debug.assertIsDefined(E.parent,"UnparsedNodes must have parent pointers");var Ot=k_(E.parent);Ot&&Ke&&Ke.appendSourceMap(qe.getLine(),qe.getColumn(),Ot,E.parent.sourceMapPath,E.parent.getLineAndCharacterOfPosition(E.pos),E.parent.getLineAndCharacterOfPosition(E.end))}else{var fa=nt.source||Me;E.kind!==347&&!(Qe&16)&&nt.pos>=0&&wf(nt.source||Me,Ap(fa,nt.pos)),Qe&64&&(kr=!0)}}function pd(E){var Qe=e.getEmitFlags(E),nt=e.getSourceMapRange(E);e.isUnparsedNode(E)||(Qe&64&&(kr=!1),E.kind!==347&&!(Qe&32)&&nt.end>=0&&wf(nt.source||Me,nt.end))}function Ap(E,Qe){return E.skipTrivia?E.skipTrivia(Qe):e.skipTrivia(E.text,Qe)}function Ul(E){if(!(kr||e.positionIsSynthesized(E)||Mf(Me))){var Qe=e.getLineAndCharacterOfPosition(Me,E),nt=Qe.line,Ot=Qe.character;Ke.addMapping(qe.getLine(),qe.getColumn(),Hr,nt,Ot,void 0)}}function wf(E,Qe){if(E!==Me){var nt=Me,Ot=Hr;Fc(E),Ul(Qe),Qc(nt,Ot)}else Ul(Qe)}function _d(E,Qe,nt,Ot,fa){if(kr||E&&e.isInJsonFile(E))return fa(Qe,nt,Ot);var Oa=E&&E.emitNode,ia=Oa&&Oa.flags||0,ti=Oa&&Oa.tokenSourceMapRanges&&Oa.tokenSourceMapRanges[Qe],Na=ti&&ti.source||Me;return Ot=Ap(Na,ti?ti.pos:Ot),!(ia&128)&&Ot>=0&&wf(Na,Ot),Ot=fa(Qe,nt,Ot),ti&&(Ot=ti.end),!(ia&256)&&Ot>=0&&wf(Na,Ot),Ot}function Fc(E){if(!kr){if(Me=E,E===ur){Hr=gr;return}Mf(E)||(Hr=Ke.addSource(E.fileName),y.inlineSources&&Ke.setSourceContent(Hr,E.text),ur=E,gr=Hr)}}function Qc(E,Qe){Me=E,Hr=Qe}function Mf(E){return e.fileExtensionIs(E.fileName,".json")}}e.createPrinter=Q;function V(){var y=[];return y[1024]=["{","}"],y[2048]=["(",")"],y[4096]=["<",">"],y[8192]=["[","]"],y}function re(y){return n[y&15360][0]}function T(y){return n[y&15360][1]}var N;(function(y){y[y.Auto=0]="Auto",y[y.CountMask=268435455]="CountMask",y[y._i=268435456]="_i"})(N||(N={}))}(jr||(jr={})),function(e){function n(S,B,H){if(!S.getDirectories||!S.readDirectory)return;var I=new e.Map,w=e.createGetCanonicalFileName(H);return{useCaseSensitiveFileNames:H,fileExists:N,readFile:function(X,j){return S.readFile(X,j)},directoryExists:S.directoryExists&&y,getDirectories:C,readDirectory:m,createDirectory:S.createDirectory&&D,writeFile:S.writeFile&&T,addOrDeleteFileOrDirectory:g,addOrDeleteFile:P,clearCache:ue,realpath:S.realpath&&u};function x(X){return e.toPath(X,B,w)}function O(X){return I.get(e.ensureTrailingDirectorySeparator(X))}function q(X){return O(e.getDirectoryPath(X))}function Z(X){return e.getBaseFileName(e.normalizePath(X))}function ne(X,j){var Se;if(!S.realpath||e.ensureTrailingDirectorySeparator(x(S.realpath(X)))===j){var Ce={files:e.map(S.readDirectory(X,void 0,void 0,["*.*"]),Z)||[],directories:S.getDirectories(X)||[]};return I.set(e.ensureTrailingDirectorySeparator(j),Ce),Ce}if(!((Se=S.directoryExists)===null||Se===void 0)&&Se.call(S,X))return I.set(j,!1),!1}function F(X,j){j=e.ensureTrailingDirectorySeparator(j);var Se=O(j);if(Se)return Se;try{return ne(X,j)}catch{e.Debug.assert(!I.has(e.ensureTrailingDirectorySeparator(j)));return}}function Q(X,j){return w(X)===w(j)}function V(X,j){return e.some(X,function(Se){return Q(Se,j)})}function re(X,j,Se){if(V(X,j)){if(!Se)return e.filterMutate(X,function(Ce){return!Q(Ce,j)})}else if(Se)return X.push(j)}function T(X,j,Se){var Ce=x(X),R=q(Ce);return R&&te(R,Z(X),!0),S.writeFile(X,j,Se)}function N(X){var j=x(X),Se=q(j);return Se&&V(Se.files,Z(X))||S.fileExists(X)}function y(X){var j=x(X);return I.has(e.ensureTrailingDirectorySeparator(j))||S.directoryExists(X)}function D(X){var j=x(X),Se=q(j),Ce=Z(X);Se&&re(Se.directories,Ce,!0),S.createDirectory(X)}function C(X){var j=x(X),Se=F(X,j);return Se?Se.directories.slice():S.getDirectories(X)}function m(X,j,Se,Ce,R){var Y=x(X),U=F(X,Y),K;if(U!==void 0)return e.matchFiles(X,j,Se,Ce,H,B,R,Te,u);return S.readDirectory(X,j,Se,Ce,R);function Te(ke){var Pe=x(ke);if(Pe===Y)return U||ge(ke,Pe);var Ie=F(ke,Pe);return Ie!==void 0?Ie||ge(ke,Pe):e.emptyFileSystemEntries}function ge(ke,Pe){if(K&&Pe===Y)return K;var Ie={files:e.map(S.readDirectory(ke,void 0,void 0,["*.*"]),Z)||e.emptyArray,directories:S.getDirectories(ke)||e.emptyArray};return Pe===Y&&(K=Ie),Ie}}function u(X){return S.realpath?S.realpath(X):X}function g(X,j){var Se=O(j);if(Se!==void 0){ue();return}var Ce=q(j);if(Ce){if(!S.directoryExists){ue();return}var R=Z(X),Y={fileExists:S.fileExists(j),directoryExists:S.directoryExists(j)};return Y.directoryExists||V(Ce.directories,R)?ue():te(Ce,R,Y.fileExists),Y}}function P(X,j,Se){if(Se!==e.FileWatcherEventKind.Changed){var Ce=q(j);Ce&&te(Ce,Z(X),Se===e.FileWatcherEventKind.Created)}}function te(X,j,Se){re(X.files,j,Se)}function ue(){I.clear()}}e.createCachedDirectoryStructureHost=n,function(S){S[S.None=0]="None",S[S.Partial=1]="Partial",S[S.Full=2]="Full"}(e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}));function f(S,B,H,I,w){var x,O=e.arrayToMap(((x=B==null?void 0:B.configFile)===null||x===void 0?void 0:x.extendedSourceFiles)||e.emptyArray,w);H.forEach(function(q,Z){O.has(Z)||(q.projects.delete(S),q.close())}),O.forEach(function(q,Z){var ne=H.get(Z);ne?ne.projects.add(S):H.set(Z,{projects:new e.Set([S]),watcher:I(q,Z),close:function(){var F=H.get(Z);!F||F.projects.size!==0||(F.watcher.close(),H.delete(Z))}})})}e.updateSharedExtendedConfigFileWatcher=f;function p(S,B){B.forEach(function(H){H.projects.delete(S)&&H.close()})}e.clearSharedExtendedConfigFileWatcher=p;function a(S,B,H){S.delete(B)&&S.forEach(function(I,w){var x,O=I.extendedResult;!((x=O.extendedSourceFiles)===null||x===void 0)&&x.some(function(q){return H(q)===B})&&a(S,w,H)})}e.cleanExtendedConfigCache=a;function d(S,B,H){var I=new e.Map(S);e.mutateMap(B,I,{createNewValue:H,onDeleteValue:e.closeFileWatcher})}e.updatePackageJsonWatch=d;function k(S,B,H){var I=S.getMissingFilePaths(),w=e.arrayToMap(I,e.identity,e.returnTrue);e.mutateMap(B,w,{createNewValue:H,onDeleteValue:e.closeFileWatcher})}e.updateMissingFilePathsWatch=k;function J(S,B,H){e.mutateMap(S,B,{createNewValue:I,onDeleteValue:M,onExistingValue:w});function I(x,O){return{watcher:H(x,O),flags:O}}function w(x,O,q){x.flags!==O&&(x.watcher.close(),S.set(q,I(q,O)))}}e.updateWatchingWildcardDirectories=J;function h(S){var B=S.watchedDirPath,H=S.fileOrDirectory,I=S.fileOrDirectoryPath,w=S.configFileName,x=S.options,O=S.program,q=S.extraFileExtensions,Z=S.currentDirectory,ne=S.useCaseSensitiveFileNames,F=S.writeLog,Q=S.toPath,V=e.removeIgnoredPath(I);if(!V)return F("Project: ".concat(w," Detected ignored path: ").concat(H)),!0;if(I=V,I===B)return!1;if(e.hasExtension(I)&&!e.isSupportedSourceFileName(H,x,q))return F("Project: ".concat(w," Detected file add/remove of non supported extension: ").concat(H)),!0;if(e.isExcludedFile(H,x.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(w),Z),ne,Z))return F("Project: ".concat(w," Detected excluded file: ").concat(H)),!0;if(!O||e.outFile(x)||x.outDir)return!1;if(e.fileExtensionIs(I,".d.ts")){if(x.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(I,e.supportedJSExtensionsFlat))return!1;var re=e.removeFileExtension(I),T=e.isArray(O)?void 0:v(O)?O.getProgramOrUndefined():O,N=!T&&!e.isArray(O)?O:void 0;if(y(re+".ts")||y(re+".tsx"))return F("Project: ".concat(w," Detected output file: ").concat(H)),!0;return!1;function y(D){return T?!!T.getSourceFileByPath(D):N?N.getState().fileInfos.has(D):!!e.find(O,function(C){return Q(C)===D})}}e.isIgnoredFileFromWildCardWatching=h;function v(S){return!!S.getState}function A(S,B){return S?S.isEmittedFile(B):!1}e.isEmittedFileOfProgram=A;var z;(function(S){S[S.None=0]="None",S[S.TriggerOnly=1]="TriggerOnly",S[S.Verbose=2]="Verbose"})(z=e.WatchLogLevel||(e.WatchLogLevel={}));function ie(S,B,H,I){e.setSysLog(B===z.Verbose?H:e.noop);var w={watchFile:function(N,y,D,C){return S.watchFile(N,y,D,C)},watchDirectory:function(N,y,D,C){return S.watchDirectory(N,y,(D&1)!==0,C)}},x=B!==z.None?{watchFile:re("watchFile"),watchDirectory:re("watchDirectory")}:void 0,O=B===z.Verbose?{watchFile:Q,watchDirectory:V}:x||w,q=B===z.Verbose?F:e.returnNoopFileWatcher;return{watchFile:Z("watchFile"),watchDirectory:Z("watchDirectory")};function Z(N){return function(y,D,C,m,u,g){var P;return e.matchesExclude(y,N==="watchFile"?m==null?void 0:m.excludeFiles:m==null?void 0:m.excludeDirectories,ne(),((P=S.getCurrentDirectory)===null||P===void 0?void 0:P.call(S))||"")?q(y,C,m,u,g):O[N].call(void 0,y,D,C,m,u,g)}}function ne(){return typeof S.useCaseSensitiveFileNames=="boolean"?S.useCaseSensitiveFileNames:S.useCaseSensitiveFileNames()}function F(N,y,D,C,m){return H("ExcludeWatcher:: Added:: ".concat(T(N,y,D,C,m,I))),{close:function(){return H("ExcludeWatcher:: Close:: ".concat(T(N,y,D,C,m,I)))}}}function Q(N,y,D,C,m,u){H("FileWatcher:: Added:: ".concat(T(N,D,C,m,u,I)));var g=x.watchFile(N,y,D,C,m,u);return{close:function(){H("FileWatcher:: Close:: ".concat(T(N,D,C,m,u,I))),g.close()}}}function V(N,y,D,C,m,u){var g="DirectoryWatcher:: Added:: ".concat(T(N,D,C,m,u,I));H(g);var P=e.timestamp(),te=x.watchDirectory(N,y,D,C,m,u),ue=e.timestamp()-P;return H("Elapsed:: ".concat(ue,"ms ").concat(g)),{close:function(){var X="DirectoryWatcher:: Close:: ".concat(T(N,D,C,m,u,I));H(X);var j=e.timestamp();te.close();var Se=e.timestamp()-j;H("Elapsed:: ".concat(Se,"ms ").concat(X))}}}function re(N){return function(y,D,C,m,u,g){return w[N].call(void 0,y,function(){for(var P=[],te=0;te<arguments.length;te++)P[te]=arguments[te];var ue="".concat(N==="watchFile"?"FileWatcher":"DirectoryWatcher",":: Triggered with ").concat(P[0]," ").concat(P[1]!==void 0?P[1]:"",":: ").concat(T(y,C,m,u,g,I));H(ue);var X=e.timestamp();D.call.apply(D,Gt([void 0],P,!1));var j=e.timestamp()-X;H("Elapsed:: ".concat(j,"ms ").concat(ue))},C,m,u,g)}}function T(N,y,D,C,m,u){return"WatchInfo: ".concat(N," ").concat(y," ").concat(JSON.stringify(D)," ").concat(u?u(C,m):m===void 0?C:"".concat(C," ").concat(m))}}e.getWatchFactory=ie;function b(S){var B=S==null?void 0:S.fallbackPolling;return{watchFile:B!==void 0?B:e.WatchFileKind.PriorityPollingInterval}}e.getFallbackOptions=b;function M(S){S.watcher.close()}e.closeFileWatcherOf=M}(jr||(jr={})),function(e){function n(K,Te,ge){return ge===void 0&&(ge="tsconfig.json"),e.forEachAncestorDirectory(K,function(ke){var Pe=e.combinePaths(ke,ge);return Te(Pe)?Pe:void 0})}e.findConfigFile=n;function f(K,Te){var ge=e.getDirectoryPath(Te),ke=e.isRootedDiskPath(K)?K:e.combinePaths(ge,K);return e.normalizePath(ke)}e.resolveTripleslashReference=f;function p(K,Te,ge){var ke,Pe=e.forEach(K,function(Ie){var Ge=e.getNormalizedPathComponents(Ie,Te);if(Ge.pop(),!ke){ke=Ge;return}for(var he=Math.min(ke.length,Ge.length),ve=0;ve<he;ve++)if(ge(ke[ve])!==ge(Ge[ve])){if(ve===0)return!0;ke.length=ve;break}Ge.length<ke.length&&(ke.length=Ge.length)});return Pe?"":ke?e.getPathFromPathComponents(ke):Te}e.computeCommonSourceDirectoryOfFilenames=p;function a(K,Te){return d(K,Te)}e.createCompilerHost=a;function d(K,Te,ge){ge===void 0&&(ge=e.sys);var ke=new e.Map,Pe=e.createGetCanonicalFileName(ge.useCaseSensitiveFileNames),Ie=e.maybeBind(ge,ge.createHash)||e.generateDjb2Hash;function Ge(Ae,Ye,Dr){var br;try{e.performance.mark("beforeIORead"),br=De.readFile(Ae),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(lr){Dr&&Dr(lr.message),br=""}return br!==void 0?e.createSourceFile(Ae,br,Ye,Te):void 0}function he(Ae){return ke.has(Ae)?!0:(De.directoryExists||ge.directoryExists)(Ae)?(ke.set(Ae,!0),!0):!1}function ve(Ae,Ye,Dr,br){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(Ae,Ye,Dr,function(lr,Ar,kr){return _e(lr,Ar,kr)},function(lr){return(De.createDirectory||ge.createDirectory)(lr)},function(lr){return he(lr)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(lr){br&&br(lr.message)}}var Ve;function _e(Ae,Ye,Dr){if(!e.isWatchSet(K)||!ge.getModifiedTime){ge.writeFile(Ae,Ye,Dr);return}Ve||(Ve=new e.Map);var br=Ie(Ye),lr=ge.getModifiedTime(Ae);if(lr){var Ar=Ve.get(Ae);if(Ar&&Ar.byteOrderMark===Dr&&Ar.hash===br&&Ar.mtime.getTime()===lr.getTime())return}ge.writeFile(Ae,Ye,Dr);var kr=ge.getModifiedTime(Ae)||e.missingFileModifiedTime;Ve.set(Ae,{hash:br,byteOrderMark:Dr,mtime:kr})}function Le(){return e.getDirectoryPath(e.normalizePath(ge.getExecutingFilePath()))}var qe=e.getNewLineCharacter(K,function(){return ge.newLine}),Xe=ge.realpath&&function(Ae){return ge.realpath(Ae)},De={getSourceFile:Ge,getDefaultLibLocation:Le,getDefaultLibFileName:function(Ae){return e.combinePaths(Le(),e.getDefaultLibFileName(Ae))},writeFile:ve,getCurrentDirectory:e.memoize(function(){return ge.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return ge.useCaseSensitiveFileNames},getCanonicalFileName:Pe,getNewLine:function(){return qe},fileExists:function(Ae){return ge.fileExists(Ae)},readFile:function(Ae){return ge.readFile(Ae)},trace:function(Ae){return ge.write(Ae+qe)},directoryExists:function(Ae){return ge.directoryExists(Ae)},getEnvironmentVariable:function(Ae){return ge.getEnvironmentVariable?ge.getEnvironmentVariable(Ae):""},getDirectories:function(Ae){return ge.getDirectories(Ae)},realpath:Xe,readDirectory:function(Ae,Ye,Dr,br,lr){return ge.readDirectory(Ae,Ye,Dr,br,lr)},createDirectory:function(Ae){return ge.createDirectory(Ae)},createHash:e.maybeBind(ge,ge.createHash)};return De}e.createCompilerHostWorker=d;function k(K,Te,ge){var ke=K.readFile,Pe=K.fileExists,Ie=K.directoryExists,Ge=K.createDirectory,he=K.writeFile,ve=new e.Map,Ve=new e.Map,_e=new e.Map,Le=new e.Map,qe=function(Ae){var Ye=Te(Ae),Dr=ve.get(Ye);return Dr!==void 0?Dr!==!1?Dr:void 0:Xe(Ye,Ae)},Xe=function(Ae,Ye){var Dr=ke.call(K,Ye);return ve.set(Ae,Dr!==void 0?Dr:!1),Dr};K.readFile=function(Ae){var Ye=Te(Ae),Dr=ve.get(Ye);return Dr!==void 0?Dr!==!1?Dr:void 0:!e.fileExtensionIs(Ae,".json")&&!e.isBuildInfoFile(Ae)?ke.call(K,Ae):Xe(Ye,Ae)};var De=ge?function(Ae,Ye,Dr,br){var lr=Te(Ae),Ar=Le.get(lr);if(Ar)return Ar;var kr=ge(Ae,Ye,Dr,br);return kr&&(e.isDeclarationFileName(Ae)||e.fileExtensionIs(Ae,".json"))&&Le.set(lr,kr),kr}:void 0;return K.fileExists=function(Ae){var Ye=Te(Ae),Dr=Ve.get(Ye);if(Dr!==void 0)return Dr;var br=Pe.call(K,Ae);return Ve.set(Ye,!!br),br},he&&(K.writeFile=function(Ae,Ye,Dr,br,lr){var Ar=Te(Ae);Ve.delete(Ar);var kr=ve.get(Ar);if(kr!==void 0&&kr!==Ye)ve.delete(Ar),Le.delete(Ar);else if(De){var Ke=Le.get(Ar);Ke&&Ke.text!==Ye&&Le.delete(Ar)}he.call(K,Ae,Ye,Dr,br,lr)}),Ie&&Ge&&(K.directoryExists=function(Ae){var Ye=Te(Ae),Dr=_e.get(Ye);if(Dr!==void 0)return Dr;var br=Ie.call(K,Ae);return _e.set(Ye,!!br),br},K.createDirectory=function(Ae){var Ye=Te(Ae);_e.delete(Ye),Ge.call(K,Ae)}),{originalReadFile:ke,originalFileExists:Pe,originalDirectoryExists:Ie,originalCreateDirectory:Ge,originalWriteFile:he,getSourceFileWithCache:De,readFileWithCache:qe}}e.changeCompilerHostLikeToUseCache=k;function J(K,Te,ge){var ke;return ke=e.addRange(ke,K.getConfigFileParsingDiagnostics()),ke=e.addRange(ke,K.getOptionsDiagnostics(ge)),ke=e.addRange(ke,K.getSyntacticDiagnostics(Te,ge)),ke=e.addRange(ke,K.getGlobalDiagnostics(ge)),ke=e.addRange(ke,K.getSemanticDiagnostics(Te,ge)),e.getEmitDeclarations(K.getCompilerOptions())&&(ke=e.addRange(ke,K.getDeclarationDiagnostics(Te,ge))),e.sortAndDeduplicateDiagnostics(ke||e.emptyArray)}e.getPreEmitDiagnostics=J;function h(K,Te){for(var ge="",ke=0,Pe=K;ke<Pe.length;ke++){var Ie=Pe[ke];ge+=v(Ie,Te)}return ge}e.formatDiagnostics=h;function v(K,Te){var ge="".concat(e.diagnosticCategoryName(K)," TS").concat(K.code,": ").concat(q(K.messageText,Te.getNewLine())).concat(Te.getNewLine());if(K.file){var ke=e.getLineAndCharacterOfPosition(K.file,K.start),Pe=ke.line,Ie=ke.character,Ge=K.file.fileName,he=e.convertToRelativePath(Ge,Te.getCurrentDirectory(),function(ve){return Te.getCanonicalFileName(ve)});return"".concat(he,"(").concat(Pe+1,",").concat(Ie+1,"): ")+ge}return ge}e.formatDiagnostic=v;var A;(function(K){K.Grey="\x1B[90m",K.Red="\x1B[91m",K.Yellow="\x1B[93m",K.Blue="\x1B[94m",K.Cyan="\x1B[96m"})(A=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var z="\x1B[7m",ie=" ",b="\x1B[0m",M="...",S=" ",B=" ";function H(K){switch(K){case e.DiagnosticCategory.Error:return A.Red;case e.DiagnosticCategory.Warning:return A.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return A.Blue}}function I(K,Te){return Te+K+b}e.formatColorAndReset=I;function w(K,Te,ge,ke,Pe,Ie){var Ge=e.getLineAndCharacterOfPosition(K,Te),he=Ge.line,ve=Ge.character,Ve=e.getLineAndCharacterOfPosition(K,Te+ge),_e=Ve.line,Le=Ve.character,qe=e.getLineAndCharacterOfPosition(K,K.text.length).line,Xe=_e-he>=4,De=(_e+1+"").length;Xe&&(De=Math.max(M.length,De));for(var Ae="",Ye=he;Ye<=_e;Ye++){Ae+=Ie.getNewLine(),Xe&&he+1<Ye&&Ye<_e-1&&(Ae+=ke+I(e.padLeft(M,De),z)+ie+Ie.getNewLine(),Ye=_e-1);var Dr=e.getPositionOfLineAndCharacter(K,Ye,0),br=Ye<qe?e.getPositionOfLineAndCharacter(K,Ye+1,0):K.text.length,lr=K.text.slice(Dr,br);if(lr=e.trimStringEnd(lr),lr=lr.replace(/\t/g," "),Ae+=ke+I(e.padLeft(Ye+1+"",De),z)+ie,Ae+=lr+Ie.getNewLine(),Ae+=ke+I(e.padLeft("",De),z)+ie,Ae+=Pe,Ye===he){var Ar=Ye===_e?Le:void 0;Ae+=lr.slice(0,ve).replace(/\S/g," "),Ae+=lr.slice(ve,Ar).replace(/./g,"~")}else Ye===_e?Ae+=lr.slice(0,Le).replace(/./g,"~"):Ae+=lr.replace(/./g,"~");Ae+=b}return Ae}function x(K,Te,ge,ke){ke===void 0&&(ke=I);var Pe=e.getLineAndCharacterOfPosition(K,Te),Ie=Pe.line,Ge=Pe.character,he=ge?e.convertToRelativePath(K.fileName,ge.getCurrentDirectory(),function(Ve){return ge.getCanonicalFileName(Ve)}):K.fileName,ve="";return ve+=ke(he,A.Cyan),ve+=":",ve+=ke("".concat(Ie+1),A.Yellow),ve+=":",ve+=ke("".concat(Ge+1),A.Yellow),ve}e.formatLocation=x;function O(K,Te){for(var ge="",ke=0,Pe=K;ke<Pe.length;ke++){var Ie=Pe[ke];if(Ie.file){var Ge=Ie.file,he=Ie.start;ge+=x(Ge,he,Te),ge+=" - "}if(ge+=I(e.diagnosticCategoryName(Ie),H(Ie.category)),ge+=I(" TS".concat(Ie.code,": "),A.Grey),ge+=q(Ie.messageText,Te.getNewLine()),Ie.file&&(ge+=Te.getNewLine(),ge+=w(Ie.file,Ie.start,Ie.length,"",H(Ie.category),Te)),Ie.relatedInformation){ge+=Te.getNewLine();for(var ve=0,Ve=Ie.relatedInformation;ve<Ve.length;ve++){var _e=Ve[ve],Ge=_e.file,he=_e.start,Le=_e.length,qe=_e.messageText;Ge&&(ge+=Te.getNewLine(),ge+=S+x(Ge,he,Te),ge+=w(Ge,he,Le,B,A.Cyan,Te)),ge+=Te.getNewLine(),ge+=B+q(qe,Te.getNewLine())}}ge+=Te.getNewLine()}return ge}e.formatDiagnosticsWithColorAndContext=O;function q(K,Te,ge){if(ge===void 0&&(ge=0),e.isString(K))return K;if(K===void 0)return"";var ke="";if(ge){ke+=Te;for(var Pe=0;Pe<ge;Pe++)ke+=" "}if(ke+=K.messageText,ge++,K.next)for(var Ie=0,Ge=K.next;Ie<Ge.length;Ie++){var he=Ge[Ie];ke+=q(he,Te,ge)}return ke}e.flattenDiagnosticMessageText=q;function Z(K,Te,ge,ke){if(K.length===0)return[];for(var Pe=[],Ie=new e.Map,Ge=0,he=K;Ge<he.length;Ge++){var ve=he[Ge],Ve=void 0;Ie.has(ve)?Ve=Ie.get(ve):Ie.set(ve,Ve=ke(ve,Te,ge)),Pe.push(Ve)}return Pe}e.loadWithLocalCache=Z;function ne(K,Te){if(K.impliedNodeFormat!==void 0)return F(K,U(K,Te))}e.getModeForResolutionAtIndex=ne;function F(K,Te){var ge;if(K.impliedNodeFormat!==void 0){if(K.impliedNodeFormat!==e.ModuleKind.ESNext)return e.isImportCall(e.walkUpParenthesizedExpressions(Te.parent))?e.ModuleKind.ESNext:e.ModuleKind.CommonJS;var ke=(ge=e.walkUpParenthesizedExpressions(Te.parent))===null||ge===void 0?void 0:ge.parent;return ke&&e.isImportEqualsDeclaration(ke)?e.ModuleKind.CommonJS:e.ModuleKind.ESNext}}e.getModeForUsageLocation=F;function Q(K,Te,ge,ke,Pe){if(K.length===0)return[];for(var Ie=[],Ge=new e.Map,he=0,ve=0,Ve=K;ve<Ve.length;ve++){var _e=Ve[ve],Le=void 0,qe=ne(Te,he);he++;var Xe=qe!==void 0?"".concat(qe,"|").concat(_e):_e;Ge.has(Xe)?Le=Ge.get(Xe):Ge.set(Xe,Le=Pe(_e,qe,ge,ke)),Ie.push(Le)}return Ie}e.loadWithModeAwareCache=Q;function V(K,Te){return re(void 0,K,function(ge,ke){return ge&&Te(ge,ke)})}e.forEachResolvedProjectReference=V;function re(K,Te,ge,ke){var Pe;return Ie(K,Te,void 0);function Ie(Ge,he,ve){if(ke){var Ve=ke(Ge,ve);if(Ve)return Ve}return e.forEach(he,function(_e,Le){if(!(_e&&(Pe!=null&&Pe.has(_e.sourceFile.path)))){var qe=ge(_e,ve,Le);return qe||!_e?qe:((Pe||(Pe=new e.Set)).add(_e.sourceFile.path),Ie(_e.commandLine.projectReferences,_e.references,_e))}})}}e.inferredTypesContainingFile="__inferred type names__.ts";function T(K){switch(K==null?void 0:K.kind){case e.FileIncludeKind.Import:case e.FileIncludeKind.ReferenceFile:case e.FileIncludeKind.TypeReferenceDirective:case e.FileIncludeKind.LibReferenceDirective:return!0;default:return!1}}e.isReferencedFile=T;function N(K){return K.pos!==void 0}e.isReferenceFileLocation=N;function y(K,Te){var ge,ke,Pe,Ie,Ge,he,ve,Ve=e.Debug.checkDefined(K(Te.file)),_e=Te.kind,Le=Te.index,qe,Xe,De;switch(_e){case e.FileIncludeKind.Import:var Ae=U(Ve,Le);if(De=(Ge=(Ie=Ve.resolvedModules)===null||Ie===void 0?void 0:Ie.get(Ae.text,ne(Ve,Le)))===null||Ge===void 0?void 0:Ge.packageId,Ae.pos===-1)return{file:Ve,packageId:De,text:Ae.text};qe=e.skipTrivia(Ve.text,Ae.pos),Xe=Ae.end;break;case e.FileIncludeKind.ReferenceFile:ge=Ve.referencedFiles[Le],qe=ge.pos,Xe=ge.end;break;case e.FileIncludeKind.TypeReferenceDirective:ke=Ve.typeReferenceDirectives[Le],qe=ke.pos,Xe=ke.end,De=(ve=(he=Ve.resolvedTypeReferenceDirectiveNames)===null||he===void 0?void 0:he.get(e.toFileNameLowerCase(Ve.typeReferenceDirectives[Le].fileName),Ve.impliedNodeFormat))===null||ve===void 0?void 0:ve.packageId;break;case e.FileIncludeKind.LibReferenceDirective:Pe=Ve.libReferenceDirectives[Le],qe=Pe.pos,Xe=Pe.end;break;default:return e.Debug.assertNever(_e)}return{file:Ve,pos:qe,end:Xe,packageId:De}}e.getReferencedFileLocation=y;function D(K,Te,ge,ke,Pe,Ie,Ge,he,ve){if(!K||Ge!=null&&Ge()||!e.arrayIsEqualTo(K.getRootFileNames(),Te))return!1;var Ve;if(!e.arrayIsEqualTo(K.getProjectReferences(),ve,Xe)||K.getSourceFiles().some(Le)||K.getMissingFilePaths().some(Pe))return!1;var _e=K.getCompilerOptions();if(!e.compareDataObjects(_e,ge))return!1;if(_e.configFile&&ge.configFile)return _e.configFile.text===ge.configFile.text;return!0;function Le(Ae){return!qe(Ae)||Ie(Ae.path)}function qe(Ae){return Ae.version===ke(Ae.resolvedPath,Ae.fileName)}function Xe(Ae,Ye,Dr){return e.projectReferenceIsEqualTo(Ae,Ye)&&De(K.getResolvedProjectReferences()[Dr],Ae)}function De(Ae,Ye){if(Ae){if(e.contains(Ve,Ae))return!0;var Dr=Ce(Ye),br=he(Dr);return!br||Ae.commandLine.options.configFile!==br.options.configFile||!e.arrayIsEqualTo(Ae.commandLine.fileNames,br.fileNames)?!1:((Ve||(Ve=[])).push(Ae),!e.forEach(Ae.references,function(Ar,kr){return!De(Ar,Ae.commandLine.projectReferences[kr])}))}var lr=Ce(Ye);return!he(lr)}}e.isProgramUptoDate=D;function C(K){return K.options.configFile?Gt(Gt([],K.options.configFile.parseDiagnostics,!0),K.errors,!0):K.errors}e.getConfigFileParsingDiagnostics=C;function m(K,Te,ge,ke){switch(e.getEmitModuleResolutionKind(ke)){case e.ModuleResolutionKind.Node12:case e.ModuleResolutionKind.NodeNext:return e.fileExtensionIsOneOf(K,[".d.mts",".mts",".mjs"])?e.ModuleKind.ESNext:e.fileExtensionIsOneOf(K,[".d.cts",".cts",".cjs"])?e.ModuleKind.CommonJS:e.fileExtensionIsOneOf(K,[".d.ts",".ts",".tsx",".js",".jsx"])?Pe():void 0;default:return}function Pe(){var Ie=e.getPackageScopeForPath(K,Te,ge,ke);return(Ie==null?void 0:Ie.packageJsonContent.type)==="module"?e.ModuleKind.ESNext:e.ModuleKind.CommonJS}}e.getImpliedNodeFormatForFile=m;function u(K,Te){return K?e.optionsHaveChanges(K.getCompilerOptions(),Te,e.sourceFileAffectingCompilerOptions):!1}function g(K,Te,ge,ke,Pe){return{rootNames:K,options:Te,host:ge,oldProgram:ke,configFileParsingDiagnostics:Pe}}function P(K,Te,ge,ke,Pe){var Ie,Ge,he,ve,Ve=e.isArray(K)?g(K,Te,ge,ke,Pe):K,_e=Ve.rootNames,Le=Ve.options,qe=Ve.configFileParsingDiagnostics,Xe=Ve.projectReferences,De=Ve.oldProgram,Ae,Ye,Dr,br,lr,Ar,kr,Ke,Me=new e.Map,Hr=e.createMultiMap(),ur={},gr={},de=new e.Map,Fe,$e=typeof Le.maxNodeModuleJsDepth=="number"?Le.maxNodeModuleJsDepth:0,Sr=0,Pr=new e.Map,He=new e.Map;e.tracing===null||e.tracing===void 0||e.tracing.push("program","createProgram",{configFilePath:Le.configFilePath,rootDir:Le.rootDir},!0),e.performance.mark("beforeProgram");var pr=Ve.host||a(Le),Jr=j(pr),ze=Le.noLib,Lr=e.memoize(function(){return pr.getDefaultLibFileName(Le)}),Yr=pr.getDefaultLibLocation?pr.getDefaultLibLocation():e.getDirectoryPath(Lr()),lt=e.createDiagnosticCollection(),tt=pr.getCurrentDirectory(),Rt=e.getSupportedExtensions(Le),cn=e.getSupportedExtensionsWithJsonIfResolveJsonModule(Le,Rt),bn=new e.Map,In,zn,ir,Or,sr=pr.hasInvalidatedResolution||e.returnFalse;if(pr.resolveModuleNames)Or=function(wr,$r,Lt,Kt,pn){return pr.resolveModuleNames(e.Debug.checkEachDefined(wr),Lt,Kt,pn,Le,$r).map(function(fn){if(!fn||fn.extension!==void 0)return fn;var kn=e.clone(fn);return kn.extension=e.extensionFromPath(fn.resolvedFileName),kn})},zn=(Ie=pr.getModuleResolutionCache)===null||Ie===void 0?void 0:Ie.call(pr);else{zn=e.createModuleResolutionCache(tt,vn,Le);var ye=function(wr,$r,Lt,Kt){return e.resolveModuleName(wr,Lt,Le,pr,zn,Kt,$r).resolvedModule};Or=function(wr,$r,Lt,Kt,pn){return Q(e.Debug.checkEachDefined(wr),$r,Lt,pn,ye)}}var or;if(pr.resolveTypeReferenceDirectives)or=function(wr,$r,Lt){return pr.resolveTypeReferenceDirectives(e.Debug.checkEachDefined(wr),$r,Lt,Le)};else{ir=e.createTypeReferenceDirectiveResolutionCache(tt,vn,void 0,zn==null?void 0:zn.getPackageJsonInfoCache());var fe=function(wr,$r,Lt){return e.resolveTypeReferenceDirective(wr,$r,Le,pr,Lt,ir).resolvedTypeReferenceDirective};or=function(wr,$r,Lt){return Z(e.Debug.checkEachDefined(wr),$r,Lt,fe)}}var je=new e.Map,Ee=new e.Map,We=e.createMultiMap(),$=!1,Ne=new e.Map,me,Ze=pr.useCaseSensitiveFileNames()?new e.Map:void 0,Cr,fr,dr,et,yt=!!(!((Ge=pr.useSourceOfProjectReferenceRedirect)===null||Ge===void 0)&&Ge.call(pr))&&!Le.disableSourceOfProjectReferenceRedirect,Vr=te({compilerHost:pr,getSymlinkCache:Nc,useSourceOfProjectReferenceRedirect:yt,toPath:pt,getResolvedProjectReferences:Ci,getSourceOfProjectReferenceRedirect:ko,forEachResolvedProjectReference:Ro}),tr=Vr.onProgramCreateComplete,xr=Vr.fileExists,Nr=Vr.directoryExists,zr=pr.readFile.bind(pr);e.tracing===null||e.tracing===void 0||e.tracing.push("program","shouldProgramCreateNewSourceFiles",{hasOldProgram:!!De});var gt=u(De,Le);e.tracing===null||e.tracing===void 0||e.tracing.pop();var vt;if(e.tracing===null||e.tracing===void 0||e.tracing.push("program","tryReuseStructureFromOldProgram",{}),vt=Cn(),e.tracing===null||e.tracing===void 0||e.tracing.pop(),vt!==2){Ae=[],Ye=[],Xe&&(Cr||(Cr=Xe.map(Ia)),_e.length&&(Cr==null||Cr.forEach(function(wr,$r){if(wr){var Lt=e.outFile(wr.commandLine.options);if(yt){if(Lt||e.getEmitModuleKind(wr.commandLine.options)===e.ModuleKind.None)for(var Kt=0,pn=wr.commandLine.fileNames;Kt<pn.length;Kt++){var fn=pn[Kt];cs(fn,{kind:e.FileIncludeKind.SourceFromProjectReference,index:$r})}}else if(Lt)cs(e.changeExtension(Lt,".d.ts"),{kind:e.FileIncludeKind.OutputFromProjectReference,index:$r});else if(e.getEmitModuleKind(wr.commandLine.options)===e.ModuleKind.None)for(var kn=e.memoize(function(){return e.getCommonSourceDirectoryOfConfig(wr.commandLine,!pr.useCaseSensitiveFileNames())}),Kn=0,Fa=wr.commandLine.fileNames;Kn<Fa.length;Kn++){var fn=Fa[Kn];!e.fileExtensionIs(fn,".d.ts")&&!e.fileExtensionIs(fn,".json")&&cs(e.getOutputDeclarationFileName(fn,wr.commandLine,!pr.useCaseSensitiveFileNames(),kn),{kind:e.FileIncludeKind.OutputFromProjectReference,index:$r})}}}))),e.tracing===null||e.tracing===void 0||e.tracing.push("program","processRootFiles",{count:_e.length}),e.forEach(_e,function(wr,$r){return Dt(wr,!1,!1,{kind:e.FileIncludeKind.RootFile,index:$r})}),e.tracing===null||e.tracing===void 0||e.tracing.pop();var ut=_e.length?e.getAutomaticTypeDirectiveNames(Le,pr):e.emptyArray;if(ut.length){e.tracing===null||e.tracing===void 0||e.tracing.push("program","processTypeReferences",{count:ut.length});for(var ht=Le.configFilePath?e.getDirectoryPath(Le.configFilePath):pr.getCurrentDirectory(),xt=e.combinePaths(ht,e.inferredTypesContainingFile),wt=St(ut,xt),Qt=0;Qt<ut.length;Qt++)ft(ut[Qt],wt[Qt],{kind:e.FileIncludeKind.AutomaticTypeDirectiveFile,typeReference:ut[Qt],packageId:(he=wt[Qt])===null||he===void 0?void 0:he.packageId});e.tracing===null||e.tracing===void 0||e.tracing.pop()}if(_e.length&&!ze){var mt=Lr();!Le.lib&&mt?Dt(mt,!0,!1,{kind:e.FileIncludeKind.LibFile}):e.forEach(Le.lib,function(wr,$r){Dt(Re(wr),!0,!1,{kind:e.FileIncludeKind.LibFile,index:$r})})}me=e.arrayFrom(e.mapDefinedIterator(Ne.entries(),function(wr){var $r=wr[0],Lt=wr[1];return Lt===void 0?$r:void 0})),Dr=e.stableSort(Ae,Mn).concat(Ye),Ae=void 0,Ye=void 0}if(e.Debug.assert(!!me),De&&pr.onReleaseOldSourceFile){for(var rn=De.getSourceFiles(),sa=0,ba=rn;sa<ba.length;sa++){var Jn=ba[sa],na=lo(Jn.resolvedPath);(gt||!na||Jn.resolvedPath===Jn.path&&na.resolvedPath!==Jn.path)&&pr.onReleaseOldSourceFile(Jn,De.getCompilerOptions(),!!lo(Jn.path))}pr.getParsedCommandLine||De.forEachResolvedProjectReference(function(wr){as(wr.sourceFile.path)||pr.onReleaseOldSourceFile(wr.sourceFile,De.getCompilerOptions(),!1)})}De&&pr.onReleaseParsedCommandLine&&re(De.getProjectReferences(),De.getResolvedProjectReferences(),function(wr,$r,Lt){var Kt=($r==null?void 0:$r.commandLine.projectReferences[Lt])||De.getProjectReferences()[Lt],pn=Ce(Kt);fr!=null&&fr.has(pt(pn))||pr.onReleaseParsedCommandLine(pn,wr,De.getCompilerOptions())}),ir=void 0,De=void 0;var Wn={getRootFileNames:function(){return _e},getSourceFile:No,getSourceFileByPath:lo,getSourceFiles:function(){return Dr},getMissingFilePaths:function(){return me},getModuleResolutionCache:function(){return zn},getFilesByNameMap:function(){return Ne},getCompilerOptions:function(){return Le},getSyntacticDiagnostics:Ha,getOptionsDiagnostics:Be,getGlobalDiagnostics:vr,getSemanticDiagnostics:Yo,getCachedSemanticDiagnostics:co,getSuggestionDiagnostics:dt,getDeclarationDiagnostics:Zi,getBindAndCheckDiagnostics:za,getProgramDiagnostics:hi,getTypeChecker:io,getClassifiableNames:Mt,getDiagnosticsProducingTypeChecker:Ka,getCommonSourceDirectory:_t,emit:ji,getCurrentDirectory:function(){return tt},getNodeCount:function(){return Ka().getNodeCount()},getIdentifierCount:function(){return Ka().getIdentifierCount()},getSymbolCount:function(){return Ka().getSymbolCount()},getTypeCount:function(){return Ka().getTypeCount()},getInstantiationCount:function(){return Ka().getInstantiationCount()},getRelationCacheSizes:function(){return Ka().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return Fe},getResolvedTypeReferenceDirectives:function(){return de},isSourceFileFromExternalLibrary:yi,isSourceFileDefaultLibrary:ro,dropDiagnosticsProducingTypeChecker:Mi,getSourceFileFromReference:$a,getLibFileFromReference:Di,sourceFileToPackageName:Ee,redirectTargetsMap:We,usesUriStyleNodeCoreModules:$,isEmittedFile:uu,getConfigFileParsingDiagnostics:qr,getResolvedModuleWithFailedLookupLocationsFromCache:oa,getProjectReferences:_i,getResolvedProjectReferences:Ci,getProjectReferenceRedirect:ka,getResolvedProjectReferenceToRedirect:Gi,getResolvedProjectReferenceByPath:as,forEachResolvedProjectReference:Ro,isSourceOfProjectReferenceRedirect:es,emitBuildInfo:Ra,fileExists:xr,readFile:zr,directoryExists:Nr,getSymlinkCache:Nc,realpath:(ve=pr.realpath)===null||ve===void 0?void 0:ve.bind(pr),useCaseSensitiveFileNames:function(){return pr.useCaseSensitiveFileNames()},getFileIncludeReasons:function(){return Hr},structureIsReused:vt};return tr(),Fe==null||Fe.forEach(function(wr){switch(wr.kind){case 1:return lt.add(Wo(wr.file&&lo(wr.file),wr.fileProcessingReason,wr.diagnostic,wr.args||e.emptyArray));case 0:var $r=y(lo,wr.reason),Lt=$r.file,Kt=$r.pos,pn=$r.end;return lt.add(e.createFileDiagnostic.apply(void 0,Gt([Lt,e.Debug.checkDefined(Kt),e.Debug.checkDefined(pn)-Kt,wr.diagnostic],wr.args||e.emptyArray,!1)));default:e.Debug.assertNever(wr)}}),oo(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),Wn;function en(wr,$r,Lt){if(!wr.length)return e.emptyArray;var Kt=e.getNormalizedAbsolutePath($r.originalFileName,tt),pn=Ut($r);e.tracing===null||e.tracing===void 0||e.tracing.push("program","resolveModuleNamesWorker",{containingFileName:Kt}),e.performance.mark("beforeResolveModule");var fn=Or(wr,$r,Kt,Lt,pn);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),fn}function St(wr,$r){if(!wr.length)return[];var Lt=e.isString($r)?$r:e.getNormalizedAbsolutePath($r.originalFileName,tt),Kt=e.isString($r)?void 0:Ut($r);e.tracing===null||e.tracing===void 0||e.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:Lt}),e.performance.mark("beforeResolveTypeReference");var pn=or(wr,Lt,Kt);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),pn}function Ut(wr){var $r=Gi(wr.originalFileName);if($r||!e.fileExtensionIsOneOf(wr.originalFileName,[".d.ts",".d.cts",".d.mts"]))return $r;var Lt=qt(wr.path);if(Lt)return Lt;if(!(!pr.realpath||!Le.preserveSymlinks||!e.stringContains(wr.originalFileName,e.nodeModulesPathPart))){var Kt=pt(pr.realpath(wr.originalFileName));return Kt===wr.path?void 0:qt(Kt)}}function qt(wr){var $r=ko(wr);if(e.isString($r))return Gi($r);if($r)return Ro(function(Lt){var Kt=e.outFile(Lt.commandLine.options);if(Kt)return pt(Kt)===wr?Lt:void 0})}function Mn(wr,$r){return e.compareValues(dn(wr),dn($r))}function dn(wr){if(e.containsPath(Yr,wr.fileName,!1)){var $r=e.getBaseFileName(wr.fileName);if($r==="lib.d.ts"||$r==="lib.es6.d.ts")return 0;var Lt=e.removeSuffix(e.removePrefix($r,"lib."),".d.ts"),Kt=e.libs.indexOf(Lt);if(Kt!==-1)return Kt+1}return e.libs.length+2}function oa(wr,$r,Lt){return zn&&e.resolveModuleNameFromCache(wr,$r,zn,Lt)}function pt(wr){return e.toPath(wr,tt,vn)}function _t(){if(lr===void 0){var wr=e.filter(Dr,function($r){return e.sourceFileMayBeEmitted($r,Wn)});lr=e.getCommonSourceDirectory(Le,function(){return e.mapDefined(wr,function($r){return $r.isDeclarationFile?void 0:$r.fileName})},tt,vn,function($r){return gi(wr,$r)})}return lr}function Mt(){var wr;if(!Ke){io(),Ke=new e.Set;for(var $r=0,Lt=Dr;$r<Lt.length;$r++){var Kt=Lt[$r];(wr=Kt.classifiableNames)===null||wr===void 0||wr.forEach(function(pn){return Ke.add(pn)})}}return Ke}function It(wr,$r){if(vt===0&&!$r.ambientModuleNames.length)return en(wr,$r,void 0);var Lt=De&&De.getSourceFile($r.fileName);if(Lt!==$r&&$r.resolvedModules){for(var Kt=[],pn=0,fn=0,kn=wr;fn<kn.length;fn++){var Kn=kn[fn],Fa=$r.resolvedModules.get(Kn,ne($r,pn));pn++,Kt.push(Fa)}return Kt}for(var ua,le,rr,yr={},pn=0;pn<wr.length;pn++){var Kn=wr[pn];if($r===Lt&&!sr(Lt.path)){var ct=e.getResolvedModule(Lt,Kn,ne(Lt,pn));if(ct){e.isTraceEnabled(Le,pr)&&e.trace(pr,ct.packageId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,Kn,e.getNormalizedAbsolutePath($r.originalFileName,tt),ct.resolvedFileName,ct.packageId&&e.packageIdToString(ct.packageId)),(le||(le=new Array(wr.length)))[pn]=ct,(rr||(rr=[])).push(Kn);continue}}var jt=!1;e.contains($r.ambientModuleNames,Kn)?(jt=!0,e.isTraceEnabled(Le,pr)&&e.trace(pr,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,Kn,e.getNormalizedAbsolutePath($r.originalFileName,tt))):jt=ri(Kn,pn),jt?(le||(le=new Array(wr.length)))[pn]=yr:(ua||(ua=[])).push(Kn)}var yn=ua&&ua.length?en(ua,$r,rr):e.emptyArray;if(!le)return e.Debug.assert(yn.length===wr.length),yn;for(var ha=0,pn=0;pn<le.length;pn++)le[pn]?le[pn]===yr&&(le[pn]=void 0):(le[pn]=yn[ha],ha++);return e.Debug.assert(ha===yn.length),le;function ri(Ta,Ya){if(Ya>=e.length(Lt==null?void 0:Lt.imports)+e.length(Lt==null?void 0:Lt.moduleAugmentations))return!1;var fi=e.getResolvedModule(Lt,Ta,Lt&&ne(Lt,Ya)),ci=fi&&De.getSourceFile(fi.resolvedFileName);if(fi&&ci)return!1;var Si=Me.get(Ta);return Si?(e.isTraceEnabled(Le,pr)&&e.trace(pr,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,Ta,Si),!0):!1}}function rt(){return!re(De.getProjectReferences(),De.getResolvedProjectReferences(),function(wr,$r,Lt){var Kt=($r?$r.commandLine.projectReferences:Xe)[Lt],pn=Ia(Kt);return wr?!pn||pn.sourceFile!==wr.sourceFile||!e.arrayIsEqualTo(wr.commandLine.fileNames,pn.commandLine.fileNames):pn!==void 0},function(wr,$r){var Lt=$r?as($r.sourceFile.path).commandLine.projectReferences:Xe;return!e.arrayIsEqualTo(wr,Lt,e.projectReferenceIsEqualTo)})}function Cn(){var wr;if(!De)return 0;var $r=De.getCompilerOptions();if(e.changesAffectModuleResolution($r,Le))return 0;var Lt=De.getRootFileNames();if(!e.arrayIsEqualTo(Lt,_e)||!rt())return 0;Xe&&(Cr=Xe.map(Ia));var Kt=[],pn=[];if(vt=2,De.getMissingFilePaths().some(function(ol){return pr.fileExists(ol)}))return 0;var fn=De.getSourceFiles(),kn;(function(ol){ol[ol.Exists=0]="Exists",ol[ol.Modified=1]="Modified"})(kn||(kn={}));for(var Kn=new e.Map,Fa=0,ua=fn;Fa<ua.length;Fa++){var le=ua[Fa],rr=pr.getSourceFileByPath?pr.getSourceFileByPath(le.fileName,le.resolvedPath,e.getEmitScriptTarget(Le),void 0,gt):pr.getSourceFile(le.fileName,e.getEmitScriptTarget(Le),void 0,gt);if(!rr)return 0;e.Debug.assert(!rr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var yr=void 0;if(le.redirectInfo){if(rr!==le.redirectInfo.unredirected)return 0;yr=!1,rr=le}else if(De.redirectTargetsMap.has(le.path)){if(rr!==le)return 0;yr=!1}else yr=rr!==le;rr.path=le.path,rr.originalFileName=le.originalFileName,rr.resolvedPath=le.resolvedPath,rr.fileName=le.fileName;var ct=De.sourceFileToPackageName.get(le.path);if(ct!==void 0){var jt=Kn.get(ct),yn=yr?1:0;if(jt!==void 0&&yn===1||jt===1)return 0;Kn.set(ct,yn)}yr?(e.arrayIsEqualTo(le.libReferenceDirectives,rr.libReferenceDirectives,Jt)||(vt=1),le.hasNoDefaultLib!==rr.hasNoDefaultLib&&(vt=1),e.arrayIsEqualTo(le.referencedFiles,rr.referencedFiles,Jt)||(vt=1),xa(rr),e.arrayIsEqualTo(le.imports,rr.imports,Sn)||(vt=1),e.arrayIsEqualTo(le.moduleAugmentations,rr.moduleAugmentations,Sn)||(vt=1),(le.flags&3145728)!==(rr.flags&3145728)&&(vt=1),e.arrayIsEqualTo(le.typeReferenceDirectives,rr.typeReferenceDirectives,Jt)||(vt=1),pn.push({oldFile:le,newFile:rr})):sr(le.path)&&(vt=1,pn.push({oldFile:le,newFile:rr})),Kt.push(rr)}if(vt!==2)return vt;for(var ha=pn.map(function(ol){return ol.oldFile}),ri=0,Ta=fn;ri<Ta.length;ri++){var Ya=Ta[ri];if(!e.contains(ha,Ya))for(var fi=0,ci=Ya.ambientModuleNames;fi<ci.length;fi++){var Si=ci[fi];Me.set(Si,Ya.fileName)}}for(var Do=0,bo=pn;Do<bo.length;Do++){var Ns=bo[Do],le=Ns.oldFile,rr=Ns.newFile,Ys=Y(rr),Nu=It(Ys,rr),gf=e.hasChangesInResolutions(Ys,Nu,le.resolvedModules,le,e.moduleResolutionIsEqualTo);gf?(vt=1,rr.resolvedModules=e.zipToModeAwareCache(rr,Ys,Nu)):rr.resolvedModules=le.resolvedModules;var Zl=e.map(rr.typeReferenceDirectives,function(vf){return e.toFileNameLowerCase(vf.fileName)}),jc=St(Zl,rr),Mr=e.hasChangesInResolutions(Zl,jc,le.resolvedTypeReferenceDirectiveNames,le,e.typeDirectiveIsEqualTo);Mr?(vt=1,rr.resolvedTypeReferenceDirectiveNames=e.zipToModeAwareCache(rr,Zl,jc)):rr.resolvedTypeReferenceDirectiveNames=le.resolvedTypeReferenceDirectiveNames}if(vt!==2)return vt;if(e.changesAffectingProgramStructure($r,Le)||!((wr=pr.hasChangedAutomaticTypeDirectiveNames)===null||wr===void 0)&&wr.call(pr))return 1;me=De.getMissingFilePaths(),e.Debug.assert(Kt.length===De.getSourceFiles().length);for(var $l=0,pc=Kt;$l<pc.length;$l++){var rr=pc[$l];Ne.set(rr.path,rr)}var ku=De.getFilesByNameMap();return ku.forEach(function(ol,kc){if(!ol){Ne.set(kc,ol);return}if(ol.path===kc){De.isSourceFileFromExternalLibrary(ol)&&He.set(ol.path,!0);return}Ne.set(kc,Ne.get(ol.path))}),Dr=Kt,Hr=De.getFileIncludeReasons(),Fe=De.getFileProcessingDiagnostics(),de=De.getResolvedTypeReferenceDirectives(),Ee=De.sourceFileToPackageName,We=De.redirectTargetsMap,$=De.usesUriStyleNodeCoreModules,2}function Qn(wr){return{getPrependNodes:va,getCanonicalFileName:vn,getCommonSourceDirectory:Wn.getCommonSourceDirectory,getCompilerOptions:Wn.getCompilerOptions,getCurrentDirectory:function(){return tt},getNewLine:function(){return pr.getNewLine()},getSourceFile:Wn.getSourceFile,getSourceFileByPath:Wn.getSourceFileByPath,getSourceFiles:Wn.getSourceFiles,getLibFileFromReference:Wn.getLibFileFromReference,isSourceFileFromExternalLibrary:yi,getResolvedProjectReferenceToRedirect:Gi,getProjectReferenceRedirect:ka,isSourceOfProjectReferenceRedirect:es,getSymlinkCache:Nc,writeFile:wr||function($r,Lt,Kt,pn,fn){return pr.writeFile($r,Lt,Kt,pn,fn)},isEmitBlocked:Hi,readFile:function($r){return pr.readFile($r)},fileExists:function($r){var Lt=pt($r);return lo(Lt)?!0:e.contains(me,Lt)?!1:pr.fileExists($r)},useCaseSensitiveFileNames:function(){return pr.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return Wn.getProgramBuildInfo&&Wn.getProgramBuildInfo()},getSourceFileFromReference:function($r,Lt){return Wn.getSourceFileFromReference($r,Lt)},redirectTargetsMap:We,getFileIncludeReasons:Wn.getFileIncludeReasons}}function Ra(wr){e.Debug.assert(!e.outFile(Le)),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitBuildInfo",{},!0),e.performance.mark("beforeEmit");var $r=e.emitFiles(e.notImplementedResolver,Qn(wr),void 0,e.noTransformers,!1,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),$r}function Ci(){return Cr}function _i(){return Xe}function va(){return Se(Xe,function(wr,$r){var Lt;return(Lt=Cr[$r])===null||Lt===void 0?void 0:Lt.commandLine},function(wr){var $r=pt(wr),Lt=lo($r);return Lt?Lt.text:Ne.has($r)?void 0:pr.readFile($r)})}function yi(wr){return!!He.get(wr.path)}function ro(wr){if(wr.hasNoDefaultLib)return!0;if(!Le.noLib)return!1;var $r=pr.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return Le.lib?e.some(Le.lib,function(Lt){return $r(wr.fileName,Re(Lt))}):$r(wr.fileName,Lr())}function Ka(){return Ar||(Ar=e.createTypeChecker(Wn,!0))}function Mi(){Ar=void 0}function io(){return kr||(kr=e.createTypeChecker(Wn,!1))}function ji(wr,$r,Lt,Kt,pn,fn){e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emit",{path:wr==null?void 0:wr.path},!0);var kn=Po(function(){return to(Wn,wr,$r,Lt,Kt,pn,fn)});return e.tracing===null||e.tracing===void 0||e.tracing.pop(),kn}function Hi(wr){return bn.has(pt(wr))}function to(wr,$r,Lt,Kt,pn,fn,kn){if(!kn){var Kn=ue(wr,$r,Lt,Kt);if(Kn)return Kn}var Fa=Ka().getEmitResolver(e.outFile(Le)?void 0:$r,Kt);e.performance.mark("beforeEmit");var ua=e.emitFiles(Fa,Qn(Lt),$r,e.getTransformers(Le,fn,pn),pn,!1,kn);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),ua}function No(wr){return lo(pt(wr))}function lo(wr){return Ne.get(wr)||void 0}function Lo(wr,$r,Lt){return wr?$r(wr,Lt):e.sortAndDeduplicateDiagnostics(e.flatMap(Wn.getSourceFiles(),function(Kt){return Lt&&Lt.throwIfCancellationRequested(),$r(Kt,Lt)}))}function Ha(wr,$r){return Lo(wr,Mo,$r)}function Yo(wr,$r){return Lo(wr,Fo,$r)}function co(wr){var $r;return wr?($r=ur.perFile)===null||$r===void 0?void 0:$r.get(wr.path):ur.allDiagnostics}function za(wr,$r){return zo(wr,$r)}function hi(wr){var $r;if(e.skipTypeChecking(wr,Le,Wn))return e.emptyArray;var Lt=lt.getDiagnostics(wr.fileName);return!(($r=wr.commentDirectives)===null||$r===void 0)&&$r.length?hr(wr,wr.commentDirectives,Lt).diagnostics:Lt}function Zi(wr,$r){var Lt=Wn.getCompilerOptions();return!wr||e.outFile(Lt)?Oe(wr,$r):Lo(wr,se,$r)}function Mo(wr){return e.isSourceFileJS(wr)?(wr.additionalSyntacticDiagnostics||(wr.additionalSyntacticDiagnostics=Un(wr)),e.concatenate(wr.additionalSyntacticDiagnostics,wr.parseDiagnostics)):wr.parseDiagnostics}function Po(wr){try{return wr()}catch($r){throw $r instanceof e.OperationCanceledException&&(kr=void 0,Ar=void 0),$r}}function Fo(wr,$r){return e.concatenate(X(zo(wr,$r),Le),hi(wr))}function zo(wr,$r){return mr(wr,$r,ur,Es)}function Es(wr,$r){return Po(function(){if(e.skipTypeChecking(wr,Le,Wn))return e.emptyArray;var Lt=Ka();e.Debug.assert(!!wr.bindDiagnostics);var Kt=e.isCheckJsEnabledForFile(wr,Le),pn=!!wr.checkJsDirective&&wr.checkJsDirective.enabled===!1,fn=!pn&&(wr.scriptKind===3||wr.scriptKind===4||wr.scriptKind===5||Kt||wr.scriptKind===7),kn=fn?wr.bindDiagnostics:e.emptyArray,Kn=fn?Lt.getDiagnostics(wr,$r):e.emptyArray;return Cs(wr,fn,kn,Kn,Kt?wr.jsDocDiagnostics:void 0)})}function Cs(wr,$r){for(var Lt,Kt=[],pn=2;pn<arguments.length;pn++)Kt[pn-2]=arguments[pn];var fn=e.flatten(Kt);if(!$r||!(!((Lt=wr.commentDirectives)===null||Lt===void 0)&&Lt.length))return fn;for(var kn=hr(wr,wr.commentDirectives,fn),Kn=kn.diagnostics,Fa=kn.directives,ua=0,le=Fa.getUnusedExpectations();ua<le.length;ua++){var rr=le[ua];Kn.push(e.createDiagnosticForRange(wr,rr.range,e.Diagnostics.Unused_ts_expect_error_directive))}return Kn}function hr(wr,$r,Lt){var Kt=e.createCommentDirectivesMap(wr,$r),pn=Lt.filter(function(fn){return tn(fn,Kt)===-1});return{diagnostics:pn,directives:Kt}}function dt(wr,$r){return Po(function(){return Ka().getSuggestionDiagnostics(wr,$r)})}function tn(wr,$r){var Lt=wr.file,Kt=wr.start;if(!Lt)return-1;for(var pn=e.getLineStarts(Lt),fn=e.computeLineAndCharacterOfPosition(pn,Kt).line-1;fn>=0;){if($r.markUsed(fn))return fn;var kn=Lt.text.slice(pn[fn],pn[fn+1]).trim();if(kn!==""&&!/^(\s*)\/\/(.*)$/.test(kn))return-1;fn--}return-1}function Un(wr){return Po(function(){var $r=[];return Lt(wr,wr),e.forEachChildRecursively(wr,Lt,Kt),$r;function Lt(Kn,Fa){switch(Fa.kind){case 163:case 166:case 168:if(Fa.questionToken===Kn)return $r.push(kn(Kn,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 167:case 170:case 171:case 172:case 212:case 255:case 213:case 253:if(Fa.type===Kn)return $r.push(kn(Kn,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(Kn.kind){case 266:if(Kn.isTypeOnly)return $r.push(kn(Fa,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 271:if(Kn.isTypeOnly)return $r.push(kn(Kn,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 264:return $r.push(kn(Kn,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 270:if(Kn.isExportEquals)return $r.push(kn(Kn,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 290:var ua=Kn;if(ua.token===117)return $r.push(kn(Kn,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 257:var le=e.tokenToString(118);return e.Debug.assertIsDefined(le),$r.push(kn(Kn,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,le)),"skip";case 260:var rr=Kn.flags&16?e.tokenToString(142):e.tokenToString(141);return e.Debug.assertIsDefined(rr),$r.push(kn(Kn,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,rr)),"skip";case 258:return $r.push(kn(Kn,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 259:var yr=e.Debug.checkDefined(e.tokenToString(92));return $r.push(kn(Kn,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,yr)),"skip";case 229:return $r.push(kn(Kn,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 228:return $r.push(kn(Kn.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 210:e.Debug.fail()}}function Kt(Kn,Fa){switch(Fa.decorators===Kn&&!Le.experimentalDecorators&&$r.push(kn(Fa,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning)),Fa.kind){case 256:case 225:case 168:case 170:case 171:case 172:case 212:case 255:case 213:if(Kn===Fa.typeParameters)return $r.push(fn(Kn,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 236:if(Kn===Fa.modifiers)return pn(Fa.modifiers,Fa.kind===236),"skip";break;case 166:if(Kn===Fa.modifiers){for(var ua=0,le=Kn;ua<le.length;ua++){var rr=le[ua];rr.kind!==124&&$r.push(kn(rr,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(rr.kind)))}return"skip"}break;case 163:if(Kn===Fa.modifiers)return $r.push(fn(Kn,e.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 207:case 208:case 227:case 278:case 279:case 209:if(Kn===Fa.typeArguments)return $r.push(fn(Kn,e.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function pn(Kn,Fa){for(var ua=0,le=Kn;ua<le.length;ua++){var rr=le[ua];switch(rr.kind){case 85:if(Fa)continue;case 123:case 121:case 122:case 144:case 135:case 126:case 158:$r.push(kn(rr,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(rr.kind)));break;case 124:case 93:case 88:}}}function fn(Kn,Fa,ua,le,rr){var yr=Kn.pos;return e.createFileDiagnostic(wr,yr,Kn.end-yr,Fa,ua,le,rr)}function kn(Kn,Fa,ua,le,rr){return e.createDiagnosticForNodeInSourceFile(wr,Kn,Fa,ua,le,rr)}})}function Oe(wr,$r){return mr(wr,$r,gr,oe)}function oe(wr,$r){return Po(function(){var Lt=Ka().getEmitResolver(wr,$r);return e.getDeclarationDiagnostics(Qn(e.noop),Lt,wr)||e.emptyArray})}function mr(wr,$r,Lt,Kt){var pn,fn=wr?(pn=Lt.perFile)===null||pn===void 0?void 0:pn.get(wr.path):Lt.allDiagnostics;if(fn)return fn;var kn=Kt(wr,$r);return wr?(Lt.perFile||(Lt.perFile=new e.Map)).set(wr.path,kn):Lt.allDiagnostics=kn,kn}function se(wr,$r){return wr.isDeclarationFile?[]:Oe(wr,$r)}function Be(){return e.sortAndDeduplicateDiagnostics(e.concatenate(lt.getGlobalDiagnostics(),er()))}function er(){if(!Le.configFile)return e.emptyArray;var wr=lt.getDiagnostics(Le.configFile.fileName);return Ro(function($r){wr=e.concatenate(wr,lt.getDiagnostics($r.sourceFile.fileName))}),wr}function vr(){return _e.length?e.sortAndDeduplicateDiagnostics(Ka().getGlobalDiagnostics().slice()):e.emptyArray}function qr(){return qe||e.emptyArray}function Dt(wr,$r,Lt,Kt){So(e.normalizePath(wr),$r,Lt,void 0,Kt)}function Jt(wr,$r){return wr.fileName===$r.fileName}function Sn(wr,$r){return wr.kind===79?$r.kind===79&&wr.escapedText===$r.escapedText:$r.kind===10&&wr.text===$r.text}function ta(wr,$r){var Lt=e.factory.createStringLiteral(wr),Kt=e.factory.createImportDeclaration(void 0,void 0,void 0,Lt,void 0);return e.addEmitFlags(Kt,67108864),e.setParent(Lt,Kt),e.setParent(Kt,$r),Lt.flags&=-9,Kt.flags&=-9,Lt}function xa(wr){if(wr.imports)return;var $r=e.isSourceFileJS(wr),Lt=e.isExternalModule(wr),Kt,pn,fn;if((Le.isolatedModules||Lt)&&!wr.isDeclarationFile){Le.importHelpers&&(Kt=[ta(e.externalHelpersModuleNameText,wr)]);var kn=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(Le,wr),Le);kn&&(Kt||(Kt=[])).push(ta(kn,wr))}for(var Kn=0,Fa=wr.statements;Kn<Fa.length;Kn++){var ua=Fa[Kn];le(ua,!1)}(wr.flags&1048576||$r)&&rr(wr),wr.imports=Kt||e.emptyArray,wr.moduleAugmentations=pn||e.emptyArray,wr.ambientModuleNames=fn||e.emptyArray;return;function le(ct,jt){if(e.isAnyImportOrReExport(ct)){var yn=e.getExternalModuleName(ct);yn&&e.isStringLiteral(yn)&&yn.text&&(!jt||!e.isExternalModuleNameRelative(yn.text))&&(e.setParentRecursive(ct,!1),Kt=e.append(Kt,yn),!$&&Sr===0&&!wr.isDeclarationFile&&($=e.startsWith(yn.text,"node:")))}else if(e.isModuleDeclaration(ct)&&e.isAmbientModule(ct)&&(jt||e.hasSyntacticModifier(ct,2)||wr.isDeclarationFile)){ct.name.parent=ct;var ha=e.getTextOfIdentifierOrLiteral(ct.name);if(Lt||jt&&!e.isExternalModuleNameRelative(ha))(pn||(pn=[])).push(ct.name);else if(!jt){wr.isDeclarationFile&&(fn||(fn=[])).push(ha);var ri=ct.body;if(ri)for(var Ta=0,Ya=ri.statements;Ta<Ya.length;Ta++){var fi=Ya[Ta];le(fi,!0)}}}}function rr(ct){for(var jt=/import|require/g;jt.exec(ct.text)!==null;){var yn=yr(ct,jt.lastIndex);$r&&e.isRequireCall(yn,!0)||e.isImportCall(yn)&&yn.arguments.length>=1&&e.isStringLiteralLike(yn.arguments[0])?(e.setParentRecursive(yn,!1),Kt=e.append(Kt,yn.arguments[0])):e.isLiteralImportTypeNode(yn)&&(e.setParentRecursive(yn,!1),Kt=e.append(Kt,yn.argument.literal))}}function yr(ct,jt){for(var yn=ct,ha=function(Ta){if(Ta.pos<=jt&&(jt<Ta.end||jt===Ta.end&&Ta.kind===1))return Ta};;){var ri=$r&&e.hasJSDocNodes(yn)&&e.forEach(yn.jsDoc,ha)||e.forEachChild(yn,ha);if(!ri)return yn;yn=ri}}}function Di(wr){var $r=e.toFileNameLowerCase(wr.fileName),Lt=e.libMap.get($r);if(Lt)return No(Re(Lt))}function $a(wr,$r){return Ji(f($r.fileName,wr.fileName),No)}function Ji(wr,$r,Lt,Kt){if(e.hasExtension(wr)){var pn=pr.getCanonicalFileName(wr);if(!Le.allowNonTsExtensions&&!e.forEach(e.flatten(cn),function(ua){return e.fileExtensionIs(pn,ua)})){Lt&&(e.hasJSFileExtension(pn)?Lt(e.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,wr):Lt(e.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,wr,"'"+e.flatten(Rt).join("', '")+"'"));return}var fn=$r(wr);if(Lt)if(fn)T(Kt)&&pn===pr.getCanonicalFileName(lo(Kt.file).fileName)&&Lt(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var kn=ka(wr);kn?Lt(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,kn,wr):Lt(e.Diagnostics.File_0_not_found,wr)}return fn}else{var Kn=Le.allowNonTsExtensions&&$r(wr);if(Kn)return Kn;if(Lt&&Le.allowNonTsExtensions){Lt(e.Diagnostics.File_0_not_found,wr);return}var Fa=e.forEach(Rt[0],function(ua){return $r(wr+ua)});return Lt&&!Fa&&Lt(e.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,wr,"'"+e.flatten(Rt).join("', '")+"'"),Fa}}function So(wr,$r,Lt,Kt,pn){Ji(wr,function(fn){return da(fn,$r,Lt,pn,Kt)},function(fn){for(var kn=[],Kn=1;Kn<arguments.length;Kn++)kn[Kn-1]=arguments[Kn];return Ir(void 0,pn,fn,kn)},pn)}function cs(wr,$r){return So(wr,!1,!1,void 0,$r)}function bt(wr,$r,Lt){var Kt=!T(Lt)&&e.some(Hr.get($r.path),T);Kt?Ir($r,Lt,e.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[$r.fileName,wr]):Ir($r,Lt,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[wr,$r.fileName])}function Pn(wr,$r,Lt,Kt,pn,fn){var kn=Object.create(wr);return kn.fileName=Lt,kn.path=Kt,kn.resolvedPath=pn,kn.originalFileName=fn,kn.redirectInfo={redirectTarget:wr,unredirected:$r},He.set(Kt,Sr>0),Object.defineProperties(kn,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(Kn){this.redirectInfo.redirectTarget.id=Kn}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(Kn){this.redirectInfo.redirectTarget.symbol=Kn}}}),kn}function da(wr,$r,Lt,Kt,pn){e.tracing===null||e.tracing===void 0||e.tracing.push("program","findSourceFile",{fileName:wr,isDefaultLib:$r||void 0,fileIncludeKind:e.FileIncludeKind[Kt.kind]});var fn=ei(wr,$r,Lt,Kt,pn);return e.tracing===null||e.tracing===void 0||e.tracing.pop(),fn}function ei(wr,$r,Lt,Kt,pn){var fn=pt(wr);if(yt){var kn=ko(fn);if(!kn&&pr.realpath&&Le.preserveSymlinks&&e.isDeclarationFileName(wr)&&e.stringContains(wr,e.nodeModulesPathPart)){var Kn=pt(pr.realpath(wr));Kn!==fn&&(kn=ko(Kn))}if(kn){var Fa=e.isString(kn)?da(kn,$r,Lt,Kt,pn):void 0;return Fa&&xi(Fa,fn,void 0),Fa}}var ua=wr;if(Ne.has(fn)){var le=Ne.get(fn);if(bi(le||void 0,Kt),le&&Le.forceConsistentCasingInFileNames){var rr=le.fileName,yr=pt(rr)!==pt(wr);yr&&(wr=ka(wr)||wr);var ct=e.getNormalizedAbsolutePathWithoutRoot(rr,tt),jt=e.getNormalizedAbsolutePathWithoutRoot(wr,tt);ct!==jt&&bt(wr,le,Kt)}return le&&He.get(le.path)&&Sr===0?(He.set(le.path,!1),Le.noResolve||(pe(le,$r),Rr(le)),Le.noLib||Qr(le),Pr.set(le.path,!1),Xn(le)):le&&Pr.get(le.path)&&Sr<$e&&(Pr.set(le.path,!1),Xn(le)),le||void 0}var yn;if(T(Kt)&&!yt){var ha=mi(wr);if(ha){if(e.outFile(ha.commandLine.options))return;var ri=Xi(ha,wr);wr=ri,yn=pt(ri)}}var Ta=pr.getSourceFile(wr,e.getEmitScriptTarget(Le),function(bo){return Ir(void 0,Kt,e.Diagnostics.Cannot_read_file_0_Colon_1,[wr,bo])},gt);if(pn){var Ya=e.packageIdToString(pn),fi=je.get(Ya);if(fi){var ci=Pn(fi,Ta,wr,fn,pt(wr),ua);return We.add(fi.path,wr),xi(ci,fn,yn),bi(ci,Kt),Ee.set(fn,pn.name),Ye.push(ci),ci}else Ta&&(je.set(Ya,Ta),Ee.set(fn,pn.name))}if(xi(Ta,fn,yn),Ta){if(He.set(fn,Sr>0),Ta.fileName=wr,Ta.path=fn,Ta.resolvedPath=pt(wr),Ta.originalFileName=ua,Ta.impliedNodeFormat=m(Ta.resolvedPath,zn==null?void 0:zn.getPackageJsonInfoCache(),pr,Le),bi(Ta,Kt),pr.useCaseSensitiveFileNames()){var Si=e.toFileNameLowerCase(fn),Do=Ze.get(Si);Do?bt(wr,Do,Kt):Ze.set(Si,Ta)}ze=ze||Ta.hasNoDefaultLib&&!Lt,Le.noResolve||(pe(Ta,$r),Rr(Ta)),Le.noLib||Qr(Ta),Xn(Ta),$r?Ae.push(Ta):Ye.push(Ta)}return Ta}function bi(wr,$r){wr&&Hr.add(wr.path,$r)}function xi(wr,$r,Lt){Lt?(Ne.set(Lt,wr),Ne.set($r,wr||!1)):Ne.set($r,wr)}function ka(wr){var $r=mi(wr);return $r&&Xi($r,wr)}function mi(wr){if(!(!Cr||!Cr.length||e.fileExtensionIs(wr,".d.ts")||e.fileExtensionIs(wr,".json")))return Gi(wr)}function Xi(wr,$r){var Lt=e.outFile(wr.commandLine.options);return Lt?e.changeExtension(Lt,".d.ts"):e.getOutputDeclarationFileName($r,wr.commandLine,!pr.useCaseSensitiveFileNames())}function Gi(wr){dr===void 0&&(dr=new e.Map,Ro(function(Lt){pt(Le.configFilePath)!==Lt.sourceFile.path&&Lt.commandLine.fileNames.forEach(function(Kt){return dr.set(pt(Kt),Lt.sourceFile.path)})}));var $r=dr.get(pt(wr));return $r&&as($r)}function Ro(wr){return e.forEachResolvedProjectReference(Cr,wr)}function ko(wr){if(e.isDeclarationFileName(wr))return et===void 0&&(et=new e.Map,Ro(function($r){var Lt=e.outFile($r.commandLine.options);if(Lt){var Kt=e.changeExtension(Lt,".d.ts");et.set(pt(Kt),!0)}else{var pn=e.memoize(function(){return e.getCommonSourceDirectoryOfConfig($r.commandLine,!pr.useCaseSensitiveFileNames())});e.forEach($r.commandLine.fileNames,function(fn){if(!e.fileExtensionIs(fn,".d.ts")&&!e.fileExtensionIs(fn,".json")){var kn=e.getOutputDeclarationFileName(fn,$r.commandLine,!pr.useCaseSensitiveFileNames(),pn);et.set(pt(kn),fn)}})}})),et.get(wr)}function es(wr){return yt&&!!Gi(wr)}function as(wr){if(fr)return fr.get(wr)||void 0}function pe(wr,$r){e.forEach(wr.referencedFiles,function(Lt,Kt){So(f(Lt.fileName,wr.fileName),$r,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:wr.path,index:Kt})})}function Rr(wr){var $r=e.map(wr.typeReferenceDirectives,function(Kn){return e.toFileNameLowerCase(Kn.fileName)});if($r)for(var Lt=St($r,wr),Kt=0;Kt<$r.length;Kt++){var pn=wr.typeReferenceDirectives[Kt],fn=Lt[Kt],kn=e.toFileNameLowerCase(pn.fileName);e.setResolvedTypeReferenceDirective(wr,kn,fn),ft(kn,fn,{kind:e.FileIncludeKind.TypeReferenceDirective,file:wr.path,index:Kt})}}function ft(wr,$r,Lt){e.tracing===null||e.tracing===void 0||e.tracing.push("program","processTypeReferenceDirective",{directive:wr,hasResolved:!!It,refKind:Lt.kind,refPath:T(Lt)?Lt.file:void 0}),Zt(wr,$r,Lt),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function Zt(wr,$r,Lt){var Kt=de.get(wr);if(!(Kt&&Kt.primary)){var pn=!0;if($r){if($r.isExternalLibraryImport&&Sr++,$r.primary)So($r.resolvedFileName,!1,!1,$r.packageId,Lt);else if(Kt){if($r.resolvedFileName!==Kt.resolvedFileName){var fn=pr.readFile($r.resolvedFileName),kn=No(Kt.resolvedFileName);fn!==kn.text&&Ir(kn,Lt,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[wr,$r.resolvedFileName,Kt.resolvedFileName])}pn=!1}else So($r.resolvedFileName,!1,!1,$r.packageId,Lt);$r.isExternalLibraryImport&&Sr--}else Ir(void 0,Lt,e.Diagnostics.Cannot_find_type_definition_file_for_0,[wr]);pn&&de.set(wr,$r)}}function Re(wr){for(var $r=wr.split("."),Lt=$r[1],Kt=2;$r[Kt]&&$r[Kt]!=="d";)Lt+=(Kt===2?"/":"-")+$r[Kt],Kt++;var pn=e.combinePaths(tt,"__lib_node_modules_lookup_".concat(wr,"__.ts")),fn=e.resolveModuleName("@typescript/lib-"+Lt,pn,{moduleResolution:e.ModuleResolutionKind.NodeJs},pr,zn);return fn!=null&&fn.resolvedModule?fn.resolvedModule.resolvedFileName:e.combinePaths(Yr,wr)}function Qr(wr){e.forEach(wr.libReferenceDirectives,function($r,Lt){var Kt=e.toFileNameLowerCase($r.fileName),pn=e.libMap.get(Kt);if(pn)Dt(Re(pn),!0,!0,{kind:e.FileIncludeKind.LibReferenceDirective,file:wr.path,index:Lt});else{var fn=e.removeSuffix(e.removePrefix(Kt,"lib."),".d.ts"),kn=e.getSpellingSuggestion(fn,e.libs,e.identity),Kn=kn?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;(Fe||(Fe=[])).push({kind:0,reason:{kind:e.FileIncludeKind.LibReferenceDirective,file:wr.path,index:Lt},diagnostic:Kn,args:[Kt,kn]})}})}function vn(wr){return pr.getCanonicalFileName(wr)}function Xn(wr){var $r;if(xa(wr),wr.imports.length||wr.moduleAugmentations.length){var Lt=Y(wr),Kt=It(Lt,wr);e.Debug.assert(Kt.length===Lt.length);for(var pn=(yt?($r=Ut(wr))===null||$r===void 0?void 0:$r.commandLine.options:void 0)||Le,fn=0;fn<Lt.length;fn++){var kn=Kt[fn];if(e.setResolvedModule(wr,Lt[fn],kn,ne(wr,fn)),!!kn){var Kn=kn.isExternalLibraryImport,Fa=!e.resolutionExtensionIsTSOrJson(kn.extension),ua=Kn&&Fa,le=kn.resolvedFileName;Kn&&Sr++;var rr=ua&&Sr>$e,yr=le&&!R(pn,kn)&&!pn.noResolve&&fn<wr.imports.length&&!rr&&!(Fa&&!e.getAllowJSCompilerOption(pn))&&(e.isInJSFile(wr.imports[fn])||!(wr.imports[fn].flags&4194304));rr?Pr.set(wr.path,!0):yr&&da(le,!1,!1,{kind:e.FileIncludeKind.Import,file:wr.path,index:fn},kn.packageId),Kn&&Sr--}}}else wr.resolvedModules=void 0}function gi(wr,$r){for(var Lt=!0,Kt=pr.getCanonicalFileName(e.getNormalizedAbsolutePath($r,tt)),pn=0,fn=wr;pn<fn.length;pn++){var kn=fn[pn];if(!kn.isDeclarationFile){var Kn=pr.getCanonicalFileName(e.getNormalizedAbsolutePath(kn.fileName,tt));Kn.indexOf(Kt)!==0&&(Us(kn,e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[kn.fileName,$r]),Lt=!1)}}return Lt}function Ia(wr){fr||(fr=new e.Map);var $r=Ce(wr),Lt=pt($r),Kt=fr.get(Lt);if(Kt!==void 0)return Kt||void 0;var pn,fn;if(pr.getParsedCommandLine){if(pn=pr.getParsedCommandLine($r),!pn){xi(void 0,Lt,void 0),fr.set(Lt,!1);return}fn=e.Debug.checkDefined(pn.options.configFile),e.Debug.assert(!fn.path||fn.path===Lt),xi(fn,Lt,void 0)}else{var kn=e.getNormalizedAbsolutePath(e.getDirectoryPath($r),pr.getCurrentDirectory());if(fn=pr.getSourceFile($r,100),xi(fn,Lt,void 0),fn===void 0){fr.set(Lt,!1);return}pn=e.parseJsonSourceFileConfigFileContent(fn,Jr,kn,void 0,$r)}fn.fileName=$r,fn.path=Lt,fn.resolvedPath=Lt,fn.originalFileName=$r;var Kn={commandLine:pn,sourceFile:fn};return fr.set(Lt,Kn),pn.projectReferences&&(Kn.references=pn.projectReferences.map(Ia)),Kn}function oo(){var wr=e.stringContains(e.version,"-dev");wr||(e.getEmitModuleKind(Le)===e.ModuleKind.Node12?ql("module",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"module","node12"):e.getEmitModuleKind(Le)===e.ModuleKind.NodeNext?ql("module",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"module","nodenext"):e.getEmitModuleResolutionKind(Le)===e.ModuleResolutionKind.Node12?ql("moduleResolution",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"moduleResolution","node12"):e.getEmitModuleResolutionKind(Le)===e.ModuleResolutionKind.NodeNext&&ql("moduleResolution",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"moduleResolution","nodenext")),Le.strictPropertyInitialization&&!e.getStrictOptionValue(Le,"strictNullChecks")&&no(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),Le.exactOptionalPropertyTypes&&!e.getStrictOptionValue(Le,"strictNullChecks")&&no(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),Le.isolatedModules&&(Le.out&&no(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),Le.outFile&&no(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),Le.inlineSourceMap&&(Le.sourceMap&&no(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),Le.mapRoot&&no(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),Le.composite&&(Le.declaration===!1&&no(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),Le.incremental===!1&&no(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));var $r=e.outFile(Le);if(Le.tsBuildInfoFile?e.isIncrementalCompilation(Le)||no(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):Le.incremental&&!$r&&!Le.configFilePath&&lt.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),Ml(),Le.composite)for(var Lt=new e.Set(_e.map(pt)),Kt=0,pn=Dr;Kt<pn.length;Kt++){var fn=pn[Kt];e.sourceFileMayBeEmitted(fn,Wn)&&!Lt.has(fn.path)&&Us(fn,e.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[fn.fileName,Le.configFilePath||""])}if(Le.paths){for(var kn in Le.paths)if(e.hasProperty(Le.paths,kn))if(e.hasZeroOrOneAsteriskCharacter(kn)||Vs(!0,kn,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,kn),e.isArray(Le.paths[kn])){var Kn=Le.paths[kn].length;Kn===0&&Vs(!1,kn,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,kn);for(var Fa=0;Fa<Kn;Fa++){var ua=Le.paths[kn][Fa],le=typeof ua;le==="string"?(e.hasZeroOrOneAsteriskCharacter(ua)||Co(kn,Fa,e.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,ua,kn),!Le.baseUrl&&!e.pathIsRelative(ua)&&!e.pathIsAbsolute(ua)&&Co(kn,Fa,e.Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Co(kn,Fa,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,ua,kn,le)}}else Vs(!1,kn,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,kn)}!Le.sourceMap&&!Le.inlineSourceMap&&(Le.inlineSources&&no(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),Le.sourceRoot&&no(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),Le.out&&Le.outFile&&no(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),Le.mapRoot&&!(Le.sourceMap||Le.declarationMap)&&no(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),Le.declarationDir&&(e.getEmitDeclarations(Le)||no(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),$r&&no(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",Le.out?"out":"outFile")),Le.declarationMap&&!e.getEmitDeclarations(Le)&&no(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),Le.lib&&Le.noLib&&no(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),Le.noImplicitUseStrict&&e.getStrictOptionValue(Le,"alwaysStrict")&&no(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var rr=e.getEmitScriptTarget(Le),yr=e.find(Dr,function(Ya){return e.isExternalModule(Ya)&&!Ya.isDeclarationFile});if(Le.isolatedModules){Le.module===e.ModuleKind.None&&rr<2&&no(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),Le.preserveConstEnums===!1&&no(e.Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled,"preserveConstEnums","isolatedModules");var ct=e.find(Dr,function(Ya){return!e.isExternalModule(Ya)&&!e.isSourceFileJS(Ya)&&!Ya.isDeclarationFile&&Ya.scriptKind!==6});if(ct){var jt=e.getErrorSpanForNode(ct,ct);lt.add(e.createFileDiagnostic(ct,jt.start,jt.length,e.Diagnostics._0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module,e.getBaseFileName(ct.fileName)))}}else if(yr&&rr<2&&Le.module===e.ModuleKind.None){var jt=e.getErrorSpanForNode(yr,yr.externalModuleIndicator);lt.add(e.createFileDiagnostic(yr,jt.start,jt.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if($r&&!Le.emitDeclarationOnly){if(Le.module&&!(Le.module===e.ModuleKind.AMD||Le.module===e.ModuleKind.System))no(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,Le.out?"out":"outFile","module");else if(Le.module===void 0&&yr){var jt=e.getErrorSpanForNode(yr,yr.externalModuleIndicator);lt.add(e.createFileDiagnostic(yr,jt.start,jt.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,Le.out?"out":"outFile"))}}if(Le.resolveJsonModule&&(e.getEmitModuleResolutionKind(Le)!==e.ModuleResolutionKind.NodeJs&&e.getEmitModuleResolutionKind(Le)!==e.ModuleResolutionKind.Node12&&e.getEmitModuleResolutionKind(Le)!==e.ModuleResolutionKind.NodeNext?no(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(Le)||no(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),Le.outDir||Le.rootDir||Le.sourceRoot||Le.mapRoot){var yn=_t();Le.outDir&&yn===""&&Dr.some(function(Ya){return e.getRootLength(Ya.fileName)>1})&&no(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(Le.useDefineForClassFields&&rr===0&&no(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),Le.checkJs&&!e.getAllowJSCompilerOption(Le)&&lt.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),Le.emitDeclarationOnly&&(e.getEmitDeclarations(Le)||no(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),Le.noEmit&&no(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),Le.emitDecoratorMetadata&&!Le.experimentalDecorators&&no(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),Le.jsxFactory?(Le.reactNamespace&&no(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(Le.jsx===4||Le.jsx===5)&&no(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+Le.jsx)),e.parseIsolatedEntityName(Le.jsxFactory,rr)||ql("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,Le.jsxFactory)):Le.reactNamespace&&!e.isIdentifierText(Le.reactNamespace,rr)&&ql("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,Le.reactNamespace),Le.jsxFragmentFactory&&(Le.jsxFactory||no(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(Le.jsx===4||Le.jsx===5)&&no(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+Le.jsx)),e.parseIsolatedEntityName(Le.jsxFragmentFactory,rr)||ql("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,Le.jsxFragmentFactory)),Le.reactNamespace&&(Le.jsx===4||Le.jsx===5)&&no(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+Le.jsx)),Le.jsxImportSource&&Le.jsx===2&&no(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+Le.jsx)),Le.preserveValueImports&&e.getEmitModuleKind(Le)<e.ModuleKind.ES2015&&ql("importsNotUsedAsValues",e.Diagnostics.Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later),!Le.noEmit&&!Le.suppressOutputPathCheck){var ha=Qn(),ri=new e.Set;e.forEachEmittedFile(ha,function(Ya){Le.emitDeclarationOnly||Ta(Ya.jsFilePath,ri),Ta(Ya.declarationFilePath,ri)})}function Ta(Ya,fi){if(Ya){var ci=pt(Ya);if(Ne.has(ci)){var Si=void 0;Le.configFilePath||(Si=e.chainDiagnosticMessages(void 0,e.Diagnostics.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)),Si=e.chainDiagnosticMessages(Si,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,Ya),La(Ya,e.createCompilerDiagnosticFromMessageChain(Si))}var Do=pr.useCaseSensitiveFileNames()?ci:e.toFileNameLowerCase(ci);fi.has(Do)?La(Ya,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,Ya)):fi.add(Do)}}}function Wo(wr,$r,Lt,Kt){var pn,fn,kn,Kn=T($r)?$r:void 0;wr&&((pn=Hr.get(wr.path))===null||pn===void 0||pn.forEach(yr)),$r&&yr($r),Kn&&(fn==null?void 0:fn.length)===1&&(fn=void 0);var Fa=Kn&&y(lo,Kn),ua=fn&&e.chainDiagnosticMessages(fn,e.Diagnostics.The_file_is_in_the_program_because_Colon),le=wr&&e.explainIfFileIsRedirect(wr),rr=e.chainDiagnosticMessages.apply(void 0,Gt([le?ua?Gt([ua],le,!0):le:ua,Lt],Kt||e.emptyArray,!1));return Fa&&N(Fa)?e.createFileDiagnosticFromMessageChain(Fa.file,Fa.pos,Fa.end-Fa.pos,rr,kn):e.createCompilerDiagnosticFromMessageChain(rr,kn);function yr(ct){(fn||(fn=[])).push(e.fileIncludeReasonToDiagnostics(Wn,ct)),!Kn&&T(ct)?Kn=ct:Kn!==ct&&(kn=e.append(kn,il(ct))),ct===$r&&($r=void 0)}}function Ir(wr,$r,Lt,Kt){(Fe||(Fe=[])).push({kind:1,file:wr&&wr.path,fileProcessingReason:$r,diagnostic:Lt,args:Kt})}function Us(wr,$r,Lt){lt.add(Wo(wr,void 0,$r,Lt))}function il(wr){if(T(wr)){var $r=y(lo,wr),Lt;switch(wr.kind){case e.FileIncludeKind.Import:Lt=e.Diagnostics.File_is_included_via_import_here;break;case e.FileIncludeKind.ReferenceFile:Lt=e.Diagnostics.File_is_included_via_reference_here;break;case e.FileIncludeKind.TypeReferenceDirective:Lt=e.Diagnostics.File_is_included_via_type_library_reference_here;break;case e.FileIncludeKind.LibReferenceDirective:Lt=e.Diagnostics.File_is_included_via_library_reference_here;break;default:e.Debug.assertNever(wr)}return N($r)?e.createFileDiagnostic($r.file,$r.pos,$r.end-$r.pos,Lt):void 0}if(Le.configFile){var Kt,pn;switch(wr.kind){case e.FileIncludeKind.RootFile:if(!Le.configFile.configFileSpecs)return;var fn=e.getNormalizedAbsolutePath(_e[wr.index],tt),kn=e.getMatchedFileSpec(Wn,fn);if(kn){Kt=e.getTsConfigPropArrayElementValue(Le.configFile,"files",kn),pn=e.Diagnostics.File_is_matched_by_files_list_specified_here;break}var Kn=e.getMatchedIncludeSpec(Wn,fn);if(!Kn)return;Kt=e.getTsConfigPropArrayElementValue(Le.configFile,"include",Kn),pn=e.Diagnostics.File_is_matched_by_include_pattern_specified_here;break;case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var Fa=e.Debug.checkDefined(Cr==null?void 0:Cr[wr.index]),ua=re(Xe,Cr,function(jt,yn,ha){return jt===Fa?{sourceFile:(yn==null?void 0:yn.sourceFile)||Le.configFile,index:ha}:void 0});if(!ua)return;var le=ua.sourceFile,rr=ua.index,yr=e.firstDefined(e.getTsConfigPropArray(le,"references"),function(jt){return e.isArrayLiteralExpression(jt.initializer)?jt.initializer:void 0});return yr&&yr.elements.length>rr?e.createDiagnosticForNodeInSourceFile(le,yr.elements[rr],wr.kind===e.FileIncludeKind.OutputFromProjectReference?e.Diagnostics.File_is_output_from_referenced_project_specified_here:e.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0;case e.FileIncludeKind.AutomaticTypeDirectiveFile:if(!Le.types)return;Kt=cu("types",wr.typeReference),pn=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(wr.index!==void 0){Kt=cu("lib",Le.lib[wr.index]),pn=e.Diagnostics.File_is_library_specified_here;break}var ct=e.forEachEntry(e.targetOptionDeclaration.type,function(jt,yn){return jt===e.getEmitScriptTarget(Le)?yn:void 0});Kt=ct?uc("target",ct):void 0,pn=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(wr)}return Kt&&e.createDiagnosticForNodeInSourceFile(Le.configFile,Kt,pn)}}function Ml(){var wr=Le.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(Le);re(Xe,Cr,function($r,Lt,Kt){var pn=(Lt?Lt.commandLine.projectReferences:Xe)[Kt],fn=Lt&&Lt.sourceFile;if(!$r){fc(fn,Kt,e.Diagnostics.File_0_not_found,pn.path);return}var kn=$r.commandLine.options;if(!kn.composite||kn.noEmit){var Kn=Lt?Lt.commandLine.fileNames:_e;Kn.length&&(kn.composite||fc(fn,Kt,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,pn.path),kn.noEmit&&fc(fn,Kt,e.Diagnostics.Referenced_project_0_may_not_disable_emit,pn.path))}if(pn.prepend){var Fa=e.outFile(kn);Fa?pr.fileExists(Fa)||fc(fn,Kt,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,Fa,pn.path):fc(fn,Kt,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,pn.path)}!Lt&&wr&&wr===e.getTsBuildInfoEmitOutputFilePath(kn)&&(fc(fn,Kt,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,wr,pn.path),bn.set(pt(wr),!0))})}function Co(wr,$r,Lt,Kt,pn,fn){for(var kn=!0,Kn=zl(),Fa=0,ua=Kn;Fa<ua.length;Fa++){var le=ua[Fa];if(e.isObjectLiteralExpression(le.initializer))for(var rr=0,yr=e.getPropertyAssignment(le.initializer,wr);rr<yr.length;rr++){var ct=yr[rr],jt=ct.initializer;e.isArrayLiteralExpression(jt)&&jt.elements.length>$r&&(lt.add(e.createDiagnosticForNodeInSourceFile(Le.configFile,jt.elements[$r],Lt,Kt,pn,fn)),kn=!1)}}kn&&lt.add(e.createCompilerDiagnostic(Lt,Kt,pn,fn))}function Vs(wr,$r,Lt,Kt){for(var pn=!0,fn=zl(),kn=0,Kn=fn;kn<Kn.length;kn++){var Fa=Kn[kn];e.isObjectLiteralExpression(Fa.initializer)&&Ic(Fa.initializer,wr,$r,void 0,Lt,Kt)&&(pn=!1)}pn&&lt.add(e.createCompilerDiagnostic(Lt,Kt))}function Ql(wr){var $r=xc();return $r&&e.getPropertyAssignment($r,wr)}function zl(){return Ql("paths")||e.emptyArray}function uc(wr,$r){var Lt=Ql(wr);return Lt&&e.firstDefined(Lt,function(Kt){return e.isStringLiteral(Kt.initializer)&&Kt.initializer.text===$r?Kt.initializer:void 0})}function cu(wr,$r){var Lt=xc();return Lt&&e.getPropertyArrayElementValue(Lt,wr,$r)}function no(wr,$r,Lt,Kt){Ws(!0,$r,Lt,wr,$r,Lt,Kt)}function ql(wr,$r,Lt,Kt){Ws(!1,wr,void 0,$r,Lt,Kt)}function fc(wr,$r,Lt,Kt,pn){var fn=e.firstDefined(e.getTsConfigPropArray(wr||Le.configFile,"references"),function(kn){return e.isArrayLiteralExpression(kn.initializer)?kn.initializer:void 0});fn&&fn.elements.length>$r?lt.add(e.createDiagnosticForNodeInSourceFile(wr||Le.configFile,fn.elements[$r],Lt,Kt,pn)):lt.add(e.createCompilerDiagnostic(Lt,Kt,pn))}function Ws(wr,$r,Lt,Kt,pn,fn,kn){var Kn=xc(),Fa=!Kn||!Ic(Kn,wr,$r,Lt,Kt,pn,fn,kn);Fa&&lt.add(e.createCompilerDiagnostic(Kt,pn,fn,kn))}function xc(){if(In===void 0){In=!1;var wr=e.getTsConfigObjectLiteralExpression(Le.configFile);if(wr)for(var $r=0,Lt=e.getPropertyAssignment(wr,"compilerOptions");$r<Lt.length;$r++){var Kt=Lt[$r];if(e.isObjectLiteralExpression(Kt.initializer)){In=Kt.initializer;break}}}return In||void 0}function Ic(wr,$r,Lt,Kt,pn,fn,kn,Kn){for(var Fa=e.getPropertyAssignment(wr,Lt,Kt),ua=0,le=Fa;ua<le.length;ua++){var rr=le[ua];lt.add(e.createDiagnosticForNodeInSourceFile(Le.configFile,$r?rr.name:rr.initializer,pn,fn,kn,Kn))}return!!Fa.length}function La(wr,$r){bn.set(pt(wr),!0),lt.add($r)}function uu(wr){if(Le.noEmit)return!1;var $r=pt(wr);if(lo($r))return!1;var Lt=e.outFile(Le);if(Lt)return dc($r,Lt)||dc($r,e.removeFileExtension(Lt)+".d.ts");if(Le.declarationDir&&e.containsPath(Le.declarationDir,$r,tt,!pr.useCaseSensitiveFileNames()))return!0;if(Le.outDir)return e.containsPath(Le.outDir,$r,tt,!pr.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf($r,e.supportedJSExtensionsFlat)||e.fileExtensionIs($r,".d.ts")){var Kt=e.removeFileExtension($r);return!!lo(Kt+".ts")||!!lo(Kt+".tsx")}return!1}function dc(wr,$r){return e.comparePaths(wr,$r,tt,!pr.useCaseSensitiveFileNames())===0}function Nc(){return pr.getSymlinkCache?pr.getSymlinkCache():(br||(br=e.createSymlinkCache(tt,vn)),Dr&&de&&!br.hasProcessedResolutions()&&br.setSymlinksFromResolutions(Dr,de),br)}}e.createProgram=P;function te(K){var Te,ge=K.compilerHost.fileExists,ke=K.compilerHost.directoryExists,Pe=K.compilerHost.getDirectories,Ie=K.compilerHost.realpath;if(!K.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:e.noop,fileExists:ve};K.compilerHost.fileExists=ve;var Ge;return ke&&(Ge=K.compilerHost.directoryExists=function(Xe){return ke.call(K.compilerHost,Xe)?(Le(Xe),!0):K.getResolvedProjectReferences()?(Te||(Te=new e.Set,K.forEachResolvedProjectReference(function(De){var Ae=e.outFile(De.commandLine.options);if(Ae)Te.add(e.getDirectoryPath(K.toPath(Ae)));else{var Ye=De.commandLine.options.declarationDir||De.commandLine.options.outDir;Ye&&Te.add(K.toPath(Ye))}})),qe(Xe,!1)):!1}),Pe&&(K.compilerHost.getDirectories=function(Xe){return!K.getResolvedProjectReferences()||ke&&ke.call(K.compilerHost,Xe)?Pe.call(K.compilerHost,Xe):[]}),Ie&&(K.compilerHost.realpath=function(Xe){var De;return((De=K.getSymlinkCache().getSymlinkedFiles())===null||De===void 0?void 0:De.get(K.toPath(Xe)))||Ie.call(K.compilerHost,Xe)}),{onProgramCreateComplete:he,fileExists:ve,directoryExists:Ge};function he(){K.compilerHost.fileExists=ge,K.compilerHost.directoryExists=ke,K.compilerHost.getDirectories=Pe}function ve(Xe){return ge.call(K.compilerHost,Xe)?!0:!K.getResolvedProjectReferences()||!e.isDeclarationFileName(Xe)?!1:qe(Xe,!0)}function Ve(Xe){var De=K.getSourceOfProjectReferenceRedirect(K.toPath(Xe));return De!==void 0?e.isString(De)?ge.call(K.compilerHost,De):!0:void 0}function _e(Xe){var De=K.toPath(Xe),Ae="".concat(De).concat(e.directorySeparator);return e.forEachKey(Te,function(Ye){return De===Ye||e.startsWith(Ye,Ae)||e.startsWith(De,"".concat(Ye,"/"))})}function Le(Xe){var De;if(!(!K.getResolvedProjectReferences()||e.containsIgnoredPath(Xe))&&!(!Ie||!e.stringContains(Xe,e.nodeModulesPathPart))){var Ae=K.getSymlinkCache(),Ye=e.ensureTrailingDirectorySeparator(K.toPath(Xe));if(!(!((De=Ae.getSymlinkedDirectories())===null||De===void 0)&&De.has(Ye))){var Dr=e.normalizePath(Ie.call(K.compilerHost,Xe)),br;if(Dr===Xe||(br=e.ensureTrailingDirectorySeparator(K.toPath(Dr)))===Ye){Ae.setSymlinkedDirectory(Ye,!1);return}Ae.setSymlinkedDirectory(Xe,{real:e.ensureTrailingDirectorySeparator(Dr),realPath:br})}}}function qe(Xe,De){var Ae,Ye=De?function(kr){return Ve(kr)}:function(kr){return _e(kr)},Dr=Ye(Xe);if(Dr!==void 0)return Dr;var br=K.getSymlinkCache(),lr=br.getSymlinkedDirectories();if(!lr)return!1;var Ar=K.toPath(Xe);return e.stringContains(Ar,e.nodeModulesPathPart)?De&&(!((Ae=br.getSymlinkedFiles())===null||Ae===void 0)&&Ae.has(Ar))?!0:e.firstDefinedIterator(lr.entries(),function(kr){var Ke=kr[0],Me=kr[1];if(!(!Me||!e.startsWith(Ar,Ke))){var Hr=Ye(Ar.replace(Ke,Me.realPath));if(De&&Hr){var ur=e.getNormalizedAbsolutePath(Xe,K.compilerHost.getCurrentDirectory());br.setSymlinkedFile(Ar,"".concat(Me.real).concat(ur.replace(new RegExp(Ke,"i"),"")))}return Hr}})||!1:!1}}e.emitSkippedWithNoDiagnostics={diagnostics:e.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function ue(K,Te,ge,ke){var Pe=K.getCompilerOptions();if(Pe.noEmit)return K.getSemanticDiagnostics(Te,ke),Te||e.outFile(Pe)?e.emitSkippedWithNoDiagnostics:K.emitBuildInfo(ge,ke);if(Pe.noEmitOnError){var Ie=Gt(Gt(Gt(Gt([],K.getOptionsDiagnostics(ke),!0),K.getSyntacticDiagnostics(Te,ke),!0),K.getGlobalDiagnostics(ke),!0),K.getSemanticDiagnostics(Te,ke),!0);if(Ie.length===0&&e.getEmitDeclarations(K.getCompilerOptions())&&(Ie=K.getDeclarationDiagnostics(void 0,ke)),!!Ie.length){var Ge;if(!Te&&!e.outFile(Pe)){var he=K.emitBuildInfo(ge,ke);he.diagnostics&&(Ie=Gt(Gt([],Ie,!0),he.diagnostics,!0)),Ge=he.emittedFiles}return{diagnostics:Ie,sourceMaps:void 0,emittedFiles:Ge,emitSkipped:!0}}}}e.handleNoEmitOptions=ue;function X(K,Te){return e.filter(K,function(ge){return!ge.skippedOn||!Te[ge.skippedOn]})}e.filterSemanticDiagnostics=X;function j(K,Te){return Te===void 0&&(Te=K),{fileExists:function(ge){return Te.fileExists(ge)},readDirectory:function(ge,ke,Pe,Ie,Ge){return e.Debug.assertIsDefined(Te.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),Te.readDirectory(ge,ke,Pe,Ie,Ge)},readFile:function(ge){return Te.readFile(ge)},useCaseSensitiveFileNames:K.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return K.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:K.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:K.trace?function(ge){return K.trace(ge)}:void 0}}e.parseConfigHostFromCompilerHostLike=j;function Se(K,Te,ge){if(!K)return e.emptyArray;for(var ke,Pe=0;Pe<K.length;Pe++){var Ie=K[Pe],Ge=Te(Ie,Pe);if(Ie.prepend&&Ge&&Ge.options){var he=e.outFile(Ge.options);if(!he)continue;var ve=e.getOutputPathsForBundle(Ge.options,!0),Ve=ve.jsFilePath,_e=ve.sourceMapFilePath,Le=ve.declarationFilePath,qe=ve.declarationMapPath,Xe=ve.buildInfoPath,De=e.createInputFiles(ge,Ve,_e,Le,qe,Xe);(ke||(ke=[])).push(De)}}return ke||e.emptyArray}e.createPrependNodes=Se;function Ce(K,Te){var ge=Te||K;return e.resolveConfigFileProjectName(ge.path)}e.resolveProjectReferencePath=Ce;function R(K,Te){var ge=Te.extension;switch(ge){case".ts":case".d.ts":return;case".tsx":return ke();case".jsx":return ke()||Pe();case".js":return Pe();case".json":return Ie()}function ke(){return K.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function Pe(){return e.getAllowJSCompilerOption(K)||!e.getStrictOptionValue(K,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function Ie(){return K.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}}e.getResolutionDiagnostic=R;function Y(K){for(var Te=K.imports,ge=K.moduleAugmentations,ke=Te.map(function(he){return he.text}),Pe=0,Ie=ge;Pe<Ie.length;Pe++){var Ge=Ie[Pe];Ge.kind===10&&ke.push(Ge.text)}return ke}function U(K,Te){var ge=K.imports,ke=K.moduleAugmentations;if(Te<ge.length)return ge[Te];for(var Pe=ge.length,Ie=0,Ge=ke;Ie<Ge.length;Ie++){var he=Ge[Ie];if(he.kind===10){if(Te===Pe)return he;Pe++}}e.Debug.fail("should never ask for module name at index higher than possible module name")}e.getModuleNameStringLiteralAt=U}(jr||(jr={})),function(e){function n(f,p,a,d,k,J){var h=[],v=f.emit(p,b,d,a,k,J),A=v.emitSkipped,z=v.diagnostics,ie=v.exportedModulesFromDeclarationEmit;return{outputFiles:h,emitSkipped:A,diagnostics:z,exportedModulesFromDeclarationEmit:ie};function b(M,S,B){h.push({name:M,writeByteOrderMark:B,text:S})}}e.getFileEmitOutput=n,function(f){var p=0;function a(){function N(y,D,C){var m=0,u={id:p++,version:function(){return m},clone:function(){return N(new e.Map(y),new e.Map(D),C&&new e.Set(C))},forEach:function(g){return y.forEach(g)},getKeys:function(g){return D.get(g)},getValues:function(g){return y.get(g)},hasKey:function(g){return y.has(g)},keys:function(){return y.keys()},deletedKeys:function(){return C},deleteKey:function(g){(C||(C=new e.Set)).add(g);var P=y.get(g);return P?(P.forEach(function(te){return k(D,te,g)}),y.delete(g),m++,!0):!1},set:function(g,P){var te=!!(C!=null&&C.delete(g)),ue=y.get(g);return y.set(g,P),ue==null||ue.forEach(function(X){P.has(X)||(te=!0,k(D,X,g))}),P.forEach(function(X){ue!=null&&ue.has(X)||(te=!0,d(D,X,g))}),te&&m++,u}};return u}return N(new e.Map,new e.Map,void 0)}f.createManyToManyPathMap=a;function d(N,y,D){var C=N.get(y);C||(C=new e.Set,N.set(y,C)),C.add(D)}function k(N,y,D,C){C===void 0&&(C=!0);var m=N.get(y);return m!=null&&m.delete(D)?(C&&!m.size&&N.delete(y),!0):!1}function J(N){return e.mapDefined(N.declarations,function(y){var D;return(D=e.getSourceFileOfNode(y))===null||D===void 0?void 0:D.resolvedPath})}function h(N,y){var D=N.getSymbolAtLocation(y);return D&&J(D)}function v(N,y,D,C){return e.toPath(N.getProjectReferenceRedirect(y)||y,D,C)}function A(N,y,D){var C;if(y.imports&&y.imports.length>0)for(var m=N.getTypeChecker(),u=0,g=y.imports;u<g.length;u++){var P=g[u],te=h(m,P);te==null||te.forEach(Ie)}var ue=e.getDirectoryPath(y.resolvedPath);if(y.referencedFiles&&y.referencedFiles.length>0)for(var X=0,j=y.referencedFiles;X<j.length;X++){var Se=j[X],Ce=v(N,Se.fileName,ue,D);Ie(Ce)}if(y.resolvedTypeReferenceDirectiveNames&&y.resolvedTypeReferenceDirectiveNames.forEach(function(Ge){if(Ge){var he=Ge.resolvedFileName,ve=v(N,he,ue,D);Ie(ve)}}),y.moduleAugmentations.length)for(var m=N.getTypeChecker(),R=0,Y=y.moduleAugmentations;R<Y.length;R++){var U=Y[R];if(e.isStringLiteral(U)){var K=m.getSymbolAtLocation(U);K&&Pe(K)}}for(var Te=0,ge=N.getTypeChecker().getAmbientModules();Te<ge.length;Te++){var ke=ge[Te];ke.declarations&&ke.declarations.length>1&&Pe(ke)}return C;function Pe(Ge){if(Ge.declarations)for(var he=0,ve=Ge.declarations;he<ve.length;he++){var Ve=ve[he],_e=e.getSourceFileOfNode(Ve);_e&&_e!==y&&Ie(_e.resolvedPath)}}function Ie(Ge){(C||(C=new e.Set)).add(Ge)}}function z(N,y){return y&&!y.referencedMap==!N}f.canReuseOldState=z;function ie(N,y,D,C){var m=new e.Map,u=N.getCompilerOptions().module!==e.ModuleKind.None?a():void 0,g=u?a():void 0,P=new e.Set,te=z(u,D);N.getTypeChecker();for(var ue=0,X=N.getSourceFiles();ue<X.length;ue++){var j=X[ue],Se=e.Debug.checkDefined(j.version,"Program intended to be used with Builder should have source files with versions set"),Ce=te?D.fileInfos.get(j.resolvedPath):void 0;if(u){var R=A(N,j,y);if(R&&u.set(j.resolvedPath,R),te){var Y=D.exportedModulesMap.getValues(j.resolvedPath);Y&&g.set(j.resolvedPath,Y)}}m.set(j.resolvedPath,{version:Se,signature:Ce&&Ce.signature,affectsGlobalScope:Q(j)||void 0,impliedFormat:j.impliedNodeFormat})}return{fileInfos:m,referencedMap:u,exportedModulesMap:g,hasCalledUpdateShapeSignature:P,useFileVersionAsSignature:!C&&!te}}f.create=ie;function b(N){N.allFilesExcludingDefaultLibraryFile=void 0,N.allFileNames=void 0}f.releaseCache=b;function M(N){var y,D;return{fileInfos:new e.Map(N.fileInfos),referencedMap:(y=N.referencedMap)===null||y===void 0?void 0:y.clone(),exportedModulesMap:(D=N.exportedModulesMap)===null||D===void 0?void 0:D.clone(),hasCalledUpdateShapeSignature:new e.Set(N.hasCalledUpdateShapeSignature),useFileVersionAsSignature:N.useFileVersionAsSignature}}f.clone=M;function S(N,y,D,C,m,u,g){var P=u||new e.Map,te=y.getSourceFileByPath(D);if(!te)return e.emptyArray;if(!I(N,y,te,P,C,m,g))return[te];var ue=(N.referencedMap?T:re)(N,y,te,P,C,m,g);return u||B(N,P),ue}f.getFilesAffectedBy=S;function B(N,y){y.forEach(function(D,C){return H(N,D,C)})}f.updateSignaturesFromCache=B;function H(N,y,D){N.fileInfos.get(D).signature=y,N.hasCalledUpdateShapeSignature.add(D)}f.updateSignatureOfFile=H;function I(N,y,D,C,m,u,g,P){if(P===void 0&&(P=N.useFileVersionAsSignature),e.Debug.assert(!!D),e.Debug.assert(!g||!!N.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),N.hasCalledUpdateShapeSignature.has(D.resolvedPath)||C.has(D.resolvedPath))return!1;var te=N.fileInfos.get(D.resolvedPath);if(!te)return e.Debug.fail();var ue=te.signature,X;if(!D.isDeclarationFile&&!P){var j=n(y,D,!0,m,void 0,!0),Se=e.firstOrUndefined(j.outputFiles);Se&&(e.Debug.assert(e.fileExtensionIsOneOf(Se.name,[".d.ts",".d.mts",".d.cts"]),"File extension for signature expected to be dts",function(){return"Found: ".concat(e.getAnyExtensionFromPath(Se.name)," for ").concat(Se.name,":: All output files: ").concat(JSON.stringify(j.outputFiles.map(function(R){return R.name})))}),X=(u||e.generateDjb2Hash)(Se.text),g&&X!==ue&&w(D,j.exportedModulesFromDeclarationEmit,g))}if(X===void 0&&(X=D.version,g&&X!==ue)){var Ce=N.referencedMap?N.referencedMap.getValues(D.resolvedPath):void 0;Ce?g.set(D.resolvedPath,Ce):g.deleteKey(D.resolvedPath)}return C.set(D.resolvedPath,X),X!==ue}f.updateShapeSignature=I;function w(N,y,D){if(!y){D.deleteKey(N.resolvedPath);return}var C;y.forEach(function(u){return m(J(u))}),C?D.set(N.resolvedPath,C):D.deleteKey(N.resolvedPath);function m(u){u!=null&&u.length&&(C||(C=new e.Set),u.forEach(function(g){return C.add(g)}))}}function x(N,y){var D;if(y){e.Debug.assert(!!N.exportedModulesMap);var C=y.id,m=y.version();if(N.previousCache){if(N.previousCache.id===C&&N.previousCache.version===m)return;N.previousCache.id=C,N.previousCache.version=m}else N.previousCache={id:C,version:m};(D=y.deletedKeys())===null||D===void 0||D.forEach(function(u){return N.exportedModulesMap.deleteKey(u)}),y.forEach(function(u,g){return N.exportedModulesMap.set(g,u)})}}f.updateExportedFilesMapFromCache=x;function O(N,y,D){var C=y.getCompilerOptions();if(e.outFile(C)||!N.referencedMap||Q(D))return q(N,y);for(var m=new e.Set,u=[D.resolvedPath];u.length;){var g=u.pop();if(!m.has(g)){m.add(g);var P=N.referencedMap.getValues(g);if(P)for(var te=P.keys(),ue=te.next();!ue.done;ue=te.next())u.push(ue.value)}}return e.arrayFrom(e.mapDefinedIterator(m.keys(),function(X){var j,Se;return(Se=(j=y.getSourceFileByPath(X))===null||j===void 0?void 0:j.fileName)!==null&&Se!==void 0?Se:X}))}f.getAllDependencies=O;function q(N,y){if(!N.allFileNames){var D=y.getSourceFiles();N.allFileNames=D===e.emptyArray?e.emptyArray:D.map(function(C){return C.fileName})}return N.allFileNames}function Z(N,y){var D=N.referencedMap.getKeys(y);return D?e.arrayFrom(D.keys()):[]}f.getReferencedByPaths=Z;function ne(N){for(var y=0,D=N.statements;y<D.length;y++){var C=D[y];if(!e.isModuleWithStringLiteralName(C))return!1}return!0}function F(N){return e.some(N.moduleAugmentations,function(y){return e.isGlobalScopeAugmentation(y.parent)})}function Q(N){return F(N)||!e.isExternalOrCommonJsModule(N)&&!e.isJsonSourceFile(N)&&!ne(N)}function V(N,y,D){if(N.allFilesExcludingDefaultLibraryFile)return N.allFilesExcludingDefaultLibraryFile;var C;D&&P(D);for(var m=0,u=y.getSourceFiles();m<u.length;m++){var g=u[m];g!==D&&P(g)}return N.allFilesExcludingDefaultLibraryFile=C||e.emptyArray,N.allFilesExcludingDefaultLibraryFile;function P(te){y.isSourceFileDefaultLibrary(te)||(C||(C=[])).push(te)}}f.getAllFilesExcludingDefaultLibraryFile=V;function re(N,y,D){var C=y.getCompilerOptions();return C&&e.outFile(C)?[D]:V(N,y,D)}function T(N,y,D,C,m,u,g){if(Q(D))return V(N,y,D);var P=y.getCompilerOptions();if(P&&(P.isolatedModules||e.outFile(P)))return[D];var te=new e.Map;te.set(D.resolvedPath,D);for(var ue=Z(N,D.resolvedPath);ue.length>0;){var X=ue.pop();if(!te.has(X)){var j=y.getSourceFileByPath(X);te.set(X,j),j&&I(N,y,j,C,m,u,g)&&ue.push.apply(ue,Z(N,j.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(te.values(),function(Se){return Se}))}}(e.BuilderState||(e.BuilderState={}))}(jr||(jr={})),function(e){(function(m){m[m.DtsOnly=0]="DtsOnly",m[m.Full=1]="Full"})(e.BuilderFileEmit||(e.BuilderFileEmit={}));function n(m,u){return m===u||m!==void 0&&u!==void 0&&m.size===u.size&&!e.forEachKey(m,function(g){return!u.has(g)})}function f(m,u,g,P){var te=e.BuilderState.create(m,u,g,P);te.program=m;var ue=m.getCompilerOptions();te.compilerOptions=ue,e.outFile(ue)||(te.semanticDiagnosticsPerFile=new e.Map),te.changedFilesSet=new e.Set;var X=e.BuilderState.canReuseOldState(te.referencedMap,g),j=X?g.compilerOptions:void 0,Se=X&&g.semanticDiagnosticsPerFile&&!!te.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(ue,j);if(X){if(!g.currentChangedFilePath){var Ce=g.currentAffectedFilesSignatures;e.Debug.assert(!g.affectedFiles&&(!Ce||!Ce.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var R=g.changedFilesSet;Se&&e.Debug.assert(!R||!e.forEachKey(R,function(ge){return g.semanticDiagnosticsPerFile.has(ge)}),"Semantic diagnostics shouldnt be available for changed files"),R==null||R.forEach(function(ge){return te.changedFilesSet.add(ge)}),!e.outFile(ue)&&g.affectedFilesPendingEmit&&(te.affectedFilesPendingEmit=g.affectedFilesPendingEmit.slice(),te.affectedFilesPendingEmitKind=g.affectedFilesPendingEmitKind&&new e.Map(g.affectedFilesPendingEmitKind),te.affectedFilesPendingEmitIndex=g.affectedFilesPendingEmitIndex,te.seenAffectedFiles=new e.Set)}var Y=te.referencedMap,U=X?g.referencedMap:void 0,K=Se&&!ue.skipLibCheck==!j.skipLibCheck,Te=K&&!ue.skipDefaultLibCheck==!j.skipDefaultLibCheck;return te.fileInfos.forEach(function(ge,ke){var Pe,Ie;if(!X||!(Pe=g.fileInfos.get(ke))||Pe.version!==ge.version||!n(Ie=Y&&Y.getValues(ke),U&&U.getValues(ke))||Ie&&e.forEachKey(Ie,function(ve){return!te.fileInfos.has(ve)&&g.fileInfos.has(ve)}))te.changedFilesSet.add(ke);else if(Se){var Ge=m.getSourceFileByPath(ke);if(Ge.isDeclarationFile&&!K||Ge.hasNoDefaultLib&&!Te)return;var he=g.semanticDiagnosticsPerFile.get(ke);he&&(te.semanticDiagnosticsPerFile.set(ke,g.hasReusableDiagnostic?p(he,m,u):he),te.semanticDiagnosticsFromOldState||(te.semanticDiagnosticsFromOldState=new e.Set),te.semanticDiagnosticsFromOldState.add(ke))}}),X&&e.forEachEntry(g.fileInfos,function(ge,ke){return ge.affectsGlobalScope&&!te.fileInfos.has(ke)})?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(te,m,void 0).forEach(function(ge){return te.changedFilesSet.add(ge.resolvedPath)}):j&&!e.outFile(ue)&&e.compilerOptionsAffectEmit(ue,j)&&(m.getSourceFiles().forEach(function(ge){return N(te,ge.resolvedPath,1)}),e.Debug.assert(!te.seenAffectedFiles||!te.seenAffectedFiles.size),te.seenAffectedFiles=te.seenAffectedFiles||new e.Set),X&&e.forEachEntry(g.fileInfos,function(ge,ke){te.fileInfos.has(ke)&&te.fileInfos.get(ke).impliedFormat!==ge.impliedFormat&&te.changedFilesSet.add(ke)}),te.buildInfoEmitPending=!!te.changedFilesSet.size,te}function p(m,u,g){if(!m.length)return e.emptyArray;var P=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(u.getCompilerOptions()),u.getCurrentDirectory()));return m.map(function(ue){var X=a(ue,u,te);X.reportsUnnecessary=ue.reportsUnnecessary,X.reportsDeprecated=ue.reportDeprecated,X.source=ue.source,X.skippedOn=ue.skippedOn;var j=ue.relatedInformation;return X.relatedInformation=j?j.length?j.map(function(Se){return a(Se,u,te)}):[]:void 0,X});function te(ue){return e.toPath(ue,P,g)}}function a(m,u,g){var P=m.file;return Rn(Rn({},m),{file:P?u.getSourceFileByPath(g(P)):void 0})}function d(m){e.BuilderState.releaseCache(m),m.program=void 0}function k(m){var u,g=e.BuilderState.clone(m);return g.semanticDiagnosticsPerFile=m.semanticDiagnosticsPerFile&&new e.Map(m.semanticDiagnosticsPerFile),g.changedFilesSet=new e.Set(m.changedFilesSet),g.affectedFiles=m.affectedFiles,g.affectedFilesIndex=m.affectedFilesIndex,g.currentChangedFilePath=m.currentChangedFilePath,g.currentAffectedFilesSignatures=m.currentAffectedFilesSignatures&&new e.Map(m.currentAffectedFilesSignatures),g.currentAffectedFilesExportedModulesMap=(u=m.currentAffectedFilesExportedModulesMap)===null||u===void 0?void 0:u.clone(),g.seenAffectedFiles=m.seenAffectedFiles&&new e.Set(m.seenAffectedFiles),g.cleanedDiagnosticsOfLibFiles=m.cleanedDiagnosticsOfLibFiles,g.semanticDiagnosticsFromOldState=m.semanticDiagnosticsFromOldState&&new e.Set(m.semanticDiagnosticsFromOldState),g.program=m.program,g.compilerOptions=m.compilerOptions,g.affectedFilesPendingEmit=m.affectedFilesPendingEmit&&m.affectedFilesPendingEmit.slice(),g.affectedFilesPendingEmitKind=m.affectedFilesPendingEmitKind&&new e.Map(m.affectedFilesPendingEmitKind),g.affectedFilesPendingEmitIndex=m.affectedFilesPendingEmitIndex,g.seenEmittedFiles=m.seenEmittedFiles&&new e.Map(m.seenEmittedFiles),g.programEmitComplete=m.programEmitComplete,g}function J(m,u){e.Debug.assert(!u||!m.affectedFiles||m.affectedFiles[m.affectedFilesIndex-1]!==u||!m.semanticDiagnosticsPerFile.has(u.resolvedPath))}function h(m,u,g){for(;;){var P=m.affectedFiles;if(P){for(var te=m.seenAffectedFiles,ue=m.affectedFilesIndex;ue<P.length;){var X=P[ue];if(!te.has(X.resolvedPath))return m.affectedFilesIndex=ue,A(m,X,u,g),X;ue++}m.changedFilesSet.delete(m.currentChangedFilePath),m.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(m,m.currentAffectedFilesSignatures),m.currentAffectedFilesSignatures.clear(),e.BuilderState.updateExportedFilesMapFromCache(m,m.currentAffectedFilesExportedModulesMap),m.affectedFiles=void 0}var j=m.changedFilesSet.keys().next();if(j.done)return;var Se=e.Debug.checkDefined(m.program),Ce=Se.getCompilerOptions();if(e.outFile(Ce))return e.Debug.assert(!m.semanticDiagnosticsPerFile),Se;m.currentAffectedFilesSignatures||(m.currentAffectedFilesSignatures=new e.Map),m.exportedModulesMap&&(m.currentAffectedFilesExportedModulesMap||(m.currentAffectedFilesExportedModulesMap=e.BuilderState.createManyToManyPathMap())),m.affectedFiles=e.BuilderState.getFilesAffectedBy(m,Se,j.value,u,g,m.currentAffectedFilesSignatures,m.currentAffectedFilesExportedModulesMap),m.currentChangedFilePath=j.value,m.affectedFilesIndex=0,m.seenAffectedFiles||(m.seenAffectedFiles=new e.Set)}}function v(m){var u=m.affectedFilesPendingEmit;if(u){for(var g=m.seenEmittedFiles||(m.seenEmittedFiles=new e.Map),P=m.affectedFilesPendingEmitIndex;P<u.length;P++){var te=e.Debug.checkDefined(m.program).getSourceFileByPath(u[P]);if(te){var ue=g.get(te.resolvedPath),X=e.Debug.checkDefined(e.Debug.checkDefined(m.affectedFilesPendingEmitKind).get(te.resolvedPath));if(ue===void 0||ue<X)return m.affectedFilesPendingEmitIndex=P,{affectedFile:te,emitKind:X}}}m.affectedFilesPendingEmit=void 0,m.affectedFilesPendingEmitKind=void 0,m.affectedFilesPendingEmitIndex=void 0}}function A(m,u,g,P){var te;if(ie(m,u.resolvedPath),m.allFilesExcludingDefaultLibraryFile===m.affectedFiles){if(!m.cleanedDiagnosticsOfLibFiles){m.cleanedDiagnosticsOfLibFiles=!0;var ue=e.Debug.checkDefined(m.program),X=ue.getCompilerOptions();e.forEach(ue.getSourceFiles(),function(j){return ue.isSourceFileDefaultLibrary(j)&&!e.skipTypeChecking(j,X,ue)&&ie(m,j.resolvedPath)})}e.BuilderState.updateShapeSignature(m,e.Debug.checkDefined(m.program),u,e.Debug.checkDefined(m.currentAffectedFilesSignatures),g,P,m.currentAffectedFilesExportedModulesMap);return}else e.Debug.assert(m.hasCalledUpdateShapeSignature.has(u.resolvedPath)||((te=m.currentAffectedFilesSignatures)===null||te===void 0?void 0:te.has(u.resolvedPath)),"Signature not updated for affected file: ".concat(u.fileName));m.compilerOptions.assumeChangesOnlyAffectDirectDependencies||M(m,u,function(j,Se){return z(j,Se,g,P)})}function z(m,u,g,P){if(ie(m,u),!m.changedFilesSet.has(u)){var te=e.Debug.checkDefined(m.program),ue=te.getSourceFileByPath(u);ue&&(e.BuilderState.updateShapeSignature(m,te,ue,e.Debug.checkDefined(m.currentAffectedFilesSignatures),g,P,m.currentAffectedFilesExportedModulesMap,!0),e.getEmitDeclarations(m.compilerOptions)&&N(m,u,0))}}function ie(m,u){return m.semanticDiagnosticsFromOldState?(m.semanticDiagnosticsFromOldState.delete(u),m.semanticDiagnosticsPerFile.delete(u),!m.semanticDiagnosticsFromOldState.size):!0}function b(m,u){var g=e.Debug.checkDefined(m.currentAffectedFilesSignatures).get(u),P=e.Debug.checkDefined(m.fileInfos.get(u)).signature;return g!==P}function M(m,u,g){var P,te;if(!(!m.exportedModulesMap||!m.changedFilesSet.has(u.resolvedPath))&&b(m,u.resolvedPath)){if(m.compilerOptions.isolatedModules){var ue=new e.Map;ue.set(u.resolvedPath,!0);for(var X=e.BuilderState.getReferencedByPaths(m,u.resolvedPath);X.length>0;){var j=X.pop();if(!ue.has(j)&&(ue.set(j,!0),g(m,j),b(m,j))){var Se=e.Debug.checkDefined(m.program).getSourceFileByPath(j);X.push.apply(X,e.BuilderState.getReferencedByPaths(m,Se.resolvedPath))}}}e.Debug.assert(!!m.currentAffectedFilesExportedModulesMap);var Ce=new e.Set;(P=m.currentAffectedFilesExportedModulesMap.getKeys(u.resolvedPath))===null||P===void 0||P.forEach(function(R){return S(m,R,Ce,g)}),(te=m.exportedModulesMap.getKeys(u.resolvedPath))===null||te===void 0||te.forEach(function(R){var Y;return!m.currentAffectedFilesExportedModulesMap.hasKey(R)&&!(!((Y=m.currentAffectedFilesExportedModulesMap.deletedKeys())===null||Y===void 0)&&Y.has(R))&&S(m,R,Ce,g)})}}function S(m,u,g,P){var te;(te=m.referencedMap.getKeys(u))===null||te===void 0||te.forEach(function(ue){return B(m,ue,g,P)})}function B(m,u,g,P){var te,ue,X;e.tryAddToSet(g,u)&&(P(m,u),e.Debug.assert(!!m.currentAffectedFilesExportedModulesMap),(te=m.currentAffectedFilesExportedModulesMap.getKeys(u))===null||te===void 0||te.forEach(function(j){return B(m,j,g,P)}),(ue=m.exportedModulesMap.getKeys(u))===null||ue===void 0||ue.forEach(function(j){var Se;return!m.currentAffectedFilesExportedModulesMap.hasKey(j)&&!(!((Se=m.currentAffectedFilesExportedModulesMap.deletedKeys())===null||Se===void 0)&&Se.has(j))&&B(m,j,g,P)}),(X=m.referencedMap.getKeys(u))===null||X===void 0||X.forEach(function(j){return!g.has(j)&&P(m,j)}))}function H(m,u,g,P,te){te?m.buildInfoEmitPending=!1:u===m.program?(m.changedFilesSet.clear(),m.programEmitComplete=!0):(m.seenAffectedFiles.add(u.resolvedPath),g!==void 0&&(m.seenEmittedFiles||(m.seenEmittedFiles=new e.Map)).set(u.resolvedPath,g),P?(m.affectedFilesPendingEmitIndex++,m.buildInfoEmitPending=!0):m.affectedFilesIndex++)}function I(m,u,g){return H(m,g),{result:u,affected:g}}function w(m,u,g,P,te,ue){return H(m,g,P,te,ue),{result:u,affected:g}}function x(m,u,g){return e.concatenate(O(m,u,g),e.Debug.checkDefined(m.program).getProgramDiagnostics(u))}function O(m,u,g){var P=u.resolvedPath;if(m.semanticDiagnosticsPerFile){var te=m.semanticDiagnosticsPerFile.get(P);if(te)return e.filterSemanticDiagnostics(te,m.compilerOptions)}var ue=e.Debug.checkDefined(m.program).getBindAndCheckDiagnostics(u,g);return m.semanticDiagnosticsPerFile&&m.semanticDiagnosticsPerFile.set(P,ue),e.filterSemanticDiagnostics(ue,m.compilerOptions)}function q(m,u){if(e.outFile(m.compilerOptions))return;var g=e.Debug.checkDefined(m.program).getCurrentDirectory(),P=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(m.compilerOptions),g)),te=[],ue=new e.Map,X,j,Se=e.arrayFrom(m.fileInfos.entries(),function(qe){var Xe=qe[0],De=qe[1],Ae=_e(Xe);e.Debug.assert(te[Ae-1]===Ve(Xe));var Ye=m.currentAffectedFilesSignatures&&m.currentAffectedFilesSignatures.get(Xe),Dr=Ye??De.signature;return De.version===Dr?De.affectsGlobalScope?{version:De.version,signature:void 0,affectsGlobalScope:!0,impliedFormat:De.impliedFormat}:De.version:Dr!==void 0?Ye===void 0?De:{version:De.version,signature:Ye,affectsGlobalScope:De.affectsGlobalScope,impliedFormat:De.impliedFormat}:{version:De.version,signature:!1,affectsGlobalScope:De.affectsGlobalScope,impliedFormat:De.impliedFormat}}),Ce;m.referencedMap&&(Ce=e.arrayFrom(m.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map(function(qe){return[_e(qe),Le(m.referencedMap.getValues(qe))]}));var R;m.exportedModulesMap&&(R=e.mapDefined(e.arrayFrom(m.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),function(qe){var Xe;if(m.currentAffectedFilesExportedModulesMap){if(!((Xe=m.currentAffectedFilesExportedModulesMap.deletedKeys())===null||Xe===void 0)&&Xe.has(qe))return;var De=m.currentAffectedFilesExportedModulesMap.getValues(qe);if(De)return[_e(qe),Le(De)]}return[_e(qe),Le(m.exportedModulesMap.getValues(qe))]}));var Y;if(m.semanticDiagnosticsPerFile)for(var U=0,K=e.arrayFrom(m.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);U<K.length;U++){var Te=K[U],ge=m.semanticDiagnosticsPerFile.get(Te);(Y||(Y=[])).push(ge.length?[_e(Te),m.hasReusableDiagnostic?ge:F(ge,Ve)]:_e(Te))}var ke;if(m.affectedFilesPendingEmit)for(var Pe=new e.Set,Ie=0,Ge=m.affectedFilesPendingEmit.slice(m.affectedFilesPendingEmitIndex).sort(e.compareStringsCaseSensitive);Ie<Ge.length;Ie++){var he=Ge[Ie];e.tryAddToSet(Pe,he)&&(ke||(ke=[])).push([_e(he),m.affectedFilesPendingEmitKind.get(he)])}return{fileNames:te,fileInfos:Se,options:Z(m.compilerOptions,ve),fileIdsList:X,referencedMap:Ce,exportedModulesMap:R,semanticDiagnosticsPerFile:Y,affectedFilesPendingEmit:ke};function ve(qe){return Ve(e.getNormalizedAbsolutePath(qe,g))}function Ve(qe){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(P,qe,u))}function _e(qe){var Xe=ue.get(qe);return Xe===void 0&&(te.push(Ve(qe)),ue.set(qe,Xe=te.length)),Xe}function Le(qe){var Xe=e.arrayFrom(qe.keys(),_e).sort(e.compareValues),De=Xe.join(),Ae=j==null?void 0:j.get(De);return Ae===void 0&&((X||(X=[])).push(Xe),(j||(j=new e.Map)).set(De,Ae=X.length)),Ae}}function Z(m,u){for(var g,P=e.getOptionsNameMap().optionsNameMap,te=0,ue=e.getOwnKeys(m).sort(e.compareStringsCaseSensitive);te<ue.length;te++){var X=ue[te],j=X.toLowerCase(),Se=P.get(j);(Se!=null&&Se.affectsEmit||Se!=null&&Se.affectsSemanticDiagnostics||j==="strict"||j==="skiplibcheck"||j==="skipdefaultlibcheck")&&((g||(g={}))[X]=ne(Se,m[X],u))}return g}function ne(m,u,g){if(m){if(m.type==="list"){var P=u;if(m.element.isFilePath&&P.length)return P.map(g)}else if(m.isFilePath)return g(u)}return u}function F(m,u){return e.Debug.assert(!!m.length),m.map(function(g){var P=Q(g,u);P.reportsUnnecessary=g.reportsUnnecessary,P.reportDeprecated=g.reportsDeprecated,P.source=g.source,P.skippedOn=g.skippedOn;var te=g.relatedInformation;return P.relatedInformation=te?te.length?te.map(function(ue){return Q(ue,u)}):[]:void 0,P})}function Q(m,u){var g=m.file;return Rn(Rn({},m),{file:g?u(g.resolvedPath):void 0})}var V;(function(m){m[m.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",m[m.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"})(V=e.BuilderProgramKind||(e.BuilderProgramKind={}));function re(m,u,g,P,te,ue){var X,j,Se;return m===void 0?(e.Debug.assert(u===void 0),X=g,Se=P,e.Debug.assert(!!Se),j=Se.getProgram()):e.isArray(m)?(Se=P,j=e.createProgram({rootNames:m,options:u,host:g,oldProgram:Se&&Se.getProgramOrUndefined(),configFileParsingDiagnostics:te,projectReferences:ue}),X=g):(j=m,X=u,Se=g,te=P),{host:X,newProgram:j,oldProgram:Se,configFileParsingDiagnostics:te||e.emptyArray}}e.getBuilderCreationParameters=re;function T(m,u){var g=u.newProgram,P=u.host,te=u.oldProgram,ue=u.configFileParsingDiagnostics,X=te&&te.getState();if(X&&g===X.program&&ue===g.getConfigFileParsingDiagnostics())return g=void 0,X=void 0,te;var j=e.createGetCanonicalFileName(P.useCaseSensitiveFileNames()),Se=e.maybeBind(P,P.createHash),Ce=f(g,j,X,P.disableUseFileVersionAsSignature),R;g.getProgramBuildInfo=function(){return q(Ce,j)},g=void 0,te=void 0,X=void 0;var Y=function(){return Ce},U=C(Y,ue);return U.getState=Y,U.backupState=function(){e.Debug.assert(R===void 0),R=k(Ce)},U.restoreState=function(){Ce=e.Debug.checkDefined(R),R=void 0},U.getAllDependencies=function(Ie){return e.BuilderState.getAllDependencies(Ce,e.Debug.checkDefined(Ce.program),Ie)},U.getSemanticDiagnostics=Pe,U.emit=ge,U.releaseProgram=function(){d(Ce),R=void 0},m===V.SemanticDiagnosticsBuilderProgram?U.getSemanticDiagnosticsOfNextAffectedFile=ke:m===V.EmitAndSemanticDiagnosticsBuilderProgram?(U.getSemanticDiagnosticsOfNextAffectedFile=ke,U.emitNextAffectedFile=Te,U.emitBuildInfo=K):e.notImplemented(),U;function K(Ie,Ge){if(Ce.buildInfoEmitPending){var he=e.Debug.checkDefined(Ce.program).emitBuildInfo(Ie||e.maybeBind(P,P.writeFile),Ge);return Ce.buildInfoEmitPending=!1,he}return e.emitSkippedWithNoDiagnostics}function Te(Ie,Ge,he,ve){var Ve=h(Ce,Ge,Se),_e=1,Le=!1;if(!Ve)if(e.outFile(Ce.compilerOptions)){var De=e.Debug.checkDefined(Ce.program);if(Ce.programEmitComplete)return;Ve=De}else{var qe=v(Ce);if(!qe){if(!Ce.buildInfoEmitPending)return;var Xe=e.Debug.checkDefined(Ce.program);return w(Ce,Xe.emitBuildInfo(Ie||e.maybeBind(P,P.writeFile),Ge),Xe,1,!1,!0)}Ve=qe.affectedFile,_e=qe.emitKind,Le=!0}return w(Ce,e.Debug.checkDefined(Ce.program).emit(Ve===Ce.program?void 0:Ve,Ie||e.maybeBind(P,P.writeFile),Ge,he||_e===0,ve),Ve,_e,Le)}function ge(Ie,Ge,he,ve,Ve){var _e=!1,Le,qe,Xe;m!==V.EmitAndSemanticDiagnosticsBuilderProgram&&!Ie&&!e.outFile(Ce.compilerOptions)&&!Ce.compilerOptions.noEmit&&Ce.compilerOptions.noEmitOnError&&(_e=!0,Le=Ce.affectedFilesPendingEmit&&Ce.affectedFilesPendingEmit.slice(),qe=Ce.affectedFilesPendingEmitKind&&new e.Map(Ce.affectedFilesPendingEmitKind),Xe=Ce.affectedFilesPendingEmitIndex),m===V.EmitAndSemanticDiagnosticsBuilderProgram&&J(Ce,Ie);var De=e.handleNoEmitOptions(U,Ie,Ge,he);if(De)return De;if(_e&&(Ce.affectedFilesPendingEmit=Le,Ce.affectedFilesPendingEmitKind=qe,Ce.affectedFilesPendingEmitIndex=Xe),!Ie&&m===V.EmitAndSemanticDiagnosticsBuilderProgram){for(var Ae=[],Ye=!1,Dr=void 0,br=[],lr=void 0;lr=Te(Ge,he,ve,Ve);)Ye=Ye||lr.result.emitSkipped,Dr=e.addRange(Dr,lr.result.diagnostics),br=e.addRange(br,lr.result.emittedFiles),Ae=e.addRange(Ae,lr.result.sourceMaps);return{emitSkipped:Ye,diagnostics:Dr||e.emptyArray,emittedFiles:br,sourceMaps:Ae}}return e.Debug.checkDefined(Ce.program).emit(Ie,Ge||e.maybeBind(P,P.writeFile),he,ve,Ve)}function ke(Ie,Ge){for(;;){var he=h(Ce,Ie,Se);if(he){if(he===Ce.program)return I(Ce,Ce.program.getSemanticDiagnostics(void 0,Ie),he)}else return;if((m===V.EmitAndSemanticDiagnosticsBuilderProgram||Ce.compilerOptions.noEmit||Ce.compilerOptions.noEmitOnError)&&N(Ce,he.resolvedPath,1),Ge&&Ge(he)){H(Ce,he);continue}return I(Ce,x(Ce,he,Ie),he)}}function Pe(Ie,Ge){J(Ce,Ie);var he=e.Debug.checkDefined(Ce.program).getCompilerOptions();if(e.outFile(he))return e.Debug.assert(!Ce.semanticDiagnosticsPerFile),e.Debug.checkDefined(Ce.program).getSemanticDiagnostics(Ie,Ge);if(Ie)return x(Ce,Ie,Ge);for(;ke(Ge););for(var ve,Ve=0,_e=e.Debug.checkDefined(Ce.program).getSourceFiles();Ve<_e.length;Ve++){var Le=_e[Ve];ve=e.addRange(ve,x(Ce,Le,Ge))}return ve||e.emptyArray}}e.createBuilderProgram=T;function N(m,u,g){m.affectedFilesPendingEmit||(m.affectedFilesPendingEmit=[]),m.affectedFilesPendingEmitKind||(m.affectedFilesPendingEmitKind=new e.Map);var P=m.affectedFilesPendingEmitKind.get(u);m.affectedFilesPendingEmit.push(u),m.affectedFilesPendingEmitKind.set(u,P||g),m.affectedFilesPendingEmitIndex===void 0&&(m.affectedFilesPendingEmitIndex=0)}function y(m){return e.isString(m)?{version:m,signature:m,affectsGlobalScope:void 0,impliedFormat:void 0}:e.isString(m.signature)?m:{version:m.version,signature:m.signature===!1?void 0:m.version,affectsGlobalScope:m.affectsGlobalScope,impliedFormat:m.impliedFormat}}e.toBuilderStateFileInfo=y;function D(m,u,g){var P,te=e.getDirectoryPath(e.getNormalizedAbsolutePath(u,g.getCurrentDirectory())),ue=e.createGetCanonicalFileName(g.useCaseSensitiveFileNames()),X=m.fileNames.map(R),j=(P=m.fileIdsList)===null||P===void 0?void 0:P.map(function(ge){return new e.Set(ge.map(U))}),Se=new e.Map;m.fileInfos.forEach(function(ge,ke){return Se.set(U(ke+1),y(ge))});var Ce={fileInfos:Se,compilerOptions:m.options?e.convertToOptionsWithAbsolutePaths(m.options,Y):{},referencedMap:Te(m.referencedMap),exportedModulesMap:Te(m.exportedModulesMap),semanticDiagnosticsPerFile:m.semanticDiagnosticsPerFile&&e.arrayToMap(m.semanticDiagnosticsPerFile,function(ge){return U(e.isNumber(ge)?ge:ge[0])},function(ge){return e.isNumber(ge)?e.emptyArray:ge[1]}),hasReusableDiagnostic:!0,affectedFilesPendingEmit:e.map(m.affectedFilesPendingEmit,function(ge){return U(ge[0])}),affectedFilesPendingEmitKind:m.affectedFilesPendingEmit&&e.arrayToMap(m.affectedFilesPendingEmit,function(ge){return U(ge[0])},function(ge){return ge[1]}),affectedFilesPendingEmitIndex:m.affectedFilesPendingEmit&&0};return{getState:function(){return Ce},backupState:e.noop,restoreState:e.noop,getProgram:e.notImplemented,getProgramOrUndefined:e.returnUndefined,releaseProgram:e.noop,getCompilerOptions:function(){return Ce.compilerOptions},getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getConfigFileParsingDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getDeclarationDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented,emitNextAffectedFile:e.notImplemented,getSemanticDiagnosticsOfNextAffectedFile:e.notImplemented,emitBuildInfo:e.notImplemented,close:e.noop};function R(ge){return e.toPath(ge,te,ue)}function Y(ge){return e.getNormalizedAbsolutePath(ge,te)}function U(ge){return X[ge-1]}function K(ge){return j[ge-1]}function Te(ge){if(ge){var ke=e.BuilderState.createManyToManyPathMap();return ge.forEach(function(Pe){var Ie=Pe[0],Ge=Pe[1];return ke.set(U(Ie),K(Ge))}),ke}}}e.createBuildProgramUsingProgramBuildInfo=D;function C(m,u){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:g,getProgramOrUndefined:function(){return m().program},releaseProgram:function(){return m().program=void 0},getCompilerOptions:function(){return m().compilerOptions},getSourceFile:function(P){return g().getSourceFile(P)},getSourceFiles:function(){return g().getSourceFiles()},getOptionsDiagnostics:function(P){return g().getOptionsDiagnostics(P)},getGlobalDiagnostics:function(P){return g().getGlobalDiagnostics(P)},getConfigFileParsingDiagnostics:function(){return u},getSyntacticDiagnostics:function(P,te){return g().getSyntacticDiagnostics(P,te)},getDeclarationDiagnostics:function(P,te){return g().getDeclarationDiagnostics(P,te)},getSemanticDiagnostics:function(P,te){return g().getSemanticDiagnostics(P,te)},emit:function(P,te,ue,X,j){return g().emit(P,te,ue,X,j)},emitBuildInfo:function(P,te){return g().emitBuildInfo(P,te)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return g().getCurrentDirectory()},close:e.noop};function g(){return e.Debug.checkDefined(m().program)}}e.createRedirectedBuilderProgram=C}(jr||(jr={})),function(e){function n(a,d,k,J,h,v){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(a,d,k,J,h,v))}e.createSemanticDiagnosticsBuilderProgram=n;function f(a,d,k,J,h,v){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(a,d,k,J,h,v))}e.createEmitAndSemanticDiagnosticsBuilderProgram=f;function p(a,d,k,J,h,v){var A=e.getBuilderCreationParameters(a,d,k,J,h,v),z=A.newProgram,ie=A.configFileParsingDiagnostics;return e.createRedirectedBuilderProgram(function(){return{program:z,compilerOptions:z.getCompilerOptions()}},ie)}e.createAbstractBuilder=p}(jr||(jr={})),function(e){function n(d){return e.endsWith(d,"/node_modules/.staging")?e.removeSuffix(d,"/.staging"):e.some(e.ignoredPaths,function(k){return e.stringContains(d,k)})?void 0:d}e.removeIgnoredPath=n;function f(d){var k=e.getRootLength(d);if(d.length===k)return!1;var J=d.indexOf(e.directorySeparator,k);if(J===-1)return!1;var h=d.substring(k,J+1),v=k>1||d.charCodeAt(0)!==47;if(v&&d.search(/[a-zA-Z]:/)!==0&&h.search(/[a-zA-z]\$\//)===0){if(J=d.indexOf(e.directorySeparator,J+1),J===-1)return!1;h=d.substring(k+h.length,J+1)}if(v&&h.search(/users\//i)!==0)return!0;for(var A=J+1,z=2;z>0;z--)if(A=d.indexOf(e.directorySeparator,A)+1,A===0)return!1;return!0}e.canWatchDirectory=f;function p(d,k,J){var h,v,A,z=e.createMultiMap(),ie=[],b=e.createMultiMap(),M=!1,S,B,H,I=e.memoize(function(){return d.getCurrentDirectory()}),w=d.getCachedDirectoryStructureHost(),x=new e.Map,O=e.createCacheWithRedirects(),q=e.createCacheWithRedirects(),Z=e.createModuleResolutionCache(I(),d.getCanonicalFileName,void 0,O,q),ne=new e.Map,F=e.createCacheWithRedirects(),Q=e.createTypeReferenceDirectiveResolutionCache(I(),d.getCanonicalFileName,void 0,Z.getPackageJsonInfoCache(),F),V=[".ts",".tsx",".js",".jsx",".json"],re=new e.Map,T=new e.Map,N=k&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(k,I())),y=N&&d.toPath(N),D=y!==void 0?y.split(e.directorySeparator).length:0,C=new e.Map;return{getModuleResolutionCache:function(){return Z},startRecordingFilesWithChangedResolutions:te,finishRecordingFilesWithChangedResolutions:ue,startCachingPerDirectoryResolution:Se,finishCachingPerDirectoryResolution:Ce,resolveModuleNames:Te,getResolvedModuleWithFailedLookupLocationsFromCache:ge,resolveTypeReferenceDirectives:K,removeResolutionsFromProjectReferenceRedirects:Ae,removeResolutionsOfFile:Ye,hasChangedAutomaticTypeDirectiveNames:function(){return M},invalidateResolutionOfFile:br,invalidateResolutionsOfFailedLookupLocations:kr,setFilesWithInvalidatedNonRelativeUnresolvedImports:lr,createHasInvalidatedResolution:j,isFileWithInvalidatedNonRelativeUnresolvedImports:X,updateTypeRootsWatch:gr,closeTypeRootsWatch:Me,clear:P};function m(Fe){return Fe.resolvedModule}function u(Fe){return Fe.resolvedTypeReferenceDirective}function g(Fe,$e){return Fe===void 0||$e.length<=Fe.length?!1:e.startsWith($e,Fe)&&$e[Fe.length]===e.directorySeparator}function P(){e.clearMap(T,e.closeFileWatcherOf),re.clear(),z.clear(),Me(),x.clear(),ne.clear(),b.clear(),ie.length=0,S=void 0,B=void 0,H=void 0,Se(),M=!1}function te(){h=[]}function ue(){var Fe=h;return h=void 0,Fe}function X(Fe){if(!A)return!1;var $e=A.get(Fe);return!!$e&&!!$e.length}function j(Fe){if(kr(),Fe)return v=void 0,e.returnTrue;var $e=v;return v=void 0,function(Sr){return!!$e&&$e.has(Sr)||X(Sr)}}function Se(){Z.clear(),Q.clear(),z.forEach(Ve),z.clear()}function Ce(){A=void 0,Se(),T.forEach(function(Fe,$e){Fe.refCount===0&&(T.delete($e),Fe.watcher.close())}),M=!1}function R(Fe,$e,Sr,Pr,He){var pr,Jr=e.resolveModuleName(Fe,$e,Sr,Pr,Z,He);if(!d.getGlobalCache)return Jr;var ze=d.getGlobalCache();if(ze!==void 0&&!e.isExternalModuleNameRelative(Fe)&&!(Jr.resolvedModule&&e.extensionIsTS(Jr.resolvedModule.extension))){var Lr=e.loadModuleFromGlobalCache(e.Debug.checkDefined(d.globalCacheResolutionModuleName)(Fe),d.projectName,Sr,Pr,ze,Z),Yr=Lr.resolvedModule,lt=Lr.failedLookupLocations;if(Yr)return Jr.resolvedModule=Yr,(pr=Jr.failedLookupLocations).push.apply(pr,lt),Jr}return Jr}function Y(Fe,$e,Sr,Pr,He){return e.resolveTypeReferenceDirective(Fe,$e,Sr,Pr,He,Q)}function U(Fe){var $e,Sr,Pr,He=Fe.names,pr=Fe.containingFile,Jr=Fe.redirectedReference,ze=Fe.cache,Lr=Fe.perDirectoryCacheWithRedirects,Yr=Fe.loader,lt=Fe.getResolutionWithResolvedFileName,tt=Fe.shouldRetryResolution,Rt=Fe.reusedNames,cn=Fe.logChanges,bn=Fe.containingSourceFile,In=d.toPath(pr),zn=ze.get(In)||ze.set(In,e.createModeAwareCache()).get(In),ir=e.getDirectoryPath(In),Or=Lr.getOrCreateMapOfCacheRedirects(Jr),sr=Or.get(ir);sr||(sr=e.createModeAwareCache(),Or.set(ir,sr));for(var ye=[],or=d.getCompilationSettings(),fe=cn&&X(In),je=d.getCurrentProgram(),Ee=je&&je.getResolvedProjectReferenceToRedirect(pr),We=Ee?!Jr||Jr.sourceFile.path!==Ee.sourceFile.path:!!Jr,$=e.createModeAwareCache(),Ne=0,me=0,Ze=He;me<Ze.length;me++){var Cr=Ze[me],fr=bn?e.getModeForResolutionAtIndex(bn,Ne):void 0;Ne++;var dr=zn.get(Cr,fr);if(!$.has(Cr,fr)&&We||!dr||dr.isInvalidated||fe&&!e.isExternalModuleNameRelative(Cr)&&tt(dr)){var et=dr,yt=sr.get(Cr,fr);if(yt){dr=yt;var Vr=(($e=d.getCompilerHost)===null||$e===void 0?void 0:$e.call(d))||d;if(e.isTraceEnabled(or,Vr)){var tr=lt(dr);e.trace(Vr,Yr===R?tr!=null&&tr.resolvedFileName?tr.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:tr!=null&&tr.resolvedFileName?tr.packagetId?e.Diagnostics.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:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved,Cr,pr,e.getDirectoryPath(pr),tr==null?void 0:tr.resolvedFileName,(tr==null?void 0:tr.packagetId)&&e.packageIdToString(tr.packagetId))}}else dr=Yr(Cr,pr,or,((Sr=d.getCompilerHost)===null||Sr===void 0?void 0:Sr.call(d))||d,Jr,bn),sr.set(Cr,fr,dr),d.onDiscoveredSymlink&&a(dr)&&d.onDiscoveredSymlink();zn.set(Cr,fr,dr),he(Cr,dr,In,lt),et&&Le(et,In,lt),cn&&h&&!xr(et,dr)&&(h.push(In),cn=!1)}else{var Vr=((Pr=d.getCompilerHost)===null||Pr===void 0?void 0:Pr.call(d))||d;if(e.isTraceEnabled(or,Vr)&&!$.has(Cr,fr)){var tr=lt(dr);e.trace(Vr,Yr===R?tr!=null&&tr.resolvedFileName?tr.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:tr!=null&&tr.resolvedFileName?tr.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Cr,pr,tr==null?void 0:tr.resolvedFileName,(tr==null?void 0:tr.packagetId)&&e.packageIdToString(tr.packagetId))}}e.Debug.assert(dr!==void 0&&!dr.isInvalidated),$.set(Cr,fr,!0),ye.push(lt(dr))}return zn.forEach(function(Nr,zr,gt){!$.has(zr,gt)&&!e.contains(Rt,zr)&&(Le(Nr,In,lt),zn.delete(zr,gt))}),ye;function xr(Nr,zr){if(Nr===zr)return!0;if(!Nr||!zr)return!1;var gt=lt(Nr),vt=lt(zr);return gt===vt?!0:!gt||!vt?!1:gt.resolvedFileName===vt.resolvedFileName}}function K(Fe,$e,Sr){return U({names:Fe,containingFile:$e,redirectedReference:Sr,cache:ne,perDirectoryCacheWithRedirects:F,loader:Y,getResolutionWithResolvedFileName:u,shouldRetryResolution:function(Pr){return Pr.resolvedTypeReferenceDirective===void 0}})}function Te(Fe,$e,Sr,Pr,He){return U({names:Fe,containingFile:$e,redirectedReference:Pr,cache:x,perDirectoryCacheWithRedirects:O,loader:R,getResolutionWithResolvedFileName:m,shouldRetryResolution:function(pr){return!pr.resolvedModule||!e.resolutionExtensionIsTSOrJson(pr.resolvedModule.extension)},reusedNames:Sr,logChanges:J,containingSourceFile:He})}function ge(Fe,$e,Sr){var Pr=x.get(d.toPath($e));if(Pr)return Pr.get(Fe,Sr)}function ke(Fe){return e.endsWith(Fe,"/node_modules/@types")}function Pe(Fe,$e){if(g(y,$e)){Fe=e.isRootedDiskPath(Fe)?e.normalizePath(Fe):e.getNormalizedAbsolutePath(Fe,I());var Sr=$e.split(e.directorySeparator),Pr=Fe.split(e.directorySeparator);return e.Debug.assert(Pr.length===Sr.length,"FailedLookup: ".concat(Fe," failedLookupLocationPath: ").concat($e)),Sr.length>D+1?{dir:Pr.slice(0,D+1).join(e.directorySeparator),dirPath:Sr.slice(0,D+1).join(e.directorySeparator)}:{dir:N,dirPath:y,nonRecursive:!1}}return Ie(e.getDirectoryPath(e.getNormalizedAbsolutePath(Fe,I())),e.getDirectoryPath($e))}function Ie(Fe,$e){for(;e.pathContainsNodeModules($e);)Fe=e.getDirectoryPath(Fe),$e=e.getDirectoryPath($e);if(e.isNodeModulesDirectory($e))return f(e.getDirectoryPath($e))?{dir:Fe,dirPath:$e}:void 0;var Sr=!0,Pr,He;if(y!==void 0)for(;!g($e,y);){var pr=e.getDirectoryPath($e);if(pr===$e)break;Sr=!1,Pr=$e,He=Fe,$e=pr,Fe=e.getDirectoryPath(Fe)}return f($e)?{dir:He||Fe,dirPath:Pr||$e,nonRecursive:Sr}:void 0}function Ge(Fe){return e.fileExtensionIsOneOf(Fe,V)}function he(Fe,$e,Sr,Pr){if($e.refCount)$e.refCount++,e.Debug.assertDefined($e.files);else{$e.refCount=1,e.Debug.assert(e.length($e.files)===0),e.isExternalModuleNameRelative(Fe)?ve($e):z.add(Fe,$e);var He=Pr($e);He&&He.resolvedFileName&&b.add(d.toPath(He.resolvedFileName),$e)}($e.files||($e.files=[])).push(Sr)}function ve(Fe){e.Debug.assert(!!Fe.refCount);var $e=Fe.failedLookupLocations;if($e.length){ie.push(Fe);for(var Sr=!1,Pr=0,He=$e;Pr<He.length;Pr++){var pr=He[Pr],Jr=d.toPath(pr),ze=Pe(pr,Jr);if(ze){var Lr=ze.dir,Yr=ze.dirPath,lt=ze.nonRecursive;if(!Ge(Jr)){var tt=re.get(Jr)||0;re.set(Jr,tt+1)}Yr===y?(e.Debug.assert(!lt),Sr=!0):_e(Lr,Yr,lt)}}Sr&&_e(N,y,!0)}}function Ve(Fe,$e){var Sr=d.getCurrentProgram();(!Sr||!Sr.getTypeChecker().tryFindAmbientModuleWithoutAugmentations($e))&&Fe.forEach(ve)}function _e(Fe,$e,Sr){var Pr=T.get($e);Pr?(e.Debug.assert(!!Sr==!!Pr.nonRecursive),Pr.refCount++):T.set($e,{watcher:Xe(Fe,$e,Sr),refCount:1,nonRecursive:Sr})}function Le(Fe,$e,Sr){if(e.unorderedRemoveItem(e.Debug.assertDefined(Fe.files),$e),Fe.refCount--,!Fe.refCount){var Pr=Sr(Fe);if(Pr&&Pr.resolvedFileName&&b.remove(d.toPath(Pr.resolvedFileName),Fe),!!e.unorderedRemoveItem(ie,Fe)){for(var He=Fe.failedLookupLocations,pr=!1,Jr=0,ze=He;Jr<ze.length;Jr++){var Lr=ze[Jr],Yr=d.toPath(Lr),lt=Pe(Lr,Yr);if(lt){var tt=lt.dirPath,Rt=re.get(Yr);Rt&&(Rt===1?re.delete(Yr):(e.Debug.assert(Rt>1),re.set(Yr,Rt-1))),tt===y?pr=!0:qe(tt)}}pr&&qe(y)}}}function qe(Fe){var $e=T.get(Fe);$e.refCount--}function Xe(Fe,$e,Sr){return d.watchDirectoryOfFailedLookupLocation(Fe,function(Pr){var He=d.toPath(Pr);w&&w.addOrDeleteFileOrDirectory(Pr,He),Ar(He,$e===He)},Sr?0:1)}function De(Fe,$e,Sr){var Pr=Fe.get($e);Pr&&(Pr.forEach(function(He){return Le(He,$e,Sr)}),Fe.delete($e))}function Ae(Fe){if(e.fileExtensionIs(Fe,".json")){var $e=d.getCurrentProgram();if($e){var Sr=$e.getResolvedProjectReferenceByPath(Fe);Sr&&Sr.commandLine.fileNames.forEach(function(Pr){return Ye(d.toPath(Pr))})}}}function Ye(Fe){De(x,Fe,m),De(ne,Fe,u)}function Dr(Fe,$e){if(!Fe)return!1;for(var Sr=!1,Pr=0,He=Fe;Pr<He.length;Pr++){var pr=He[Pr];if(!(pr.isInvalidated||!$e(pr))){pr.isInvalidated=Sr=!0;for(var Jr=0,ze=e.Debug.assertDefined(pr.files);Jr<ze.length;Jr++){var Lr=ze[Jr];(v||(v=new e.Set)).add(Lr),M=M||e.endsWith(Lr,e.inferredTypesContainingFile)}}}return Sr}function br(Fe){Ye(Fe);var $e=M;Dr(b.get(Fe),e.returnTrue)&&M&&!$e&&d.onChangedAutomaticTypeDirectiveNames()}function lr(Fe){e.Debug.assert(A===Fe||A===void 0),A=Fe}function Ar(Fe,$e){if($e)(H||(H=[])).push(Fe);else{var Sr=n(Fe);if(!Sr||(Fe=Sr,d.fileIsOpen(Fe)))return!1;var Pr=e.getDirectoryPath(Fe);if(ke(Fe)||e.isNodeModulesDirectory(Fe)||ke(Pr)||e.isNodeModulesDirectory(Pr))(S||(S=[])).push(Fe),(B||(B=new e.Set)).add(Fe);else{if(!Ge(Fe)&&!re.has(Fe)||e.isEmittedFileOfProgram(d.getCurrentProgram(),Fe))return!1;(S||(S=[])).push(Fe);var He=e.parseNodeModuleFromPath(Fe);He&&(B||(B=new e.Set)).add(He)}}d.scheduleInvalidateResolutionsOfFailedLookupLocations()}function kr(){if(!S&&!B&&!H)return!1;var Fe=Dr(ie,Ke);return S=void 0,B=void 0,H=void 0,Fe}function Ke(Fe){return Fe.failedLookupLocations.some(function($e){var Sr=d.toPath($e);return e.contains(S,Sr)||e.firstDefinedIterator((B==null?void 0:B.keys())||e.emptyIterator,function(Pr){return e.startsWith(Sr,Pr)?!0:void 0})||(H==null?void 0:H.some(function(Pr){return g(Pr,Sr)}))})}function Me(){e.clearMap(C,e.closeFileWatcher)}function Hr(Fe,$e){if(g(y,$e))return y;var Sr=Ie(Fe,$e);return Sr&&T.has(Sr.dirPath)?Sr.dirPath:void 0}function ur(Fe,$e){return d.watchTypeRootsDirectory($e,function(Sr){var Pr=d.toPath(Sr);w&&w.addOrDeleteFileOrDirectory(Sr,Pr),M=!0,d.onChangedAutomaticTypeDirectiveNames();var He=Hr($e,Fe);He&&Ar(Pr,He===Pr)},1)}function gr(){var Fe=d.getCompilationSettings();if(Fe.types){Me();return}var $e=e.getEffectiveTypeRoots(Fe,{directoryExists:de,getCurrentDirectory:I});$e?e.mutateMap(C,e.arrayToMap($e,function(Sr){return d.toPath(Sr)}),{createNewValue:ur,onDeleteValue:e.closeFileWatcher}):Me()}function de(Fe){var $e=e.getDirectoryPath(e.getDirectoryPath(Fe)),Sr=d.toPath($e);return Sr===y||f(Sr)}}e.createResolutionCache=p;function a(d){var k,J;return!!(!((k=d.resolvedModule)===null||k===void 0)&&k.originalPath||!((J=d.resolvedTypeReferenceDirective)===null||J===void 0)&&J.originalPath)}}(jr||(jr={})),function(e){(function(n){var f;(function(X){X[X.Relative=0]="Relative",X[X.NonRelative=1]="NonRelative",X[X.Shortest=2]="Shortest",X[X.ExternalNonRelative=3]="ExternalNonRelative"})(f||(f={}));var p;(function(X){X[X.Minimal=0]="Minimal",X[X.Index=1]="Index",X[X.JsExtension=2]="JsExtension"})(p||(p={}));function a(X,j,Se,Ce){var R=j.importModuleSpecifierPreference,Y=j.importModuleSpecifierEnding;return{relativePreference:R==="relative"?0:R==="non-relative"?1:R==="project-relative"?3:2,ending:U()};function U(){switch(Y){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return x(Ce)||k(Se,Ce.path,X)?2:e.getEmitModuleResolutionKind(Se)!==e.ModuleResolutionKind.NodeJs?1:0}}}function d(X,j,Se,Ce){return{relativePreference:e.isExternalModuleNameRelative(j)?0:1,ending:e.hasJSFileExtension(j)||k(X,Se,Ce)?2:e.getEmitModuleResolutionKind(X)!==e.ModuleResolutionKind.NodeJs||e.endsWith(j,"index")?1:0}}function k(X,j,Se){return e.getEmitModuleResolutionKind(X)!==e.ModuleResolutionKind.Node12&&e.getEmitModuleResolutionKind(X)!==e.ModuleResolutionKind.NodeNext?!1:e.getImpliedNodeFormatForFile(j,void 0,J(Se),X)!==e.ModuleKind.CommonJS}function J(X){var j;return{fileExists:X.fileExists,readFile:e.Debug.checkDefined(X.readFile),directoryExists:X.directoryExists,getCurrentDirectory:X.getCurrentDirectory,realpath:X.realpath,useCaseSensitiveFileNames:(j=X.useCaseSensitiveFileNames)===null||j===void 0?void 0:j.call(X)}}function h(X,j,Se,Ce,R){var Y=z(X,j,Se,Ce,d(X,R,j,Ce),{});if(Y!==R)return Y}n.updateModuleSpecifier=h;function v(X,j,Se,Ce,R){return z(X,Se,Ce,R,a(R,{},X,j),{})}n.getModuleSpecifier=v;function A(X,j,Se,Ce,R){var Y=H(j,Ce),U=ne(j,Se,Ce,R);return e.firstDefined(U,function(K){return y(K,Y,Ce,X,!0)})}n.getNodeModulesPackageName=A;function z(X,j,Se,Ce,R,Y){var U=H(j,Ce),K=ne(j,Se,Ce,Y);return e.firstDefined(K,function(Te){return y(Te,U,Ce,X)})||I(Se,U,X,Ce,R)}function ie(X,j,Se,Ce){return b(X,j,Se,Ce)[0]}n.tryGetModuleSpecifiersFromCache=ie;function b(X,j,Se,Ce){var R,Y=e.getSourceFileOfModule(X);if(!Y)return e.emptyArray;var U=(R=Se.getModuleSpecifierCache)===null||R===void 0?void 0:R.call(Se),K=U==null?void 0:U.get(j.path,Y.path,Ce);return[K==null?void 0:K.moduleSpecifiers,Y,K==null?void 0:K.modulePaths,U]}function M(X,j,Se,Ce,R,Y){return S(X,j,Se,Ce,R,Y).moduleSpecifiers}n.getModuleSpecifiers=M;function S(X,j,Se,Ce,R,Y){var U=!1,K=Q(X,j);if(K)return{moduleSpecifiers:[K],computedWithoutCache:U};var Te=b(X,Ce,R,Y),ge=Te[0],ke=Te[1],Pe=Te[2],Ie=Te[3];if(ge)return{moduleSpecifiers:ge,computedWithoutCache:U};if(!ke)return{moduleSpecifiers:e.emptyArray,computedWithoutCache:U};U=!0,Pe||(Pe=F(Ce.path,ke.originalFileName,R));var Ge=B(Pe,Se,Ce,R,Y);return Ie==null||Ie.set(Ce.path,ke.path,Y,Pe,Ge),{moduleSpecifiers:Ge,computedWithoutCache:U}}n.getModuleSpecifiersWithCacheInfo=S;function B(X,j,Se,Ce,R){var Y=H(Se.path,Ce),U=a(Ce,R,j,Se),K=e.forEach(X,function(Le){return e.forEach(Ce.getFileIncludeReasons().get(e.toPath(Le.path,Ce.getCurrentDirectory(),Y.getCanonicalFileName)),function(qe){if(!(qe.kind!==e.FileIncludeKind.Import||qe.file!==Se.path)){var Xe=e.getModuleNameStringLiteralAt(Se,qe.index).text;return U.relativePreference!==1||!e.pathIsRelative(Xe)?Xe:void 0}})});if(K){var Te=[K];return Te}for(var ge=e.some(X,function(Le){return Le.isInNodeModules}),ke,Pe,Ie,Ge=0,he=X;Ge<he.length;Ge++){var ve=he[Ge],Ve=y(ve,Y,Ce,j);if(ke=e.append(ke,Ve),Ve&&ve.isRedirect)return ke;if(!Ve&&!ve.isRedirect){var _e=I(ve.path,Y,j,Ce,U);e.pathIsBareSpecifier(_e)?Pe=e.append(Pe,_e):(!ge||ve.isInNodeModules)&&(Ie=e.append(Ie,_e))}}return Pe!=null&&Pe.length?Pe:ke!=null&&ke.length?ke:e.Debug.checkDefined(Ie)}function H(X,j){var Se=e.createGetCanonicalFileName(j.useCaseSensitiveFileNames?j.useCaseSensitiveFileNames():!0),Ce=e.getDirectoryPath(X);return{getCanonicalFileName:Se,importingSourceFileName:X,sourceDirectory:Ce}}function I(X,j,Se,Ce,R){var Y=R.ending,U=R.relativePreference,K=Se.baseUrl,Te=Se.paths,ge=Se.rootDirs,ke=j.sourceDirectory,Pe=j.getCanonicalFileName,Ie=ge&&N(ge,X,ke,Pe,Y,Se)||u(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(ke,X,Pe)),Y,Se);if(!K&&!Te||U===0)return Ie;var Ge=e.getNormalizedAbsolutePath(e.getPathsBasePath(Se,Ce)||K,Ce.getCurrentDirectory()),he=te(X,Ge,Pe);if(!he)return Ie;var ve=u(he,Y,Se),Ve=Te&&V(e.removeFileExtension(he),ve,Te),_e=Ve===void 0&&K!==void 0?ve:Ve;if(!_e)return Ie;if(U===1)return _e;if(U===3){var Le=Se.configFilePath?e.toPath(e.getDirectoryPath(Se.configFilePath),Ce.getCurrentDirectory(),j.getCanonicalFileName):j.getCanonicalFileName(Ce.getCurrentDirectory()),qe=e.toPath(X,Le,Pe),Xe=e.startsWith(ke,Le),De=e.startsWith(qe,Le);if(Xe&&!De||!Xe&&De)return _e;var Ae=q(Ce,e.getDirectoryPath(qe)),Ye=q(Ce,ke);return Ye!==Ae?_e:Ie}return U!==2&&e.Debug.assertNever(U),ue(_e)||w(Ie)<w(_e)?Ie:_e}function w(X){for(var j=0,Se=e.startsWith(X,"./")?2:0;Se<X.length;Se++)X.charCodeAt(Se)===47&&j++;return j}n.countPathComponents=w;function x(X){var j=X.imports;return e.firstDefined(j,function(Se){var Ce=Se.text;return e.pathIsRelative(Ce)?e.hasJSFileExtension(Ce):void 0})||!1}function O(X,j){return e.compareBooleans(j.isRedirect,X.isRedirect)||e.compareNumberOfDirectorySeparators(X.path,j.path)}function q(X,j){return X.getNearestAncestorDirectoryWithPackageJson?X.getNearestAncestorDirectoryWithPackageJson(j):!!e.forEachAncestorDirectory(j,function(Se){return X.fileExists(e.combinePaths(Se,"package.json"))?!0:void 0})}function Z(X,j,Se,Ce,R){var Y,U=e.hostGetCanonicalFileName(Se),K=Se.getCurrentDirectory(),Te=Se.isSourceOfProjectReferenceRedirect(j)?Se.getProjectReferenceRedirect(j):void 0,ge=e.toPath(j,K,U),ke=Se.redirectTargetsMap.get(ge)||e.emptyArray,Pe=Gt(Gt(Gt([],Te?[Te]:e.emptyArray,!0),[j],!1),ke,!0),Ie=Pe.map(function(Le){return e.getNormalizedAbsolutePath(Le,K)}),Ge=!e.every(Ie,e.containsIgnoredPath);if(!Ce){var he=e.forEach(Ie,function(Le){return!(Ge&&e.containsIgnoredPath(Le))&&R(Le,Te===Le)});if(he)return he}var ve=(Y=Se.getSymlinkCache)===null||Y===void 0?void 0:Y.call(Se).getSymlinkedDirectoriesByRealpath(),Ve=e.getNormalizedAbsolutePath(j,K),_e=ve&&e.forEachAncestorDirectory(e.getDirectoryPath(Ve),function(Le){var qe=ve.get(e.ensureTrailingDirectorySeparator(e.toPath(Le,K,U)));if(qe)return e.startsWithDirectory(X,Le,U)?!1:e.forEach(Ie,function(Xe){if(e.startsWithDirectory(Xe,Le,U))for(var De=e.getRelativePathFromDirectory(Le,Xe,U),Ae=0,Ye=qe;Ae<Ye.length;Ae++){var Dr=Ye[Ae],br=e.resolvePath(Dr,De),lr=R(br,Xe===Te);if(Ge=!0,lr)return lr}})});return _e||(Ce?e.forEach(Ie,function(Le){return Ge&&e.containsIgnoredPath(Le)?void 0:R(Le,Le===Te)}):void 0)}n.forEachFileNameOfModule=Z;function ne(X,j,Se,Ce,R){var Y;R===void 0&&(R=e.toPath(j,Se.getCurrentDirectory(),e.hostGetCanonicalFileName(Se)));var U=(Y=Se.getModuleSpecifierCache)===null||Y===void 0?void 0:Y.call(Se);if(U){var K=U.get(X,R,Ce);if(K!=null&&K.modulePaths)return K.modulePaths}var Te=F(X,j,Se);return U&&U.setModulePaths(X,R,Ce,Te),Te}function F(X,j,Se){var Ce=e.hostGetCanonicalFileName(Se),R=new e.Map;Z(X,j,Se,!0,function(Pe,Ie){var Ge=e.pathContainsNodeModules(Pe);R.set(Pe,{path:Ce(Pe),isRedirect:Ie,isInNodeModules:Ge})});for(var Y=[],U=function(Pe){var Ie=e.ensureTrailingDirectorySeparator(Pe),Ge;R.forEach(function(ve,Ve){var _e=ve.path,Le=ve.isRedirect,qe=ve.isInNodeModules;e.startsWith(_e,Ie)&&((Ge||(Ge=[])).push({path:Ve,isRedirect:Le,isInNodeModules:qe}),R.delete(Ve))}),Ge&&(Ge.length>1&&Ge.sort(O),Y.push.apply(Y,Ge));var he=e.getDirectoryPath(Pe);if(he===Pe)return K=Pe,"break";Pe=he,K=Pe},K,Te=e.getDirectoryPath(X);R.size!==0;){var ge=U(Te);if(Te=K,ge==="break")break}if(R.size){var ke=e.arrayFrom(R.values());ke.length>1&&ke.sort(O),Y.push.apply(Y,ke)}return Y}function Q(X,j){var Se,Ce=(Se=X.declarations)===null||Se===void 0?void 0:Se.find(function(U){return e.isNonGlobalAmbientModule(U)&&(!e.isExternalModuleAugmentation(U)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(U.name)))});if(Ce)return Ce.name.text;var R=e.mapDefined(X.declarations,function(U){var K,Te,ge,ke;if(!e.isModuleDeclaration(U))return;var Pe=ve(U);if(!(!((K=Pe==null?void 0:Pe.parent)===null||K===void 0)&&K.parent&&e.isModuleBlock(Pe.parent)&&e.isAmbientModule(Pe.parent.parent)&&e.isSourceFile(Pe.parent.parent.parent)))return;var Ie=(ke=(ge=(Te=Pe.parent.parent.symbol.exports)===null||Te===void 0?void 0:Te.get("export="))===null||ge===void 0?void 0:ge.valueDeclaration)===null||ke===void 0?void 0:ke.expression;if(!Ie)return;var Ge=j.getSymbolAtLocation(Ie);if(!Ge)return;var he=(Ge==null?void 0:Ge.flags)&2097152?j.getAliasedSymbol(Ge):Ge;if(he===U.symbol)return Pe.parent.parent;function ve(Ve){for(;Ve.flags&4;)Ve=Ve.parent;return Ve}}),Y=R[0];if(Y)return Y.name.text}function V(X,j,Se){for(var Ce in Se)for(var R=0,Y=Se[Ce];R<Y.length;R++){var U=Y[R],K=e.removeFileExtension(e.normalizePath(U)),Te=K.indexOf("*");if(Te!==-1){var ge=K.substr(0,Te),ke=K.substr(Te+1);if(j.length>=ge.length+ke.length&&e.startsWith(j,ge)&&e.endsWith(j,ke)||!ke&&j===e.removeTrailingDirectorySeparator(ge)){var Pe=j.substr(ge.length,j.length-ke.length-ge.length);return Ce.replace("*",Pe)}}else if(K===j||K===X)return Ce}}var re;(function(X){X[X.Exact=0]="Exact",X[X.Directory=1]="Directory",X[X.Pattern=2]="Pattern"})(re||(re={}));function T(X,j,Se,Ce,R,Y,U){if(U===void 0&&(U=0),typeof R=="string"){var K=e.getNormalizedAbsolutePath(e.combinePaths(Se,R),void 0),Te=e.hasTSFileExtension(j)?e.removeFileExtension(j)+P(j,X):void 0;switch(U){case 0:if(e.comparePaths(j,K)===0||Te&&e.comparePaths(Te,K)===0)return{moduleFileToTry:Ce};break;case 1:if(e.containsPath(K,j)){var ge=e.getRelativePathFromDirectory(K,j,!1);return{moduleFileToTry:e.getNormalizedAbsolutePath(e.combinePaths(e.combinePaths(Ce,R),ge),void 0)}}break;case 2:var ke=K.indexOf("*"),Pe=K.slice(0,ke),Ie=K.slice(ke+1);if(e.startsWith(j,Pe)&&e.endsWith(j,Ie)){var Ge=j.slice(Pe.length,j.length-Ie.length);return{moduleFileToTry:Ce.replace("*",Ge)}}if(Te&&e.startsWith(Te,Pe)&&e.endsWith(Te,Ie)){var Ge=Te.slice(Pe.length,Te.length-Ie.length);return{moduleFileToTry:Ce.replace("*",Ge)}}break}}else{if(Array.isArray(R))return e.forEach(R,function(qe){return T(X,j,Se,Ce,qe,Y)});if(typeof R=="object"&&R!==null){if(e.allKeysStartWithDot(R))return e.forEach(e.getOwnKeys(R),function(qe){var Xe=e.getNormalizedAbsolutePath(e.combinePaths(Ce,qe),void 0),De=e.endsWith(qe,"/")?1:e.stringContains(qe,"*")?2:0;return T(X,j,Se,Xe,R[qe],Y,De)});for(var he=0,ve=e.getOwnKeys(R);he<ve.length;he++){var Ve=ve[he];if(Ve==="default"||Y.indexOf(Ve)>=0||e.isApplicableVersionedTypesKey(Y,Ve)){var _e=R[Ve],Le=T(X,j,Se,Ce,_e,Y);if(Le)return Le}}}}}function N(X,j,Se,Ce,R,Y){var U=m(j,X,Ce);if(U!==void 0){var K=m(Se,X,Ce),Te=K!==void 0?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(K,U,Ce)):U;return e.getEmitModuleResolutionKind(Y)===e.ModuleResolutionKind.NodeJs?u(Te,R,Y):e.removeFileExtension(Te)}}function y(X,j,Se,Ce,R){var Y=X.path,U=X.isRedirect,K=j.getCanonicalFileName,Te=j.sourceDirectory;if(!Se.fileExists||!Se.readFile)return;var ge=C(Y);if(!ge)return;var ke=Y,Pe=!1;if(!R)for(var Ie=ge.packageRootIndex,Ge=void 0;;){var he=Ye(Ie),ve=he.moduleFileToTry,Ve=he.packageRootPath,_e=he.blockedByExports,Le=he.verbatimFromExports;if(e.getEmitModuleResolutionKind(Ce)!==e.ModuleResolutionKind.Classic){if(_e)return;if(Le)return ve}if(Ve){ke=Ve,Pe=!0;break}if(Ge||(Ge=ve),Ie=Y.indexOf(e.directorySeparator,Ie+1),Ie===-1){ke=Dr(Ge);break}}if(U&&!Pe)return;var qe=Se.getGlobalTypingsCacheLocation&&Se.getGlobalTypingsCacheLocation(),Xe=K(ke.substring(0,ge.topLevelNodeModulesIndex));if(!(e.startsWith(Te,Xe)||qe&&e.startsWith(K(qe),Xe)))return;var De=ke.substring(ge.topLevelPackageNameIndex+1),Ae=e.getPackageNameFromTypesPackageName(De);return e.getEmitModuleResolutionKind(Ce)===e.ModuleResolutionKind.Classic&&Ae===De?void 0:Ae;function Ye(br){var lr=Y.substring(0,br),Ar=e.combinePaths(lr,"package.json"),kr=Y;if(Se.fileExists(Ar)){var Ke=JSON.parse(Se.readFile(Ar));if(e.getEmitModuleResolutionKind(Ce)===e.ModuleResolutionKind.Node12||e.getEmitModuleResolutionKind(Ce)===e.ModuleResolutionKind.NodeNext){var Me=Ke.exports&&typeof Ke.name=="string"?T(Ce,Y,lr,Ke.name,Ke.exports,["node","types"]):void 0;if(Me){var Hr=e.hasTSFileExtension(Me.moduleFileToTry)?{moduleFileToTry:e.removeFileExtension(Me.moduleFileToTry)+P(Me.moduleFileToTry,Ce)}:Me;return Rn(Rn({},Hr),{verbatimFromExports:!0})}if(Ke.exports)return{moduleFileToTry:Y,blockedByExports:!0}}var ur=Ke.typesVersions?e.getPackageJsonTypesVersionsPaths(Ke.typesVersions):void 0;if(ur){var gr=Y.slice(lr.length+1),de=V(e.removeFileExtension(gr),u(gr,0,Ce),ur.paths);de!==void 0&&(kr=e.combinePaths(lr,de))}var Fe=Ke.typings||Ke.types||Ke.main;if(e.isString(Fe)){var $e=e.toPath(Fe,lr,K);if(e.removeFileExtension($e)===e.removeFileExtension(K(kr)))return{packageRootPath:lr,moduleFileToTry:kr}}}return{moduleFileToTry:kr}}function Dr(br){var lr=e.removeFileExtension(br);return K(lr.substring(ge.fileNameIndex))==="/index"&&!D(Se,lr.substring(0,ge.fileNameIndex))?lr.substring(0,ge.fileNameIndex):lr}}function D(X,j){if(X.fileExists)for(var Se=e.flatten(e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}])),Ce=0,R=Se;Ce<R.length;Ce++){var Y=R[Ce],U=j+Y;if(X.fileExists(U))return U}}function C(X){var j=0,Se=0,Ce=0,R=0,Y;(function(ge){ge[ge.BeforeNodeModules=0]="BeforeNodeModules",ge[ge.NodeModules=1]="NodeModules",ge[ge.Scope=2]="Scope",ge[ge.PackageContent=3]="PackageContent"})(Y||(Y={}));for(var U=0,K=0,Te=0;K>=0;)switch(U=K,K=X.indexOf("/",U+1),Te){case 0:X.indexOf(e.nodeModulesPathPart,U)===U&&(j=U,Se=K,Te=1);break;case 1:case 2:Te===1&&X.charAt(U+1)==="@"?Te=2:(Ce=K,Te=3);break;case 3:X.indexOf(e.nodeModulesPathPart,U)===U?Te=1:Te=3;break}return R=U,Te>1?{topLevelNodeModulesIndex:j,topLevelPackageNameIndex:Se,packageRootIndex:Ce,fileNameIndex:R}:void 0}function m(X,j,Se){return e.firstDefined(j,function(Ce){var R=te(X,Ce,Se);return ue(R)?void 0:R})}function u(X,j,Se){if(e.fileExtensionIsOneOf(X,[".json",".mjs",".cjs"]))return X;var Ce=e.removeFileExtension(X);if(e.fileExtensionIsOneOf(X,[".d.mts",".mts",".d.cts",".cts"]))return Ce+g(X,Se);switch(j){case 0:return e.removeSuffix(Ce,"/index");case 1:return Ce;case 2:return Ce+g(X,Se);default:return e.Debug.assertNever(j)}}function g(X,j){var Se;return(Se=P(X,j))!==null&&Se!==void 0?Se:e.Debug.fail("Extension ".concat(e.extensionFromPath(X)," is unsupported:: FileName:: ").concat(X))}function P(X,j){var Se=e.tryGetExtensionFromPath(X);switch(Se){case".ts":case".d.ts":return".js";case".tsx":return j.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return Se;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}n.tryGetJSExtensionForFile=P;function te(X,j,Se){var Ce=e.getRelativePathToDirectoryOrUrl(j,X,j,Se,!1);return e.isRootedDiskPath(Ce)?void 0:Ce}function ue(X){return e.startsWith(X,"..")}})(e.moduleSpecifiers||(e.moduleSpecifiers={}))}(jr||(jr={})),function(e){var n=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function f(y,D){var C=y===e.sys&&n?n:{getCurrentDirectory:function(){return y.getCurrentDirectory()},getNewLine:function(){return y.newLine},getCanonicalFileName:e.createGetCanonicalFileName(y.useCaseSensitiveFileNames)};if(!D)return function(u){return y.write(e.formatDiagnostic(u,C))};var m=new Array(1);return function(u){m[0]=u,y.write(e.formatDiagnosticsWithColorAndContext(m,C)+C.getNewLine()),m[0]=void 0}}e.createDiagnosticReporter=f;function p(y,D,C){return y.clearScreen&&!C.preserveWatchOutput&&!C.extendedDiagnostics&&!C.diagnostics&&e.contains(e.screenStartingMessageCodes,D.code)?(y.clearScreen(),!0):!1}e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code];function a(y,D){return e.contains(e.screenStartingMessageCodes,y.code)?D+D:D}function d(y){return y.now?y.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):new Date().toLocaleTimeString()}e.getLocaleTimeString=d;function k(y,D){return D?function(C,m,u){p(y,C,u);var g="[".concat(e.formatColorAndReset(d(y),e.ForegroundColorEscapeSequences.Grey),"] ");g+="".concat(e.flattenDiagnosticMessageText(C.messageText,y.newLine)).concat(m+m),y.write(g)}:function(C,m,u){var g="";p(y,C,u)||(g+=m),g+="".concat(d(y)," - "),g+="".concat(e.flattenDiagnosticMessageText(C.messageText,y.newLine)).concat(a(C,m)),y.write(g)}}e.createWatchStatusReporter=k;function J(y,D,C,m,u,g){var P=u;P.onUnRecoverableConfigFileDiagnostic=function(ue){return V(u,g,ue)};var te=e.getParsedCommandLineOfConfigFile(y,D,P,C,m);return P.onUnRecoverableConfigFileDiagnostic=void 0,te}e.parseConfigFileWithSystem=J;function h(y){return e.countWhere(y,function(D){return D.category===e.DiagnosticCategory.Error})}e.getErrorCountForSummary=h;function v(y){return y===1?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}e.getWatchErrorSummaryDiagnosticMessage=v;function A(y,D){if(y===0)return"";var C=e.createCompilerDiagnostic(y===1?e.Diagnostics.Found_1_error:e.Diagnostics.Found_0_errors,y);return"".concat(D).concat(e.flattenDiagnosticMessageText(C.messageText,D)).concat(D).concat(D)}e.getErrorSummaryText=A;function z(y){return!!y.getState}e.isBuilderProgram=z;function ie(y,D){var C=y.getCompilerOptions();C.explainFiles?b(z(y)?y.getProgram():y,D):(C.listFiles||C.listFilesOnly)&&e.forEach(y.getSourceFiles(),function(m){D(m.fileName)})}e.listFiles=ie;function b(y,D){for(var C,m,u=y.getFileIncludeReasons(),g=e.createGetCanonicalFileName(y.useCaseSensitiveFileNames()),P=function(j){return e.convertToRelativePath(j,y.getCurrentDirectory(),g)},te=0,ue=y.getSourceFiles();te<ue.length;te++){var X=ue[te];D("".concat(I(X,P))),(C=u.get(X.path))===null||C===void 0||C.forEach(function(j){return D(" ".concat(H(y,j,P).messageText))}),(m=M(X,P))===null||m===void 0||m.forEach(function(j){return D(" ".concat(j.messageText))})}}e.explainFiles=b;function M(y,D){var C;return y.path!==y.resolvedPath&&(C||(C=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_output_of_project_reference_source_0,I(y.originalFileName,D))),y.redirectInfo&&(C||(C=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_redirects_to_file_0,I(y.redirectInfo.redirectTarget,D))),C}e.explainIfFileIsRedirect=M;function S(y,D){var C,m=y.getCompilerOptions().configFile;if(!((C=m==null?void 0:m.configFileSpecs)===null||C===void 0)&&C.validatedFilesSpec){var u=e.createGetCanonicalFileName(y.useCaseSensitiveFileNames()),g=u(D),P=e.getDirectoryPath(e.getNormalizedAbsolutePath(m.fileName,y.getCurrentDirectory()));return e.find(m.configFileSpecs.validatedFilesSpec,function(te){return u(e.getNormalizedAbsolutePath(te,P))===g})}}e.getMatchedFileSpec=S;function B(y,D){var C,m,u=y.getCompilerOptions().configFile;if(!((C=u==null?void 0:u.configFileSpecs)===null||C===void 0)&&C.validatedIncludeSpecs){var g=e.fileExtensionIs(D,".json"),P=e.getDirectoryPath(e.getNormalizedAbsolutePath(u.fileName,y.getCurrentDirectory())),te=y.useCaseSensitiveFileNames();return e.find((m=u==null?void 0:u.configFileSpecs)===null||m===void 0?void 0:m.validatedIncludeSpecs,function(ue){if(g&&!e.endsWith(ue,".json"))return!1;var X=e.getPatternFromSpec(ue,P,"files");return!!X&&e.getRegexFromPattern("(".concat(X,")$"),te).test(D)})}}e.getMatchedIncludeSpec=B;function H(y,D,C){var m,u,g=y.getCompilerOptions();if(e.isReferencedFile(D)){var P=e.getReferencedFileLocation(function(U){return y.getSourceFileByPath(U)},D),te=e.isReferenceFileLocation(P)?P.file.text.substring(P.pos,P.end):'"'.concat(P.text,'"'),ue=void 0;switch(e.Debug.assert(e.isReferenceFileLocation(P)||D.kind===e.FileIncludeKind.Import,"Only synthetic references are imports"),D.kind){case e.FileIncludeKind.Import:e.isReferenceFileLocation(P)?ue=P.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2:e.Diagnostics.Imported_via_0_from_file_1:P.text===e.externalHelpersModuleNameText?ue=P.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:e.Diagnostics.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:ue=P.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:e.Diagnostics.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case e.FileIncludeKind.ReferenceFile:e.Debug.assert(!P.packageId),ue=e.Diagnostics.Referenced_via_0_from_file_1;break;case e.FileIncludeKind.TypeReferenceDirective:ue=P.packageId?e.Diagnostics.Type_library_referenced_via_0_from_file_1_with_packageId_2:e.Diagnostics.Type_library_referenced_via_0_from_file_1;break;case e.FileIncludeKind.LibReferenceDirective:e.Debug.assert(!P.packageId),ue=e.Diagnostics.Library_referenced_via_0_from_file_1;break;default:e.Debug.assertNever(D)}return e.chainDiagnosticMessages(void 0,ue,te,I(P.file,C),P.packageId&&e.packageIdToString(P.packageId))}switch(D.kind){case e.FileIncludeKind.RootFile:if(!(!((m=g.configFile)===null||m===void 0)&&m.configFileSpecs))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);var X=e.getNormalizedAbsolutePath(y.getRootFileNames()[D.index],y.getCurrentDirectory()),j=S(y,X);if(j)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Part_of_files_list_in_tsconfig_json);var Se=B(y,X);return Se?e.chainDiagnosticMessages(void 0,e.Diagnostics.Matched_by_include_pattern_0_in_1,Se,I(g.configFile,C)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var Ce=D.kind===e.FileIncludeKind.OutputFromProjectReference,R=e.Debug.checkDefined((u=y.getResolvedProjectReferences())===null||u===void 0?void 0:u[D.index]);return e.chainDiagnosticMessages(void 0,e.outFile(g)?Ce?e.Diagnostics.Output_from_referenced_project_0_included_because_1_specified:e.Diagnostics.Source_from_referenced_project_0_included_because_1_specified:Ce?e.Diagnostics.Output_from_referenced_project_0_included_because_module_is_specified_as_none:e.Diagnostics.Source_from_referenced_project_0_included_because_module_is_specified_as_none,I(R.sourceFile.fileName,C),g.outFile?"--outFile":"--out");case e.FileIncludeKind.AutomaticTypeDirectiveFile:return e.chainDiagnosticMessages(void 0,g.types?D.packageId?e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions:D.packageId?e.Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1:e.Diagnostics.Entry_point_for_implicit_type_library_0,D.typeReference,D.packageId&&e.packageIdToString(D.packageId));case e.FileIncludeKind.LibFile:if(D.index!==void 0)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Library_0_specified_in_compilerOptions,g.lib[D.index]);var Y=e.forEachEntry(e.targetOptionDeclaration.type,function(U,K){return U===e.getEmitScriptTarget(g)?K:void 0});return e.chainDiagnosticMessages(void 0,Y?e.Diagnostics.Default_library_for_target_0:e.Diagnostics.Default_library,Y);default:e.Debug.assertNever(D)}}e.fileIncludeReasonToDiagnostics=H;function I(y,D){var C=e.isString(y)?y:y.fileName;return D?D(C):C}function w(y,D,C,m,u,g,P,te){var ue=!!y.getCompilerOptions().listFilesOnly,X=y.getConfigFileParsingDiagnostics().slice(),j=X.length;e.addRange(X,y.getSyntacticDiagnostics(void 0,g)),X.length===j&&(e.addRange(X,y.getOptionsDiagnostics(g)),ue||(e.addRange(X,y.getGlobalDiagnostics(g)),X.length===j&&e.addRange(X,y.getSemanticDiagnostics(void 0,g))));var Se=ue?{emitSkipped:!0,diagnostics:e.emptyArray}:y.emit(void 0,u,g,P,te),Ce=Se.emittedFiles,R=Se.diagnostics;e.addRange(X,R);var Y=e.sortAndDeduplicateDiagnostics(X);if(Y.forEach(D),C){var U=y.getCurrentDirectory();e.forEach(Ce,function(K){var Te=e.getNormalizedAbsolutePath(K,U);C("TSFILE: ".concat(Te))}),ie(y,C)}return m&&m(h(Y)),{emitResult:Se,diagnostics:Y}}e.emitFilesAndReportErrors=w;function x(y,D,C,m,u,g,P,te){var ue=w(y,D,C,m,u,g,P,te),X=ue.emitResult,j=ue.diagnostics;return X.emitSkipped&&j.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:j.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}e.emitFilesAndReportErrorsAndGetExitStatus=x,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher};function O(y,D){y===void 0&&(y=e.sys);var C=D||k(y);return{onWatchStatusChange:C,watchFile:e.maybeBind(y,y.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(y,y.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(y,y.setTimeout)||e.noop,clearTimeout:e.maybeBind(y,y.clearTimeout)||e.noop}}e.createWatchHost=O,e.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",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"};function q(y,D){var C=y.trace?D.extendedDiagnostics?e.WatchLogLevel.Verbose:D.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,m=C!==e.WatchLogLevel.None?function(g){return y.trace(g)}:e.noop,u=e.getWatchFactory(y,C,m);return u.writeLog=m,u}e.createWatchFactory=q;function Z(y,D,C){C===void 0&&(C=y);var m=y.useCaseSensitiveFileNames(),u=e.memoize(function(){return y.getNewLine()});return{getSourceFile:function(P,te,ue){var X;try{e.performance.mark("beforeIORead"),X=y.readFile(P,D().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(j){ue&&ue(j.message),X=""}return X!==void 0?e.createSourceFile(P,X,te):void 0},getDefaultLibLocation:e.maybeBind(y,y.getDefaultLibLocation),getDefaultLibFileName:function(P){return y.getDefaultLibFileName(P)},writeFile:g,getCurrentDirectory:e.memoize(function(){return y.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return m},getCanonicalFileName:e.createGetCanonicalFileName(m),getNewLine:function(){return e.getNewLineCharacter(D(),u)},fileExists:function(P){return y.fileExists(P)},readFile:function(P){return y.readFile(P)},trace:e.maybeBind(y,y.trace),directoryExists:e.maybeBind(C,C.directoryExists),getDirectories:e.maybeBind(C,C.getDirectories),realpath:e.maybeBind(y,y.realpath),getEnvironmentVariable:e.maybeBind(y,y.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(y,y.createHash),readDirectory:e.maybeBind(y,y.readDirectory),disableUseFileVersionAsSignature:y.disableUseFileVersionAsSignature};function g(P,te,ue,X){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(P,te,ue,function(j,Se,Ce){return y.writeFile(j,Se,Ce)},function(j){return y.createDirectory(j)},function(j){return y.directoryExists(j)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(j){X&&X(j.message)}}}e.createCompilerHostFromProgramHost=Z;function ne(y,D){var C=y.getSourceFile,m=e.maybeBind(D,D.createHash)||e.generateDjb2Hash;y.getSourceFile=function(){for(var u=[],g=0;g<arguments.length;g++)u[g]=arguments[g];var P=C.call.apply(C,Gt([y],u,!1));return P&&(P.version=m(P.text)),P}}e.setGetSourceFileAsHashVersioned=ne;function F(y,D){var C=e.memoize(function(){return e.getDirectoryPath(e.normalizePath(y.getExecutingFilePath()))});return{useCaseSensitiveFileNames:function(){return y.useCaseSensitiveFileNames},getNewLine:function(){return y.newLine},getCurrentDirectory:e.memoize(function(){return y.getCurrentDirectory()}),getDefaultLibLocation:C,getDefaultLibFileName:function(m){return e.combinePaths(C(),e.getDefaultLibFileName(m))},fileExists:function(m){return y.fileExists(m)},readFile:function(m,u){return y.readFile(m,u)},directoryExists:function(m){return y.directoryExists(m)},getDirectories:function(m){return y.getDirectories(m)},readDirectory:function(m,u,g,P,te){return y.readDirectory(m,u,g,P,te)},realpath:e.maybeBind(y,y.realpath),getEnvironmentVariable:e.maybeBind(y,y.getEnvironmentVariable),trace:function(m){return y.write(m+y.newLine)},createDirectory:function(m){return y.createDirectory(m)},writeFile:function(m,u,g){return y.writeFile(m,u,g)},createHash:e.maybeBind(y,y.createHash),createProgram:D||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:y.disableUseFileVersionAsSignature}}e.createProgramHost=F;function Q(y,D,C,m){y===void 0&&(y=e.sys);var u=function(P){return y.write(P+y.newLine)},g=F(y,D);return e.copyProperties(g,O(y,m)),g.afterProgramCreate=function(P){var te=P.getCompilerOptions(),ue=e.getNewLineCharacter(te,function(){return y.newLine});w(P,C,u,function(X){return g.onWatchStatusChange(e.createCompilerDiagnostic(v(X),X),ue,te,X)})},g}function V(y,D,C){D(C),y.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}function re(y){var D=y.configFileName,C=y.optionsToExtend,m=y.watchOptionsToExtend,u=y.extraFileExtensions,g=y.system,P=y.createProgram,te=y.reportDiagnostic,ue=y.reportWatchStatus,X=te||f(g),j=Q(g,P,X,ue);return j.onUnRecoverableConfigFileDiagnostic=function(Se){return V(g,X,Se)},j.configFileName=D,j.optionsToExtend=C,j.watchOptionsToExtend=m,j.extraFileExtensions=u,j}e.createWatchCompilerHostOfConfigFile=re;function T(y){var D=y.rootFiles,C=y.options,m=y.watchOptions,u=y.projectReferences,g=y.system,P=y.createProgram,te=y.reportDiagnostic,ue=y.reportWatchStatus,X=Q(g,P,te||f(g),ue);return X.rootFiles=D,X.options=C,X.watchOptions=m,X.projectReferences=u,X}e.createWatchCompilerHostOfFilesAndCompilerOptions=T;function N(y){var D=y.system||e.sys,C=y.host||(y.host=e.createIncrementalCompilerHost(y.options,D)),m=e.createIncrementalProgram(y),u=x(m,y.reportDiagnostic||f(D),function(g){return C.trace&&C.trace(g)},y.reportErrorSummary||y.options.pretty?function(g){return D.write(A(g,D.newLine))}:void 0);return y.afterProgramEmitAndDiagnostics&&y.afterProgramEmitAndDiagnostics(m),u}e.performIncrementalCompilation=N}(jr||(jr={})),function(e){function n(k,J){if(!e.outFile(k)){var h=e.getTsBuildInfoEmitOutputFilePath(k);if(h){var v=J.readFile(h);if(v){var A=e.getBuildInfo(v);if(A.version===e.version&&A.program)return e.createBuildProgramUsingProgramBuildInfo(A.program,h,J)}}}}e.readBuilderProgram=n;function f(k,J){J===void 0&&(J=e.sys);var h=e.createCompilerHostWorker(k,void 0,J);return h.createHash=e.maybeBind(J,J.createHash),h.disableUseFileVersionAsSignature=J.disableUseFileVersionAsSignature,e.setGetSourceFileAsHashVersioned(h,J),e.changeCompilerHostLikeToUseCache(h,function(v){return e.toPath(v,h.getCurrentDirectory(),h.getCanonicalFileName)}),h}e.createIncrementalCompilerHost=f;function p(k){var J=k.rootNames,h=k.options,v=k.configFileParsingDiagnostics,A=k.projectReferences,z=k.host,ie=k.createProgram;z=z||f(h),ie=ie||e.createEmitAndSemanticDiagnosticsBuilderProgram;var b=n(h,z);return ie(J,h,z,b,v,A)}e.createIncrementalProgram=p;function a(k,J,h,v,A,z,ie,b){return e.isArray(k)?e.createWatchCompilerHostOfFilesAndCompilerOptions({rootFiles:k,options:J,watchOptions:b,projectReferences:ie,system:h,createProgram:v,reportDiagnostic:A,reportWatchStatus:z}):e.createWatchCompilerHostOfConfigFile({configFileName:k,optionsToExtend:J,watchOptionsToExtend:ie,extraFileExtensions:b,system:h,createProgram:v,reportDiagnostic:A,reportWatchStatus:z})}e.createWatchCompilerHost=a;function d(k){var J,h,v,A,z,ie,b,M,S,B=k.extendedConfigCache,H=!1,I=new e.Map,w,x=!1,O=k.useCaseSensitiveFileNames(),q=k.getCurrentDirectory(),Z=k.configFileName,ne=k.optionsToExtend,F=ne===void 0?{}:ne,Q=k.watchOptionsToExtend,V=k.extraFileExtensions,re=k.createProgram,T=k.rootFiles,N=k.options,y=k.watchOptions,D=k.projectReferences,C,m,u=!1,g=!1,P=Z===void 0?void 0:e.createCachedDirectoryStructureHost(k,q,O),te=P||k,ue=e.parseConfigHostFromCompilerHostLike(k,te),X=_e();Z&&k.configFileParsingResult&&(Pr(k.configFileParsingResult),X=_e()),lr(e.Diagnostics.Starting_compilation_in_watch_mode),Z&&!k.configFileParsingResult&&(X=e.getNewLineCharacter(F,function(){return k.getNewLine()}),e.Debug.assert(!T),Sr(),X=_e());var j=e.createWatchFactory(k,N),Se=j.watchFile,Ce=j.watchDirectory,R=j.writeLog,Y=e.createGetCanonicalFileName(O);R("Current directory: ".concat(q," CaseSensitiveFileNames: ").concat(O));var U;Z&&(U=Se(Z,ur,e.PollingInterval.High,y,e.WatchType.ConfigFile));var K=e.createCompilerHostFromProgramHost(k,function(){return N},te);e.setGetSourceFileAsHashVersioned(K,k);var Te=K.getSourceFile;K.getSourceFile=function(Or){for(var sr=[],ye=1;ye<arguments.length;ye++)sr[ye-1]=arguments[ye];return Ae.apply(void 0,Gt([Or,Le(Or)],sr,!1))},K.getSourceFileByPath=Ae,K.getNewLine=function(){return X},K.fileExists=De,K.onReleaseOldSourceFile=br,K.onReleaseParsedCommandLine=Jr,K.toPath=Le,K.getCompilationSettings=function(){return N},K.useSourceOfProjectReferenceRedirect=e.maybeBind(k,k.useSourceOfProjectReferenceRedirect),K.watchDirectoryOfFailedLookupLocation=function(Or,sr,ye){return Ce(Or,sr,ye,y,e.WatchType.FailedLookupLocations)},K.watchTypeRootsDirectory=function(Or,sr,ye){return Ce(Or,sr,ye,y,e.WatchType.TypeRoots)},K.getCachedDirectoryStructureHost=function(){return P},K.scheduleInvalidateResolutionsOfFailedLookupLocations=Ke,K.onInvalidatedResolution=Hr,K.onChangedAutomaticTypeDirectiveNames=Hr,K.fileIsOpen=e.returnFalse,K.getCurrentProgram=Ge,K.writeLog=R,K.getParsedCommandLine=He;var ge=e.createResolutionCache(K,Z?e.getDirectoryPath(e.getNormalizedAbsolutePath(Z,q)):q,!1);K.resolveModuleNames=k.resolveModuleNames?function(){for(var Or=[],sr=0;sr<arguments.length;sr++)Or[sr]=arguments[sr];return k.resolveModuleNames.apply(k,Or)}:function(Or,sr,ye,or,fe,je){return ge.resolveModuleNames(Or,sr,ye,or,je)},K.resolveTypeReferenceDirectives=k.resolveTypeReferenceDirectives?function(){for(var Or=[],sr=0;sr<arguments.length;sr++)Or[sr]=arguments[sr];return k.resolveTypeReferenceDirectives.apply(k,Or)}:function(Or,sr,ye){return ge.resolveTypeReferenceDirectives(Or,sr,ye)};var ke=!!k.resolveModuleNames||!!k.resolveTypeReferenceDirectives;return J=n(N,K),he(),bn(),Z&&zn(Le(Z),N,y,e.WatchType.ExtendedConfigFile),Z?{getCurrentProgram:Ie,getProgram:de,close:Pe}:{getCurrentProgram:Ie,getProgram:de,updateRootFileNames:Ve,close:Pe};function Pe(){kr(),ge.clear(),e.clearMap(I,function(Or){Or&&Or.fileWatcher&&(Or.fileWatcher.close(),Or.fileWatcher=void 0)}),U&&(U.close(),U=void 0),B==null||B.clear(),B=void 0,S&&(e.clearMap(S,e.closeFileWatcherOf),S=void 0),z&&(e.clearMap(z,e.closeFileWatcherOf),z=void 0),v&&(e.clearMap(v,e.closeFileWatcher),v=void 0),M&&(e.clearMap(M,function(Or){var sr;(sr=Or.watcher)===null||sr===void 0||sr.close(),Or.watcher=void 0,Or.watchedDirectories&&e.clearMap(Or.watchedDirectories,e.closeFileWatcherOf),Or.watchedDirectories=void 0}),M=void 0),A&&(e.clearMap(A,e.closeFileWatcher),A=void 0)}function Ie(){return J}function Ge(){return J&&J.getProgramOrUndefined()}function he(){R("Synchronizing program"),kr();var Or=Ie();x&&(X=_e(),Or&&(H||e.changesAffectModuleResolution(Or.getCompilerOptions(),N))&&ge.clear());var sr=ge.createHasInvalidatedResolution(ke||H);return e.isProgramUptoDate(Ge(),T,N,Dr,De,sr,Ar,He,D)?g&&(J=re(void 0,void 0,K,J,m,D),g=!1):ve(sr),H=!1,k.afterProgramCreate&&Or!==J&&k.afterProgramCreate(J),J}function ve(Or){R("CreatingProgramWith::"),R(" roots: ".concat(JSON.stringify(T))),R(" options: ".concat(JSON.stringify(N))),D&&R(" projectReferences: ".concat(JSON.stringify(D)));var sr=x||!Ge();x=!1,g=!1,ge.startCachingPerDirectoryResolution(),K.hasInvalidatedResolution=Or,K.hasChangedAutomaticTypeDirectiveNames=Ar,J=re(T,N,K,J,m,D);var ye=e.map(ge.getModuleResolutionCache().getPackageJsonInfoCache().entries(),function(Ee){var We=Ee[0],$=Ee[1];return[K.realpath?Le(K.realpath(We)):We,$]});if(ge.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(J.getProgram(),v||(v=new e.Map),lt),e.updatePackageJsonWatch(ye,A||(A=new e.Map),tt),sr&&ge.updateTypeRootsWatch(),w){for(var or=0,fe=w;or<fe.length;or++){var je=fe[or];v.has(je)||I.delete(je)}w=void 0}}function Ve(Or){e.Debug.assert(!Z,"Cannot update root file names with config file watch mode"),T=Or,Hr()}function _e(){return e.getNewLineCharacter(N||F,function(){return k.getNewLine()})}function Le(Or){return e.toPath(Or,q,Y)}function qe(Or){return typeof Or=="boolean"}function Xe(Or){return typeof Or.version=="boolean"}function De(Or){var sr=Le(Or);return qe(I.get(sr))?!1:te.fileExists(Or)}function Ae(Or,sr,ye,or,fe){var je=I.get(sr);if(!qe(je)){if(je===void 0||fe||Xe(je)){var Ee=Te(Or,ye,or);if(je)Ee?(je.sourceFile=Ee,je.version=Ee.version,je.fileWatcher||(je.fileWatcher=ze(sr,Or,Lr,e.PollingInterval.Low,y,e.WatchType.SourceFile))):(je.fileWatcher&&je.fileWatcher.close(),I.set(sr,!1));else if(Ee){var We=ze(sr,Or,Lr,e.PollingInterval.Low,y,e.WatchType.SourceFile);I.set(sr,{sourceFile:Ee,version:Ee.version,fileWatcher:We})}else I.set(sr,!1);return Ee&&(Ee.impliedNodeFormat=e.getImpliedNodeFormatForFile(sr,ge.getModuleResolutionCache().getPackageJsonInfoCache(),K,K.getCompilationSettings())),Ee}return je.sourceFile}}function Ye(Or){var sr=I.get(Or);sr!==void 0&&(qe(sr)?I.set(Or,{version:!1}):sr.version=!1)}function Dr(Or){var sr=I.get(Or);return!sr||!sr.version?void 0:sr.version}function br(Or,sr,ye){var or=I.get(Or.resolvedPath);or!==void 0&&(qe(or)?(w||(w=[])).push(Or.path):or.sourceFile===Or&&(or.fileWatcher&&or.fileWatcher.close(),I.delete(Or.resolvedPath),ye||ge.removeResolutionsOfFile(Or.path)))}function lr(Or){k.onWatchStatusChange&&k.onWatchStatusChange(e.createCompilerDiagnostic(Or),X,N||F)}function Ar(){return ge.hasChangedAutomaticTypeDirectiveNames()}function kr(){return b?(k.clearTimeout(b),b=void 0,!0):!1}function Ke(){if(!k.setTimeout||!k.clearTimeout)return ge.invalidateResolutionsOfFailedLookupLocations();var Or=kr();R("Scheduling invalidateFailedLookup".concat(Or?", Cancelled earlier one":"")),b=k.setTimeout(Me,250)}function Me(){b=void 0,ge.invalidateResolutionsOfFailedLookupLocations()&&Hr()}function Hr(){!k.setTimeout||!k.clearTimeout||(ie&&k.clearTimeout(ie),R("Scheduling update"),ie=k.setTimeout(gr,250))}function ur(){e.Debug.assert(!!Z),h=e.ConfigFileProgramReloadLevel.Full,Hr()}function gr(){ie=void 0,lr(e.Diagnostics.File_change_detected_Starting_incremental_compilation),de()}function de(){switch(h){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),Fe();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),$e();break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),he();break}return e.perfLogger.logStopUpdateProgram("Done"),Ie()}function Fe(){R("Reloading new file names and options"),T=e.getFileNamesFromConfigSpecs(N.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(Z),q),N,ue,V),e.updateErrorForNoInputFiles(T,e.getNormalizedAbsolutePath(Z,q),N.configFile.configFileSpecs,m,u)&&(g=!0),he()}function $e(){R("Reloading config file: ".concat(Z)),h=e.ConfigFileProgramReloadLevel.None,P&&P.clearCache(),Sr(),x=!0,he(),bn(),zn(Le(Z),N,y,e.WatchType.ExtendedConfigFile)}function Sr(){Pr(e.getParsedCommandLineOfConfigFile(Z,F,ue,B||(B=new e.Map),Q,V))}function Pr(Or){T=Or.fileNames,N=Or.options,y=Or.watchOptions,D=Or.projectReferences,C=Or.wildcardDirectories,m=e.getConfigFileParsingDiagnostics(Or).slice(),u=e.canJsonReportNoInputFiles(Or.raw),g=!0}function He(Or){var sr=Le(Or),ye=M==null?void 0:M.get(sr);if(ye){if(!ye.reloadLevel)return ye.parsedCommandLine;if(ye.parsedCommandLine&&ye.reloadLevel===e.ConfigFileProgramReloadLevel.Partial&&!k.getParsedCommandLine){R("Reloading new file names and options");var or=e.getFileNamesFromConfigSpecs(ye.parsedCommandLine.options.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(Or),q),N,ue);return ye.parsedCommandLine=Rn(Rn({},ye.parsedCommandLine),{fileNames:or}),ye.reloadLevel=void 0,ye.parsedCommandLine}}R("Loading config file: ".concat(Or));var fe=k.getParsedCommandLine?k.getParsedCommandLine(Or):pr(Or);return ye?(ye.parsedCommandLine=fe,ye.reloadLevel=void 0):(M||(M=new e.Map)).set(sr,ye={parsedCommandLine:fe}),ir(Or,sr,ye),fe}function pr(Or){var sr=ue.onUnRecoverableConfigFileDiagnostic;ue.onUnRecoverableConfigFileDiagnostic=e.noop;var ye=e.getParsedCommandLineOfConfigFile(Or,void 0,ue,B||(B=new e.Map),Q);return ue.onUnRecoverableConfigFileDiagnostic=sr,ye}function Jr(Or){var sr,ye=Le(Or),or=M==null?void 0:M.get(ye);or&&(M.delete(ye),or.watchedDirectories&&e.clearMap(or.watchedDirectories,e.closeFileWatcherOf),(sr=or.watcher)===null||sr===void 0||sr.close(),e.clearSharedExtendedConfigFileWatcher(ye,S))}function ze(Or,sr,ye,or,fe,je){return Se(sr,function(Ee,We){return ye(Ee,We,Or)},or,fe,je)}function Lr(Or,sr,ye){Yr(Or,ye,sr),sr===e.FileWatcherEventKind.Deleted&&I.has(ye)&&ge.invalidateResolutionOfFile(ye),Ye(ye),Hr()}function Yr(Or,sr,ye){P&&P.addOrDeleteFile(Or,sr,ye)}function lt(Or){return M!=null&&M.has(Or)?e.noopFileWatcher:ze(Or,Or,cn,e.PollingInterval.Medium,y,e.WatchType.MissingFile)}function tt(Or){return I.has(Or)?e.noopFileWatcher:ze(Or,Or,Rt,e.PollingInterval.High,y,e.WatchType.PackageJson)}function Rt(Or,sr,ye){Yr(Or,ye,sr),h=e.ConfigFileProgramReloadLevel.Full,H=!0,Hr()}function cn(Or,sr,ye){Yr(Or,ye,sr),sr===e.FileWatcherEventKind.Created&&v.has(ye)&&(v.get(ye).close(),v.delete(ye),Ye(ye),Hr())}function bn(){C?e.updateWatchingWildcardDirectories(z||(z=new e.Map),new e.Map(e.getEntries(C)),In):z&&e.clearMap(z,e.closeFileWatcherOf)}function In(Or,sr){return Ce(Or,function(ye){e.Debug.assert(!!Z);var or=Le(ye);P&&P.addOrDeleteFileOrDirectory(ye,or),Ye(or),!e.isIgnoredFileFromWildCardWatching({watchedDirPath:Le(Or),fileOrDirectory:ye,fileOrDirectoryPath:or,configFileName:Z,extraFileExtensions:V,options:N,program:Ie()||T,currentDirectory:q,useCaseSensitiveFileNames:O,writeLog:R,toPath:Le})&&h!==e.ConfigFileProgramReloadLevel.Full&&(h=e.ConfigFileProgramReloadLevel.Partial,Hr())},sr,y,e.WatchType.WildcardDirectory)}function zn(Or,sr,ye,or){e.updateSharedExtendedConfigFileWatcher(Or,sr,S||(S=new e.Map),function(fe,je){return Se(fe,function(Ee,We){var $;Yr(fe,je,We),B&&e.cleanExtendedConfigCache(B,je,Le);var Ne=($=S.get(je))===null||$===void 0?void 0:$.projects;Ne!=null&&Ne.size&&Ne.forEach(function(me){if(Le(Z)===me)h=e.ConfigFileProgramReloadLevel.Full;else{var Ze=M==null?void 0:M.get(me);Ze&&(Ze.reloadLevel=e.ConfigFileProgramReloadLevel.Full),ge.removeResolutionsFromProjectReferenceRedirects(me)}Hr()})},e.PollingInterval.High,ye,or)},Le)}function ir(Or,sr,ye){var or,fe,je,Ee,We;ye.watcher||(ye.watcher=Se(Or,function($,Ne){Yr(Or,sr,Ne);var me=M==null?void 0:M.get(sr);me&&(me.reloadLevel=e.ConfigFileProgramReloadLevel.Full),ge.removeResolutionsFromProjectReferenceRedirects(sr),Hr()},e.PollingInterval.High,((or=ye.parsedCommandLine)===null||or===void 0?void 0:or.watchOptions)||y,e.WatchType.ConfigFileOfReferencedProject)),!((fe=ye.parsedCommandLine)===null||fe===void 0)&&fe.wildcardDirectories?e.updateWatchingWildcardDirectories(ye.watchedDirectories||(ye.watchedDirectories=new e.Map),new e.Map(e.getEntries((je=ye.parsedCommandLine)===null||je===void 0?void 0:je.wildcardDirectories)),function($,Ne){var me;return Ce($,function(Ze){var Cr=Le(Ze);P&&P.addOrDeleteFileOrDirectory(Ze,Cr),Ye(Cr);var fr=M==null?void 0:M.get(sr);fr!=null&&fr.parsedCommandLine&&(e.isIgnoredFileFromWildCardWatching({watchedDirPath:Le($),fileOrDirectory:Ze,fileOrDirectoryPath:Cr,configFileName:Or,options:fr.parsedCommandLine.options,program:fr.parsedCommandLine.fileNames,currentDirectory:q,useCaseSensitiveFileNames:O,writeLog:R,toPath:Le})||fr.reloadLevel!==e.ConfigFileProgramReloadLevel.Full&&(fr.reloadLevel=e.ConfigFileProgramReloadLevel.Partial,Hr()))},Ne,((me=ye.parsedCommandLine)===null||me===void 0?void 0:me.watchOptions)||y,e.WatchType.WildcardDirectoryOfReferencedProject)}):ye.watchedDirectories&&(e.clearMap(ye.watchedDirectories,e.closeFileWatcherOf),ye.watchedDirectories=void 0),zn(sr,(Ee=ye.parsedCommandLine)===null||Ee===void 0?void 0:Ee.options,((We=ye.parsedCommandLine)===null||We===void 0?void 0:We.watchOptions)||y,e.WatchType.ExtendedConfigOfReferencedProject)}}e.createWatchProgram=d}(jr||(jr={})),function(e){(function(f){f[f.Unbuildable=0]="Unbuildable",f[f.UpToDate=1]="UpToDate",f[f.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",f[f.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",f[f.OutputMissing=4]="OutputMissing",f[f.OutOfDateWithSelf=5]="OutOfDateWithSelf",f[f.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",f[f.UpstreamOutOfDate=7]="UpstreamOutOfDate",f[f.UpstreamBlocked=8]="UpstreamBlocked",f[f.ComputingUpstream=9]="ComputingUpstream",f[f.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",f[f.ContainerOnly=11]="ContainerOnly"})(e.UpToDateStatusType||(e.UpToDateStatusType={}));function n(f){return e.fileExtensionIs(f,".json")?f:e.combinePaths(f,"tsconfig.json")}e.resolveConfigFileProjectName=n}(jr||(jr={})),function(e){var n=new Date(-864e13),f=new Date(864e13),p;(function(de){de[de.None=0]="None",de[de.Success=1]="Success",de[de.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",de[de.ConfigFileErrors=4]="ConfigFileErrors",de[de.SyntaxErrors=8]="SyntaxErrors",de[de.TypeErrors=16]="TypeErrors",de[de.DeclarationEmitErrors=32]="DeclarationEmitErrors",de[de.EmitErrors=64]="EmitErrors",de[de.AnyErrors=124]="AnyErrors"})(p||(p={}));function a(de,Fe,$e){var Sr=de.get(Fe),Pr;return Sr||(Pr=$e(),de.set(Fe,Pr)),Sr||Pr}function d(de,Fe){return a(de,Fe,function(){return new e.Map})}function k(de,Fe){return Fe>de?Fe:de}function J(de){return e.fileExtensionIs(de,".d.ts")}function h(de){return!!de&&!!de.buildOrder}e.isCircularBuildOrder=h;function v(de){return h(de)?de.buildOrder:de}e.getBuildOrderFromAnyBuildOrder=v;function A(de,Fe){return function($e){var Sr=Fe?"[".concat(e.formatColorAndReset(e.getLocaleTimeString(de),e.ForegroundColorEscapeSequences.Grey),"] "):"".concat(e.getLocaleTimeString(de)," - ");Sr+="".concat(e.flattenDiagnosticMessageText($e.messageText,de.newLine)).concat(de.newLine+de.newLine),de.write(Sr)}}e.createBuilderStatusReporter=A;function z(de,Fe,$e,Sr){var Pr=e.createProgramHost(de,Fe);return Pr.getModifiedTime=de.getModifiedTime?function(He){return de.getModifiedTime(He)}:e.returnUndefined,Pr.setModifiedTime=de.setModifiedTime?function(He,pr){return de.setModifiedTime(He,pr)}:e.noop,Pr.deleteFile=de.deleteFile?function(He){return de.deleteFile(He)}:e.noop,Pr.reportDiagnostic=$e||e.createDiagnosticReporter(de),Pr.reportSolutionBuilderStatus=Sr||A(de),Pr.now=e.maybeBind(de,de.now),Pr}function ie(de,Fe,$e,Sr,Pr){de===void 0&&(de=e.sys);var He=z(de,Fe,$e,Sr);return He.reportErrorSummary=Pr,He}e.createSolutionBuilderHost=ie;function b(de,Fe,$e,Sr,Pr){de===void 0&&(de=e.sys);var He=z(de,Fe,$e,Sr),pr=e.createWatchHost(de,Pr);return e.copyProperties(He,pr),He}e.createSolutionBuilderWithWatchHost=b;function M(de){var Fe={};return e.commonOptionsWithBuild.forEach(function($e){e.hasProperty(de,$e.name)&&(Fe[$e.name]=de[$e.name])}),Fe}function S(de,Fe,$e){return Ye(!1,de,Fe,$e)}e.createSolutionBuilder=S;function B(de,Fe,$e,Sr){return Ye(!0,de,Fe,$e,Sr)}e.createSolutionBuilderWithWatch=B;function H(de,Fe,$e,Sr,Pr){var He=Fe,pr=Fe,Jr=He.getCurrentDirectory(),ze=e.createGetCanonicalFileName(He.useCaseSensitiveFileNames()),Lr=M(Sr),Yr=e.createCompilerHostFromProgramHost(He,function(){return Or.projectCompilerOptions});e.setGetSourceFileAsHashVersioned(Yr,He),Yr.getParsedCommandLine=function(sr){return q(Or,sr,w(Or,sr))},Yr.resolveModuleNames=e.maybeBind(He,He.resolveModuleNames),Yr.resolveTypeReferenceDirectives=e.maybeBind(He,He.resolveTypeReferenceDirectives);var lt=Yr.resolveModuleNames?void 0:e.createModuleResolutionCache(Jr,ze),tt=Yr.resolveTypeReferenceDirectives?void 0:e.createTypeReferenceDirectiveResolutionCache(Jr,ze,void 0,lt==null?void 0:lt.getPackageJsonInfoCache());if(!Yr.resolveModuleNames){var Rt=function(sr,ye,or,fe){return e.resolveModuleName(sr,or,Or.projectCompilerOptions,Yr,lt,fe,ye).resolvedModule};Yr.resolveModuleNames=function(sr,ye,or,fe,je,Ee){return e.loadWithModeAwareCache(e.Debug.checkEachDefined(sr),e.Debug.checkDefined(Ee),ye,fe,Rt)},Yr.getModuleResolutionCache=function(){return lt}}if(!Yr.resolveTypeReferenceDirectives){var cn=function(sr,ye,or){return e.resolveTypeReferenceDirective(sr,ye,Or.projectCompilerOptions,Yr,or,Or.typeReferenceDirectiveResolutionCache).resolvedTypeReferenceDirective};Yr.resolveTypeReferenceDirectives=function(sr,ye,or){return e.loadWithLocalCache(e.Debug.checkEachDefined(sr),ye,or,cn)}}var bn=e.createWatchFactory(pr,Sr),In=bn.watchFile,zn=bn.watchDirectory,ir=bn.writeLog,Or={host:He,hostWithWatch:pr,currentDirectory:Jr,getCanonicalFileName:ze,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(He),write:e.maybeBind(He,He.trace),options:Sr,baseCompilerOptions:Lr,rootNames:$e,baseWatchOptions:Pr,resolvedConfigFilePaths:new e.Map,configFileCache:new e.Map,projectStatus:new e.Map,buildInfoChecked:new e.Map,extendedConfigCache:new e.Map,builderPrograms:new e.Map,diagnostics:new e.Map,projectPendingBuild:new e.Map,projectErrorsReported:new e.Map,compilerHost:Yr,moduleResolutionCache:lt,typeReferenceDirectiveResolutionCache:tt,buildOrder:void 0,readFileWithCache:function(sr){return He.readFile(sr)},projectCompilerOptions:Lr,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:de,currentInvalidatedProject:void 0,watch:de,allWatchedWildcardDirectories:new e.Map,allWatchedInputFiles:new e.Map,allWatchedConfigFiles:new e.Map,allWatchedExtendedConfigFiles:new e.Map,allWatchedPackageJsonFiles:new e.Map,lastCachedPackageJsonLookups:new e.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:In,watchDirectory:zn,writeLog:ir};return Or}function I(de,Fe){return e.toPath(Fe,de.currentDirectory,de.getCanonicalFileName)}function w(de,Fe){var $e=de.resolvedConfigFilePaths,Sr=$e.get(Fe);if(Sr!==void 0)return Sr;var Pr=I(de,Fe);return $e.set(Fe,Pr),Pr}function x(de){return!!de.options}function O(de,Fe){var $e=de.configFileCache.get(Fe);return $e&&x($e)?$e:void 0}function q(de,Fe,$e){var Sr=de.configFileCache,Pr=Sr.get($e);if(Pr)return x(Pr)?Pr:void 0;var He,pr=de.parseConfigFileHost,Jr=de.baseCompilerOptions,ze=de.baseWatchOptions,Lr=de.extendedConfigCache,Yr=de.host,lt;return Yr.getParsedCommandLine?(lt=Yr.getParsedCommandLine(Fe),lt||(He=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,Fe))):(pr.onUnRecoverableConfigFileDiagnostic=function(tt){return He=tt},lt=e.getParsedCommandLineOfConfigFile(Fe,Jr,pr,Lr,ze),pr.onUnRecoverableConfigFileDiagnostic=e.noop),Sr.set($e,lt||He),lt}function Z(de,Fe){return e.resolveConfigFileProjectName(e.resolvePath(de.currentDirectory,Fe))}function ne(de,Fe){for(var $e=new e.Map,Sr=new e.Map,Pr=[],He,pr,Jr=0,ze=Fe;Jr<ze.length;Jr++){var Lr=ze[Jr];Yr(Lr)}return pr?{buildOrder:He||e.emptyArray,circularDiagnostics:pr}:He||e.emptyArray;function Yr(lt,tt){var Rt=w(de,lt);if(!Sr.has(Rt)){if($e.has(Rt)){tt||(pr||(pr=[])).push(e.createCompilerDiagnostic(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,Pr.join(`\r
  236. `)));return}$e.set(Rt,!0),Pr.push(lt);var cn=q(de,lt,Rt);if(cn&&cn.projectReferences)for(var bn=0,In=cn.projectReferences;bn<In.length;bn++){var zn=In[bn],ir=Z(de,zn.path);Yr(ir,tt||zn.circular)}Pr.pop(),Sr.set(Rt,!0),(He||(He=[])).push(lt)}}}function F(de){return de.buildOrder||Q(de)}function Q(de){var Fe=ne(de,de.rootNames.map(function(Pr){return Z(de,Pr)}));de.resolvedConfigFilePaths.clear();var $e=new e.Map(v(Fe).map(function(Pr){return[w(de,Pr),!0]})),Sr={onDeleteValue:e.noop};return e.mutateMapSkippingNewValues(de.configFileCache,$e,Sr),e.mutateMapSkippingNewValues(de.projectStatus,$e,Sr),e.mutateMapSkippingNewValues(de.buildInfoChecked,$e,Sr),e.mutateMapSkippingNewValues(de.builderPrograms,$e,Sr),e.mutateMapSkippingNewValues(de.diagnostics,$e,Sr),e.mutateMapSkippingNewValues(de.projectPendingBuild,$e,Sr),e.mutateMapSkippingNewValues(de.projectErrorsReported,$e,Sr),de.watch&&(e.mutateMapSkippingNewValues(de.allWatchedConfigFiles,$e,{onDeleteValue:e.closeFileWatcher}),de.allWatchedExtendedConfigFiles.forEach(function(Pr){Pr.projects.forEach(function(He){$e.has(He)||Pr.projects.delete(He)}),Pr.close()}),e.mutateMapSkippingNewValues(de.allWatchedWildcardDirectories,$e,{onDeleteValue:function(Pr){return Pr.forEach(e.closeFileWatcherOf)}}),e.mutateMapSkippingNewValues(de.allWatchedInputFiles,$e,{onDeleteValue:function(Pr){return Pr.forEach(e.closeFileWatcher)}}),e.mutateMapSkippingNewValues(de.allWatchedPackageJsonFiles,$e,{onDeleteValue:function(Pr){return Pr.forEach(e.closeFileWatcher)}})),de.buildOrder=Fe}function V(de,Fe,$e){var Sr=Fe&&Z(de,Fe),Pr=F(de);if(h(Pr))return Pr;if(Sr){var He=w(de,Sr),pr=e.findIndex(Pr,function(ze){return w(de,ze)===He});if(pr===-1)return}var Jr=Sr?ne(de,[Sr]):Pr;return e.Debug.assert(!h(Jr)),e.Debug.assert(!$e||Sr!==void 0),e.Debug.assert(!$e||Jr[Jr.length-1]===Sr),$e?Jr.slice(0,Jr.length-1):Jr}function re(de){de.cache&&T(de);var Fe=de.compilerHost,$e=de.host,Sr=de.readFileWithCache,Pr=Fe.getSourceFile,He=e.changeCompilerHostLikeToUseCache($e,function(Rt){return I(de,Rt)},function(){for(var Rt=[],cn=0;cn<arguments.length;cn++)Rt[cn]=arguments[cn];return Pr.call.apply(Pr,Gt([Fe],Rt,!1))}),pr=He.originalReadFile,Jr=He.originalFileExists,ze=He.originalDirectoryExists,Lr=He.originalCreateDirectory,Yr=He.originalWriteFile,lt=He.getSourceFileWithCache,tt=He.readFileWithCache;de.readFileWithCache=tt,Fe.getSourceFile=lt,de.cache={originalReadFile:pr,originalFileExists:Jr,originalDirectoryExists:ze,originalCreateDirectory:Lr,originalWriteFile:Yr,originalReadFileWithCache:Sr,originalGetSourceFile:Pr}}function T(de){if(de.cache){var Fe=de.cache,$e=de.host,Sr=de.compilerHost,Pr=de.extendedConfigCache,He=de.moduleResolutionCache,pr=de.typeReferenceDirectiveResolutionCache;$e.readFile=Fe.originalReadFile,$e.fileExists=Fe.originalFileExists,$e.directoryExists=Fe.originalDirectoryExists,$e.createDirectory=Fe.originalCreateDirectory,$e.writeFile=Fe.originalWriteFile,Sr.getSourceFile=Fe.originalGetSourceFile,de.readFileWithCache=Fe.originalReadFileWithCache,Pr.clear(),He==null||He.clear(),pr==null||pr.clear(),de.cache=void 0}}function N(de,Fe){de.projectStatus.delete(Fe),de.diagnostics.delete(Fe)}function y(de,Fe,$e){var Sr=de.projectPendingBuild,Pr=Sr.get(Fe);(Pr===void 0||Pr<$e)&&Sr.set(Fe,$e)}function D(de,Fe){if(de.allProjectBuildPending){de.allProjectBuildPending=!1,de.options.watch&&lr(de,e.Diagnostics.Starting_compilation_in_watch_mode),re(de);var $e=v(F(de));$e.forEach(function(Sr){return de.projectPendingBuild.set(w(de,Sr),e.ConfigFileProgramReloadLevel.None)}),Fe&&Fe.throwIfCancellationRequested()}}var C;(function(de){de[de.Build=0]="Build",de[de.UpdateBundle=1]="UpdateBundle",de[de.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"})(C=e.InvalidatedProjectKind||(e.InvalidatedProjectKind={}));function m(de,Fe){return de.projectPendingBuild.delete(Fe),de.currentInvalidatedProject=void 0,de.diagnostics.has(Fe)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function u(de,Fe,$e,Sr,Pr){var He=!0;return{kind:C.UpdateOutputFileStamps,project:Fe,projectPath:$e,buildOrder:Pr,getCompilerOptions:function(){return Sr.options},getCurrentDirectory:function(){return de.currentDirectory},updateOutputFileStatmps:function(){Te(de,Sr,$e),He=!1},done:function(){return He&&Te(de,Sr,$e),m(de,$e)}}}var g;(function(de){de[de.CreateProgram=0]="CreateProgram",de[de.SyntaxDiagnostics=1]="SyntaxDiagnostics",de[de.SemanticDiagnostics=2]="SemanticDiagnostics",de[de.Emit=3]="Emit",de[de.EmitBundle=4]="EmitBundle",de[de.EmitBuildInfo=5]="EmitBuildInfo",de[de.BuildInvalidatedProjectOfBundle=6]="BuildInvalidatedProjectOfBundle",de[de.QueueReferencingProjects=7]="QueueReferencingProjects",de[de.Done=8]="Done"})(g||(g={}));function P(de,Fe,$e,Sr,Pr,He,pr){var Jr=de===C.Build?g.CreateProgram:g.EmitBundle,ze,Lr,Yr;return de===C.Build?{kind:de,project:$e,projectPath:Sr,buildOrder:pr,getCompilerOptions:function(){return He.options},getCurrentDirectory:function(){return Fe.currentDirectory},getBuilderProgram:function(){return tt(e.identity)},getProgram:function(){return tt(function(fe){return fe.getProgramOrUndefined()})},getSourceFile:function(fe){return tt(function(je){return je.getSourceFile(fe)})},getSourceFiles:function(){return Rt(function(fe){return fe.getSourceFiles()})},getOptionsDiagnostics:function(fe){return Rt(function(je){return je.getOptionsDiagnostics(fe)})},getGlobalDiagnostics:function(fe){return Rt(function(je){return je.getGlobalDiagnostics(fe)})},getConfigFileParsingDiagnostics:function(){return Rt(function(fe){return fe.getConfigFileParsingDiagnostics()})},getSyntacticDiagnostics:function(fe,je){return Rt(function(Ee){return Ee.getSyntacticDiagnostics(fe,je)})},getAllDependencies:function(fe){return Rt(function(je){return je.getAllDependencies(fe)})},getSemanticDiagnostics:function(fe,je){return Rt(function(Ee){return Ee.getSemanticDiagnostics(fe,je)})},getSemanticDiagnosticsOfNextAffectedFile:function(fe,je){return tt(function(Ee){return Ee.getSemanticDiagnosticsOfNextAffectedFile&&Ee.getSemanticDiagnosticsOfNextAffectedFile(fe,je)})},emit:function(fe,je,Ee,We,$){if(fe||We)return tt(function(Ne){var me,Ze;return Ne.emit(fe,je,Ee,We,$||((Ze=(me=Fe.host).getCustomTransformers)===null||Ze===void 0?void 0:Ze.call(me,$e)))});if(or(g.SemanticDiagnostics,Ee),Jr===g.EmitBuildInfo)return Or(je,Ee);if(Jr===g.Emit)return ir(je,Ee,$)},done:lt}:{kind:de,project:$e,projectPath:Sr,buildOrder:pr,getCompilerOptions:function(){return He.options},getCurrentDirectory:function(){return Fe.currentDirectory},emit:function(fe,je){return Jr!==g.EmitBundle?Yr:ye(fe,je)},done:lt};function lt(fe,je,Ee){return or(g.Done,fe,je,Ee),m(Fe,Sr)}function tt(fe){return or(g.CreateProgram),ze&&fe(ze)}function Rt(fe){return tt(fe)||e.emptyArray}function cn(){var fe,je;if(e.Debug.assert(ze===void 0),Fe.options.dry){br(Fe,e.Diagnostics.A_non_dry_build_would_build_project_0,$e),Lr=p.Success,Jr=g.QueueReferencingProjects;return}if(Fe.options.verbose&&br(Fe,e.Diagnostics.Building_project_0,$e),He.fileNames.length===0){kr(Fe,Sr,e.getConfigFileParsingDiagnostics(He)),Lr=p.None,Jr=g.QueueReferencingProjects;return}var Ee=Fe.host,We=Fe.compilerHost;Fe.projectCompilerOptions=He.options,(fe=Fe.moduleResolutionCache)===null||fe===void 0||fe.update(He.options),(je=Fe.typeReferenceDirectiveResolutionCache)===null||je===void 0||je.update(He.options),ze=Ee.createProgram(He.fileNames,He.options,We,j(Fe,Sr,He),e.getConfigFileParsingDiagnostics(He),He.projectReferences),Fe.watch&&(Fe.lastCachedPackageJsonLookups.set(Sr,Fe.moduleResolutionCache&&e.map(Fe.moduleResolutionCache.getPackageJsonInfoCache().entries(),function($){var Ne=$[0],me=$[1];return[Fe.host.realpath&&me?I(Fe,Fe.host.realpath(Ne)):Ne,me]})),Fe.builderPrograms.set(Sr,ze)),Jr++}function bn(fe,je,Ee){var We;fe.length?(We=Ce(Fe,Sr,ze,He,fe,je,Ee),Lr=We.buildResult,Jr=We.step):Jr++}function In(fe){e.Debug.assertIsDefined(ze),bn(Gt(Gt(Gt(Gt([],ze.getConfigFileParsingDiagnostics(),!0),ze.getOptionsDiagnostics(fe),!0),ze.getGlobalDiagnostics(fe),!0),ze.getSyntacticDiagnostics(void 0,fe),!0),p.SyntaxErrors,"Syntactic")}function zn(fe){bn(e.Debug.checkDefined(ze).getSemanticDiagnostics(void 0,fe),p.TypeErrors,"Semantic")}function ir(fe,je,Ee){var We,$,Ne;e.Debug.assertIsDefined(ze),e.Debug.assert(Jr===g.Emit),ze.backupState();var me,Ze=function(zr){return(me||(me=[])).push(zr)},Cr=[],fr=e.emitFilesAndReportErrors(ze,Ze,void 0,void 0,function(zr,gt,vt){return Cr.push({name:zr,text:gt,writeByteOrderMark:vt})},je,!1,Ee||((Ne=($=Fe.host).getCustomTransformers)===null||Ne===void 0?void 0:Ne.call($,$e))).emitResult;if(me)return ze.restoreState(),We=Ce(Fe,Sr,ze,He,me,p.DeclarationEmitErrors,"Declaration file"),Lr=We.buildResult,Jr=We.step,{emitSkipped:!0,diagnostics:fr.diagnostics};var dr=Fe.host,et=Fe.compilerHost,yt=p.DeclarationOutputUnchanged,Vr=n,tr=!1,xr=e.createDiagnosticCollection(),Nr=new e.Map;return Cr.forEach(function(zr){var gt=zr.name,vt=zr.text,ut=zr.writeByteOrderMark,ht;!tr&&J(gt)&&(dr.fileExists(gt)&&Fe.readFileWithCache(gt)===vt?ht=dr.getModifiedTime(gt):(yt&=~p.DeclarationOutputUnchanged,tr=!0)),Nr.set(I(Fe,gt),gt),e.writeFile(fe?{writeFile:fe}:et,xr,gt,vt,ut),ht!==void 0&&(Vr=k(ht,Vr))}),sr(xr,Nr,Vr,tr,Cr.length?Cr[0].name:e.getFirstProjectOutput(He,!dr.useCaseSensitiveFileNames()),yt),fr}function Or(fe,je){e.Debug.assertIsDefined(ze),e.Debug.assert(Jr===g.EmitBuildInfo);var Ee=ze.emitBuildInfo(fe,je);return Ee.diagnostics.length&&(Ar(Fe,Ee.diagnostics),Fe.diagnostics.set(Sr,Gt(Gt([],Fe.diagnostics.get(Sr),!0),Ee.diagnostics,!0)),Lr=p.EmitErrors&Lr),Ee.emittedFiles&&Fe.write&&Ee.emittedFiles.forEach(function(We){return X(Fe,He,We)}),Se(Fe,ze,He),Jr=g.QueueReferencingProjects,Ee}function sr(fe,je,Ee,We,$,Ne){var me,Ze=fe.getDiagnostics();if(Ze.length)return me=Ce(Fe,Sr,ze,He,Ze,p.EmitErrors,"Emit"),Lr=me.buildResult,Jr=me.step,Ze;Fe.write&&je.forEach(function(fr){return X(Fe,He,fr)});var Cr=K(Fe,He,Ee,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,je);return Fe.diagnostics.delete(Sr),Fe.projectStatus.set(Sr,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:We?f:Cr,oldestOutputFileName:$}),Se(Fe,ze,He),Jr=g.QueueReferencingProjects,Lr=Ne,Ze}function ye(fe,je){var Ee,We;if(e.Debug.assert(de===C.UpdateBundle),Fe.options.dry){br(Fe,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,$e),Lr=p.Success,Jr=g.QueueReferencingProjects;return}Fe.options.verbose&&br(Fe,e.Diagnostics.Updating_output_of_project_0,$e);var $=Fe.compilerHost;Fe.projectCompilerOptions=He.options;var Ne=e.emitUsingBuildInfo(He,$,function(fr){var dr=Z(Fe,fr.path);return q(Fe,dr,w(Fe,dr))},je||((We=(Ee=Fe.host).getCustomTransformers)===null||We===void 0?void 0:We.call(Ee,$e)));if(e.isString(Ne))return br(Fe,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,$e,Dr(Fe,Ne)),Jr=g.BuildInvalidatedProjectOfBundle,Yr=P(C.Build,Fe,$e,Sr,Pr,He,pr);e.Debug.assert(!!Ne.length);var me=e.createDiagnosticCollection(),Ze=new e.Map;Ne.forEach(function(fr){var dr=fr.name,et=fr.text,yt=fr.writeByteOrderMark;Ze.set(I(Fe,dr),dr),e.writeFile(fe?{writeFile:fe}:$,me,dr,et,yt)});var Cr=sr(me,Ze,n,!1,Ne[0].name,p.DeclarationOutputUnchanged);return{emitSkipped:!1,diagnostics:Cr}}function or(fe,je,Ee,We){for(;Jr<=fe&&Jr<g.Done;){var $=Jr;switch(Jr){case g.CreateProgram:cn();break;case g.SyntaxDiagnostics:In(je);break;case g.SemanticDiagnostics:zn(je);break;case g.Emit:ir(Ee,je,We);break;case g.EmitBuildInfo:Or(Ee,je);break;case g.EmitBundle:ye(Ee,We);break;case g.BuildInvalidatedProjectOfBundle:e.Debug.checkDefined(Yr).done(je,Ee,We),Jr=g.Done;break;case g.QueueReferencingProjects:ge(Fe,$e,Sr,Pr,He,pr,e.Debug.checkDefined(Lr)),Jr++;break;case g.Done:default:e.assertType(Jr)}e.Debug.assert(Jr>$)}}}function te(de,Fe,$e){var Sr=de.options;return Fe.type!==e.UpToDateStatusType.OutOfDateWithPrepend||Sr.force?!0:$e.fileNames.length===0||!!e.getConfigFileParsingDiagnostics($e).length||!e.isIncrementalCompilation($e.options)}function ue(de,Fe,$e){if(de.projectPendingBuild.size&&!h(Fe)){if(de.currentInvalidatedProject)return e.arrayIsEqualTo(de.currentInvalidatedProject.buildOrder,Fe)?de.currentInvalidatedProject:void 0;for(var Sr=de.options,Pr=de.projectPendingBuild,He=0;He<Fe.length;He++){var pr=Fe[He],Jr=w(de,pr),ze=de.projectPendingBuild.get(Jr);if(ze!==void 0){$e&&($e=!1,Hr(de,Fe));var Lr=q(de,pr,Jr);if(!Lr){Ke(de,Jr),Pr.delete(Jr);continue}ze===e.ConfigFileProgramReloadLevel.Full?(Ve(de,pr,Jr,Lr),_e(de,Jr,Lr),Le(de,pr,Jr,Lr),qe(de,pr,Jr,Lr),Xe(de,pr,Jr,Lr)):ze===e.ConfigFileProgramReloadLevel.Partial&&(Lr.fileNames=e.getFileNamesFromConfigSpecs(Lr.options.configFile.configFileSpecs,e.getDirectoryPath(pr),Lr.options,de.parseConfigFileHost),e.updateErrorForNoInputFiles(Lr.fileNames,pr,Lr.options.configFile.configFileSpecs,Lr.errors,e.canJsonReportNoInputFiles(Lr.raw)),qe(de,pr,Jr,Lr),Xe(de,pr,Jr,Lr));var Yr=U(de,Lr,Jr);if(gr(de,pr,Yr),!Sr.force){if(Yr.type===e.UpToDateStatusType.UpToDate){kr(de,Jr,e.getConfigFileParsingDiagnostics(Lr)),Pr.delete(Jr),Sr.dry&&br(de,e.Diagnostics.Project_0_is_up_to_date,pr);continue}if(Yr.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes)return kr(de,Jr,e.getConfigFileParsingDiagnostics(Lr)),u(de,pr,Jr,Lr,Fe)}if(Yr.type===e.UpToDateStatusType.UpstreamBlocked){kr(de,Jr,e.getConfigFileParsingDiagnostics(Lr)),Pr.delete(Jr),Sr.verbose&&br(de,Yr.upstreamProjectBlocked?e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,pr,Yr.upstreamProjectName);continue}if(Yr.type===e.UpToDateStatusType.ContainerOnly){kr(de,Jr,e.getConfigFileParsingDiagnostics(Lr)),Pr.delete(Jr);continue}return P(te(de,Yr,Lr)?C.Build:C.UpdateBundle,de,pr,Jr,He,Lr,Fe)}}}}function X(de,Fe,$e){var Sr=de.write;Sr&&Fe.options.listEmittedFiles&&Sr("TSFILE: ".concat($e))}function j(de,Fe,$e){var Sr=de.options,Pr=de.builderPrograms,He=de.compilerHost;if(!Sr.force){var pr=Pr.get(Fe);return pr||e.readBuilderProgram($e.options,He)}}function Se(de,Fe,$e){Fe?(Fe&&de.write&&e.listFiles(Fe,de.write),de.host.afterProgramEmitAndDiagnostics&&de.host.afterProgramEmitAndDiagnostics(Fe),Fe.releaseProgram()):de.host.afterEmitBundle&&de.host.afterEmitBundle($e),de.projectCompilerOptions=de.baseCompilerOptions}function Ce(de,Fe,$e,Sr,Pr,He,pr){var Jr=!(He&p.SyntaxErrors)&&$e&&!e.outFile($e.getCompilerOptions());return kr(de,Fe,Pr),de.projectStatus.set(Fe,{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(pr," errors")}),Jr?{buildResult:He,step:g.EmitBuildInfo}:(Se(de,$e,Sr),{buildResult:He,step:g.QueueReferencingProjects})}function R(de,Fe,$e,Sr){var Pr=e.getModifiedTime(de.host,Fe);if($e<Pr)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:Sr,newerInputFileName:Fe}}function Y(de,Fe,$e){for(var Sr=!!de.options.force,Pr=void 0,He=n,pr=de.host,Jr=0,ze=Fe.fileNames;Jr<ze.length;Jr++){var Lr=ze[Jr];if(!pr.fileExists(Lr))return{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(Lr," does not exist")};if(!Sr){var Yr=e.getModifiedTime(pr,Lr);Yr>He&&(Pr=Lr,He=Yr)}}if(!Fe.fileNames.length&&!e.canJsonReportNoInputFiles(Fe.raw))return{type:e.UpToDateStatusType.ContainerOnly};var lt=e.getAllProjectOutputs(Fe,!pr.useCaseSensitiveFileNames()),tt="(none)",Rt=f,cn="(none)",bn=n,In,zn=n,ir=!1;if(!Sr)for(var Or=0,sr=lt;Or<sr.length;Or++){var ye=sr[Or];if(!pr.fileExists(ye)){In=ye;break}var or=e.getModifiedTime(pr,ye);if(or<Rt&&(Rt=or,tt=ye),or<He){ir=!0;break}if(or>bn&&(bn=or,cn=ye),J(ye)){var fe=e.getModifiedTime(pr,ye);zn=k(zn,fe)}}var je=!1,Ee=!1,We;if(Fe.projectReferences){de.projectStatus.set($e,{type:e.UpToDateStatusType.ComputingUpstream});for(var $=0,Ne=Fe.projectReferences;$<Ne.length;$++){var me=Ne[$];Ee=Ee||!!me.prepend;var Ze=e.resolveProjectReferencePath(me),Cr=w(de,Ze),fr=U(de,q(de,Ze,Cr),Cr);if(!(fr.type===e.UpToDateStatusType.ComputingUpstream||fr.type===e.UpToDateStatusType.ContainerOnly)){if(fr.type===e.UpToDateStatusType.Unbuildable||fr.type===e.UpToDateStatusType.UpstreamBlocked)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:me.path,upstreamProjectBlocked:fr.type===e.UpToDateStatusType.UpstreamBlocked};if(fr.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:me.path};if(!Sr&&!In){if(fr.newestInputFileTime&&fr.newestInputFileTime<=Rt)continue;if(fr.newestDeclarationFileContentChangedTime&&fr.newestDeclarationFileContentChangedTime<=Rt){je=!0,We=me.path;continue}return e.Debug.assert(tt!==void 0,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:tt,newerProjectName:me.path}}}}}if(In!==void 0)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:In};if(ir)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:tt,newerInputFileName:Pr};var dr=R(de,Fe.options.configFilePath,Rt,tt);if(dr)return dr;var et=e.forEach(Fe.options.configFile.extendedSourceFiles||e.emptyArray,function(Nr){return R(de,Nr,Rt,tt)});if(et)return et;var yt=e.forEach(de.lastCachedPackageJsonLookups.get($e)||e.emptyArray,function(Nr){var zr=Nr[0];return R(de,zr,Rt,tt)});if(yt)return yt;if(!Sr&&!de.buildInfoChecked.has($e)){de.buildInfoChecked.set($e,!0);var Vr=e.getTsBuildInfoEmitOutputFilePath(Fe.options);if(Vr){var tr=de.readFileWithCache(Vr),xr=tr&&e.getBuildInfo(tr);if(xr&&(xr.bundle||xr.program)&&xr.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:xr.version}}}return Ee&&je?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:tt,newerProjectName:We}:{type:je?e.UpToDateStatusType.UpToDateWithUpstreamTypes:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:zn,newestInputFileTime:He,newestOutputFileTime:bn,newestInputFileName:Pr,newestOutputFileName:cn,oldestOutputFileName:tt}}function U(de,Fe,$e){if(Fe===void 0)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var Sr=de.projectStatus.get($e);if(Sr!==void 0)return Sr;var Pr=Y(de,Fe,$e);return de.projectStatus.set($e,Pr),Pr}function K(de,Fe,$e,Sr,Pr){if(Fe.options.noEmit)return $e;var He=de.host,pr=e.getAllProjectOutputs(Fe,!He.useCaseSensitiveFileNames());if(!Pr||pr.length!==Pr.size)for(var Jr=!!de.options.verbose,ze=He.now?He.now():new Date,Lr=0,Yr=pr;Lr<Yr.length;Lr++){var lt=Yr[Lr];Pr&&Pr.has(I(de,lt))||(Jr&&(Jr=!1,br(de,Sr,Fe.options.configFilePath)),J(lt)&&($e=k($e,e.getModifiedTime(He,lt))),He.setModifiedTime(lt,ze))}return $e}function Te(de,Fe,$e){if(de.options.dry)return br(de,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,Fe.options.configFilePath);var Sr=K(de,Fe,n,e.Diagnostics.Updating_output_timestamps_of_project_0);de.projectStatus.set($e,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:Sr,oldestOutputFileName:e.getFirstProjectOutput(Fe,!de.host.useCaseSensitiveFileNames())})}function ge(de,Fe,$e,Sr,Pr,He,pr){if(!(pr&p.AnyErrors)&&Pr.options.composite)for(var Jr=Sr+1;Jr<He.length;Jr++){var ze=He[Jr],Lr=w(de,ze);if(!de.projectPendingBuild.has(Lr)){var Yr=q(de,ze,Lr);if(!(!Yr||!Yr.projectReferences))for(var lt=0,tt=Yr.projectReferences;lt<tt.length;lt++){var Rt=tt[lt],cn=Z(de,Rt.path);if(w(de,cn)===$e){var bn=de.projectStatus.get(Lr);if(bn)switch(bn.type){case e.UpToDateStatusType.UpToDate:if(pr&p.DeclarationOutputUnchanged){Rt.prepend?de.projectStatus.set(Lr,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:bn.oldestOutputFileName,newerProjectName:Fe}):bn.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:pr&p.DeclarationOutputUnchanged||de.projectStatus.set(Lr,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:bn.type===e.UpToDateStatusType.OutOfDateWithPrepend?bn.outOfDateOutputFileName:bn.oldestOutputFileName,newerProjectName:Fe});break;case e.UpToDateStatusType.UpstreamBlocked:w(de,Z(de,bn.upstreamProjectName))===$e&&N(de,Lr);break}y(de,Lr,e.ConfigFileProgramReloadLevel.None);break}}}}}function ke(de,Fe,$e,Sr,Pr,He){var pr=V(de,Fe,He);if(!pr)return e.ExitStatus.InvalidProject_OutputsSkipped;D(de,$e);for(var Jr=!0,ze=0;;){var Lr=ue(de,pr,Jr);if(!Lr)break;Jr=!1,Lr.done($e,Sr,Pr==null?void 0:Pr(Lr.project)),de.diagnostics.has(Lr.projectPath)||ze++}return T(de),Me(de,pr),De(de,pr),h(pr)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:pr.some(function(Yr){return de.diagnostics.has(w(de,Yr))})?ze?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function Pe(de,Fe,$e){var Sr=V(de,Fe,$e);if(!Sr)return e.ExitStatus.InvalidProject_OutputsSkipped;if(h(Sr))return Ar(de,Sr.circularDiagnostics),e.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var Pr=de.options,He=de.host,pr=Pr.dry?[]:void 0,Jr=0,ze=Sr;Jr<ze.length;Jr++){var Lr=ze[Jr],Yr=w(de,Lr),lt=q(de,Lr,Yr);if(lt===void 0){Ke(de,Yr);continue}var tt=e.getAllProjectOutputs(lt,!He.useCaseSensitiveFileNames());if(tt.length)for(var Rt=new e.Set(lt.fileNames.map(function(zn){return I(de,zn)})),cn=0,bn=tt;cn<bn.length;cn++){var In=bn[cn];Rt.has(I(de,In))||He.fileExists(In)&&(pr?pr.push(In):(He.deleteFile(In),Ie(de,Yr,e.ConfigFileProgramReloadLevel.None)))}}return pr&&br(de,e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,pr.map(function(zn){return`\r
  237. * `.concat(zn)}).join("")),e.ExitStatus.Success}function Ie(de,Fe,$e){de.host.getParsedCommandLine&&$e===e.ConfigFileProgramReloadLevel.Partial&&($e=e.ConfigFileProgramReloadLevel.Full),$e===e.ConfigFileProgramReloadLevel.Full&&(de.configFileCache.delete(Fe),de.buildOrder=void 0),de.needsSummary=!0,N(de,Fe),y(de,Fe,$e),re(de)}function Ge(de,Fe,$e){de.reportFileChangeDetected=!0,Ie(de,Fe,$e),he(de)}function he(de){var Fe=de.hostWithWatch;!Fe.setTimeout||!Fe.clearTimeout||(de.timerToBuildInvalidatedProject&&Fe.clearTimeout(de.timerToBuildInvalidatedProject),de.timerToBuildInvalidatedProject=Fe.setTimeout(ve,250,de))}function ve(de){de.timerToBuildInvalidatedProject=void 0,de.reportFileChangeDetected&&(de.reportFileChangeDetected=!1,de.projectErrorsReported.clear(),lr(de,e.Diagnostics.File_change_detected_Starting_incremental_compilation));var Fe=F(de),$e=ue(de,Fe,!1);if($e&&($e.done(),de.projectPendingBuild.size)){de.watch&&!de.timerToBuildInvalidatedProject&&he(de);return}T(de),Me(de,Fe)}function Ve(de,Fe,$e,Sr){!de.watch||de.allWatchedConfigFiles.has($e)||de.allWatchedConfigFiles.set($e,de.watchFile(Fe,function(){Ge(de,$e,e.ConfigFileProgramReloadLevel.Full)},e.PollingInterval.High,Sr==null?void 0:Sr.watchOptions,e.WatchType.ConfigFile,Fe))}function _e(de,Fe,$e){e.updateSharedExtendedConfigFileWatcher(Fe,$e==null?void 0:$e.options,de.allWatchedExtendedConfigFiles,function(Sr,Pr){return de.watchFile(Sr,function(){var He;return(He=de.allWatchedExtendedConfigFiles.get(Pr))===null||He===void 0?void 0:He.projects.forEach(function(pr){return Ge(de,pr,e.ConfigFileProgramReloadLevel.Full)})},e.PollingInterval.High,$e==null?void 0:$e.watchOptions,e.WatchType.ExtendedConfigFile)},function(Sr){return I(de,Sr)})}function Le(de,Fe,$e,Sr){de.watch&&e.updateWatchingWildcardDirectories(d(de.allWatchedWildcardDirectories,$e),new e.Map(e.getEntries(Sr.wildcardDirectories)),function(Pr,He){return de.watchDirectory(Pr,function(pr){var Jr;e.isIgnoredFileFromWildCardWatching({watchedDirPath:I(de,Pr),fileOrDirectory:pr,fileOrDirectoryPath:I(de,pr),configFileName:Fe,currentDirectory:de.currentDirectory,options:Sr.options,program:de.builderPrograms.get($e)||((Jr=O(de,$e))===null||Jr===void 0?void 0:Jr.fileNames),useCaseSensitiveFileNames:de.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:function(ze){return de.writeLog(ze)},toPath:function(ze){return I(de,ze)}})||Ge(de,$e,e.ConfigFileProgramReloadLevel.Partial)},He,Sr==null?void 0:Sr.watchOptions,e.WatchType.WildcardDirectory,Fe)})}function qe(de,Fe,$e,Sr){de.watch&&e.mutateMap(d(de.allWatchedInputFiles,$e),e.arrayToMap(Sr.fileNames,function(Pr){return I(de,Pr)}),{createNewValue:function(Pr,He){return de.watchFile(He,function(){return Ge(de,$e,e.ConfigFileProgramReloadLevel.None)},e.PollingInterval.Low,Sr==null?void 0:Sr.watchOptions,e.WatchType.SourceFile,Fe)},onDeleteValue:e.closeFileWatcher})}function Xe(de,Fe,$e,Sr){!de.watch||!de.lastCachedPackageJsonLookups||e.mutateMap(d(de.allWatchedPackageJsonFiles,$e),new e.Map(de.lastCachedPackageJsonLookups.get($e)),{createNewValue:function(Pr,He){return de.watchFile(Pr,function(){return Ge(de,$e,e.ConfigFileProgramReloadLevel.Full)},e.PollingInterval.High,Sr==null?void 0:Sr.watchOptions,e.WatchType.PackageJson,Fe)},onDeleteValue:e.closeFileWatcher})}function De(de,Fe){if(de.watchAllProjectsPending){de.watchAllProjectsPending=!1;for(var $e=0,Sr=v(Fe);$e<Sr.length;$e++){var Pr=Sr[$e],He=w(de,Pr),pr=q(de,Pr,He);Ve(de,Pr,He,pr),_e(de,He,pr),pr&&(Le(de,Pr,He,pr),qe(de,Pr,He,pr),Xe(de,Pr,He,pr))}}}function Ae(de){e.clearMap(de.allWatchedConfigFiles,e.closeFileWatcher),e.clearMap(de.allWatchedExtendedConfigFiles,e.closeFileWatcherOf),e.clearMap(de.allWatchedWildcardDirectories,function(Fe){return e.clearMap(Fe,e.closeFileWatcherOf)}),e.clearMap(de.allWatchedInputFiles,function(Fe){return e.clearMap(Fe,e.closeFileWatcher)}),e.clearMap(de.allWatchedPackageJsonFiles,function(Fe){return e.clearMap(Fe,e.closeFileWatcher)})}function Ye(de,Fe,$e,Sr,Pr){var He=H(de,Fe,$e,Sr,Pr);return{build:function(pr,Jr,ze,Lr){return ke(He,pr,Jr,ze,Lr)},clean:function(pr){return Pe(He,pr)},buildReferences:function(pr,Jr,ze,Lr){return ke(He,pr,Jr,ze,Lr,!0)},cleanReferences:function(pr){return Pe(He,pr,!0)},getNextInvalidatedProject:function(pr){return D(He,pr),ue(He,F(He),!1)},getBuildOrder:function(){return F(He)},getUpToDateStatusOfProject:function(pr){var Jr=Z(He,pr),ze=w(He,Jr);return U(He,q(He,Jr,ze),ze)},invalidateProject:function(pr,Jr){return Ie(He,pr,Jr||e.ConfigFileProgramReloadLevel.None)},buildNextInvalidatedProject:function(){return ve(He)},getAllParsedConfigs:function(){return e.arrayFrom(e.mapDefinedIterator(He.configFileCache.values(),function(pr){return x(pr)?pr:void 0}))},close:function(){return Ae(He)}}}function Dr(de,Fe){return e.convertToRelativePath(Fe,de.currentDirectory,function($e){return de.getCanonicalFileName($e)})}function br(de,Fe){for(var $e=[],Sr=2;Sr<arguments.length;Sr++)$e[Sr-2]=arguments[Sr];de.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,Gt([Fe],$e,!1)))}function lr(de,Fe){for(var $e,Sr,Pr=[],He=2;He<arguments.length;He++)Pr[He-2]=arguments[He];(Sr=($e=de.hostWithWatch).onWatchStatusChange)===null||Sr===void 0||Sr.call($e,e.createCompilerDiagnostic.apply(void 0,Gt([Fe],Pr,!1)),de.host.getNewLine(),de.baseCompilerOptions)}function Ar(de,Fe){var $e=de.host;Fe.forEach(function(Sr){return $e.reportDiagnostic(Sr)})}function kr(de,Fe,$e){Ar(de,$e),de.projectErrorsReported.set(Fe,!0),$e.length&&de.diagnostics.set(Fe,$e)}function Ke(de,Fe){kr(de,Fe,[de.configFileCache.get(Fe)])}function Me(de,Fe){if(de.needsSummary){de.needsSummary=!1;var $e=de.watch||!!de.host.reportErrorSummary,Sr=de.diagnostics,Pr=0;h(Fe)?(Hr(de,Fe.buildOrder),Ar(de,Fe.circularDiagnostics),$e&&(Pr+=e.getErrorCountForSummary(Fe.circularDiagnostics))):(Fe.forEach(function(He){var pr=w(de,He);de.projectErrorsReported.has(pr)||Ar(de,Sr.get(pr)||e.emptyArray)}),$e&&Sr.forEach(function(He){return Pr+=e.getErrorCountForSummary(He)})),de.watch?lr(de,e.getWatchErrorSummaryDiagnosticMessage(Pr),Pr):de.host.reportErrorSummary&&de.host.reportErrorSummary(Pr)}}function Hr(de,Fe){de.options.verbose&&br(de,e.Diagnostics.Projects_in_this_build_Colon_0,Fe.map(function($e){return`\r
  238. * `+Dr(de,$e)}).join(""))}function ur(de,Fe,$e){if(de.options.force&&($e.type===e.UpToDateStatusType.UpToDate||$e.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes))return br(de,e.Diagnostics.Project_0_is_being_forcibly_rebuilt,Dr(de,Fe));switch($e.type){case e.UpToDateStatusType.OutOfDateWithSelf:return br(de,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Dr(de,Fe),Dr(de,$e.outOfDateOutputFileName),Dr(de,$e.newerInputFileName));case e.UpToDateStatusType.OutOfDateWithUpstream:return br(de,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Dr(de,Fe),Dr(de,$e.outOfDateOutputFileName),Dr(de,$e.newerProjectName));case e.UpToDateStatusType.OutputMissing:return br(de,e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Dr(de,Fe),Dr(de,$e.missingOutputFileName));case e.UpToDateStatusType.UpToDate:if($e.newestInputFileTime!==void 0)return br(de,e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,Dr(de,Fe),Dr(de,$e.newestInputFileName||""),Dr(de,$e.oldestOutputFileName||""));break;case e.UpToDateStatusType.OutOfDateWithPrepend:return br(de,e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Dr(de,Fe),Dr(de,$e.newerProjectName));case e.UpToDateStatusType.UpToDateWithUpstreamTypes:return br(de,e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Dr(de,Fe));case e.UpToDateStatusType.UpstreamOutOfDate:return br(de,e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Dr(de,Fe),Dr(de,$e.upstreamProjectName));case e.UpToDateStatusType.UpstreamBlocked:return br(de,$e.upstreamProjectBlocked?e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Dr(de,Fe),Dr(de,$e.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return br(de,e.Diagnostics.Failed_to_parse_file_0_Colon_1,Dr(de,Fe),$e.reason);case e.UpToDateStatusType.TsVersionOutputOfDate:return br(de,e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Dr(de,Fe),$e.version,e.version);case e.UpToDateStatusType.ContainerOnly:case e.UpToDateStatusType.ComputingUpstream:break;default:e.assertType($e)}}function gr(de,Fe,$e){de.options.verbose&&ur(de,Fe,$e)}}(jr||(jr={})),function(e){(function(n){n.ActionSet="action::set",n.ActionInvalidate="action::invalidate",n.ActionPackageInstalled="action::packageInstalled",n.EventTypesRegistry="event::typesRegistry",n.EventBeginInstallTypes="event::beginInstallTypes",n.EventEndInstallTypes="event::endInstallTypes",n.EventInitializationFailed="event::initializationFailed",function(d){d.GlobalCacheLocation="--globalTypingsCacheLocation",d.LogFile="--logFile",d.EnableTelemetry="--enableTelemetry",d.TypingSafeListLocation="--typingSafeListLocation",d.TypesMapLocation="--typesMapLocation",d.NpmLocation="--npmLocation",d.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"}(n.Arguments||(n.Arguments={}));function f(d){return e.sys.args.indexOf(d)>=0}n.hasArgument=f;function p(d){var k=e.sys.args.indexOf(d);return k>=0&&k<e.sys.args.length-1?e.sys.args[k+1]:void 0}n.findArgument=p;function a(){var d=new Date;return"".concat(e.padLeft(d.getHours().toString(),2,"0"),":").concat(e.padLeft(d.getMinutes().toString(),2,"0"),":").concat(e.padLeft(d.getSeconds().toString(),2,"0"),".").concat(e.padLeft(d.getMilliseconds().toString(),3,"0"))}n.nowString=a})(e.server||(e.server={}))}(jr||(jr={})),function(e){(function(n){function f(b,M){var S=new e.Version(e.getProperty(M,"ts".concat(e.versionMajorMinor))||e.getProperty(M,"latest"));return S.compareTo(b.version)<=0}n.isTypingUpToDate=f;var p=["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"];n.prefixedNodeCoreModuleList=p.map(function(b){return"node:".concat(b)}),n.nodeCoreModuleList=Gt(Gt([],p,!0),n.prefixedNodeCoreModuleList,!0),n.nodeCoreModules=new e.Set(n.nodeCoreModuleList);function a(b){return n.nodeCoreModules.has(b)?"node":b}n.nonRelativeModuleNameForTypingCache=a;function d(b,M){var S=e.readConfigFile(M,function(B){return b.readFile(B)});return new e.Map(e.getEntries(S.config))}n.loadSafeList=d;function k(b,M){var S=e.readConfigFile(M,function(B){return b.readFile(B)});if(S.config)return new e.Map(e.getEntries(S.config.simpleMap))}n.loadTypesMap=k;function J(b,M,S,B,H,I,w,x,O){if(!w||!w.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var q=new e.Map;S=e.mapDefined(S,function(ue){var X=e.normalizePath(ue);if(e.hasJSFileExtension(X))return X});var Z=[];w.include&&u(w.include,"Explicitly included types");var ne=w.exclude||[],F=new e.Set(S.map(e.getDirectoryPath));if(F.add(B),F.forEach(function(ue){var X=e.combinePaths(ue,"package.json");g(X,Z);var j=e.combinePaths(ue,"bower.json");g(j,Z);var Se=e.combinePaths(ue,"bower_components");te(Se,Z);var Ce=e.combinePaths(ue,"node_modules");te(Ce,Z)}),w.disableFilenameBasedTypeAcquisition||P(S),x){var Q=e.deduplicate(x.map(a),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive);u(Q,"Inferred typings from unresolved imports")}I.forEach(function(ue,X){var j=O.get(X);q.has(X)&&q.get(X)===void 0&&j!==void 0&&f(ue,j)&&q.set(X,ue.typingLocation)});for(var V=0,re=ne;V<re.length;V++){var T=re[V],N=q.delete(T);N&&M&&M("Typing for ".concat(T," is in exclude list, will be ignored."))}var y=[],D=[];q.forEach(function(ue,X){ue!==void 0?D.push(ue):y.push(X)});var C={cachedTypingPaths:D,newTypingNames:y,filesToWatch:Z};return M&&M("Result: ".concat(JSON.stringify(C))),C;function m(ue){q.has(ue)||q.set(ue,void 0)}function u(ue,X){M&&M("".concat(X,": ").concat(JSON.stringify(ue))),e.forEach(ue,m)}function g(ue,X){if(b.fileExists(ue)){X.push(ue);var j=e.readConfigFile(ue,function(Ce){return b.readFile(Ce)}).config,Se=e.flatMap([j.dependencies,j.devDependencies,j.optionalDependencies,j.peerDependencies],e.getOwnKeys);u(Se,"Typing names in '".concat(ue,"' dependencies"))}}function P(ue){var X=e.mapDefined(ue,function(Se){if(e.hasJSFileExtension(Se)){var Ce=e.removeFileExtension(e.getBaseFileName(Se.toLowerCase())),R=e.removeMinAndVersionNumbers(Ce);return H.get(R)}});X.length&&u(X,"Inferred typings from file names");var j=e.some(ue,function(Se){return e.fileExtensionIs(Se,".jsx")});j&&(M&&M("Inferred 'react' typings due to presence of '.jsx' extension"),m("react"))}function te(ue,X){if(X.push(ue),!!b.directoryExists(ue)){var j=b.readDirectory(ue,[".json"],void 0,void 0,2);M&&M("Searching for typing names in ".concat(ue,"; all files: ").concat(JSON.stringify(j)));for(var Se=[],Ce=0,R=j;Ce<R.length;Ce++){var Y=R[Ce],U=e.normalizePath(Y),K=e.getBaseFileName(U);if(!(K!=="package.json"&&K!=="bower.json")){var Te=e.readConfigFile(U,function(Ie){return b.readFile(Ie)}),ge=Te.config;if(!(K==="package.json"&&ge._requiredBy&&e.filter(ge._requiredBy,function(Ie){return Ie[0]==="#"||Ie==="/"}).length===0)&&ge.name){var ke=ge.types||ge.typings;if(ke){var Pe=e.getNormalizedAbsolutePath(ke,e.getDirectoryPath(U));M&&M(" Package '".concat(ge.name,"' provides its own types.")),q.set(ge.name,Pe)}else Se.push(ge.name)}}}u(Se," Found package names")}}}n.discoverTypings=J,function(b){b[b.Ok=0]="Ok",b[b.EmptyName=1]="EmptyName",b[b.NameTooLong=2]="NameTooLong",b[b.NameStartsWithDot=3]="NameStartsWithDot",b[b.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",b[b.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters"}(n.NameValidationResult||(n.NameValidationResult={}));var h=214;function v(b){return A(b,!0)}n.validatePackageName=v;function A(b,M){if(!b)return 1;if(b.length>h)return 2;if(b.charCodeAt(0)===46)return 3;if(b.charCodeAt(0)===95)return 4;if(M){var S=/^@([^/]+)\/([^/]+)$/.exec(b);if(S){var B=A(S[1],!1);if(B!==0)return{name:S[1],isScopeName:!0,result:B};var H=A(S[2],!1);return H!==0?{name:S[2],isScopeName:!1,result:H}:0}}return encodeURIComponent(b)!==b?5:0}function z(b,M){return typeof b=="object"?ie(M,b.result,b.name,b.isScopeName):ie(M,b,M,!1)}n.renderPackageNameValidationFailure=z;function ie(b,M,S,B){var H=B?"Scope":"Package";switch(M){case 1:return"'".concat(b,"':: ").concat(H," name '").concat(S,"' cannot be empty");case 2:return"'".concat(b,"':: ").concat(H," name '").concat(S,"' should be less than ").concat(h," characters");case 3:return"'".concat(b,"':: ").concat(H," name '").concat(S,"' cannot start with '.'");case 4:return"'".concat(b,"':: ").concat(H," name '").concat(S,"' cannot start with '_'");case 5:return"'".concat(b,"':: ").concat(H," name '").concat(S,"' contains non URI safe characters");case 0:return e.Debug.fail();default:throw e.Debug.assertNever(M)}}})(e.JsTyping||(e.JsTyping={}))}(jr||(jr={})),function(e){(function(a){var d=function(){function J(h){this.text=h}return J.prototype.getText=function(h,v){return h===0&&v===this.text.length?this.text:this.text.substring(h,v)},J.prototype.getLength=function(){return this.text.length},J.prototype.getChangeRange=function(){},J}();function k(J){return new d(J)}a.fromString=k})(e.ScriptSnapshot||(e.ScriptSnapshot={})),function(a){a[a.Dependencies=1]="Dependencies",a[a.DevDependencies=2]="DevDependencies",a[a.PeerDependencies=4]="PeerDependencies",a[a.OptionalDependencies=8]="OptionalDependencies",a[a.All=15]="All"}(e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={})),function(a){a[a.Off=0]="Off",a[a.On=1]="On",a[a.Auto=2]="Auto"}(e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={})),function(a){a[a.Semantic=0]="Semantic",a[a.PartialSemantic=1]="PartialSemantic",a[a.Syntactic=2]="Syntactic"}(e.LanguageServiceMode||(e.LanguageServiceMode={})),e.emptyOptions={},function(a){a.Original="original",a.TwentyTwenty="2020"}(e.SemanticClassificationFormat||(e.SemanticClassificationFormat={})),function(a){a[a.Invoked=1]="Invoked",a[a.TriggerCharacter=2]="TriggerCharacter",a[a.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions"}(e.CompletionTriggerKind||(e.CompletionTriggerKind={})),function(a){a.Type="Type",a.Parameter="Parameter",a.Enum="Enum"}(e.InlayHintKind||(e.InlayHintKind={})),function(a){a.none="none",a.definition="definition",a.reference="reference",a.writtenReference="writtenReference"}(e.HighlightSpanKind||(e.HighlightSpanKind={}));var n;(function(a){a[a.None=0]="None",a[a.Block=1]="Block",a[a.Smart=2]="Smart"})(n=e.IndentStyle||(e.IndentStyle={}));var f;(function(a){a.Ignore="ignore",a.Insert="insert",a.Remove="remove"})(f=e.SemicolonPreference||(e.SemicolonPreference={}));function p(a){return{indentSize:4,tabSize:4,newLineCharacter:a||`
  239. `,convertTabsToSpaces:!0,indentStyle:n.Smart,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:f.Ignore,trimTrailingWhitespace:!0}}e.getDefaultFormatCodeSettings=p,e.testFormatSettings=p(`
  240. `),function(a){a[a.aliasName=0]="aliasName",a[a.className=1]="className",a[a.enumName=2]="enumName",a[a.fieldName=3]="fieldName",a[a.interfaceName=4]="interfaceName",a[a.keyword=5]="keyword",a[a.lineBreak=6]="lineBreak",a[a.numericLiteral=7]="numericLiteral",a[a.stringLiteral=8]="stringLiteral",a[a.localName=9]="localName",a[a.methodName=10]="methodName",a[a.moduleName=11]="moduleName",a[a.operator=12]="operator",a[a.parameterName=13]="parameterName",a[a.propertyName=14]="propertyName",a[a.punctuation=15]="punctuation",a[a.space=16]="space",a[a.text=17]="text",a[a.typeParameterName=18]="typeParameterName",a[a.enumMemberName=19]="enumMemberName",a[a.functionName=20]="functionName",a[a.regularExpressionLiteral=21]="regularExpressionLiteral",a[a.link=22]="link",a[a.linkName=23]="linkName",a[a.linkText=24]="linkText"}(e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={})),function(a){a.Comment="comment",a.Region="region",a.Code="code",a.Imports="imports"}(e.OutliningSpanKind||(e.OutliningSpanKind={})),function(a){a[a.JavaScript=0]="JavaScript",a[a.SourceMap=1]="SourceMap",a[a.Declaration=2]="Declaration"}(e.OutputFileType||(e.OutputFileType={})),function(a){a[a.None=0]="None",a[a.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",a[a.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",a[a.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",a[a.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",a[a.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",a[a.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition"}(e.EndOfLineState||(e.EndOfLineState={})),function(a){a[a.Punctuation=0]="Punctuation",a[a.Keyword=1]="Keyword",a[a.Operator=2]="Operator",a[a.Comment=3]="Comment",a[a.Whitespace=4]="Whitespace",a[a.Identifier=5]="Identifier",a[a.NumberLiteral=6]="NumberLiteral",a[a.BigIntLiteral=7]="BigIntLiteral",a[a.StringLiteral=8]="StringLiteral",a[a.RegExpLiteral=9]="RegExpLiteral"}(e.TokenClass||(e.TokenClass={})),function(a){a.unknown="",a.warning="warning",a.keyword="keyword",a.scriptElement="script",a.moduleElement="module",a.classElement="class",a.localClassElement="local class",a.interfaceElement="interface",a.typeElement="type",a.enumElement="enum",a.enumMemberElement="enum member",a.variableElement="var",a.localVariableElement="local var",a.functionElement="function",a.localFunctionElement="local function",a.memberFunctionElement="method",a.memberGetAccessorElement="getter",a.memberSetAccessorElement="setter",a.memberVariableElement="property",a.constructorImplementationElement="constructor",a.callSignatureElement="call",a.indexSignatureElement="index",a.constructSignatureElement="construct",a.parameterElement="parameter",a.typeParameterElement="type parameter",a.primitiveType="primitive type",a.label="label",a.alias="alias",a.constElement="const",a.letElement="let",a.directory="directory",a.externalModuleName="external module name",a.jsxAttribute="JSX attribute",a.string="string",a.link="link",a.linkName="link name",a.linkText="link text"}(e.ScriptElementKind||(e.ScriptElementKind={})),function(a){a.none="",a.publicMemberModifier="public",a.privateMemberModifier="private",a.protectedMemberModifier="protected",a.exportedModifier="export",a.ambientModifier="declare",a.staticModifier="static",a.abstractModifier="abstract",a.optionalModifier="optional",a.deprecatedModifier="deprecated",a.dtsModifier=".d.ts",a.tsModifier=".ts",a.tsxModifier=".tsx",a.jsModifier=".js",a.jsxModifier=".jsx",a.jsonModifier=".json",a.dmtsModifier=".d.mts",a.mtsModifier=".mts",a.mjsModifier=".mjs",a.dctsModifier=".d.cts",a.ctsModifier=".cts",a.cjsModifier=".cjs"}(e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})),function(a){a.comment="comment",a.identifier="identifier",a.keyword="keyword",a.numericLiteral="number",a.bigintLiteral="bigint",a.operator="operator",a.stringLiteral="string",a.whiteSpace="whitespace",a.text="text",a.punctuation="punctuation",a.className="class name",a.enumName="enum name",a.interfaceName="interface name",a.moduleName="module name",a.typeParameterName="type parameter name",a.typeAliasName="type alias name",a.parameterName="parameter name",a.docCommentTagName="doc comment tag name",a.jsxOpenTagName="jsx open tag name",a.jsxCloseTagName="jsx close tag name",a.jsxSelfClosingTagName="jsx self closing tag name",a.jsxAttribute="jsx attribute",a.jsxText="jsx text",a.jsxAttributeStringLiteralValue="jsx attribute string literal value"}(e.ClassificationTypeNames||(e.ClassificationTypeNames={})),function(a){a[a.comment=1]="comment",a[a.identifier=2]="identifier",a[a.keyword=3]="keyword",a[a.numericLiteral=4]="numericLiteral",a[a.operator=5]="operator",a[a.stringLiteral=6]="stringLiteral",a[a.regularExpressionLiteral=7]="regularExpressionLiteral",a[a.whiteSpace=8]="whiteSpace",a[a.text=9]="text",a[a.punctuation=10]="punctuation",a[a.className=11]="className",a[a.enumName=12]="enumName",a[a.interfaceName=13]="interfaceName",a[a.moduleName=14]="moduleName",a[a.typeParameterName=15]="typeParameterName",a[a.typeAliasName=16]="typeAliasName",a[a.parameterName=17]="parameterName",a[a.docCommentTagName=18]="docCommentTagName",a[a.jsxOpenTagName=19]="jsxOpenTagName",a[a.jsxCloseTagName=20]="jsxCloseTagName",a[a.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",a[a.jsxAttribute=22]="jsxAttribute",a[a.jsxText=23]="jsxText",a[a.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",a[a.bigintLiteral=25]="bigintLiteral"}(e.ClassificationType||(e.ClassificationType={}))}(jr||(jr={})),function(e){e.scanner=e.createScanner(99,!0),function(le){le[le.None=0]="None",le[le.Value=1]="Value",le[le.Type=2]="Type",le[le.Namespace=4]="Namespace",le[le.All=7]="All"}(e.SemanticMeaning||(e.SemanticMeaning={}));function n(le){switch(le.kind){case 253:return e.isInJSFile(le)&&e.getJSDocEnumTag(le)?7:1;case 163:case 202:case 166:case 165:case 294:case 295:case 168:case 167:case 170:case 171:case 172:case 255:case 212:case 213:case 291:case 284:return 1;case 162:case 257:case 258:case 181:return 2;case 343:return le.name===void 0?3:2;case 297:case 256:return 3;case 260:return e.isAmbientModule(le)||e.getModuleInstanceState(le)===1?5:4;case 259:case 268:case 269:case 264:case 265:case 270:case 271:return 7;case 303:return 5}return 7}e.getMeaningFromDeclaration=n;function f(le){le=Ar(le);var rr=le.parent;if(le.kind===303)return 1;if(e.isExportAssignment(rr)||e.isExportSpecifier(rr)||e.isExternalModuleReference(rr)||e.isImportSpecifier(rr)||e.isImportClause(rr)||e.isImportEqualsDeclaration(rr)&&le===rr.name){for(var yr=rr;yr;){if(e.isImportEqualsDeclaration(yr)||e.isImportClause(yr)||e.isExportDeclaration(yr))return yr.isTypeOnly?2:7;yr=yr.parent}return 7}else return a(le)?p(le):e.isDeclarationName(le)?n(rr):e.isEntityName(le)&&e.findAncestor(le,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))?7:h(le)?2:d(le)?4:e.isTypeParameterDeclaration(rr)?(e.Debug.assert(e.isJSDocTemplateTag(rr.parent)),2):e.isLiteralTypeNode(rr)?3:1}e.getMeaningFromLocation=f;function p(le){var rr=le.kind===160?le:e.isQualifiedName(le.parent)&&le.parent.right===le?le.parent:void 0;return rr&&rr.parent.kind===264?7:4}function a(le){for(;le.parent.kind===160;)le=le.parent;return e.isInternalModuleImportEqualsDeclaration(le.parent)&&le.parent.moduleReference===le}e.isInRightSideOfInternalImportEqualsDeclaration=a;function d(le){return k(le)||J(le)}function k(le){var rr=le,yr=!0;if(rr.parent.kind===160){for(;rr.parent&&rr.parent.kind===160;)rr=rr.parent;yr=rr.right===le}return rr.parent.kind===177&&!yr}function J(le){var rr=le,yr=!0;if(rr.parent.kind===205){for(;rr.parent&&rr.parent.kind===205;)rr=rr.parent;yr=rr.name===le}if(!yr&&rr.parent.kind===227&&rr.parent.parent.kind===290){var ct=rr.parent.parent.parent;return ct.kind===256&&rr.parent.parent.token===117||ct.kind===257&&rr.parent.parent.token===94}return!1}function h(le){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(le)&&(le=le.parent),le.kind){case 108:return!e.isExpressionNode(le);case 191:return!0}switch(le.parent.kind){case 177:return!0;case 199:return!le.parent.isTypeOf;case 227:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(le.parent)}return!1}function v(le,rr,yr){return rr===void 0&&(rr=!1),yr===void 0&&(yr=!1),I(le,e.isCallExpression,S,rr,yr)}e.isCallExpressionTarget=v;function A(le,rr,yr){return rr===void 0&&(rr=!1),yr===void 0&&(yr=!1),I(le,e.isNewExpression,S,rr,yr)}e.isNewExpressionTarget=A;function z(le,rr,yr){return rr===void 0&&(rr=!1),yr===void 0&&(yr=!1),I(le,e.isCallOrNewExpression,S,rr,yr)}e.isCallOrNewExpressionTarget=z;function ie(le,rr,yr){return rr===void 0&&(rr=!1),yr===void 0&&(yr=!1),I(le,e.isTaggedTemplateExpression,B,rr,yr)}e.isTaggedTemplateTag=ie;function b(le,rr,yr){return rr===void 0&&(rr=!1),yr===void 0&&(yr=!1),I(le,e.isDecorator,S,rr,yr)}e.isDecoratorTarget=b;function M(le,rr,yr){return rr===void 0&&(rr=!1),yr===void 0&&(yr=!1),I(le,e.isJsxOpeningLikeElement,H,rr,yr)}e.isJsxOpeningLikeElementTagName=M;function S(le){return le.expression}function B(le){return le.tag}function H(le){return le.tagName}function I(le,rr,yr,ct,jt){var yn=ct?x(le):w(le);return jt&&(yn=e.skipOuterExpressions(yn)),!!yn&&!!yn.parent&&rr(yn.parent)&&yr(yn.parent)===yn}function w(le){return re(le)?le.parent:le}e.climbPastPropertyAccess=w;function x(le){return re(le)||T(le)?le.parent:le}e.climbPastPropertyOrElementAccess=x;function O(le,rr){for(;le;){if(le.kind===249&&le.label.escapedText===rr)return le.label;le=le.parent}}e.getTargetLabel=O;function q(le,rr){return e.isPropertyAccessExpression(le.expression)?le.expression.name.text===rr:!1}e.hasPropertyAccessExpressionWithName=q;function Z(le){var rr;return e.isIdentifier(le)&&((rr=e.tryCast(le.parent,e.isBreakOrContinueStatement))===null||rr===void 0?void 0:rr.label)===le}e.isJumpStatementTarget=Z;function ne(le){var rr;return e.isIdentifier(le)&&((rr=e.tryCast(le.parent,e.isLabeledStatement))===null||rr===void 0?void 0:rr.label)===le}e.isLabelOfLabeledStatement=ne;function F(le){return ne(le)||Z(le)}e.isLabelName=F;function Q(le){var rr;return((rr=e.tryCast(le.parent,e.isJSDocTag))===null||rr===void 0?void 0:rr.tagName)===le}e.isTagName=Q;function V(le){var rr;return((rr=e.tryCast(le.parent,e.isQualifiedName))===null||rr===void 0?void 0:rr.right)===le}e.isRightSideOfQualifiedName=V;function re(le){var rr;return((rr=e.tryCast(le.parent,e.isPropertyAccessExpression))===null||rr===void 0?void 0:rr.name)===le}e.isRightSideOfPropertyAccess=re;function T(le){var rr;return((rr=e.tryCast(le.parent,e.isElementAccessExpression))===null||rr===void 0?void 0:rr.argumentExpression)===le}e.isArgumentExpressionOfElementAccess=T;function N(le){var rr;return((rr=e.tryCast(le.parent,e.isModuleDeclaration))===null||rr===void 0?void 0:rr.name)===le}e.isNameOfModuleDeclaration=N;function y(le){var rr;return e.isIdentifier(le)&&((rr=e.tryCast(le.parent,e.isFunctionLike))===null||rr===void 0?void 0:rr.name)===le}e.isNameOfFunctionDeclaration=y;function D(le){switch(le.parent.kind){case 166:case 165:case 294:case 297:case 168:case 167:case 171:case 172:case 260:return e.getNameOfDeclaration(le.parent)===le;case 206:return le.parent.argumentExpression===le;case 161:return!0;case 195:return le.parent.parent.kind===193;default:return!1}}e.isLiteralNameOfPropertyDeclarationOrIndexAccess=D;function C(le){return e.isExternalModuleImportEqualsDeclaration(le.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(le.parent.parent)===le}e.isExpressionOfExternalModuleImportEqualsDeclaration=C;function m(le){for(e.isJSDocTypeAlias(le)&&(le=le.parent.parent);;){if(le=le.parent,!le)return;switch(le.kind){case 303:case 168:case 167:case 255:case 212:case 171:case 172:case 256:case 257:case 259:case 260:return le}}}e.getContainerNode=m;function u(le){switch(le.kind){case 303:return e.isExternalModule(le)?"module":"script";case 260:return"module";case 256:case 225:return"class";case 257:return"interface";case 258:case 336:case 343:return"type";case 259:return"enum";case 253:return ha(le);case 202:return ha(e.getRootDeclaration(le));case 213:case 255:case 212:return"function";case 171:return"getter";case 172:return"setter";case 168:case 167:return"method";case 294:var rr=le.initializer;return e.isFunctionLike(rr)?"method":"property";case 166:case 165:case 295:case 296:return"property";case 175:return"index";case 174:return"construct";case 173:return"call";case 170:case 169:return"constructor";case 162:return"type parameter";case 297:return"enum member";case 163:return e.hasSyntacticModifier(le,16476)?"property":"parameter";case 264:case 269:case 274:case 267:case 273:return"alias";case 220:var yr=e.getAssignmentDeclarationKind(le),ct=le.right;switch(yr){case 7:case 8:case 9:case 0:return"";case 1:case 2:var jt=u(ct);return jt===""?"const":jt;case 3:return e.isFunctionExpression(ct)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(ct)?"method":"property";case 6:return"local class";default:return e.assertType(yr),""}case 79:return e.isImportClause(le.parent)?"alias":"";case 270:var yn=u(le.expression);return yn===""?"const":yn;default:return""}function ha(ri){return e.isVarConst(ri)?"const":e.isLet(ri)?"let":"var"}}e.getNodeKind=u;function g(le){switch(le.kind){case 108:return!0;case 79:return e.identifierIsThisKeyword(le)&&le.parent.kind===163;default:return!1}}e.isThis=g;var P=/^\/\/\/\s*</;function te(le,rr){var yr=e.getLineStarts(rr),ct=rr.getLineAndCharacterOfPosition(le).line;return yr[ct]}e.getLineStartPositionForPosition=te;function ue(le,rr){return Ce(le.pos,le.end,rr)}e.rangeContainsRange=ue;function X(le,rr){return Se(le,rr.pos)&&Se(le,rr.end)}e.rangeContainsRangeExclusive=X;function j(le,rr){return le.pos<=rr&&rr<=le.end}e.rangeContainsPosition=j;function Se(le,rr){return le.pos<rr&&rr<le.end}e.rangeContainsPositionExclusive=Se;function Ce(le,rr,yr){return le<=yr.pos&&rr>=yr.end}e.startEndContainsRange=Ce;function R(le,rr,yr){return le.pos<=rr&&le.end>=yr}e.rangeContainsStartEnd=R;function Y(le,rr,yr){return K(le.pos,le.end,rr,yr)}e.rangeOverlapsWithStartEnd=Y;function U(le,rr,yr,ct){return K(le.getStart(rr),le.end,yr,ct)}e.nodeOverlapsWithStartEnd=U;function K(le,rr,yr,ct){var jt=Math.max(le,yr),yn=Math.min(rr,ct);return jt<yn}e.startEndOverlapsWithStartEnd=K;function Te(le,rr,yr){return e.Debug.assert(le.pos<=rr),rr<le.end||!ge(le,yr)}e.positionBelongsToNode=Te;function ge(le,rr){if(le===void 0||e.nodeIsMissing(le))return!1;switch(le.kind){case 256:case 257:case 259:case 204:case 200:case 181:case 234:case 261:case 262:case 268:case 272:return ke(le,19,rr);case 291:return ge(le.block,rr);case 208:if(!le.arguments)return!0;case 207:case 211:case 190:return ke(le,21,rr);case 178:case 179:return ge(le.type,rr);case 170:case 171:case 172:case 255:case 212:case 168:case 167:case 174:case 173:case 213:return le.body?ge(le.body,rr):le.type?ge(le.type,rr):Ie(le,21,rr);case 260:return!!le.body&&ge(le.body,rr);case 238:return le.elseStatement?ge(le.elseStatement,rr):ge(le.thenStatement,rr);case 237:return ge(le.expression,rr)||Ie(le,26,rr);case 203:case 201:case 206:case 161:case 183:return ke(le,23,rr);case 175:return le.type?ge(le.type,rr):Ie(le,23,rr);case 288:case 289:return!1;case 241:case 242:case 243:case 240:return ge(le.statement,rr);case 239:return Ie(le,115,rr)?ke(le,21,rr):ge(le.statement,rr);case 180:return ge(le.exprName,rr);case 215:case 214:case 216:case 223:case 224:var yr=le;return ge(yr.expression,rr);case 209:return ge(le.template,rr);case 222:var ct=e.lastOrUndefined(le.templateSpans);return ge(ct,rr);case 232:return e.nodeIsPresent(le.literal);case 271:case 265:return e.nodeIsPresent(le.moduleSpecifier);case 218:return ge(le.operand,rr);case 220:return ge(le.right,rr);case 221:return ge(le.whenFalse,rr);default:return!0}}function ke(le,rr,yr){var ct=le.getChildren(yr);if(ct.length){var jt=e.last(ct);if(jt.kind===rr)return!0;if(jt.kind===26&&ct.length!==1)return ct[ct.length-2].kind===rr}return!1}function Pe(le){var rr=he(le);if(rr){var yr=rr.getChildren(),ct=e.indexOfNode(yr,le);return{listItemIndex:ct,list:rr}}}e.findListItemInfo=Pe;function Ie(le,rr,yr){return!!Ge(le,rr,yr)}e.hasChildOfKind=Ie;function Ge(le,rr,yr){return e.find(le.getChildren(yr),function(ct){return ct.kind===rr})}e.findChildOfKind=Ge;function he(le){var rr=e.find(le.parent.getChildren(),function(yr){return e.isSyntaxList(yr)&&ue(yr,le)});return e.Debug.assert(!rr||e.contains(rr.getChildren(),le)),rr}e.findContainingList=he;function ve(le){return le.kind===88}function Ve(le){return le.kind===84}function _e(le){return le.kind===98}function Le(le){if(e.isNamedDeclaration(le))return le.name;if(e.isClassDeclaration(le)){var rr=le.modifiers&&e.find(le.modifiers,ve);if(rr)return rr}if(e.isClassExpression(le)){var yr=e.find(le.getChildren(),Ve);if(yr)return yr}}function qe(le){if(e.isNamedDeclaration(le))return le.name;if(e.isFunctionDeclaration(le)){var rr=e.find(le.modifiers,ve);if(rr)return rr}if(e.isFunctionExpression(le)){var yr=e.find(le.getChildren(),_e);if(yr)return yr}}function Xe(le){var rr;return e.findAncestor(le,function(yr){return e.isTypeNode(yr)&&(rr=yr),!e.isQualifiedName(yr.parent)&&!e.isTypeNode(yr.parent)&&!e.isTypeElement(yr.parent)}),rr}function De(le,rr){var yr=ko(le,rr);if(yr)return yr;var ct=Xe(le);return ct&&rr.getTypeAtLocation(ct)}e.getContextualTypeFromParentOrAncestorTypeNode=De;function Ae(le,rr){if(!rr)switch(le.kind){case 256:case 225:return Le(le);case 255:case 212:return qe(le)}if(e.isNamedDeclaration(le))return le.name}function Ye(le,rr){if(le.importClause){if(le.importClause.name&&le.importClause.namedBindings)return;if(le.importClause.name)return le.importClause.name;if(le.importClause.namedBindings){if(e.isNamedImports(le.importClause.namedBindings)){var yr=e.singleOrUndefined(le.importClause.namedBindings.elements);return yr?yr.name:void 0}else if(e.isNamespaceImport(le.importClause.namedBindings))return le.importClause.namedBindings.name}}if(!rr)return le.moduleSpecifier}function Dr(le,rr){if(le.exportClause){if(e.isNamedExports(le.exportClause)){var yr=e.singleOrUndefined(le.exportClause.elements);return yr?le.exportClause.elements[0].name:void 0}else if(e.isNamespaceExport(le.exportClause))return le.exportClause.name}if(!rr)return le.moduleSpecifier}function br(le){if(le.types.length===1)return le.types[0].expression}function lr(le,rr){var yr=le.parent;if(e.isModifier(le)&&(rr||le.kind!==88)?e.contains(yr.modifiers,le):le.kind===84?e.isClassDeclaration(yr)||e.isClassExpression(le):le.kind===98?e.isFunctionDeclaration(yr)||e.isFunctionExpression(le):le.kind===118?e.isInterfaceDeclaration(yr):le.kind===92?e.isEnumDeclaration(yr):le.kind===151?e.isTypeAliasDeclaration(yr):le.kind===142||le.kind===141?e.isModuleDeclaration(yr):le.kind===100?e.isImportEqualsDeclaration(yr):le.kind===136?e.isGetAccessorDeclaration(yr):le.kind===148&&e.isSetAccessorDeclaration(yr)){var ct=Ae(yr,rr);if(ct)return ct}if((le.kind===113||le.kind===85||le.kind===119)&&e.isVariableDeclarationList(yr)&&yr.declarations.length===1){var jt=yr.declarations[0];if(e.isIdentifier(jt.name))return jt.name}if(le.kind===151){if(e.isImportClause(yr)&&yr.isTypeOnly){var ct=Ye(yr.parent,rr);if(ct)return ct}if(e.isExportDeclaration(yr)&&yr.isTypeOnly){var ct=Dr(yr,rr);if(ct)return ct}}if(le.kind===127){if(e.isImportSpecifier(yr)&&yr.propertyName||e.isExportSpecifier(yr)&&yr.propertyName||e.isNamespaceImport(yr)||e.isNamespaceExport(yr))return yr.name;if(e.isExportDeclaration(yr)&&yr.exportClause&&e.isNamespaceExport(yr.exportClause))return yr.exportClause.name}if(le.kind===100&&e.isImportDeclaration(yr)){var ct=Ye(yr,rr);if(ct)return ct}if(le.kind===93){if(e.isExportDeclaration(yr)){var ct=Dr(yr,rr);if(ct)return ct}if(e.isExportAssignment(yr))return e.skipOuterExpressions(yr.expression)}if(le.kind===145&&e.isExternalModuleReference(yr))return yr.expression;if(le.kind===155&&(e.isImportDeclaration(yr)||e.isExportDeclaration(yr))&&yr.moduleSpecifier)return yr.moduleSpecifier;if((le.kind===94||le.kind===117)&&e.isHeritageClause(yr)&&yr.token===le.kind){var ct=br(yr);if(ct)return ct}if(le.kind===94){if(e.isTypeParameterDeclaration(yr)&&yr.constraint&&e.isTypeReferenceNode(yr.constraint))return yr.constraint.typeName;if(e.isConditionalTypeNode(yr)&&e.isTypeReferenceNode(yr.extendsType))return yr.extendsType.typeName}if(le.kind===137&&e.isInferTypeNode(yr))return yr.typeParameter.name;if(le.kind===101&&e.isTypeParameterDeclaration(yr)&&e.isMappedTypeNode(yr.parent))return yr.name;if(le.kind===140&&e.isTypeOperatorNode(yr)&&yr.operator===140&&e.isTypeReferenceNode(yr.type))return yr.type.typeName;if(le.kind===144&&e.isTypeOperatorNode(yr)&&yr.operator===144&&e.isArrayTypeNode(yr.type)&&e.isTypeReferenceNode(yr.type.elementType))return yr.type.elementType.typeName;if(!rr){if((le.kind===103&&e.isNewExpression(yr)||le.kind===114&&e.isVoidExpression(yr)||le.kind===112&&e.isTypeOfExpression(yr)||le.kind===132&&e.isAwaitExpression(yr)||le.kind===125&&e.isYieldExpression(yr)||le.kind===89&&e.isDeleteExpression(yr))&&yr.expression)return e.skipOuterExpressions(yr.expression);if((le.kind===101||le.kind===102)&&e.isBinaryExpression(yr)&&yr.operatorToken===le)return e.skipOuterExpressions(yr.right);if(le.kind===127&&e.isAsExpression(yr)&&e.isTypeReferenceNode(yr.type))return yr.type.typeName;if(le.kind===101&&e.isForInStatement(yr)||le.kind===159&&e.isForOfStatement(yr))return e.skipOuterExpressions(yr.expression)}return le}function Ar(le){return lr(le,!1)}e.getAdjustedReferenceLocation=Ar;function kr(le){return lr(le,!0)}e.getAdjustedRenameLocation=kr;function Ke(le,rr){return Me(le,rr,function(yr){return e.isPropertyNameLiteral(yr)||e.isKeyword(yr.kind)||e.isPrivateIdentifier(yr)})}e.getTouchingPropertyName=Ke;function Me(le,rr,yr){return ur(le,rr,!1,yr,!1)}e.getTouchingToken=Me;function Hr(le,rr){return ur(le,rr,!0,void 0,!1)}e.getTokenAtPosition=Hr;function ur(le,rr,yr,ct,jt){var yn=le,ha,ri=function(){var fi=yn.getChildren(le),ci=e.binarySearchKey(fi,rr,function(Si,Do){return Do},function(Si,Do){var bo=yr?fi[Si].getFullStart():fi[Si].getStart(le,!0);return bo>rr?1:Ya(fi[Si])?fi[Si-1]&&Ya(fi[Si-1])?1:0:ct&&bo===rr&&fi[Si-1]&&fi[Si-1].getEnd()===rr&&Ya(fi[Si-1])?1:-1});return ha?{value:ha}:ci>=0&&fi[ci]?(yn=fi[ci],"continue-outer"):{value:yn}};e:for(;;){var Ta=ri();if(typeof Ta=="object")return Ta.value;switch(Ta){case"continue-outer":continue e}}function Ya(fi){var ci=yr?fi.getFullStart():fi.getStart(le,!0);if(ci>rr)return!1;var Si=fi.getEnd();if(rr<Si||rr===Si&&(fi.kind===1||jt))return!0;if(ct&&Si===rr){var Do=$e(rr,le,fi);if(Do&&ct(Do))return ha=Do,!0}return!1}}function gr(le,rr){for(var yr=Hr(le,rr);ze(yr);){var ct=Fe(yr,yr.parent,le);if(!ct)return;yr=ct}return yr}e.findFirstNonJsxWhitespaceToken=gr;function de(le,rr){var yr=Hr(le,rr);return e.isToken(yr)&&rr>yr.getStart(le)&&rr<yr.getEnd()?yr:$e(rr,le)}e.findTokenOnLeftOfPosition=de;function Fe(le,rr,yr){return ct(rr);function ct(jt){return e.isToken(jt)&&jt.pos===le.end?jt:e.firstDefined(jt.getChildren(yr),function(yn){var ha=yn.pos<=le.pos&&yn.end>le.end||yn.pos===le.end;return ha&&Or(yn,yr)?ct(yn):void 0})}}e.findNextToken=Fe;function $e(le,rr,yr,ct){var jt=yn(yr||rr);return e.Debug.assert(!(jt&&ze(jt))),jt;function yn(ha){if(Sr(ha)&&ha.kind!==1)return ha;var ri=ha.getChildren(rr),Ta=e.binarySearchKey(ri,le,function(bo,Ns){return Ns},function(bo,Ns){return le<ri[bo].end?!ri[bo-1]||le>=ri[bo-1].end?0:1:-1});if(Ta>=0&&ri[Ta]){var Ya=ri[Ta];if(le<Ya.end){var fi=Ya.getStart(rr,!ct),ci=fi>=le||!Or(Ya,rr)||ze(Ya);if(ci){var Si=He(ri,Ta,rr,ha.kind);return Si&&Pr(Si,rr)}else return yn(Ya)}}e.Debug.assert(yr!==void 0||ha.kind===303||ha.kind===1||e.isJSDocCommentContainingNode(ha));var Do=He(ri,ri.length,rr,ha.kind);return Do&&Pr(Do,rr)}}e.findPrecedingToken=$e;function Sr(le){return e.isToken(le)&&!ze(le)}function Pr(le,rr){if(Sr(le))return le;var yr=le.getChildren(rr);if(yr.length===0)return le;var ct=He(yr,yr.length,rr,le.kind);return ct&&Pr(ct,rr)}function He(le,rr,yr,ct){for(var jt=rr-1;jt>=0;jt--){var yn=le[jt];if(ze(yn))jt===0&&(ct===11||ct===278)&&e.Debug.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(Or(le[jt],yr))return le[jt]}}function pr(le,rr,yr){if(yr===void 0&&(yr=$e(rr,le)),yr&&e.isStringTextContainingNode(yr)){var ct=yr.getStart(le),jt=yr.getEnd();if(ct<rr&&rr<jt)return!0;if(rr===jt)return!!yr.isUnterminated}return!1}e.isInString=pr;function Jr(le,rr){var yr=Hr(le,rr);return yr?!!(yr.kind===11||yr.kind===29&&yr.parent.kind===11||yr.kind===29&&yr.parent.kind===287||yr&&yr.kind===19&&yr.parent.kind===287||yr.kind===29&&yr.parent.kind===280):!1}e.isInsideJsxElementOrAttribute=Jr;function ze(le){return e.isJsxText(le)&&le.containsOnlyTriviaWhiteSpaces}function Lr(le,rr){var yr=Hr(le,rr);return e.isTemplateLiteralKind(yr.kind)&&rr>yr.getStart(le)}e.isInTemplateString=Lr;function Yr(le,rr){var yr=Hr(le,rr);return!!(e.isJsxText(yr)||yr.kind===18&&e.isJsxExpression(yr.parent)&&e.isJsxElement(yr.parent.parent)||yr.kind===29&&e.isJsxOpeningLikeElement(yr.parent)&&e.isJsxElement(yr.parent.parent))}e.isInJSXText=Yr;function lt(le,rr){function yr(ct){for(;ct;)if(ct.kind>=278&&ct.kind<=287||ct.kind===11||ct.kind===29||ct.kind===31||ct.kind===79||ct.kind===19||ct.kind===18||ct.kind===43)ct=ct.parent;else if(ct.kind===277){if(rr>ct.getStart(le))return!0;ct=ct.parent}else return!1;return!1}return yr(Hr(le,rr))}e.isInsideJsxElement=lt;function tt(le,rr,yr){var ct=e.tokenToString(le.kind),jt=e.tokenToString(rr),yn=le.getFullStart(),ha=yr.text.lastIndexOf(jt,yn);if(ha!==-1){if(yr.text.lastIndexOf(ct,yn-1)<ha){var ri=$e(ha+1,yr);if(ri&&ri.kind===rr)return ri}for(var Ta=le.kind,Ya=0;;){var fi=$e(le.getFullStart(),yr);if(!fi)return;if(le=fi,le.kind===rr){if(Ya===0)return le;Ya--}else le.kind===Ta&&Ya++}}}e.findPrecedingMatchingToken=tt;function Rt(le,rr,yr){return rr?le.getNonNullableType():yr?le.getNonOptionalType():le}e.removeOptionality=Rt;function cn(le,rr,yr){var ct=In(le,rr);return ct!==void 0&&(e.isPartOfTypeNode(ct.called)||bn(ct.called,ct.nTypeArguments,yr).length!==0||cn(ct.called,rr,yr))}e.isPossiblyTypeArgumentPosition=cn;function bn(le,rr,yr){var ct=yr.getTypeAtLocation(le);e.isOptionalChain(le.parent)&&(ct=Rt(ct,e.isOptionalChainRoot(le.parent),!0));var jt=e.isNewExpression(le.parent)?ct.getConstructSignatures():ct.getCallSignatures();return jt.filter(function(yn){return!!yn.typeParameters&&yn.typeParameters.length>=rr})}e.getPossibleGenericSignatures=bn;function In(le,rr){if(rr.text.lastIndexOf("<",le?le.pos:rr.text.length)!==-1)for(var yr=le,ct=0,jt=0;yr;){switch(yr.kind){case 29:if(yr=$e(yr.getFullStart(),rr),yr&&yr.kind===28&&(yr=$e(yr.getFullStart(),rr)),!yr||!e.isIdentifier(yr))return;if(!ct)return e.isDeclarationName(yr)?void 0:{called:yr,nTypeArguments:jt};ct--;break;case 49:ct=3;break;case 48:ct=2;break;case 31:ct++;break;case 19:if(yr=tt(yr,18,rr),!yr)return;break;case 21:if(yr=tt(yr,20,rr),!yr)return;break;case 23:if(yr=tt(yr,22,rr),!yr)return;break;case 27:jt++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 140:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(yr))break;return}yr=$e(yr.getFullStart(),rr)}}e.getPossibleTypeArgumentsInfo=In;function zn(le,rr,yr){return e.formatting.getRangeOfEnclosingComment(le,rr,void 0,yr)}e.isInComment=zn;function ir(le,rr){var yr=Hr(le,rr);return!!e.findAncestor(yr,e.isJSDoc)}e.hasDocComment=ir;function Or(le,rr){return le.kind===1?!!le.jsDoc:le.getWidth(rr)!==0}function sr(le,rr){rr===void 0&&(rr=0);var yr=[],ct=e.isDeclaration(le)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(le)&~rr:0;return ct&8&&yr.push("private"),ct&16&&yr.push("protected"),ct&4&&yr.push("public"),(ct&32||e.isClassStaticBlockDeclaration(le))&&yr.push("static"),ct&128&&yr.push("abstract"),ct&1&&yr.push("export"),ct&8192&&yr.push("deprecated"),le.flags&8388608&&yr.push("declare"),le.kind===270&&yr.push("export"),yr.length>0?yr.join(","):""}e.getNodeModifiers=sr;function ye(le){if(le.kind===177||le.kind===207)return le.typeArguments;if(e.isFunctionLike(le)||le.kind===256||le.kind===257)return le.typeParameters}e.getTypeArgumentOrTypeParameterList=ye;function or(le){return le===2||le===3}e.isComment=or;function fe(le){return!!(le===10||le===13||e.isTemplateLiteralKind(le))}e.isStringOrRegularExpressionOrTemplateLiteral=fe;function je(le){return 18<=le&&le<=78}e.isPunctuation=je;function Ee(le,rr,yr){return e.isTemplateLiteralKind(le.kind)&&le.getStart(yr)<rr&&rr<le.end||!!le.isUnterminated&&rr===le.end}e.isInsideTemplateLiteral=Ee;function We(le){switch(le){case 123:case 121:case 122:return!0}return!1}e.isAccessibilityModifier=We;function $(le){var rr=e.clone(le);return e.setConfigFileInOptions(rr,le&&le.configFile),rr}e.cloneCompilerOptions=$;function Ne(le){return!!((le.kind===203||le.kind===204)&&(le.parent.kind===220&&le.parent.left===le&&le.parent.operatorToken.kind===63||le.parent.kind===243&&le.parent.initializer===le||Ne(le.parent.kind===294?le.parent.parent:le.parent)))}e.isArrayLiteralOrObjectLiteralDestructuringPattern=Ne;function me(le,rr){return Cr(le,rr,!0)}e.isInReferenceComment=me;function Ze(le,rr){return Cr(le,rr,!1)}e.isInNonReferenceComment=Ze;function Cr(le,rr,yr){var ct=zn(le,rr,void 0);return!!ct&&yr===P.test(le.text.substring(ct.pos,ct.end))}function fr(le){if(le)switch(le.kind){case 10:case 14:return et(le);default:return dr(le)}}e.getReplacementSpanForContextToken=fr;function dr(le,rr,yr){return e.createTextSpanFromBounds(le.getStart(rr),(yr||le).getEnd())}e.createTextSpanFromNode=dr;function et(le){if(!le.isUnterminated)return e.createTextSpanFromBounds(le.getStart()+1,le.getEnd()-1)}e.createTextSpanFromStringLiteralLikeContent=et;function yt(le,rr){return e.createRange(le.getStart(rr),le.end)}e.createTextRangeFromNode=yt;function Vr(le){return e.createTextSpanFromBounds(le.pos,le.end)}e.createTextSpanFromRange=Vr;function tr(le){return e.createRange(le.start,le.start+le.length)}e.createTextRangeFromSpan=tr;function xr(le,rr,yr){return Nr(e.createTextSpan(le,rr),yr)}e.createTextChangeFromStartLength=xr;function Nr(le,rr){return{span:le,newText:rr}}e.createTextChange=Nr,e.typeKeywords=[130,128,157,133,95,137,140,143,104,146,147,144,149,150,110,114,152,153,154];function zr(le){return e.contains(e.typeKeywords,le)}e.isTypeKeyword=zr;function gt(le){return le.kind===151}e.isTypeKeywordToken=gt;function vt(le){return gt(le)||e.isIdentifier(le)&&le.text==="type"}e.isTypeKeywordTokenOrIdentifier=vt;function ut(le){return!!(le.flags&1536)&&le.name.charCodeAt(0)===34}e.isExternalModuleSymbol=ut;function ht(){var le=[];return function(rr){var yr=e.getNodeId(rr);return!le[yr]&&(le[yr]=!0)}}e.nodeSeenTracker=ht;function xt(le){return le.getText(0,le.getLength())}e.getSnapshotText=xt;function wt(le,rr){for(var yr="",ct=0;ct<rr;ct++)yr+=le;return yr}e.repeatString=wt;function Qt(le){return le.isTypeParameter()&&le.getConstraint()||le}e.skipConstraint=Qt;function mt(le){return le.kind===161?e.isStringOrNumericLiteralLike(le.expression)?le.expression.text:void 0:e.isPrivateIdentifier(le)?e.idText(le):e.getTextOfIdentifierOrLiteral(le)}e.getNameFromPropertyName=mt;function rn(le){return le.getSourceFiles().some(function(rr){return!rr.isDeclarationFile&&!le.isSourceFileFromExternalLibrary(rr)&&!!(rr.externalModuleIndicator||rr.commonJsModuleIndicator)})}e.programContainsModules=rn;function sa(le){return le.getSourceFiles().some(function(rr){return!rr.isDeclarationFile&&!le.isSourceFileFromExternalLibrary(rr)&&!!rr.externalModuleIndicator})}e.programContainsEsModules=sa;function ba(le){return!!le.module||e.getEmitScriptTarget(le)>=2||!!le.noEmit}e.compilerOptionsIndicateEsModules=ba;function Jn(le,rr){return{fileExists:function(yr){return le.fileExists(yr)},getCurrentDirectory:function(){return rr.getCurrentDirectory()},readFile:e.maybeBind(rr,rr.readFile),useCaseSensitiveFileNames:e.maybeBind(rr,rr.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(rr,rr.getSymlinkCache)||le.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(rr,rr.getModuleSpecifierCache),getGlobalTypingsCacheLocation:e.maybeBind(rr,rr.getGlobalTypingsCacheLocation),redirectTargetsMap:le.redirectTargetsMap,getProjectReferenceRedirect:function(yr){return le.getProjectReferenceRedirect(yr)},isSourceOfProjectReferenceRedirect:function(yr){return le.isSourceOfProjectReferenceRedirect(yr)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(rr,rr.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return le.getFileIncludeReasons()}}}e.createModuleSpecifierResolutionHost=Jn;function na(le,rr){return Rn(Rn({},Jn(le,rr)),{getCommonSourceDirectory:function(){return le.getCommonSourceDirectory()}})}e.getModuleSpecifierResolverHost=na;function Wn(le,rr,yr,ct){return le||rr&&rr.length?en(le,rr,yr,ct):void 0}e.makeImportIfNecessary=Wn;function en(le,rr,yr,ct,jt){return e.factory.createImportDeclaration(void 0,void 0,le||rr?e.factory.createImportClause(!!jt,le,rr&&rr.length?e.factory.createNamedImports(rr):void 0):void 0,typeof yr=="string"?St(yr,ct):yr,void 0)}e.makeImport=en;function St(le,rr){return e.factory.createStringLiteral(le,rr===0)}e.makeStringLiteral=St,function(le){le[le.Single=0]="Single",le[le.Double=1]="Double"}(e.QuotePreference||(e.QuotePreference={}));function Ut(le,rr){return e.isStringDoubleQuoted(le,rr)?1:0}e.quotePreferenceFromString=Ut;function qt(le,rr){if(rr.quotePreference&&rr.quotePreference!=="auto")return rr.quotePreference==="single"?0:1;var yr=le.imports&&e.find(le.imports,function(ct){return e.isStringLiteral(ct)&&!e.nodeIsSynthesized(ct.parent)});return yr?Ut(yr,le):1}e.getQuotePreference=qt;function Mn(le){switch(le){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(le)}}e.getQuoteFromPreference=Mn;function dn(le){var rr=oa(le);return rr===void 0?void 0:e.unescapeLeadingUnderscores(rr)}e.symbolNameNoDefault=dn;function oa(le){return le.escapedName!=="default"?le.escapedName:e.firstDefined(le.declarations,function(rr){var yr=e.getNameOfDeclaration(rr);return yr&&yr.kind===79?yr.escapedText:void 0})}e.symbolEscapedNameNoDefault=oa;function pt(le){return e.isStringLiteralLike(le)&&(e.isExternalModuleReference(le.parent)||e.isImportDeclaration(le.parent)||e.isRequireCall(le.parent,!1)&&le.parent.arguments[0]===le||e.isImportCall(le.parent)&&le.parent.arguments[0]===le)}e.isModuleSpecifierLike=pt;function _t(le){return e.isBindingElement(le)&&e.isObjectBindingPattern(le.parent)&&e.isIdentifier(le.name)&&!le.propertyName}e.isObjectBindingElementWithoutPropertyName=_t;function Mt(le,rr){var yr=le.getTypeAtLocation(rr.parent);return yr&&le.getPropertyOfType(yr,rr.name.text)}e.getPropertySymbolFromBindingElement=Mt;function It(le,rr,yr){if(le)for(;le.parent;){if(e.isSourceFile(le.parent)||!rt(yr,le.parent,rr))return le;le=le.parent}}e.getParentNodeInSpan=It;function rt(le,rr,yr){return e.textSpanContainsPosition(le,rr.getStart(yr))&&rr.getEnd()<=e.textSpanEnd(le)}function Cn(le,rr){return le.modifiers&&e.find(le.modifiers,function(yr){return yr.kind===rr})}e.findModifier=Cn;function Qn(le,rr,yr,ct){var jt=e.isArray(yr)?yr[0]:yr,yn=jt.kind===236?e.isRequireVariableStatement:e.isAnyImportSyntax,ha=e.filter(rr.statements,yn),ri=e.isArray(yr)?e.stableSort(yr,e.OrganizeImports.compareImportsOrRequireStatements):[yr];if(!ha.length)le.insertNodesAtTopOfFile(rr,ri,ct);else if(ha&&e.OrganizeImports.importsAreSorted(ha))for(var Ta=0,Ya=ri;Ta<Ya.length;Ta++){var fi=Ya[Ta],ci=e.OrganizeImports.getImportDeclarationInsertionIndex(ha,fi);if(ci===0){var Si=ha[0]===rr.statements[0]?{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude}:{};le.insertNodeBefore(rr,ha[0],fi,!1,Si)}else{var Do=ha[ci-1];le.insertNodeAfter(rr,Do,fi)}}else{var bo=e.lastOrUndefined(ha);bo?le.insertNodesAfter(rr,bo,ri):le.insertNodesAtTopOfFile(rr,ri,ct)}}e.insertImports=Qn;function Ra(le,rr){return e.Debug.assert(le.isTypeOnly),e.cast(le.getChildAt(0,rr),gt)}e.getTypeKeywordOfTypeOnlyImport=Ra;function Ci(le,rr){return!!le&&!!rr&&le.start===rr.start&&le.length===rr.length}e.textSpansEqual=Ci;function _i(le,rr){return le.fileName===rr.fileName&&Ci(le.textSpan,rr.textSpan)}e.documentSpansEqual=_i;function va(le,rr){if(le){for(var yr=0;yr<le.length;yr++)if(le.indexOf(le[yr])===yr){var ct=rr(le[yr],yr);if(ct)return ct}}}e.forEachUnique=va;function yi(le,rr,yr){for(var ct=rr;ct<yr;ct++)if(!e.isWhiteSpaceLike(le.charCodeAt(ct)))return!1;return!0}e.isTextWhiteSpaceLike=yi;function ro(le){var rr=le.declarations?e.firstOrUndefined(le.declarations):void 0;return!!e.findAncestor(rr,function(yr){return e.isParameter(yr)?!0:e.isBindingElement(yr)||e.isObjectBindingPattern(yr)||e.isArrayBindingPattern(yr)?!1:"quit"})}e.isFirstDeclarationOfSymbolParameter=ro;var Ka=Mi();function Mi(){var le=e.defaultMaximumTruncationLength*10,rr,yr,ct,jt;fi();var yn=function(ci){return ri(ci,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var ci=rr.length&&rr[rr.length-1].text;return jt>le&&ci&&ci!=="..."&&(e.isWhiteSpaceLike(ci.charCodeAt(ci.length-1))||rr.push(ji(" ",e.SymbolDisplayPartKind.space)),rr.push(ji("...",e.SymbolDisplayPartKind.punctuation))),rr},writeKeyword:function(ci){return ri(ci,e.SymbolDisplayPartKind.keyword)},writeOperator:function(ci){return ri(ci,e.SymbolDisplayPartKind.operator)},writePunctuation:function(ci){return ri(ci,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(ci){return ri(ci,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(ci){return ri(ci,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(ci){return ri(ci,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(ci){return ri(ci,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(ci){return ri(ci,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(ci){return ri(ci,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:Ta,writeLine:Ya,write:yn,writeComment:yn,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingWhitespace:function(){return!1},hasTrailingComment:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return ct},increaseIndent:function(){ct++},decreaseIndent:function(){ct--},clear:fi,trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function ha(){if(!(jt>le)&&yr){var ci=e.getIndentString(ct);ci&&(jt+=ci.length,rr.push(ji(ci,e.SymbolDisplayPartKind.space))),yr=!1}}function ri(ci,Si){jt>le||(ha(),jt+=ci.length,rr.push(ji(ci,Si)))}function Ta(ci,Si){jt>le||(ha(),jt+=ci.length,rr.push(io(ci,Si)))}function Ya(){jt>le||(jt+=1,rr.push(hr()),yr=!0)}function fi(){rr=[],yr=!0,ct=0,jt=0}}function io(le,rr){return ji(le,yr(rr));function yr(ct){var jt=ct.flags;return jt&3?ro(ct)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:jt&4||jt&32768||jt&65536?e.SymbolDisplayPartKind.propertyName:jt&8?e.SymbolDisplayPartKind.enumMemberName:jt&16?e.SymbolDisplayPartKind.functionName:jt&32?e.SymbolDisplayPartKind.className:jt&64?e.SymbolDisplayPartKind.interfaceName:jt&384?e.SymbolDisplayPartKind.enumName:jt&1536?e.SymbolDisplayPartKind.moduleName:jt&8192?e.SymbolDisplayPartKind.methodName:jt&262144?e.SymbolDisplayPartKind.typeParameterName:jt&524288||jt&2097152?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}}e.symbolPart=io;function ji(le,rr){return{text:le,kind:e.SymbolDisplayPartKind[rr]}}e.displayPart=ji;function Hi(){return ji(" ",e.SymbolDisplayPartKind.space)}e.spacePart=Hi;function to(le){return ji(e.tokenToString(le),e.SymbolDisplayPartKind.keyword)}e.keywordPart=to;function No(le){return ji(e.tokenToString(le),e.SymbolDisplayPartKind.punctuation)}e.punctuationPart=No;function lo(le){return ji(e.tokenToString(le),e.SymbolDisplayPartKind.operator)}e.operatorPart=lo;function Lo(le){return ji(le,e.SymbolDisplayPartKind.parameterName)}e.parameterNamePart=Lo;function Ha(le){return ji(le,e.SymbolDisplayPartKind.propertyName)}e.propertyNamePart=Ha;function Yo(le){var rr=e.stringToToken(le);return rr===void 0?co(le):to(rr)}e.textOrKeywordPart=Yo;function co(le){return ji(le,e.SymbolDisplayPartKind.text)}e.textPart=co;function za(le){return ji(le,e.SymbolDisplayPartKind.aliasName)}e.typeAliasNamePart=za;function hi(le){return ji(le,e.SymbolDisplayPartKind.typeParameterName)}e.typeParameterNamePart=hi;function Zi(le){return ji(le,e.SymbolDisplayPartKind.linkText)}e.linkTextPart=Zi;function Mo(le,rr){return{text:le,kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(rr).fileName,textSpan:dr(rr)}}}e.linkNamePart=Mo;function Po(le){return ji(le,e.SymbolDisplayPartKind.link)}e.linkPart=Po;function Fo(le,rr){var yr,ct=e.isJSDocLink(le)?"link":e.isJSDocLinkCode(le)?"linkcode":"linkplain",jt=[Po("{@".concat(ct," "))];if(!le.name)le.text&&jt.push(Zi(le.text));else{var yn=rr==null?void 0:rr.getSymbolAtLocation(le.name),ha=zo(le.text),ri=e.getTextOfNode(le.name)+le.text.slice(0,ha),Ta=le.text.slice(ha),Ya=(yn==null?void 0:yn.valueDeclaration)||((yr=yn==null?void 0:yn.declarations)===null||yr===void 0?void 0:yr[0]);Ya?(jt.push(Mo(ri,Ya)),Ta&&jt.push(Zi(Ta))):jt.push(Zi(ri+(ha?"":" ")+Ta))}return jt.push(Po("}")),jt}e.buildLinkParts=Fo;function zo(le){if(le.indexOf("()")===0)return 2;if(le[0]!=="<")return 0;for(var rr=0,yr=0;yr<le.length;)if(le[yr]==="<"&&rr++,le[yr]===">"&&rr--,yr++,!rr)return yr;return 0}var Es=`\r
  241. `;function Cs(le,rr){var yr;return(rr==null?void 0:rr.newLineCharacter)||((yr=le.getNewLine)===null||yr===void 0?void 0:yr.call(le))||Es}e.getNewLineOrDefaultFromHost=Cs;function hr(){return ji(`
  242. `,e.SymbolDisplayPartKind.lineBreak)}e.lineBreakPart=hr;function dt(le){try{return le(Ka),Ka.displayParts()}finally{Ka.clear()}}e.mapToDisplayParts=dt;function tn(le,rr,yr,ct){return ct===void 0&&(ct=0),dt(function(jt){le.writeType(rr,yr,ct|1024|16384,jt)})}e.typeToDisplayParts=tn;function Un(le,rr,yr,ct,jt){return jt===void 0&&(jt=0),dt(function(yn){le.writeSymbol(rr,yr,ct,jt|8,yn)})}e.symbolToDisplayParts=Un;function Oe(le,rr,yr,ct){return ct===void 0&&(ct=0),ct|=25632,dt(function(jt){le.writeSignature(rr,yr,ct,void 0,jt)})}e.signatureToDisplayParts=Oe;function oe(le){return!!le.parent&&e.isImportOrExportSpecifier(le.parent)&&le.parent.propertyName===le}e.isImportOrExportSpecifierName=oe;function mr(le,rr){return e.ensureScriptKind(le,rr.getScriptKind&&rr.getScriptKind(le))}e.getScriptKind=mr;function se(le,rr){for(var yr=le;er(yr)||Be(yr)&&yr.target;)Be(yr)&&yr.target?yr=yr.target:yr=e.skipAlias(yr,rr);return yr}e.getSymbolTarget=se;function Be(le){return(le.flags&33554432)!==0}function er(le){return(le.flags&2097152)!==0}function vr(le,rr){return e.getSymbolId(e.skipAlias(le,rr))}e.getUniqueSymbolId=vr;function qr(le,rr){for(;e.isWhiteSpaceLike(le.charCodeAt(rr));)rr+=1;return rr}e.getFirstNonSpaceCharacterPosition=qr;function Dt(le,rr){for(;rr>-1&&e.isWhiteSpaceSingleLine(le.charCodeAt(rr));)rr-=1;return rr+1}e.getPrecedingNonSpaceCharacterPosition=Dt;function Jt(le,rr){rr===void 0&&(rr=!0);var yr=le&&ta(le);return yr&&!rr&&$a(yr),yr}e.getSynthesizedDeepClone=Jt;function Sn(le,rr,yr){var ct=yr(le);return ct?e.setOriginalNode(ct,le):ct=ta(le,yr),ct&&!rr&&$a(ct),ct}e.getSynthesizedDeepCloneWithReplacements=Sn;function ta(le,rr){var yr=rr?function(ha){return Sn(ha,!0,rr)}:Jt,ct=rr?function(ha){return ha&&Di(ha,!0,rr)}:function(ha){return ha&&xa(ha)},jt=e.visitEachChild(le,yr,e.nullTransformationContext,ct,yr);if(jt===le){var yn=e.isStringLiteral(le)?e.setOriginalNode(e.factory.createStringLiteralFromNode(le),le):e.isNumericLiteral(le)?e.setOriginalNode(e.factory.createNumericLiteral(le.text,le.numericLiteralFlags),le):e.factory.cloneNode(le);return e.setTextRange(yn,le)}return jt.parent=void 0,jt}function xa(le,rr){return rr===void 0&&(rr=!0),le&&e.factory.createNodeArray(le.map(function(yr){return Jt(yr,rr)}),le.hasTrailingComma)}e.getSynthesizedDeepClones=xa;function Di(le,rr,yr){return e.factory.createNodeArray(le.map(function(ct){return Sn(ct,rr,yr)}),le.hasTrailingComma)}e.getSynthesizedDeepClonesWithReplacements=Di;function $a(le){Ji(le),So(le)}e.suppressLeadingAndTrailingTrivia=$a;function Ji(le){Pn(le,512,da)}e.suppressLeadingTrivia=Ji;function So(le){Pn(le,1024,e.getLastChild)}e.suppressTrailingTrivia=So;function cs(le,rr){var yr=le.getSourceFile(),ct=yr.text;bt(le,ct)?xi(le,rr,yr):mi(le,rr,yr),ka(le,rr,yr)}e.copyComments=cs;function bt(le,rr){for(var yr=le.getFullStart(),ct=le.getStart(),jt=yr;jt<ct;jt++)if(rr.charCodeAt(jt)===10)return!0;return!1}function Pn(le,rr,yr){e.addEmitFlags(le,rr);var ct=yr(le);ct&&Pn(ct,rr,yr)}function da(le){return le.forEachChild(function(rr){return rr})}function ei(le,rr){for(var yr=le,ct=1;!e.isFileLevelUniqueName(rr,yr);ct++)yr="".concat(le,"_").concat(ct);return yr}e.getUniqueName=ei;function bi(le,rr,yr,ct){for(var jt=0,yn=-1,ha=0,ri=le;ha<ri.length;ha++){var Ta=ri[ha],Ya=Ta.fileName,fi=Ta.textChanges;e.Debug.assert(Ya===rr);for(var ci=0,Si=fi;ci<Si.length;ci++){var Do=Si[ci],bo=Do.span,Ns=Do.newText,Ys=Gi(Ns,yr);if(Ys!==-1&&(yn=bo.start+jt+Ys,!ct))return yn;jt+=Ns.length-bo.length}}return e.Debug.assert(ct),e.Debug.assert(yn>=0),yn}e.getRenameLocation=bi;function xi(le,rr,yr,ct,jt){e.forEachLeadingCommentRange(yr.text,le.pos,Xi(rr,yr,ct,jt,e.addSyntheticLeadingComment))}e.copyLeadingComments=xi;function ka(le,rr,yr,ct,jt){e.forEachTrailingCommentRange(yr.text,le.end,Xi(rr,yr,ct,jt,e.addSyntheticTrailingComment))}e.copyTrailingComments=ka;function mi(le,rr,yr,ct,jt){e.forEachTrailingCommentRange(yr.text,le.pos,Xi(rr,yr,ct,jt,e.addSyntheticLeadingComment))}e.copyTrailingAsLeadingComments=mi;function Xi(le,rr,yr,ct,jt){return function(yn,ha,ri,Ta){ri===3?(yn+=2,ha-=2):yn+=2,jt(le,yr||ri,rr.text.slice(yn,ha),ct!==void 0?ct:Ta)}}function Gi(le,rr){if(e.startsWith(le,rr))return 0;var yr=le.indexOf(" "+rr);return yr===-1&&(yr=le.indexOf("."+rr)),yr===-1&&(yr=le.indexOf('"'+rr)),yr===-1?-1:yr+1}function Ro(le){return e.isBinaryExpression(le)&&le.operatorToken.kind===27||e.isObjectLiteralExpression(le)||e.isAsExpression(le)&&e.isObjectLiteralExpression(le.expression)}e.needsParentheses=Ro;function ko(le,rr){var yr=le.parent;switch(yr.kind){case 208:return rr.getContextualType(yr);case 220:{var ct=yr,jt=ct.left,yn=ct.operatorToken,ha=ct.right;return as(yn.kind)?rr.getTypeAtLocation(le===ha?jt:ha):rr.getContextualType(le)}case 288:return yr.expression===le?ft(yr,rr):void 0;default:return rr.getContextualType(le)}}e.getContextualTypeFromParent=ko;function es(le,rr,yr){var ct=qt(le,rr),jt=JSON.stringify(yr);return ct===0?"'".concat(e.stripQuotes(jt).replace(/'/g,"\\'").replace(/\\"/g,'"'),"'"):jt}e.quote=es;function as(le){switch(le){case 36:case 34:case 37:case 35:return!0;default:return!1}}e.isEqualityOperatorKind=as;function pe(le){switch(le.kind){case 10:case 14:case 222:case 209:return!0;default:return!1}}e.isStringLiteralOrTemplate=pe;function Rr(le){return!!le.getStringIndexType()||!!le.getNumberIndexType()}e.hasIndexSignature=Rr;function ft(le,rr){return rr.getTypeAtLocation(le.parent.parent.expression)}e.getSwitchedType=ft,e.ANONYMOUS="anonymous function";function Zt(le,rr,yr,ct){var jt=yr.getTypeChecker(),yn=!0,ha=function(){return yn=!1},ri=jt.typeToTypeNode(le,rr,1,{trackSymbol:function(Ta,Ya,fi){return yn=yn&&jt.isSymbolAccessible(Ta,Ya,fi,!1).accessibility===0,!yn},reportInaccessibleThisError:ha,reportPrivateInBaseOfClassExpression:ha,reportInaccessibleUniqueSymbolError:ha,moduleResolverHost:na(yr,ct)});return yn?ri:void 0}e.getTypeNodeIfAccessible=Zt;function Re(le){return le===173||le===174||le===175||le===165||le===167}e.syntaxRequiresTrailingCommaOrSemicolonOrASI=Re;function Qr(le){return le===255||le===170||le===168||le===171||le===172}e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=Qr;function vn(le){return le===260}e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=vn;function Xn(le){return le===236||le===237||le===239||le===244||le===245||le===246||le===250||le===252||le===166||le===258||le===265||le===264||le===271||le===263||le===270}e.syntaxRequiresTrailingSemicolonOrASI=Xn,e.syntaxMayBeASICandidate=e.or(Re,Qr,vn,Xn);function gi(le,rr){var yr=le.getLastToken(rr);if(yr&&yr.kind===26)return!1;if(Re(le.kind)){if(yr&&yr.kind===27)return!1}else if(vn(le.kind)){var ct=e.last(le.getChildren(rr));if(ct&&e.isModuleBlock(ct))return!1}else if(Qr(le.kind)){var ct=e.last(le.getChildren(rr));if(ct&&e.isFunctionBlock(ct))return!1}else if(!Xn(le.kind))return!1;if(le.kind===239)return!0;var jt=e.findAncestor(le,function(Ta){return!Ta.parent}),yn=Fe(le,jt,rr);if(!yn||yn.kind===19)return!0;var ha=rr.getLineAndCharacterOfPosition(le.getEnd()).line,ri=rr.getLineAndCharacterOfPosition(yn.getStart(rr)).line;return ha!==ri}function Ia(le,rr,yr){var ct=e.findAncestor(rr,function(jt){return jt.end!==le?"quit":e.syntaxMayBeASICandidate(jt.kind)});return!!ct&&gi(ct,yr)}e.positionIsASICandidate=Ia;function oo(le){var rr=0,yr=0,ct=5;return e.forEachChild(le,function jt(yn){if(Xn(yn.kind)){var ha=yn.getLastToken(le);ha&&ha.kind===26?rr++:yr++}return rr+yr>=ct?!0:e.forEachChild(yn,jt)}),rr===0&&yr<=1?!0:rr/yr>1/ct}e.probablyUsesSemicolons=oo;function Wo(le,rr){return Co(le,le.getDirectories,rr)||[]}e.tryGetDirectories=Wo;function Ir(le,rr,yr,ct,jt){return Co(le,le.readDirectory,rr,yr,ct,jt)||e.emptyArray}e.tryReadDirectory=Ir;function Us(le,rr){return Co(le,le.fileExists,rr)}e.tryFileExists=Us;function il(le,rr){return Ml(function(){return e.directoryProbablyExists(rr,le)})||!1}e.tryDirectoryExists=il;function Ml(le){try{return le()}catch{return}}e.tryAndIgnoreErrors=Ml;function Co(le,rr){for(var yr=[],ct=2;ct<arguments.length;ct++)yr[ct-2]=arguments[ct];return Ml(function(){return rr&&rr.apply(le,yr)})}e.tryIOAndConsumeErrors=Co;function Vs(le,rr,yr){var ct=[];return e.forEachAncestorDirectory(le,function(jt){if(jt===yr)return!0;var yn=e.combinePaths(jt,"package.json");Us(rr,yn)&&ct.push(yn)}),ct}e.findPackageJsons=Vs;function Ql(le,rr){var yr;return e.forEachAncestorDirectory(le,function(ct){if(ct==="node_modules"||(yr=e.findConfigFile(ct,function(jt){return Us(rr,jt)},"package.json"),yr))return!0}),yr}e.findPackageJson=Ql;function zl(le,rr){if(!rr.fileExists)return[];var yr=[];return e.forEachAncestorDirectory(e.getDirectoryPath(le),function(ct){var jt=e.combinePaths(ct,"package.json");if(rr.fileExists(jt)){var yn=uc(jt,rr);yn&&yr.push(yn)}}),yr}e.getPackageJsonsVisibleToFile=zl;function uc(le,rr){if(!rr.readFile)return;var yr=["dependencies","devDependencies","optionalDependencies","peerDependencies"],ct=rr.readFile(le)||"",jt=no(ct),yn={};if(jt)for(var ha=0,ri=yr;ha<ri.length;ha++){var Ta=ri[ha],Ya=jt[Ta];if(Ya){var fi=new e.Map;for(var ci in Ya)fi.set(ci,Ya[ci]);yn[Ta]=fi}}var Si=[[1,yn.dependencies],[2,yn.devDependencies],[8,yn.optionalDependencies],[4,yn.peerDependencies]];return Rn(Rn({},yn),{parseable:!!jt,fileName:le,get:Do,has:function(bo,Ns){return!!Do(bo,Ns)}});function Do(bo,Ns){Ns===void 0&&(Ns=15);for(var Ys=0,Nu=Si;Ys<Nu.length;Ys++){var gf=Nu[Ys],Zl=gf[0],jc=gf[1];if(jc&&Ns&Zl){var Mr=jc.get(bo);if(Mr!==void 0)return Mr}}}}e.createPackageJsonInfo=uc;function cu(le,rr,yr){var ct=(yr.getPackageJsonsVisibleToFile&&yr.getPackageJsonsVisibleToFile(le.fileName)||zl(le.fileName,yr)).filter(function(Si){return Si.parseable}),jt;return{allowsImportingAmbientModule:ha,allowsImportingSourceFile:ri,allowsImportingSpecifier:Ta};function yn(Si){for(var Do=ci(Si),bo=0,Ns=ct;bo<Ns.length;bo++){var Ys=Ns[bo];if(Ys.has(Do)||Ys.has(e.getTypesPackageName(Do)))return!0}return!1}function ha(Si,Do){if(!ct.length||!Si.valueDeclaration)return!0;var bo=Si.valueDeclaration.getSourceFile(),Ns=fi(bo.fileName,Do);if(typeof Ns>"u")return!0;var Ys=e.stripQuotes(Si.getName());return Ya(Ys)?!0:yn(Ns)||yn(Ys)}function ri(Si,Do){if(!ct.length)return!0;var bo=fi(Si.fileName,Do);return bo?yn(bo):!0}function Ta(Si){return!ct.length||Ya(Si)||e.pathIsRelative(Si)||e.isRootedDiskPath(Si)?!0:yn(Si)}function Ya(Si){return!!(e.isSourceFileJS(le)&&e.JsTyping.nodeCoreModules.has(Si)&&(jt===void 0&&(jt=ql(le)),jt))}function fi(Si,Do){if(e.stringContains(Si,"node_modules")){var bo=e.moduleSpecifiers.getNodeModulesPackageName(yr.getCompilationSettings(),le.path,Si,Do,rr);if(bo&&!e.pathIsRelative(bo)&&!e.isRootedDiskPath(bo))return ci(bo)}}function ci(Si){var Do=e.getPathComponents(e.getPackageNameFromTypesPackageName(Si)).slice(1);return e.startsWith(Do[0],"@")?"".concat(Do[0],"/").concat(Do[1]):Do[0]}}e.createPackageJsonImportFilter=cu;function no(le){try{return JSON.parse(le)}catch{return}}function ql(le){return e.some(le.imports,function(rr){var yr=rr.text;return e.JsTyping.nodeCoreModules.has(yr)})}e.consumesNodeCoreModules=ql;function fc(le){return e.contains(e.getPathComponents(le),"node_modules")}e.isInsideNodeModules=fc;function Ws(le){return le.file!==void 0&&le.start!==void 0&&le.length!==void 0}e.isDiagnosticWithLocation=Ws;function xc(le,rr){var yr=dr(le),ct=e.binarySearchKey(rr,yr,e.identity,e.compareTextSpans);if(ct>=0){var jt=rr[ct];return e.Debug.assertEqual(jt.file,le.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(jt,Ws)}}e.findDiagnosticForNode=xc;function Ic(le,rr){var yr,ct=e.binarySearchKey(rr,le.start,function(ri){return ri.start},e.compareValues);for(ct<0&&(ct=~ct);((yr=rr[ct-1])===null||yr===void 0?void 0:yr.start)===le.start;)ct--;for(var jt=[],yn=e.textSpanEnd(le);;){var ha=e.tryCast(rr[ct],Ws);if(!ha||ha.start>yn)break;e.textSpanContainsTextSpan(le,ha)&&jt.push(ha),ct++}return jt}e.getDiagnosticsWithinSpan=Ic;function La(le){var rr=le.startPosition,yr=le.endPosition;return e.createTextSpanFromBounds(rr,yr===void 0?rr:yr)}e.getRefactorContextSpan=La;function uu(le,rr){var yr=Hr(le,rr.start),ct=e.findAncestor(yr,function(jt){return jt.getStart(le)<rr.start||jt.getEnd()>e.textSpanEnd(rr)?"quit":e.isExpression(jt)&&Ci(rr,dr(jt,le))});return ct}e.getFixableErrorSpanExpression=uu;function dc(le,rr,yr){return yr===void 0&&(yr=e.identity),le?e.isArray(le)?yr(e.map(le,rr)):rr(le,0):void 0}e.mapOneOrMany=dc;function Nc(le){return e.isArray(le)?e.first(le):le}e.firstOrOnly=Nc;function wr(le,rr){return!(le.flags&33554432)&&(le.escapedName==="export="||le.escapedName==="default")?e.firstDefined(le.declarations,function(yr){var ct;return e.isExportAssignment(yr)?(ct=e.tryCast(e.skipOuterExpressions(yr.expression),e.isIdentifier))===null||ct===void 0?void 0:ct.text:void 0})||e.codefix.moduleSymbolToValidIdentifier($r(le),rr):le.name}e.getNameForExportedSymbol=wr;function $r(le){var rr;return e.Debug.checkDefined(le.parent,"Symbol parent was undefined. Flags: ".concat(e.Debug.formatSymbolFlags(le.flags),". ")+"Declarations: ".concat((rr=le.declarations)===null||rr===void 0?void 0:rr.map(function(yr){var ct=e.Debug.formatSyntaxKind(yr.kind),jt=e.isInJSFile(yr),yn=yr.expression;return(jt?"[JS]":"")+ct+(yn?" (expression: ".concat(e.Debug.formatSyntaxKind(yn.kind),")"):"")}).join(", "),"."))}function Lt(le,rr,yr){var ct=rr.length;if(ct+yr>le.length)return!1;for(var jt=0;jt<ct;jt++)if(rr.charCodeAt(jt)!==le.charCodeAt(jt+yr))return!1;return!0}e.stringContainsAt=Lt;function Kt(le){return le.charCodeAt(0)===95}e.startsWithUnderscore=Kt;function pn(le){return!fn(le)}e.isGlobalDeclaration=pn;function fn(le){var rr=le.getSourceFile();return!rr.externalModuleIndicator&&!rr.commonJsModuleIndicator?!1:e.isInJSFile(le)||!e.findAncestor(le,e.isGlobalScopeAugmentation)}e.isNonGlobalDeclaration=fn;function kn(le){return!!(e.getCombinedNodeFlagsAlwaysIncludeJSDoc(le)&8192)}e.isDeprecatedDeclaration=kn;function Kn(le,rr){var yr=e.firstDefined(le.imports,function(ct){if(e.JsTyping.nodeCoreModules.has(ct.text))return e.startsWith(ct.text,"node:")});return yr??rr.usesUriStyleNodeCoreModules}e.shouldUseUriStyleNodeCoreModules=Kn;function Fa(le){return le===`
  243. `?1:0}e.getNewLineKind=Fa;function ua(le){return e.isArray(le)?e.formatStringFromArgs(e.getLocaleSpecificMessage(le[0]),le.slice(1)):e.getLocaleSpecificMessage(le)}e.diagnosticToString=ua}(jr||(jr={})),function(e){(function(ie){ie[ie.Named=0]="Named",ie[ie.Default=1]="Default",ie[ie.Namespace=2]="Namespace",ie[ie.CommonJS=3]="CommonJS"})(e.ImportKind||(e.ImportKind={})),function(ie){ie[ie.Named=0]="Named",ie[ie.Default=1]="Default",ie[ie.ExportEquals=2]="ExportEquals",ie[ie.UMD=3]="UMD"}(e.ExportKind||(e.ExportKind={}));function n(ie){var b=1,M=e.createMultiMap(),S=new e.Map,B,H={isUsableByFile:function(Z){return Z===B},isEmpty:function(){return!M.size},clear:function(){M.clear(),S.clear(),B=void 0},add:function(Z,ne,F,Q,V,re,T,N,y){Z!==B&&(H.clear(),B=Z);var D=re===1,C=D&&e.getLocalSymbolForExportDefault(ne)||ne,m=re===0||e.isExternalModuleSymbol(C)?e.unescapeLeadingUnderscores(F):e.getNameForExportedSymbol(C,N),u=e.stripQuotes(Q.name),g=b++,P=e.skipAlias(ne,y),te=ne.flags&33554432?void 0:ne,ue=Q.flags&33554432?void 0:Q;(!te||!ue)&&S.set(g,[ne,Q]),M.add(w(m,ne,e.isExternalModuleNameRelative(u)?void 0:u,y),{id:g,symbolTableKey:F,symbolName:m,moduleName:u,moduleFile:V,moduleFileName:V==null?void 0:V.fileName,exportKind:re,targetFlags:P.flags,isFromPackageJson:T,symbol:te,moduleSymbol:ue})},get:function(Z,ne){if(Z===B){var F=M.get(ne);return F==null?void 0:F.map(I)}},forEach:function(Z,ne){Z===B&&M.forEach(function(F,Q){var V=x(Q),re=V.symbolName,T=V.ambientModuleName;ne(F.map(I),re,!!T,Q)})},releaseSymbols:function(){S.clear()},onFileChanged:function(Z,ne,F){return O(Z)&&O(ne)?!1:B&&B!==ne.path||F&&e.consumesNodeCoreModules(Z)!==e.consumesNodeCoreModules(ne)||!e.arrayIsEqualTo(Z.moduleAugmentations,ne.moduleAugmentations)||!q(Z,ne)?(H.clear(),!0):(B=ne.path,!1)}};return e.Debug.isDebugging&&Object.defineProperty(H,"__cache",{get:function(){return M}}),H;function I(Z){if(Z.symbol&&Z.moduleSymbol)return Z;var ne=Z.id,F=Z.exportKind,Q=Z.targetFlags,V=Z.isFromPackageJson,re=Z.moduleFileName,T=S.get(ne)||e.emptyArray,N=T[0],y=T[1];if(N&&y)return{symbol:N,moduleSymbol:y,moduleFileName:re,exportKind:F,targetFlags:Q,isFromPackageJson:V};var D=(V?ie.getPackageJsonAutoImportProvider():ie.getCurrentProgram()).getTypeChecker(),C=Z.moduleSymbol||y||e.Debug.checkDefined(Z.moduleFile?D.getMergedSymbol(Z.moduleFile.symbol):D.tryFindAmbientModule(Z.moduleName)),m=Z.symbol||N||e.Debug.checkDefined(F===2?D.resolveExternalModuleSymbol(C):D.tryGetMemberInModuleExportsAndProperties(e.unescapeLeadingUnderscores(Z.symbolTableKey),C),"Could not find symbol '".concat(Z.symbolName,"' by key '").concat(Z.symbolTableKey,"' in module ").concat(C.name));return S.set(ne,[m,C]),{symbol:m,moduleSymbol:C,moduleFileName:re,exportKind:F,targetFlags:Q,isFromPackageJson:V}}function w(Z,ne,F,Q){var V=F||"";return"".concat(Z,"|").concat(e.getSymbolId(e.skipAlias(ne,Q)),"|").concat(V)}function x(Z){var ne=Z.substring(0,Z.indexOf("|")),F=Z.substring(Z.lastIndexOf("|")+1),Q=F===""?void 0:F;return{symbolName:ne,ambientModuleName:Q}}function O(Z){return!Z.commonJsModuleIndicator&&!Z.externalModuleIndicator&&!Z.moduleAugmentations&&!Z.ambientModuleNames}function q(Z,ne){if(!e.arrayIsEqualTo(Z.ambientModuleNames,ne.ambientModuleNames))return!1;for(var F=-1,Q=-1,V=function(D){var C=function(m){return e.isNonGlobalAmbientModule(m)&&m.name.text===D};if(F=e.findIndex(Z.statements,C,F+1),Q=e.findIndex(ne.statements,C,Q+1),Z.statements[F]!==ne.statements[Q])return{value:!1}},re=0,T=ne.ambientModuleNames;re<T.length;re++){var N=T[re],y=V(N);if(typeof y=="object")return y.value}return!0}}e.createCacheableExportInfoMap=n;function f(ie,b,M,S,B,H,I){var w;if(b===M)return!1;var x=I==null?void 0:I.get(b.path,M.path,S);if((x==null?void 0:x.isAutoImportable)!==void 0)return x.isAutoImportable;var O=e.hostGetCanonicalFileName(H),q=(w=H.getGlobalTypingsCacheLocation)===null||w===void 0?void 0:w.call(H),Z=!!e.moduleSpecifiers.forEachFileNameOfModule(b.fileName,M.fileName,H,!1,function(F){var Q=ie.getSourceFile(F);return(Q===M||!Q)&&p(b.fileName,F,O,q)});if(B){var ne=Z&&B.allowsImportingSourceFile(M,H);return I==null||I.setIsAutoImportable(b.path,M.path,S,ne),ne}return Z}e.isImportableFile=f;function p(ie,b,M,S){var B=e.forEachAncestorDirectory(b,function(I){return e.getBaseFileName(I)==="node_modules"?I:void 0}),H=B&&e.getDirectoryPath(M(B));return H===void 0||e.startsWith(M(ie),H)||!!S&&e.startsWith(M(S),H)}function a(ie,b,M,S){var B,H;d(ie.getTypeChecker(),ie.getSourceFiles(),function(x,O){return S(x,O,ie,!1)});var I=M&&((B=b.getPackageJsonAutoImportProvider)===null||B===void 0?void 0:B.call(b));if(I){var w=e.timestamp();d(I.getTypeChecker(),I.getSourceFiles(),function(x,O){return S(x,O,I,!0)}),(H=b.log)===null||H===void 0||H.call(b,"forEachExternalModuleToImportFrom autoImportProvider: ".concat(e.timestamp()-w))}}e.forEachExternalModuleToImportFrom=a;function d(ie,b,M){for(var S=0,B=ie.getAmbientModules();S<B.length;S++){var H=B[S];e.stringContains(H.name,"*")||M(H,void 0)}for(var I=0,w=b;I<w.length;I++){var x=w[I];e.isExternalOrCommonJsModule(x)&&M(ie.getMergedSymbol(x.symbol),x)}}function k(ie,b,M,S){var B,H,I,w,x,O=e.timestamp();(B=b.getPackageJsonAutoImportProvider)===null||B===void 0||B.call(b);var q=((H=b.getCachedExportInfoMap)===null||H===void 0?void 0:H.call(b))||n({getCurrentProgram:function(){return M},getPackageJsonAutoImportProvider:function(){var Q;return(Q=b.getPackageJsonAutoImportProvider)===null||Q===void 0?void 0:Q.call(b)}});if(q.isUsableByFile(ie.path))return(I=b.log)===null||I===void 0||I.call(b,"getExportInfoMap: cache hit"),q;(w=b.log)===null||w===void 0||w.call(b,"getExportInfoMap: cache miss or empty; calculating new results");var Z=M.getCompilerOptions(),ne=e.getEmitScriptTarget(Z),F=0;return a(M,b,!0,function(Q,V,re,T){++F%100===0&&(S==null||S.throwIfCancellationRequested());var N=new e.Map,y=re.getTypeChecker(),D=J(Q,y,Z);D&&h(D.symbol,y)&&q.add(ie.path,D.symbol,D.exportKind===1?"default":"export=",Q,V,D.exportKind,T,ne,y),y.forEachExportAndPropertyOfModule(Q,function(C,m){C!==(D==null?void 0:D.symbol)&&h(C,y)&&e.addToSeen(N,m)&&q.add(ie.path,C,m,Q,V,0,T,ne,y)})}),(x=b.log)===null||x===void 0||x.call(b,"getExportInfoMap: done in ".concat(e.timestamp()-O," ms")),q}e.getExportInfoMap=k;function J(ie,b,M){var S=v(ie,b);if(S){var B=S.symbol,H=S.exportKind,I=A(B,b,M);return I&&Rn({symbol:B,exportKind:H},I)}}e.getDefaultLikeExportInfo=J;function h(ie,b){return!b.isUndefinedSymbol(ie)&&!b.isUnknownSymbol(ie)&&!e.isKnownSymbol(ie)&&!e.isPrivateIdentifierSymbol(ie)}function v(ie,b){var M=b.resolveExternalModuleSymbol(ie);if(M!==ie)return{symbol:M,exportKind:2};var S=b.tryGetMemberInModuleExports("default",ie);if(S)return{symbol:S,exportKind:1}}function A(ie,b,M){var S=e.getLocalSymbolForExportDefault(ie);if(S)return{symbolForMeaning:S,name:S.name};var B=z(ie);if(B!==void 0)return{symbolForMeaning:ie,name:B};if(ie.flags&2097152){var H=b.getImmediateAliasedSymbol(ie);if(H&&H.parent)return A(H,b,M)}return ie.escapedName!=="default"&&ie.escapedName!=="export="?{symbolForMeaning:ie,name:ie.getName()}:{symbolForMeaning:ie,name:e.getNameForExportedSymbol(ie,M.target)}}function z(ie){return ie.declarations&&e.firstDefined(ie.declarations,function(b){var M;if(e.isExportAssignment(b))return(M=e.tryCast(e.skipOuterExpressions(b.expression),e.isIdentifier))===null||M===void 0?void 0:M.text;if(e.isExportSpecifier(b))return e.Debug.assert(b.name.text==="default","Expected the specifier to be a default export"),b.propertyName&&b.propertyName.text})}}(jr||(jr={})),function(e){function n(){var O=e.createScanner(99,!1);function q(ne,F,Q){return d(Z(ne,F,Q),ne)}function Z(ne,F,Q){var V=0,re=0,T=[],N=h(F),y=N.prefix,D=N.pushTemplate;ne=y+ne;var C=y.length;D&&T.push(15),O.setText(ne);var m=0,u=[],g=0;do{V=O.scan(),e.isTrivia(V)||(ue(),re=V);var P=O.getTextPos();if(a(O.getTokenPos(),P,C,z(V),u),P>=ne.length){var te=p(O,V,e.lastOrUndefined(T));te!==void 0&&(m=te)}}while(V!==1);function ue(){switch(V){case 43:case 68:!f[re]&&O.reScanSlashToken()===13&&(V=13);break;case 29:re===79&&g++;break;case 31:g>0&&g--;break;case 130:case 149:case 146:case 133:case 150:g>0&&!Q&&(V=79);break;case 15:T.push(V);break;case 18:T.length>0&&T.push(V);break;case 19:if(T.length>0){var X=e.lastOrUndefined(T);X===15?(V=O.reScanTemplateToken(!1),V===17?T.pop():e.Debug.assertEqual(V,16,"Should have been a template middle.")):(e.Debug.assertEqual(X,18,"Should have been an open brace"),T.pop())}break;default:if(!e.isKeyword(V))break;(re===24||e.isKeyword(re)&&e.isKeyword(V)&&!J(re,V))&&(V=79)}}return{endOfLineState:m,spans:u}}return{getClassificationsForLine:q,getEncodedLexicalClassifications:Z}}e.createClassifier=n;var f=e.arrayToNumericMap([79,10,8,9,13,108,45,46,21,23,19,110,95],function(O){return O},function(){return!0});function p(O,q,Z){switch(q){case 10:{if(!O.isUnterminated())return;for(var ne=O.getTokenText(),F=ne.length-1,Q=0;ne.charCodeAt(F-Q)===92;)Q++;return Q&1?ne.charCodeAt(0)===34?3:2:void 0}case 3:return O.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(q)){if(!O.isUnterminated())return;switch(q){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+q)}}return Z===15?6:void 0}}function a(O,q,Z,ne,F){if(ne!==8){O===0&&Z>0&&(O+=Z);var Q=q-O;Q>0&&F.push(O-Z,Q,ne)}}function d(O,q){for(var Z=[],ne=O.spans,F=0,Q=0;Q<ne.length;Q+=3){var V=ne[Q],re=ne[Q+1],T=ne[Q+2];if(F>=0){var N=V-F;N>0&&Z.push({length:N,classification:e.TokenClass.Whitespace})}Z.push({length:re,classification:k(T)}),F=V+re}var y=q.length-F;return y>0&&Z.push({length:y,classification:e.TokenClass.Whitespace}),{entries:Z,finalLexState:O.endOfLineState}}function k(O){switch(O){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return}}function J(O,q){if(!e.isAccessibilityModifier(O))return!0;switch(q){case 136:case 148:case 134:case 124:return!0;default:return!1}}function h(O){switch(O){case 3:return{prefix:`"\\
  244. `};case 2:return{prefix:`'\\
  245. `};case 1:return{prefix:`/*
  246. `};case 4:return{prefix:"`\n"};case 5:return{prefix:`}
  247. `,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return e.Debug.assertNever(O)}}function v(O){switch(O){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 127: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 A(O){switch(O){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}function z(O){if(e.isKeyword(O))return 3;if(v(O)||A(O))return 5;if(O>=18&&O<=78)return 10;switch(O){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 e.isTemplateLiteralKind(O)?6:2}}function ie(O,q,Z,ne,F){return I(M(O,q,Z,ne,F))}e.getSemanticClassifications=ie;function b(O,q){switch(q){case 260:case 256:case 257:case 255:case 225:case 212:case 213:O.throwIfCancellationRequested()}}function M(O,q,Z,ne,F){var Q=[];return Z.forEachChild(function re(T){if(!(!T||!e.textSpanIntersectsWith(F,T.pos,T.getFullWidth()))){if(b(q,T.kind),e.isIdentifier(T)&&!e.nodeIsMissing(T)&&ne.has(T.escapedText)){var N=O.getSymbolAtLocation(T),y=N&&S(N,e.getMeaningFromLocation(T),O);y&&V(T.getStart(Z),T.getEnd(),y)}T.forEachChild(re)}}),{spans:Q,endOfLineState:0};function V(re,T,N){var y=T-re;e.Debug.assert(y>0,"Classification had non-positive length of ".concat(y)),Q.push(re),Q.push(y),Q.push(N)}}e.getEncodedSemanticClassifications=M;function S(O,q,Z){var ne=O.getFlags();if(ne&2885600)return ne&32?11:ne&384?12:ne&524288?16:ne&1536?q&4||q&1&&B(O)?14:void 0:ne&2097152?S(Z.getAliasedSymbol(O),q,Z):q&2?ne&64?13:ne&262144?15:void 0:void 0}function B(O){return e.some(O.declarations,function(q){return e.isModuleDeclaration(q)&&e.getModuleInstanceState(q)===1})}function H(O){switch(O){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 I(O){e.Debug.assert(O.spans.length%3===0);for(var q=O.spans,Z=[],ne=0;ne<q.length;ne+=3)Z.push({textSpan:e.createTextSpan(q[ne],q[ne+1]),classificationType:H(q[ne+2])});return Z}function w(O,q,Z){return I(x(O,q,Z))}e.getSyntacticClassifications=w;function x(O,q,Z){var ne=Z.start,F=Z.length,Q=e.createScanner(99,!1,q.languageVariant,q.text),V=e.createScanner(99,!1,q.languageVariant,q.text),re=[];return j(q),{spans:re,endOfLineState:0};function T(Se,Ce,R){re.push(Se),re.push(Ce),re.push(R)}function N(Se){for(Q.setTextPos(Se.pos);;){var Ce=Q.getTextPos();if(!e.couldStartTrivia(q.text,Ce))return Ce;var R=Q.scan(),Y=Q.getTextPos(),U=Y-Ce;if(!e.isTrivia(R))return Ce;switch(R){case 4:case 5:continue;case 2:case 3:y(Se,R,Ce,U),Q.setTextPos(Y);continue;case 7:var K=q.text,Te=K.charCodeAt(Ce);if(Te===60||Te===62){T(Ce,U,1);continue}e.Debug.assert(Te===124||Te===61),g(K,Ce,Y);break;case 6:break;default:e.Debug.assertNever(R)}}}function y(Se,Ce,R,Y){if(Ce===3){var U=e.parseIsolatedJSDocComment(q.text,R,Y);if(U&&U.jsDoc){e.setParent(U.jsDoc,Se),C(U.jsDoc);return}}else if(Ce===2&&m(R,Y))return;D(R,Y)}function D(Se,Ce){T(Se,Ce,1)}function C(Se){var Ce,R,Y,U,K,Te,ge,ke=Se.pos;if(Se.tags)for(var Pe=0,Ie=Se.tags;Pe<Ie.length;Pe++){var Ge=Ie[Pe];Ge.pos!==ke&&D(ke,Ge.pos-ke),T(Ge.pos,1,10),T(Ge.tagName.pos,Ge.tagName.end-Ge.tagName.pos,18),ke=Ge.tagName.end;var he=Ge.tagName.end;switch(Ge.kind){case 338:var ve=Ge;Le(ve),he=ve.isNameFirst&&((Ce=ve.typeExpression)===null||Ce===void 0?void 0:Ce.end)||ve.name.end;break;case 345:var Ve=Ge;he=Ve.isNameFirst&&((R=Ve.typeExpression)===null||R===void 0?void 0:R.end)||Ve.name.end;break;case 342:u(Ge),ke=Ge.end,he=Ge.typeParameters.end;break;case 343:var _e=Ge;he=((Y=_e.typeExpression)===null||Y===void 0?void 0:Y.kind)===307&&((U=_e.fullName)===null||U===void 0?void 0:U.end)||((K=_e.typeExpression)===null||K===void 0?void 0:K.end)||he;break;case 336:he=Ge.typeExpression.end;break;case 341:j(Ge.typeExpression),ke=Ge.end,he=Ge.typeExpression.end;break;case 340:case 337:he=Ge.typeExpression.end;break;case 339:j(Ge.typeExpression),ke=Ge.end,he=((Te=Ge.typeExpression)===null||Te===void 0?void 0:Te.end)||he;break;case 344:he=((ge=Ge.name)===null||ge===void 0?void 0:ge.end)||he;break;case 326:case 327:he=Ge.class.end;break}typeof Ge.comment=="object"?D(Ge.comment.pos,Ge.comment.end-Ge.comment.pos):typeof Ge.comment=="string"&&D(he,Ge.end-he)}ke!==Se.end&&D(ke,Se.end-ke);return;function Le(qe){qe.isNameFirst&&(D(ke,qe.name.pos-ke),T(qe.name.pos,qe.name.end-qe.name.pos,17),ke=qe.name.end),qe.typeExpression&&(D(ke,qe.typeExpression.pos-ke),j(qe.typeExpression),ke=qe.typeExpression.end),qe.isNameFirst||(D(ke,qe.name.pos-ke),T(qe.name.pos,qe.name.end-qe.name.pos,17),ke=qe.name.end)}}function m(Se,Ce){var R=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,Y=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,U=q.text.substr(Se,Ce),K=R.exec(U);if(!K||!K[3]||!(K[3]in e.commentPragmas))return!1;var Te=Se;D(Te,K[1].length),Te+=K[1].length,T(Te,K[2].length,10),Te+=K[2].length,T(Te,K[3].length,21),Te+=K[3].length;for(var ge=K[4],ke=Te;;){var Pe=Y.exec(ge);if(!Pe)break;var Ie=Te+Pe.index+Pe[1].length;Ie>ke&&(D(ke,Ie-ke),ke=Ie),T(ke,Pe[2].length,22),ke+=Pe[2].length,Pe[3].length&&(D(ke,Pe[3].length),ke+=Pe[3].length),T(ke,Pe[4].length,5),ke+=Pe[4].length,Pe[5].length&&(D(ke,Pe[5].length),ke+=Pe[5].length),T(ke,Pe[6].length,24),ke+=Pe[6].length}Te+=K[4].length,Te>ke&&D(ke,Te-ke),K[5]&&(T(Te,K[5].length,10),Te+=K[5].length);var Ge=Se+Ce;return Te<Ge&&D(Te,Ge-Te),!0}function u(Se){for(var Ce=0,R=Se.getChildren();Ce<R.length;Ce++){var Y=R[Ce];j(Y)}}function g(Se,Ce,R){var Y;for(Y=Ce;Y<R&&!e.isLineBreak(Se.charCodeAt(Y));Y++);for(T(Ce,Y-Ce,1),V.setTextPos(Y);V.getTextPos()<R;)P()}function P(){var Se=V.getTextPos(),Ce=V.scan(),R=V.getTextPos(),Y=X(Ce);Y&&T(Se,R-Se,Y)}function te(Se){if(e.isJSDoc(Se)||e.nodeIsMissing(Se))return!0;var Ce=ue(Se);if(!e.isToken(Se)&&Se.kind!==11&&Ce===void 0)return!1;var R=Se.kind===11?Se.pos:N(Se),Y=Se.end-R;if(e.Debug.assert(Y>=0),Y>0){var U=Ce||X(Se.kind,Se);U&&T(R,Y,U)}return!0}function ue(Se){switch(Se.parent&&Se.parent.kind){case 279:if(Se.parent.tagName===Se)return 19;break;case 280:if(Se.parent.tagName===Se)return 20;break;case 278:if(Se.parent.tagName===Se)return 21;break;case 284:if(Se.parent.name===Se)return 22;break}}function X(Se,Ce){if(e.isKeyword(Se))return 3;if((Se===29||Se===31)&&Ce&&e.getTypeArgumentOrTypeParameterList(Ce.parent))return 10;if(e.isPunctuation(Se)){if(Ce){var R=Ce.parent;if(Se===63&&(R.kind===253||R.kind===166||R.kind===163||R.kind===284)||R.kind===220||R.kind===218||R.kind===219||R.kind===221)return 5}return 10}else{if(Se===8)return 4;if(Se===9)return 25;if(Se===10)return Ce&&Ce.parent.kind===284?24:6;if(Se===13)return 6;if(e.isTemplateLiteralKind(Se))return 6;if(Se===11)return 23;if(Se===79){if(Ce)switch(Ce.parent.kind){case 256:return Ce.parent.name===Ce?11:void 0;case 162:return Ce.parent.name===Ce?15:void 0;case 257:return Ce.parent.name===Ce?13:void 0;case 259:return Ce.parent.name===Ce?12:void 0;case 260:return Ce.parent.name===Ce?14:void 0;case 163:return Ce.parent.name===Ce?e.isThisIdentifier(Ce)?3:17:void 0}return 2}}}function j(Se){if(Se&&e.decodedTextSpanIntersectsWith(ne,F,Se.pos,Se.getFullWidth())){b(O,Se.kind);for(var Ce=0,R=Se.getChildren(q);Ce<R.length;Ce++){var Y=R[Ce];te(Y)||j(Y)}}}}e.getEncodedSyntacticClassifications=x}(jr||(jr={})),function(e){(function(n){(function(f){(function(S){S[S.typeOffset=8]="typeOffset",S[S.modifierMask=255]="modifierMask"})(f.TokenEncodingConsts||(f.TokenEncodingConsts={})),function(S){S[S.class=0]="class",S[S.enum=1]="enum",S[S.interface=2]="interface",S[S.namespace=3]="namespace",S[S.typeParameter=4]="typeParameter",S[S.type=5]="type",S[S.parameter=6]="parameter",S[S.variable=7]="variable",S[S.enumMember=8]="enumMember",S[S.property=9]="property",S[S.function=10]="function",S[S.member=11]="member"}(f.TokenType||(f.TokenType={})),function(S){S[S.declaration=0]="declaration",S[S.static=1]="static",S[S.async=2]="async",S[S.readonly=3]="readonly",S[S.defaultLibrary=4]="defaultLibrary",S[S.local=5]="local"}(f.TokenModifier||(f.TokenModifier={}));function p(S,B,H,I){var w=a(S,B,H,I);e.Debug.assert(w.spans.length%3===0);for(var x=w.spans,O=[],q=0;q<x.length;q+=3)O.push({textSpan:e.createTextSpan(x[q],x[q+1]),classificationType:x[q+2]});return O}f.getSemanticClassifications=p;function a(S,B,H,I){return{spans:d(S,H,I,B),endOfLineState:0}}f.getEncodedSemanticClassifications=a;function d(S,B,H,I){var w=[],x=function(O,q,Z){w.push(O.getStart(B),O.getWidth(B),(q+1<<8)+Z)};return S&&B&&k(S,B,H,x,I),w}function k(S,B,H,I,w){var x=S.getTypeChecker(),O=!1;function q(Z){switch(Z.kind){case 260:case 256:case 257:case 255:case 225:case 212:case 213:w.throwIfCancellationRequested()}if(!(!Z||!e.textSpanIntersectsWith(H,Z.pos,Z.getFullWidth())||Z.getFullWidth()===0)){var ne=O;if((e.isJsxElement(Z)||e.isJsxSelfClosingElement(Z))&&(O=!0),e.isJsxExpression(Z)&&(O=!1),e.isIdentifier(Z)&&!O&&!z(Z)&&!e.isInfinityOrNaNString(Z.escapedText)){var F=x.getSymbolAtLocation(Z);if(F){F.flags&2097152&&(F=x.getAliasedSymbol(F));var Q=J(F,e.getMeaningFromLocation(Z));if(Q!==void 0){var V=0;if(Z.parent){var re=e.isBindingElement(Z.parent)||M.get(Z.parent.kind)===Q;re&&Z.parent.name===Z&&(V=1)}Q===6&&b(Z)&&(Q=9),Q=h(x,Z,Q);var T=F.valueDeclaration;if(T){var N=e.getCombinedModifierFlags(T),y=e.getCombinedNodeFlags(T);N&32&&(V|=2),N&256&&(V|=4),Q!==0&&Q!==2&&(N&64||y&2||F.getFlags()&8)&&(V|=8),(Q===7||Q===10)&&v(T,B)&&(V|=32),S.isSourceFileDefaultLibrary(T.getSourceFile())&&(V|=16)}else F.declarations&&F.declarations.some(function(D){return S.isSourceFileDefaultLibrary(D.getSourceFile())})&&(V|=16);I(Z,Q,V)}}}e.forEachChild(Z,q),O=ne}}q(B)}function J(S,B){var H=S.getFlags();if(H&32)return 0;if(H&384)return 1;if(H&524288)return 5;if(H&64){if(B&2)return 2}else if(H&262144)return 4;var I=S.valueDeclaration||S.declarations&&S.declarations[0];return I&&e.isBindingElement(I)&&(I=A(I)),I&&M.get(I.kind)}function h(S,B,H){if(H===7||H===9||H===6){var I=S.getTypeAtLocation(B);if(I){var w=function(x){return x(I)||I.isUnion()&&I.types.some(x)};if(H!==6&&w(function(x){return x.getConstructSignatures().length>0}))return 0;if(w(function(x){return x.getCallSignatures().length>0})&&!w(function(x){return x.getProperties().length>0})||ie(B))return H===9?11:10}}return H}function v(S,B){return e.isBindingElement(S)&&(S=A(S)),e.isVariableDeclaration(S)?(!e.isSourceFile(S.parent.parent.parent)||e.isCatchClause(S.parent))&&S.getSourceFile()===B:e.isFunctionDeclaration(S)?!e.isSourceFile(S.parent)&&S.getSourceFile()===B:!1}function A(S){for(;;)if(e.isBindingElement(S.parent.parent))S=S.parent.parent;else return S.parent.parent}function z(S){var B=S.parent;return B&&(e.isImportClause(B)||e.isImportSpecifier(B)||e.isNamespaceImport(B))}function ie(S){for(;b(S);)S=S.parent;return e.isCallExpression(S.parent)&&S.parent.expression===S}function b(S){return e.isQualifiedName(S.parent)&&S.parent.right===S||e.isPropertyAccessExpression(S.parent)&&S.parent.name===S}var M=new e.Map([[253,7],[163,6],[166,9],[260,3],[259,1],[297,8],[256,0],[168,11],[255,10],[212,10],[167,11],[171,9],[172,9],[165,9],[257,2],[258,5],[162,4],[294,9],[295,9]])})(n.v2020||(n.v2020={}))})(e.classifier||(e.classifier={}))}(jr||(jr={})),function(e){(function(n){(function(f){function p(U,K,Te,ge,ke,Pe,Ie,Ge){if(e.isInReferenceComment(U,K)){var he=P(U,K,ge,ke);return he&&J(he)}if(e.isInString(U,K,Te)){if(!Te||!e.isStringLiteralLike(Te))return;var he=A(U,Te,K,Pe.getTypeChecker(),ge,ke,Ge);return a(he,Te,U,ke,Pe,Ie,ge,Ge)}}f.getStringLiteralCompletions=p;function a(U,K,Te,ge,ke,Pe,Ie,Ge){if(U!==void 0){var he=e.createTextSpanFromStringLiteralLikeContent(K);switch(U.kind){case 0:return J(U.paths);case 1:{var ve=[];return n.getCompletionEntriesFromSymbols(U.symbols,ve,K,K,Te,Te,ge,ke,99,Pe,4,Ge,Ie),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:U.hasIndexSignature,optionalReplacementSpan:he,entries:ve}}case 2:{var ve=U.types.map(function(_e){return{name:_e.value,kindModifiers:"",kind:"string",sortText:n.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(K)}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:U.isNewIdentifier,optionalReplacementSpan:he,entries:ve}}default:return e.Debug.assertNever(U)}}}function d(U,K,Te,ge,ke,Pe,Ie,Ge,he){if(!(!ge||!e.isStringLiteralLike(ge))){var ve=A(K,ge,Te,ke,Pe,Ie,he);return ve&&k(U,ge,ve,K,ke,Ge)}}f.getStringLiteralCompletionDetails=d;function k(U,K,Te,ge,ke,Pe){switch(Te.kind){case 0:{var Ie=e.find(Te.paths,function(Ge){return Ge.name===U});return Ie&&n.createCompletionDetails(U,h(Ie.extension),Ie.kind,[e.textPart(U)])}case 1:{var Ie=e.find(Te.symbols,function(he){return he.name===U});return Ie&&n.createCompletionDetailsForSymbol(Ie,ke,ge,K,Pe)}case 2:return e.find(Te.types,function(Ge){return Ge.value===U})?n.createCompletionDetails(U,"","type",[e.textPart(U)]):void 0;default:return e.Debug.assertNever(Te)}}function J(U){var K=!1,Te=!0,ge=U.map(function(ke){var Pe=ke.name,Ie=ke.kind,Ge=ke.span,he=ke.extension;return{name:Pe,kind:Ie,kindModifiers:h(he),sortText:n.SortText.LocationPriority,replacementSpan:Ge}});return{isGlobalCompletion:K,isMemberCompletion:!1,isNewIdentifierLocation:Te,entries:ge}}function h(U){switch(U){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 e.Debug.fail("Extension ".concat(".tsbuildinfo"," is unsupported."));case void 0:return"";default:return e.Debug.assertNever(U)}}var v;(function(U){U[U.Paths=0]="Paths",U[U.Properties=1]="Properties",U[U.Types=2]="Types"})(v||(v={}));function A(U,K,Te,ge,ke,Pe,Ie){var Ge=z(K.parent);switch(Ge.kind){case 195:{var he=z(Ge.parent);switch(he.kind){case 177:{var ve=he,Ve=e.findAncestor(Ge,function(Ar){return Ar.parent===ve});return Ve?{kind:2,types:B(ge.getTypeArgumentConstraint(Ve)),isNewIdentifier:!1}:void 0}case 193:var _e=he,Le=_e.indexType,qe=_e.objectType;return e.rangeContainsPosition(Le,Te)?M(ge.getTypeFromTypeNode(qe)):void 0;case 199:return{kind:0,paths:x(U,K,ke,Pe,ge,Ie)};case 186:{if(!e.isTypeReferenceNode(he.parent))return;var Xe=ie(he,Ge),De=B(ge.getTypeArgumentConstraint(he)).filter(function(Ar){return!e.contains(Xe,Ar.value)});return{kind:2,types:De,isNewIdentifier:!1}}default:return}}case 294:return e.isObjectLiteralExpression(Ge.parent)&&Ge.name===K?S(ge,Ge.parent):lr();case 206:{var Ae=Ge,Ye=Ae.expression,Dr=Ae.argumentExpression;return K===e.skipParentheses(Dr)?M(ge.getTypeAtLocation(Ye)):void 0}case 207:case 208:if(!Y(K)&&!e.isImportCall(Ge)){var br=e.SignatureHelp.getArgumentInfoForCompletions(K,Te,U);return br?b(br,ge):lr()}case 265:case 271:case 276:return{kind:0,paths:x(U,K,ke,Pe,ge,Ie)};default:return lr()}function lr(){return{kind:2,types:B(e.getContextualTypeFromParent(K,ge)),isNewIdentifier:!1}}}function z(U){switch(U.kind){case 190:return e.walkUpParenthesizedTypes(U);case 211:return e.walkUpParenthesizedExpressions(U);default:return U}}function ie(U,K){return e.mapDefined(U.types,function(Te){return Te!==K&&e.isLiteralTypeNode(Te)&&e.isStringLiteral(Te.literal)?Te.literal.text:void 0})}function b(U,K){var Te=!1,ge=new e.Map,ke=[];K.getResolvedSignature(U.invocation,ke,U.argumentCount);var Pe=e.flatMap(ke,function(Ie){if(!(!e.signatureHasRestParameter(Ie)&&U.argumentCount>Ie.parameters.length)){var Ge=K.getParameterType(Ie,U.argumentIndex);return Te=Te||!!(Ge.flags&4),B(Ge,ge)}});return{kind:2,types:Pe,isNewIdentifier:Te}}function M(U){return U&&{kind:1,symbols:e.filter(U.getApparentProperties(),function(K){return!(K.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(K.valueDeclaration))}),hasIndexSignature:e.hasIndexSignature(U)}}function S(U,K){var Te=U.getContextualType(K);if(Te){var ge=U.getContextualType(K,4),ke=n.getPropertiesForObjectExpression(Te,ge,K,U);return{kind:1,symbols:ke,hasIndexSignature:e.hasIndexSignature(Te)}}}function B(U,K){return K===void 0&&(K=new e.Map),U?(U=e.skipConstraint(U),U.isUnion()?e.flatMap(U.types,function(Te){return B(Te,K)}):U.isStringLiteral()&&!(U.flags&1024)&&e.addToSeen(K,U.value)?[U]:e.emptyArray):e.emptyArray}function H(U,K,Te){return{name:U,kind:K,extension:Te}}function I(U){return H(U,"directory",void 0)}function w(U,K,Te){var ge=X(U,K),ke=U.length===0?void 0:e.createTextSpan(K,U.length);return Te.map(function(Pe){var Ie=Pe.name,Ge=Pe.kind,he=Pe.extension;return Math.max(Ie.indexOf(e.directorySeparator),Ie.indexOf(e.altDirectorySeparator))!==-1?{name:Ie,kind:Ge,extension:he,span:ke}:{name:Ie,kind:Ge,extension:he,span:ge}})}function x(U,K,Te,ge,ke,Pe){return w(K.text,K.getStart(U)+1,O(U,K,Te,ge,ke,Pe))}function O(U,K,Te,ge,ke,Pe){var Ie=e.normalizeSlashes(K.text),Ge=U.path,he=e.getDirectoryPath(Ge);return j(Ie)||!Te.baseUrl&&(e.isRootedDiskPath(Ie)||e.isUrl(Ie))?Z(Ie,he,Te,ge,Ge,ve()):N(Ie,he,Te,ge,ke);function ve(){var Ve=e.isStringLiteralLike(K)?e.getModeForUsageLocation(U,K):void 0;return Pe.importModuleSpecifierEnding==="js"||Ve===e.ModuleKind.ESNext?2:0}}function q(U,K){return K===void 0&&(K=0),{extensions:e.flatten(ne(U)),includeExtensionsOption:K}}function Z(U,K,Te,ge,ke,Pe){var Ie=q(Te,Pe);return Te.rootDirs?Q(Te.rootDirs,U,K,Ie,Te,ge,ke):re(U,K,Ie,ge,ke)}function ne(U){var K=e.getSupportedExtensions(U);return e.getEmitModuleResolutionKind(U)===e.ModuleResolutionKind.NodeJs?e.getSupportedExtensionsWithJsonIfResolveJsonModule(U,K):K}function F(U,K,Te,ge){U=U.map(function(Pe){return e.normalizePath(e.isRootedDiskPath(Pe)?Pe:e.combinePaths(K,Pe))});var ke=e.firstDefined(U,function(Pe){return e.containsPath(Pe,Te,K,ge)?Te.substr(Pe.length):void 0});return e.deduplicate(Gt(Gt([],U.map(function(Pe){return e.combinePaths(Pe,ke)}),!0),[Te],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function Q(U,K,Te,ge,ke,Pe,Ie){var Ge=ke.project||Pe.getCurrentDirectory(),he=!(Pe.useCaseSensitiveFileNames&&Pe.useCaseSensitiveFileNames()),ve=F(U,Ge,Te,he);return e.flatMap(ve,function(Ve){return re(K,Ve,ge,Pe,Ie)})}var V;(function(U){U[U.Exclude=0]="Exclude",U[U.Include=1]="Include",U[U.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion"})(V||(V={}));function re(U,K,Te,ge,ke,Pe){var Ie=Te.extensions,Ge=Te.includeExtensionsOption;Pe===void 0&&(Pe=[]),U===void 0&&(U=""),U=e.normalizeSlashes(U),e.hasTrailingDirectorySeparator(U)||(U=e.getDirectoryPath(U)),U===""&&(U="."+e.directorySeparator),U=e.ensureTrailingDirectorySeparator(U);var he=e.resolvePath(K,U),ve=e.hasTrailingDirectorySeparator(he)?he:e.getDirectoryPath(he),Ve=!(ge.useCaseSensitiveFileNames&&ge.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(ge,ve))return Pe;var _e=e.tryReadDirectory(ge,ve,Ie,void 0,["./*"]);if(_e){for(var Le=new e.Map,qe=0,Xe=_e;qe<Xe.length;qe++){var De=Xe[qe];if(De=e.normalizePath(De),!(ke&&e.comparePaths(De,ke,K,Ve)===0)){var Ae=void 0,Ye=e.moduleSpecifiers.tryGetJSExtensionForFile(De,ge.getCompilationSettings());Ge===0&&!e.fileExtensionIsOneOf(De,[".json",".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])?(Ae=e.removeFileExtension(e.getBaseFileName(De)),Le.set(Ae,e.tryGetExtensionFromPath(De))):(e.fileExtensionIsOneOf(De,[".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])||Ge===2)&&Ye?(Ae=e.changeExtension(e.getBaseFileName(De),Ye),Le.set(Ae,Ye)):(Ae=e.getBaseFileName(De),Le.set(Ae,e.tryGetExtensionFromPath(De)))}}Le.forEach(function(Fe,$e){Pe.push(H($e,"script",Fe))})}var Dr=e.tryGetDirectories(ge,ve);if(Dr)for(var br=0,lr=Dr;br<lr.length;br++){var Ar=lr[br],kr=e.getBaseFileName(e.normalizePath(Ar));kr!=="@types"&&Pe.push(I(kr))}var Ke=e.findPackageJson(ve,ge);if(Ke){var Me=e.readJson(Ke,ge),Hr=Me.typesVersions;if(typeof Hr=="object"){var ur=e.getPackageJsonTypesVersionsPaths(Hr),gr=ur&&ur.paths,de=he.slice(e.ensureTrailingDirectorySeparator(ve).length);gr&&T(Pe,de,ve,Ie,gr,ge)}}return Pe}function T(U,K,Te,ge,ke,Pe){for(var Ie in ke)if(e.hasProperty(ke,Ie)){var Ge=ke[Ie];if(Ge)for(var he=function(De,Ae,Ye){U.some(function(Dr){return Dr.name===De})||U.push(H(De,Ae,Ye))},ve=0,Ve=D(Ie,Ge,K,Te,ge,Pe);ve<Ve.length;ve++){var _e=Ve[ve],Le=_e.name,qe=_e.kind,Xe=_e.extension;he(Le,qe,Xe)}}}function N(U,K,Te,ge,ke){var Pe=Te.baseUrl,Ie=Te.paths,Ge=[],he=q(Te);if(Pe){var ve=Te.project||ge.getCurrentDirectory(),Ve=e.normalizePath(e.combinePaths(ve,Pe));re(U,Ve,he,ge,void 0,Ge),Ie&&T(Ge,U,Ve,he.extensions,Ie,ge)}for(var _e=y(U),Le=0,qe=g(U,_e,ke);Le<qe.length;Le++){var Xe=qe[Le];Ge.push(H(Xe,"external module name",void 0))}if(te(ge,Te,K,_e,he,Ge),e.getEmitModuleResolutionKind(Te)===e.ModuleResolutionKind.NodeJs){var De=!1;if(_e===void 0)for(var Ae=function(lr){Ge.some(function(Ar){return Ar.name===lr})||(De=!0,Ge.push(H(lr,"external module name",void 0)))},Ye=0,Dr=ue(ge,K);Ye<Dr.length;Ye++){var br=Dr[Ye];Ae(br)}De||e.forEachAncestorDirectory(K,function(lr){var Ar=e.combinePaths(lr,"node_modules");e.tryDirectoryExists(ge,Ar)&&re(U,Ar,he,ge,void 0,Ge)})}return Ge}function y(U){return R(U)?e.hasTrailingDirectorySeparator(U)?U:e.getDirectoryPath(U):void 0}function D(U,K,Te,ge,ke,Pe){if(!e.endsWith(U,"*"))return e.stringContains(U,"*")?e.emptyArray:he(U);var Ie=U.slice(0,U.length-1),Ge=e.tryRemovePrefix(Te,Ie);return Ge===void 0?he(Ie):e.flatMap(K,function(ve){return C(Ge,ge,ve,ke,Pe)});function he(ve){return e.startsWith(ve,Te)?[I(ve)]:e.emptyArray}}function C(U,K,Te,ge,ke){if(!ke.readDirectory)return;var Pe=e.tryParsePattern(Te);if(Pe===void 0||e.isString(Pe))return;var Ie=e.resolvePath(Pe.prefix),Ge=e.hasTrailingDirectorySeparator(Pe.prefix)?Ie:e.getDirectoryPath(Ie),he=e.hasTrailingDirectorySeparator(Pe.prefix)?"":e.getBaseFileName(Ie),ve=R(U),Ve=ve?e.hasTrailingDirectorySeparator(U)?U:e.getDirectoryPath(U):void 0,_e=ve?e.combinePaths(Ge,he+Ve):Ge,Le=e.normalizePath(Pe.suffix),qe=e.normalizePath(e.combinePaths(K,_e)),Xe=ve?qe:e.ensureTrailingDirectorySeparator(qe)+he,De=Le?"**/*":"./*",Ae=e.mapDefined(e.tryReadDirectory(ke,qe,ge,void 0,[De]),function(br){var lr=e.tryGetExtensionFromPath(br),Ar=Dr(br);return Ar===void 0?void 0:H(e.removeFileExtension(Ar),"script",lr)}),Ye=e.mapDefined(e.tryGetDirectories(ke,qe).map(function(br){return e.combinePaths(qe,br)}),function(br){var lr=Dr(br);return lr===void 0?void 0:I(lr)});return Gt(Gt([],Ae,!0),Ye,!0);function Dr(br){var lr=m(e.normalizePath(br),Xe,Le);return lr===void 0?void 0:u(lr)}}function m(U,K,Te){return e.startsWith(U,K)&&e.endsWith(U,Te)?U.slice(K.length,U.length-Te.length):void 0}function u(U){return U[0]===e.directorySeparator?U.slice(1):U}function g(U,K,Te){var ge=Te.getAmbientModules().map(function(Ie){return e.stripQuotes(Ie.name)}),ke=ge.filter(function(Ie){return e.startsWith(Ie,U)});if(K!==void 0){var Pe=e.ensureTrailingDirectorySeparator(K);return ke.map(function(Ie){return e.removePrefix(Ie,Pe)})}return ke}function P(U,K,Te,ge){var ke=e.getTokenAtPosition(U,K),Pe=e.getLeadingCommentRanges(U.text,ke.pos),Ie=Pe&&e.find(Pe,function(Xe){return K>=Xe.pos&&K<=Xe.end});if(Ie){var Ge=U.text.slice(Ie.pos,K),he=Se.exec(Ge);if(he){var ve=he[1],Ve=he[2],_e=he[3],Le=e.getDirectoryPath(U.path),qe=Ve==="path"?re(_e,Le,q(Te,1),ge,U.path):Ve==="types"?te(ge,Te,Le,y(_e),q(Te)):e.Debug.fail();return w(_e,Ie.pos+ve.length,qe)}}}function te(U,K,Te,ge,ke,Pe){Pe===void 0&&(Pe=[]);for(var Ie=new e.Map,Ge=e.tryAndIgnoreErrors(function(){return e.getEffectiveTypeRoots(K,U)})||e.emptyArray,he=0,ve=Ge;he<ve.length;he++){var Ve=ve[he];De(Ve)}for(var _e=0,Le=e.findPackageJsons(Te,U);_e<Le.length;_e++){var qe=Le[_e],Xe=e.combinePaths(e.getDirectoryPath(qe),"node_modules/@types");De(Xe)}return Pe;function De(Ae){if(e.tryDirectoryExists(U,Ae))for(var Ye=0,Dr=e.tryGetDirectories(U,Ae);Ye<Dr.length;Ye++){var br=Dr[Ye],lr=e.unmangleScopedPackageName(br);if(!(K.types&&!e.contains(K.types,lr)))if(ge===void 0)Ie.has(lr)||(Pe.push(H(lr,"external module name",void 0)),Ie.set(lr,!0));else{var Ar=e.combinePaths(Ae,br),kr=e.tryRemoveDirectoryPrefix(ge,lr,e.hostGetCanonicalFileName(U));kr!==void 0&&re(kr,Ar,ke,U,void 0,Pe)}}}}function ue(U,K){if(!U.readFile||!U.fileExists)return e.emptyArray;for(var Te=[],ge=0,ke=e.findPackageJsons(K,U);ge<ke.length;ge++)for(var Pe=ke[ge],Ie=e.readJson(Pe,U),Ge=0,he=Ce;Ge<he.length;Ge++){var ve=he[Ge],Ve=Ie[ve];if(Ve)for(var _e in Ve)Ve.hasOwnProperty(_e)&&!e.startsWith(_e,"@types/")&&Te.push(_e)}return Te}function X(U,K){var Te=Math.max(U.lastIndexOf(e.directorySeparator),U.lastIndexOf(e.altDirectorySeparator)),ge=Te!==-1?Te+1:0,ke=U.length-ge;return ke===0||e.isIdentifierText(U.substr(ge,ke),99)?void 0:e.createTextSpan(K+ge,ke)}function j(U){if(U&&U.length>=2&&U.charCodeAt(0)===46){var K=U.length>=3&&U.charCodeAt(1)===46?2:1,Te=U.charCodeAt(K);return Te===47||Te===92}return!1}var Se=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,Ce=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function R(U){return e.stringContains(U,e.directorySeparator)}function Y(U){return e.isCallExpression(U.parent)&&e.firstOrUndefined(U.parent.arguments)===U&&e.isIdentifier(U.parent.expression)&&U.parent.expression.escapedText==="require"}})(n.StringCompletions||(n.StringCompletions={}))})(e.Completions||(e.Completions={}))}(jr||(jr={})),function(e){(function(n){n.moduleSpecifierResolutionLimit=100,n.moduleSpecifierResolutionCacheAttemptLimit=1e3;var f;(function(fe){fe.LocalDeclarationPriority="10",fe.LocationPriority="11",fe.OptionalMember="12",fe.MemberDeclaredBySpreadAssignment="13",fe.SuggestedClassMembers="14",fe.GlobalsOrKeywords="15",fe.AutoImportSuggestions="16",fe.JavascriptIdentifiers="17",fe.DeprecatedLocalDeclarationPriority="18",fe.DeprecatedLocationPriority="19",fe.DeprecatedOptionalMember="20",fe.DeprecatedMemberDeclaredBySpreadAssignment="21",fe.DeprecatedSuggestedClassMembers="22",fe.DeprecatedGlobalsOrKeywords="23",fe.DeprecatedAutoImportSuggestions="24"})(f=n.SortText||(n.SortText={}));var p;(function(fe){fe[fe.LocalDeclarationPriority=10]="LocalDeclarationPriority",fe[fe.LocationPriority=11]="LocationPriority",fe[fe.OptionalMember=12]="OptionalMember",fe[fe.MemberDeclaredBySpreadAssignment=13]="MemberDeclaredBySpreadAssignment",fe[fe.SuggestedClassMembers=14]="SuggestedClassMembers",fe[fe.GlobalsOrKeywords=15]="GlobalsOrKeywords",fe[fe.AutoImportSuggestions=16]="AutoImportSuggestions",fe[fe._JavaScriptIdentifiers=17]="_JavaScriptIdentifiers",fe[fe._DeprecatedStart=18]="_DeprecatedStart",fe[fe._First=10]="_First",fe[fe.DeprecatedOffset=8]="DeprecatedOffset"})(p||(p={}));var a;(function(fe){fe.ThisProperty="ThisProperty/",fe.ClassMemberSnippet="ClassMemberSnippet/"})(a=n.CompletionSource||(n.CompletionSource={}));var d;(function(fe){fe[fe.ThisType=1]="ThisType",fe[fe.SymbolMember=2]="SymbolMember",fe[fe.Export=4]="Export",fe[fe.Promise=8]="Promise",fe[fe.Nullable=16]="Nullable",fe[fe.ResolvedExport=32]="ResolvedExport",fe[fe.SymbolMemberNoExport=2]="SymbolMemberNoExport",fe[fe.SymbolMemberExport=6]="SymbolMemberExport"})(d||(d={}));function k(fe){return!!(fe.kind&1)}function J(fe){return!!(fe.kind&2)}function h(fe){return!!(fe&&fe.kind&4)}function v(fe){return!!(fe&&fe.kind===32)}function A(fe){return h(fe)||v(fe)}function z(fe){return(h(fe)||v(fe))&&!!fe.isFromPackageJson}function ie(fe){return!!(fe.kind&8)}function b(fe){return!!(fe.kind&16)}var M;(function(fe){fe[fe.None=0]="None",fe[fe.All=1]="All",fe[fe.ClassElementKeywords=2]="ClassElementKeywords",fe[fe.InterfaceElementKeywords=3]="InterfaceElementKeywords",fe[fe.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",fe[fe.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",fe[fe.TypeAssertionKeywords=6]="TypeAssertionKeywords",fe[fe.TypeKeywords=7]="TypeKeywords",fe[fe.TypeKeyword=8]="TypeKeyword",fe[fe.Last=7]="Last"})(M||(M={}));var S;(function(fe){fe[fe.Continue=0]="Continue",fe[fe.Success=1]="Success",fe[fe.Fail=2]="Fail"})(S||(S={}));function B(fe,je,Ee,We,$,Ne,me){var Ze,Cr,fr,dr=e.timestamp(),et=!1,yt=0,Vr=0,tr=0,xr=0,Nr=me({tryResolve:gt,resolutionLimitExceeded:function(){return et}}),zr=xr?" (".concat((tr/xr*100).toFixed(1),"% hit rate)"):"";return(Ze=je.log)===null||Ze===void 0||Ze.call(je,"".concat(fe,": resolved ").concat(Vr," module specifiers, plus ").concat(yt," ambient and ").concat(tr," from cache").concat(zr)),(Cr=je.log)===null||Cr===void 0||Cr.call(je,"".concat(fe,": response is ").concat(et?"incomplete":"complete")),(fr=je.log)===null||fr===void 0||fr.call(je,"".concat(fe,": ").concat(e.timestamp()-dr)),Nr;function gt(vt,ut){if(ut){var ht=e.codefix.getModuleSpecifierForBestExportInfo(vt,We,Ee,je,$);return ht&&yt++,ht}var xt=Ne||$.allowIncompleteCompletions&&Vr<n.moduleSpecifierResolutionLimit,wt=!xt&&$.allowIncompleteCompletions&&xr<n.moduleSpecifierResolutionCacheAttemptLimit,Qt=xt||wt?e.codefix.getModuleSpecifierForBestExportInfo(vt,We,Ee,je,$,wt):void 0;return(!xt&&!wt||wt&&!Qt)&&(et=!0),Vr+=(Qt==null?void 0:Qt.computedWithoutCacheCount)||0,tr+=vt.length-Vr,wt&&xr++,Qt}}function H(fe,je,Ee,We,$,Ne,me,Ze,Cr){var fr,dr=De($,We).previousToken;if(!(me&&!e.isInString(We,$,dr)&&!ze(We,me,dr,$))){if(me===" ")return Ne.includeCompletionsForImportStatements&&Ne.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;var et=je.getCompilerOptions(),yt=Ne.allowIncompleteCompletions?(fr=fe.getIncompleteCompletionsCache)===null||fr===void 0?void 0:fr.call(fe):void 0;if(yt&&Ze===3&&dr&&e.isIdentifier(dr)){var Vr=w(yt,We,dr,je,fe,Ne,Cr);if(Vr)return Vr}else yt==null||yt.clear();var tr=n.StringCompletions.getStringLiteralCompletions(We,$,dr,et,fe,je,Ee,Ne);if(tr)return tr;if(dr&&e.isBreakOrContinueStatement(dr.parent)&&(dr.kind===81||dr.kind===86||dr.kind===79))return U(dr.parent);var xr=Xe(je,Ee,We,V(We,et),$,Ne,void 0,fe,Cr);if(xr)switch(xr.kind){case 0:var Nr=Q(We,fe,je,et,Ee,xr,Ne);return Nr!=null&&Nr.isIncomplete&&(yt==null||yt.set(Nr)),Nr;case 1:return x(e.JsDoc.getJSDocTagNameCompletions());case 2:return x(e.JsDoc.getJSDocTagCompletions());case 3:return x(e.JsDoc.getJSDocParameterNameCompletions(xr.tag));case 4:return q(xr.keywordCompletions,xr.isNewIdentifierLocation);default:return e.Debug.assertNever(xr)}}}n.getCompletionsAtPosition=H;function I(fe){return!!(fe!=null&&fe.moduleSpecifier)}function w(fe,je,Ee,We,$,Ne,me){var Ze=fe.get();if(Ze){var Cr=Ee.text.toLowerCase(),fr=e.getExportInfoMap(je,$,We,me),dr=B("continuePreviousIncompleteResponse",$,We,je,Ne,!1,function(et){var yt=e.mapDefined(Ze.entries,function(Vr){if(!Vr.hasAction||!Vr.source||!Vr.data||I(Vr.data))return Vr;if(ye(Vr.name,Cr)){var tr=e.Debug.checkDefined(Ae(Vr.name,Vr.data,We,$)).origin,xr=fr.get(je.path,Vr.data.exportMapKey),Nr=xr&&et.tryResolve(xr,!e.isExternalModuleNameRelative(e.stripQuotes(tr.moduleSymbol.name)));if(!Nr)return Vr;var zr=Rn(Rn({},tr),{kind:32,moduleSpecifier:Nr.moduleSpecifier});return Vr.data=ue(zr),Vr.source=R(zr),Vr.sourceDisplay=[e.textPart(zr.moduleSpecifier)],Vr}});return et.resolutionLimitExceeded()||(Ze.isIncomplete=void 0),yt});return Ze.entries=dr,Ze}}function x(fe){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:fe}}function O(fe){return{name:e.tokenToString(fe),kind:"keyword",kindModifiers:"",sortText:f.GlobalsOrKeywords}}function q(fe,je){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:je,entries:fe.slice()}}function Z(fe,je,Ee){return{kind:4,keywordCompletions:lr(fe,je),isNewIdentifierLocation:Ee}}function ne(fe){switch(fe){case 151:return 8;default:e.Debug.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function F(fe){return(fe==null?void 0:fe.kind)===79?e.createTextSpanFromNode(fe):void 0}function Q(fe,je,Ee,We,$,Ne,me){var Ze=Ne.symbols,Cr=Ne.contextToken,fr=Ne.completionKind,dr=Ne.isInSnippetScope,et=Ne.isNewIdentifierLocation,yt=Ne.location,Vr=Ne.propertyAccessToConvert,tr=Ne.keywordFilters,xr=Ne.literals,Nr=Ne.symbolToOriginInfoMap,zr=Ne.recommendedCompletion,gt=Ne.isJsxInitializer,vt=Ne.isTypeOnlyLocation,ut=Ne.isJsxIdentifierExpected,ht=Ne.isRightOfOpenTag,xt=Ne.importCompletionNode,wt=Ne.insideJsDocTagTypeExpression,Qt=Ne.symbolToSortTextIdMap,mt=Ne.hasUnresolvedAutoImports;if(e.getLanguageVariant(fe.scriptKind)===1){var rn=T(yt,fe);if(rn)return rn}var sa=[];if(V(fe,We)){var ba=Y(Ze,sa,void 0,Cr,yt,fe,je,Ee,e.getEmitScriptTarget(We),$,fr,me,We,vt,Vr,ut,gt,xt,zr,Nr,Qt,ut,ht);N(fe,yt.pos,ba,e.getEmitScriptTarget(We),sa)}else{if(!et&&(!Ze||Ze.length===0)&&tr===0)return;Y(Ze,sa,void 0,Cr,yt,fe,je,Ee,e.getEmitScriptTarget(We),$,fr,me,We,vt,Vr,ut,gt,xt,zr,Nr,Qt,ut,ht)}if(tr!==0)for(var Jn=new e.Set(sa.map(function(Mn){return Mn.name})),na=0,Wn=lr(tr,!wt&&e.isSourceFileJS(fe));na<Wn.length;na++){var en=Wn[na];Jn.has(en.name)||sa.push(en)}for(var St=0,Ut=xr;St<Ut.length;St++){var qt=Ut[St];sa.push(D(fe,me,qt))}return{isGlobalCompletion:dr,isIncomplete:me.allowIncompleteCompletions&&mt?!0:void 0,isMemberCompletion:re(fr),isNewIdentifierLocation:et,optionalReplacementSpan:F(yt),entries:sa}}function V(fe,je){return e.isSourceFileJS(fe)&&!e.isCheckJsEnabledForFile(fe,je)}function re(fe){switch(fe){case 0:case 3:case 2:return!0;default:return!1}}function T(fe,je){var Ee=e.findAncestor(fe,function(fr){switch(fr.kind){case 280:return!0;case 43:case 31:case 79:case 205:return!1;default:return"quit"}});if(Ee){var We=!!e.findChildOfKind(Ee,31,je),$=Ee.parent.openingElement.tagName,Ne=$.getText(je),me=Ne+(We?"":">"),Ze=e.createTextSpanFromNode(Ee.tagName),Cr={name:me,kind:"class",kindModifiers:void 0,sortText:f.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:Ze,entries:[Cr]}}}function N(fe,je,Ee,We,$){e.getNameTable(fe).forEach(function(Ne,me){if(Ne!==je){var Ze=e.unescapeLeadingUnderscores(me);!Ee.has(Ze)&&e.isIdentifierText(Ze,We)&&(Ee.add(Ze),$.push({name:Ze,kind:"warning",kindModifiers:"",sortText:f.JavascriptIdentifiers,isFromUncheckedFile:!0}))}})}function y(fe,je,Ee){return typeof Ee=="object"?e.pseudoBigIntToString(Ee)+"n":e.isString(Ee)?e.quote(fe,je,Ee):JSON.stringify(Ee)}function D(fe,je,Ee){return{name:y(fe,je,Ee),kind:"string",kindModifiers:"",sortText:f.LocationPriority}}function C(fe,je,Ee,We,$,Ne,me,Ze,Cr,fr,dr,et,yt,Vr,tr,xr,Nr,zr,gt,vt,ut){var ht,xt,wt,Qt=e.getReplacementSpanForContextToken(Ee),mt,rn,sa=R(dr),ba,Jn,na=Ze.getTypeChecker(),Wn=dr&&b(dr),en=dr&&J(dr)||fr;if(dr&&k(dr))wt=fr?"this".concat(Wn?"?.":"","[").concat(Se(Ne,zr,Cr),"]"):"this".concat(Wn?"?.":".").concat(Cr);else if((en||Wn)&&yt){wt=en?fr?"[".concat(Se(Ne,zr,Cr),"]"):"[".concat(Cr,"]"):Cr,(Wn||yt.questionDotToken)&&(wt="?.".concat(wt));var St=e.findChildOfKind(yt,24,Ne)||e.findChildOfKind(yt,28,Ne);if(!St)return;var Ut=e.startsWith(Cr,yt.name.text)?yt.name.end:St.end;Qt=e.createTextSpanFromBounds(St.getStart(Ne),Ut)}if(Vr&&(wt===void 0&&(wt=Cr),wt="{".concat(wt,"}"),typeof Vr!="boolean"&&(Qt=e.createTextSpanFromNode(Vr,Ne))),dr&&ie(dr)&&yt){wt===void 0&&(wt=Cr);var qt=e.findPrecedingToken(yt.pos,Ne),Mn="";qt&&e.positionIsASICandidate(qt.end,qt.parent,Ne)&&(Mn=";"),Mn+="(await ".concat(yt.expression.getText(),")"),wt=fr?"".concat(Mn).concat(wt):"".concat(Mn).concat(Wn?"?.":".").concat(wt),Qt=e.createTextSpanFromBounds(yt.getStart(Ne),yt.end)}if(v(dr)&&(ba=[e.textPart(dr.moduleSpecifier)],tr&&(ht=j(Cr,tr,We,dr,xr,Nr,zr),wt=ht.insertText,Qt=ht.replacementSpan,rn=zr.includeCompletionsWithSnippetText?!0:void 0)),zr.includeCompletionsWithClassMemberSnippets&&zr.includeCompletionsWithInsertText&&gt===3&&m(fe,$)){var dn=void 0;xt=u(me,Ze,Nr,zr,Cr,fe,$,We),wt=xt.insertText,rn=xt.isSnippet,dn=xt.importAdder,dn!=null&&dn.hasFixes()&&(Jn=!0,sa=a.ClassMemberSnippet)}if(vt&&!ut&&zr.includeCompletionsWithSnippetText&&zr.jsxAttributeCompletionStyle&&zr.jsxAttributeCompletionStyle!=="none"){var oa=zr.jsxAttributeCompletionStyle==="braces",pt=na.getTypeOfSymbolAtLocation(fe,$);zr.jsxAttributeCompletionStyle==="auto"&&!(pt.flags&528)&&!(pt.flags&1048576&&e.find(pt.types,function(_t){return!!(_t.flags&528)}))&&(pt.flags&402653316||pt.flags&1048576&&e.every(pt.types,function(_t){return!!(_t.flags&402686084)})?(wt="".concat(e.escapeSnippetText(Cr),"=").concat(e.quote(Ne,zr,"$1")),rn=!0):oa=!0),oa&&(wt="".concat(e.escapeSnippetText(Cr),"={$1}"),rn=!0)}if(!(wt!==void 0&&!zr.includeCompletionsWithInsertText))return(h(dr)||v(dr))&&(mt=ue(dr),Jn=!tr),{name:Cr,kind:e.SymbolDisplay.getSymbolKind(na,fe,$),kindModifiers:e.SymbolDisplay.getSymbolModifiers(na,fe),sortText:je,source:sa,hasAction:Jn?!0:void 0,isRecommended:Ce(fe,et,na)||void 0,insertText:wt,replacementSpan:Qt,sourceDisplay:ba,isSnippet:rn,isPackageJsonImport:z(dr)||void 0,isImportStatementCompletion:!!tr||void 0,data:mt}}function m(fe,je){if(e.isInJSFile(je))return!1;var Ee=106500;return!!(fe.flags&Ee)&&(e.isClassLike(je)||je.parent&&je.parent.parent&&e.isClassElement(je.parent)&&je===je.parent.name&&e.isClassLike(je.parent.parent)||je.parent&&e.isSyntaxList(je)&&e.isClassLike(je.parent))}function u(fe,je,Ee,We,$,Ne,me,Ze){var Cr=e.findAncestor(me,e.isClassLike);if(!Cr)return{insertText:$};var fr,dr=$,et=je.getTypeChecker(),yt=me.getSourceFile(),Vr=te({removeComments:!0,module:Ee.module,target:Ee.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(Ee,e.maybeBind(fe,fe.getNewLine)))}),tr=e.codefix.createImportAdder(yt,je,We,fe),xr;if(We.includeCompletionsWithSnippetText){fr=!0;var Nr=e.factory.createExpressionStatement(e.factory.createIdentifier(""));e.setSnippetElement(Nr,{kind:0,order:0}),xr=e.factory.createBlock([Nr],!0)}else xr=e.factory.createBlock([],!0);var zr=0,gt=Ze&&P(Ze)===126,vt=[];return e.codefix.addNewNodeForMemberSymbol(Ne,Cr,yt,{program:je,host:fe},We,tr,function(ut){var ht=0;gt&&(ht|=128),e.isClassElement(ut)&&et.getMemberOverrideModifierStatus(Cr,ut)===1&&(ht|=16384);var xt=0;vt.length||(Ze&&(xt=g(Ze)),zr=ut.modifierFlagsCache|ht|xt),ut=e.factory.updateModifiers(ut,zr&~xt),vt.push(ut)},xr,2,gt),vt.length&&(dr=Vr.printSnippetList(131073,e.factory.createNodeArray(vt),yt)),{insertText:dr,isSnippet:fr,importAdder:tr}}function g(fe){var je=0,Ee;return(Ee=P(fe))&&(je|=e.modifierToFlag(Ee)),e.isPropertyDeclaration(fe.parent)&&(je|=e.modifiersToFlags(fe.parent.modifiers)),je}function P(fe){if(e.isModifier(fe))return fe.kind;if(e.isIdentifier(fe)&&fe.originalKeywordKind&&e.isModifierKind(fe.originalKeywordKind))return fe.originalKeywordKind}function te(fe){var je=e.createPrinter(fe),Ee=e.createTextWriter(e.getNewLineCharacter(fe)),We=Rn(Rn({},Ee),{write:function(Ne){return Ee.write(e.escapeSnippetText(Ne))},nonEscapingWrite:Ee.write,writeLiteral:function(Ne){return Ee.writeLiteral(e.escapeSnippetText(Ne))},writeStringLiteral:function(Ne){return Ee.writeStringLiteral(e.escapeSnippetText(Ne))},writeSymbol:function(Ne,me){return Ee.writeSymbol(e.escapeSnippetText(Ne),me)},writeParameter:function(Ne){return Ee.writeParameter(e.escapeSnippetText(Ne))},writeComment:function(Ne){return Ee.writeComment(e.escapeSnippetText(Ne))},writeProperty:function(Ne){return Ee.writeProperty(e.escapeSnippetText(Ne))}});return{printSnippetList:$};function $(Ne,me,Ze){return We.clear(),je.writeList(Ne,me,Ze,We),We.getText()}}function ue(fe){var je=fe.fileName?void 0:e.stripQuotes(fe.moduleSymbol.name),Ee=fe.isFromPackageJson?!0:void 0;if(v(fe)){var We={exportName:fe.exportName,moduleSpecifier:fe.moduleSpecifier,ambientModuleName:je,fileName:fe.fileName,isPackageJsonImport:Ee};return We}var $={exportName:fe.exportName,exportMapKey:fe.exportMapKey,fileName:fe.fileName,ambientModuleName:fe.fileName?void 0:e.stripQuotes(fe.moduleSymbol.name),isPackageJsonImport:fe.isFromPackageJson?!0:void 0};return $}function X(fe,je,Ee){var We=fe.exportName==="default",$=!!fe.isPackageJsonImport;if(I(fe)){var Ne={kind:32,exportName:fe.exportName,moduleSpecifier:fe.moduleSpecifier,symbolName:je,fileName:fe.fileName,moduleSymbol:Ee,isDefaultExport:We,isFromPackageJson:$};return Ne}var me={kind:4,exportName:fe.exportName,exportMapKey:fe.exportMapKey,symbolName:je,fileName:fe.fileName,moduleSymbol:Ee,isDefaultExport:We,isFromPackageJson:$};return me}function j(fe,je,Ee,We,$,Ne,me){var Ze,Cr,fr,dr=je.getSourceFile(),et=e.createTextSpanFromNode(e.findAncestor(je,e.or(e.isImportDeclaration,e.isImportEqualsDeclaration))||je,dr),yt=e.quote(dr,me,We.moduleSpecifier),Vr=We.isDefaultExport?1:We.exportName==="export="?2:0,tr=me.includeCompletionsWithSnippetText?"$1":"",xr=e.codefix.getImportKind(dr,Vr,Ne,!0),Nr=((Cr=(Ze=e.tryCast(je,e.isImportDeclaration))===null||Ze===void 0?void 0:Ze.importClause)===null||Cr===void 0?void 0:Cr.isTypeOnly)||((fr=e.tryCast(je,e.isImportEqualsDeclaration))===null||fr===void 0?void 0:fr.isTypeOnly),zr=cn(je,Ee),gt=Nr?" ".concat(e.tokenToString(151)," "):" ",vt=zr?"".concat(e.tokenToString(151)," "):"",ut=$?";":"";switch(xr){case 3:return{replacementSpan:et,insertText:"import".concat(gt).concat(e.escapeSnippetText(fe)).concat(tr," = require(").concat(yt,")").concat(ut)};case 1:return{replacementSpan:et,insertText:"import".concat(gt).concat(e.escapeSnippetText(fe)).concat(tr," from ").concat(yt).concat(ut)};case 2:return{replacementSpan:et,insertText:"import".concat(gt,"* as ").concat(e.escapeSnippetText(fe)," from ").concat(yt).concat(ut)};case 0:return{replacementSpan:et,insertText:"import".concat(gt,"{ ").concat(vt).concat(e.escapeSnippetText(fe)).concat(tr," } from ").concat(yt).concat(ut)}}}function Se(fe,je,Ee){return/^\d+$/.test(Ee)?Ee:e.quote(fe,je,Ee)}function Ce(fe,je,Ee){return fe===je||!!(fe.flags&1048576)&&Ee.getExportSymbolOfSymbol(fe)===je}function R(fe){if(h(fe))return e.stripQuotes(fe.moduleSymbol.name);if(v(fe))return fe.moduleSpecifier;if((fe==null?void 0:fe.kind)===1)return a.ThisProperty}function Y(fe,je,Ee,We,$,Ne,me,Ze,Cr,fr,dr,et,yt,Vr,tr,xr,Nr,zr,gt,vt,ut,ht,xt){for(var wt,Qt=e.timestamp(),mt=zn($),rn=e.probablyUsesSemicolons(Ne),sa=Ze.getTypeChecker(),ba=new e.Map,Jn=0;Jn<fe.length;Jn++){var na=fe[Jn],Wn=vt==null?void 0:vt[Jn],en=Ye(na,Cr,Wn,dr,!!xr);if(!(!en||ba.get(en.name)||dr===1&&ut&&!pt(na,ut))){var St=en.name,Ut=en.needsConvertPropertyAccess,qt=(wt=ut==null?void 0:ut[e.getSymbolId(na)])!==null&&wt!==void 0?wt:11,Mn=(sr(na,sa)?8+qt:qt).toString(),dn=C(na,Mn,Ee,We,$,Ne,me,Ze,St,Ut,Wn,gt,tr,Nr,zr,rn,yt,et,dr,ht,xt);if(dn){var oa=!Wn&&!(na.parent===void 0&&!e.some(na.declarations,function(_t){return _t.getSourceFile()===$.getSourceFile()}));ba.set(St,oa),je.push(dn)}}}return fr("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-Qt)),{has:function(_t){return ba.has(_t)},add:function(_t){return ba.set(_t,!0)}};function pt(_t,Mt){if(!e.isSourceFile($)){if(e.isExportAssignment($.parent))return!0;if(mt&&_t.valueDeclaration===mt)return!1;var It=e.skipAlias(_t,sa);if(Ne.externalModuleIndicator&&!yt.allowUmdGlobalAccess&&Mt[e.getSymbolId(_t)]===15&&(Mt[e.getSymbolId(It)]===16||Mt[e.getSymbolId(It)]===11))return!1;if(_t=It,e.isInRightSideOfInternalImportEqualsDeclaration($))return!!(_t.flags&1920);if(Vr)return Or(_t,sa)}return!!(e.getCombinedLocalAndExportSymbolFlags(_t)&111551)}}n.getCompletionEntriesFromSymbols=Y;function U(fe){var je=K(fe);if(je.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:je}}function K(fe){for(var je=[],Ee=new e.Map,We=fe;We&&!e.isFunctionLike(We);){if(e.isLabeledStatement(We)){var $=We.label.text;Ee.has($)||(Ee.set($,!0),je.push({name:$,kindModifiers:"",kind:"label",sortText:f.LocationPriority}))}We=We.parent}return je}function Te(fe,je,Ee,We,$,Ne,me){if($.data){var Ze=Ae($.name,$.data,fe,Ne);if(Ze){var Cr=De(We,Ee),fr=Cr.contextToken,dr=Cr.previousToken;return{type:"symbol",symbol:Ze.symbol,location:e.getTouchingPropertyName(Ee,We),previousToken:dr,contextToken:fr,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:Ze.origin}}}var et=fe.getCompilerOptions(),yt=Xe(fe,je,Ee,V(Ee,et),We,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},$,Ne);if(!yt)return{type:"none"};if(yt.kind!==0)return{type:"request",request:yt};var Vr=yt.symbols,tr=yt.literals,xr=yt.location,Nr=yt.completionKind,zr=yt.symbolToOriginInfoMap,gt=yt.contextToken,vt=yt.previousToken,ut=yt.isJsxInitializer,ht=yt.isTypeOnlyLocation,xt=e.find(tr,function(wt){return y(Ee,me,wt)===$.name});return xt!==void 0?{type:"literal",literal:xt}:e.firstDefined(Vr,function(wt,Qt){var mt=zr[Qt],rn=Ye(wt,e.getEmitScriptTarget(et),mt,Nr,yt.isJsxIdentifierExpected);return rn&&rn.name===$.name&&($.source===a.ClassMemberSnippet&&wt.flags&106500||R(mt)===$.source)?{type:"symbol",symbol:wt,location:xr,origin:mt,contextToken:gt,previousToken:vt,isJsxInitializer:ut,isTypeOnlyLocation:ht}:void 0})||{type:"none"}}function ge(fe,je,Ee,We,$,Ne,me,Ze,Cr){var fr=fe.getTypeChecker(),dr=fe.getCompilerOptions(),et=$.name,yt=$.source,Vr=$.data,tr=e.findPrecedingToken(We,Ee);if(e.isInString(Ee,We,tr))return n.StringCompletions.getStringLiteralCompletionDetails(et,Ee,We,tr,fr,dr,Ne,Cr,Ze);var xr=Te(fe,je,Ee,We,$,Ne,Ze);switch(xr.type){case"request":{var Nr=xr.request;switch(Nr.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(et);case 2:return e.JsDoc.getJSDocTagCompletionDetails(et);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(et);case 4:return e.some(Nr.keywordCompletions,function(rn){return rn.name===et})?ke(et,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:return e.Debug.assertNever(Nr)}}case"symbol":{var zr=xr.symbol,gt=xr.location,vt=xr.contextToken,ut=xr.origin,ht=xr.previousToken,xt=Ge(et,gt,vt,ut,zr,fe,Ne,dr,Ee,We,ht,me,Ze,Vr,yt),wt=xt.codeActions,Qt=xt.sourceDisplay;return Pe(zr,fr,Ee,gt,Cr,wt,Qt)}case"literal":{var mt=xr.literal;return ke(y(Ee,Ze,mt),"string",typeof mt=="string"?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral)}case"none":return br().some(function(rn){return rn.name===et})?ke(et,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(xr)}}n.getCompletionEntryDetails=ge;function ke(fe,je,Ee){return Ie(fe,"",je,[e.displayPart(fe,Ee)])}function Pe(fe,je,Ee,We,$,Ne,me){var Ze=je.runWithCancellationToken($,function(yt){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(yt,fe,Ee,We,We,7)}),Cr=Ze.displayParts,fr=Ze.documentation,dr=Ze.symbolKind,et=Ze.tags;return Ie(fe.name,e.SymbolDisplay.getSymbolModifiers(je,fe),dr,Cr,fr,et,Ne,me)}n.createCompletionDetailsForSymbol=Pe;function Ie(fe,je,Ee,We,$,Ne,me,Ze){return{name:fe,kindModifiers:je,kind:Ee,displayParts:We,documentation:$,tags:Ne,codeActions:me,source:Ze,sourceDisplay:Ze}}n.createCompletionDetails=Ie;function Ge(fe,je,Ee,We,$,Ne,me,Ze,Cr,fr,dr,et,yt,Vr,tr){if(Vr!=null&&Vr.moduleSpecifier){var xr=De(fr,Cr),Nr=xr.contextToken,zr=xr.previousToken;if(zr&&Rt(Nr||zr).replacementNode)return{codeActions:void 0,sourceDisplay:[e.textPart(Vr.moduleSpecifier)]}}if(tr===a.ClassMemberSnippet){var gt=u(me,Ne,Ze,yt,fe,$,je,Ee).importAdder;if(gt){var vt=e.textChanges.ChangeTracker.with({host:me,formatContext:et,preferences:yt},gt.writeFixes);return{sourceDisplay:void 0,codeActions:[{changes:vt,description:e.diagnosticToString([e.Diagnostics.Includes_imports_of_types_referenced_by_0,fe])}]}}}if(!We||!(h(We)||v(We)))return{codeActions:void 0,sourceDisplay:void 0};var ut=We.isFromPackageJson?me.getPackageJsonAutoImportProvider().getTypeChecker():Ne.getTypeChecker(),ht=We.moduleSymbol,xt=ut.getMergedSymbol(e.skipAlias($.exportSymbol||$,ut)),wt=e.codefix.getImportCompletionAction(xt,ht,Cr,e.getNameForExportedSymbol($,e.getEmitScriptTarget(Ze)),me,Ne,et,dr&&e.isIdentifier(dr)?dr.getStart(Cr):fr,yt),Qt=wt.moduleSpecifier,mt=wt.codeAction;return e.Debug.assert(!(Vr!=null&&Vr.moduleSpecifier)||Qt===Vr.moduleSpecifier),{sourceDisplay:[e.textPart(Qt)],codeActions:[mt]}}function he(fe,je,Ee,We,$,Ne,me){var Ze=Te(fe,je,Ee,We,$,Ne,me);return Ze.type==="symbol"?Ze.symbol:void 0}n.getCompletionEntrySymbol=he;var ve;(function(fe){fe[fe.Data=0]="Data",fe[fe.JsDocTagName=1]="JsDocTagName",fe[fe.JsDocTag=2]="JsDocTag",fe[fe.JsDocParameterName=3]="JsDocParameterName",fe[fe.Keywords=4]="Keywords"})(ve||(ve={})),function(fe){fe[fe.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",fe[fe.Global=1]="Global",fe[fe.PropertyAccess=2]="PropertyAccess",fe[fe.MemberLike=3]="MemberLike",fe[fe.String=4]="String",fe[fe.None=5]="None"}(n.CompletionKind||(n.CompletionKind={}));function Ve(fe,je,Ee){return e.firstDefined(je&&(je.isUnion()?je.types:[je]),function(We){var $=We&&We.symbol;return $&&$.flags&424&&!e.isAbstractConstructorSymbol($)?Le($,fe,Ee):void 0})}function _e(fe,je,Ee,We){var $=fe.parent;switch(fe.kind){case 79:return e.getContextualTypeFromParent(fe,We);case 63:switch($.kind){case 253:return We.getContextualType($.initializer);case 220:return We.getTypeAtLocation($.left);case 284:return We.getContextualTypeForJsxAttribute($);default:return}case 103:return We.getContextualType($);case 82:return e.getSwitchedType(e.cast($,e.isCaseClause),We);case 18:return e.isJsxExpression($)&&!e.isJsxElement($.parent)&&!e.isJsxFragment($.parent)?We.getContextualTypeForJsxAttribute($.parent):void 0;default:var Ne=e.SignatureHelp.getArgumentInfoForCompletions(fe,je,Ee);return Ne?We.getContextualTypeForArgumentAtIndex(Ne.invocation,Ne.argumentIndex+(fe.kind===27?1:0)):e.isEqualityOperatorKind(fe.kind)&&e.isBinaryExpression($)&&e.isEqualityOperatorKind($.operatorToken.kind)?We.getTypeAtLocation($.left):We.getContextualType(fe)}}function Le(fe,je,Ee){var We=Ee.getAccessibleSymbolChain(fe,je,67108863,!1);return We?e.first(We):fe.parent&&(qe(fe.parent)?fe:Le(fe.parent,je,Ee))}function qe(fe){var je;return!!(!((je=fe.declarations)===null||je===void 0)&&je.some(function(Ee){return Ee.kind===303}))}function Xe(fe,je,Ee,We,$,Ne,me,Ze,Cr){var fr=fe.getTypeChecker(),dr=e.timestamp(),et=e.getTokenAtPosition(Ee,$);je("getCompletionData: Get current token: "+(e.timestamp()-dr)),dr=e.timestamp();var yt=e.isInComment(Ee,$,et);je("getCompletionData: Is inside comment: "+(e.timestamp()-dr));var Vr=!1,tr=!1;if(yt){if(e.hasDocComment(Ee,$)){if(Ee.text.charCodeAt($-1)===64)return{kind:1};var xr=e.getLineStartPositionForPosition($,Ee);if(!/[^\*|\s(/)]/.test(Ee.text.substring(xr,$)))return{kind:2}}var Nr=gr(et,$);if(Nr){if(Nr.tagName.pos<=$&&$<=Nr.tagName.end)return{kind:1};if(ro(Nr)&&Nr.typeExpression&&Nr.typeExpression.kind===307&&(et=e.getTokenAtPosition(Ee,$),(!et||!e.isDeclarationName(et)&&(et.parent.kind!==345||et.parent.name!==et))&&(Vr=cs(Nr.typeExpression))),!Vr&&e.isJSDocParameterTag(Nr)&&(e.nodeIsMissing(Nr.name)||Nr.name.pos<=$&&$<=Nr.name.end))return{kind:3,tag:Nr}}if(!Vr){je("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}dr=e.timestamp();var zr=!Vr&&e.isSourceFileJS(Ee),gt=De($,Ee),vt=gt.previousToken,ut=gt.contextToken;je("getCompletionData: Get previous token: "+(e.timestamp()-dr));var ht=et,xt,wt=!1,Qt=!1,mt=!1,rn=!1,sa=!1,ba=!1,Jn,na=e.getTouchingPropertyName(Ee,$),Wn=0,en=!1;if(ut){var St=Rt(ut);if(en=St.isNewIdentifierLocation,St.keywordCompletion){if(St.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[O(St.keywordCompletion)],isNewIdentifierLocation:en};Wn=ne(St.keywordCompletion)}if(St.replacementNode&&Ne.includeCompletionsForImportStatements&&Ne.includeCompletionsWithInsertText&&(Jn=St.replacementNode),!Jn&&Fo(ut))return je("Returning an empty list because completion was requested in an invalid position."),Wn?Z(Wn,zr,Es()):void 0;var Ut=ut.parent;if(ut.kind===24||ut.kind===28)switch(wt=ut.kind===24,Qt=ut.kind===28,Ut.kind){case 205:xt=Ut,ht=xt.expression;var qt=e.getLeftmostAccessExpression(xt);if(e.nodeIsMissing(qt)||(e.isCallExpression(ht)||e.isFunctionLike(ht))&&ht.end===ut.pos&&ht.getChildCount(Ee)&&e.last(ht.getChildren(Ee)).kind!==21)return;break;case 160:ht=Ut.left;break;case 260:ht=Ut.name;break;case 199:ht=Ut;break;case 230:ht=Ut.getFirstToken(Ee),e.Debug.assert(ht.kind===100||ht.kind===103);break;default:return}else if(!Jn&&Ee.languageVariant===1){if(Ut&&Ut.kind===205&&(ut=Ut,Ut=Ut.parent),et.parent===na)switch(et.kind){case 31:(et.parent.kind===277||et.parent.kind===279)&&(na=et);break;case 43:et.parent.kind===278&&(na=et);break}switch(Ut.kind){case 280:ut.kind===43&&(rn=!0,na=ut);break;case 220:if(!Lr(Ut))break;case 278:case 277:case 279:ba=!0,ut.kind===29&&(mt=!0,na=ut);break;case 287:case 286:vt.kind===19&&et.kind===31&&(ba=!0);break;case 284:if(Ut.initializer===vt&&vt.end<$){ba=!0;break}switch(vt.kind){case 63:sa=!0;break;case 79:ba=!0,Ut!==vt.parent&&!Ut.initializer&&e.findChildOfKind(Ut,63,Ee)&&(sa=vt)}break}}}var Mn=e.timestamp(),dn=5,oa=!1,pt=!1,_t=[],Mt=[],It=[],rt=new e.Map,Cn=co(),Qn=e.memoizeOne(function(bt){return e.createModuleSpecifierResolutionHost(bt?Ze.getPackageJsonAutoImportProvider():fe,Ze)});if(wt||Qt)Ka();else if(mt)_t=fr.getJsxIntrinsicTagNamesAt(na),e.Debug.assertEachIsDefined(_t,"getJsxIntrinsicTagNames() should all be defined"),Hi(),dn=1,Wn=0;else if(rn){var Ra=ut.parent.parent.openingElement.tagName,Ci=fr.getSymbolAtLocation(Ra);Ci&&(_t=[Ci]),dn=1,Wn=0}else if(!Hi())return Wn?Z(Wn,zr,en):void 0;je("getCompletionData: Semantic work: "+(e.timestamp()-Mn));var _i=vt&&_e(vt,$,Ee,fr),va=e.mapDefined(_i&&(_i.isUnion()?_i.types:[_i]),function(bt){return bt.isLiteral()&&!(bt.flags&1024)?bt.value:void 0}),yi=vt&&_i&&Ve(vt,_i,fr);return{kind:0,symbols:_t,completionKind:dn,isInSnippetScope:tr,propertyAccessToConvert:xt,isNewIdentifierLocation:en,location:na,keywordFilters:Wn,literals:va,symbolToOriginInfoMap:Mt,recommendedCompletion:yi,previousToken:vt,contextToken:ut,isJsxInitializer:sa,insideJsDocTagTypeExpression:Vr,symbolToSortTextIdMap:It,isTypeOnlyLocation:Cn,isJsxIdentifierExpected:ba,isRightOfOpenTag:mt,importCompletionNode:Jn,hasUnresolvedAutoImports:pt};function ro(bt){switch(bt.kind){case 338:case 345:case 339:case 341:case 343:return!0;default:return!1}}function Ka(){dn=2;var bt=e.isLiteralImportTypeNode(ht),Pn=Vr||bt&&!ht.isTypeOf||e.isPartOfTypeNode(ht.parent)||e.isPossiblyTypeArgumentPosition(ut,Ee,fr),da=e.isInRightSideOfInternalImportEqualsDeclaration(ht);if(e.isEntityName(ht)||bt||e.isPropertyAccessExpression(ht)){var ei=e.isModuleDeclaration(ht.parent);ei&&(en=!0);var bi=fr.getSymbolAtLocation(ht);if(bi&&(bi=e.skipAlias(bi,fr),bi.flags&1920)){var xi=fr.getExportsOfModule(bi);e.Debug.assertEachIsDefined(xi,"getExportsOfModule() should all be defined");for(var ka=function(ft){return fr.isValidPropertyAccess(bt?ht:ht.parent,ft.name)},mi=function(ft){return Or(ft,fr)},Xi=ei?function(ft){var Zt;return!!(ft.flags&1920)&&!(!((Zt=ft.declarations)===null||Zt===void 0)&&Zt.every(function(Re){return Re.parent===ht.parent}))}:da?function(ft){return mi(ft)||ka(ft)}:Pn?mi:ka,Gi=0,Ro=xi;Gi<Ro.length;Gi++){var ko=Ro[Gi];Xi(ko)&&_t.push(ko)}if(!Pn&&bi.declarations&&bi.declarations.some(function(ft){return ft.kind!==303&&ft.kind!==260&&ft.kind!==259})){var es=fr.getTypeOfSymbolAtLocation(bi,ht).getNonOptionalType(),as=!1;if(es.isNullableType()){var pe=wt&&!Qt&&Ne.includeAutomaticOptionalChainCompletions!==!1;(pe||Qt)&&(es=es.getNonNullableType(),pe&&(as=!0))}Mi(es,!!(ht.flags&32768),as)}return}}if(!Pn){var Rr=e.getThisContainer(ht,!1);!e.isSourceFile(Rr)&&Rr.parent&&fr.getTypeAtLocation(Rr);var es=fr.getTypeAtLocation(ht).getNonOptionalType(),as=!1;if(es.isNullableType()){var pe=wt&&!Qt&&Ne.includeAutomaticOptionalChainCompletions!==!1;(pe||Qt)&&(es=es.getNonNullableType(),pe&&(as=!0))}Mi(es,!!(ht.flags&32768),as)}}function Mi(bt,Pn,da){en=!!bt.getStringIndexType(),Qt&&e.some(bt.getCallSignatures())&&(en=!0);var ei=ht.kind===199?ht:ht.parent;if(We)_t.push.apply(_t,e.filter(Sr(bt,fr),function(Ro){return fr.isValidPropertyAccessForCompletions(ei,bt,Ro)}));else for(var bi=0,xi=bt.getApparentProperties();bi<xi.length;bi++){var ka=xi[bi];fr.isValidPropertyAccessForCompletions(ei,bt,ka)&&io(ka,!1,da)}if(Pn&&Ne.includeCompletionsWithInsertText){var mi=fr.getPromisedTypeOfPromise(bt);if(mi)for(var Xi=0,Gi=mi.getApparentProperties();Xi<Gi.length;Xi++){var ka=Gi[Xi];fr.isValidPropertyAccessForCompletions(ei,mi,ka)&&io(ka,!0,da)}}}function io(bt,Pn,da){var ei,bi=e.firstDefined(bt.declarations,function(ft){return e.tryCast(e.getNameOfDeclaration(ft),e.isComputedPropertyName)});if(bi){var xi=ji(bi.expression),ka=xi&&fr.getSymbolAtLocation(xi),mi=ka&&Le(ka,ut,fr);if(mi&&e.addToSeen(rt,e.getSymbolId(mi))){var Xi=_t.length;_t.push(mi);var Gi=mi.parent;if(!Gi||!e.isExternalModuleSymbol(Gi)||fr.tryGetMemberInModuleExportsAndProperties(mi.name,Gi)!==mi)Mt[Xi]={kind:Rr(2)};else{var Ro=e.isExternalModuleNameRelative(e.stripQuotes(Gi.name))?(ei=e.getSourceFileOfModule(Gi))===null||ei===void 0?void 0:ei.fileName:void 0,ko=(e.codefix.getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Ro,isFromPackageJson:!1,moduleSymbol:Gi,symbol:mi,targetFlags:e.skipAlias(mi,fr).flags}],Ee,fe,Ze,Ne)||{}).moduleSpecifier;if(ko){var es={kind:Rr(6),moduleSymbol:Gi,isDefaultExport:!1,symbolName:mi.name,exportName:mi.name,fileName:Ro,moduleSpecifier:ko};Mt[Xi]=es}}}else Ne.includeCompletionsWithInsertText&&(pe(bt),as(bt),_t.push(bt))}else pe(bt),as(bt),_t.push(bt);function as(ft){lt(ft)&&(It[e.getSymbolId(ft)]=10)}function pe(ft){Ne.includeCompletionsWithInsertText&&(Pn&&e.addToSeen(rt,e.getSymbolId(ft))?Mt[_t.length]={kind:Rr(8)}:da&&(Mt[_t.length]={kind:16}))}function Rr(ft){return da?ft|16:ft}}function ji(bt){return e.isIdentifier(bt)?bt:e.isPropertyAccessExpression(bt)?ji(bt.expression):void 0}function Hi(){var bt=hr()||dt()||lo()||tn()||Un()||to()||Oe()||No()||(Lo(),1);return bt===1}function to(){return se(ut)?(dn=5,en=!0,Wn=4,1):0}function No(){var bt=er(ut),Pn=bt&&fr.getContextualType(bt.attributes);if(!Pn)return 0;var da=bt&&fr.getContextualType(bt.attributes,4);return _t=e.concatenate(_t,So(de(Pn,da,bt.attributes,fr),bt.attributes.properties)),Di(),dn=3,en=!1,1}function lo(){return Jn?(en=!0,Zi(),1):0}function Lo(){Wn=Be(ut)?5:1,dn=1,en=Es(),vt!==ut&&e.Debug.assert(!!vt,"Expected 'contextToken' to be defined when different from 'previousToken'.");var bt=vt!==ut?vt.getStart():$,Pn=Po(ut,bt,Ee)||Ee;tr=Yo(Pn);var da=(Cn?0:111551)|788968|1920|2097152;_t=e.concatenate(_t,fr.getSymbolsInScope(Pn,da)),e.Debug.assertEachIsDefined(_t,"getSymbolsInScope() should all be defined");for(var ei=0,bi=_t;ei<bi.length;ei++){var xi=bi[ei];!fr.isArgumentsSymbol(xi)&&!e.some(xi.declarations,function(Gi){return Gi.getSourceFile()===Ee})&&(It[e.getSymbolId(xi)]=15)}if(Ne.includeCompletionsWithInsertText&&Pn.kind!==303){var ka=fr.tryGetThisTypeAt(Pn,!1);if(ka&&!Yr(ka,Ee,fr))for(var mi=0,Xi=Sr(ka,fr);mi<Xi.length;mi++){var xi=Xi[mi];Mt[_t.length]={kind:1},_t.push(xi),It[e.getSymbolId(xi)]=14}}Zi(),Cn&&(Wn=ut&&e.isAssertionExpression(ut.parent)?6:7)}function Ha(){return Jn?!0:oa||!Ne.includeCompletionsForModuleExports?!1:Ee.externalModuleIndicator||Ee.commonJsModuleIndicator||e.compilerOptionsIndicateEsModules(fe.getCompilerOptions())?!0:e.programContainsModules(fe)}function Yo(bt){switch(bt.kind){case 303:case 222:case 287:case 234:return!0;default:return e.isStatement(bt)}}function co(){return Vr||!!Jn&&e.isTypeOnlyImportOrExportDeclaration(na.parent)||!za(ut)&&(e.isPossiblyTypeArgumentPosition(ut,Ee,fr)||e.isPartOfTypeNode(na)||hi(ut))}function za(bt){return bt&&(bt.kind===112&&(bt.parent.kind===180||e.isTypeOfExpression(bt.parent))||bt.kind===128&&bt.parent.kind===176)}function hi(bt){if(bt){var Pn=bt.parent.kind;switch(bt.kind){case 58:return Pn===166||Pn===165||Pn===163||Pn===253||e.isFunctionLikeKind(Pn);case 63:return Pn===258;case 127:return Pn===228;case 29:return Pn===177||Pn===210;case 94:return Pn===162}}return!1}function Zi(){var bt,Pn;if(!Ha()||(e.Debug.assert(!(me!=null&&me.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),me&&!me.source))return;var da=vt===ut&&Jn&&cn(Jn,ut),ei=da?"":vt&&e.isIdentifier(vt)?vt.text.toLowerCase():"",bi=(bt=Ze.getModuleSpecifierCache)===null||bt===void 0?void 0:bt.call(Ze),xi=e.getExportInfoMap(Ee,Ze,fe,Cr),ka=(Pn=Ze.getPackageJsonAutoImportProvider)===null||Pn===void 0?void 0:Pn.call(Ze),mi=me?void 0:e.createPackageJsonImportFilter(Ee,Ne,Ze);B("collectAutoImports",Ze,fe,Ee,Ne,!!Jn,function(Gi){xi.forEach(Ee.path,function(Ro,ko,es,as){if(e.isIdentifierText(ko,e.getEmitScriptTarget(Ze.getCompilationSettings()))&&!(!me&&e.isStringANonContextualKeyword(ko))&&!(!Cn&&!Jn&&!(Ro[0].targetFlags&111551))&&!(Cn&&!(Ro[0].targetFlags&790504))){var pe=me&&e.some(Ro,function(gi){return me.source===e.stripQuotes(gi.moduleSymbol.name)});if(pe||!me&&ye(ko,ei)){var Rr=e.find(Ro,Xi);if(!Rr)return;var ft=Gi.tryResolve(Ro,es)||{},Zt=ft.exportInfo,Re=Zt===void 0?Rr:Zt,Qr=ft.moduleSpecifier,vn=Re.exportKind===1,Xn=vn&&e.getLocalSymbolForExportDefault(Re.symbol)||Re.symbol;Mo(Xn,{kind:Qr?32:4,moduleSpecifier:Qr,symbolName:ko,exportMapKey:as,exportName:Re.exportKind===2?"export=":Re.symbol.name,fileName:Re.moduleFileName,isDefaultExport:vn,moduleSymbol:Re.moduleSymbol,isFromPackageJson:Re.isFromPackageJson})}}}),pt=Gi.resolutionLimitExceeded()});function Xi(Gi){var Ro=e.tryCast(Gi.moduleSymbol.valueDeclaration,e.isSourceFile);if(!Ro){var ko=e.stripQuotes(Gi.moduleSymbol.name);return e.JsTyping.nodeCoreModules.has(ko)&&e.startsWith(ko,"node:")!==e.shouldUseUriStyleNodeCoreModules(Ee,fe)?!1:mi?mi.allowsImportingAmbientModule(Gi.moduleSymbol,Qn(Gi.isFromPackageJson)):!0}return e.isImportableFile(Gi.isFromPackageJson?ka:fe,Ee,Ro,Ne,mi,Qn(Gi.isFromPackageJson),bi)}}function Mo(bt,Pn){var da=e.getSymbolId(bt);It[da]!==15&&(Mt[_t.length]=Pn,It[da]=Jn?11:16,_t.push(bt))}function Po(bt,Pn,da){for(var ei=bt;ei&&!e.positionBelongsToNode(ei,Pn,da);)ei=ei.parent;return ei}function Fo(bt){var Pn=e.timestamp(),da=Cs(bt)||vr(bt)||Jt(bt)||zo(bt)||e.isBigIntLiteral(bt);return je("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-Pn)),da}function zo(bt){if(bt.kind===11)return!0;if(bt.kind===31&&bt.parent){if(bt.parent.kind===279)return na.parent.kind!==279;if(bt.parent.kind===280||bt.parent.kind===278)return!!bt.parent.parent&&bt.parent.parent.kind===277}return!1}function Es(){if(ut){var bt=ut.parent.kind,Pn=ur(ut);switch(Pn){case 27:return bt===207||bt===170||bt===208||bt===203||bt===220||bt===178||bt===204;case 20:return bt===207||bt===170||bt===208||bt===211||bt===190;case 22:return bt===203||bt===175||bt===161;case 141:case 142:case 100:return!0;case 24:return bt===260;case 18:return bt===256||bt===204;case 63:return bt===253||bt===220;case 15:return bt===222;case 16:return bt===232;case 131:return bt===168||bt===295;case 41:return bt===168}if(Me(Pn))return!0}return!1}function Cs(bt){return(e.isRegularExpressionLiteral(bt)||e.isStringTextContainingNode(bt))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(bt)),$)||$===bt.end&&(!!bt.isUnterminated||e.isRegularExpressionLiteral(bt)))}function hr(){var bt=He(ut);if(!bt)return 0;var Pn=e.isIntersectionTypeNode(bt.parent)?bt.parent:void 0,da=Pn||bt,ei=pr(da,fr);if(!ei)return 0;var bi=fr.getTypeFromTypeNode(da),xi=Sr(ei,fr),ka=Sr(bi,fr),mi=new e.Set;return ka.forEach(function(Xi){return mi.add(Xi.escapedName)}),_t=e.concatenate(_t,e.filter(xi,function(Xi){return!mi.has(Xi.escapedName)})),dn=0,en=!0,1}function dt(){var bt=oe(ut);if(!bt)return 0;dn=0;var Pn,da;if(bt.kind===204){var ei=tt(bt,fr);if(ei===void 0)return bt.flags&16777216?2:(oa=!0,0);var bi=fr.getContextualType(bt,4),xi=(bi||ei).getStringIndexType(),ka=(bi||ei).getNumberIndexType();if(en=!!xi||!!ka,Pn=de(ei,bi,bt,fr),da=bt.properties,Pn.length===0&&!ka)return oa=!0,0}else{e.Debug.assert(bt.kind===200),en=!1;var mi=e.getRootDeclaration(bt.parent);if(!e.isVariableLike(mi))return e.Debug.fail("Root declaration is not variable-like.");var Xi=e.hasInitializer(mi)||e.hasType(mi)||mi.parent.parent.kind===243;if(!Xi&&mi.kind===163&&(e.isExpression(mi.parent)?Xi=!!fr.getContextualType(mi.parent):(mi.parent.kind===168||mi.parent.kind===172)&&(Xi=e.isExpression(mi.parent.parent)&&!!fr.getContextualType(mi.parent.parent))),Xi){var Gi=fr.getTypeAtLocation(bt);if(!Gi)return 2;Pn=fr.getPropertiesOfType(Gi).filter(function(Ro){return fr.isPropertyAccessible(bt,!1,!1,Gi,Ro)}),da=bt.elements}}return Pn&&Pn.length>0&&(_t=e.concatenate(_t,ta(Pn,e.Debug.checkDefined(da)))),Di(),1}function tn(){if(!ut)return 0;var bt=ut.kind===18||ut.kind===27?e.tryCast(ut.parent,e.isNamedImportsOrExports):e.isTypeKeywordTokenOrIdentifier(ut)?e.tryCast(ut.parent.parent,e.isNamedImportsOrExports):void 0;if(!bt)return 0;e.isTypeKeywordTokenOrIdentifier(ut)||(Wn=8);var Pn=(bt.kind===268?bt.parent.parent:bt.parent).moduleSpecifier;if(!Pn)return en=!0,bt.kind===268?2:0;var da=fr.getSymbolAtLocation(Pn);if(!da)return en=!0,2;dn=3,en=!1;var ei=fr.getExportsAndPropertiesOfModule(da),bi=new e.Set(bt.elements.filter(function(ka){return!cs(ka)}).map(function(ka){return(ka.propertyName||ka.name).escapedText})),xi=ei.filter(function(ka){return ka.escapedName!=="default"&&!bi.has(ka.escapedName)});return _t=e.concatenate(_t,xi),xi.length||(Wn=0),1}function Un(){var bt,Pn=ut&&(ut.kind===18||ut.kind===27)?e.tryCast(ut.parent,e.isNamedExports):void 0;if(!Pn)return 0;var da=e.findAncestor(Pn,e.or(e.isSourceFile,e.isModuleDeclaration));return dn=5,en=!1,(bt=da.locals)===null||bt===void 0||bt.forEach(function(ei,bi){var xi,ka;_t.push(ei),!((ka=(xi=da.symbol)===null||xi===void 0?void 0:xi.exports)===null||ka===void 0)&&ka.has(bi)&&(It[e.getSymbolId(ei)]=12)}),1}function Oe(){var bt=Pr(Ee,ut,na,$);if(!bt)return 0;if(dn=3,en=!0,Wn=ut.kind===41?0:e.isClassLike(bt)?2:3,!e.isClassLike(bt))return 1;var Pn=ut.kind===26?ut.parent.parent:ut.parent,da=e.isClassElement(Pn)?e.getEffectiveModifierFlags(Pn):0;if(ut.kind===79&&!cs(ut))switch(ut.getText()){case"private":da=da|8;break;case"static":da=da|32;break;case"override":da=da|16384;break}if(e.isClassStaticBlockDeclaration(Pn)&&(da|=32),!(da&8)){var ei=e.isClassLike(bt)&&da&16384?e.singleElementArray(e.getEffectiveBaseTypeNode(bt)):e.getAllSuperTypeNodes(bt),bi=e.flatMap(ei,function(xi){var ka=fr.getTypeAtLocation(xi);return da&32?(ka==null?void 0:ka.symbol)&&fr.getPropertiesOfType(fr.getTypeOfSymbolAtLocation(ka.symbol,bt)):ka&&fr.getPropertiesOfType(ka)});_t=e.concatenate(_t,Ji(bi,bt.members,da))}return 1}function oe(bt){if(bt){var Pn=bt.parent;switch(bt.kind){case 18:case 27:if(e.isObjectLiteralExpression(Pn)||e.isObjectBindingPattern(Pn))return Pn;break;case 41:return e.isMethodDeclaration(Pn)?e.tryCast(Pn.parent,e.isObjectLiteralExpression):void 0;case 79:return bt.text==="async"&&e.isShorthandPropertyAssignment(bt.parent)?bt.parent.parent:void 0}}}function mr(bt){return!!bt.parent&&e.isParameter(bt.parent)&&e.isConstructorDeclaration(bt.parent.parent)&&(e.isParameterPropertyModifier(bt.kind)||e.isDeclarationName(bt))}function se(bt){if(bt){var Pn=bt.parent;switch(bt.kind){case 20:case 27:return e.isConstructorDeclaration(bt.parent)?bt.parent:void 0;default:if(mr(bt))return Pn.parent}}}function Be(bt){if(bt){var Pn,da=e.findAncestor(bt.parent,function(ei){return e.isClassLike(ei)?"quit":e.isFunctionLikeDeclaration(ei)&&Pn===ei.body?!0:(Pn=ei,!1)});return da&&da}}function er(bt){if(bt){var Pn=bt.parent;switch(bt.kind){case 31:case 30:case 43:case 79:case 205:case 285:case 284:case 286:if(Pn&&(Pn.kind===278||Pn.kind===279)){if(bt.kind===31){var da=e.findPrecedingToken(bt.pos,Ee,void 0);if(!Pn.typeArguments||da&&da.kind===43)break}return Pn}else if(Pn.kind===284)return Pn.parent.parent;break;case 10:if(Pn&&(Pn.kind===284||Pn.kind===286))return Pn.parent.parent;break;case 19:if(Pn&&Pn.kind===287&&Pn.parent&&Pn.parent.kind===284)return Pn.parent.parent.parent;if(Pn&&Pn.kind===286)return Pn.parent.parent;break}}}function vr(bt){var Pn=bt.parent,da=Pn.kind;switch(bt.kind){case 27:return da===253||Sn(bt)||da===236||da===259||Dt(da)||da===257||da===201||da===258||e.isClassLike(Pn)&&!!Pn.typeParameters&&Pn.typeParameters.end>=bt.pos;case 24:return da===201;case 58:return da===202;case 22:return da===201;case 20:return da===291||Dt(da);case 18:return da===259;case 29:return da===256||da===225||da===257||da===258||e.isFunctionLikeKind(da);case 124:return da===166&&!e.isClassLike(Pn.parent);case 25:return da===163||!!Pn.parent&&Pn.parent.kind===201;case 123:case 121:case 122:return da===163&&!e.isConstructorDeclaration(Pn.parent);case 127:return da===269||da===274||da===267;case 136:case 148:return!Jr(bt);case 79:if(da===269&&bt===Pn.name&&bt.text==="type")return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 137:return!0;case 151:return da!==269;case 41:return e.isFunctionLike(bt.parent)&&!e.isMethodDeclaration(bt.parent)}if(Me(ur(bt))&&Jr(bt)||mr(bt)&&(!e.isIdentifier(bt)||e.isParameterPropertyModifier(ur(bt))||cs(bt)))return!1;switch(ur(bt)){case 126:case 84:case 85:case 135:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 131:return e.isPropertyDeclaration(bt.parent)}var ei=e.findAncestor(bt.parent,e.isClassLike);if(ei&&bt===vt&&qr(bt,$))return!1;var bi=e.getAncestor(bt.parent,166);if(bi&&bt!==vt&&e.isClassLike(vt.parent.parent)&&$<=vt.end){if(qr(bt,vt.end))return!1;if(bt.kind!==63&&(e.isInitializedProperty(bi)||e.hasType(bi)))return!0}return e.isDeclarationName(bt)&&!e.isShorthandPropertyAssignment(bt.parent)&&!e.isJsxAttribute(bt.parent)&&!(e.isClassLike(bt.parent)&&(bt!==vt||$>vt.end))}function qr(bt,Pn){return bt.kind!==63&&(bt.kind===26||!e.positionsAreOnSameLine(bt.end,Pn,Ee))}function Dt(bt){return e.isFunctionLikeKind(bt)&&bt!==170}function Jt(bt){if(bt.kind===8){var Pn=bt.getFullText();return Pn.charAt(Pn.length-1)==="."}return!1}function Sn(bt){return bt.parent.kind===254&&!e.isPossiblyTypeArgumentPosition(bt,Ee,fr)}function ta(bt,Pn){if(Pn.length===0)return bt;for(var da=new e.Set,ei=new e.Set,bi=0,xi=Pn;bi<xi.length;bi++){var ka=xi[bi];if(!(ka.kind!==294&&ka.kind!==295&&ka.kind!==202&&ka.kind!==168&&ka.kind!==171&&ka.kind!==172&&ka.kind!==296)&&!cs(ka)){var mi=void 0;if(e.isSpreadAssignment(ka))xa(ka,da);else if(e.isBindingElement(ka)&&ka.propertyName)ka.propertyName.kind===79&&(mi=ka.propertyName.escapedText);else{var Xi=e.getNameOfDeclaration(ka);mi=Xi&&e.isPropertyNameLiteral(Xi)?e.getEscapedTextOfIdentifierOrLiteral(Xi):void 0}mi!==void 0&&ei.add(mi)}}var Gi=bt.filter(function(Ro){return!ei.has(Ro.escapedName)});return $a(da,Gi),Gi}function xa(bt,Pn){var da=bt.expression,ei=fr.getSymbolAtLocation(da),bi=ei&&fr.getTypeOfSymbolAtLocation(ei,da),xi=bi&&bi.properties;xi&&xi.forEach(function(ka){Pn.add(ka.name)})}function Di(){_t.forEach(function(bt){var Pn;if(bt.flags&16777216){var da=e.getSymbolId(bt);It[da]=(Pn=It[da])!==null&&Pn!==void 0?Pn:12}})}function $a(bt,Pn){if(bt.size!==0)for(var da=0,ei=Pn;da<ei.length;da++){var bi=ei[da];bt.has(bi.name)&&(It[e.getSymbolId(bi)]=13)}}function Ji(bt,Pn,da){for(var ei=new e.Set,bi=0,xi=Pn;bi<xi.length;bi++){var ka=xi[bi];if(!(ka.kind!==166&&ka.kind!==168&&ka.kind!==171&&ka.kind!==172)&&!cs(ka)&&!e.hasEffectiveModifier(ka,8)&&e.isStatic(ka)===!!(da&32)){var mi=e.getPropertyNameForPropertyNameNode(ka.name);mi&&ei.add(mi)}}return bt.filter(function(Xi){return!ei.has(Xi.escapedName)&&!!Xi.declarations&&!(e.getDeclarationModifierFlagsFromSymbol(Xi)&8)&&!(Xi.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(Xi.valueDeclaration))})}function So(bt,Pn){for(var da=new e.Set,ei=new e.Set,bi=0,xi=Pn;bi<xi.length;bi++){var ka=xi[bi];cs(ka)||(ka.kind===284?da.add(ka.name.escapedText):e.isJsxSpreadAttribute(ka)&&xa(ka,ei))}var mi=bt.filter(function(Xi){return!da.has(Xi.escapedName)});return $a(ei,mi),mi}function cs(bt){return bt.getStart(Ee)<=$&&$<=bt.getEnd()}}function De(fe,je){var Ee=e.findPrecedingToken(fe,je);if(Ee&&fe<=Ee.end&&(e.isMemberName(Ee)||e.isKeyword(Ee.kind))){var We=e.findPrecedingToken(Ee.getFullStart(),je,void 0);return{contextToken:We,previousToken:Ee}}return{contextToken:Ee,previousToken:Ee}}function Ae(fe,je,Ee,We){var $=je.isPackageJsonImport?We.getPackageJsonAutoImportProvider():Ee,Ne=$.getTypeChecker(),me=je.ambientModuleName?Ne.tryFindAmbientModule(je.ambientModuleName):je.fileName?Ne.getMergedSymbol(e.Debug.checkDefined($.getSourceFile(je.fileName)).symbol):void 0;if(me){var Ze=je.exportName==="export="?Ne.resolveExternalModuleSymbol(me):Ne.tryGetMemberInModuleExportsAndProperties(je.exportName,me);if(Ze){var Cr=je.exportName==="default";return Ze=Cr&&e.getLocalSymbolForExportDefault(Ze)||Ze,{symbol:Ze,origin:X(je,fe,me)}}}}function Ye(fe,je,Ee,We,$){var Ne=A(Ee)?Ee.symbolName:fe.name;if(!(Ne===void 0||fe.flags&1536&&e.isSingleOrDoubleQuote(Ne.charCodeAt(0))||e.isKnownSymbol(fe))){var me={name:Ne,needsConvertPropertyAccess:!1};if(e.isIdentifierText(Ne,je,$?1:0)||fe.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(fe.valueDeclaration))return me;switch(We){case 3:return;case 0:return{name:JSON.stringify(Ne),needsConvertPropertyAccess:!1};case 2:case 1:return Ne.charCodeAt(0)===32?void 0:{name:Ne,needsConvertPropertyAccess:!0};case 5:case 4:return me;default:e.Debug.assertNever(We)}}}var Dr=[],br=e.memoize(function(){for(var fe=[],je=81;je<=159;je++)fe.push({name:e.tokenToString(je),kind:"keyword",kindModifiers:"",sortText:f.GlobalsOrKeywords});return fe});function lr(fe,je){if(!je)return Ar(fe);var Ee=fe+7+1;return Dr[Ee]||(Dr[Ee]=Ar(fe).filter(function(We){return!kr(e.stringToToken(We.name))}))}function Ar(fe){return Dr[fe]||(Dr[fe]=br().filter(function(je){var Ee=e.stringToToken(je.name);switch(fe){case 0:return!1;case 1:return Hr(Ee)||Ee===135||Ee===141||Ee===151||Ee===142||Ee===126||e.isTypeKeyword(Ee)&&Ee!==152;case 5:return Hr(Ee);case 2:return Me(Ee);case 3:return Ke(Ee);case 4:return e.isParameterPropertyModifier(Ee);case 6:return e.isTypeKeyword(Ee)||Ee===85;case 7:return e.isTypeKeyword(Ee);case 8:return Ee===151;default:return e.Debug.assertNever(fe)}}))}function kr(fe){switch(fe){case 126:case 130:case 157:case 133:case 135:case 92:case 156:case 117:case 137:case 118:case 139:case 140:case 141:case 142:case 143:case 146:case 147:case 158:case 121:case 122:case 123:case 144:case 149:case 150:case 151:case 153:case 154:return!0;default:return!1}}function Ke(fe){return fe===144}function Me(fe){switch(fe){case 126:case 134:case 136:case 148:case 131:case 135:case 158:return!0;default:return e.isClassMemberModifier(fe)}}function Hr(fe){return fe===131||fe===132||fe===127||!e.isContextualKeyword(fe)&&!Me(fe)}function ur(fe){return e.isIdentifier(fe)?fe.originalKeywordKind||0:fe.kind}function gr(fe,je){var Ee=e.findAncestor(fe,e.isJSDoc);return Ee&&Ee.tags&&(e.rangeContainsPosition(Ee,je)?e.findLast(Ee.tags,function(We){return We.pos<je}):void 0)}function de(fe,je,Ee,We){var $=je&&je!==fe,Ne=$&&!(je.flags&3)?We.getUnionType([fe,je]):fe,me=Fe(Ne,Ee,We);return Ne.isClass()&&$e(me)?[]:$?e.filter(me,Ze):me;function Ze(Cr){return e.some(Cr.declarations,function(fr){return fr.parent!==Ee})}}n.getPropertiesForObjectExpression=de;function Fe(fe,je,Ee){return fe.isUnion()?Ee.getAllPossiblePropertiesOfTypes(e.filter(fe.types,function(We){return!(We.flags&131068||Ee.isArrayLikeType(We)||Ee.isTypeInvalidDueToUnionDiscriminant(We,je)||e.typeHasCallOrConstructSignatures(We,Ee)||We.isClass()&&$e(We.getApparentProperties()))})):fe.getApparentProperties()}function $e(fe){return e.some(fe,function(je){return!!(e.getDeclarationModifierFlagsFromSymbol(je)&24)})}function Sr(fe,je){return fe.isUnion()?e.Debug.checkEachDefined(je.getAllPossiblePropertiesOfTypes(fe.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.checkEachDefined(fe.getApparentProperties(),"getApparentProperties() should all be defined")}function Pr(fe,je,Ee,We){switch(Ee.kind){case 346:return e.tryCast(Ee.parent,e.isObjectTypeDeclaration);case 1:var $=e.tryCast(e.lastOrUndefined(e.cast(Ee.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if($&&!e.findChildOfKind($,19,fe))return $;break;case 79:{if(e.isPropertyDeclaration(Ee.parent)&&Ee.parent.initializer===Ee)return;if(Jr(Ee))return e.findAncestor(Ee,e.isObjectTypeDeclaration)}}if(je){if(Ee.kind===134||e.isIdentifier(je)&&e.isPropertyDeclaration(je.parent)&&e.isClassLike(Ee))return e.findAncestor(je,e.isClassLike);switch(je.kind){case 63:return;case 26:case 19:return Jr(Ee)&&Ee.parent.name===Ee?Ee.parent.parent:e.tryCast(Ee,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(je.parent,e.isObjectTypeDeclaration);default:if(!Jr(je))return e.getLineAndCharacterOfPosition(fe,je.getEnd()).line!==e.getLineAndCharacterOfPosition(fe,We).line&&e.isObjectTypeDeclaration(Ee)?Ee:void 0;var Ne=e.isClassLike(je.parent.parent)?Me:Ke;return Ne(je.kind)||je.kind===41||e.isIdentifier(je)&&Ne(e.stringToToken(je.text))?je.parent.parent:void 0}}}function He(fe){if(fe){var je=fe.parent;switch(fe.kind){case 18:if(e.isTypeLiteralNode(je))return je;break;case 26:case 27:case 79:if(je.kind===165&&e.isTypeLiteralNode(je.parent))return je.parent;break}}}function pr(fe,je){if(fe){if(e.isTypeNode(fe)&&e.isTypeReferenceType(fe.parent))return je.getTypeArgumentConstraint(fe);var Ee=pr(fe.parent,je);if(Ee)switch(fe.kind){case 165:return je.getTypeOfPropertyOfContextualType(Ee,fe.symbol.escapedName);case 187:case 181:case 186:return Ee}}}function Jr(fe){return fe.parent&&e.isClassOrTypeElement(fe.parent)&&e.isObjectTypeDeclaration(fe.parent.parent)}function ze(fe,je,Ee,We){switch(je){case".":case"@":return!0;case'"':case"'":case"`":return!!Ee&&e.isStringLiteralOrTemplate(Ee)&&We===Ee.getStart(fe)+1;case"#":return!!Ee&&e.isPrivateIdentifier(Ee)&&!!e.getContainingClass(Ee);case"<":return!!Ee&&Ee.kind===29&&(!e.isBinaryExpression(Ee.parent)||Lr(Ee.parent));case"/":return!!Ee&&(e.isStringLiteralLike(Ee)?!!e.tryGetImportFromModuleSpecifier(Ee):Ee.kind===43&&e.isJsxClosingElement(Ee.parent));case" ":return!!Ee&&e.isImportKeyword(Ee)&&Ee.parent.kind===303;default:return e.Debug.assertNever(je)}}function Lr(fe){var je=fe.left;return e.nodeIsMissing(je)}function Yr(fe,je,Ee){var We=Ee.resolveName("self",void 0,111551,!1);if(We&&Ee.getTypeOfSymbolAtLocation(We,je)===fe)return!0;var $=Ee.resolveName("global",void 0,111551,!1);if($&&Ee.getTypeOfSymbolAtLocation($,je)===fe)return!0;var Ne=Ee.resolveName("globalThis",void 0,111551,!1);return!!(Ne&&Ee.getTypeOfSymbolAtLocation(Ne,je)===fe)}function lt(fe){return!!(fe.valueDeclaration&&e.getEffectiveModifierFlags(fe.valueDeclaration)&32&&e.isClassLike(fe.valueDeclaration.parent))}function tt(fe,je){var Ee=je.getContextualType(fe);if(Ee)return Ee;if(e.isBinaryExpression(fe.parent)&&fe.parent.operatorToken.kind===63&&fe===fe.parent.left)return je.getTypeAtLocation(fe.parent)}function Rt(fe){var je,Ee=!1,We=$();return{isKeywordOnlyCompletion:Ee,keywordCompletion:je,isNewIdentifierLocation:!!(We||je===151),replacementNode:We&&e.rangeIsOnSingleLine(We,We.getSourceFile())?We:void 0};function $(){var Ne=fe.parent;if(e.isImportEqualsDeclaration(Ne))return je=fe.kind===151?void 0:151,In(Ne.moduleReference)?Ne:void 0;if(cn(Ne,fe)&&bn(Ne.parent))return Ne;if(e.isNamedImports(Ne)||e.isNamespaceImport(Ne)){if(!Ne.parent.isTypeOnly&&(fe.kind===18||fe.kind===100||fe.kind===27)&&(je=151),bn(Ne))if(fe.kind===19||fe.kind===79)Ee=!0,je=155;else return Ne.parent.parent;return}if(e.isImportKeyword(fe)&&e.isSourceFile(Ne))return je=151,fe;if(e.isImportKeyword(fe)&&e.isImportDeclaration(Ne))return je=151,In(Ne.moduleSpecifier)?Ne:void 0}}function cn(fe,je){return e.isImportSpecifier(fe)&&(fe.isTypeOnly||je===fe.name&&e.isTypeKeywordTokenOrIdentifier(je))}function bn(fe){return In(fe.parent.parent.moduleSpecifier)&&(e.isNamespaceImport(fe)||fe.elements.length<2)&&!fe.parent.name}function In(fe){var je;return e.nodeIsMissing(fe)?!0:!(!((je=e.tryCast(e.isExternalModuleReference(fe)?fe.expression:fe,e.isStringLiteralLike))===null||je===void 0)&&je.text)}function zn(fe){var je=e.findAncestor(fe,function(Ee){return e.isFunctionBlock(Ee)||ir(Ee)||e.isBindingPattern(Ee)?"quit":e.isVariableDeclaration(Ee)});return je}function ir(fe){return fe.parent&&e.isArrowFunction(fe.parent)&&fe.parent.body===fe}function Or(fe,je,Ee){Ee===void 0&&(Ee=new e.Map);var We=e.skipAlias(fe.exportSymbol||fe,je);return!!(We.flags&788968)||je.isUnknownSymbol(We)||!!(We.flags&1536)&&e.addToSeen(Ee,e.getSymbolId(We))&&je.getExportsOfModule(We).some(function($){return Or($,je,Ee)})}function sr(fe,je){var Ee=e.skipAlias(fe,je).declarations;return!!e.length(Ee)&&e.every(Ee,e.isDeprecatedDeclaration)}function ye(fe,je){if(je.length===0)return!0;for(var Ee=!1,We,$=0,Ne=fe.length,me=0;me<Ne;me++){var Ze=fe.charCodeAt(me),Cr=je.charCodeAt($);if((Ze===Cr||Ze===or(Cr))&&(Ee||(Ee=We===void 0||97<=We&&We<=122&&65<=Ze&&Ze<=90||We===95&&Ze!==95),Ee&&$++,$===je.length))return!0;We=Ze}return!1}function or(fe){return 97<=fe&&fe<=122?fe-32:fe}})(e.Completions||(e.Completions={}))}(jr||(jr={})),function(e){(function(n){function f(re,T,N,y,D){var C=e.getTouchingPropertyName(N,y);if(C.parent&&(e.isJsxOpeningElement(C.parent)&&C.parent.tagName===C||e.isJsxClosingElement(C.parent))){var m=C.parent.parent,u=m.openingElement,g=m.closingElement,P=[u,g].map(function(te){var ue=te.tagName;return p(ue,N)});return[{fileName:N.fileName,highlightSpans:P}]}return a(y,C,re,T,D)||d(C,N)}n.getDocumentHighlights=f;function p(re,T){return{fileName:T.fileName,textSpan:e.createTextSpanFromNode(re,T),kind:"none"}}function a(re,T,N,y,D){var C=new e.Set(D.map(function(P){return P.fileName})),m=e.FindAllReferences.getReferenceEntriesForNode(re,T,N,D,y,void 0,C);if(m){var u=e.arrayToMultiMap(m.map(e.FindAllReferences.toHighlightSpan),function(P){return P.fileName},function(P){return P.span}),g=e.createGetCanonicalFileName(N.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(u.entries()),function(P){var te=P[0],ue=P[1];if(!C.has(te)){if(!N.redirectTargetsMap.has(e.toPath(te,N.getCurrentDirectory(),g)))return;var X=N.getSourceFile(te),j=e.find(D,function(Se){return!!Se.redirectInfo&&Se.redirectInfo.redirectTarget===X});te=j.fileName,e.Debug.assert(C.has(te))}return{fileName:te,highlightSpans:ue}})}}function d(re,T){var N=k(re,T);return N&&[{fileName:T.fileName,highlightSpans:N}]}function k(re,T){switch(re.kind){case 99:case 91:return e.isIfStatement(re.parent)?F(re.parent,T):void 0;case 105:return D(re.parent,e.isReturnStatement,O);case 109:return D(re.parent,e.isThrowStatement,x);case 111:case 83:case 96:var N=re.kind===83?re.parent.parent:re.parent;return D(N,e.isTryStatement,w);case 107:return D(re.parent,e.isSwitchStatement,I);case 82:case 88:return e.isDefaultClause(re.parent)||e.isCaseClause(re.parent)?D(re.parent.parent.parent,e.isSwitchStatement,I):void 0;case 81:case 86:return D(re.parent,e.isBreakOrContinueStatement,H);case 97:case 115:case 90:return D(re.parent,function(m){return e.isIterationStatement(m,!0)},B);case 134:return y(e.isConstructorDeclaration,[134]);case 136:case 148:return y(e.isAccessor,[136,148]);case 132:return D(re.parent,e.isAwaitExpression,q);case 131:return C(q(re));case 125:return C(Z(re));default:return e.isModifierKind(re.kind)&&(e.isDeclaration(re.parent)||e.isVariableStatement(re.parent))?C(b(re.kind,re.parent)):void 0}function y(m,u){return D(re.parent,m,function(g){return e.mapDefined(g.symbol.declarations,function(P){return m(P)?e.find(P.getChildren(T),function(te){return e.contains(u,te.kind)}):void 0})})}function D(m,u,g){return u(m)?C(g(m,T)):void 0}function C(m){return m&&m.map(function(u){return p(u,T)})}}function J(re){return e.isThrowStatement(re)?[re]:e.isTryStatement(re)?e.concatenate(re.catchClause?J(re.catchClause):re.tryBlock&&J(re.tryBlock),re.finallyBlock&&J(re.finallyBlock)):e.isFunctionLike(re)?void 0:A(re,J)}function h(re){for(var T=re;T.parent;){var N=T.parent;if(e.isFunctionBlock(N)||N.kind===303)return N;if(e.isTryStatement(N)&&N.tryBlock===T&&N.catchClause)return T;T=N}}function v(re){return e.isBreakOrContinueStatement(re)?[re]:e.isFunctionLike(re)?void 0:A(re,v)}function A(re,T){var N=[];return re.forEachChild(function(y){var D=T(y);D!==void 0&&N.push.apply(N,e.toArray(D))}),N}function z(re,T){var N=ie(T);return!!N&&N===re}function ie(re){return e.findAncestor(re,function(T){switch(T.kind){case 248:if(re.kind===244)return!1;case 241:case 242:case 243:case 240:case 239:return!re.label||V(T,re.label.escapedText);default:return e.isFunctionLike(T)&&"quit"}})}function b(re,T){return e.mapDefined(M(T,e.modifierToFlag(re)),function(N){return e.findModifier(N,re)})}function M(re,T){var N=re.parent;switch(N.kind){case 261:case 303:case 234:case 288:case 289:return T&128&&e.isClassDeclaration(re)?Gt(Gt([],re.members,!0),[re],!1):N.statements;case 170:case 168:case 255:return Gt(Gt([],N.parameters,!0),e.isClassLike(N.parent)?N.parent.members:[],!0);case 256:case 225:case 257:case 181:var y=N.members;if(T&92){var D=e.find(N.members,e.isConstructorDeclaration);if(D)return Gt(Gt([],y,!0),D.parameters,!0)}else if(T&128)return Gt(Gt([],y,!0),[N],!1);return y;case 204:return;default:e.Debug.assertNever(N,"Invalid container kind.")}}function S(re,T){for(var N=[],y=2;y<arguments.length;y++)N[y-2]=arguments[y];return T&&e.contains(N,T.kind)?(re.push(T),!0):!1}function B(re){var T=[];if(S(T,re.getFirstToken(),97,115,90)&&re.kind===239)for(var N=re.getChildren(),y=N.length-1;y>=0&&!S(T,N[y],115);y--);return e.forEach(v(re.statement),function(D){z(re,D)&&S(T,D.getFirstToken(),81,86)}),T}function H(re){var T=ie(re);if(T)switch(T.kind){case 241:case 242:case 243:case 239:case 240:return B(T);case 248:return I(T)}}function I(re){var T=[];return S(T,re.getFirstToken(),107),e.forEach(re.caseBlock.clauses,function(N){S(T,N.getFirstToken(),82,88),e.forEach(v(N),function(y){z(re,y)&&S(T,y.getFirstToken(),81)})}),T}function w(re,T){var N=[];if(S(N,re.getFirstToken(),111),re.catchClause&&S(N,re.catchClause.getFirstToken(),83),re.finallyBlock){var y=e.findChildOfKind(re,96,T);S(N,y,96)}return N}function x(re,T){var N=h(re);if(N){var y=[];return e.forEach(J(N),function(D){y.push(e.findChildOfKind(D,109,T))}),e.isFunctionBlock(N)&&e.forEachReturnStatement(N,function(D){y.push(e.findChildOfKind(D,105,T))}),y}}function O(re,T){var N=e.getContainingFunction(re);if(N){var y=[];return e.forEachReturnStatement(e.cast(N.body,e.isBlock),function(D){y.push(e.findChildOfKind(D,105,T))}),e.forEach(J(N.body),function(D){y.push(e.findChildOfKind(D,109,T))}),y}}function q(re){var T=e.getContainingFunction(re);if(T){var N=[];return T.modifiers&&T.modifiers.forEach(function(y){S(N,y,131)}),e.forEachChild(T,function(y){ne(y,function(D){e.isAwaitExpression(D)&&S(N,D.getFirstToken(),132)})}),N}}function Z(re){var T=e.getContainingFunction(re);if(T){var N=[];return e.forEachChild(T,function(y){ne(y,function(D){e.isYieldExpression(D)&&S(N,D.getFirstToken(),125)})}),N}}function ne(re,T){T(re),!e.isFunctionLike(re)&&!e.isClassLike(re)&&!e.isInterfaceDeclaration(re)&&!e.isModuleDeclaration(re)&&!e.isTypeAliasDeclaration(re)&&!e.isTypeNode(re)&&e.forEachChild(re,function(N){return ne(N,T)})}function F(re,T){for(var N=Q(re,T),y=[],D=0;D<N.length;D++){if(N[D].kind===91&&D<N.length-1){for(var C=N[D],m=N[D+1],u=!0,g=m.getStart(T)-1;g>=C.end;g--)if(!e.isWhiteSpaceSingleLine(T.text.charCodeAt(g))){u=!1;break}if(u){y.push({fileName:T.fileName,textSpan:e.createTextSpanFromBounds(C.getStart(),m.end),kind:"reference"}),D++;continue}}y.push(p(N[D],T))}return y}function Q(re,T){for(var N=[];e.isIfStatement(re.parent)&&re.parent.elseStatement===re;)re=re.parent;for(;;){var y=re.getChildren(T);S(N,y[0],99);for(var D=y.length-1;D>=0&&!S(N,y[D],91);D--);if(!re.elseStatement||!e.isIfStatement(re.elseStatement))break;re=re.elseStatement}return N}function V(re,T){return!!e.findAncestor(re.parent,function(N){return e.isLabeledStatement(N)?N.label.escapedText===T:"quit"})}})(e.DocumentHighlights||(e.DocumentHighlights={}))}(jr||(jr={})),function(e){function n(d){return!!d.sourceFile}function f(d,k){return p(d,k)}e.createDocumentRegistry=f;function p(d,k,J){k===void 0&&(k="");var h=new e.Map,v=e.createGetCanonicalFileName(!!d);function A(){var x=e.arrayFrom(h.keys()).filter(function(O){return O&&O.charAt(0)==="_"}).map(function(O){var q=h.get(O),Z=[];return q.forEach(function(ne,F){n(ne)?Z.push({name:F,scriptKind:ne.sourceFile.scriptKind,refCount:ne.languageServiceRefCount}):ne.forEach(function(Q,V){return Z.push({name:F,scriptKind:V,refCount:Q.languageServiceRefCount})})}),Z.sort(function(ne,F){return F.refCount-ne.refCount}),{bucket:O,sourceFiles:Z}});return JSON.stringify(x,void 0,2)}function z(x,O,q,Z,ne){var F=e.toPath(x,k,v),Q=a(O);return ie(x,F,O,Q,q,Z,ne)}function ie(x,O,q,Z,ne,F,Q){return B(x,O,q,Z,ne,F,!0,Q)}function b(x,O,q,Z,ne){var F=e.toPath(x,k,v),Q=a(O);return M(x,F,O,Q,q,Z,ne)}function M(x,O,q,Z,ne,F,Q){return B(x,O,q,Z,ne,F,!1,Q)}function S(x,O){var q=n(x)?x:x.get(e.Debug.checkDefined(O,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(O===void 0||!q||q.sourceFile.scriptKind===O,"Script kind should match provided ScriptKind:".concat(O," and sourceFile.scriptKind: ").concat(q==null?void 0:q.sourceFile.scriptKind,", !entry: ").concat(!q)),q}function B(x,O,q,Z,ne,F,Q,V){V=e.ensureScriptKind(x,V);var re=V===6?100:e.getEmitScriptTarget(q),T=e.getOrUpdate(h,Z,function(){return new e.Map}),N=T.get(O),y=N&&S(N,V);if(!y&&J){var D=J.getDocument(Z,O);D&&(e.Debug.assert(Q),y={sourceFile:D,languageServiceRefCount:0},C())}if(y)y.sourceFile.version!==F&&(y.sourceFile=e.updateLanguageServiceSourceFile(y.sourceFile,ne,F,ne.getChangeRange(y.sourceFile.scriptSnapshot)),J&&J.setDocument(Z,O,y.sourceFile)),Q&&y.languageServiceRefCount++;else{var D=e.createLanguageServiceSourceFile(x,ne,re,F,!1,V);J&&J.setDocument(Z,O,D),y={sourceFile:D,languageServiceRefCount:1},C()}return e.Debug.assert(y.languageServiceRefCount!==0),y.sourceFile;function C(){if(!N)T.set(O,y);else if(n(N)){var m=new e.Map;m.set(N.sourceFile.scriptKind,N),m.set(V,y),T.set(O,m)}else N.set(V,y)}}function H(x,O,q){var Z=e.toPath(x,k,v),ne=a(O);return I(Z,ne,q)}function I(x,O,q){var Z=e.Debug.checkDefined(h.get(O)),ne=Z.get(x),F=S(ne,q);F.languageServiceRefCount--,e.Debug.assert(F.languageServiceRefCount>=0),F.languageServiceRefCount===0&&(n(ne)?Z.delete(x):(ne.delete(q),ne.size===1&&Z.set(x,e.firstDefinedIterator(ne.values(),e.identity))))}function w(x,O){return e.arrayFrom(h.entries(),function(q){var Z=q[0],ne=q[1],F=ne.get(x),Q=F&&S(F,O);return[Z,Q&&Q.languageServiceRefCount]})}return{acquireDocument:z,acquireDocumentWithKey:ie,updateDocument:b,updateDocumentWithKey:M,releaseDocument:H,releaseDocumentWithKey:I,getLanguageServiceRefCounts:w,reportStats:A,getKeyForCompilationSettings:a}}e.createDocumentRegistryInternal=p;function a(d){return e.sourceFileAffectingCompilerOptions.map(function(k){return e.getCompilerOptionValue(d,k)}).join("|")}}(jr||(jr={})),function(e){(function(n){function f(x,O,q,Z){var ne=J(x,q,Z);return function(F,Q,V){var re=p(x,O,ne,Q,q,Z),T=re.directImports,N=re.indirectUsers;return Rn({indirectUsers:N},a(T,F,Q.exportKind,q,V))}}n.createImportTracker=f,function(x){x[x.Named=0]="Named",x[x.Default=1]="Default",x[x.ExportEquals=2]="ExportEquals"}(n.ExportKind||(n.ExportKind={})),function(x){x[x.Import=0]="Import",x[x.Export=1]="Export"}(n.ImportExport||(n.ImportExport={}));function p(x,O,q,Z,ne,F){var Q=Z.exportingModuleSymbol,V=Z.exportKind,re=e.nodeSeenTracker(),T=e.nodeSeenTracker(),N=[],y=!!Q.globalExports,D=y?void 0:[];return m(Q),{directImports:N,indirectUsers:C()};function C(){if(y)return x;if(Q.declarations)for(var X=0,j=Q.declarations;X<j.length;X++){var Se=j[X];e.isExternalModuleAugmentation(Se)&&O.has(Se.getSourceFile().fileName)&&te(Se)}return D.map(e.getSourceFileOfNode)}function m(X){var j=ue(X);if(j)for(var Se=0,Ce=j;Se<Ce.length;Se++){var R=Ce[Se];if(re(R))switch(F&&F.throwIfCancellationRequested(),R.kind){case 207:if(e.isImportCall(R)){u(R);break}if(!y){var Y=R.parent;if(V===2&&Y.kind===253){var U=Y.name;if(U.kind===79){N.push(U);break}}}break;case 79:break;case 264:P(R,R.name,e.hasSyntacticModifier(R,1),!1);break;case 265:N.push(R);var K=R.importClause&&R.importClause.namedBindings;K&&K.kind===267?P(R,K.name,!1,!0):!y&&e.isDefaultImport(R)&&te(H(R));break;case 271:R.exportClause?R.exportClause.kind===273?te(H(R),!0):N.push(R):m(B(R,ne));break;case 199:R.isTypeOf&&!R.qualifier&&g(R)&&te(R.getSourceFile(),!0),N.push(R);break;default:e.Debug.failBadSyntaxKind(R,"Unexpected import kind.")}}}function u(X){var j=e.findAncestor(X,I)||X.getSourceFile();te(j,!!g(X,!0))}function g(X,j){return j===void 0&&(j=!1),e.findAncestor(X,function(Se){return j&&I(Se)?"quit":e.some(Se.modifiers,function(Ce){return Ce.kind===93})})}function P(X,j,Se,Ce){if(V===2)Ce||N.push(X);else if(!y){var R=H(X);e.Debug.assert(R.kind===303||R.kind===260),Se||d(R,j,ne)?te(R,!0):te(R)}}function te(X,j){j===void 0&&(j=!1),e.Debug.assert(!y);var Se=T(X);if(Se&&(D.push(X),!!j)){var Ce=ne.getMergedSymbol(X.symbol);if(Ce){e.Debug.assert(!!(Ce.flags&1536));var R=ue(Ce);if(R)for(var Y=0,U=R;Y<U.length;Y++){var K=U[Y];e.isImportTypeNode(K)||te(H(K),!0)}}}}function ue(X){return q.get(e.getSymbolId(X).toString())}}function a(x,O,q,Z,ne){var F=[],Q=[];function V(u,g){F.push([u,g])}if(x)for(var re=0,T=x;re<T.length;re++){var N=T[re];y(N)}return{importSearches:F,singleReferences:Q};function y(u){if(u.kind===264){w(u)&&D(u.name);return}if(u.kind===79){D(u);return}if(u.kind===199){if(u.qualifier){var g=e.getFirstIdentifier(u.qualifier);g.escapedText===e.symbolName(O)&&Q.push(g)}else q===2&&Q.push(u.argument.literal);return}if(u.moduleSpecifier.kind===10){if(u.kind===271){u.exportClause&&e.isNamedExports(u.exportClause)&&C(u.exportClause);return}var P=u.importClause||{name:void 0,namedBindings:void 0},te=P.name,ue=P.namedBindings;if(ue)switch(ue.kind){case 267:D(ue.name);break;case 268:(q===0||q===1)&&C(ue);break;default:e.Debug.assertNever(ue)}if(te&&(q===1||q===2)&&(!ne||te.escapedText===e.symbolEscapedNameNoDefault(O))){var X=Z.getSymbolAtLocation(te);V(te,X)}}}function D(u){q===2&&(!ne||m(u.escapedText))&&V(u,Z.getSymbolAtLocation(u))}function C(u){if(u)for(var g=0,P=u.elements;g<P.length;g++){var te=P[g],ue=te.name,X=te.propertyName;if(m((X||ue).escapedText))if(X)Q.push(X),(!ne||ue.escapedText===O.escapedName)&&V(ue,Z.getSymbolAtLocation(ue));else{var j=te.kind===274&&te.propertyName?Z.getExportSpecifierLocalTargetSymbol(te):Z.getSymbolAtLocation(ue);V(ue,j)}}}function m(u){return u===O.escapedName||q!==0&&u==="default"}}function d(x,O,q){var Z=q.getSymbolAtLocation(O);return!!h(x,function(ne){if(e.isExportDeclaration(ne)){var F=ne.exportClause,Q=ne.moduleSpecifier;return!Q&&F&&e.isNamedExports(F)&&F.elements.some(function(V){return q.getExportSpecifierLocalTargetSymbol(V)===Z})}})}function k(x,O,q){for(var Z=[],ne=x.getTypeChecker(),F=0,Q=O;F<Q.length;F++){var V=Q[F],re=q.valueDeclaration;if((re==null?void 0:re.kind)===303){for(var T=0,N=V.referencedFiles;T<N.length;T++){var y=N[T];x.getSourceFileFromReference(V,y)===re&&Z.push({kind:"reference",referencingFile:V,ref:y})}for(var D=0,C=V.typeReferenceDirectives;D<C.length;D++){var y=C[D],m=x.getResolvedTypeReferenceDirectives().get(y.fileName);m!==void 0&&m.resolvedFileName===re.fileName&&Z.push({kind:"reference",referencingFile:V,ref:y})}}v(V,function(u,g){var P=ne.getSymbolAtLocation(g);P===q&&Z.push({kind:"import",literal:g})})}return Z}n.findModuleReferences=k;function J(x,O,q){for(var Z=new e.Map,ne=0,F=x;ne<F.length;ne++){var Q=F[ne];q&&q.throwIfCancellationRequested(),v(Q,function(V,re){var T=O.getSymbolAtLocation(re);if(T){var N=e.getSymbolId(T).toString(),y=Z.get(N);y||Z.set(N,y=[]),y.push(V)}})}return Z}function h(x,O){return e.forEach(x.kind===303?x.statements:x.body.statements,function(q){return O(q)||I(q)&&e.forEach(q.body&&q.body.statements,O)})}function v(x,O){if(x.externalModuleIndicator||x.imports!==void 0)for(var q=0,Z=x.imports;q<Z.length;q++){var ne=Z[q];O(e.importFromModuleSpecifier(ne),ne)}else h(x,function(F){switch(F.kind){case 271:case 265:{var Q=F;Q.moduleSpecifier&&e.isStringLiteral(Q.moduleSpecifier)&&O(Q,Q.moduleSpecifier);break}case 264:{var Q=F;w(Q)&&O(Q,Q.moduleReference.expression);break}}})}function A(x,O,q,Z){return Z?ne():ne()||F();function ne(){var re,T=x.parent,N=T.parent;if(O.exportSymbol)return T.kind===205?!((re=O.declarations)===null||re===void 0)&&re.some(function(u){return u===T})&&e.isBinaryExpression(N)?m(N,!1):void 0:Q(O.exportSymbol,V(T));var y=ie(T,x);if(y&&e.hasSyntacticModifier(y,1))if(e.isImportEqualsDeclaration(y)&&y.moduleReference===x){if(Z)return;var D=q.getSymbolAtLocation(y.name);return{kind:0,symbol:D}}else return Q(O,V(y));else{if(e.isNamespaceExport(T))return Q(O,0);if(e.isExportAssignment(T))return C(T);if(e.isExportAssignment(N))return C(N);if(e.isBinaryExpression(T))return m(T,!0);if(e.isBinaryExpression(N))return m(N,!0);if(e.isJSDocTypedefTag(T))return Q(O,0)}function C(u){if(u.symbol.parent){var g=u.isExportEquals?2:1;return{kind:1,symbol:O,exportInfo:{exportingModuleSymbol:u.symbol.parent,exportKind:g}}}}function m(u,g){var P;switch(e.getAssignmentDeclarationKind(u)){case 1:P=0;break;case 2:P=2;break;default:return}var te=g?q.getSymbolAtLocation(e.getNameOfAccessExpression(e.cast(u.left,e.isAccessExpression))):O;return te&&Q(te,P)}}function F(){var re=b(x);if(re){var T=q.getImmediateAliasedSymbol(O);if(T){T=S(T,q),T.escapedName==="export="&&(T=z(T,q));var N=e.symbolEscapedNameNoDefault(T);if(N===void 0||N==="default"||N===O.escapedName)return{kind:0,symbol:T}}}}function Q(re,T){var N=M(re,T,q);return N&&{kind:1,symbol:re,exportInfo:N}}function V(re){return e.hasSyntacticModifier(re,512)?1:0}}n.getImportOrExportSymbol=A;function z(x,O){if(x.flags&2097152)return e.Debug.checkDefined(O.getImmediateAliasedSymbol(x));var q=e.Debug.checkDefined(x.valueDeclaration);return e.isExportAssignment(q)?e.Debug.checkDefined(q.expression.symbol):e.isBinaryExpression(q)?e.Debug.checkDefined(q.right.symbol):e.isSourceFile(q)?e.Debug.checkDefined(q.symbol):e.Debug.fail()}function ie(x,O){var q=e.isVariableDeclaration(x)?x:e.isBindingElement(x)?e.walkUpBindingElementsAndPatterns(x):void 0;return q?x.name!==O||e.isCatchClause(q.parent)?void 0:e.isVariableStatement(q.parent.parent)?q.parent.parent:void 0:x}function b(x){var O=x.parent;switch(O.kind){case 264:return O.name===x&&w(O);case 269:return!O.propertyName;case 266:case 267:return e.Debug.assert(O.name===x),!0;case 202:return e.isInJSFile(x)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(O);default:return!1}}function M(x,O,q){var Z=x.parent;if(Z){var ne=q.getMergedSymbol(Z);return e.isExternalModuleSymbol(ne)?{exportingModuleSymbol:ne,exportKind:O}:void 0}}n.getExportInfo=M;function S(x,O){if(x.declarations)for(var q=0,Z=x.declarations;q<Z.length;q++){var ne=Z[q];if(e.isExportSpecifier(ne)&&!ne.propertyName&&!ne.parent.parent.moduleSpecifier)return O.getExportSpecifierLocalTargetSymbol(ne);if(e.isPropertyAccessExpression(ne)&&e.isModuleExportsAccessExpression(ne.expression)&&!e.isPrivateIdentifier(ne.name))return O.getSymbolAtLocation(ne);if(e.isShorthandPropertyAssignment(ne)&&e.isBinaryExpression(ne.parent.parent)&&e.getAssignmentDeclarationKind(ne.parent.parent)===2)return O.getExportSpecifierLocalTargetSymbol(ne.name)}return x}function B(x,O){return O.getMergedSymbol(H(x).symbol)}function H(x){if(x.kind===207)return x.getSourceFile();var O=x.parent;return O.kind===303?O:(e.Debug.assert(O.kind===261),e.cast(O.parent,I))}function I(x){return x.kind===260&&x.name.kind===10}function w(x){return x.moduleReference.kind===276&&x.moduleReference.expression.kind===10}})(e.FindAllReferences||(e.FindAllReferences={}))}(jr||(jr={})),function(e){(function(n){(function(T){T[T.Symbol=0]="Symbol",T[T.Label=1]="Label",T[T.Keyword=2]="Keyword",T[T.This=3]="This",T[T.String=4]="String",T[T.TripleSlashReference=5]="TripleSlashReference"})(n.DefinitionKind||(n.DefinitionKind={})),function(T){T[T.Span=0]="Span",T[T.Node=1]="Node",T[T.StringLiteral=2]="StringLiteral",T[T.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",T[T.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal"}(n.EntryKind||(n.EntryKind={}));function f(T,N){return N===void 0&&(N=1),{kind:N,node:T.name||T,context:a(T)}}n.nodeEntry=f;function p(T){return T&&T.kind===void 0}n.isContextWithStartAndEndNode=p;function a(T){if(e.isDeclaration(T))return d(T);if(T.parent){if(!e.isDeclaration(T.parent)&&!e.isExportAssignment(T.parent)){if(e.isInJSFile(T)){var N=e.isBinaryExpression(T.parent)?T.parent:e.isAccessExpression(T.parent)&&e.isBinaryExpression(T.parent.parent)&&T.parent.parent.left===T.parent?T.parent.parent:void 0;if(N&&e.getAssignmentDeclarationKind(N)!==0)return d(N)}if(e.isJsxOpeningElement(T.parent)||e.isJsxClosingElement(T.parent))return T.parent.parent;if(e.isJsxSelfClosingElement(T.parent)||e.isLabeledStatement(T.parent)||e.isBreakOrContinueStatement(T.parent))return T.parent;if(e.isStringLiteralLike(T)){var y=e.tryGetImportFromModuleSpecifier(T);if(y){var D=e.findAncestor(y,function(m){return e.isDeclaration(m)||e.isStatement(m)||e.isJSDocTag(m)});return e.isDeclaration(D)?d(D):D}}var C=e.findAncestor(T,e.isComputedPropertyName);return C?d(C.parent):void 0}if(T.parent.name===T||e.isConstructorDeclaration(T.parent)||e.isExportAssignment(T.parent)||(e.isImportOrExportSpecifier(T.parent)||e.isBindingElement(T.parent))&&T.parent.propertyName===T||T.kind===88&&e.hasSyntacticModifier(T.parent,513))return d(T.parent)}}function d(T){if(T)switch(T.kind){case 253:return!e.isVariableDeclarationList(T.parent)||T.parent.declarations.length!==1?T:e.isVariableStatement(T.parent.parent)?T.parent.parent:e.isForInOrOfStatement(T.parent.parent)?d(T.parent.parent):T.parent;case 202:return d(T.parent.parent);case 269:return T.parent.parent.parent;case 274:case 267:return T.parent.parent;case 266:case 273:return T.parent;case 220:return e.isExpressionStatement(T.parent)?T.parent:T;case 243:case 242:return{start:T.initializer,end:T.expression};case 294:case 295:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(T.parent)?d(e.findAncestor(T.parent,function(N){return e.isBinaryExpression(N)||e.isForInOrOfStatement(N)})):T;default:return T}}n.getContextNode=d;function k(T,N,y){if(y){var D=p(y)?Z(y.start,N,y.end):Z(y,N);return D.start!==T.start||D.length!==T.length?{contextSpan:D}:void 0}}n.toContextSpan=k,function(T){T[T.Other=0]="Other",T[T.References=1]="References",T[T.Rename=2]="Rename"}(n.FindReferencesUse||(n.FindReferencesUse={}));function J(T,N,y,D,C){var m=e.getTouchingPropertyName(D,C),u=re.getReferencedSymbolsForNode(C,m,T,y,N,{use:1}),g=T.getTypeChecker(),P=g.getSymbolAtLocation(m);return!u||!u.length?void 0:e.mapDefined(u,function(te){var ue=te.definition,X=te.references;return ue&&{definition:g.runWithCancellationToken(N,function(j){return b(ue,j,m)}),references:X.map(function(j){return H(j,P)})}})}n.findReferencedSymbols=J;function h(T,N,y,D,C){var m=e.getTouchingPropertyName(D,C),u,g=v(T,N,y,m,C);if(m.parent.kind===205||m.parent.kind===202||m.parent.kind===206||m.kind===106)u=g&&Gt([],g,!0);else for(var P=g&&Gt([],g,!0),te=new e.Map;P&&P.length;){var ue=P.shift();if(e.addToSeen(te,e.getNodeId(ue.node))){u=e.append(u,ue);var X=v(T,N,y,ue.node,ue.node.pos);X&&P.push.apply(P,X)}}var j=T.getTypeChecker();return e.map(u,function(Se){return x(Se,j)})}n.getImplementationsAtPosition=h;function v(T,N,y,D,C){if(D.kind!==303){var m=T.getTypeChecker();if(D.parent.kind===295){var u=[];return re.getReferenceEntriesForShorthandPropertyAssignment(D,m,function(P){return u.push(f(P))}),u}else if(D.kind===106||e.isSuperProperty(D.parent)){var g=m.getSymbolAtLocation(D);return g.valueDeclaration&&[f(g.valueDeclaration)]}else return z(C,D,T,y,N,{implementations:!0,use:1})}}function A(T,N,y,D,C,m,u){return e.map(ie(re.getReferencedSymbolsForNode(C,D,T,y,N,m)),function(g){return u(g,D,T.getTypeChecker())})}n.findReferenceOrRenameEntries=A;function z(T,N,y,D,C,m,u){return m===void 0&&(m={}),u===void 0&&(u=new e.Set(D.map(function(g){return g.fileName}))),ie(re.getReferencedSymbolsForNode(T,N,y,D,C,m,u))}n.getReferenceEntriesForNode=z;function ie(T){return T&&e.flatMap(T,function(N){return N.references})}function b(T,N,y){var D=function(){switch(T.type){case 0:{var ue=T.symbol,X=S(ue,N,y),j=X.displayParts,Se=X.kind,Ce=j.map(function(Te){return Te.text}).join(""),R=ue.declarations&&e.firstOrUndefined(ue.declarations),Y=R?e.getNameOfDeclaration(R)||R:y;return Rn(Rn({},M(Y)),{name:Ce,kind:Se,displayParts:j,context:d(R)})}case 1:{var Y=T.node;return Rn(Rn({},M(Y)),{name:Y.text,kind:"label",displayParts:[e.displayPart(Y.text,e.SymbolDisplayPartKind.text)]})}case 2:{var Y=T.node,U=e.tokenToString(Y.kind);return Rn(Rn({},M(Y)),{name:U,kind:"keyword",displayParts:[{text:U,kind:"keyword"}]})}case 3:{var Y=T.node,ue=N.getSymbolAtLocation(Y),K=ue&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(N,ue,Y.getSourceFile(),e.getContainerNode(Y),Y).displayParts||[e.textPart("this")];return Rn(Rn({},M(Y)),{name:"this",kind:"var",displayParts:K})}case 4:{var Y=T.node;return Rn(Rn({},M(Y)),{name:Y.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(Y),e.SymbolDisplayPartKind.stringLiteral)]})}case 5:return{textSpan:e.createTextSpanFromRange(T.reference),sourceFile:T.file,name:T.reference.fileName,kind:"string",displayParts:[e.displayPart('"'.concat(T.reference.fileName,'"'),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(T)}}(),C=D.sourceFile,m=D.textSpan,u=D.name,g=D.kind,P=D.displayParts,te=D.context;return Rn({containerKind:"",containerName:"",fileName:C.fileName,kind:g,name:u,textSpan:m,displayParts:P},k(m,C,te))}function M(T){var N=T.getSourceFile();return{sourceFile:N,textSpan:Z(e.isComputedPropertyName(T)?T.expression:T,N)}}function S(T,N,y){var D=re.getIntersectingMeaningFromDeclarations(y,T),C=T.declarations&&e.firstOrUndefined(T.declarations)||y,m=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(N,T,C.getSourceFile(),C,C,D),u=m.displayParts,g=m.symbolKind;return{displayParts:u,kind:g}}function B(T,N,y,D){return Rn(Rn({},I(T)),D&&w(T,N,y))}n.toRenameLocation=B;function H(T,N){var y=I(T);if(T.kind===0)return Rn(Rn({},y),{isWriteAccess:!1,isDefinition:!1});var D=T.kind,C=T.node;return Rn(Rn({},y),{isWriteAccess:F(C),isDefinition:Q(C,N),isInString:D===2?!0:void 0})}n.toReferenceEntry=H;function I(T){if(T.kind===0)return{textSpan:T.textSpan,fileName:T.fileName};var N=T.node.getSourceFile(),y=Z(T.node,N);return Rn({textSpan:y,fileName:N.fileName},k(y,N,T.context))}function w(T,N,y){if(T.kind!==0&&e.isIdentifier(N)){var D=T.node,C=T.kind,m=D.parent,u=N.text,g=e.isShorthandPropertyAssignment(m);if(g||e.isObjectBindingElementWithoutPropertyName(m)&&m.name===D&&m.dotDotDotToken===void 0){var P={prefixText:u+": "},te={suffixText:": "+u};if(C===3)return P;if(C===4)return te;if(g){var ue=m.parent;return e.isObjectLiteralExpression(ue)&&e.isBinaryExpression(ue.parent)&&e.isModuleExportsAccessExpression(ue.parent.left)?P:te}else return P}else if(e.isImportSpecifier(m)&&!m.propertyName){var X=e.isExportSpecifier(N.parent)?y.getExportSpecifierLocalTargetSymbol(N.parent):y.getSymbolAtLocation(N);return e.contains(X.declarations,m)?{prefixText:u+" as "}:e.emptyOptions}else if(e.isExportSpecifier(m)&&!m.propertyName)return N===T.node||y.getSymbolAtLocation(N)===y.getSymbolAtLocation(T.node)?{prefixText:u+" as "}:{suffixText:" as "+u}}return e.emptyOptions}function x(T,N){var y=I(T);if(T.kind!==0){var D=T.node;return Rn(Rn({},y),O(D,N))}else return Rn(Rn({},y),{kind:"",displayParts:[]})}function O(T,N){var y=N.getSymbolAtLocation(e.isDeclaration(T)&&T.name?T.name:T);return y?S(y,N,T):T.kind===204?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:T.kind===225?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(T),displayParts:[]}}function q(T){var N=I(T);if(T.kind===0)return{fileName:N.fileName,span:{textSpan:N.textSpan,kind:"reference"}};var y=F(T.node),D=Rn({textSpan:N.textSpan,kind:y?"writtenReference":"reference",isInString:T.kind===2?!0:void 0},N.contextSpan&&{contextSpan:N.contextSpan});return{fileName:N.fileName,span:D}}n.toHighlightSpan=q;function Z(T,N,y){var D=T.getStart(N),C=(y||T).getEnd();return e.isStringLiteralLike(T)&&(e.Debug.assert(y===void 0),D+=1,C-=1),e.createTextSpanFromBounds(D,C)}function ne(T){return T.kind===0?T.textSpan:Z(T.node,T.node.getSourceFile())}n.getTextSpanOfEntry=ne;function F(T){var N=e.getDeclarationFromName(T);return!!N&&V(N)||T.kind===88||e.isWriteAccess(T)}function Q(T,N){var y;if(!N)return!1;var D=e.getDeclarationFromName(T)||(T.kind===88?T.parent:e.isLiteralComputedPropertyDeclarationName(T)||T.kind===134&&e.isConstructorDeclaration(T.parent)?T.parent.parent:void 0),C=D&&e.isBinaryExpression(D)?D.left:void 0;return!!(D&&(!((y=N.declarations)===null||y===void 0)&&y.some(function(m){return m===D||m===C})))}function V(T){if(T.flags&8388608)return!0;switch(T.kind){case 220:case 202:case 256:case 225:case 88:case 259:case 297:case 274:case 266:case 264:case 269:case 257:case 336:case 343:case 284:case 260:case 263:case 267:case 273:case 163:case 295:case 258:case 162:return!0;case 294:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(T.parent);case 255:case 212:case 170:case 168:case 171:case 172:return!!T.body;case 253:case 166:return!!T.initializer||e.isCatchClause(T.parent);case 167:case 165:case 345:case 338:return!1;default:return e.Debug.failBadSyntaxKind(T)}}var re;(function(T){function N(Ee,We,$,Ne,me,Ze,Cr){var fr,dr;if(Ze===void 0&&(Ze={}),Cr===void 0&&(Cr=new e.Set(Ne.map(function(wt){return wt.fileName}))),Ze.use===1?We=e.getAdjustedReferenceLocation(We):Ze.use===2&&(We=e.getAdjustedRenameLocation(We)),e.isSourceFile(We)){var et=e.GoToDefinition.getReferenceAtPosition(We,Ee,$);if(!(et!=null&&et.file))return;var yt=$.getTypeChecker().getMergedSymbol(et.file.symbol);if(yt)return P($,yt,!1,Ne,Cr);var Vr=$.getFileIncludeReasons();return Vr?[{definition:{type:5,reference:et.reference,file:We},references:D(et.file,Vr,$)||e.emptyArray}]:void 0}if(!Ze.implementations){var tr=ue(We,Ne,me);if(tr)return tr}var xr=$.getTypeChecker(),Nr=xr.getSymbolAtLocation(e.isConstructorDeclaration(We)&&We.parent.name||We);if(!Nr){if(!Ze.implementations&&e.isStringLiteralLike(We)){if(e.isModuleSpecifierLike(We)){var Vr=$.getFileIncludeReasons(),zr=(dr=(fr=We.getSourceFile().resolvedModules)===null||fr===void 0?void 0:fr.get(We.text,e.getModeForUsageLocation(We.getSourceFile(),We)))===null||dr===void 0?void 0:dr.resolvedFileName,gt=zr?$.getSourceFile(zr):void 0;if(gt)return[{definition:{type:4,node:We},references:D(gt,Vr,$)||e.emptyArray}]}return tt(We,Ne,xr,me)}return}if(Nr.escapedName==="export=")return P($,Nr.parent,!1,Ne,Cr);var vt=m(Nr,$,Ne,me,Ze,Cr);if(vt&&!(Nr.flags&33554432))return vt;var ut=C(We,Nr,xr),ht=ut&&m(ut,$,Ne,me,Ze,Cr),xt=X(Nr,We,Ne,Cr,xr,me,Ze);return u($,vt,xt,ht)}T.getReferencedSymbolsForNode=N;function y(Ee,We,$,Ne){var me,Ze;Ne===void 0&&(Ne=new e.Set($.map(function(et){return et.fileName})));var Cr=(me=We.getSourceFile(Ee))===null||me===void 0?void 0:me.symbol;if(Cr)return((Ze=P(We,Cr,!1,$,Ne)[0])===null||Ze===void 0?void 0:Ze.references)||e.emptyArray;var fr=We.getFileIncludeReasons(),dr=We.getSourceFile(Ee);return dr&&fr&&D(dr,fr,We)||e.emptyArray}T.getReferencesForFileName=y;function D(Ee,We,$){for(var Ne,me=We.get(Ee.path)||e.emptyArray,Ze=0,Cr=me;Ze<Cr.length;Ze++){var fr=Cr[Ze];if(e.isReferencedFile(fr)){var dr=$.getSourceFileByPath(fr.file),et=e.getReferencedFileLocation($.getSourceFileByPath,fr);e.isReferenceFileLocation(et)&&(Ne=e.append(Ne,{kind:0,fileName:dr.fileName,textSpan:e.createTextSpanFromRange(et)}))}}return Ne}function C(Ee,We,$){if(Ee.parent&&e.isNamespaceExportDeclaration(Ee.parent)){var Ne=$.getAliasedSymbol(We),me=$.getMergedSymbol(Ne);if(Ne!==me)return me}}function m(Ee,We,$,Ne,me,Ze){var Cr=Ee.flags&1536&&Ee.declarations&&e.find(Ee.declarations,e.isSourceFile);if(Cr){var fr=Ee.exports.get("export="),dr=P(We,Ee,!!fr,$,Ze);if(!fr||!Ze.has(Cr.fileName))return dr;var et=We.getTypeChecker();return Ee=e.skipAlias(fr,et),u(We,dr,X(Ee,void 0,$,Ze,et,Ne,me))}}function u(Ee){for(var We=[],$=1;$<arguments.length;$++)We[$-1]=arguments[$];for(var Ne,me=0,Ze=We;me<Ze.length;me++){var Cr=Ze[me];if(!(!Cr||!Cr.length)){if(!Ne){Ne=Cr;continue}for(var fr=function(Vr){if(!Vr.definition||Vr.definition.type!==0)return Ne.push(Vr),"continue";var tr=Vr.definition.symbol,xr=e.findIndex(Ne,function(zr){return!!zr.definition&&zr.definition.type===0&&zr.definition.symbol===tr});if(xr===-1)return Ne.push(Vr),"continue";var Nr=Ne[xr];Ne[xr]={definition:Nr.definition,references:Nr.references.concat(Vr.references).sort(function(zr,gt){var vt=g(Ee,zr),ut=g(Ee,gt);if(vt!==ut)return e.compareValues(vt,ut);var ht=ne(zr),xt=ne(gt);return ht.start!==xt.start?e.compareValues(ht.start,xt.start):e.compareValues(ht.length,xt.length)})}},dr=0,et=Cr;dr<et.length;dr++){var yt=et[dr];fr(yt)}}}return Ne}function g(Ee,We){var $=We.kind===0?Ee.getSourceFile(We.fileName):We.node.getSourceFile();return Ee.getSourceFiles().indexOf($)}function P(Ee,We,$,Ne,me){e.Debug.assert(!!We.valueDeclaration);var Ze=e.mapDefined(n.findModuleReferences(Ee,Ne,We),function(Nr){if(Nr.kind==="import"){var zr=Nr.literal.parent;if(e.isLiteralTypeNode(zr)){var gt=e.cast(zr.parent,e.isImportTypeNode);if($&&!gt.qualifier)return}return f(Nr.literal)}else return{kind:0,fileName:Nr.referencingFile.fileName,textSpan:e.createTextSpanFromRange(Nr.ref)}});if(We.declarations)for(var Cr=0,fr=We.declarations;Cr<fr.length;Cr++){var dr=fr[Cr];switch(dr.kind){case 303:break;case 260:me.has(dr.getSourceFile().fileName)&&Ze.push(f(dr.name));break;default:e.Debug.assert(!!(We.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}var et=We.exports.get("export=");if(et!=null&&et.declarations)for(var yt=0,Vr=et.declarations;yt<Vr.length;yt++){var dr=Vr[yt],tr=dr.getSourceFile();if(me.has(tr.fileName)){var xr=e.isBinaryExpression(dr)&&e.isPropertyAccessExpression(dr.left)?dr.left.expression:e.isExportAssignment(dr)?e.Debug.checkDefined(e.findChildOfKind(dr,93,tr)):e.getNameOfDeclaration(dr)||dr;Ze.push(f(xr))}}return Ze.length?[{definition:{type:0,symbol:We},references:Ze}]:e.emptyArray}function te(Ee){return Ee.kind===144&&e.isTypeOperatorNode(Ee.parent)&&Ee.parent.operator===144}function ue(Ee,We,$){if(e.isTypeKeyword(Ee.kind))return Ee.kind===114&&e.isVoidExpression(Ee.parent)||Ee.kind===144&&!te(Ee)?void 0:De(We,Ee.kind,$,Ee.kind===144?te:void 0);if(e.isStaticModifier(Ee)&&e.isClassStaticBlockDeclaration(Ee.parent))return[{definition:{type:2,node:Ee},references:[f(Ee)]}];if(e.isJumpStatementTarget(Ee)){var Ne=e.getTargetLabel(Ee.parent,Ee.text);return Ne&&qe(Ne.parent,Ne)}else if(e.isLabelOfLabeledStatement(Ee))return qe(Ee.parent,Ee);if(e.isThis(Ee))return lt(Ee,We,$);if(Ee.kind===106)return Lr(Ee)}function X(Ee,We,$,Ne,me,Ze,Cr){var fr=We&&Ce(Ee,We,me,!je(Cr))||Ee,dr=We?ir(We,fr):7,et=[],yt=new U($,Ne,We?Se(We):0,me,Ze,dr,Cr,et),Vr=!je(Cr)||!fr.declarations?void 0:e.find(fr.declarations,e.isExportSpecifier);if(Vr)lr(Vr.name,fr,Vr,yt.createSearch(We,Ee,void 0),yt,!0,!0);else if(We&&We.kind===88&&fr.escapedName==="default"&&fr.parent)Hr(We,fr,yt),K(We,fr,{exportingModuleSymbol:fr.parent,exportKind:1},yt);else{var tr=yt.createSearch(We,fr,void 0,{allSearchSymbols:We?Rt(fr,We,me,Cr.use===2,!!Cr.providePrefixAndSuffixTextForRename,!!Cr.implementations):[fr]});j(fr,yt,tr)}return et}function j(Ee,We,$){var Ne=Ge(Ee);if(Ne)Ye(Ne,Ne.getSourceFile(),$,We,!(e.isSourceFile(Ne)&&!e.contains(We.sourceFiles,Ne)));else for(var me=0,Ze=We.sourceFiles;me<Ze.length;me++){var Cr=Ze[me];We.cancellationToken.throwIfCancellationRequested(),Pe(Cr,$,We)}}function Se(Ee){switch(Ee.kind){case 170:case 134:return 1;case 79:if(e.isClassLike(Ee.parent))return e.Debug.assert(Ee.parent.name===Ee),2;default:return 0}}function Ce(Ee,We,$,Ne){var me=We.parent;return e.isExportSpecifier(me)&&Ne?Ar(We,Ee,me,$):e.firstDefined(Ee.declarations,function(Ze){if(!Ze.parent){if(Ee.flags&33554432)return;e.Debug.fail("Unexpected symbol at ".concat(e.Debug.formatSyntaxKind(We.kind),": ").concat(e.Debug.formatSymbol(Ee)))}return e.isTypeLiteralNode(Ze.parent)&&e.isUnionTypeNode(Ze.parent.parent)?$.getPropertyOfType($.getTypeFromTypeNode(Ze.parent.parent),Ee.name):void 0})}var R;(function(Ee){Ee[Ee.None=0]="None",Ee[Ee.Constructor=1]="Constructor",Ee[Ee.Class=2]="Class"})(R||(R={}));function Y(Ee){if(Ee.flags&33555968){var We=Ee.declarations&&e.find(Ee.declarations,function($){return!e.isSourceFile($)&&!e.isModuleDeclaration($)});return We&&We.symbol}}var U=function(){function Ee(We,$,Ne,me,Ze,Cr,fr,dr){this.sourceFiles=We,this.sourceFilesSet=$,this.specialSearchKind=Ne,this.checker=me,this.cancellationToken=Ze,this.searchMeaning=Cr,this.options=fr,this.result=dr,this.inheritsFromCache=new e.Map,this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return Ee.prototype.includesSourceFile=function(We){return this.sourceFilesSet.has(We.fileName)},Ee.prototype.getImportSearches=function(We,$){return this.importTracker||(this.importTracker=n.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(We,$,this.options.use===2)},Ee.prototype.createSearch=function(We,$,Ne,me){me===void 0&&(me={});var Ze=me.text,Cr=Ze===void 0?e.stripQuotes(e.symbolName(e.getLocalSymbolForExportDefault($)||Y($)||$)):Ze,fr=me.allSearchSymbols,dr=fr===void 0?[$]:fr,et=e.escapeLeadingUnderscores(Cr),yt=this.options.implementations&&We?fe(We,$,this.checker):void 0;return{symbol:$,comingFrom:Ne,text:Cr,escapedText:et,parents:yt,allSearchSymbols:dr,includes:function(Vr){return e.contains(dr,Vr)}}},Ee.prototype.referenceAdder=function(We){var $=e.getSymbolId(We),Ne=this.symbolIdToReferences[$];return Ne||(Ne=this.symbolIdToReferences[$]=[],this.result.push({definition:{type:0,symbol:We},references:Ne})),function(me,Ze){return Ne.push(f(me,Ze))}},Ee.prototype.addStringOrCommentReference=function(We,$){this.result.push({definition:void 0,references:[{kind:0,fileName:We,textSpan:$}]})},Ee.prototype.markSearchedSymbols=function(We,$){for(var Ne=e.getNodeId(We),me=this.sourceFileToSeenSymbols[Ne]||(this.sourceFileToSeenSymbols[Ne]=new e.Set),Ze=!1,Cr=0,fr=$;Cr<fr.length;Cr++){var dr=fr[Cr];Ze=e.tryAddToSet(me,e.getSymbolId(dr))||Ze}return Ze},Ee}();function K(Ee,We,$,Ne){var me=Ne.getImportSearches(We,$),Ze=me.importSearches,Cr=me.singleReferences,fr=me.indirectUsers;if(Cr.length)for(var dr=Ne.referenceAdder(We),et=0,yt=Cr;et<yt.length;et++){var Vr=yt[et];ge(Vr,Ne)&&dr(Vr)}for(var tr=0,xr=Ze;tr<xr.length;tr++){var Nr=xr[tr],zr=Nr[0],gt=Nr[1];Ae(zr.getSourceFile(),Ne.createSearch(zr,gt,1),Ne)}if(fr.length){var vt=void 0;switch($.exportKind){case 0:vt=Ne.createSearch(Ee,We,1);break;case 1:vt=Ne.options.use===2?void 0:Ne.createSearch(Ee,We,1,{text:"default"});break}if(vt)for(var ut=0,ht=fr;ut<ht.length;ut++){var xt=ht[ut];Pe(xt,vt,Ne)}}}function Te(Ee,We,$,Ne,me,Ze,Cr,fr){for(var dr=n.createImportTracker(Ee,new e.Set(Ee.map(function(mt){return mt.fileName})),We,$),et=dr(Ne,{exportKind:Cr?1:0,exportingModuleSymbol:me},!1),yt=et.importSearches,Vr=et.indirectUsers,tr=0,xr=yt;tr<xr.length;tr++){var Nr=xr[tr][0];fr(Nr)}for(var zr=0,gt=Vr;zr<gt.length;zr++)for(var vt=gt[zr],ut=0,ht=_e(vt,Cr?"default":Ze);ut<ht.length;ut++){var xt=ht[ut],wt=We.getSymbolAtLocation(xt),Qt=e.some(wt==null?void 0:wt.declarations,function(mt){return!!e.tryCast(mt,e.isExportAssignment)});e.isIdentifier(xt)&&!e.isImportOrExportSpecifier(xt.parent)&&(wt===Ne||Qt)&&fr(xt)}}T.eachExportReference=Te;function ge(Ee,We){return Dr(Ee,We)?We.options.use!==2?!0:e.isIdentifier(Ee)?!(e.isImportOrExportSpecifier(Ee.parent)&&Ee.escapedText==="default"):!1:!1}function ke(Ee,We){if(Ee.declarations)for(var $=0,Ne=Ee.declarations;$<Ne.length;$++){var me=Ne[$],Ze=me.getSourceFile();Ae(Ze,We.createSearch(me,Ee,0),We,We.includesSourceFile(Ze))}}function Pe(Ee,We,$){e.getNameTable(Ee).get(We.escapedText)!==void 0&&Ae(Ee,We,$)}function Ie(Ee,We){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(Ee.parent.parent)?We.getPropertySymbolOfDestructuringAssignment(Ee):void 0}function Ge(Ee){var We=Ee.declarations,$=Ee.flags,Ne=Ee.parent,me=Ee.valueDeclaration;if(me&&(me.kind===212||me.kind===225))return me;if(We){if($&8196){var Ze=e.find(We,function(xr){return e.hasEffectiveModifier(xr,8)||e.isPrivateIdentifierClassElementDeclaration(xr)});return Ze?e.getAncestor(Ze,256):void 0}if(!We.some(e.isObjectBindingElementWithoutPropertyName)){var Cr=Ne&&!(Ee.flags&262144);if(!(Cr&&!(e.isExternalModuleSymbol(Ne)&&!Ne.globalExports))){for(var fr,dr=0,et=We;dr<et.length;dr++){var yt=et[dr],Vr=e.getContainerNode(yt);if(fr&&fr!==Vr||!Vr||Vr.kind===303&&!e.isExternalOrCommonJsModule(Vr))return;if(fr=Vr,e.isFunctionExpression(fr))for(var tr=void 0;tr=e.getNextJSDocCommentLocation(fr);)fr=tr}return Cr?fr.getSourceFile():fr}}}}function he(Ee,We,$,Ne){return Ne===void 0&&(Ne=$),ve(Ee,We,$,function(){return!0},Ne)||!1}T.isSymbolReferencedInFile=he;function ve(Ee,We,$,Ne,me){me===void 0&&(me=$);var Ze=e.isParameterPropertyDeclaration(Ee.parent,Ee.parent.parent)?e.first(We.getSymbolsOfParameterPropertyDeclaration(Ee.parent,Ee.text)):We.getSymbolAtLocation(Ee);if(Ze)for(var Cr=0,fr=_e($,Ze.name,me);Cr<fr.length;Cr++){var dr=fr[Cr];if(!(!e.isIdentifier(dr)||dr===Ee||dr.escapedText!==Ee.escapedText)){var et=We.getSymbolAtLocation(dr);if(et===Ze||We.getShorthandAssignmentValueSymbol(dr.parent)===Ze||e.isExportSpecifier(dr.parent)&&Ar(dr,et,dr.parent,We)===Ze){var yt=Ne(dr);if(yt)return yt}}}}T.eachSymbolReferenceInFile=ve;function Ve(Ee,We,$,Ne){if(!Ee.name||!e.isIdentifier(Ee.name))return!1;for(var me=e.Debug.checkDefined($.getSymbolAtLocation(Ee.name)),Ze=0,Cr=We;Ze<Cr.length;Ze++)for(var fr=Cr[Ze],dr=0,et=_e(fr,me.name);dr<et.length;dr++){var yt=et[dr];if(!(!e.isIdentifier(yt)||yt===Ee.name||yt.escapedText!==Ee.name.escapedText)){var Vr=e.climbPastPropertyAccess(yt),tr=e.isCallExpression(Vr.parent)&&Vr.parent.expression===Vr?Vr.parent:void 0,xr=$.getSymbolAtLocation(yt);if(xr&&$.getRootSymbols(xr).some(function(Nr){return Nr===me})&&Ne(yt,tr))return!0}}return!1}T.someSignatureUsage=Ve;function _e(Ee,We,$){return $===void 0&&($=Ee),Le(Ee,We,$).map(function(Ne){return e.getTouchingPropertyName(Ee,Ne)})}function Le(Ee,We,$){$===void 0&&($=Ee);var Ne=[];if(!We||!We.length)return Ne;for(var me=Ee.text,Ze=me.length,Cr=We.length,fr=me.indexOf(We,$.pos);fr>=0&&!(fr>$.end);){var dr=fr+Cr;(fr===0||!e.isIdentifierPart(me.charCodeAt(fr-1),99))&&(dr===Ze||!e.isIdentifierPart(me.charCodeAt(dr),99))&&Ne.push(fr),fr=me.indexOf(We,fr+Cr+1)}return Ne}function qe(Ee,We){var $=Ee.getSourceFile(),Ne=We.text,me=e.mapDefined(_e($,Ne,Ee),function(Ze){return Ze===We||e.isJumpStatementTarget(Ze)&&e.getTargetLabel(Ze,Ne)===We?f(Ze):void 0});return[{definition:{type:1,node:We},references:me}]}function Xe(Ee,We){switch(Ee.kind){case 80:if(e.isJSDocMemberName(Ee.parent))return!0;case 79:return Ee.text.length===We.length;case 14:case 10:{var $=Ee;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess($)||e.isNameOfModuleDeclaration(Ee)||e.isExpressionOfExternalModuleImportEqualsDeclaration(Ee)||e.isCallExpression(Ee.parent)&&e.isBindableObjectDefinePropertyCall(Ee.parent)&&Ee.parent.arguments[1]===Ee)&&$.text.length===We.length}case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(Ee)&&Ee.text.length===We.length;case 88:return We.length===7;default:return!1}}function De(Ee,We,$,Ne){var me=e.flatMap(Ee,function(Ze){return $.throwIfCancellationRequested(),e.mapDefined(_e(Ze,e.tokenToString(We),Ze),function(Cr){if(Cr.kind===We&&(!Ne||Ne(Cr)))return f(Cr)})});return me.length?[{definition:{type:2,node:me[0].node},references:me}]:void 0}function Ae(Ee,We,$,Ne){return Ne===void 0&&(Ne=!0),$.cancellationToken.throwIfCancellationRequested(),Ye(Ee,Ee,We,$,Ne)}function Ye(Ee,We,$,Ne,me){if(Ne.markSearchedSymbols(We,$.allSearchSymbols))for(var Ze=0,Cr=Le(We,$.text,Ee);Ze<Cr.length;Ze++){var fr=Cr[Ze];br(We,fr,$,Ne,me)}}function Dr(Ee,We){return!!(e.getMeaningFromLocation(Ee)&We.searchMeaning)}function br(Ee,We,$,Ne,me){var Ze=e.getTouchingPropertyName(Ee,We);if(!Xe(Ze,$.text)){!Ne.options.implementations&&(Ne.options.findInStrings&&e.isInString(Ee,We)||Ne.options.findInComments&&e.isInNonReferenceComment(Ee,We))&&Ne.addStringOrCommentReference(Ee.fileName,e.createTextSpan(We,$.text.length));return}if(Dr(Ze,Ne)){var Cr=Ne.checker.getSymbolAtLocation(Ze);if(Cr){var fr=Ze.parent;if(!(e.isImportSpecifier(fr)&&fr.propertyName===Ze)){if(e.isExportSpecifier(fr)){e.Debug.assert(Ze.kind===79),lr(Ze,Cr,fr,$,Ne,me);return}var dr=zn($,Cr,Ze,Ne);if(!dr){Me(Cr,$,Ne);return}switch(Ne.specialSearchKind){case 0:me&&Hr(Ze,dr,Ne);break;case 1:ur(Ze,Ee,$,Ne);break;case 2:gr(Ze,$,Ne);break;default:e.Debug.assertNever(Ne.specialSearchKind)}e.isInJSFile(Ze)&&Ze.parent.kind===202&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(Ze.parent)&&(Cr=Ze.parent.symbol,!Cr)||Ke(Ze,Cr,$,Ne)}}}}function lr(Ee,We,$,Ne,me,Ze,Cr){e.Debug.assert(!Cr||!!me.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var fr=$.parent,dr=$.propertyName,et=$.name,yt=fr.parent,Vr=Ar(Ee,We,$,me.checker);if(!Cr&&!Ne.includes(Vr))return;if(dr?Ee===dr?(yt.moduleSpecifier||vt(),Ze&&me.options.use!==2&&me.markSeenReExportRHS(et)&&Hr(et,e.Debug.checkDefined($.symbol),me)):me.markSeenReExportRHS(Ee)&&vt():me.options.use===2&&et.escapedText==="default"||vt(),!je(me.options)||Cr){var tr=Ee.originalKeywordKind===88||$.name.originalKeywordKind===88,xr=tr?1:0,Nr=e.Debug.checkDefined($.symbol),zr=n.getExportInfo(Nr,xr,me.checker);zr&&K(Ee,Nr,zr,me)}if(Ne.comingFrom!==1&&yt.moduleSpecifier&&!dr&&!je(me.options)){var gt=me.checker.getExportSpecifierLocalTargetSymbol($);gt&&ke(gt,me)}function vt(){Ze&&Hr(Ee,Vr,me)}}function Ar(Ee,We,$,Ne){return kr(Ee,$)&&Ne.getExportSpecifierLocalTargetSymbol($)||We}function kr(Ee,We){var $=We.parent,Ne=We.propertyName,me=We.name;return e.Debug.assert(Ne===Ee||me===Ee),Ne?Ne===Ee:!$.parent.moduleSpecifier}function Ke(Ee,We,$,Ne){var me=n.getImportOrExportSymbol(Ee,We,Ne.checker,$.comingFrom===1);if(me){var Ze=me.symbol;me.kind===0?je(Ne.options)||ke(Ze,Ne):K(Ee,Ze,me.exportInfo,Ne)}}function Me(Ee,We,$){var Ne=Ee.flags,me=Ee.valueDeclaration,Ze=$.checker.getShorthandAssignmentValueSymbol(me),Cr=me&&e.getNameOfDeclaration(me);!(Ne&33554432)&&Cr&&We.includes(Ze)&&Hr(Cr,Ze,$)}function Hr(Ee,We,$){var Ne="kind"in We?We:{kind:void 0,symbol:We},me=Ne.kind,Ze=Ne.symbol,Cr=$.referenceAdder(Ze);$.options.implementations?He(Ee,Cr,$):Cr(Ee,me)}function ur(Ee,We,$,Ne){e.isNewExpressionTarget(Ee)&&Hr(Ee,$.symbol,Ne);var me=function(){return Ne.referenceAdder($.symbol)};if(e.isClassLike(Ee.parent))e.Debug.assert(Ee.kind===88||Ee.parent.name===Ee),de($.symbol,We,me());else{var Ze=or(Ee);Ze&&($e(Ze,me()),Pr(Ze,Ne))}}function gr(Ee,We,$){Hr(Ee,We.symbol,$);var Ne=Ee.parent;if(!($.options.use===2||!e.isClassLike(Ne))){e.Debug.assert(Ne.name===Ee);for(var me=$.referenceAdder(We.symbol),Ze=0,Cr=Ne.members;Ze<Cr.length;Ze++){var fr=Cr[Ze];e.isMethodOrAccessor(fr)&&e.isStatic(fr)&&fr.body&&fr.body.forEachChild(function dr(et){et.kind===108?me(et):!e.isFunctionLike(et)&&!e.isClassLike(et)&&et.forEachChild(dr)})}}}function de(Ee,We,$){var Ne=Fe(Ee);if(Ne&&Ne.declarations)for(var me=0,Ze=Ne.declarations;me<Ze.length;me++){var Cr=Ze[me],fr=e.findChildOfKind(Cr,134,We);e.Debug.assert(Cr.kind===170&&!!fr),$(fr)}Ee.exports&&Ee.exports.forEach(function(dr){var et=dr.valueDeclaration;if(et&&et.kind===168){var yt=et.body;yt&&ye(yt,108,function(Vr){e.isNewExpressionTarget(Vr)&&$(Vr)})}})}function Fe(Ee){return Ee.members&&Ee.members.get("__constructor")}function $e(Ee,We){var $=Fe(Ee.symbol);if($&&$.declarations)for(var Ne=0,me=$.declarations;Ne<me.length;Ne++){var Ze=me[Ne];e.Debug.assert(Ze.kind===170);var Cr=Ze.body;Cr&&ye(Cr,106,function(fr){e.isCallExpressionTarget(fr)&&We(fr)})}}function Sr(Ee){return!!Fe(Ee.symbol)}function Pr(Ee,We){if(!Sr(Ee)){var $=Ee.symbol,Ne=We.createSearch(void 0,$,void 0);j($,We,Ne)}}function He(Ee,We,$){if(e.isDeclarationName(Ee)&&Or(Ee.parent)){We(Ee);return}if(Ee.kind!==79)return;Ee.parent.kind===295&&sr(Ee,$.checker,We);var Ne=pr(Ee);if(Ne){We(Ne);return}var me=e.findAncestor(Ee,function(dr){return!e.isQualifiedName(dr.parent)&&!e.isTypeNode(dr.parent)&&!e.isTypeElement(dr.parent)}),Ze=me.parent;if(e.hasType(Ze)&&Ze.type===me&&$.markSeenContainingTypeReference(Ze))if(e.hasInitializer(Ze))fr(Ze.initializer);else if(e.isFunctionLike(Ze)&&Ze.body){var Cr=Ze.body;Cr.kind===234?e.forEachReturnStatement(Cr,function(dr){dr.expression&&fr(dr.expression)}):fr(Cr)}else e.isAssertionExpression(Ze)&&fr(Ze.expression);function fr(dr){Jr(dr)&&We(dr)}}function pr(Ee){return e.isIdentifier(Ee)||e.isPropertyAccessExpression(Ee)?pr(Ee.parent):e.isExpressionWithTypeArguments(Ee)?e.tryCast(Ee.parent.parent,e.isClassLike):void 0}function Jr(Ee){switch(Ee.kind){case 211:return Jr(Ee.expression);case 213:case 212:case 204:case 225:case 203:return!0;default:return!1}}function ze(Ee,We,$,Ne){if(Ee===We)return!0;var me=e.getSymbolId(Ee)+","+e.getSymbolId(We),Ze=$.get(me);if(Ze!==void 0)return Ze;$.set(me,!1);var Cr=!!Ee.declarations&&Ee.declarations.some(function(fr){return e.getAllSuperTypeNodes(fr).some(function(dr){var et=Ne.getTypeAtLocation(dr);return!!et&&!!et.symbol&&ze(et.symbol,We,$,Ne)})});return $.set(me,Cr),Cr}function Lr(Ee){var We=e.getSuperContainer(Ee,!1);if(We){var $=32;switch(We.kind){case 166:case 165:case 168:case 167:case 170:case 171:case 172:$&=e.getSyntacticModifierFlags(We),We=We.parent;break;default:return}var Ne=We.getSourceFile(),me=e.mapDefined(_e(Ne,"super",We),function(Ze){if(Ze.kind===106){var Cr=e.getSuperContainer(Ze,!1);return Cr&&e.isStatic(Cr)===!!$&&Cr.parent.symbol===We.symbol?f(Ze):void 0}});return[{definition:{type:0,symbol:We.symbol},references:me}]}}function Yr(Ee){return Ee.kind===79&&Ee.parent.kind===163&&Ee.parent.name===Ee}function lt(Ee,We,$){var Ne=e.getThisContainer(Ee,!1),me=32;switch(Ne.kind){case 168:case 167:if(e.isObjectLiteralMethod(Ne)){me&=e.getSyntacticModifierFlags(Ne),Ne=Ne.parent;break}case 166:case 165:case 170:case 171:case 172:me&=e.getSyntacticModifierFlags(Ne),Ne=Ne.parent;break;case 303:if(e.isExternalModule(Ne)||Yr(Ee))return;case 255:case 212:break;default:return}var Ze=e.flatMap(Ne.kind===303?We:[Ne.getSourceFile()],function(fr){return $.throwIfCancellationRequested(),_e(fr,"this",e.isSourceFile(Ne)?fr:Ne).filter(function(dr){if(!e.isThis(dr))return!1;var et=e.getThisContainer(dr,!1);switch(Ne.kind){case 212:case 255:return Ne.symbol===et.symbol;case 168:case 167:return e.isObjectLiteralMethod(Ne)&&Ne.symbol===et.symbol;case 225:case 256:case 204:return et.parent&&Ne.symbol===et.parent.symbol&&e.isStatic(et)===!!me;case 303:return et.kind===303&&!e.isExternalModule(et)&&!Yr(dr)}})}).map(function(fr){return f(fr)}),Cr=e.firstDefined(Ze,function(fr){return e.isParameter(fr.node.parent)?fr.node:void 0});return[{definition:{type:3,node:Cr||Ee},references:Ze}]}function tt(Ee,We,$,Ne){var me=e.getContextualTypeFromParentOrAncestorTypeNode(Ee,$),Ze=e.flatMap(We,function(Cr){return Ne.throwIfCancellationRequested(),e.mapDefined(_e(Cr,Ee.text),function(fr){if(e.isStringLiteralLike(fr)&&fr.text===Ee.text)if(me){var dr=e.getContextualTypeFromParentOrAncestorTypeNode(fr,$);if(me!==$.getStringType()&&me===dr)return f(fr,2)}else return f(fr,2)})});return[{definition:{type:4,node:Ee},references:Ze}]}function Rt(Ee,We,$,Ne,me,Ze){var Cr=[];return cn(Ee,We,$,Ne,!(Ne&&me),function(fr,dr,et){et&&In(Ee)!==In(et)&&(et=void 0),Cr.push(et||dr||fr)},function(){return!Ze}),Cr}function cn(Ee,We,$,Ne,me,Ze,Cr){var fr=e.getContainingObjectLiteralElement(We);if(fr){var dr=$.getShorthandAssignmentValueSymbol(We.parent);if(dr&&Ne)return Ze(dr,void 0,void 0,3);var et=$.getContextualType(fr.parent),yt=et&&e.firstDefined(e.getPropertySymbolsFromContextualType(fr,$,et,!0),function(sa){return mt(sa,4)});if(yt)return yt;var Vr=Ie(We,$),tr=Vr&&Ze(Vr,void 0,void 0,4);if(tr)return tr;var xr=dr&&Ze(dr,void 0,void 0,3);if(xr)return xr}var Nr=C(We,Ee,$);if(Nr){var zr=Ze(Nr,void 0,void 0,1);if(zr)return zr}var gt=mt(Ee);if(gt)return gt;if(Ee.valueDeclaration&&e.isParameterPropertyDeclaration(Ee.valueDeclaration,Ee.valueDeclaration.parent)){var vt=$.getSymbolsOfParameterPropertyDeclaration(e.cast(Ee.valueDeclaration,e.isParameter),Ee.name);return e.Debug.assert(vt.length===2&&!!(vt[0].flags&1)&&!!(vt[1].flags&4)),mt(Ee.flags&1?vt[1]:vt[0])}var ut=e.getDeclarationOfKind(Ee,274);if(!Ne||ut&&!ut.propertyName){var ht=ut&&$.getExportSpecifierLocalTargetSymbol(ut);if(ht){var xt=Ze(ht,void 0,void 0,1);if(xt)return xt}}if(!Ne){var wt=void 0;return me?wt=e.isObjectBindingElementWithoutPropertyName(We.parent)?e.getPropertySymbolFromBindingElement($,We.parent):void 0:wt=rn(Ee,$),wt&&mt(wt,4)}e.Debug.assert(Ne);var Qt=me;if(Qt){var wt=rn(Ee,$);return wt&&mt(wt,4)}function mt(sa,ba){return e.firstDefined($.getRootSymbols(sa),function(Jn){return Ze(sa,Jn,void 0,ba)||(Jn.parent&&Jn.parent.flags&96&&Cr(Jn)?bn(Jn.parent,Jn.name,$,function(na){return Ze(sa,Jn,na,ba)}):void 0)})}function rn(sa,ba){var Jn=e.getDeclarationOfKind(sa,202);if(Jn&&e.isObjectBindingElementWithoutPropertyName(Jn))return e.getPropertySymbolFromBindingElement(ba,Jn)}}function bn(Ee,We,$,Ne){var me=new e.Map;return Ze(Ee);function Ze(Cr){if(!(!(Cr.flags&96)||!e.addToSeen(me,e.getSymbolId(Cr))))return e.firstDefined(Cr.declarations,function(fr){return e.firstDefined(e.getAllSuperTypeNodes(fr),function(dr){var et=$.getTypeAtLocation(dr),yt=et&&et.symbol&&$.getPropertyOfType(et,We);return et&&yt&&(e.firstDefined($.getRootSymbols(yt),Ne)||Ze(et.symbol))})})}}function In(Ee){if(!Ee.valueDeclaration)return!1;var We=e.getEffectiveModifierFlags(Ee.valueDeclaration);return!!(We&32)}function zn(Ee,We,$,Ne){var me=Ne.checker;return cn(We,$,me,!1,Ne.options.use!==2||!!Ne.options.providePrefixAndSuffixTextForRename,function(Ze,Cr,fr,dr){return fr&&In(We)!==In(fr)&&(fr=void 0),Ee.includes(fr||Cr||Ze)?{symbol:Cr&&!(e.getCheckFlags(Ze)&6)?Cr:Ze,kind:dr}:void 0},function(Ze){return!(Ee.parents&&!Ee.parents.some(function(Cr){return ze(Ze.parent,Cr,Ne.inheritsFromCache,me)}))})}function ir(Ee,We){var $=e.getMeaningFromLocation(Ee),Ne=We.declarations;if(Ne){var me=void 0;do{me=$;for(var Ze=0,Cr=Ne;Ze<Cr.length;Ze++){var fr=Cr[Ze],dr=e.getMeaningFromDeclaration(fr);dr&$&&($|=dr)}}while($!==me)}return $}T.getIntersectingMeaningFromDeclarations=ir;function Or(Ee){return Ee.flags&8388608?!(e.isInterfaceDeclaration(Ee)||e.isTypeAliasDeclaration(Ee)):e.isVariableLike(Ee)?e.hasInitializer(Ee):e.isFunctionLikeDeclaration(Ee)?!!Ee.body:e.isClassLike(Ee)||e.isModuleOrEnumDeclaration(Ee)}function sr(Ee,We,$){var Ne=We.getSymbolAtLocation(Ee),me=We.getShorthandAssignmentValueSymbol(Ne.valueDeclaration);if(me)for(var Ze=0,Cr=me.getDeclarations();Ze<Cr.length;Ze++){var fr=Cr[Ze];e.getMeaningFromDeclaration(fr)&1&&$(fr)}}T.getReferenceEntriesForShorthandPropertyAssignment=sr;function ye(Ee,We,$){e.forEachChild(Ee,function(Ne){Ne.kind===We&&$(Ne),ye(Ne,We,$)})}function or(Ee){return e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(Ee).parent)}function fe(Ee,We,$){var Ne=e.isRightSideOfPropertyAccess(Ee)?Ee.parent:void 0,me=Ne&&$.getTypeAtLocation(Ne.expression),Ze=e.mapDefined(me&&(me.isUnionOrIntersection()?me.types:me.symbol===We.parent?void 0:[me]),function(Cr){return Cr.symbol&&Cr.symbol.flags&96?Cr.symbol:void 0});return Ze.length===0?void 0:Ze}function je(Ee){return Ee.use===2&&Ee.providePrefixAndSuffixTextForRename}})(re=n.Core||(n.Core={}))})(e.FindAllReferences||(e.FindAllReferences={}))}(jr||(jr={})),function(e){(function(n){function f(D){return(e.isFunctionExpression(D)||e.isClassExpression(D))&&e.isNamedDeclaration(D)}function p(D){return(e.isFunctionExpression(D)||e.isArrowFunction(D)||e.isClassExpression(D))&&e.isVariableDeclaration(D.parent)&&D===D.parent.initializer&&e.isIdentifier(D.parent.name)&&!!(e.getCombinedNodeFlags(D.parent)&2)}function a(D){return e.isSourceFile(D)||e.isModuleDeclaration(D)||e.isFunctionDeclaration(D)||e.isFunctionExpression(D)||e.isClassDeclaration(D)||e.isClassExpression(D)||e.isClassStaticBlockDeclaration(D)||e.isMethodDeclaration(D)||e.isMethodSignature(D)||e.isGetAccessorDeclaration(D)||e.isSetAccessorDeclaration(D)}function d(D){return e.isSourceFile(D)||e.isModuleDeclaration(D)&&e.isIdentifier(D.name)||e.isFunctionDeclaration(D)||e.isClassDeclaration(D)||e.isClassStaticBlockDeclaration(D)||e.isMethodDeclaration(D)||e.isMethodSignature(D)||e.isGetAccessorDeclaration(D)||e.isSetAccessorDeclaration(D)||f(D)||p(D)}function k(D){return e.isSourceFile(D)?D:e.isNamedDeclaration(D)?D.name:p(D)?D.parent.name:e.Debug.checkDefined(D.modifiers&&e.find(D.modifiers,J))}function J(D){return D.kind===88}function h(D,C){var m=k(C);return m&&D.getSymbolAtLocation(m)}function v(D,C){if(e.isSourceFile(C))return{text:C.fileName,pos:0,end:0};if((e.isFunctionDeclaration(C)||e.isClassDeclaration(C))&&!e.isNamedDeclaration(C)){var m=C.modifiers&&e.find(C.modifiers,J);if(m)return{text:"default",pos:m.getStart(),end:m.getEnd()}}if(e.isClassStaticBlockDeclaration(C)){var u=C.getSourceFile(),g=e.skipTrivia(u.text,e.moveRangePastModifiers(C).pos),P=g+6,te=D.getTypeChecker(),ue=te.getSymbolAtLocation(C.parent),X=ue?"".concat(te.symbolToString(ue,C.parent)," "):"";return{text:"".concat(X,"static {}"),pos:g,end:P}}var j=p(C)?C.parent.name:e.Debug.checkDefined(e.getNameOfDeclaration(C),"Expected call hierarchy item to have a name"),Se=e.isIdentifier(j)?e.idText(j):e.isStringOrNumericLiteralLike(j)?j.text:e.isComputedPropertyName(j)&&e.isStringOrNumericLiteralLike(j.expression)?j.expression.text:void 0;if(Se===void 0){var te=D.getTypeChecker(),ue=te.getSymbolAtLocation(j);ue&&(Se=te.symbolToString(ue,C))}if(Se===void 0){var Ce=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0});Se=e.usingSingleLineStringWriter(function(R){return Ce.writeNode(4,C,C.getSourceFile(),R)})}return{text:Se,pos:j.getStart(),end:j.getEnd()}}function A(D){var C,m;if(p(D))return e.isModuleBlock(D.parent.parent.parent.parent)&&e.isIdentifier(D.parent.parent.parent.parent.parent.name)?D.parent.parent.parent.parent.parent.name.getText():void 0;switch(D.kind){case 171:case 172:case 168:return D.parent.kind===204?(C=e.getAssignedName(D.parent))===null||C===void 0?void 0:C.getText():(m=e.getNameOfDeclaration(D.parent))===null||m===void 0?void 0:m.getText();case 255:case 256:case 260:if(e.isModuleBlock(D.parent)&&e.isIdentifier(D.parent.parent.name))return D.parent.parent.name.getText()}}function z(D,C){if(C.body)return C;if(e.isConstructorDeclaration(C))return e.getFirstConstructorWithBody(C.parent);if(e.isFunctionDeclaration(C)||e.isMethodDeclaration(C)){var m=h(D,C);return m&&m.valueDeclaration&&e.isFunctionLikeDeclaration(m.valueDeclaration)&&m.valueDeclaration.body?m.valueDeclaration:void 0}return C}function ie(D,C){var m=h(D,C),u;if(m&&m.declarations){var g=e.indicesOf(m.declarations),P=e.map(m.declarations,function(Ce){return{file:Ce.getSourceFile().fileName,pos:Ce.pos}});g.sort(function(Ce,R){return e.compareStringsCaseSensitive(P[Ce].file,P[R].file)||P[Ce].pos-P[R].pos});for(var te=e.map(g,function(Ce){return m.declarations[Ce]}),ue=void 0,X=0,j=te;X<j.length;X++){var Se=j[X];d(Se)&&((!ue||ue.parent!==Se.parent||ue.end!==Se.pos)&&(u=e.append(u,Se)),ue=Se)}}return u}function b(D,C){var m,u,g;return e.isClassStaticBlockDeclaration(C)?C:e.isFunctionLikeDeclaration(C)?(u=(m=z(D,C))!==null&&m!==void 0?m:ie(D,C))!==null&&u!==void 0?u:C:(g=ie(D,C))!==null&&g!==void 0?g:C}function M(D,C){for(var m=D.getTypeChecker(),u=!1;;){if(d(C))return b(m,C);if(a(C)){var g=e.findAncestor(C,d);return g&&b(m,g)}if(e.isDeclarationName(C)){if(d(C.parent))return b(m,C.parent);if(a(C.parent)){var g=e.findAncestor(C.parent,d);return g&&b(m,g)}return e.isVariableDeclaration(C.parent)&&C.parent.initializer&&p(C.parent.initializer)?C.parent.initializer:void 0}if(e.isConstructorDeclaration(C))return d(C.parent)?C.parent:void 0;if(C.kind===124&&e.isClassStaticBlockDeclaration(C.parent)){C=C.parent;continue}if(e.isVariableDeclaration(C)&&C.initializer&&p(C.initializer))return C.initializer;if(!u){var P=m.getSymbolAtLocation(C);if(P&&(P.flags&2097152&&(P=m.getAliasedSymbol(P)),P.valueDeclaration)){u=!0,C=P.valueDeclaration;continue}}return}}n.resolveCallHierarchyDeclaration=M;function S(D,C){var m=C.getSourceFile(),u=v(D,C),g=A(C),P=e.getNodeKind(C),te=e.getNodeModifiers(C),ue=e.createTextSpanFromBounds(e.skipTrivia(m.text,C.getFullStart(),!1,!0),C.getEnd()),X=e.createTextSpanFromBounds(u.pos,u.end);return{file:m.fileName,kind:P,kindModifiers:te,name:u.text,containerName:g,span:ue,selectionSpan:X}}n.createCallHierarchyItem=S;function B(D){return D!==void 0}function H(D){if(D.kind===1){var C=D.node;if(e.isCallOrNewExpressionTarget(C,!0,!0)||e.isTaggedTemplateTag(C,!0,!0)||e.isDecoratorTarget(C,!0,!0)||e.isJsxOpeningLikeElementTagName(C,!0,!0)||e.isRightSideOfPropertyAccess(C)||e.isArgumentExpressionOfElementAccess(C)){var m=C.getSourceFile(),u=e.findAncestor(C,d)||m;return{declaration:u,range:e.createTextRangeFromNode(C,m)}}}}function I(D){return e.getNodeId(D.declaration)}function w(D,C){return{from:D,fromSpans:C}}function x(D,C){return w(S(D,C[0].declaration),e.map(C,function(m){return e.createTextSpanFromRange(m.range)}))}function O(D,C,m){if(e.isSourceFile(C)||e.isModuleDeclaration(C)||e.isClassStaticBlockDeclaration(C))return[];var u=k(C),g=e.filter(e.FindAllReferences.findReferenceOrRenameEntries(D,m,D.getSourceFiles(),u,0,{use:1},H),B);return g?e.group(g,I,function(P){return x(D,P)}):[]}n.getIncomingCalls=O;function q(D,C){function m(g){var P=e.isTaggedTemplateExpression(g)?g.tag:e.isJsxOpeningLikeElement(g)?g.tagName:e.isAccessExpression(g)||e.isClassStaticBlockDeclaration(g)?g:g.expression,te=M(D,P);if(te){var ue=e.createTextRangeFromNode(P,g.getSourceFile());if(e.isArray(te))for(var X=0,j=te;X<j.length;X++){var Se=j[X];C.push({declaration:Se,range:ue})}else C.push({declaration:te,range:ue})}}function u(g){if(g&&!(g.flags&8388608)){if(d(g)){if(e.isClassLike(g))for(var P=0,te=g.members;P<te.length;P++){var ue=te[P];ue.name&&e.isComputedPropertyName(ue.name)&&u(ue.name.expression)}return}switch(g.kind){case 79:case 264:case 265:case 271:case 257:case 258:return;case 169:m(g);return;case 210:case 228:u(g.expression);return;case 253:case 163:u(g.name),u(g.initializer);return;case 207:m(g),u(g.expression),e.forEach(g.arguments,u);return;case 208:m(g),u(g.expression),e.forEach(g.arguments,u);return;case 209:m(g),u(g.tag),u(g.template);return;case 279:case 278:m(g),u(g.tagName),u(g.attributes);return;case 164:m(g),u(g.expression);return;case 205:case 206:m(g),e.forEachChild(g,u);break}e.isPartOfTypeNode(g)||e.forEachChild(g,u)}}return u}function Z(D,C){e.forEach(D.statements,C)}function ne(D,C){!e.hasSyntacticModifier(D,2)&&D.body&&e.isModuleBlock(D.body)&&e.forEach(D.body.statements,C)}function F(D,C,m){var u=z(D,C);u&&(e.forEach(u.parameters,m),m(u.body))}function Q(D,C){C(D.body)}function V(D,C){e.forEach(D.decorators,C);var m=e.getClassExtendsHeritageElement(D);m&&C(m.expression);for(var u=0,g=D.members;u<g.length;u++){var P=g[u];e.forEach(P.decorators,C),e.isPropertyDeclaration(P)?C(P.initializer):e.isConstructorDeclaration(P)&&P.body?(e.forEach(P.parameters,C),C(P.body)):e.isClassStaticBlockDeclaration(P)&&C(P)}}function re(D,C){var m=[],u=q(D,m);switch(C.kind){case 303:Z(C,u);break;case 260:ne(C,u);break;case 255:case 212:case 213:case 168:case 171:case 172:F(D.getTypeChecker(),C,u);break;case 256:case 225:V(C,u);break;case 169:Q(C,u);break;default:e.Debug.assertNever(C)}return m}function T(D,C){return{to:D,fromSpans:C}}function N(D,C){return T(S(D,C[0].declaration),e.map(C,function(m){return e.createTextSpanFromRange(m.range)}))}function y(D,C){return C.flags&8388608||e.isMethodSignature(C)?[]:e.group(re(D,C),I,function(m){return N(D,m)})}n.getOutgoingCalls=y})(e.CallHierarchy||(e.CallHierarchy={}))}(jr||(jr={})),function(e){function n(b,M,S,B,H,I,w){var x=e.hostUsesCaseSensitiveFileNames(B),O=e.createGetCanonicalFileName(x),q=f(M,S,O,w),Z=f(S,M,O,w);return e.textChanges.ChangeTracker.with({host:B,formatContext:H,preferences:I},function(ne){a(b,ne,q,M,S,B.getCurrentDirectory(),x),d(b,ne,q,Z,B,O)})}e.getEditsForFileRename=n;function f(b,M,S,B){var H=S(b);return function(w){var x=B&&B.tryGetSourcePosition({fileName:w,pos:0}),O=I(x?x.fileName:w);return x?O===void 0?void 0:p(x.fileName,O,w,S):O};function I(w){if(S(w)===H)return M;var x=e.tryRemoveDirectoryPrefix(w,H,S);return x===void 0?void 0:M+"/"+x}}e.getPathUpdater=f;function p(b,M,S,B){var H=e.getRelativePathFromFile(b,M,B);return J(e.getDirectoryPath(S),H)}function a(b,M,S,B,H,I,w){var x=b.getCompilerOptions().configFile;if(!x)return;var O=e.getDirectoryPath(x.fileName),q=e.getTsConfigObjectLiteralExpression(x);if(!q)return;ie(q,function(Q,V){switch(V){case"files":case"include":case"exclude":{var re=Z(Q);if(re||V!=="include"||!e.isArrayLiteralExpression(Q.initializer))return;var T=e.mapDefined(Q.initializer.elements,function(y){return e.isStringLiteral(y)?y.text:void 0});if(T.length===0)return;var N=e.getFileMatcherPatterns(O,[],T,w,I);e.getRegexFromPattern(e.Debug.checkDefined(N.includeFilePattern),w).test(B)&&!e.getRegexFromPattern(e.Debug.checkDefined(N.includeFilePattern),w).test(H)&&M.insertNodeAfter(x,e.last(Q.initializer.elements),e.factory.createStringLiteral(F(H)));return}case"compilerOptions":ie(Q.initializer,function(y,D){var C=e.getOptionFromName(D);C&&(C.isFilePath||C.type==="list"&&C.element.isFilePath)?Z(y):D==="paths"&&ie(y.initializer,function(m){if(e.isArrayLiteralExpression(m.initializer))for(var u=0,g=m.initializer.elements;u<g.length;u++){var P=g[u];ne(P)}})});return}});function Z(Q){for(var V=e.isArrayLiteralExpression(Q.initializer)?Q.initializer.elements:[Q.initializer],re=!1,T=0,N=V;T<N.length;T++){var y=N[T];re=ne(y)||re}return re}function ne(Q){if(!e.isStringLiteral(Q))return!1;var V=J(O,Q.text),re=S(V);return re!==void 0?(M.replaceRangeWithText(x,z(Q,x),F(re)),!0):!1}function F(Q){return e.getRelativePathFromDirectory(O,Q,!w)}}function d(b,M,S,B,H,I){for(var w=b.getSourceFiles(),x=function(ne){var F=S(ne.fileName),Q=F??ne.fileName,V=e.getDirectoryPath(Q),re=B(ne.fileName),T=re||ne.fileName,N=e.getDirectoryPath(T),y=F!==void 0||re!==void 0;A(ne,M,function(D){if(e.pathIsRelative(D)){var C=J(N,D),m=S(C);return m===void 0?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(V,m,I))}},function(D){var C=b.getTypeChecker().getSymbolAtLocation(D);if(!(C!=null&&C.declarations&&C.declarations.some(function(u){return e.isAmbientModule(u)}))){var m=re!==void 0?v(D,e.resolveModuleName(D.text,T,b.getCompilerOptions(),H),S,w):h(C,D,ne,b,H,S);return m!==void 0&&(m.updated||y&&e.pathIsRelative(D.text))?e.moduleSpecifiers.updateModuleSpecifier(b.getCompilerOptions(),I(Q),m.newFileName,e.createModuleSpecifierResolutionHost(b,H),D.text):void 0}})},O=0,q=w;O<q.length;O++){var Z=q[O];x(Z)}}function k(b,M){return e.normalizePath(e.combinePaths(b,M))}function J(b,M){return e.ensurePathIsNonModuleName(k(b,M))}function h(b,M,S,B,H,I){if(b){var w=e.find(b.declarations,e.isSourceFile).fileName,x=I(w);return x===void 0?{newFileName:w,updated:!1}:{newFileName:x,updated:!0}}else{var O=e.getModeForUsageLocation(S,M),q=H.resolveModuleNames?H.getResolvedModuleWithFailedLookupLocationsFromCache&&H.getResolvedModuleWithFailedLookupLocationsFromCache(M.text,S.fileName,O):B.getResolvedModuleWithFailedLookupLocationsFromCache(M.text,S.fileName,O);return v(M,q,I,B.getSourceFiles())}}function v(b,M,S,B){if(!M)return;if(M.resolvedModule){var H=O(M.resolvedModule.resolvedFileName);if(H)return H}var I=e.forEach(M.failedLookupLocations,w)||e.pathIsRelative(b.text)&&e.forEach(M.failedLookupLocations,x);if(I)return I;return M.resolvedModule&&{newFileName:M.resolvedModule.resolvedFileName,updated:!1};function w(q){var Z=S(q);return Z&&e.find(B,function(ne){return ne.fileName===Z})?x(q):void 0}function x(q){return e.endsWith(q,"/package.json")?void 0:O(q)}function O(q){var Z=S(q);return Z&&{newFileName:Z,updated:!0}}}function A(b,M,S,B){for(var H=0,I=b.referencedFiles||e.emptyArray;H<I.length;H++){var w=I[H],x=S(w.fileName);x!==void 0&&x!==b.text.slice(w.pos,w.end)&&M.replaceRangeWithText(b,w,x)}for(var O=0,q=b.imports;O<q.length;O++){var Z=q[O],x=B(Z);x!==void 0&&x!==Z.text&&M.replaceRangeWithText(b,z(Z,b),x)}}function z(b,M){return e.createRange(b.getStart(M)+1,b.end-1)}function ie(b,M){if(e.isObjectLiteralExpression(b))for(var S=0,B=b.properties;S<B.length;S++){var H=B[S];e.isPropertyAssignment(H)&&e.isStringLiteral(H.name)&&M(H,H.name.text)}}}(jr||(jr={})),function(e){(function(n){function f(ne,F,Q){var V=k(F,Q,ne),re=V&&[x(V.reference.fileName,V.fileName,V.unverified)]||e.emptyArray;if(V!=null&&V.file)return re;var T=e.getTouchingPropertyName(F,Q);if(T!==F){var N=T.parent,y=ne.getTypeChecker();if(T.kind===158||e.isJSDocOverrideTag(T)&&e.rangeContainsPosition(T.tagName,Q))return d(y,T)||e.emptyArray;if(e.isJumpStatementTarget(T)){var D=e.getTargetLabel(T.parent,T.text);return D?[B(y,D,"label",T.text,void 0)]:void 0}if(e.isStaticModifier(T)&&e.isClassStaticBlockDeclaration(T.parent)){var C=T.parent.parent,m=ie(C,y),u=e.filter(C.members,e.isClassStaticBlockDeclaration),g=m?y.symbolToString(m,C):"",P=T.getSourceFile();return e.map(u,function(U){var K=e.moveRangePastModifiers(U).pos;return K=e.skipTrivia(P.text,K),B(y,U,"constructor","static {}",g,{start:K,length:6})})}var te=ie(T,y);if(!te)return e.concatenate(re,z(T,y));var ue=q(y,T);if(ue&&!(e.isJsxOpeningLikeElement(T.parent)&&Z(ue))){var X=I(y,ue);if(y.getRootSymbols(te).some(function(U){return p(U,ue)}))return[X];var j=M(y,te,T,ue)||e.emptyArray;return T.kind===106?Gt([X],j,!0):Gt(Gt([],j,!0),[X],!1)}if(T.parent.kind===295){var Se=y.getShorthandAssignmentValueSymbol(te.valueDeclaration),Ce=Se!=null&&Se.declarations?Se.declarations.map(function(U){return S(U,y,Se,T)}):e.emptyArray;return e.concatenate(Ce,a(y,T)||e.emptyArray)}if(e.isPropertyName(T)&&e.isBindingElement(N)&&e.isObjectBindingPattern(N.parent)&&T===(N.propertyName||N.name)){var R=e.getNameFromPropertyName(T),Y=y.getTypeAtLocation(N.parent);return R===void 0?e.emptyArray:e.flatMap(Y.isUnion()?Y.types:[Y],function(U){var K=U.getProperty(R);return K&&M(y,K,T)})}return e.concatenate(re,a(y,T)||M(y,te,T))}}n.getDefinitionAtPosition=f;function p(ne,F){return ne===F.symbol||ne===F.symbol.parent||e.isAssignmentExpression(F.parent)||!e.isCallLikeExpression(F.parent)&&ne===F.parent.symbol}function a(ne,F){var Q=e.getContainingObjectLiteralElement(F);if(Q){var V=Q&&ne.getContextualType(Q.parent);if(V)return e.flatMap(e.getPropertySymbolsFromContextualType(Q,ne,V,!1),function(re){return M(ne,re,F)})}}function d(ne,F){var Q=e.findAncestor(F,e.isClassElement);if(Q&&Q.name){var V=e.findAncestor(Q,e.isClassLike);if(V){var re=e.getEffectiveBaseTypeNode(V),T=re?ne.getTypeAtLocation(re):void 0;if(T){var N=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(Q.name)),y=e.hasStaticModifier(Q)?ne.getPropertyOfType(ne.getTypeOfSymbolAtLocation(T.symbol,V),N):ne.getPropertyOfType(T,N);if(y)return M(ne,y,F)}}}}function k(ne,F,Q){var V,re,T=w(ne.referencedFiles,F);if(T){var N=Q.getSourceFileFromReference(ne,T);return N&&{reference:T,fileName:N.fileName,file:N,unverified:!1}}var y=w(ne.typeReferenceDirectives,F);if(y){var D=Q.getResolvedTypeReferenceDirectives().get(y.fileName),N=D&&Q.getSourceFile(D.resolvedFileName);return N&&{reference:y,fileName:N.fileName,file:N,unverified:!1}}var C=w(ne.libReferenceDirectives,F);if(C){var N=Q.getLibFileFromReference(C);return N&&{reference:C,fileName:N.fileName,file:N,unverified:!1}}if(!((V=ne.resolvedModules)===null||V===void 0)&&V.size()){var m=e.getTokenAtPosition(ne,F);if(e.isModuleSpecifierLike(m)&&e.isExternalModuleNameRelative(m.text)&&ne.resolvedModules.has(m.text,e.getModeForUsageLocation(ne,m))){var u=(re=ne.resolvedModules.get(m.text,e.getModeForUsageLocation(ne,m)))===null||re===void 0?void 0:re.resolvedFileName,g=u||e.resolvePath(e.getDirectoryPath(ne.fileName),m.text);return{file:Q.getSourceFile(g),fileName:g,reference:{pos:m.getStart(),end:m.getEnd(),fileName:m.text},unverified:!u}}}}n.getReferenceAtPosition=k;function J(ne,F,Q){var V=e.getTouchingPropertyName(F,Q);if(V!==F){var re=ne.getSymbolAtLocation(V);if(re){var T=ne.getTypeOfSymbolAtLocation(re,V),N=v(re,T,ne),y=N&&h(N,ne,V);return y&&y.length!==0?y:h(T,ne,V)}}}n.getTypeDefinitionAtPosition=J;function h(ne,F,Q){return e.flatMap(ne.isUnion()&&!(ne.flags&32)?ne.types:[ne],function(V){return V.symbol&&M(F,V.symbol,Q)})}function v(ne,F,Q){if(F.symbol===ne||ne.valueDeclaration&&F.symbol&&e.isVariableDeclaration(ne.valueDeclaration)&&ne.valueDeclaration.initializer===F.symbol.valueDeclaration){var V=F.getCallSignatures();if(V.length===1)return Q.getReturnTypeOfSignature(e.first(V))}}function A(ne,F,Q){var V=f(ne,F,Q);if(!(!V||V.length===0)){var re=w(F.referencedFiles,Q)||w(F.typeReferenceDirectives,Q)||w(F.libReferenceDirectives,Q);if(re)return{definitions:V,textSpan:e.createTextSpanFromRange(re)};var T=e.getTouchingPropertyName(F,Q),N=e.createTextSpan(T.getStart(),T.getWidth());return{definitions:V,textSpan:N}}}n.getDefinitionAndBoundSpan=A;function z(ne,F){return e.mapDefined(F.getIndexInfosAtLocation(ne),function(Q){return Q.declaration&&I(F,Q.declaration)})}function ie(ne,F){var Q=F.getSymbolAtLocation(ne);if(Q!=null&&Q.declarations&&Q.flags&2097152&&b(ne,Q.declarations[0])){var V=F.getAliasedSymbol(Q);if(V.declarations)return V}return Q}function b(ne,F){if(ne.kind!==79)return!1;if(ne.parent===F)return!0;switch(F.kind){case 266:case 264:return!0;case 269:return F.parent.kind===268;case 202:case 253:return e.isInJSFile(F)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(F);default:return!1}}function M(ne,F,Q,V){var re=e.filter(F.declarations,function(D){return D!==V&&(!e.isAssignmentDeclaration(D)||D===F.valueDeclaration)})||void 0;return T()||N()||e.map(re,function(D){return S(D,ne,F,Q)});function T(){if(F.flags&32&&!(F.flags&19)&&(e.isNewExpressionTarget(Q)||Q.kind===134)){var D=e.find(re,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration");return y(D.members,!0)}}function N(){return e.isCallOrNewExpressionTarget(Q)||e.isNameOfFunctionDeclaration(Q)?y(re,!1):void 0}function y(D,C){if(D){var m=D.filter(C?e.isConstructorDeclaration:e.isFunctionLike),u=m.filter(function(g){return!!g.body});return m.length?u.length!==0?u.map(function(g){return S(g,ne,F,Q)}):[S(e.last(m),ne,F,Q)]:void 0}}}function S(ne,F,Q,V){var re=F.symbolToString(Q),T=e.SymbolDisplay.getSymbolKind(F,Q,V),N=Q.parent?F.symbolToString(Q.parent,V):"";return B(F,ne,T,re,N)}function B(ne,F,Q,V,re,T){var N=F.getSourceFile();if(!T){var y=e.getNameOfDeclaration(F)||F;T=e.createTextSpanFromNode(y,N)}return Rn(Rn({fileName:N.fileName,textSpan:T,kind:Q,name:V,containerKind:void 0,containerName:re},e.FindAllReferences.toContextSpan(T,N,e.FindAllReferences.getContextNode(F))),{isLocal:!H(ne,F)})}function H(ne,F){if(ne.isDeclarationVisible(F))return!0;if(!F.parent)return!1;if(e.hasInitializer(F.parent)&&F.parent.initializer===F)return H(ne,F.parent);switch(F.kind){case 166:case 171:case 172:case 168:if(e.hasEffectiveModifier(F,8))return!1;case 170:case 294:case 295:case 204:case 225:case 213:case 212:return H(ne,F.parent);default:return!1}}function I(ne,F){return S(F,ne,F.symbol,F)}function w(ne,F){return e.find(ne,function(Q){return e.textRangeContainsPositionInclusive(Q,F)})}n.findReferenceInPosition=w;function x(ne,F,Q){return{fileName:F,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:ne,containerName:void 0,containerKind:void 0,unverified:Q}}function O(ne){var F=e.findAncestor(ne,function(V){return!e.isRightSideOfPropertyAccess(V)}),Q=F==null?void 0:F.parent;return Q&&e.isCallLikeExpression(Q)&&e.getInvokedExpression(Q)===F?Q:void 0}function q(ne,F){var Q=O(F),V=Q&&ne.getResolvedSignature(Q);return e.tryCast(V&&V.declaration,function(re){return e.isFunctionLike(re)&&!e.isFunctionTypeNode(re)})}function Z(ne){switch(ne.kind){case 170:case 179:case 174:return!0;default:return!1}}})(e.GoToDefinition||(e.GoToDefinition={}))}(jr||(jr={})),function(e){(function(n){var f=["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","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],p,a;function d(F,Q){var V=[];return e.forEachUnique(F,function(re){for(var T=0,N=J(re);T<N.length;T++){var y=N[T];if(!(y.comment===void 0||e.isJSDoc(y)&&re.kind!==343&&re.kind!==336&&y.tags&&y.tags.some(function(C){return C.kind===343||C.kind===336})&&!y.tags.some(function(C){return C.kind===338||C.kind===339}))){var D=v(y.comment,Q);e.contains(V,D,k)||V.push(D)}}}),e.flatten(e.intersperse(V,[e.lineBreakPart()]))}n.getJsDocCommentsFromDeclarations=d;function k(F,Q){return e.arraysEqual(F,Q,function(V,re){return V.kind===re.kind&&V.text===re.text})}function J(F){switch(F.kind){case 338:case 345:return[F];case 336:case 343:return[F,F.parent];default:return e.getJSDocCommentsAndTags(F)}}function h(F,Q){var V=[];return e.forEachUnique(F,function(re){var T=e.getJSDocTags(re);if(!(T.some(function(C){return C.kind===343||C.kind===336})&&!T.some(function(C){return C.kind===338||C.kind===339})))for(var N=0,y=T;N<y.length;N++){var D=y[N];V.push({name:D.tagName.text,text:A(D,Q)})}}),V}n.getJsDocTagsFromDeclarations=h;function v(F,Q){return typeof F=="string"?[e.textPart(F)]:e.flatMap(F,function(V){return V.kind===319?[e.textPart(V.text)]:e.buildLinkParts(V,Q)})}function A(F,Q){var V=F.comment,re=F.kind,T=z(re);switch(re){case 327:return y(F.class);case 326:return y(F.class);case 342:return D(F.typeParameters.map(function(C){return C.getText()}).join(", "));case 341:return y(F.typeExpression);case 343:case 336:case 345:case 338:case 344:var N=F.name;return N?y(N):V===void 0?void 0:v(V,Q);default:return V===void 0?void 0:v(V,Q)}function y(C){return D(C.getText())}function D(C){return V?C.match(/^https?$/)?Gt([e.textPart(C)],v(V,Q),!0):Gt([T(C),e.spacePart()],v(V,Q),!0):[e.textPart(C)]}}function z(F){switch(F){case 338:return e.parameterNamePart;case 345:return e.propertyNamePart;case 342:return e.typeParameterNamePart;case 343:case 336:return e.typeAliasNamePart;default:return e.textPart}}function ie(){return p||(p=e.map(f,function(F){return{name:F,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}))}n.getJSDocTagNameCompletions=ie,n.getJSDocTagNameCompletionDetails=M;function b(){return a||(a=e.map(f,function(F){return{name:"@".concat(F),kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}))}n.getJSDocTagCompletions=b;function M(F){return{name:F,kind:"",kindModifiers:"",displayParts:[e.textPart(F)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}n.getJSDocTagCompletionDetails=M;function S(F){if(!e.isIdentifier(F.name))return e.emptyArray;var Q=F.name.text,V=F.parent,re=V.parent;return e.isFunctionLike(re)?e.mapDefined(re.parameters,function(T){if(e.isIdentifier(T.name)){var N=T.name.text;if(!(V.tags.some(function(y){return y!==F&&e.isJSDocParameterTag(y)&&e.isIdentifier(y.name)&&y.name.escapedText===N})||Q!==void 0&&!e.startsWith(N,Q)))return{name:N,kind:"parameter",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}}):[]}n.getJSDocParameterNameCompletions=S;function B(F){return{name:F,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(F)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}n.getJSDocParameterNameCompletionDetails=B;function H(F,Q,V,re){var T=e.getTokenAtPosition(Q,V),N=e.findAncestor(T,e.isJSDoc);if(!(N&&(N.comment!==void 0||e.length(N.tags)))){var y=T.getStart(Q);if(!(!N&&y<V)){var D=O(T,re);if(D){var C=D.commentOwner,m=D.parameters,u=D.hasReturn;if(!(C.getStart(Q)<V)){var g=I(Q,V),P=e.hasJSFileExtension(Q.fileName),te=(m?w(m||[],P,g,F):"")+(u?x(g,F):""),ue="/**",X=" */";if(te){var j=ue+F+g+" * ",Se=y===V?F+g:"",Ce=j+F+te+g+X+Se;return{newText:Ce,caretOffset:j.length}}return{newText:ue+X,caretOffset:3}}}}}}n.getDocCommentTemplateAtPosition=H;function I(F,Q){for(var V=F.text,re=e.getLineStartPositionForPosition(Q,F),T=re;T<=Q&&e.isWhiteSpaceSingleLine(V.charCodeAt(T));T++);return V.slice(re,T)}function w(F,Q,V,re){return F.map(function(T,N){var y=T.name,D=T.dotDotDotToken,C=y.kind===79?y.text:"param"+N,m=Q?D?"{...any} ":"{any} ":"";return"".concat(V," * @param ").concat(m).concat(C).concat(re)}).join("")}function x(F,Q){return"".concat(F," * @returns").concat(Q)}function O(F,Q){return e.forEachAncestor(F,function(V){return q(V,Q)})}function q(F,Q){switch(F.kind){case 255:case 212:case 168:case 170:case 167:case 213:var V=F;return{commentOwner:F,parameters:V.parameters,hasReturn:Z(V,Q)};case 294:return q(F.initializer,Q);case 256:case 257:case 165:case 259:case 297:case 258:return{commentOwner:F};case 236:{var re=F,T=re.declarationList.declarations,N=T.length===1&&T[0].initializer?ne(T[0].initializer):void 0;return N?{commentOwner:F,parameters:N.parameters,hasReturn:Z(N,Q)}:{commentOwner:F}}case 303:return"quit";case 260:return F.parent.kind===260?void 0:{commentOwner:F};case 237:return q(F.expression,Q);case 220:{var y=F;return e.getAssignmentDeclarationKind(y)===0?"quit":e.isFunctionLike(y.right)?{commentOwner:F,parameters:y.right.parameters,hasReturn:Z(y.right,Q)}:{commentOwner:F}}case 166:var D=F.initializer;if(D&&(e.isFunctionExpression(D)||e.isArrowFunction(D)))return{commentOwner:F,parameters:D.parameters,hasReturn:Z(D,Q)}}}function Z(F,Q){return!!(Q!=null&&Q.generateReturnInDocTemplate)&&(e.isArrowFunction(F)&&e.isExpression(F.body)||e.isFunctionLikeDeclaration(F)&&F.body&&e.isBlock(F.body)&&!!e.forEachReturnStatement(F.body,function(V){return V}))}function ne(F){for(;F.kind===211;)F=F.expression;switch(F.kind){case 212:case 213:return F;case 225:return e.find(F.members,e.isConstructorDeclaration)}}})(e.JsDoc||(e.JsDoc={}))}(jr||(jr={})),function(e){(function(n){function f(z,ie,b,M,S,B){var H=e.createPatternMatcher(M);if(!H)return e.emptyArray;for(var I=[],w=function(Z){if(b.throwIfCancellationRequested(),B&&Z.isDeclarationFile)return"continue";Z.getNamedDeclarations().forEach(function(ne,F){p(H,F,ne,ie,Z.fileName,I)})},x=0,O=z;x<O.length;x++){var q=O[x];w(q)}return I.sort(v),(S===void 0?I:I.slice(0,S)).map(A)}n.getNavigateToItems=f;function p(z,ie,b,M,S,B){var H=z.getMatchForLastSegmentOfPattern(ie);if(H)for(var I=0,w=b;I<w.length;I++){var x=w[I];if(a(x,M))if(z.patternContainsDots){var O=z.getFullMatch(h(x),ie);O&&B.push({name:ie,fileName:S,matchKind:O.kind,isCaseSensitive:O.isCaseSensitive,declaration:x})}else B.push({name:ie,fileName:S,matchKind:H.kind,isCaseSensitive:H.isCaseSensitive,declaration:x})}}function a(z,ie){switch(z.kind){case 266:case 269:case 264:var b=ie.getSymbolAtLocation(z.name),M=ie.getAliasedSymbol(b);return b.escapedName!==M.escapedName;default:return!0}}function d(z,ie){var b=e.getNameOfDeclaration(z);return!!b&&(J(b,ie)||b.kind===161&&k(b.expression,ie))}function k(z,ie){return J(z,ie)||e.isPropertyAccessExpression(z)&&(ie.push(z.name.text),!0)&&k(z.expression,ie)}function J(z,ie){return e.isPropertyNameLiteral(z)&&(ie.push(e.getTextOfIdentifierOrLiteral(z)),!0)}function h(z){var ie=[],b=e.getNameOfDeclaration(z);if(b&&b.kind===161&&!k(b.expression,ie))return e.emptyArray;ie.shift();for(var M=e.getContainerNode(z);M;){if(!d(M,ie))return e.emptyArray;M=e.getContainerNode(M)}return ie.reverse()}function v(z,ie){return e.compareValues(z.matchKind,ie.matchKind)||e.compareStringsCaseSensitiveUI(z.name,ie.name)}function A(z){var ie=z.declaration,b=e.getContainerNode(ie),M=b&&e.getNameOfDeclaration(b);return{name:z.name,kind:e.getNodeKind(ie),kindModifiers:e.getNodeModifiers(ie),matchKind:e.PatternMatchKind[z.matchKind],isCaseSensitive:z.isCaseSensitive,fileName:z.fileName,textSpan:e.createTextSpanFromNode(ie),containerName:M?M.text:"",containerKind:M?e.getNodeKind(b):""}}})(e.NavigateTo||(e.NavigateTo={}))}(jr||(jr={})),function(e){(function(n){var f,p=/\s+/g,a=150,d,k,J=[],h,v=[],A,z=[];function ie(_e,Le){d=Le,k=_e;try{return e.map(Ce(I(_e)),Y)}finally{M()}}n.getNavigationBarItems=ie;function b(_e,Le){d=Le,k=_e;try{return R(I(_e))}finally{M()}}n.getNavigationTree=b;function M(){k=void 0,d=void 0,J=[],h=void 0,z=[]}function S(_e){return Ve(_e.getText(k))}function B(_e){return _e.node.kind}function H(_e,Le){_e.children?_e.children.push(Le):_e.children=[Le]}function I(_e){e.Debug.assert(!J.length);var Le={node:_e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};h=Le;for(var qe=0,Xe=_e.statements;qe<Xe.length;qe++){var De=Xe[qe];T(De)}return F(),e.Debug.assert(!h&&!J.length),Le}function w(_e,Le){H(h,x(_e,Le))}function x(_e,Le){return{node:_e,name:Le||(e.isDeclaration(_e)||e.isExpression(_e)?e.getNameOfDeclaration(_e):void 0),additionalNodes:void 0,parent:h,children:void 0,indent:h.indent+1}}function O(_e){A||(A=new e.Map),A.set(_e,!0)}function q(_e){for(var Le=0;Le<_e;Le++)F()}function Z(_e,Le){for(var qe=[];!e.isPropertyNameLiteral(Le);){var Xe=e.getNameOrArgument(Le),De=e.getElementOrPropertyAccessName(Le);Le=Le.expression,!(De==="prototype"||e.isPrivateIdentifier(Xe))&&qe.push(Xe)}qe.push(Le);for(var Ae=qe.length-1;Ae>0;Ae--){var Xe=qe[Ae];ne(_e,Xe)}return[qe.length-1,qe[0]]}function ne(_e,Le){var qe=x(_e,Le);H(h,qe),J.push(h),v.push(A),A=void 0,h=qe}function F(){h.children&&(N(h.children,h),ue(h.children)),h=J.pop(),A=v.pop()}function Q(_e,Le,qe){ne(_e,qe),T(Le),F()}function V(_e){_e.initializer&&ve(_e.initializer)?(ne(_e),e.forEachChild(_e.initializer,T),F()):Q(_e,_e.initializer)}function re(_e){return!e.hasDynamicName(_e)||_e.kind!==220&&e.isPropertyAccessExpression(_e.name.expression)&&e.isIdentifier(_e.name.expression.expression)&&e.idText(_e.name.expression.expression)==="Symbol"}function T(_e){var Le;if(d.throwIfCancellationRequested(),!(!_e||e.isToken(_e)))switch(_e.kind){case 170:var qe=_e;Q(qe,qe.body);for(var Xe=0,De=qe.parameters;Xe<De.length;Xe++){var Ae=De[Xe];e.isParameterPropertyDeclaration(Ae,qe)&&w(Ae)}break;case 168:case 171:case 172:case 167:re(_e)&&Q(_e,_e.body);break;case 166:re(_e)&&V(_e);break;case 165:re(_e)&&w(_e);break;case 266:var Ye=_e;Ye.name&&w(Ye.name);var Dr=Ye.namedBindings;if(Dr)if(Dr.kind===267)w(Dr);else for(var br=0,lr=Dr.elements;br<lr.length;br++){var Ar=lr[br];w(Ar)}break;case 295:Q(_e,_e.name);break;case 296:var kr=_e.expression;e.isIdentifier(kr)?w(_e,kr):w(_e);break;case 202:case 294:case 253:{var Ke=_e;e.isBindingPattern(Ke.name)?T(Ke.name):V(Ke);break}case 255:var Me=_e.name;Me&&e.isIdentifier(Me)&&O(Me.text),Q(_e,_e.body);break;case 213:case 212:Q(_e,_e.body);break;case 259:ne(_e);for(var Hr=0,ur=_e.members;Hr<ur.length;Hr++){var gr=ur[Hr];ke(gr)||w(gr)}F();break;case 256:case 225:case 257:ne(_e);for(var de=0,Fe=_e.members;de<Fe.length;de++){var gr=Fe[de];T(gr)}F();break;case 260:Q(_e,ge(_e).body);break;case 270:{var $e=_e.expression,Ke=e.isObjectLiteralExpression($e)||e.isCallExpression($e)?$e:e.isArrowFunction($e)||e.isFunctionExpression($e)?$e.body:void 0;Ke?(ne(_e),T(Ke),F()):w(_e);break}case 274:case 264:case 175:case 173:case 174:case 258:w(_e);break;case 207:case 220:{var Sr=e.getAssignmentDeclarationKind(_e);switch(Sr){case 1:case 2:Q(_e,_e.right);return;case 6:case 3:{var Pr=_e,He=Pr.left,pr=Sr===3?He.expression:He,Jr=0,ze=void 0;e.isIdentifier(pr.expression)?(O(pr.expression.text),ze=pr.expression):(Le=Z(Pr,pr.expression),Jr=Le[0],ze=Le[1]),Sr===6?e.isObjectLiteralExpression(Pr.right)&&Pr.right.properties.length>0&&(ne(Pr,ze),e.forEachChild(Pr.right,T),F()):e.isFunctionExpression(Pr.right)||e.isArrowFunction(Pr.right)?Q(_e,Pr.right,ze):(ne(Pr,ze),Q(_e,Pr.right,He.name),F()),q(Jr);return}case 7:case 9:{var Lr=_e,ze=Sr===7?Lr.arguments[0]:Lr.arguments[0].expression,Yr=Lr.arguments[1],lt=Z(_e,ze),Jr=lt[0],tt=lt[1];ne(_e,tt),ne(_e,e.setTextRange(e.factory.createIdentifier(Yr.text),Yr)),T(_e.arguments[2]),F(),F(),q(Jr);return}case 5:{var Pr=_e,He=Pr.left,Rt=He.expression;if(e.isIdentifier(Rt)&&e.getElementOrPropertyAccessName(He)!=="prototype"&&A&&A.has(Rt.text)){e.isFunctionExpression(Pr.right)||e.isArrowFunction(Pr.right)?Q(_e,Pr.right,Rt):e.isBindableStaticAccessExpression(He)&&(ne(Pr,Rt),Q(Pr.left,Pr.right,e.getNameOrArgument(He)),F());return}break}case 4:case 0:case 8:break;default:e.Debug.assertNever(Sr)}}default:e.hasJSDocNodes(_e)&&e.forEach(_e.jsDoc,function(cn){e.forEach(cn.tags,function(bn){e.isJSDocTypeAlias(bn)&&w(bn)})}),e.forEachChild(_e,T)}}function N(_e,Le){var qe=new e.Map;e.filterMutate(_e,function(Xe,De){var Ae=Xe.name||e.getNameOfDeclaration(Xe.node),Ye=Ae&&S(Ae);if(!Ye)return!0;var Dr=qe.get(Ye);if(!Dr)return qe.set(Ye,Xe),!0;if(Dr instanceof Array){for(var br=0,lr=Dr;br<lr.length;br++){var Ar=lr[br];if(C(Ar,Xe,De,Le))return!1}return Dr.push(Xe),!0}else{var Ar=Dr;return C(Ar,Xe,De,Le)?!1:(qe.set(Ye,[Ar,Xe]),!0)}})}var y=(f={},f[5]=!0,f[3]=!0,f[7]=!0,f[9]=!0,f[0]=!1,f[1]=!1,f[2]=!1,f[8]=!1,f[6]=!0,f[4]=!1,f);function D(_e,Le,qe,Xe){function De(Ke){return e.isFunctionExpression(Ke)||e.isFunctionDeclaration(Ke)||e.isVariableDeclaration(Ke)}var Ae=e.isBinaryExpression(Le.node)||e.isCallExpression(Le.node)?e.getAssignmentDeclarationKind(Le.node):0,Ye=e.isBinaryExpression(_e.node)||e.isCallExpression(_e.node)?e.getAssignmentDeclarationKind(_e.node):0;if(y[Ae]&&y[Ye]||De(_e.node)&&y[Ae]||De(Le.node)&&y[Ye]||e.isClassDeclaration(_e.node)&&u(_e.node)&&y[Ae]||e.isClassDeclaration(Le.node)&&y[Ye]||e.isClassDeclaration(_e.node)&&u(_e.node)&&De(Le.node)||e.isClassDeclaration(Le.node)&&De(_e.node)&&u(_e.node)){var Dr=_e.additionalNodes&&e.lastOrUndefined(_e.additionalNodes)||_e.node;if(!e.isClassDeclaration(_e.node)&&!e.isClassDeclaration(Le.node)||De(_e.node)||De(Le.node)){var br=De(_e.node)?_e.node:De(Le.node)?Le.node:void 0;if(br!==void 0){var lr=e.setTextRange(e.factory.createConstructorDeclaration(void 0,void 0,[],void 0),br),Ar=x(lr);Ar.indent=_e.indent+1,Ar.children=_e.node===br?_e.children:Le.children,_e.children=_e.node===br?e.concatenate([Ar],Le.children||[Le]):e.concatenate(_e.children||[Rn({},_e)],[Ar])}else(_e.children||Le.children)&&(_e.children=e.concatenate(_e.children||[Rn({},_e)],Le.children||[Le]),_e.children&&(N(_e.children,_e),ue(_e.children)));Dr=_e.node=e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,_e.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),_e.node)}else _e.children=e.concatenate(_e.children,Le.children),_e.children&&N(_e.children,_e);var kr=Le.node;return Xe.children[qe-1].node.end===Dr.end?e.setTextRange(Dr,{pos:Dr.pos,end:kr.end}):(_e.additionalNodes||(_e.additionalNodes=[]),_e.additionalNodes.push(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,_e.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),Le.node))),!0}return Ae!==0}function C(_e,Le,qe,Xe){return D(_e,Le,qe,Xe)?!0:m(_e.node,Le.node,Xe)?(te(_e,Le),!0):!1}function m(_e,Le,qe){if(_e.kind!==Le.kind||_e.parent!==Le.parent&&!(g(_e,qe)&&g(Le,qe)))return!1;switch(_e.kind){case 166:case 168:case 171:case 172:return e.isStatic(_e)===e.isStatic(Le);case 260:return P(_e,Le)&&Te(_e)===Te(Le);default:return!0}}function u(_e){return!!(_e.flags&8)}function g(_e,Le){var qe=e.isModuleBlock(_e.parent)?_e.parent.parent:_e.parent;return qe===Le.node||e.contains(Le.additionalNodes,qe)}function P(_e,Le){return!_e.body||!Le.body?_e.body===Le.body:_e.body.kind===Le.body.kind&&(_e.body.kind!==260||P(_e.body,Le.body))}function te(_e,Le){var qe;_e.additionalNodes=_e.additionalNodes||[],_e.additionalNodes.push(Le.node),Le.additionalNodes&&(qe=_e.additionalNodes).push.apply(qe,Le.additionalNodes),_e.children=e.concatenate(_e.children,Le.children),_e.children&&(N(_e.children,_e),ue(_e.children))}function ue(_e){_e.sort(X)}function X(_e,Le){return e.compareStringsCaseSensitiveUI(j(_e.node),j(Le.node))||e.compareValues(B(_e),B(Le))}function j(_e){if(_e.kind===260)return K(_e);var Le=e.getNameOfDeclaration(_e);if(Le&&e.isPropertyName(Le)){var qe=e.getPropertyNameForPropertyNameNode(Le);return qe&&e.unescapeLeadingUnderscores(qe)}switch(_e.kind){case 212:case 213:case 225:return Ge(_e);default:return}}function Se(_e,Le){if(_e.kind===260)return Ve(K(_e));if(Le){var qe=e.isIdentifier(Le)?Le.text:e.isElementAccessExpression(Le)?"[".concat(S(Le.argumentExpression),"]"):S(Le);if(qe.length>0)return Ve(qe)}switch(_e.kind){case 303:var Xe=_e;return e.isExternalModule(Xe)?'"'.concat(e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(Xe.fileName)))),'"'):"<global>";case 270:return e.isExportAssignment(_e)&&_e.isExportEquals?"export=":"default";case 213:case 255:case 212:case 256:case 225:return e.getSyntacticModifierFlags(_e)&512?"default":Ge(_e);case 170:return"constructor";case 174:return"new()";case 173:return"()";case 175:return"[]";default:return"<unknown>"}}function Ce(_e){var Le=[];function qe(De){if(Xe(De)&&(Le.push(De),De.children))for(var Ae=0,Ye=De.children;Ae<Ye.length;Ae++){var Dr=Ye[Ae];qe(Dr)}}return qe(_e),Le;function Xe(De){if(De.children)return!0;switch(B(De)){case 256:case 225:case 259:case 257:case 260:case 303:case 258:case 343:case 336:return!0;case 213:case 255:case 212:return Ae(De);default:return!1}function Ae(Ye){if(!Ye.node.body)return!1;switch(B(Ye.parent)){case 261:case 303:case 168:case 170:return!0;default:return!1}}}}function R(_e){return{text:Se(_e.node,_e.name),kind:e.getNodeKind(_e.node),kindModifiers:Ie(_e.node),spans:U(_e),nameSpan:_e.name&&Pe(_e.name),childItems:e.map(_e.children,R)}}function Y(_e){return{text:Se(_e.node,_e.name),kind:e.getNodeKind(_e.node),kindModifiers:Ie(_e.node),spans:U(_e),childItems:e.map(_e.children,Le)||z,indent:_e.indent,bolded:!1,grayed:!1};function Le(qe){return{text:Se(qe.node,qe.name),kind:e.getNodeKind(qe.node),kindModifiers:e.getNodeModifiers(qe.node),spans:U(qe),childItems:z,indent:0,bolded:!1,grayed:!1}}}function U(_e){var Le=[Pe(_e.node)];if(_e.additionalNodes)for(var qe=0,Xe=_e.additionalNodes;qe<Xe.length;qe++){var De=Xe[qe];Le.push(Pe(De))}return Le}function K(_e){return e.isAmbientModule(_e)?e.getTextOfNode(_e.name):Te(_e)}function Te(_e){for(var Le=[e.getTextOfIdentifierOrLiteral(_e.name)];_e.body&&_e.body.kind===260;)_e=_e.body,Le.push(e.getTextOfIdentifierOrLiteral(_e.name));return Le.join(".")}function ge(_e){return _e.body&&e.isModuleDeclaration(_e.body)?ge(_e.body):_e}function ke(_e){return!_e.name||_e.name.kind===161}function Pe(_e){return _e.kind===303?e.createTextSpanFromRange(_e):e.createTextSpanFromNode(_e,k)}function Ie(_e){return _e.parent&&_e.parent.kind===253&&(_e=_e.parent),e.getNodeModifiers(_e)}function Ge(_e){var Le=_e.parent;if(_e.name&&e.getFullWidth(_e.name)>0)return Ve(e.declarationNameToString(_e.name));if(e.isVariableDeclaration(Le))return Ve(e.declarationNameToString(Le.name));if(e.isBinaryExpression(Le)&&Le.operatorToken.kind===63)return S(Le.left).replace(p,"");if(e.isPropertyAssignment(Le))return S(Le.name);if(e.getSyntacticModifierFlags(_e)&512)return"default";if(e.isClassLike(_e))return"<class>";if(e.isCallExpression(Le)){var qe=he(Le.expression);if(qe!==void 0){if(qe=Ve(qe),qe.length>a)return"".concat(qe," callback");var Xe=Ve(e.mapDefined(Le.arguments,function(De){return e.isStringLiteralLike(De)?De.getText(k):void 0}).join(", "));return"".concat(qe,"(").concat(Xe,") callback")}}return"<function>"}function he(_e){if(e.isIdentifier(_e))return _e.text;if(e.isPropertyAccessExpression(_e)){var Le=he(_e.expression),qe=_e.name.text;return Le===void 0?qe:"".concat(Le,".").concat(qe)}else return}function ve(_e){switch(_e.kind){case 213:case 212:case 225:return!0;default:return!1}}function Ve(_e){return _e=_e.length>a?_e.substring(0,a)+"...":_e,_e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}})(e.NavigationBar||(e.NavigationBar={}))}(jr||(jr={})),function(e){(function(n){function f(q,Z,ne,F,Q,V){var re=e.textChanges.ChangeTracker.fromContext({host:ne,formatContext:Z,preferences:Q}),T=function(te){return e.stableSort(k(p(te,q,F,V)),function(ue,X){return w(ue,X)})},N=q.statements.filter(e.isImportDeclaration);P(N,T);var y=q.statements.filter(e.isExportDeclaration);P(y,h);for(var D=0,C=q.statements.filter(e.isAmbientModule);D<C.length;D++){var m=C[D];if(m.body){var u=m.body.statements.filter(e.isImportDeclaration);P(u,T);var g=m.body.statements.filter(e.isExportDeclaration);P(g,h)}}return re.getChanges();function P(te,ue){if(e.length(te)!==0){e.suppressLeadingTrivia(te[0]);var X=e.group(te,function(Y){return d(Y.moduleSpecifier)}),j=e.stableSort(X,function(Y,U){return ie(Y[0].moduleSpecifier,U[0].moduleSpecifier)}),Se=e.flatMap(j,function(Y){return d(Y[0].moduleSpecifier)?ue(Y):Y});if(Se.length===0)re.deleteNodes(q,te,{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},!0);else{var Ce={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(ne,Z.options)};re.replaceNodeWithNodes(q,te[0],Se,Ce);var R=re.nodeHasTrailingComment(q,te[0],Ce);re.deleteNodes(q,te.slice(1),{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},R)}}}}n.organizeImports=f;function p(q,Z,ne,F){if(F)return q;for(var Q=ne.getTypeChecker(),V=Q.getJsxNamespace(Z),re=Q.getJsxFragmentFactory(Z),T=!!(Z.transformFlags&2),N=[],y=0,D=q;y<D.length;y++){var C=D[y],m=C.importClause,u=C.moduleSpecifier;if(!m){N.push(C);continue}var g=m.name,P=m.namedBindings;if(g&&!ue(g)&&(g=void 0),P)if(e.isNamespaceImport(P))ue(P.name)||(P=void 0);else{var te=P.elements.filter(function(X){return ue(X.name)});te.length<P.elements.length&&(P=te.length?e.factory.updateNamedImports(P,te):void 0)}g||P?N.push(v(C,g,P)):a(Z,u)&&(Z.isDeclarationFile?N.push(e.factory.createImportDeclaration(C.decorators,C.modifiers,void 0,u,void 0)):N.push(C))}return N;function ue(X){return T&&(X.text===V||re&&X.text===re)||e.FindAllReferences.Core.isSymbolReferencedInFile(X,Q,Z)}}function a(q,Z){var ne=e.isStringLiteral(Z)&&Z.text;return e.isString(ne)&&e.some(q.moduleAugmentations,function(F){return e.isStringLiteral(F)&&F.text===ne})}function d(q){return q!==void 0&&e.isStringLiteralLike(q)?q.text:void 0}function k(q){var Z;if(q.length===0)return q;var ne=J(q),F=ne.importWithoutClause,Q=ne.typeOnlyImports,V=ne.regularImports,re=[];F&&re.push(F);for(var T=0,N=[V,Q];T<N.length;T++){var y=N[T],D=y===Q,C=y.defaultImports,m=y.namespaceImports,u=y.namedImports;if(!D&&C.length===1&&m.length===1&&u.length===0){var g=C[0];re.push(v(g,g.importClause.name,m[0].importClause.namedBindings));continue}for(var P=e.stableSort(m,function(Te,ge){return b(Te.importClause.namedBindings.name,ge.importClause.namedBindings.name)}),te=0,ue=P;te<ue.length;te++){var X=ue[te];re.push(v(X,void 0,X.importClause.namedBindings))}if(!(C.length===0&&u.length===0)){var j=void 0,Se=[];if(C.length===1)j=C[0].importClause.name;else for(var Ce=0,R=C;Ce<R.length;Ce++){var g=R[Ce];Se.push(e.factory.createImportSpecifier(!1,e.factory.createIdentifier("default"),g.importClause.name))}Se.push.apply(Se,e.flatMap(u,function(Te){return Te.importClause.namedBindings.elements}));var Y=A(Se),U=C.length>0?C[0]:u[0],K=Y.length===0?j?void 0:e.factory.createNamedImports(e.emptyArray):u.length===0?e.factory.createNamedImports(Y):e.factory.updateNamedImports(u[0].importClause.namedBindings,Y);D&&j&&K?(re.push(v(U,j,void 0)),re.push(v((Z=u[0])!==null&&Z!==void 0?Z:U,void 0,K))):re.push(v(U,j,K))}}return re}n.coalesceImports=k;function J(q){for(var Z,ne={defaultImports:[],namespaceImports:[],namedImports:[]},F={defaultImports:[],namespaceImports:[],namedImports:[]},Q=0,V=q;Q<V.length;Q++){var re=V[Q];if(re.importClause===void 0){Z=Z||re;continue}var T=re.importClause.isTypeOnly?ne:F,N=re.importClause,y=N.name,D=N.namedBindings;y&&T.defaultImports.push(re),D&&(e.isNamespaceImport(D)?T.namespaceImports.push(re):T.namedImports.push(re))}return{importWithoutClause:Z,typeOnlyImports:ne,regularImports:F}}function h(q){if(q.length===0)return q;var Z=m(q),ne=Z.exportWithoutClause,F=Z.namedExports,Q=Z.typeOnlyExports,V=[];ne&&V.push(ne);for(var re=0,T=[F,Q];re<T.length;re++){var N=T[re];if(N.length!==0){var y=[];y.push.apply(y,e.flatMap(N,function(u){return u.exportClause&&e.isNamedExports(u.exportClause)?u.exportClause.elements:e.emptyArray}));var D=A(y),C=N[0];V.push(e.factory.updateExportDeclaration(C,C.decorators,C.modifiers,C.isTypeOnly,C.exportClause&&(e.isNamedExports(C.exportClause)?e.factory.updateNamedExports(C.exportClause,D):e.factory.updateNamespaceExport(C.exportClause,C.exportClause.name)),C.moduleSpecifier,C.assertClause))}}return V;function m(u){for(var g,P=[],te=[],ue=0,X=u;ue<X.length;ue++){var j=X[ue];j.exportClause===void 0?g=g||j:j.isTypeOnly?te.push(j):P.push(j)}return{exportWithoutClause:g,namedExports:P,typeOnlyExports:te}}}n.coalesceExports=h;function v(q,Z,ne){return e.factory.updateImportDeclaration(q,q.decorators,q.modifiers,e.factory.updateImportClause(q.importClause,q.importClause.isTypeOnly,Z,ne),q.moduleSpecifier,q.assertClause)}function A(q){return e.stableSort(q,z)}function z(q,Z){return e.compareBooleans(q.isTypeOnly,Z.isTypeOnly)||b(q.propertyName||q.name,Z.propertyName||Z.name)||b(q.name,Z.name)}n.compareImportOrExportSpecifiers=z;function ie(q,Z){var ne=q===void 0?void 0:d(q),F=Z===void 0?void 0:d(Z);return e.compareBooleans(ne===void 0,F===void 0)||e.compareBooleans(e.isExternalModuleNameRelative(ne),e.isExternalModuleNameRelative(F))||e.compareStringsCaseInsensitive(ne,F)}n.compareModuleSpecifiers=ie;function b(q,Z){return e.compareStringsCaseInsensitive(q.text,Z.text)}function M(q){var Z;switch(q.kind){case 264:return(Z=e.tryCast(q.moduleReference,e.isExternalModuleReference))===null||Z===void 0?void 0:Z.expression;case 265:return q.moduleSpecifier;case 236:return q.declarationList.declarations[0].initializer.arguments[0]}}function S(q){return e.arrayIsSorted(q,w)}n.importsAreSorted=S;function B(q){return e.arrayIsSorted(q,z)}n.importSpecifiersAreSorted=B;function H(q,Z){var ne=e.binarySearch(q,Z,e.identity,w);return ne<0?~ne:ne}n.getImportDeclarationInsertionIndex=H;function I(q,Z){var ne=e.binarySearch(q,Z,e.identity,z);return ne<0?~ne:ne}n.getImportSpecifierInsertionIndex=I;function w(q,Z){return ie(M(q),M(Z))||x(q,Z)}n.compareImportsOrRequireStatements=w;function x(q,Z){return e.compareValues(O(q),O(Z))}function O(q){var Z;switch(q.kind){case 265:return q.importClause?q.importClause.isTypeOnly?1:((Z=q.importClause.namedBindings)===null||Z===void 0?void 0:Z.kind)===267?2:q.importClause.name?3:4:0;case 264:return 5;case 236:return 6}}})(e.OrganizeImports||(e.OrganizeImports={}))}(jr||(jr={})),function(e){(function(n){function f(S,B){var H=[];return p(S,B,H),a(S,H),H.sort(function(I,w){return I.textSpan.start-w.textSpan.start})}n.collectElements=f;function p(S,B,H){for(var I=40,w=0,x=Gt(Gt([],S.statements,!0),[S.endOfFileToken],!1),O=x.length;w<O;){for(;w<O&&!e.isAnyImportSyntax(x[w]);)ne(x[w]),w++;if(w===O)break;for(var q=w;w<O&&e.isAnyImportSyntax(x[w]);)h(x[w],S,B,H),w++;var Z=w-1;Z!==q&&H.push(v(e.findChildOfKind(x[q],100,S).getStart(S),x[Z].getEnd(),"imports"))}function ne(F){var Q;if(I!==0){B.throwIfCancellationRequested(),(e.isDeclaration(F)||e.isVariableStatement(F)||e.isReturnStatement(F)||F.kind===1)&&h(F,S,B,H),e.isFunctionLike(F)&&e.isBinaryExpression(F.parent)&&e.isPropertyAccessExpression(F.parent.left)&&h(F.parent.left,S,B,H),(e.isBlock(F)||e.isModuleBlock(F))&&J(F.statements.end,S,B,H),(e.isClassLike(F)||e.isInterfaceDeclaration(F))&&J(F.members.end,S,B,H);var V=A(F,S);V&&H.push(V),I--,e.isCallExpression(F)?(I++,ne(F.expression),I--,F.arguments.forEach(ne),(Q=F.typeArguments)===null||Q===void 0||Q.forEach(ne)):e.isIfStatement(F)&&F.elseStatement&&e.isIfStatement(F.elseStatement)?(ne(F.expression),ne(F.thenStatement),I++,ne(F.elseStatement),I--):F.forEachChild(ne),I++}}}function a(S,B){for(var H=[],I=S.getLineStarts(),w=0,x=I;w<x.length;w++){var O=x[w],q=S.getLineEndOfPosition(O),Z=S.text.substring(O,q),ne=k(Z);if(!(!ne||e.isInComment(S,O)))if(ne[1]){var Q=H.pop();Q&&(Q.textSpan.length=q-Q.textSpan.start,Q.hintSpan.length=q-Q.textSpan.start,B.push(Q))}else{var F=e.createTextSpanFromBounds(S.text.indexOf("//",O),q);H.push(b(F,"region",F,!1,ne[2]||"#region"))}}}var d=/^#(end)?region(?:\s+(.*))?(?:\r)?$/;function k(S){return S=e.trimStringStart(S),e.startsWith(S,"//")?(S=e.trimString(S.slice(2)),d.exec(S)):null}function J(S,B,H,I){var w=e.getLeadingCommentRanges(B.text,S);if(!w)return;for(var x=-1,O=-1,q=0,Z=B.getFullText(),ne=0,F=w;ne<F.length;ne++){var Q=F[ne],V=Q.kind,re=Q.pos,T=Q.end;switch(H.throwIfCancellationRequested(),V){case 2:var N=Z.slice(re,T);if(k(N)){y(),q=0;break}q===0&&(x=re),O=T,q++;break;case 3:y(),I.push(v(re,T,"comment")),q=0;break;default:e.Debug.assertNever(V)}}y();function y(){q>1&&I.push(v(x,O,"comment"))}}function h(S,B,H,I){e.isJsxText(S)||J(S.pos,B,H,I)}function v(S,B,H){return b(e.createTextSpanFromBounds(S,B),H)}function A(S,B){switch(S.kind){case 234:if(e.isFunctionLike(S.parent))return z(S.parent,S,B);switch(S.parent.kind){case 239:case 242:case 243:case 241:case 238:case 240:case 247:case 291:return Q(S.parent);case 251:var H=S.parent;if(H.tryBlock===S)return Q(S.parent);if(H.finallyBlock===S){var I=e.findChildOfKind(H,96,B);if(I)return Q(I)}default:return b(e.createTextSpanFromNode(S,B),"code")}case 261:return Q(S.parent);case 256:case 225:case 257:case 259:case 262:case 181:case 200:return Q(S);case 183:return Q(S,!1,!e.isTupleTypeNode(S.parent),22);case 288:case 289:return V(S.statements);case 204:return F(S);case 203:return F(S,22);case 277:return O(S);case 281:return q(S);case 278:case 279:return Z(S.attributes);case 222:case 14:return ne(S);case 201:return Q(S,!1,!e.isBindingElement(S.parent),22);case 213:return x(S);case 207:return w(S)}function w(re){if(re.arguments.length){var T=e.findChildOfKind(re,20,B),N=e.findChildOfKind(re,21,B);if(!(!T||!N||e.positionsAreOnSameLine(T.pos,N.pos,B)))return ie(T,N,re,B,!1,!0)}}function x(re){if(!(e.isBlock(re.body)||e.positionsAreOnSameLine(re.body.getFullStart(),re.body.getEnd(),B))){var T=e.createTextSpanFromBounds(re.body.getFullStart(),re.body.getEnd());return b(T,"code",e.createTextSpanFromNode(re))}}function O(re){var T=e.createTextSpanFromBounds(re.openingElement.getStart(B),re.closingElement.getEnd()),N=re.openingElement.tagName.getText(B),y="<"+N+">...</"+N+">";return b(T,"code",T,!1,y)}function q(re){var T=e.createTextSpanFromBounds(re.openingFragment.getStart(B),re.closingFragment.getEnd()),N="<>...</>";return b(T,"code",T,!1,N)}function Z(re){if(re.properties.length!==0)return v(re.getStart(B),re.getEnd(),"code")}function ne(re){if(!(re.kind===14&&re.text.length===0))return v(re.getStart(B),re.getEnd(),"code")}function F(re,T){return T===void 0&&(T=18),Q(re,!1,!e.isArrayLiteralExpression(re.parent)&&!e.isCallExpression(re.parent),T)}function Q(re,T,N,y,D){T===void 0&&(T=!1),N===void 0&&(N=!0),y===void 0&&(y=18),D===void 0&&(D=y===18?19:23);var C=e.findChildOfKind(S,y,B),m=e.findChildOfKind(S,D,B);return C&&m&&ie(C,m,re,B,T,N)}function V(re){return re.length?b(e.createTextSpanFromRange(re),"code"):void 0}}function z(S,B,H){var I=M(S,B,H),w=e.findChildOfKind(B,19,H);return I&&w&&ie(I,w,S,H,S.kind!==213)}function ie(S,B,H,I,w,x){w===void 0&&(w=!1),x===void 0&&(x=!0);var O=e.createTextSpanFromBounds(x?S.getFullStart():S.getStart(I),B.getEnd());return b(O,"code",e.createTextSpanFromNode(H,I),w)}function b(S,B,H,I,w){return H===void 0&&(H=S),I===void 0&&(I=!1),w===void 0&&(w="..."),{textSpan:S,kind:B,hintSpan:H,bannerText:w,autoCollapse:I}}function M(S,B,H){if(e.isNodeArrayMultiLine(S.parameters,H)){var I=e.findChildOfKind(S,20,H);if(I)return I}return e.findChildOfKind(B,18,H)}})(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(jr||(jr={})),function(e){var n;(function(y){y[y.exact=0]="exact",y[y.prefix=1]="prefix",y[y.substring=2]="substring",y[y.camelCase=3]="camelCase"})(n=e.PatternMatchKind||(e.PatternMatchKind={}));function f(y,D){return{kind:y,isCaseSensitive:D}}function p(y){var D=new e.Map,C=y.trim().split(".").map(function(m){return b(m.trim())});if(!C.some(function(m){return!m.subWordTextChunks.length}))return{getFullMatch:function(m,u){return a(m,u,C,D)},getMatchForLastSegmentOfPattern:function(m){return J(m,e.last(C),D)},patternContainsDots:C.length>1}}e.createPatternMatcher=p;function a(y,D,C,m){var u=J(D,e.last(C),m);if(u&&!(C.length-1>y.length)){for(var g,P=C.length-2,te=y.length-1;P>=0;P-=1,te-=1)g=h(g,J(y[te],C[P],m));return g}}function d(y,D){var C=D.get(y);return C||D.set(y,C=Z(y)),C}function k(y,D,C){var m=B(y,D.textLowerCase);if(m===0)return f(D.text.length===y.length?n.exact:n.prefix,e.startsWith(y,D.text));if(D.isLowerCase){if(m===-1)return;for(var u=d(y,C),g=0,P=u;g<P.length;g++){var te=P[g];if(A(y,te,D.text,!0))return f(n.substring,A(y,te,D.text,!1))}if(D.text.length<y.length&&M(y.charCodeAt(m)))return f(n.substring,!1)}else{if(y.indexOf(D.text)>0)return f(n.substring,!0);if(D.characterSpans.length>0){var ue=d(y,C),X=ie(y,ue,D,!1)?!0:ie(y,ue,D,!0)?!1:void 0;if(X!==void 0)return f(n.camelCase,X)}}}function J(y,D,C){if(N(D.totalTextChunk.text,function(X){return X!==32&&X!==42})){var m=k(y,D.totalTextChunk,C);if(m)return m}for(var u=D.subWordTextChunks,g,P=0,te=u;P<te.length;P++){var ue=te[P];g=h(g,k(y,ue,C))}return g}function h(y,D){return e.min(y,D,v)}function v(y,D){return y===void 0?1:D===void 0?-1:e.compareValues(y.kind,D.kind)||e.compareBooleans(!y.isCaseSensitive,!D.isCaseSensitive)}function A(y,D,C,m,u){return u===void 0&&(u={start:0,length:C.length}),u.length<=D.length&&T(0,u.length,function(g){return z(C.charCodeAt(u.start+g),y.charCodeAt(D.start+g),m)})}function z(y,D,C){return C?H(y)===H(D):y===D}function ie(y,D,C,m){for(var u=C.characterSpans,g=0,P=0;;){if(P===u.length)return!0;if(g===D.length)return!1;for(var te=D[g],ue=!1;P<u.length;P++){var X=u[P];if(ue&&(!M(C.text.charCodeAt(u[P-1].start))||!M(C.text.charCodeAt(u[P].start)))||!A(y,te,C.text,m,X))break;ue=!0,te=e.createTextSpan(te.start+X.length,te.length-X.length)}g++}}function b(y){return{totalTextChunk:O(y),subWordTextChunks:x(y)}}function M(y){if(y>=65&&y<=90)return!0;if(y<127||!e.isUnicodeIdentifierStart(y,99))return!1;var D=String.fromCharCode(y);return D===D.toUpperCase()}function S(y){if(y>=97&&y<=122)return!0;if(y<127||!e.isUnicodeIdentifierStart(y,99))return!1;var D=String.fromCharCode(y);return D===D.toLowerCase()}function B(y,D){for(var C=y.length-D.length,m=function(P){if(N(D,function(te,ue){return H(y.charCodeAt(ue+P))===te}))return{value:P}},u=0;u<=C;u++){var g=m(u);if(typeof g=="object")return g.value}return-1}function H(y){return y>=65&&y<=90?97+(y-65):y<127?y:String.fromCharCode(y).toLowerCase().charCodeAt(0)}function I(y){return y>=48&&y<=57}function w(y){return M(y)||S(y)||I(y)||y===95||y===36}function x(y){for(var D=[],C=0,m=0,u=0;u<y.length;u++){var g=y.charCodeAt(u);w(g)?(m===0&&(C=u),m++):m>0&&(D.push(O(y.substr(C,m))),m=0)}return m>0&&D.push(O(y.substr(C,m))),D}function O(y){var D=y.toLowerCase();return{text:y,textLowerCase:D,isLowerCase:y===D,characterSpans:q(y)}}function q(y){return ne(y,!1)}e.breakIntoCharacterSpans=q;function Z(y){return ne(y,!0)}e.breakIntoWordSpans=Z;function ne(y,D){for(var C=[],m=0,u=1;u<y.length;u++){var g=I(y.charCodeAt(u-1)),P=I(y.charCodeAt(u)),te=re(y,D,u),ue=D&&V(y,u,m);(F(y.charCodeAt(u-1))||F(y.charCodeAt(u))||g!==P||te||ue)&&(Q(y,m,u)||C.push(e.createTextSpan(m,u-m)),m=u)}return Q(y,m,y.length)||C.push(e.createTextSpan(m,y.length-m)),C}function F(y){switch(y){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 Q(y,D,C){return N(y,function(m){return F(m)&&m!==95},D,C)}function V(y,D,C){return D!==C&&D+1<y.length&&M(y.charCodeAt(D))&&S(y.charCodeAt(D+1))&&N(y,M,C,D)}function re(y,D,C){var m=M(y.charCodeAt(C-1)),u=M(y.charCodeAt(C));return u&&(!D||!m)}function T(y,D,C){for(var m=y;m<D;m++)if(!C(m))return!1;return!0}function N(y,D,C,m){return C===void 0&&(C=0),m===void 0&&(m=y.length),T(C,m,function(u){return D(y.charCodeAt(u),u)})}}(jr||(jr={})),function(e){function n(f,p,a){p===void 0&&(p=!0),a===void 0&&(a=!1);var d={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},k=[],J,h,v,A=0,z=!1;function ie(){return h=v,v=e.scanner.scan(),v===18?A++:v===19&&A--,v}function b(){var T=e.scanner.getTokenValue(),N=e.scanner.getTokenPos();return{fileName:T,pos:N,end:N+T.length}}function M(){J||(J=[]),J.push({ref:b(),depth:A})}function S(){k.push(b()),B()}function B(){A===0&&(z=!0)}function H(){var T=e.scanner.getToken();return T===135?(T=ie(),T===141&&(T=ie(),T===10&&M()),!0):!1}function I(){if(h===24)return!1;var T=e.scanner.getToken();if(T===100){if(T=ie(),T===20){if(T=ie(),T===10||T===14)return S(),!0}else{if(T===10)return S(),!0;if(T===151){var N=e.scanner.lookAhead(function(){var y=e.scanner.scan();return y!==155&&(y===41||y===18||y===79||e.isKeyword(y))});N&&(T=ie())}if(T===79||e.isKeyword(T))if(T=ie(),T===155){if(T=ie(),T===10)return S(),!0}else if(T===63){if(x(!0))return!0}else if(T===27)T=ie();else return!0;if(T===18){for(T=ie();T!==19&&T!==1;)T=ie();T===19&&(T=ie(),T===155&&(T=ie(),T===10&&S()))}else T===41&&(T=ie(),T===127&&(T=ie(),(T===79||e.isKeyword(T))&&(T=ie(),T===155&&(T=ie(),T===10&&S()))))}return!0}return!1}function w(){var T=e.scanner.getToken();if(T===93){if(B(),T=ie(),T===151){var N=e.scanner.lookAhead(function(){var y=e.scanner.scan();return y===41||y===18});N&&(T=ie())}if(T===18){for(T=ie();T!==19&&T!==1;)T=ie();T===19&&(T=ie(),T===155&&(T=ie(),T===10&&S()))}else if(T===41)T=ie(),T===155&&(T=ie(),T===10&&S());else if(T===100){if(T=ie(),T===151){var N=e.scanner.lookAhead(function(){var D=e.scanner.scan();return D===79||e.isKeyword(D)});N&&(T=ie())}if((T===79||e.isKeyword(T))&&(T=ie(),T===63&&x(!0)))return!0}return!0}return!1}function x(T,N){N===void 0&&(N=!1);var y=T?ie():e.scanner.getToken();return y===145?(y=ie(),y===20&&(y=ie(),(y===10||N&&y===14)&&S()),!0):!1}function O(){var T=e.scanner.getToken();if(T===79&&e.scanner.getTokenValue()==="define"){if(T=ie(),T!==20)return!0;if(T=ie(),T===10||T===14)if(T=ie(),T===27)T=ie();else return!0;if(T!==22)return!0;for(T=ie();T!==23&&T!==1;)(T===10||T===14)&&S(),T=ie();return!0}return!1}function q(){for(e.scanner.setText(f),ie();e.scanner.getToken()!==1;)H()||I()||w()||a&&(x(!1,!0)||O())||ie();e.scanner.setText(void 0)}if(p&&q(),e.processCommentPragmas(d,f),e.processPragmasIntoFields(d,e.noop),z){if(J)for(var Z=0,ne=J;Z<ne.length;Z++){var F=ne[Z];k.push(F.ref)}return{referencedFiles:d.referencedFiles,typeReferenceDirectives:d.typeReferenceDirectives,libReferenceDirectives:d.libReferenceDirectives,importedFiles:k,isLibFile:!!d.hasNoDefaultLib,ambientExternalModules:void 0}}else{var Q=void 0;if(J)for(var V=0,re=J;V<re.length;V++){var F=re[V];F.depth===0?(Q||(Q=[]),Q.push(F.ref.fileName)):k.push(F.ref)}return{referencedFiles:d.referencedFiles,typeReferenceDirectives:d.typeReferenceDirectives,libReferenceDirectives:d.libReferenceDirectives,importedFiles:k,isLibFile:!!d.hasNoDefaultLib,ambientExternalModules:Q}}}e.preProcessFile=n}(jr||(jr={})),function(e){(function(n){function f(A,z,ie,b){var M=e.getAdjustedRenameLocation(e.getTouchingPropertyName(z,ie));if(v(M)){var S=p(M,A.getTypeChecker(),z,A,b);if(S)return S}return J(e.Diagnostics.You_cannot_rename_this_element)}n.getRenameInfo=f;function p(A,z,ie,b,M){var S=z.getSymbolAtLocation(A);if(!S){if(e.isStringLiteralLike(A)){var B=e.getContextualTypeFromParentOrAncestorTypeNode(A,z);if(B&&(B.flags&128||B.flags&1048576&&e.every(B.types,function(Z){return!!(Z.flags&128)})))return k(A.text,A.text,"string","",A,ie)}else if(e.isLabelName(A)){var H=e.getTextOfNode(A);return k(H,H,"label","",A,ie)}return}var I=S.declarations;if(!(!I||I.length===0)){if(I.some(function(Z){return a(b,Z)}))return J(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(!(e.isIdentifier(A)&&A.originalKeywordKind===88&&S.parent&&S.parent.flags&1536)){if(e.isStringLiteralLike(A)&&e.tryGetImportFromModuleSpecifier(A))return M&&M.allowRenameOfImportPath?d(A,ie,S):void 0;var w=e.SymbolDisplay.getSymbolKind(z,S,A),x=e.isImportOrExportSpecifierName(A)||e.isStringOrNumericLiteralLike(A)&&A.parent.kind===161?e.stripQuotes(e.getTextOfIdentifierOrLiteral(A)):void 0,O=x||z.symbolToString(S),q=x||z.getFullyQualifiedName(S);return k(O,q,w,e.SymbolDisplay.getSymbolModifiers(z,S),A,ie)}}}function a(A,z){var ie=z.getSourceFile();return A.isSourceFileDefaultLibrary(ie)&&e.fileExtensionIs(ie.fileName,".d.ts")}function d(A,z,ie){if(!e.isExternalModuleNameRelative(A.text))return J(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var b=ie.declarations&&e.find(ie.declarations,e.isSourceFile);if(b){var M=e.endsWith(A.text,"/index")||e.endsWith(A.text,"/index.js")?void 0:e.tryRemoveSuffix(e.removeFileExtension(b.fileName),"/index"),S=M===void 0?b.fileName:M,B=M===void 0?"module":"directory",H=A.text.lastIndexOf("/")+1,I=e.createTextSpan(A.getStart(z)+1+H,A.text.length-H);return{canRename:!0,fileToRename:S,kind:B,displayName:S,fullDisplayName:S,kindModifiers:"",triggerSpan:I}}}function k(A,z,ie,b,M,S){return{canRename:!0,fileToRename:void 0,kind:ie,displayName:A,fullDisplayName:z,kindModifiers:b,triggerSpan:h(M,S)}}function J(A){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(A)}}function h(A,z){var ie=A.getStart(z),b=A.getWidth(z);return e.isStringLiteralLike(A)&&(ie+=1,b-=2),e.createTextSpan(ie,b)}function v(A){switch(A.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(A);default:return!1}}n.nodeIsEligibleForRename=v})(e.Rename||(e.Rename={}))}(jr||(jr={})),function(e){(function(n){function f(ie,b){var M,S={textSpan:e.createTextSpanFromBounds(b.getFullStart(),b.getEnd())},B=b;e:for(;;){var H=d(B);if(!H.length)break;for(var I=0;I<H.length;I++){var w=H[I-1],x=H[I],O=H[I+1];if(e.getTokenPosOfNode(x,b,!0)>ie)break e;var q=e.singleOrUndefined(e.getTrailingCommentRanges(b.text,x.end));if(q&&q.kind===2&&T(q.pos,q.end),p(b,ie,x)){if(e.isBlock(x)||e.isTemplateSpan(x)||e.isTemplateHead(x)||e.isTemplateTail(x)||w&&e.isTemplateHead(w)||e.isVariableDeclarationList(x)&&e.isVariableStatement(B)||e.isSyntaxList(x)&&e.isVariableDeclarationList(B)||e.isVariableDeclaration(x)&&e.isSyntaxList(B)&&H.length===1||e.isJSDocTypeExpression(x)||e.isJSDocSignature(x)||e.isJSDocTypeLiteral(x)){B=x;break}if(e.isTemplateSpan(B)&&O&&e.isTemplateMiddleOrTemplateTail(O)){var Z=x.getFullStart()-2,ne=O.getStart()+1;re(Z,ne)}var F=e.isSyntaxList(x)&&v(w)&&A(O)&&!e.positionsAreOnSameLine(w.getStart(),O.getStart(),b),Q=F?w.getEnd():x.getStart(),V=F?O.getStart():z(b,x);e.hasJSDocNodes(x)&&(!((M=x.jsDoc)===null||M===void 0)&&M.length)&&re(e.first(x.jsDoc).getStart(),V),re(Q,V),(e.isStringLiteral(x)||e.isTemplateLiteral(x))&&re(Q+1,V-1),B=x;break}if(I===H.length-1)break e}}return S;function re(N,y){if(N!==y){var D=e.createTextSpanFromBounds(N,y);(!S||!e.textSpansEqual(D,S.textSpan)&&e.textSpanIntersectsWithPosition(D,ie))&&(S=Rn({textSpan:D},S&&{parent:S}))}}function T(N,y){re(N,y);for(var D=N;b.text.charCodeAt(D)===47;)D++;re(D,y)}}n.getSmartSelectionRange=f;function p(ie,b,M){if(e.Debug.assert(M.pos<=b),b<M.end)return!0;var S=M.getEnd();return S===b?e.getTouchingPropertyName(ie,b).pos<M.end:!1}var a=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function d(ie){if(e.isSourceFile(ie))return k(ie.getChildAt(0).getChildren(),a);if(e.isMappedTypeNode(ie)){var b=ie.getChildren(),M=b[0],S=b.slice(1),B=e.Debug.checkDefined(S.pop());e.Debug.assertEqual(M.kind,18),e.Debug.assertEqual(B.kind,19);var H=k(S,function(O){return O===ie.readonlyToken||O.kind===144||O===ie.questionToken||O.kind===57}),I=k(H,function(O){var q=O.kind;return q===22||q===162||q===23});return[M,h(J(I,function(O){var q=O.kind;return q===58})),B]}if(e.isPropertySignature(ie)){var S=k(ie.getChildren(),function(q){return q===ie.name||e.contains(ie.modifiers,q)});return J(S,function(q){var Z=q.kind;return Z===58})}if(e.isParameter(ie)){var w=k(ie.getChildren(),function(O){return O===ie.dotDotDotToken||O===ie.name}),x=k(w,function(O){return O===w[0]||O===ie.questionToken});return J(x,function(O){var q=O.kind;return q===63})}return e.isBindingElement(ie)?J(ie.getChildren(),function(O){var q=O.kind;return q===63}):ie.getChildren()}function k(ie,b){for(var M=[],S,B=0,H=ie;B<H.length;B++){var I=H[B];b(I)?(S=S||[],S.push(I)):(S&&(M.push(h(S)),S=void 0),M.push(I))}return S&&M.push(h(S)),M}function J(ie,b,M){if(M===void 0&&(M=!0),ie.length<2)return ie;var S=e.findIndex(ie,b);if(S===-1)return ie;var B=ie.slice(0,S),H=ie[S],I=e.last(ie),w=M&&I.kind===26,x=ie.slice(S+1,w?ie.length-1:void 0),O=e.compact([B.length?h(B):void 0,H,x.length?h(x):void 0]);return w?O.concat(I):O}function h(ie){return e.Debug.assertGreaterThanOrEqual(ie.length,1),e.setTextRangePosEnd(e.parseNodeFactory.createSyntaxList(ie),ie[0].pos,e.last(ie).end)}function v(ie){var b=ie&&ie.kind;return b===18||b===22||b===20||b===279}function A(ie){var b=ie&&ie.kind;return b===19||b===23||b===21||b===280}function z(ie,b){switch(b.kind){case 338:case 336:case 345:case 343:case 340:return ie.getLineEndOfPosition(b.getStart());default:return b.getEnd()}}})(e.SmartSelectionRange||(e.SmartSelectionRange={}))}(jr||(jr={})),function(e){(function(n){var f;(function(X){X[X.Call=0]="Call",X[X.TypeArgs=1]="TypeArgs",X[X.Contextual=2]="Contextual"})(f||(f={}));function p(X,j,Se,Ce,R){var Y=X.getTypeChecker(),U=e.findTokenOnLeftOfPosition(j,Se);if(U){var K=!!Ce&&Ce.kind==="characterTyped";if(!(K&&(e.isInString(j,Se,U)||e.isInComment(j,Se)))){var Te=!!Ce&&Ce.kind==="invoked",ge=F(U,Se,j,Y,Te);if(ge){R.throwIfCancellationRequested();var ke=d(ge,Y,j,U,K);return R.throwIfCancellationRequested(),ke?Y.runWithCancellationToken(R,function(Pe){return ke.kind===0?N(ke.candidates,ke.resolvedSignature,ge,j,Pe):y(ke.symbol,ge,j,Pe)}):e.isSourceFileJS(j)?J(ge,X,R):void 0}}}}n.getSignatureHelpItems=p;var a;(function(X){X[X.Candidate=0]="Candidate",X[X.Type=1]="Type"})(a||(a={}));function d(X,j,Se,Ce,R){var Y=X.invocation,U=X.argumentCount;switch(Y.kind){case 0:{if(R&&!k(Ce,Y.node,Se))return;var K=[],Te=j.getResolvedSignatureForSignatureHelp(Y.node,K,U);return K.length===0?void 0:{kind:0,candidates:K,resolvedSignature:Te}}case 1:{var ge=Y.called;if(R&&!h(Ce,Se,e.isIdentifier(ge)?ge.parent:ge))return;var K=e.getPossibleGenericSignatures(ge,U,j);if(K.length!==0)return{kind:0,candidates:K,resolvedSignature:e.first(K)};var ke=j.getSymbolAtLocation(ge);return ke&&{kind:1,symbol:ke}}case 2:return{kind:0,candidates:[Y.signature],resolvedSignature:Y.signature};default:return e.Debug.assertNever(Y)}}function k(X,j,Se){if(!e.isCallOrNewExpression(j))return!1;var Ce=j.getChildren(Se);switch(X.kind){case 20:return e.contains(Ce,X);case 27:{var R=e.findContainingList(X);return!!R&&e.contains(Ce,R)}case 29:return h(X,Se,j.expression);default:return!1}}function J(X,j,Se){if(X.invocation.kind!==2){var Ce=V(X.invocation),R=e.isPropertyAccessExpression(Ce)?Ce.name.text:void 0,Y=j.getTypeChecker();return R===void 0?void 0:e.firstDefined(j.getSourceFiles(),function(U){return e.firstDefined(U.getNamedDeclarations().get(R),function(K){var Te=K.symbol&&Y.getTypeOfSymbolAtLocation(K.symbol,K),ge=Te&&Te.getCallSignatures();if(ge&&ge.length)return Y.runWithCancellationToken(Se,function(ke){return N(ge,ge[0],X,U,ke,!0)})})})}}function h(X,j,Se){for(var Ce=X.getFullStart(),R=X.parent;R;){var Y=e.findPrecedingToken(Ce,j,R,!0);if(Y)return e.rangeContainsRange(Se,Y);R=R.parent}return e.Debug.fail("Could not find preceding token")}function v(X,j,Se){var Ce=ie(X,j,Se);return!Ce||Ce.isTypeParameterList||Ce.invocation.kind!==0?void 0:{invocation:Ce.invocation.node,argumentCount:Ce.argumentCount,argumentIndex:Ce.argumentIndex}}n.getArgumentInfoForCompletions=v;function A(X,j){var Se=z(X,j);if(Se){var Ce=Se.list,R=Se.argumentIndex,Y=x(Ce);R!==0&&e.Debug.assertLessThan(R,Y);var U=Z(Ce,j);return{list:Ce,argumentIndex:R,argumentCount:Y,argumentsSpan:U}}}function z(X,j){if(X.kind===29||X.kind===20)return{list:Q(X.parent,X,j),argumentIndex:0};var Se=e.findContainingList(X);return Se&&{list:Se,argumentIndex:w(Se,X)}}function ie(X,j,Se){var Ce=X.parent;if(e.isCallOrNewExpression(Ce)){var R=Ce,Y=A(X,Se);if(!Y)return;var U=Y.list,K=Y.argumentIndex,Te=Y.argumentCount,ge=Y.argumentsSpan,ke=!!Ce.typeArguments&&Ce.typeArguments.pos===U.pos;return{isTypeParameterList:ke,invocation:{kind:0,node:R},argumentsSpan:ge,argumentIndex:K,argumentCount:Te}}else{if(e.isNoSubstitutionTemplateLiteral(X)&&e.isTaggedTemplateExpression(Ce))return e.isInsideTemplateLiteral(X,j,Se)?q(Ce,0,Se):void 0;if(e.isTemplateHead(X)&&Ce.parent.kind===209){var Pe=Ce,Ie=Pe.parent;e.Debug.assert(Pe.kind===222);var K=e.isInsideTemplateLiteral(X,j,Se)?0:1;return q(Ie,K,Se)}else if(e.isTemplateSpan(Ce)&&e.isTaggedTemplateExpression(Ce.parent.parent)){var Ge=Ce,Ie=Ce.parent.parent;if(e.isTemplateTail(X)&&!e.isInsideTemplateLiteral(X,j,Se))return;var he=Ge.parent.templateSpans.indexOf(Ge),K=O(he,X,j,Se);return q(Ie,K,Se)}else if(e.isJsxOpeningLikeElement(Ce)){var ve=Ce.attributes.pos,Ve=e.skipTrivia(Se.text,Ce.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:Ce},argumentsSpan:e.createTextSpan(ve,Ve-ve),argumentIndex:0,argumentCount:1}}else{var _e=e.getPossibleTypeArgumentsInfo(X,Se);if(_e){var Le=_e.called,qe=_e.nTypeArguments,R={kind:1,called:Le},ge=e.createTextSpanFromBounds(Le.getStart(Se),X.end);return{isTypeParameterList:!0,invocation:R,argumentsSpan:ge,argumentIndex:qe,argumentCount:qe+1}}return}}}function b(X,j,Se,Ce){return B(X,j,Se,Ce)||ie(X,j,Se)}function M(X){return e.isBinaryExpression(X.parent)?M(X.parent):X}function S(X){return e.isBinaryExpression(X.left)?S(X.left)+1:2}function B(X,j,Se,Ce){var R=H(X,Se,Ce);if(R){var Y=R.contextualType,U=R.argumentIndex,K=R.argumentCount,Te=R.argumentsSpan,ge=Y.getNonNullableType(),ke=ge.getCallSignatures();if(ke.length===1){var Pe={kind:2,signature:e.first(ke),node:X,symbol:I(ge.symbol)};return{isTypeParameterList:!1,invocation:Pe,argumentsSpan:Te,argumentIndex:U,argumentCount:K}}}}function H(X,j,Se){if(!(X.kind!==20&&X.kind!==27)){var Ce=X.parent;switch(Ce.kind){case 211:case 168:case 212:case 213:var R=A(X,j);if(!R)return;var Y=R.argumentIndex,U=R.argumentCount,K=R.argumentsSpan,Te=e.isMethodDeclaration(Ce)?Se.getContextualTypeForObjectLiteralElement(Ce):Se.getContextualType(Ce);return Te&&{contextualType:Te,argumentIndex:Y,argumentCount:U,argumentsSpan:K};case 220:{var ge=M(Ce),ke=Se.getContextualType(ge),Pe=X.kind===20?0:S(Ce)-1,Ie=S(ge);return ke&&{contextualType:ke,argumentIndex:Pe,argumentCount:Ie,argumentsSpan:e.createTextSpanFromNode(Ce)}}default:return}}}function I(X){return X.name==="__type"&&e.firstDefined(X.declarations,function(j){return e.isFunctionTypeNode(j)?j.parent.symbol:void 0})||X}function w(X,j){for(var Se=0,Ce=0,R=X.getChildren();Ce<R.length;Ce++){var Y=R[Ce];if(Y===j)break;Y.kind!==27&&Se++}return Se}function x(X){var j=X.getChildren(),Se=e.countWhere(j,function(Ce){return Ce.kind!==27});return j.length>0&&e.last(j).kind===27&&Se++,Se}function O(X,j,Se,Ce){return e.Debug.assert(Se>=j.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(j)?e.isInsideTemplateLiteral(j,Se,Ce)?0:X+2:X+1}function q(X,j,Se){var Ce=e.isNoSubstitutionTemplateLiteral(X.template)?1:X.template.templateSpans.length+1;return j!==0&&e.Debug.assertLessThan(j,Ce),{isTypeParameterList:!1,invocation:{kind:0,node:X},argumentsSpan:ne(X,Se),argumentIndex:j,argumentCount:Ce}}function Z(X,j){var Se=X.getFullStart(),Ce=e.skipTrivia(j.text,X.getEnd(),!1);return e.createTextSpan(Se,Ce-Se)}function ne(X,j){var Se=X.template,Ce=Se.getStart(),R=Se.getEnd();if(Se.kind===222){var Y=e.last(Se.templateSpans);Y.literal.getFullWidth()===0&&(R=e.skipTrivia(j.text,R,!1))}return e.createTextSpan(Ce,R-Ce)}function F(X,j,Se,Ce,R){for(var Y=function(Te){e.Debug.assert(e.rangeContainsRange(Te.parent,Te),"Not a subspan",function(){return"Child: ".concat(e.Debug.formatSyntaxKind(Te.kind),", parent: ").concat(e.Debug.formatSyntaxKind(Te.parent.kind))});var ge=b(Te,j,Se,Ce);if(ge)return{value:ge}},U=X;!e.isSourceFile(U)&&(R||!e.isBlock(U));U=U.parent){var K=Y(U);if(typeof K=="object")return K.value}}function Q(X,j,Se){var Ce=X.getChildren(Se),R=Ce.indexOf(j);return e.Debug.assert(R>=0&&Ce.length>R+1),Ce[R+1]}function V(X){return X.kind===0?e.getInvokedExpression(X.node):X.called}function re(X){return X.kind===0?X.node:X.kind===1?X.called:X.node}var T=70246400;function N(X,j,Se,Ce,R,Y){var U,K=Se.isTypeParameterList,Te=Se.argumentCount,ge=Se.argumentsSpan,ke=Se.invocation,Pe=Se.argumentIndex,Ie=re(ke),Ge=ke.kind===2?ke.symbol:R.getSymbolAtLocation(V(ke))||Y&&((U=j.declaration)===null||U===void 0?void 0:U.symbol),he=Ge?e.symbolToDisplayParts(R,Ge,Y?Ce:void 0,void 0):e.emptyArray,ve=e.map(X,function(Ar){return m(Ar,he,K,R,Ie,Ce)});Pe!==0&&e.Debug.assertLessThan(Pe,Te);for(var Ve=0,_e=0,Le=0;Le<ve.length;Le++){var qe=ve[Le];if(X[Le]===j&&(Ve=_e,qe.length>1))for(var Xe=0,De=0,Ae=qe;De<Ae.length;De++){var Ye=Ae[De];if(Ye.isVariadic||Ye.parameters.length>=Te){Ve=_e+Xe;break}Xe++}_e+=qe.length}e.Debug.assert(Ve!==-1);var Dr={items:e.flatMapToMutable(ve,e.identity),applicableSpan:ge,selectedItemIndex:Ve,argumentIndex:Pe,argumentCount:Te},br=Dr.items[Ve];if(br.isVariadic){var lr=e.findIndex(br.parameters,function(Ar){return!!Ar.isRest});-1<lr&&lr<br.parameters.length-1?Dr.argumentIndex=br.parameters.length:Dr.argumentIndex=Math.min(Dr.argumentIndex,br.parameters.length-1)}return Dr}function y(X,j,Se,Ce){var R=j.argumentCount,Y=j.argumentsSpan,U=j.invocation,K=j.argumentIndex,Te=Ce.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(X);if(Te){var ge=[D(X,Te,Ce,re(U),Se)];return{items:ge,applicableSpan:Y,selectedItemIndex:0,argumentIndex:K,argumentCount:R}}}function D(X,j,Se,Ce,R){var Y=e.symbolToDisplayParts(Se,X),U=e.createPrinter({removeComments:!0}),K=j.map(function(Pe){return ue(Pe,Se,Ce,R,U)}),Te=X.getDocumentationComment(Se),ge=X.getJsDocTags(Se),ke=Gt(Gt([],Y,!0),[e.punctuationPart(29)],!1);return{isVariadic:!1,prefixDisplayParts:ke,suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:C,parameters:K,documentation:Te,tags:ge}}var C=[e.punctuationPart(27),e.spacePart()];function m(X,j,Se,Ce,R,Y){var U=(Se?g:P)(X,Ce,R,Y);return e.map(U,function(K){var Te=K.isVariadic,ge=K.parameters,ke=K.prefix,Pe=K.suffix,Ie=Gt(Gt([],j,!0),ke,!0),Ge=Gt(Gt([],Pe,!0),u(X,R,Ce),!0),he=X.getDocumentationComment(Ce),ve=X.getJsDocTags();return{isVariadic:Te,prefixDisplayParts:Ie,suffixDisplayParts:Ge,separatorDisplayParts:C,parameters:ge,documentation:he,tags:ve}})}function u(X,j,Se){return e.mapToDisplayParts(function(Ce){Ce.writePunctuation(":"),Ce.writeSpace(" ");var R=Se.getTypePredicateOfSignature(X);R?Se.writeTypePredicate(R,j,void 0,Ce):Se.writeType(Se.getReturnTypeOfSignature(X),j,void 0,Ce)})}function g(X,j,Se,Ce){var R=(X.target||X).typeParameters,Y=e.createPrinter({removeComments:!0}),U=(R||e.emptyArray).map(function(Te){return ue(Te,j,Se,Ce,Y)}),K=X.thisParameter?[j.symbolToParameterDeclaration(X.thisParameter,Se,T)]:[];return j.getExpandedParameters(X).map(function(Te){var ge=e.factory.createNodeArray(Gt(Gt([],K,!0),e.map(Te,function(Pe){return j.symbolToParameterDeclaration(Pe,Se,T)}),!0)),ke=e.mapToDisplayParts(function(Pe){Y.writeList(2576,ge,Ce,Pe)});return{isVariadic:!1,parameters:U,prefix:[e.punctuationPart(29)],suffix:Gt([e.punctuationPart(31)],ke,!0)}})}function P(X,j,Se,Ce){var R=e.createPrinter({removeComments:!0}),Y=e.mapToDisplayParts(function(Te){if(X.typeParameters&&X.typeParameters.length){var ge=e.factory.createNodeArray(X.typeParameters.map(function(ke){return j.typeParameterToDeclaration(ke,Se,T)}));R.writeList(53776,ge,Ce,Te)}}),U=j.getExpandedParameters(X),K=j.hasEffectiveRestParameter(X)?U.length===1?function(Te){return!0}:function(Te){return!!(Te.length&&Te[Te.length-1].checkFlags&32768)}:function(Te){return!1};return U.map(function(Te){return{isVariadic:K(Te),parameters:Te.map(function(ge){return te(ge,j,Se,Ce,R)}),prefix:Gt(Gt([],Y,!0),[e.punctuationPart(20)],!1),suffix:[e.punctuationPart(21)]}})}function te(X,j,Se,Ce,R){var Y=e.mapToDisplayParts(function(Te){var ge=j.symbolToParameterDeclaration(X,Se,T);R.writeNode(4,ge,Ce,Te)}),U=j.isOptionalParameter(X.valueDeclaration),K=!!(X.checkFlags&32768);return{name:X.name,documentation:X.getDocumentationComment(j),displayParts:Y,isOptional:U,isRest:K}}function ue(X,j,Se,Ce,R){var Y=e.mapToDisplayParts(function(U){var K=j.typeParameterToDeclaration(X,Se,T);R.writeNode(4,K,Ce,U)});return{name:X.symbol.name,documentation:X.symbol.getDocumentationComment(j),displayParts:Y,isOptional:!1,isRest:!1}}})(e.SignatureHelp||(e.SignatureHelp={}))}(jr||(jr={})),function(e){(function(n){var f=30,p=function(J){return new RegExp("^\\s?/\\*\\*?\\s?".concat(J,"\\s?\\*\\/\\s?$"))};function a(J){return J.includeInlayParameterNameHints==="literals"||J.includeInlayParameterNameHints==="all"}function d(J){return J.includeInlayParameterNameHints==="literals"}function k(J){var h=J.file,v=J.program,A=J.span,z=J.cancellationToken,ie=J.preferences,b=h.text,M=v.getCompilerOptions(),S=v.getTypeChecker(),B=[];return H(h),B;function H(g){if(!(!g||g.getFullWidth()===0)){switch(g.kind){case 260:case 256:case 257:case 255:case 225:case 212:case 168:case 213:z.throwIfCancellationRequested()}if(e.textSpanIntersectsWith(A,g.pos,g.getFullWidth())&&!e.isTypeNode(g))return ie.includeInlayVariableTypeHints&&e.isVariableDeclaration(g)||ie.includeInlayPropertyDeclarationTypeHints&&e.isPropertyDeclaration(g)?ne(g):ie.includeInlayEnumMemberValueHints&&e.isEnumMember(g)?q(g):a(ie)&&(e.isCallExpression(g)||e.isNewExpression(g))?F(g):(ie.includeInlayFunctionParameterTypeHints&&e.isFunctionLikeDeclaration(g)&&e.hasContextSensitiveParameters(g)&&y(g),ie.includeInlayFunctionLikeReturnTypeHints&&I(g)&&T(g)),e.forEachChild(g,H)}}function I(g){return e.isArrowFunction(g)||e.isFunctionExpression(g)||e.isFunctionDeclaration(g)||e.isMethodDeclaration(g)||e.isGetAccessorDeclaration(g)}function w(g,P,te){B.push({text:"".concat(te?"...":"").concat(C(g,f),":"),position:P,kind:"Parameter",whitespaceAfter:!0})}function x(g,P){B.push({text:": ".concat(C(g,f)),position:P,kind:"Type",whitespaceBefore:!0})}function O(g,P){B.push({text:"= ".concat(C(g,f)),position:P,kind:"Enum",whitespaceBefore:!0})}function q(g){if(!g.initializer){var P=S.getConstantValue(g);P!==void 0&&O(P.toString(),g.end)}}function Z(g){return g.symbol&&g.symbol.flags&1536}function ne(g){if(!(!g.initializer||e.isBindingPattern(g.name))){var P=e.getEffectiveTypeAnnotationNode(g);if(!P){var te=S.getTypeAtLocation(g);if(!Z(te)){var ue=m(te);ue&&x(ue,g.name.end)}}}}function F(g){var P=g.arguments;if(!(!P||!P.length)){var te=[],ue=S.getResolvedSignatureForSignatureHelp(g,te);if(!(!ue||!te.length))for(var X=0;X<P.length;++X){var j=P[X],Se=e.skipParentheses(j);if(!(d(ie)&&!re(Se))){var Ce=S.getParameterIdentifierNameAtPosition(ue,X);if(Ce){var R=Ce[0],Y=Ce[1],U=ie.includeInlayParameterNameHintsWhenArgumentMatchesName||!Q(Se,R);if(!U&&!Y)continue;var K=e.unescapeLeadingUnderscores(R);if(V(Se,K))continue;w(K,j.getStart(),Y)}}}}}function Q(g,P){return e.isIdentifier(g)?g.text===P:e.isPropertyAccessExpression(g)?g.name.text===P:!1}function V(g,P){if(!e.isIdentifierText(P,M.target,e.getLanguageVariant(h.scriptKind)))return!1;var te=e.getLeadingCommentRanges(b,g.pos);if(!(te!=null&&te.length))return!1;var ue=p(P);return e.some(te,function(X){return ue.test(b.substring(X.pos,X.end))})}function re(g){switch(g.kind){case 218:{var P=g.operand;return e.isLiteralExpression(P)||e.isIdentifier(P)&&e.isInfinityOrNaNString(P.escapedText)}case 110:case 95:case 104:case 14:case 222:return!0;case 79:{var te=g.escapedText;return u(te)||e.isInfinityOrNaNString(te)}}return e.isLiteralExpression(g)}function T(g){if(!(e.isArrowFunction(g)&&!e.findChildOfKind(g,20,h))){var P=e.getEffectiveReturnTypeNode(g);if(!(P||!g.body)){var te=S.getSignatureFromDeclaration(g);if(te){var ue=S.getReturnTypeOfSignature(te);if(!Z(ue)){var X=m(ue);X&&x(X,N(g))}}}}}function N(g){var P=e.findChildOfKind(g,21,h);return P?P.end:g.parameters.end}function y(g){var P=S.getSignatureFromDeclaration(g);if(P)for(var te=0;te<g.parameters.length&&te<P.parameters.length;++te){var ue=g.parameters[te],X=e.getEffectiveTypeAnnotationNode(ue);if(!X){var j=D(P.parameters[te]);j&&x(j,ue.name.end)}}}function D(g){var P=g.valueDeclaration;if(!(!P||!e.isParameter(P))){var te=S.getTypeOfSymbolAtLocation(g,P);if(!Z(te))return m(te)}}function C(g,P){return g.length>P?g.substr(0,P-3)+"...":g}function m(g){var P=71286784,te={removeComments:!0},ue=e.createPrinter(te);return e.usingSingleLineStringWriter(function(X){var j=S.typeToTypeNode(g,void 0,P,X);e.Debug.assertIsDefined(j,"should always get typenode"),ue.writeNode(4,j,h,X)})}function u(g){return g==="undefined"}}n.provideInlayHints=k})(e.InlayHints||(e.InlayHints={}))}(jr||(jr={})),function(e){var n=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function f(k){var J=e.createGetCanonicalFileName(k.useCaseSensitiveFileNames()),h=k.getCurrentDirectory(),v=new e.Map,A=new e.Map;return{tryGetSourcePosition:b,tryGetGeneratedPosition:M,toLineColumnOffset:I,clearCache:w};function z(x){return e.toPath(x,h,J)}function ie(x,O){var q=z(x),Z=A.get(q);if(Z)return Z;var ne;if(k.getDocumentPositionMapper)ne=k.getDocumentPositionMapper(x,O);else if(k.readFile){var F=H(x);ne=F&&e.getDocumentPositionMapper({getSourceFileLike:H,getCanonicalFileName:J,log:function(Q){return k.log(Q)}},x,e.getLineInfo(F.text,e.getLineStarts(F)),function(Q){return!k.fileExists||k.fileExists(Q)?k.readFile(Q):void 0})}return A.set(q,ne||e.identitySourceMapConsumer),ne||e.identitySourceMapConsumer}function b(x){if(e.isDeclarationFileName(x.fileName)){var O=S(x.fileName);if(O){var q=ie(x.fileName).getSourcePosition(x);return!q||q===x?void 0:b(q)||q}}}function M(x){if(!e.isDeclarationFileName(x.fileName)){var O=S(x.fileName);if(O){var q=k.getProgram();if(!q.isSourceOfProjectReferenceRedirect(O.fileName)){var Z=q.getCompilerOptions(),ne=e.outFile(Z),F=ne?e.removeFileExtension(ne)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(x.fileName,q.getCompilerOptions(),h,q.getCommonSourceDirectory(),J);if(F!==void 0){var Q=ie(F,x.fileName).getGeneratedPosition(x);return Q===x?void 0:Q}}}}}function S(x){var O=k.getProgram();if(O){var q=z(x),Z=O.getSourceFileByPath(q);return Z&&Z.resolvedPath===q?Z:void 0}}function B(x){var O=z(x),q=v.get(O);if(q!==void 0)return q||void 0;if(!k.readFile||k.fileExists&&!k.fileExists(O)){v.set(O,!1);return}var Z=k.readFile(O),ne=Z?d(Z):!1;return v.set(O,ne),ne||void 0}function H(x){return k.getSourceFileLike?k.getSourceFileLike(x):S(x)||B(x)}function I(x,O){var q=H(x);return q.getLineAndCharacterOfPosition(O)}function w(){v.clear(),A.clear()}}e.getSourceMapper=f;function p(k,J,h,v){var A=e.tryGetSourceMappingURL(h);if(A){var z=n.exec(A);if(z){if(z[1]){var ie=z[1];return a(k,e.base64decode(e.sys,ie),J)}A=void 0}}var b=[];A&&b.push(A),b.push(J+".map");for(var M=A&&e.getNormalizedAbsolutePath(A,e.getDirectoryPath(J)),S=0,B=b;S<B.length;S++){var H=B[S],I=e.getNormalizedAbsolutePath(H,e.getDirectoryPath(J)),w=v(I,M);if(e.isString(w))return a(k,w,I);if(w!==void 0)return w||void 0}}e.getDocumentPositionMapper=p;function a(k,J,h){var v=e.tryParseRawSourceMap(J);if(!(!v||!v.sources||!v.file||!v.mappings)&&!(v.sourcesContent&&v.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(k,v,h)}function d(k,J){return{text:k,lineMap:J,getLineAndCharacterOfPosition:function(h){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),h)}}}}(jr||(jr={})),function(e){var n=new e.Map;function f(w,x,O){x.getSemanticDiagnostics(w,O);var q=[],Z=x.getTypeChecker(),ne=w.impliedNodeFormat===e.ModuleKind.CommonJS||e.fileExtensionIsOneOf(w.fileName,[".cts",".cjs"]);!ne&&w.commonJsModuleIndicator&&(e.programContainsEsModules(x)||e.compilerOptionsIndicateEsModules(x.getCompilerOptions()))&&p(w)&&q.push(e.createDiagnosticForNode(v(w.commonJsModuleIndicator),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));var F=e.isSourceFileJS(w);if(n.clear(),C(w),e.getAllowSyntheticDefaultImports(x.getCompilerOptions()))for(var Q=0,V=w.imports;Q<V.length;Q++){var re=V[Q],T=e.importFromModuleSpecifier(re),N=d(T);if(N){var y=e.getResolvedModule(w,re.text,e.getModeForUsageLocation(w,re)),D=y&&x.getSourceFile(y.resolvedFileName);D&&D.externalModuleIndicator&&e.isExportAssignment(D.externalModuleIndicator)&&D.externalModuleIndicator.isExportEquals&&q.push(e.createDiagnosticForNode(N,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return e.addRange(q,w.bindSuggestionDiagnostics),e.addRange(q,x.getSuggestionDiagnostics(w,O)),q.sort(function(m,u){return m.start-u.start});function C(m){if(F)H(m,Z)&&q.push(e.createDiagnosticForNode(e.isVariableDeclaration(m.parent)?m.parent.name:m,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(m)&&m.parent===w&&m.declarationList.flags&2&&m.declarationList.declarations.length===1){var u=m.declarationList.declarations[0].initializer;u&&e.isRequireCall(u,!0)&&q.push(e.createDiagnosticForNode(u,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(m)&&q.push(e.createDiagnosticForNode(m.name||m,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}I(m)&&k(m,Z,q),m.forEachChild(C)}}e.computeSuggestionDiagnostics=f;function p(w){return w.statements.some(function(x){switch(x.kind){case 236:return x.declarationList.declarations.some(function(Z){return!!Z.initializer&&e.isRequireCall(a(Z.initializer),!0)});case 237:{var O=x.expression;if(!e.isBinaryExpression(O))return e.isRequireCall(O,!0);var q=e.getAssignmentDeclarationKind(O);return q===1||q===2}default:return!1}})}function a(w){return e.isPropertyAccessExpression(w)?a(w.expression):w}function d(w){switch(w.kind){case 265:var x=w.importClause,O=w.moduleSpecifier;return x&&!x.name&&x.namedBindings&&x.namedBindings.kind===267&&e.isStringLiteral(O)?x.namedBindings.name:void 0;case 264:return w.name;default:return}}function k(w,x,O){J(w,x)&&!n.has(B(w))&&O.push(e.createDiagnosticForNode(!w.name&&e.isVariableDeclaration(w.parent)&&e.isIdentifier(w.parent.name)?w.parent.name:w,e.Diagnostics.This_may_be_converted_to_an_async_function))}function J(w,x){return!e.isAsyncFunction(w)&&w.body&&e.isBlock(w.body)&&A(w.body,x)&&h(w,x)}function h(w,x){var O=x.getSignatureFromDeclaration(w),q=O?x.getReturnTypeOfSignature(O):void 0;return!!q&&!!x.getPromisedTypeOfPromise(q)}e.returnsPromise=h;function v(w){return e.isBinaryExpression(w)?w.left:w}function A(w,x){return!!e.forEachReturnStatement(w,function(O){return z(O,x)})}function z(w,x){return e.isReturnStatement(w)&&!!w.expression&&ie(w.expression,x)}e.isReturnStatementWithFixablePromiseHandler=z;function ie(w,x){if(!b(w)||!M(w)||!w.arguments.every(function(q){return S(q,x)}))return!1;for(var O=w.expression.expression;b(O)||e.isPropertyAccessExpression(O);)if(e.isCallExpression(O)){if(!M(O)||!O.arguments.every(function(q){return S(q,x)}))return!1;O=O.expression.expression}else O=O.expression;return!0}e.isFixablePromiseHandler=ie;function b(w){return e.isCallExpression(w)&&(e.hasPropertyAccessExpressionWithName(w,"then")||e.hasPropertyAccessExpressionWithName(w,"catch")||e.hasPropertyAccessExpressionWithName(w,"finally"))}function M(w){var x=w.expression.name.text,O=x==="then"?2:x==="catch"||x==="finally"?1:0;return w.arguments.length>O?!1:w.arguments.length<O?!0:O===1||e.some(w.arguments,function(q){return q.kind===104||e.isIdentifier(q)&&q.text==="undefined"})}function S(w,x){switch(w.kind){case 255:case 212:var O=e.getFunctionFlags(w);if(O&1)return!1;case 213:n.set(B(w),!0);case 104:return!0;case 79:case 205:{var q=x.getSymbolAtLocation(w);return q?x.isUndefinedSymbol(q)||e.some(e.skipAlias(q,x).declarations,function(Z){return e.isFunctionLike(Z)||e.hasInitializer(Z)&&!!Z.initializer&&e.isFunctionLike(Z.initializer)}):!1}default:return!1}}function B(w){return"".concat(w.pos.toString(),":").concat(w.end.toString())}function H(w,x){var O,q,Z,ne;if(w.kind===212){if(e.isVariableDeclaration(w.parent)&&(!((O=w.symbol.members)===null||O===void 0)&&O.size))return!0;var F=x.getSymbolOfExpando(w,!1);return!!(F&&(!((q=F.exports)===null||q===void 0)&&q.size||!((Z=F.members)===null||Z===void 0)&&Z.size))}return w.kind===255?!!(!((ne=w.symbol.members)===null||ne===void 0)&&ne.size):!1}function I(w){switch(w.kind){case 255:case 168:case 212:case 213:return!0;default:return!1}}e.canBeConvertedToAsync=I}(jr||(jr={})),function(e){(function(n){var f=70246400;function p(v,A,z){var ie=a(v,A,z);if(ie!=="")return ie;var b=e.getCombinedLocalAndExportSymbolFlags(A);return b&32?e.getDeclarationOfKind(A,225)?"local class":"class":b&384?"enum":b&524288?"type":b&64?"interface":b&262144?"type parameter":b&8?"enum member":b&2097152?"alias":b&1536?"module":ie}n.getSymbolKind=p;function a(v,A,z){var ie=v.getRootSymbols(A);if(ie.length===1&&e.first(ie).flags&8192&&v.getTypeOfSymbolAtLocation(A,z).getNonNullableType().getCallSignatures().length!==0)return"method";if(v.isUndefinedSymbol(A))return"var";if(v.isArgumentsSymbol(A))return"local var";if(z.kind===108&&e.isExpression(z))return"parameter";var b=e.getCombinedLocalAndExportSymbolFlags(A);if(b&3)return e.isFirstDeclarationOfSymbolParameter(A)?"parameter":A.valueDeclaration&&e.isVarConst(A.valueDeclaration)?"const":e.forEach(A.declarations,e.isLet)?"let":h(A)?"local var":"var";if(b&16)return h(A)?"local function":"function";if(b&32768)return"getter";if(b&65536)return"setter";if(b&8192)return"method";if(b&16384)return"constructor";if(b&4){if(b&33554432&&A.checkFlags&6){var M=e.forEach(v.getRootSymbols(A),function(B){var H=B.getFlags();if(H&98311)return"property"});if(!M){var S=v.getTypeOfSymbolAtLocation(A,z);return S.getCallSignatures().length?"method":"property"}return M}switch(z.parent&&z.parent.kind){case 279:case 277:case 278:return z.kind===79?"property":"JSX attribute";case 284:return"JSX attribute";default:return"property"}}return""}function d(v){if(v.declarations&&v.declarations.length){var A=v.declarations,z=A[0],ie=A.slice(1),b=e.length(ie)&&e.isDeprecatedDeclaration(z)&&e.some(ie,function(S){return!e.isDeprecatedDeclaration(S)})?8192:0,M=e.getNodeModifiers(z,b);if(M)return M.split(",")}return[]}function k(v,A){if(!A)return"";var z=new e.Set(d(A));if(A.flags&2097152){var ie=v.getAliasedSymbol(A);ie!==A&&e.forEach(d(ie),function(b){z.add(b)})}return A.flags&16777216&&z.add("optional"),z.size>0?e.arrayFrom(z.values()).join(","):""}n.getSymbolModifiers=k;function J(v,A,z,ie,b,M,S){var B;M===void 0&&(M=e.getMeaningFromLocation(b));var H=[],I=[],w=[],x=e.getCombinedLocalAndExportSymbolFlags(A),O=M&1?a(v,A,b):"",q=!1,Z=b.kind===108&&e.isInExpressionContext(b),ne,F,Q,V,re=!1;if(b.kind===108&&!Z)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(O!==""||x&32||x&2097152){(O==="getter"||O==="setter")&&(O="property");var T=void 0;if(ne=Z?v.getTypeAtLocation(b):v.getTypeOfSymbolAtLocation(A,b),b.parent&&b.parent.kind===205){var N=b.parent.name;(N===b||N&&N.getFullWidth()===0)&&(b=b.parent)}var y=void 0;if(e.isCallOrNewExpression(b)?y=b:(e.isCallExpressionTarget(b)||e.isNewExpressionTarget(b)||b.parent&&(e.isJsxOpeningLikeElement(b.parent)||e.isTaggedTemplateExpression(b.parent))&&e.isFunctionLike(A.valueDeclaration))&&(y=b.parent),y){T=v.getResolvedSignature(y);var D=y.kind===208||e.isCallExpression(y)&&y.expression.kind===106,C=D?ne.getConstructSignatures():ne.getCallSignatures();if(T&&!e.contains(C,T.target)&&!e.contains(C,T)&&(T=C.length?C[0]:void 0),T){switch(D&&x&32?(O="constructor",Ve(ne.symbol,O)):x&2097152?(O="alias",_e(O),H.push(e.spacePart()),D&&(T.flags&4&&(H.push(e.keywordPart(126)),H.push(e.spacePart())),H.push(e.keywordPart(103)),H.push(e.spacePart())),ve(A)):Ve(A,O),O){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":H.push(e.punctuationPart(58)),H.push(e.spacePart()),!(e.getObjectFlags(ne)&16)&&ne.symbol&&(e.addRange(H,e.symbolToDisplayParts(v,ne.symbol,ie,void 0,5)),H.push(e.lineBreakPart())),D&&(T.flags&4&&(H.push(e.keywordPart(126)),H.push(e.spacePart())),H.push(e.keywordPart(103)),H.push(e.spacePart())),Le(T,C,262144);break;default:Le(T,C)}q=!0,re=C.length>1}}else if(e.isNameOfFunctionDeclaration(b)&&!(x&98304)||b.kind===134&&b.parent.kind===170){var m=b.parent,u=A.declarations&&e.find(A.declarations,function(Xe){return Xe===(b.kind===134?m.parent:m)});if(u){var C=m.kind===170?ne.getNonNullableType().getConstructSignatures():ne.getNonNullableType().getCallSignatures();v.isImplementationOfOverload(m)?T=C[0]:T=v.getSignatureFromDeclaration(m),m.kind===170?(O="constructor",Ve(ne.symbol,O)):Ve(m.kind===173&&!(ne.symbol.flags&2048||ne.symbol.flags&4096)?ne.symbol:A,O),T&&Le(T,C),q=!0,re=C.length>1}}}if(x&32&&!q&&!Z&&(Ge(),e.getDeclarationOfKind(A,225)?_e("local class"):H.push(e.keywordPart(84)),H.push(e.spacePart()),ve(A),qe(A,z)),x&64&&M&2&&(Ie(),H.push(e.keywordPart(118)),H.push(e.spacePart()),ve(A),qe(A,z)),x&524288&&M&2&&(Ie(),H.push(e.keywordPart(151)),H.push(e.spacePart()),ve(A),qe(A,z),H.push(e.spacePart()),H.push(e.operatorPart(63)),H.push(e.spacePart()),e.addRange(H,e.typeToDisplayParts(v,v.getDeclaredTypeOfSymbol(A),ie,8388608))),x&384&&(Ie(),e.some(A.declarations,function(Xe){return e.isEnumDeclaration(Xe)&&e.isEnumConst(Xe)})&&(H.push(e.keywordPart(85)),H.push(e.spacePart())),H.push(e.keywordPart(92)),H.push(e.spacePart()),ve(A)),x&1536&&!Z){Ie();var g=e.getDeclarationOfKind(A,260),P=g&&g.name&&g.name.kind===79;H.push(e.keywordPart(P?142:141)),H.push(e.spacePart()),ve(A)}if(x&262144&&M&2)if(Ie(),H.push(e.punctuationPart(20)),H.push(e.textPart("type parameter")),H.push(e.punctuationPart(21)),H.push(e.spacePart()),ve(A),A.parent)he(),ve(A.parent,ie),qe(A.parent,ie);else{var te=e.getDeclarationOfKind(A,162);if(te===void 0)return e.Debug.fail();var g=te.parent;if(g)if(e.isFunctionLikeKind(g.kind)){he();var T=v.getSignatureFromDeclaration(g);g.kind===174?(H.push(e.keywordPart(103)),H.push(e.spacePart())):g.kind!==173&&g.name&&ve(g.symbol),e.addRange(H,e.signatureToDisplayParts(v,T,z,32))}else g.kind===258&&(he(),H.push(e.keywordPart(151)),H.push(e.spacePart()),ve(g.symbol),qe(g.symbol,z))}if(x&8){O="enum member",Ve(A,"enum member");var g=(B=A.declarations)===null||B===void 0?void 0:B[0];if((g==null?void 0:g.kind)===297){var ue=v.getConstantValue(g);ue!==void 0&&(H.push(e.spacePart()),H.push(e.operatorPart(63)),H.push(e.spacePart()),H.push(e.displayPart(e.getTextOfConstantValue(ue),typeof ue=="number"?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}}if(A.flags&2097152){if(Ie(),!q){var X=v.getAliasedSymbol(A);if(X!==A&&X.declarations&&X.declarations.length>0){var j=X.declarations[0],Se=e.getNameOfDeclaration(j);if(Se){var Ce=e.isModuleWithStringLiteralName(j)&&e.hasSyntacticModifier(j,2),R=A.name!=="default"&&!Ce,Y=J(v,X,e.getSourceFileOfNode(j),j,Se,M,R?A:X);H.push.apply(H,Y.displayParts),H.push(e.lineBreakPart()),Q=Y.documentation,V=Y.tags}else Q=X.getContextualDocumentationComment(j,v),V=X.getJsDocTags(v)}}if(A.declarations)switch(A.declarations[0].kind){case 263:H.push(e.keywordPart(93)),H.push(e.spacePart()),H.push(e.keywordPart(142));break;case 270:H.push(e.keywordPart(93)),H.push(e.spacePart()),H.push(e.keywordPart(A.declarations[0].isExportEquals?63:88));break;case 274:H.push(e.keywordPart(93));break;default:H.push(e.keywordPart(100))}H.push(e.spacePart()),ve(A),e.forEach(A.declarations,function(Xe){if(Xe.kind===264){var De=Xe;if(e.isExternalModuleImportEqualsDeclaration(De))H.push(e.spacePart()),H.push(e.operatorPart(63)),H.push(e.spacePart()),H.push(e.keywordPart(145)),H.push(e.punctuationPart(20)),H.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(De)),e.SymbolDisplayPartKind.stringLiteral)),H.push(e.punctuationPart(21));else{var Ae=v.getSymbolAtLocation(De.moduleReference);Ae&&(H.push(e.spacePart()),H.push(e.operatorPart(63)),H.push(e.spacePart()),ve(Ae,ie))}return!0}})}if(!q)if(O!==""){if(ne){if(Z?(Ie(),H.push(e.keywordPart(108))):Ve(A,O),O==="property"||O==="JSX attribute"||x&3||O==="local var"||Z){if(H.push(e.punctuationPart(58)),H.push(e.spacePart()),ne.symbol&&ne.symbol.flags&262144){var U=e.mapToDisplayParts(function(Xe){var De=v.typeParameterToDeclaration(ne,ie,f);Pe().writeNode(4,De,e.getSourceFileOfNode(e.getParseTreeNode(ie)),Xe)});e.addRange(H,U)}else e.addRange(H,e.typeToDisplayParts(v,ne,ie));if(A.target&&A.target.tupleLabelDeclaration){var K=A.target.tupleLabelDeclaration;e.Debug.assertNode(K.name,e.isIdentifier),H.push(e.spacePart()),H.push(e.punctuationPart(20)),H.push(e.textPart(e.idText(K.name))),H.push(e.punctuationPart(21))}}else if(x&16||x&8192||x&16384||x&131072||x&98304||O==="method"){var C=ne.getNonNullableType().getCallSignatures();C.length&&(Le(C[0],C),re=C.length>1)}}}else O=p(v,A,b);if(I.length===0&&!re&&(I=A.getContextualDocumentationComment(ie,v)),I.length===0&&x&4&&A.parent&&A.declarations&&e.forEach(A.parent.declarations,function(Xe){return Xe.kind===303}))for(var Te=0,ge=A.declarations;Te<ge.length;Te++){var g=ge[Te];if(!(!g.parent||g.parent.kind!==220)){var ke=v.getSymbolAtLocation(g.parent.right);if(ke&&(I=ke.getDocumentationComment(v),w=ke.getJsDocTags(v),I.length>0))break}}return w.length===0&&!re&&(w=A.getJsDocTags(v)),I.length===0&&Q&&(I=Q),w.length===0&&V&&(w=V),{displayParts:H,documentation:I,symbolKind:O,tags:w.length===0?void 0:w};function Pe(){return F||(F=e.createPrinter({removeComments:!0})),F}function Ie(){H.length&&H.push(e.lineBreakPart()),Ge()}function Ge(){S&&(_e("alias"),H.push(e.spacePart()))}function he(){H.push(e.spacePart()),H.push(e.keywordPart(101)),H.push(e.spacePart())}function ve(Xe,De){S&&Xe===A&&(Xe=S);var Ae=e.symbolToDisplayParts(v,Xe,De||z,void 0,7);e.addRange(H,Ae),A.flags&16777216&&H.push(e.punctuationPart(57))}function Ve(Xe,De){Ie(),De&&(_e(De),Xe&&!e.some(Xe.declarations,function(Ae){return e.isArrowFunction(Ae)||(e.isFunctionExpression(Ae)||e.isClassExpression(Ae))&&!Ae.name})&&(H.push(e.spacePart()),ve(Xe)))}function _e(Xe){switch(Xe){case"var":case"function":case"let":case"const":case"constructor":H.push(e.textOrKeywordPart(Xe));return;default:H.push(e.punctuationPart(20)),H.push(e.textOrKeywordPart(Xe)),H.push(e.punctuationPart(21));return}}function Le(Xe,De,Ae){Ae===void 0&&(Ae=0),e.addRange(H,e.signatureToDisplayParts(v,Xe,ie,Ae|32)),De.length>1&&(H.push(e.spacePart()),H.push(e.punctuationPart(20)),H.push(e.operatorPart(39)),H.push(e.displayPart((De.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),H.push(e.spacePart()),H.push(e.textPart(De.length===2?"overload":"overloads")),H.push(e.punctuationPart(21))),I=Xe.getDocumentationComment(v),w=Xe.getJsDocTags(),De.length>1&&I.length===0&&w.length===0&&(I=De[0].getDocumentationComment(v),w=De[0].getJsDocTags())}function qe(Xe,De){var Ae=e.mapToDisplayParts(function(Ye){var Dr=v.symbolToTypeParameterDeclarations(Xe,De,f);Pe().writeList(53776,Dr,e.getSourceFileOfNode(e.getParseTreeNode(De)),Ye)});e.addRange(H,Ae)}}n.getSymbolDisplayPartsDocumentationAndSymbolKind=J;function h(v){return v.parent?!1:e.forEach(v.declarations,function(A){if(A.kind===212)return!0;if(A.kind!==253&&A.kind!==255)return!1;for(var z=A.parent;!e.isFunctionBlock(z);z=z.parent)if(z.kind===303||z.kind===261)return!1;return!0})}})(e.SymbolDisplay||(e.SymbolDisplay={}))}(jr||(jr={})),function(e){function n(d,k){var J=[],h=k.compilerOptions?a(k.compilerOptions,J):{},v=e.getDefaultCompilerOptions();for(var A in v)e.hasProperty(v,A)&&h[A]===void 0&&(h[A]=v[A]);for(var z=0,ie=e.transpileOptionValueCompilerOptions;z<ie.length;z++){var b=ie[z];h[b.name]=b.transpileOptionValue}h.suppressOutputPathCheck=!0,h.allowNonTsExtensions=!0;var M=k.fileName||(k.compilerOptions&&k.compilerOptions.jsx?"module.tsx":"module.ts"),S=e.createSourceFile(M,d,e.getEmitScriptTarget(h));k.moduleName&&(S.moduleName=k.moduleName),k.renamedDependencies&&(S.renamedDependencies=new e.Map(e.getEntries(k.renamedDependencies)));var B=e.getNewLineCharacter(h),H,I,w={getSourceFile:function(O){return O===e.normalizePath(M)?S:void 0},writeFile:function(O,q){e.fileExtensionIs(O,".map")?(e.Debug.assertEqual(I,void 0,"Unexpected multiple source map outputs, file:",O),I=q):(e.Debug.assertEqual(H,void 0,"Unexpected multiple outputs, file:",O),H=q)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(O){return O},getCurrentDirectory:function(){return""},getNewLine:function(){return B},fileExists:function(O){return O===M},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},x=e.createProgram([M],h,w);return k.reportDiagnostics&&(e.addRange(J,x.getSyntacticDiagnostics(S)),e.addRange(J,x.getOptionsDiagnostics())),x.emit(void 0,void 0,void 0,void 0,k.transformers),H===void 0?e.Debug.fail("Output generation failed"):{outputText:H,diagnostics:J,sourceMapText:I}}e.transpileModule=n;function f(d,k,J,h,v){var A=n(d,{compilerOptions:k,fileName:J,reportDiagnostics:!!h,moduleName:v});return e.addRange(h,A.diagnostics),A.outputText}e.transpile=f;var p;function a(d,k){p=p||e.filter(e.optionDeclarations,function(z){return typeof z.type=="object"&&!e.forEachEntry(z.type,function(ie){return typeof ie!="number"})}),d=e.cloneCompilerOptions(d);for(var J=function(z){if(!e.hasProperty(d,z.name))return"continue";var ie=d[z.name];e.isString(ie)?d[z.name]=e.parseCustomTypeOption(z,ie,k):e.forEachEntry(z.type,function(b){return b===ie})||k.push(e.createCompilerDiagnosticForInvalidCustomType(z))},h=0,v=p;h<v.length;h++){var A=v[h];J(A)}return d}e.fixupCompilerOptions=a}(jr||(jr={})),function(e){(function(n){(function(p){p[p.FormatDocument=0]="FormatDocument",p[p.FormatSelection=1]="FormatSelection",p[p.FormatOnEnter=2]="FormatOnEnter",p[p.FormatOnSemicolon=3]="FormatOnSemicolon",p[p.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",p[p.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace"})(n.FormattingRequestKind||(n.FormattingRequestKind={}));var f=function(){function p(a,d,k){this.sourceFile=a,this.formattingRequestKind=d,this.options=k}return p.prototype.updateContext=function(a,d,k,J,h){this.currentTokenSpan=e.Debug.checkDefined(a),this.currentTokenParent=e.Debug.checkDefined(d),this.nextTokenSpan=e.Debug.checkDefined(k),this.nextTokenParent=e.Debug.checkDefined(J),this.contextNode=e.Debug.checkDefined(h),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},p.prototype.ContextNodeAllOnSameLine=function(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},p.prototype.NextNodeAllOnSameLine=function(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},p.prototype.TokensAreOnSameLine=function(){if(this.tokensAreOnSameLine===void 0){var a=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,d=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=a===d}return this.tokensAreOnSameLine},p.prototype.ContextNodeBlockIsOnOneLine=function(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},p.prototype.NextNodeBlockIsOnOneLine=function(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},p.prototype.NodeIsOnOneLine=function(a){var d=this.sourceFile.getLineAndCharacterOfPosition(a.getStart(this.sourceFile)).line,k=this.sourceFile.getLineAndCharacterOfPosition(a.getEnd()).line;return d===k},p.prototype.BlockIsOnOneLine=function(a){var d=e.findChildOfKind(a,18,this.sourceFile),k=e.findChildOfKind(a,19,this.sourceFile);if(d&&k){var J=this.sourceFile.getLineAndCharacterOfPosition(d.getEnd()).line,h=this.sourceFile.getLineAndCharacterOfPosition(k.getStart(this.sourceFile)).line;return J===h}return!1},p}();n.FormattingContext=f})(e.formatting||(e.formatting={}))}(jr||(jr={})),function(e){(function(n){var f=e.createScanner(99,!1,0),p=e.createScanner(99,!1,1),a;(function(k){k[k.Scan=0]="Scan",k[k.RescanGreaterThanToken=1]="RescanGreaterThanToken",k[k.RescanSlashToken=2]="RescanSlashToken",k[k.RescanTemplateToken=3]="RescanTemplateToken",k[k.RescanJsxIdentifier=4]="RescanJsxIdentifier",k[k.RescanJsxText=5]="RescanJsxText",k[k.RescanJsxAttributeValue=6]="RescanJsxAttributeValue"})(a||(a={}));function d(k,J,h,v,A){var z=J===1?p:f;z.setText(k),z.setTextPos(h);var ie=!0,b,M,S,B,H,I=A({advance:w,readTokenInfo:V,readEOFTokenRange:T,isOnToken:N,isOnEOF:y,getCurrentLeadingTrivia:function(){return b},lastTrailingTriviaWasNewLine:function(){return ie},skipToEndOf:C,skipToStartOf:m});return H=void 0,z.setText(void 0),I;function w(){H=void 0;var u=z.getStartPos()!==h;u?ie=!!M&&e.last(M).kind===4:z.scan(),b=void 0,M=void 0;for(var g=z.getStartPos();g<v;){var P=z.getToken();if(!e.isTrivia(P))break;z.scan();var te={pos:g,end:z.getStartPos(),kind:P};g=z.getStartPos(),b=e.append(b,te)}S=z.getStartPos()}function x(u){switch(u.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1}function O(u){if(u.parent)switch(u.parent.kind){case 284:case 279:case 280:case 278:return e.isKeyword(u.kind)||u.kind===79}return!1}function q(u){return e.isJsxText(u)}function Z(u){return u.kind===13}function ne(u){return u.kind===16||u.kind===17}function F(u){return u.parent&&e.isJsxAttribute(u.parent)&&u.parent.initializer===u}function Q(u){return u===43||u===68}function V(u){e.Debug.assert(N());var g=x(u)?1:Z(u)?2:ne(u)?3:O(u)?4:q(u)?5:F(u)?6:0;if(H&&g===B)return D(H,u);z.getStartPos()!==S&&(e.Debug.assert(H!==void 0),z.setTextPos(S),z.scan());var P=re(u,g),te=n.createTextRangeWithKind(z.getStartPos(),z.getTextPos(),P);for(M&&(M=void 0);z.getStartPos()<v&&(P=z.scan(),!!e.isTrivia(P));){var ue=n.createTextRangeWithKind(z.getStartPos(),z.getTextPos(),P);if(M||(M=[]),M.push(ue),P===4){z.scan();break}}return H={leadingTrivia:b,trailingTrivia:M,token:te},D(H,u)}function re(u,g){var P=z.getToken();switch(B=0,g){case 1:if(P===31){B=1;var te=z.reScanGreaterToken();return e.Debug.assert(u.kind===te),te}break;case 2:if(Q(P)){B=2;var te=z.reScanSlashToken();return e.Debug.assert(u.kind===te),te}break;case 3:if(P===19)return B=3,z.reScanTemplateToken(!1);break;case 4:return B=4,z.scanJsxIdentifier();case 5:return B=5,z.reScanJsxToken(!1);case 6:return B=6,z.reScanJsxAttributeValue();case 0:break;default:e.Debug.assertNever(g)}return P}function T(){return e.Debug.assert(y()),n.createTextRangeWithKind(z.getStartPos(),z.getTextPos(),1)}function N(){var u=H?H.token.kind:z.getToken(),g=H?H.token.pos:z.getStartPos();return g<v&&u!==1&&!e.isTrivia(u)}function y(){var u=H?H.token.kind:z.getToken();return u===1}function D(u,g){return e.isToken(g)&&u.token.kind!==g.kind&&(u.token.kind=g.kind),u}function C(u){z.setTextPos(u.end),S=z.getStartPos(),B=void 0,H=void 0,ie=!1,b=void 0,M=void 0}function m(u){z.setTextPos(u.pos),S=z.getStartPos(),B=void 0,H=void 0,ie=!1,b=void 0,M=void 0}}n.getFormattingScanner=d})(e.formatting||(e.formatting={}))}(jr||(jr={})),function(e){(function(n){n.anyContext=e.emptyArray,function(f){f[f.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",f[f.StopProcessingTokenActions=2]="StopProcessingTokenActions",f[f.InsertSpace=4]="InsertSpace",f[f.InsertNewLine=8]="InsertNewLine",f[f.DeleteSpace=16]="DeleteSpace",f[f.DeleteToken=32]="DeleteToken",f[f.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",f[f.StopAction=3]="StopAction",f[f.ModifySpaceAction=28]="ModifySpaceAction",f[f.ModifyTokenAction=96]="ModifyTokenAction"}(n.RuleAction||(n.RuleAction={})),function(f){f[f.None=0]="None",f[f.CanDeleteNewLines=1]="CanDeleteNewLines"}(n.RuleFlags||(n.RuleFlags={}))})(e.formatting||(e.formatting={}))}(jr||(jr={})),function(e){(function(n){function f(){for(var Ke=[],Me=0;Me<=159;Me++)Me!==1&&Ke.push(Me);function Hr(){for(var ir=[],Or=0;Or<arguments.length;Or++)ir[Or]=arguments[Or];return{tokens:Ke.filter(function(sr){return!ir.some(function(ye){return ye===sr})}),isSpecific:!1}}var ur={tokens:Ke,isSpecific:!1},gr=a(Gt(Gt([],Ke,!0),[3],!1)),de=a(Gt(Gt([],Ke,!0),[1],!1)),Fe=k(81,159),$e=k(29,78),Sr=[101,102,159,127,139],Pr=[45,46,54,53],He=[8,9,79,20,22,18,108,103],pr=[79,20,108,103],Jr=[79,21,23,103],ze=[79,20,108,103],Lr=[79,21,23,103],Yr=[2,3],lt=Gt([79],e.typeKeywords,!0),tt=gr,Rt=a([79,3,84,93,100]),cn=a([21,3,90,111,96,91]),bn=[p("IgnoreBeforeComment",ur,Yr,n.anyContext,1),p("IgnoreAfterLineComment",2,ur,n.anyContext,1),p("NotSpaceBeforeColon",ur,58,[R,B,H],16),p("SpaceAfterColon",58,ur,[R,B],4),p("NoSpaceBeforeQuestionMark",ur,57,[R,B,H],16),p("SpaceAfterQuestionMarkInConditionalOperator",57,ur,[R,w],4),p("NoSpaceAfterQuestionMark",57,ur,[R],16),p("NoSpaceBeforeDot",ur,[24,28],[R],16),p("NoSpaceAfterDot",[24,28],ur,[R],16),p("NoSpaceBetweenImportParenInImportType",100,20,[R,Ce],16),p("NoSpaceAfterUnaryPrefixOperator",Pr,He,[R,B],16),p("NoSpaceAfterUnaryPreincrementOperator",45,pr,[R],16),p("NoSpaceAfterUnaryPredecrementOperator",46,ze,[R],16),p("NoSpaceBeforeUnaryPostincrementOperator",Jr,45,[R,br],16),p("NoSpaceBeforeUnaryPostdecrementOperator",Lr,46,[R,br],16),p("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[R,S],4),p("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[R,S],4),p("SpaceAfterAddWhenFollowedByPreincrement",39,45,[R,S],4),p("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[R,S],4),p("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[R,S],4),p("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[R,S],4),p("NoSpaceAfterCloseBrace",19,[27,26],[R],16),p("NewLineBeforeCloseBraceInBlockContext",gr,19,[Z],8),p("SpaceAfterCloseBrace",19,Hr(21),[R,C],4),p("SpaceBetweenCloseBraceAndElse",19,91,[R],4),p("SpaceBetweenCloseBraceAndWhile",19,115,[R],4),p("NoSpaceBetweenEmptyBraceBrackets",18,19,[R,u],16),p("SpaceAfterConditionalClosingParen",21,22,[m],4),p("NoSpaceBetweenFunctionKeywordAndStar",98,41,[N],16),p("SpaceAfterStarInGeneratorDeclaration",41,79,[N],4),p("SpaceAfterFunctionInFuncDecl",98,ur,[re],4),p("NewLineAfterOpenBraceInBlockContext",18,ur,[Z],8),p("SpaceAfterGetSetInMember",[136,148],79,[re],4),p("NoSpaceBetweenYieldKeywordAndStar",125,41,[R,Ye],16),p("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],ur,[R,Ye],4),p("NoSpaceBetweenReturnAndSemicolon",105,26,[R],16),p("SpaceAfterCertainKeywords",[113,109,103,89,105,112,132],ur,[R],4),p("SpaceAfterLetConstInVariableDeclaration",[119,85],ur,[R,he],4),p("NoSpaceBeforeOpenParenInFuncCall",ur,20,[R,te,ue],16),p("SpaceBeforeBinaryKeywordOperator",ur,Sr,[R,S],4),p("SpaceAfterBinaryKeywordOperator",Sr,ur,[R,S],4),p("SpaceAfterVoidOperator",114,ur,[R,Ae],4),p("SpaceBetweenAsyncAndOpenParen",131,20,[Se,R],4),p("SpaceBetweenAsyncAndFunctionKeyword",131,[98,79],[R],4),p("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[R],16),p("SpaceBeforeJsxAttribute",ur,79,[Te,R],4),p("SpaceBeforeSlashInJsxOpeningElement",ur,43,[ke,R],4),p("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[ke,R],16),p("NoSpaceBeforeEqualInJsxAttribute",ur,63,[ge,R],16),p("NoSpaceAfterEqualInJsxAttribute",63,ur,[ge,R],16),p("NoSpaceAfterModuleImport",[141,145],20,[R],16),p("SpaceAfterCertainTypeScriptKeywords",[126,84,135,88,92,93,94,136,117,100,118,141,142,121,123,122,144,148,124,151,155,140,137],ur,[R],4),p("SpaceBeforeCertainTypeScriptKeywords",ur,[94,117,155],[R],4),p("SpaceAfterModuleName",10,18,[Ve],4),p("SpaceBeforeArrow",ur,38,[R],4),p("SpaceAfterArrow",38,ur,[R],4),p("NoSpaceAfterEllipsis",25,79,[R],16),p("NoSpaceAfterOptionalParameters",57,[21,27],[R,B],16),p("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[R,_e],16),p("NoSpaceBeforeOpenAngularBracket",lt,29,[R,Xe],16),p("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[R,Xe],16),p("NoSpaceAfterOpenAngularBracket",29,ur,[R,Xe],16),p("NoSpaceBeforeCloseAngularBracket",ur,31,[R,Xe],16),p("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[R,Xe,T],16),p("SpaceBeforeAt",[21,79],59,[R],4),p("NoSpaceAfterAt",59,ur,[R],16),p("SpaceAfterDecorator",ur,[126,79,93,88,84,124,123,121,122,136,148,22,41],[Ie],4),p("NoSpaceBeforeNonNullAssertionOperator",ur,53,[R,Dr],16),p("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[R,Le],16),p("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[R],4)],In=[p("SpaceAfterConstructor",134,20,[h("insertSpaceAfterConstructor"),R],4),p("NoSpaceAfterConstructor",134,20,[A("insertSpaceAfterConstructor"),R],16),p("SpaceAfterComma",27,ur,[h("insertSpaceAfterCommaDelimiter"),R,U,X,j],4),p("NoSpaceAfterComma",27,ur,[A("insertSpaceAfterCommaDelimiter"),R,U],16),p("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[h("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),re],4),p("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[A("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),re],16),p("SpaceAfterKeywordInControl",Fe,20,[h("insertSpaceAfterKeywordsInControlFlowStatements"),m],4),p("NoSpaceAfterKeywordInControl",Fe,20,[A("insertSpaceAfterKeywordsInControlFlowStatements"),m],16),p("SpaceAfterOpenParen",20,ur,[h("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),R],4),p("SpaceBeforeCloseParen",ur,21,[h("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),R],4),p("SpaceBetweenOpenParens",20,20,[h("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),R],4),p("NoSpaceBetweenParens",20,21,[R],16),p("NoSpaceAfterOpenParen",20,ur,[A("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),R],16),p("NoSpaceBeforeCloseParen",ur,21,[A("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),R],16),p("SpaceAfterOpenBracket",22,ur,[h("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),R],4),p("SpaceBeforeCloseBracket",ur,23,[h("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),R],4),p("NoSpaceBetweenBrackets",22,23,[R],16),p("NoSpaceAfterOpenBracket",22,ur,[A("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),R],16),p("NoSpaceBeforeCloseBracket",ur,23,[A("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),R],16),p("SpaceAfterOpenBrace",18,ur,[ie("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),O],4),p("SpaceBeforeCloseBrace",ur,19,[ie("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),O],4),p("NoSpaceBetweenEmptyBraceBrackets",18,19,[R,u],16),p("NoSpaceAfterOpenBrace",18,ur,[v("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),R],16),p("NoSpaceBeforeCloseBrace",ur,19,[v("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),R],16),p("SpaceBetweenEmptyBraceBrackets",18,19,[h("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),p("NoSpaceBetweenEmptyBraceBrackets",18,19,[v("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),R],16),p("SpaceAfterTemplateHeadAndMiddle",[15,16],ur,[h("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Y],4,1),p("SpaceBeforeTemplateMiddleAndTail",ur,[16,17],[h("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),R],4),p("NoSpaceAfterTemplateHeadAndMiddle",[15,16],ur,[A("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Y],16,1),p("NoSpaceBeforeTemplateMiddleAndTail",ur,[16,17],[A("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),R],16),p("SpaceAfterOpenBraceInJsxExpression",18,ur,[h("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),R,K],4),p("SpaceBeforeCloseBraceInJsxExpression",ur,19,[h("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),R,K],4),p("NoSpaceAfterOpenBraceInJsxExpression",18,ur,[A("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),R,K],16),p("NoSpaceBeforeCloseBraceInJsxExpression",ur,19,[A("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),R,K],16),p("SpaceAfterSemicolonInFor",26,ur,[h("insertSpaceAfterSemicolonInForStatements"),R,b],4),p("NoSpaceAfterSemicolonInFor",26,ur,[A("insertSpaceAfterSemicolonInForStatements"),R,b],16),p("SpaceBeforeBinaryOperator",ur,$e,[h("insertSpaceBeforeAndAfterBinaryOperators"),R,S],4),p("SpaceAfterBinaryOperator",$e,ur,[h("insertSpaceBeforeAndAfterBinaryOperators"),R,S],4),p("NoSpaceBeforeBinaryOperator",ur,$e,[A("insertSpaceBeforeAndAfterBinaryOperators"),R,S],16),p("NoSpaceAfterBinaryOperator",$e,ur,[A("insertSpaceBeforeAndAfterBinaryOperators"),R,S],16),p("SpaceBeforeOpenParenInFuncDecl",ur,20,[h("insertSpaceBeforeFunctionParenthesis"),R,re],4),p("NoSpaceBeforeOpenParenInFuncDecl",ur,20,[A("insertSpaceBeforeFunctionParenthesis"),R,re],16),p("NewLineBeforeOpenBraceInControl",cn,18,[h("placeOpenBraceOnNewLineForControlBlocks"),m,q],8,1),p("NewLineBeforeOpenBraceInFunction",tt,18,[h("placeOpenBraceOnNewLineForFunctions"),re,q],8,1),p("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",Rt,18,[h("placeOpenBraceOnNewLineForFunctions"),y,q],8,1),p("SpaceAfterTypeAssertion",31,ur,[h("insertSpaceAfterTypeAssertion"),R,De],4),p("NoSpaceAfterTypeAssertion",31,ur,[A("insertSpaceAfterTypeAssertion"),R,De],16),p("SpaceBeforeTypeAnnotation",ur,[57,58],[h("insertSpaceBeforeTypeAnnotation"),R,I],4),p("NoSpaceBeforeTypeAnnotation",ur,[57,58],[A("insertSpaceBeforeTypeAnnotation"),R,I],16),p("NoOptionalSemicolon",26,de,[J("semicolons",e.SemicolonPreference.Remove),Ar],32),p("OptionalSemicolon",ur,de,[J("semicolons",e.SemicolonPreference.Insert),kr],64)],zn=[p("NoSpaceBeforeSemicolon",ur,26,[R],16),p("SpaceBeforeOpenBraceInControl",cn,18,[z("placeOpenBraceOnNewLineForControlBlocks"),m,ve,x],4,1),p("SpaceBeforeOpenBraceInFunction",tt,18,[z("placeOpenBraceOnNewLineForFunctions"),re,Q,ve,x],4,1),p("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",Rt,18,[z("placeOpenBraceOnNewLineForFunctions"),y,ve,x],4,1),p("NoSpaceBeforeComma",ur,27,[R],16),p("NoSpaceBeforeOpenBracket",Hr(131,82),22,[R],16),p("NoSpaceAfterCloseBracket",23,ur,[R,Pe],16),p("SpaceAfterSemicolon",26,ur,[R],4),p("SpaceBetweenForAndAwaitKeyword",97,132,[R],4),p("SpaceBetweenStatements",[21,90,91,82],ur,[R,U,M],4),p("SpaceAfterTryCatchFinally",[111,83,96],18,[R],4)];return Gt(Gt(Gt([],bn,!0),In,!0),zn,!0)}n.getAllRules=f;function p(Ke,Me,Hr,ur,gr,de){return de===void 0&&(de=0),{leftTokenRange:d(Me),rightTokenRange:d(Hr),rule:{debugName:Ke,context:ur,action:gr,flags:de}}}function a(Ke){return{tokens:Ke,isSpecific:!0}}function d(Ke){return typeof Ke=="number"?a([Ke]):e.isArray(Ke)?a(Ke):Ke}function k(Ke,Me,Hr){Hr===void 0&&(Hr=[]);for(var ur=[],gr=Ke;gr<=Me;gr++)e.contains(Hr,gr)||ur.push(gr);return a(ur)}function J(Ke,Me){return function(Hr){return Hr.options&&Hr.options[Ke]===Me}}function h(Ke){return function(Me){return Me.options&&Me.options.hasOwnProperty(Ke)&&!!Me.options[Ke]}}function v(Ke){return function(Me){return Me.options&&Me.options.hasOwnProperty(Ke)&&!Me.options[Ke]}}function A(Ke){return function(Me){return!Me.options||!Me.options.hasOwnProperty(Ke)||!Me.options[Ke]}}function z(Ke){return function(Me){return!Me.options||!Me.options.hasOwnProperty(Ke)||!Me.options[Ke]||Me.TokensAreOnSameLine()}}function ie(Ke){return function(Me){return!Me.options||!Me.options.hasOwnProperty(Ke)||!!Me.options[Ke]}}function b(Ke){return Ke.contextNode.kind===241}function M(Ke){return!b(Ke)}function S(Ke){switch(Ke.contextNode.kind){case 220:return Ke.contextNode.operatorToken.kind!==27;case 221:case 188:case 228:case 274:case 269:case 176:case 186:case 187:return!0;case 202:case 258:case 264:case 270:case 253:case 163:case 297:case 166:case 165:return Ke.currentTokenSpan.kind===63||Ke.nextTokenSpan.kind===63;case 242:case 162:return Ke.currentTokenSpan.kind===101||Ke.nextTokenSpan.kind===101||Ke.currentTokenSpan.kind===63||Ke.nextTokenSpan.kind===63;case 243:return Ke.currentTokenSpan.kind===159||Ke.nextTokenSpan.kind===159}return!1}function B(Ke){return!S(Ke)}function H(Ke){return!I(Ke)}function I(Ke){var Me=Ke.contextNode.kind;return Me===166||Me===165||Me===163||Me===253||e.isFunctionLikeKind(Me)}function w(Ke){return Ke.contextNode.kind===221||Ke.contextNode.kind===188}function x(Ke){return Ke.TokensAreOnSameLine()||Q(Ke)}function O(Ke){return Ke.contextNode.kind===200||Ke.contextNode.kind===194||ne(Ke)}function q(Ke){return Q(Ke)&&!(Ke.NextNodeAllOnSameLine()||Ke.NextNodeBlockIsOnOneLine())}function Z(Ke){return F(Ke)&&!(Ke.ContextNodeAllOnSameLine()||Ke.ContextNodeBlockIsOnOneLine())}function ne(Ke){return F(Ke)&&(Ke.ContextNodeAllOnSameLine()||Ke.ContextNodeBlockIsOnOneLine())}function F(Ke){return V(Ke.contextNode)}function Q(Ke){return V(Ke.nextTokenParent)}function V(Ke){if(D(Ke))return!0;switch(Ke.kind){case 234:case 262:case 204:case 261:return!0}return!1}function re(Ke){switch(Ke.contextNode.kind){case 255:case 168:case 167:case 171:case 172:case 173:case 212:case 170:case 213:case 257:return!0}return!1}function T(Ke){return!re(Ke)}function N(Ke){return Ke.contextNode.kind===255||Ke.contextNode.kind===212}function y(Ke){return D(Ke.contextNode)}function D(Ke){switch(Ke.kind){case 256:case 225:case 257:case 259:case 181:case 260:case 271:case 272:case 265:case 268:return!0}return!1}function C(Ke){switch(Ke.currentTokenParent.kind){case 256:case 260:case 259:case 291:case 261:case 248:return!0;case 234:{var Me=Ke.currentTokenParent.parent;if(!Me||Me.kind!==213&&Me.kind!==212)return!0}}return!1}function m(Ke){switch(Ke.contextNode.kind){case 238:case 248:case 241:case 242:case 243:case 240:case 251:case 239:case 247:case 291:return!0;default:return!1}}function u(Ke){return Ke.contextNode.kind===204}function g(Ke){return Ke.contextNode.kind===207}function P(Ke){return Ke.contextNode.kind===208}function te(Ke){return g(Ke)||P(Ke)}function ue(Ke){return Ke.currentTokenSpan.kind!==27}function X(Ke){return Ke.nextTokenSpan.kind!==23}function j(Ke){return Ke.nextTokenSpan.kind!==21}function Se(Ke){return Ke.contextNode.kind===213}function Ce(Ke){return Ke.contextNode.kind===199}function R(Ke){return Ke.TokensAreOnSameLine()&&Ke.contextNode.kind!==11}function Y(Ke){return Ke.contextNode.kind!==11}function U(Ke){return Ke.contextNode.kind!==277&&Ke.contextNode.kind!==281}function K(Ke){return Ke.contextNode.kind===287||Ke.contextNode.kind===286}function Te(Ke){return Ke.nextTokenParent.kind===284}function ge(Ke){return Ke.contextNode.kind===284}function ke(Ke){return Ke.contextNode.kind===278}function Pe(Ke){return!re(Ke)&&!Q(Ke)}function Ie(Ke){return Ke.TokensAreOnSameLine()&&!!Ke.contextNode.decorators&&Ge(Ke.currentTokenParent)&&!Ge(Ke.nextTokenParent)}function Ge(Ke){for(;e.isExpressionNode(Ke);)Ke=Ke.parent;return Ke.kind===164}function he(Ke){return Ke.currentTokenParent.kind===254&&Ke.currentTokenParent.getStart(Ke.sourceFile)===Ke.currentTokenSpan.pos}function ve(Ke){return Ke.formattingRequestKind!==2}function Ve(Ke){return Ke.contextNode.kind===260}function _e(Ke){return Ke.contextNode.kind===181}function Le(Ke){return Ke.contextNode.kind===174}function qe(Ke,Me){if(Ke.kind!==29&&Ke.kind!==31)return!1;switch(Me.kind){case 177:case 210:case 258:case 256:case 225:case 257:case 255:case 212:case 213:case 168:case 167:case 173:case 174:case 207:case 208:case 227:return!0;default:return!1}}function Xe(Ke){return qe(Ke.currentTokenSpan,Ke.currentTokenParent)||qe(Ke.nextTokenSpan,Ke.nextTokenParent)}function De(Ke){return Ke.contextNode.kind===210}function Ae(Ke){return Ke.currentTokenSpan.kind===114&&Ke.currentTokenParent.kind===216}function Ye(Ke){return Ke.contextNode.kind===223&&Ke.contextNode.expression!==void 0}function Dr(Ke){return Ke.contextNode.kind===229}function br(Ke){return!lr(Ke)}function lr(Ke){switch(Ke.contextNode.kind){case 238:case 241:case 242:case 243:case 239:case 240:return!0;default:return!1}}function Ar(Ke){var Me=Ke.nextTokenSpan.kind,Hr=Ke.nextTokenSpan.pos;if(e.isTrivia(Me)){var ur=Ke.nextTokenParent===Ke.currentTokenParent?e.findNextToken(Ke.currentTokenParent,e.findAncestor(Ke.currentTokenParent,function(Fe){return!Fe.parent}),Ke.sourceFile):Ke.nextTokenParent.getFirstToken(Ke.sourceFile);if(!ur)return!0;Me=ur.kind,Hr=ur.getStart(Ke.sourceFile)}var gr=Ke.sourceFile.getLineAndCharacterOfPosition(Ke.currentTokenSpan.pos).line,de=Ke.sourceFile.getLineAndCharacterOfPosition(Hr).line;return gr===de?Me===19||Me===1:Me===233||Me===26?!1:Ke.contextNode.kind===257||Ke.contextNode.kind===258?!e.isPropertySignature(Ke.currentTokenParent)||!!Ke.currentTokenParent.type||Me!==20:e.isPropertyDeclaration(Ke.currentTokenParent)?!Ke.currentTokenParent.initializer:Ke.currentTokenParent.kind!==241&&Ke.currentTokenParent.kind!==235&&Ke.currentTokenParent.kind!==233&&Me!==22&&Me!==20&&Me!==39&&Me!==40&&Me!==43&&Me!==13&&Me!==27&&Me!==222&&Me!==15&&Me!==14&&Me!==24}function kr(Ke){return e.positionIsASICandidate(Ke.currentTokenSpan.end,Ke.currentTokenParent,Ke.sourceFile)}})(e.formatting||(e.formatting={}))}(jr||(jr={})),function(e){(function(n){function f(B,H){return{options:B,getRules:a(),host:H}}n.getFormatContext=f;var p;function a(){return p===void 0&&(p=k(n.getAllRules())),p}function d(B){var H=0;return B&1&&(H|=28),B&2&&(H|=96),B&28&&(H|=28),B&96&&(H|=96),H}function k(B){var H=J(B);return function(I){var w=H[h(I.currentTokenSpan.kind,I.nextTokenSpan.kind)];if(w){for(var x=[],O=0,q=0,Z=w;q<Z.length;q++){var ne=Z[q],F=~d(O);ne.action&F&&e.every(ne.context,function(Q){return Q(I)})&&(x.push(ne),O|=ne.action)}if(x.length)return x}}}function J(B){for(var H=new Array(z*z),I=new Array(H.length),w=0,x=B;w<x.length;w++)for(var O=x[w],q=O.leftTokenRange.isSpecific&&O.rightTokenRange.isSpecific,Z=0,ne=O.leftTokenRange.tokens;Z<ne.length;Z++)for(var F=ne[Z],Q=0,V=O.rightTokenRange.tokens;Q<V.length;Q++){var re=V[Q],T=h(F,re),N=H[T];N===void 0&&(N=H[T]=[]),b(N,O.rule,q,I,T)}return H}function h(B,H){return e.Debug.assert(B<=159&&H<=159,"Must compute formatting context from tokens"),B*z+H}var v=5,A=31,z=159+1,ie;(function(B){B[B.StopRulesSpecific=0]="StopRulesSpecific",B[B.StopRulesAny=v*1]="StopRulesAny",B[B.ContextRulesSpecific=v*2]="ContextRulesSpecific",B[B.ContextRulesAny=v*3]="ContextRulesAny",B[B.NoContextRulesSpecific=v*4]="NoContextRulesSpecific",B[B.NoContextRulesAny=v*5]="NoContextRulesAny"})(ie||(ie={}));function b(B,H,I,w,x){var O=H.action&3?I?ie.StopRulesSpecific:ie.StopRulesAny:H.context!==n.anyContext?I?ie.ContextRulesSpecific:ie.ContextRulesAny:I?ie.NoContextRulesSpecific:ie.NoContextRulesAny,q=w[x]||0;B.splice(M(q,O),0,H),w[x]=S(q,O)}function M(B,H){for(var I=0,w=0;w<=H;w+=v)I+=B&A,B>>=v;return I}function S(B,H){var I=(B>>H&A)+1;return e.Debug.assert((I&A)===I,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),B&~(A<<H)|I<<H}})(e.formatting||(e.formatting={}))}(jr||(jr={})),function(e){(function(n){function f(T,N,y){var D={pos:T,end:N,kind:y};return e.Debug.isDebugging&&Object.defineProperty(D,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(y)}}),D}n.createTextRangeWithKind=f;var p;(function(T){T[T.Unknown=-1]="Unknown"})(p||(p={}));function a(T,N,y){var D=N.getLineAndCharacterOfPosition(T).line;if(D===0)return[];for(var C=e.getEndLinePosition(D,N);e.isWhiteSpaceSingleLine(N.text.charCodeAt(C));)C--;e.isLineBreak(N.text.charCodeAt(C))&&C--;var m={pos:e.getStartPositionOfLine(D-1,N),end:C+1};return w(m,N,y,2)}n.formatOnEnter=a;function d(T,N,y){var D=A(T,26,N);return I(z(D),N,y,3)}n.formatOnSemicolon=d;function k(T,N,y){var D=A(T,18,N);if(!D)return[];var C=D.parent,m=z(C),u={pos:e.getLineStartPositionForPosition(m.getStart(N),N),end:T};return w(u,N,y,4)}n.formatOnOpeningCurly=k;function J(T,N,y){var D=A(T,19,N);return I(z(D),N,y,5)}n.formatOnClosingCurly=J;function h(T,N){var y={pos:0,end:T.text.length};return w(y,T,N,0)}n.formatDocument=h;function v(T,N,y,D){var C={pos:e.getLineStartPositionForPosition(T,y),end:N};return w(C,y,D,1)}n.formatSelection=v;function A(T,N,y){var D=e.findPrecedingToken(T,y);return D&&D.kind===N&&T===D.getEnd()?D:void 0}function z(T){for(var N=T;N&&N.parent&&N.parent.end===T.end&&!ie(N.parent,N);)N=N.parent;return N}function ie(T,N){switch(T.kind){case 256:case 257:return e.rangeContainsRange(T.members,N);case 260:var y=T.body;return!!y&&y.kind===261&&e.rangeContainsRange(y.statements,N);case 303:case 234:case 261:return e.rangeContainsRange(T.statements,N);case 291:return e.rangeContainsRange(T.block.statements,N)}return!1}function b(T,N){return y(N);function y(D){var C=e.forEachChild(D,function(u){return e.startEndContainsRange(u.getStart(N),u.end,T)&&u});if(C){var m=y(C);if(m)return m}return D}}function M(T,N){if(!T.length)return C;var y=T.filter(function(m){return e.rangeOverlapsWithStartEnd(N,m.start,m.start+m.length)}).sort(function(m,u){return m.start-u.start});if(!y.length)return C;var D=0;return function(m){for(;;){if(D>=y.length)return!1;var u=y[D];if(m.end<=u.start)return!1;if(e.startEndOverlapsWithStartEnd(m.pos,m.end,u.start,u.start+u.length))return!0;D++}};function C(){return!1}}function S(T,N,y){var D=T.getStart(y);if(D===N.pos&&T.end===N.end)return D;var C=e.findPrecedingToken(N.pos,y);return!C||C.end>=N.pos?T.pos:C.end}function B(T,N,y){for(var D=-1,C;T;){var m=y.getLineAndCharacterOfPosition(T.getStart(y)).line;if(D!==-1&&m!==D)break;if(n.SmartIndenter.shouldIndentChildNode(N,T,C,y))return N.indentSize;D=m,C=T,T=T.parent}return 0}function H(T,N,y,D,C,m){var u={pos:0,end:N.text.length};return n.getFormattingScanner(N.text,y,u.pos,u.end,function(g){return x(u,T,D,C,g,m,1,function(P){return!1},N)})}n.formatNodeGivenIndentation=H;function I(T,N,y,D){if(!T)return[];var C={pos:e.getLineStartPositionForPosition(T.getStart(N),N),end:T.end};return w(C,N,y,D)}function w(T,N,y,D){var C=b(T,N);return n.getFormattingScanner(N.text,N.languageVariant,S(C,T,N),T.end,function(m){return x(T,C,n.SmartIndenter.getIndentationForNode(C,T,N,y.options),B(C,y.options,N),m,y,D,M(N.parseDiagnostics,T),N)})}function x(T,N,y,D,C,m,u,g,P){var te=m.options,ue=m.getRules,X=m.host,j=new n.FormattingContext(P,u,te),Se,Ce,R,Y,U=-1,K=[];if(C.advance(),C.isOnToken()){var Te=P.getLineAndCharacterOfPosition(N.getStart(P)).line,ge=Te;N.decorators&&(ge=P.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(N,P)).line),Ve(N,N,Te,ge,y,D)}if(!C.isOnToken()){var ke=n.SmartIndenter.nodeWillIndentChild(te,N,void 0,P,!1)?y+te.indentSize:y,Pe=C.getCurrentLeadingTrivia();Pe&&(_e(Pe,ke,!1,function(gr){return qe(gr,P.getLineAndCharacterOfPosition(gr.pos),N,N,void 0)}),te.trimTrailingWhitespace!==!1&&Ar(Pe))}return K;function Ie(gr,de,Fe,$e,Sr){if(e.rangeOverlapsWithStartEnd($e,gr,de)||e.rangeContainsStartEnd($e,gr,de)){if(Sr!==-1)return Sr}else{var Pr=P.getLineAndCharacterOfPosition(gr).line,He=e.getLineStartPositionForPosition(gr,P),pr=n.SmartIndenter.findFirstNonWhitespaceColumn(He,gr,P,te);if(Pr!==Fe||gr===pr){var Jr=n.SmartIndenter.getBaseIndentation(te);return Jr>pr?Jr:pr}}return-1}function Ge(gr,de,Fe,$e,Sr,Pr){var He=n.SmartIndenter.shouldIndentChildNode(te,gr)?te.indentSize:0;return Pr===de?{indentation:de===Y?U:Sr.getIndentation(),delta:Math.min(te.indentSize,Sr.getDelta(gr)+He)}:Fe===-1?gr.kind===20&&de===Y?{indentation:U,delta:Sr.getDelta(gr)}:n.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement($e,gr,de,P)||n.SmartIndenter.childIsUnindentedBranchOfConditionalExpression($e,gr,de,P)||n.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument($e,gr,de,P)?{indentation:Sr.getIndentation(),delta:He}:{indentation:Sr.getIndentation()+Sr.getDelta(gr),delta:He}:{indentation:Fe,delta:He}}function he(gr){if(gr.modifiers&&gr.modifiers.length)return gr.modifiers[0].kind;switch(gr.kind){case 256:return 84;case 257:return 118;case 255:return 98;case 259:return 259;case 171:return 136;case 172:return 148;case 168:if(gr.asteriskToken)return 41;case 166:case 163:var de=e.getNameOfDeclaration(gr);if(de)return de.kind}}function ve(gr,de,Fe,$e){return{getIndentationForComment:function(He,pr,Jr){switch(He){case 19:case 23:case 21:return Fe+Pr(Jr)}return pr!==-1?pr:Fe},getIndentationForToken:function(He,pr,Jr,ze){return!ze&&Sr(He,pr,Jr)?Fe+Pr(Jr):Fe},getIndentation:function(){return Fe},getDelta:Pr,recomputeIndentation:function(He,pr){n.SmartIndenter.shouldIndentChildNode(te,pr,gr,P)&&(Fe+=He?te.indentSize:-te.indentSize,$e=n.SmartIndenter.shouldIndentChildNode(te,gr)?te.indentSize:0)}};function Sr(He,pr,Jr){switch(pr){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(Jr.kind){case 279:case 280:case 278:case 227:return!1}break;case 22:case 23:if(Jr.kind!==194)return!1;break}return de!==He&&!(gr.decorators&&pr===he(gr))}function Pr(He){return n.SmartIndenter.nodeWillIndentChild(te,gr,He,P,!0)?$e:0}}function Ve(gr,de,Fe,$e,Sr,Pr){if(!e.rangeOverlapsWithStartEnd(T,gr.getStart(P),gr.getEnd()))return;var He=ve(gr,Fe,Sr,Pr),pr=de;for(e.forEachChild(gr,function(tt){Lr(tt,-1,gr,He,Fe,$e,!1)},function(tt){Yr(tt,gr,Fe,He)});C.isOnToken();){var Jr=C.readTokenInfo(gr);if(Jr.token.end>gr.end)break;lt(Jr,gr,He,gr)}if(!gr.parent&&C.isOnEOF()){var ze=C.readEOFTokenRange();ze.end<=gr.end&&Se&&Xe(ze,P.getLineAndCharacterOfPosition(ze.pos).line,gr,Se,R,Ce,de,He)}function Lr(tt,Rt,cn,bn,In,zn,ir,Or){var sr=tt.getStart(P),ye=P.getLineAndCharacterOfPosition(sr).line,or=ye;tt.decorators&&(or=P.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(tt,P)).line);var fe=-1;if(ir&&e.rangeContainsRange(T,cn)&&(fe=Ie(sr,tt.end,In,T,Rt),fe!==-1&&(Rt=fe)),!e.rangeOverlapsWithStartEnd(T,tt.pos,tt.end))return tt.end<T.pos&&C.skipToEndOf(tt),Rt;if(tt.getFullWidth()===0)return Rt;for(;C.isOnToken();){var je=C.readTokenInfo(gr);if(je.token.end>sr){je.token.pos>sr&&C.skipToStartOf(tt);break}lt(je,gr,bn,gr)}if(!C.isOnToken())return Rt;if(e.isToken(tt)){var je=C.readTokenInfo(tt);if(tt.kind!==11)return e.Debug.assert(je.token.end===tt.end,"Token end is child end"),lt(je,gr,bn,tt),Rt}var Ee=tt.kind===164?ye:zn,We=Ge(tt,ye,fe,gr,bn,Ee);return Ve(tt,pr,ye,or,We.indentation,We.delta),pr=gr,Or&&cn.kind===203&&Rt===-1&&(Rt=We.indentation),Rt}function Yr(tt,Rt,cn,bn){e.Debug.assert(e.isNodeArray(tt));var In=Z(Rt,tt),zn=bn,ir=cn;if(In!==0)for(;C.isOnToken();){var Or=C.readTokenInfo(Rt);if(Or.token.end>tt.pos)break;if(Or.token.kind===In){ir=P.getLineAndCharacterOfPosition(Or.token.pos).line,lt(Or,Rt,bn,Rt);var sr=void 0;if(U!==-1)sr=U;else{var ye=e.getLineStartPositionForPosition(Or.token.pos,P);sr=n.SmartIndenter.findFirstNonWhitespaceColumn(ye,Or.token.pos,P,te)}zn=ve(Rt,cn,sr,te.indentSize)}else lt(Or,Rt,bn,Rt)}for(var or=-1,fe=0;fe<tt.length;fe++){var je=tt[fe];or=Lr(je,or,gr,zn,ir,ir,!0,fe===0)}var Ee=ne(In);if(Ee!==0&&C.isOnToken()){var Or=C.readTokenInfo(Rt);if(Or.token.kind===27&&e.isCallLikeExpression(Rt)){var We=P.getLineAndCharacterOfPosition(Or.token.pos).line;ir!==We&&(C.advance(),Or=C.isOnToken()?C.readTokenInfo(Rt):void 0)}Or&&Or.token.kind===Ee&&e.rangeContainsRange(Rt,Or.token)&&lt(Or,Rt,zn,Rt,!0)}}function lt(tt,Rt,cn,bn,In){e.Debug.assert(e.rangeContainsRange(Rt,tt.token));var zn=C.lastTrailingTriviaWasNewLine(),ir=!1;tt.leadingTrivia&&Le(tt.leadingTrivia,Rt,pr,cn);var Or=0,sr=e.rangeContainsRange(T,tt.token),ye=P.getLineAndCharacterOfPosition(tt.token.pos);if(sr){var or=g(tt.token),fe=Se;if(Or=qe(tt.token,ye,Rt,pr,cn),!or)if(Or===0){var je=fe&&P.getLineAndCharacterOfPosition(fe.end).line;ir=zn&&ye.line!==je}else ir=Or===1}if(tt.trailingTrivia&&Le(tt.trailingTrivia,Rt,pr,cn),ir){var Ee=sr&&!g(tt.token)?cn.getIndentationForToken(ye.line,tt.token.kind,bn,!!In):-1,We=!0;if(tt.leadingTrivia){var $=cn.getIndentationForComment(tt.token.kind,Ee,bn);We=_e(tt.leadingTrivia,$,We,function(Ne){return De(Ne.pos,$,!1)})}Ee!==-1&&We&&(De(tt.token.pos,Ee,Or===1),Y=ye.line,U=Ee)}C.advance(),pr=Rt}}function _e(gr,de,Fe,$e){for(var Sr=0,Pr=gr;Sr<Pr.length;Sr++){var He=Pr[Sr],pr=e.rangeContainsRange(T,He);switch(He.kind){case 3:pr&&Dr(He,de,!Fe),Fe=!1;break;case 2:Fe&&pr&&$e(He),Fe=!1;break;case 4:Fe=!0;break}}return Fe}function Le(gr,de,Fe,$e){for(var Sr=0,Pr=gr;Sr<Pr.length;Sr++){var He=Pr[Sr];if(e.isComment(He.kind)&&e.rangeContainsRange(T,He)){var pr=P.getLineAndCharacterOfPosition(He.pos);qe(He,pr,de,Fe,$e)}}}function qe(gr,de,Fe,$e,Sr){var Pr=g(gr),He=0;if(!Pr)if(Se)He=Xe(gr,de.line,Fe,Se,R,Ce,$e,Sr);else{var pr=P.getLineAndCharacterOfPosition(T.pos);br(pr.line,de.line)}return Se=gr,Ce=Fe,R=de.line,He}function Xe(gr,de,Fe,$e,Sr,Pr,He,pr){j.updateContext($e,Pr,gr,Fe,He);var Jr=ue(j),ze=j.options.trimTrailingWhitespace!==!1,Lr=0;return Jr?e.forEachRight(Jr,function(Yr){switch(Lr=ur(Yr,$e,Sr,gr,de),Lr){case 2:Fe.getStart(P)===gr.pos&&pr.recomputeIndentation(!1,He);break;case 1:Fe.getStart(P)===gr.pos&&pr.recomputeIndentation(!0,He);break;default:e.Debug.assert(Lr===0)}ze=ze&&!(Yr.action&16)&&Yr.flags!==1}):ze=ze&&gr.kind!==1,de!==Sr&&ze&&br(Sr,de,$e),Lr}function De(gr,de,Fe){var $e=re(de,te);if(Fe)Me(gr,0,$e);else{var Sr=P.getLineAndCharacterOfPosition(gr),Pr=e.getStartPositionOfLine(Sr.line,P);(de!==Ae(Pr,Sr.character)||Ye($e,Pr))&&Me(Pr,Sr.character,$e)}}function Ae(gr,de){for(var Fe=0,$e=0;$e<de;$e++)P.text.charCodeAt(gr+$e)===9?Fe+=te.tabSize-Fe%te.tabSize:Fe++;return Fe}function Ye(gr,de){return gr!==P.text.substr(de,gr.length)}function Dr(gr,de,Fe,$e){$e===void 0&&($e=!0);var Sr=P.getLineAndCharacterOfPosition(gr.pos).line,Pr=P.getLineAndCharacterOfPosition(gr.end).line;if(Sr===Pr){Fe||De(gr.pos,de,!1);return}for(var He=[],pr=gr.pos,Jr=Sr;Jr<Pr;Jr++){var ze=e.getEndLinePosition(Jr,P);He.push({pos:pr,end:ze}),pr=e.getStartPositionOfLine(Jr+1,P)}if($e&&He.push({pos:pr,end:gr.end}),He.length!==0){var Lr=e.getStartPositionOfLine(Sr,P),Yr=n.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(Lr,He[0].pos,P,te),lt=0;Fe&&(lt=1,Sr++);for(var tt=de-Yr.column,Rt=lt;Rt<He.length;Rt++,Sr++){var cn=e.getStartPositionOfLine(Sr,P),bn=Rt===0?Yr:n.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(He[Rt].pos,He[Rt].end,P,te),In=bn.column+tt;if(In>0){var zn=re(In,te);Me(cn,bn.character,zn)}else Ke(cn,bn.character)}}}function br(gr,de,Fe){for(var $e=gr;$e<de;$e++){var Sr=e.getStartPositionOfLine($e,P),Pr=e.getEndLinePosition($e,P);if(!(Fe&&(e.isComment(Fe.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(Fe.kind))&&Fe.pos<=Pr&&Fe.end>Pr)){var He=lr(Sr,Pr);He!==-1&&(e.Debug.assert(He===Sr||!e.isWhiteSpaceSingleLine(P.text.charCodeAt(He-1))),Ke(He,Pr+1-He))}}}function lr(gr,de){for(var Fe=de;Fe>=gr&&e.isWhiteSpaceSingleLine(P.text.charCodeAt(Fe));)Fe--;return Fe!==de?Fe+1:-1}function Ar(gr){for(var de=Se?Se.end:T.pos,Fe=0,$e=gr;Fe<$e.length;Fe++){var Sr=$e[Fe];e.isComment(Sr.kind)&&(de<Sr.pos&&kr(de,Sr.pos-1,Se),de=Sr.end+1)}de<T.end&&kr(de,T.end,Se)}function kr(gr,de,Fe){var $e=P.getLineAndCharacterOfPosition(gr).line,Sr=P.getLineAndCharacterOfPosition(de).line;br($e,Sr+1,Fe)}function Ke(gr,de){de&&K.push(e.createTextChangeFromStartLength(gr,de,""))}function Me(gr,de,Fe){(de||Fe)&&K.push(e.createTextChangeFromStartLength(gr,de,Fe))}function Hr(gr,de){de&&K.push(e.createTextChangeFromStartLength(gr,0,de))}function ur(gr,de,Fe,$e,Sr){var Pr=Sr!==Fe;switch(gr.action){case 1:return 0;case 16:if(de.end!==$e.pos)return Ke(de.end,$e.pos-de.end),Pr?2:0;break;case 32:Ke(de.pos,de.end-de.pos);break;case 8:if(gr.flags!==1&&Fe!==Sr)return 0;var He=Sr-Fe;if(He!==1)return Me(de.end,$e.pos-de.end,e.getNewLineOrDefaultFromHost(X,te)),Pr?0:1;break;case 4:if(gr.flags!==1&&Fe!==Sr)return 0;var pr=$e.pos-de.end;if(pr!==1||P.text.charCodeAt(de.end)!==32)return Me(de.end,$e.pos-de.end," "),Pr?2:0;break;case 64:Hr(de.end,";")}return 0}}var O;(function(T){T[T.None=0]="None",T[T.LineAdded=1]="LineAdded",T[T.LineRemoved=2]="LineRemoved"})(O||(O={}));function q(T,N,y,D){D===void 0&&(D=e.getTokenAtPosition(T,N));var C=e.findAncestor(D,e.isJSDoc);C&&(D=C.parent);var m=D.getStart(T);if(!(m<=N&&N<D.getEnd())){y=y===null?void 0:y===void 0?e.findPrecedingToken(N,T):y;var u=y&&e.getTrailingCommentRanges(T.text,y.end),g=e.getLeadingCommentRangesOfNode(D,T),P=e.concatenate(u,g);return P&&e.find(P,function(te){return e.rangeContainsPositionExclusive(te,N)||N===te.end&&(te.kind===2||N===T.getFullWidth())})}}n.getRangeOfEnclosingComment=q;function Z(T,N){switch(T.kind){case 170:case 255:case 212:case 168:case 167:case 213:if(T.typeParameters===N)return 29;if(T.parameters===N)return 20;break;case 207:case 208:if(T.typeArguments===N)return 29;if(T.arguments===N)return 20;break;case 177:if(T.typeArguments===N)return 29;break;case 181:return 18}return 0}function ne(T){switch(T){case 20:return 21;case 29:return 31;case 18:return 19}return 0}var F,Q,V;function re(T,N){var y=!F||F.tabSize!==N.tabSize||F.indentSize!==N.indentSize;if(y&&(F={tabSize:N.tabSize,indentSize:N.indentSize},Q=V=void 0),N.convertTabsToSpaces){var u=void 0,g=Math.floor(T/N.indentSize),P=T%N.indentSize;return V||(V=[]),V[g]===void 0?(u=e.repeatString(" ",N.indentSize*g),V[g]=u):u=V[g],P?u+e.repeatString(" ",P):u}else{var D=Math.floor(T/N.tabSize),C=T-D*N.tabSize,m=void 0;return Q||(Q=[]),Q[D]===void 0?Q[D]=m=e.repeatString(" ",D):m=Q[D],C?m+e.repeatString(" ",C):m}}n.getIndentationString=re})(e.formatting||(e.formatting={}))}(jr||(jr={})),function(e){(function(n){(function(f){var p;(function(u){u[u.Unknown=-1]="Unknown"})(p||(p={}));function a(u,g,P,te){if(te===void 0&&(te=!1),u>g.text.length)return v(P);if(P.indentStyle===e.IndentStyle.None)return 0;var ue=e.findPrecedingToken(u,g,void 0,!0),X=n.getRangeOfEnclosingComment(g,u,ue||null);if(X&&X.kind===3)return d(g,u,P,X);if(!ue)return v(P);var j=e.isStringOrRegularExpressionOrTemplateLiteral(ue.kind);if(j&&ue.getStart(g)<=u&&u<ue.end)return 0;var Se=g.getLineAndCharacterOfPosition(u).line;if(P.indentStyle===e.IndentStyle.Block)return k(g,u,P);if(ue.kind===27&&ue.parent.kind!==220){var Ce=ie(ue,g,P);if(Ce!==-1)return Ce}var R=q(u,ue.parent,g);return R&&!e.rangeContainsRange(R,ue)?F(R,g,P)+P.indentSize:J(g,u,ue,Se,te,P)}f.getIndentation=a;function d(u,g,P,te){var ue=e.getLineAndCharacterOfPosition(u,g).line-1,X=e.getLineAndCharacterOfPosition(u,te.pos).line;if(e.Debug.assert(X>=0),ue<=X)return N(e.getStartPositionOfLine(X,u),g,u,P);var j=e.getStartPositionOfLine(ue,u),Se=T(j,g,u,P),Ce=Se.column,R=Se.character;if(Ce===0)return Ce;var Y=u.text.charCodeAt(j+R);return Y===42?Ce-1:Ce}function k(u,g,P){for(var te=g;te>0;){var ue=u.text.charCodeAt(te);if(!e.isWhiteSpaceLike(ue))break;te--}var X=e.getLineStartPositionForPosition(te,u);return N(X,te,u,P)}function J(u,g,P,te,ue,X){for(var j,Se=P;Se;){if(e.positionBelongsToNode(Se,g,u)&&C(X,Se,j,u,!0)){var Ce=B(Se,u),R=S(P,Se,te,u),Y=R!==0?ue&&R===2?X.indentSize:0:te!==Ce.line?X.indentSize:0;return A(Se,Ce,void 0,Y,u,!0,X)}var U=Q(Se,u,X,!0);if(U!==-1)return U;j=Se,Se=Se.parent}return v(X)}function h(u,g,P,te){var ue=P.getLineAndCharacterOfPosition(u.getStart(P));return A(u,ue,g,0,P,!1,te)}f.getIndentationForNode=h;function v(u){return u.baseIndentSize||0}f.getBaseIndentation=v;function A(u,g,P,te,ue,X,j){for(var Se,Ce=u.parent;Ce;){var R=!0;if(P){var Y=u.getStart(ue);R=Y<P.pos||Y>P.end}var U=z(Ce,u,ue),K=U.line===g.line||I(Ce,u,g.line,ue);if(R){var Te=(Se=O(u,ue))===null||Se===void 0?void 0:Se[0],ge=!!Te&&B(Te,ue).line>U.line,ke=Q(u,ue,j,ge);if(ke!==-1||(ke=b(u,Ce,g,K,ue,j),ke!==-1))return ke+te}C(j,Ce,u,ue,X)&&!K&&(te+=j.indentSize);var Pe=H(Ce,u,g.line,ue);u=Ce,Ce=u.parent,g=Pe?ue.getLineAndCharacterOfPosition(u.getStart(ue)):U}return te+v(j)}function z(u,g,P){var te=O(g,P),ue=te?te.pos:u.getStart(P);return P.getLineAndCharacterOfPosition(ue)}function ie(u,g,P){var te=e.findListItemInfo(u);return te&&te.listItemIndex>0?V(te.list.getChildren(),te.listItemIndex-1,g,P):-1}function b(u,g,P,te,ue,X){var j=(e.isDeclaration(u)||e.isStatementButNotDeclaration(u))&&(g.kind===303||!te);return j?re(P,ue,X):-1}var M;(function(u){u[u.Unknown=0]="Unknown",u[u.OpenBrace=1]="OpenBrace",u[u.CloseBrace=2]="CloseBrace"})(M||(M={}));function S(u,g,P,te){var ue=e.findNextToken(u,g,te);if(!ue)return 0;if(ue.kind===18)return 1;if(ue.kind===19){var X=B(ue,te).line;return P===X?2:0}return 0}function B(u,g){return g.getLineAndCharacterOfPosition(u.getStart(g))}function H(u,g,P,te){if(!(e.isCallExpression(u)&&e.contains(u.arguments,g)))return!1;var ue=u.expression.getEnd(),X=e.getLineAndCharacterOfPosition(te,ue).line;return X===P}f.isArgumentAndStartLineOverlapsExpressionBeingCalled=H;function I(u,g,P,te){if(u.kind===238&&u.elseStatement===g){var ue=e.findChildOfKind(u,91,te);e.Debug.assert(ue!==void 0);var X=B(ue,te).line;return X===P}return!1}f.childStartsOnTheSameLineWithElseInIfStatement=I;function w(u,g,P,te){if(e.isConditionalExpression(u)&&(g===u.whenTrue||g===u.whenFalse)){var ue=e.getLineAndCharacterOfPosition(te,u.condition.end).line;if(g===u.whenTrue)return P===ue;var X=B(u.whenTrue,te).line,j=e.getLineAndCharacterOfPosition(te,u.whenTrue.end).line;return ue===X&&j===P}return!1}f.childIsUnindentedBranchOfConditionalExpression=w;function x(u,g,P,te){if(e.isCallOrNewExpression(u)){if(!u.arguments)return!1;var ue=e.find(u.arguments,function(Ce){return Ce.pos===g.pos});if(!ue)return!1;var X=u.arguments.indexOf(ue);if(X===0)return!1;var j=u.arguments[X-1],Se=e.getLineAndCharacterOfPosition(te,j.getEnd()).line;if(P===Se)return!0}return!1}f.argumentStartsOnSameLineAsPreviousArgument=x;function O(u,g){return u.parent&&Z(u.getStart(g),u.getEnd(),u.parent,g)}f.getContainingList=O;function q(u,g,P){return g&&Z(u,u,g,P)}function Z(u,g,P,te){switch(P.kind){case 177:return ue(P.typeArguments);case 204:return ue(P.properties);case 203:return ue(P.elements);case 181:return ue(P.members);case 255:case 212:case 213:case 168:case 167:case 173:case 170:case 179:case 174:return ue(P.typeParameters)||ue(P.parameters);case 256:case 225:case 257:case 258:case 342:return ue(P.typeParameters);case 208:case 207:return ue(P.typeArguments)||ue(P.arguments);case 254:return ue(P.declarations);case 268:case 272:return ue(P.elements);case 200:case 201:return ue(P.elements)}function ue(X){return X&&e.rangeContainsStartEnd(ne(P,X,te),u,g)?X:void 0}}function ne(u,g,P){for(var te=u.getChildren(P),ue=1;ue<te.length-1;ue++)if(te[ue].pos===g.pos&&te[ue].end===g.end)return{pos:te[ue-1].end,end:te[ue+1].getStart(P)};return g}function F(u,g,P){return u?re(g.getLineAndCharacterOfPosition(u.pos),g,P):-1}function Q(u,g,P,te){if(u.parent&&u.parent.kind===254)return-1;var ue=O(u,g);if(ue){var X=ue.indexOf(u);if(X!==-1){var j=V(ue,X,g,P);if(j!==-1)return j}return F(ue,g,P)+(te?P.indentSize:0)}return-1}function V(u,g,P,te){e.Debug.assert(g>=0&&g<u.length);for(var ue=u[g],X=B(ue,P),j=g-1;j>=0;j--)if(u[j].kind!==27){var Se=P.getLineAndCharacterOfPosition(u[j].end).line;if(Se!==X.line)return re(X,P,te);X=B(u[j],P)}return-1}function re(u,g,P){var te=g.getPositionOfLineAndCharacter(u.line,0);return N(te,te+u.character,g,P)}function T(u,g,P,te){for(var ue=0,X=0,j=u;j<g;j++){var Se=P.text.charCodeAt(j);if(!e.isWhiteSpaceSingleLine(Se))break;Se===9?X+=te.tabSize+X%te.tabSize:X++,ue++}return{column:X,character:ue}}f.findFirstNonWhitespaceCharacterAndColumn=T;function N(u,g,P,te){return T(u,g,P,te).column}f.findFirstNonWhitespaceColumn=N;function y(u,g,P,te,ue){var X=P?P.kind:0;switch(g.kind){case 237:case 256:case 225:case 257:case 259:case 258:case 203:case 234:case 261:case 204:case 181:case 194:case 183:case 262:case 289:case 288:case 211:case 205:case 207:case 208:case 236:case 270:case 246:case 221:case 201:case 200:case 279:case 282:case 278:case 287:case 167:case 173:case 174:case 163:case 178:case 179:case 190:case 209:case 217:case 272:case 268:case 274:case 269:case 166:return!0;case 253:case 294:case 220:if(!u.indentMultiLineObjectLiteralBeginningOnBlankLine&&te&&X===204)return m(te,P);if(g.kind===220&&te&&P&&X===277){var j=te.getLineAndCharacterOfPosition(e.skipTrivia(te.text,g.pos)).line,Se=te.getLineAndCharacterOfPosition(e.skipTrivia(te.text,P.pos)).line;return j!==Se}if(g.kind!==220)return!0;break;case 239:case 240:case 242:case 243:case 241:case 238:case 255:case 212:case 168:case 170:case 171:case 172:return X!==234;case 213:return te&&X===211?m(te,P):X!==234;case 271:return X!==272;case 265:return X!==266||!!P.namedBindings&&P.namedBindings.kind!==268;case 277:return X!==280;case 281:return X!==283;case 187:case 186:if(X===181||X===183)return!1;break}return ue}f.nodeWillIndentChild=y;function D(u,g){switch(u){case 246:case 250:case 244:case 245:return g.kind!==234;default:return!1}}function C(u,g,P,te,ue){return ue===void 0&&(ue=!1),y(u,g,P,te,!1)&&!(ue&&P&&D(P.kind,g))}f.shouldIndentChildNode=C;function m(u,g){var P=e.skipTrivia(u.text,g.pos),te=u.getLineAndCharacterOfPosition(P).line,ue=u.getLineAndCharacterOfPosition(g.end).line;return te===ue}})(n.SmartIndenter||(n.SmartIndenter={}))})(e.formatting||(e.formatting={}))}(jr||(jr={})),function(e){(function(n){function f(u){var g=u.__pos;return e.Debug.assert(typeof g=="number"),g}function p(u,g){e.Debug.assert(typeof g=="number"),u.__pos=g}function a(u){var g=u.__end;return e.Debug.assert(typeof g=="number"),g}function d(u,g){e.Debug.assert(typeof g=="number"),u.__end=g}var k;(function(u){u[u.Exclude=0]="Exclude",u[u.IncludeAll=1]="IncludeAll",u[u.JSDoc=2]="JSDoc",u[u.StartLine=3]="StartLine"})(k=n.LeadingTriviaOption||(n.LeadingTriviaOption={}));var J;(function(u){u[u.Exclude=0]="Exclude",u[u.ExcludeWhitespace=1]="ExcludeWhitespace",u[u.Include=2]="Include"})(J=n.TrailingTriviaOption||(n.TrailingTriviaOption={}));function h(u,g){return e.skipTrivia(u,g,!1,!0)}function v(u,g){for(var P=g;P<u.length;){var te=u.charCodeAt(P);if(e.isWhiteSpaceSingleLine(te)){P++;continue}return te===47}return!1}var A={leadingTriviaOption:k.Exclude,trailingTriviaOption:J.Exclude},z;(function(u){u[u.Remove=0]="Remove",u[u.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",u[u.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",u[u.Text=3]="Text"})(z||(z={}));function ie(u,g,P,te){return{pos:b(u,g,te),end:S(u,P,te)}}function b(u,g,P,te){var ue,X;te===void 0&&(te=!1);var j=P.leadingTriviaOption;if(j===k.Exclude)return g.getStart(u);if(j===k.StartLine){var Se=g.getStart(u),Ce=e.getLineStartPositionForPosition(Se,u);return e.rangeContainsPosition(g,Ce)?Ce:Se}if(j===k.JSDoc){var R=e.getJSDocCommentRanges(g,u.text);if(R!=null&&R.length)return e.getLineStartPositionForPosition(R[0].pos,u)}var Y=g.getFullStart(),U=g.getStart(u);if(Y===U)return U;var K=e.getLineStartPositionForPosition(Y,u),Te=e.getLineStartPositionForPosition(U,u);if(Te===K)return j===k.IncludeAll?Y:U;if(te){var ge=((ue=e.getLeadingCommentRanges(u.text,Y))===null||ue===void 0?void 0:ue[0])||((X=e.getTrailingCommentRanges(u.text,Y))===null||X===void 0?void 0:X[0]);if(ge)return e.skipTrivia(u.text,ge.end,!0,!0)}var ke=Y>0?1:0,Pe=e.getStartPositionOfLine(e.getLineOfLocalPosition(u,K)+ke,u);return Pe=h(u.text,Pe),e.getStartPositionOfLine(e.getLineOfLocalPosition(u,Pe),u)}function M(u,g,P){var te=g.end,ue=P.trailingTriviaOption;if(ue===J.Include){var X=e.getTrailingCommentRanges(u.text,te);if(X)for(var j=e.getLineOfLocalPosition(u,g.end),Se=0,Ce=X;Se<Ce.length;Se++){var R=Ce[Se];if(R.kind===2||e.getLineOfLocalPosition(u,R.pos)>j)break;var Y=e.getLineOfLocalPosition(u,R.end);if(Y>j)return e.skipTrivia(u.text,R.end,!0,!0)}}}function S(u,g,P){var te,ue=g.end,X=P.trailingTriviaOption;if(X===J.Exclude)return ue;if(X===J.ExcludeWhitespace){var j=e.concatenate(e.getTrailingCommentRanges(u.text,ue),e.getLeadingCommentRanges(u.text,ue)),Se=(te=j==null?void 0:j[j.length-1])===null||te===void 0?void 0:te.end;return Se||ue}var Ce=M(u,g,P);if(Ce)return Ce;var R=e.skipTrivia(u.text,ue,!0);return R!==ue&&(X===J.Include||e.isLineBreak(u.text.charCodeAt(R-1)))?R:ue}function B(u,g){return!!g&&!!u.parent&&(g.kind===27||g.kind===26&&u.parent.kind===204)}function H(u){return e.isFunctionExpression(u)||e.isFunctionDeclaration(u)}n.isThisTypeAnnotatable=H;var I=function(){function u(g,P){this.newLineCharacter=g,this.formatContext=P,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return u.fromContext=function(g){return new u(e.getNewLineOrDefaultFromHost(g.host,g.formatContext.options),g.formatContext)},u.with=function(g,P){var te=u.fromContext(g);return P(te),te.getChanges()},u.prototype.pushRaw=function(g,P){e.Debug.assertEqual(g.fileName,P.fileName);for(var te=0,ue=P.textChanges;te<ue.length;te++){var X=ue[te];this.changes.push({kind:z.Text,sourceFile:g,text:X.newText,range:e.createTextRangeFromSpan(X.span)})}},u.prototype.deleteRange=function(g,P){this.changes.push({kind:z.Remove,sourceFile:g,range:P})},u.prototype.delete=function(g,P){this.deletedNodes.push({sourceFile:g,node:P})},u.prototype.deleteNode=function(g,P,te){te===void 0&&(te={leadingTriviaOption:k.IncludeAll}),this.deleteRange(g,ie(g,P,P,te))},u.prototype.deleteNodes=function(g,P,te,ue){te===void 0&&(te={leadingTriviaOption:k.IncludeAll});for(var X=0,j=P;X<j.length;X++){var Se=j[X],Ce=b(g,Se,te,ue),R=S(g,Se,te);this.deleteRange(g,{pos:Ce,end:R}),ue=!!M(g,Se,te)}},u.prototype.deleteModifier=function(g,P){this.deleteRange(g,{pos:P.getStart(g),end:e.skipTrivia(g.text,P.end,!0)})},u.prototype.deleteNodeRange=function(g,P,te,ue){ue===void 0&&(ue={leadingTriviaOption:k.IncludeAll});var X=b(g,P,ue),j=S(g,te,ue);this.deleteRange(g,{pos:X,end:j})},u.prototype.deleteNodeRangeExcludingEnd=function(g,P,te,ue){ue===void 0&&(ue={leadingTriviaOption:k.IncludeAll});var X=b(g,P,ue),j=te===void 0?g.text.length:b(g,te,ue);this.deleteRange(g,{pos:X,end:j})},u.prototype.replaceRange=function(g,P,te,ue){ue===void 0&&(ue={}),this.changes.push({kind:z.ReplaceWithSingleNode,sourceFile:g,range:P,options:ue,node:te})},u.prototype.replaceNode=function(g,P,te,ue){ue===void 0&&(ue=A),this.replaceRange(g,ie(g,P,P,ue),te,ue)},u.prototype.replaceNodeRange=function(g,P,te,ue,X){X===void 0&&(X=A),this.replaceRange(g,ie(g,P,te,X),ue,X)},u.prototype.replaceRangeWithNodes=function(g,P,te,ue){ue===void 0&&(ue={}),this.changes.push({kind:z.ReplaceWithMultipleNodes,sourceFile:g,range:P,options:ue,nodes:te})},u.prototype.replaceNodeWithNodes=function(g,P,te,ue){ue===void 0&&(ue=A),this.replaceRangeWithNodes(g,ie(g,P,P,ue),te,ue)},u.prototype.replaceNodeWithText=function(g,P,te){this.replaceRangeWithText(g,ie(g,P,P,A),te)},u.prototype.replaceNodeRangeWithNodes=function(g,P,te,ue,X){X===void 0&&(X=A),this.replaceRangeWithNodes(g,ie(g,P,te,X),ue,X)},u.prototype.nodeHasTrailingComment=function(g,P,te){return te===void 0&&(te=A),!!M(g,P,te)},u.prototype.nextCommaToken=function(g,P){var te=e.findNextToken(P,P.parent,g);return te&&te.kind===27?te:void 0},u.prototype.replacePropertyAssignment=function(g,P,te){var ue=this.nextCommaToken(g,P)?"":","+this.newLineCharacter;this.replaceNode(g,P,te,{suffix:ue})},u.prototype.insertNodeAt=function(g,P,te,ue){ue===void 0&&(ue={}),this.replaceRange(g,e.createRange(P),te,ue)},u.prototype.insertNodesAt=function(g,P,te,ue){ue===void 0&&(ue={}),this.replaceRangeWithNodes(g,e.createRange(P),te,ue)},u.prototype.insertNodeAtTopOfFile=function(g,P,te){this.insertAtTopOfFile(g,P,te)},u.prototype.insertNodesAtTopOfFile=function(g,P,te){this.insertAtTopOfFile(g,P,te)},u.prototype.insertAtTopOfFile=function(g,P,te){var ue=T(g),X={prefix:ue===0?void 0:this.newLineCharacter,suffix:(e.isLineBreak(g.text.charCodeAt(ue))?"":this.newLineCharacter)+(te?this.newLineCharacter:"")};e.isArray(P)?this.insertNodesAt(g,ue,P,X):this.insertNodeAt(g,ue,P,X)},u.prototype.insertFirstParameter=function(g,P,te){var ue=e.firstOrUndefined(P);ue?this.insertNodeBefore(g,ue,te):this.insertNodeAt(g,P.pos,te)},u.prototype.insertNodeBefore=function(g,P,te,ue,X){ue===void 0&&(ue=!1),X===void 0&&(X={}),this.insertNodeAt(g,b(g,P,X),te,this.getOptionsForInsertNodeBefore(P,te,ue))},u.prototype.insertModifierAt=function(g,P,te,ue){ue===void 0&&(ue={}),this.insertNodeAt(g,P,e.factory.createToken(te),ue)},u.prototype.insertModifierBefore=function(g,P,te){return this.insertModifierAt(g,te.getStart(g),P,{suffix:" "})},u.prototype.insertCommentBeforeLine=function(g,P,te,ue){var X=e.getStartPositionOfLine(P,g),j=e.getFirstNonSpaceCharacterPosition(g.text,X),Se=N(g,j),Ce=e.getTouchingToken(g,Se?j:te),R=g.text.slice(X,j),Y="".concat(Se?"":this.newLineCharacter,"//").concat(ue).concat(this.newLineCharacter).concat(R);this.insertText(g,Ce.getStart(g),Y)},u.prototype.insertJsdocCommentBefore=function(g,P,te){var ue=P.getStart(g);if(P.jsDoc)for(var X=0,j=P.jsDoc;X<j.length;X++){var Se=j[X];this.deleteRange(g,{pos:e.getLineStartPositionForPosition(Se.getStart(g),g),end:S(g,Se,{})})}var Ce=e.getPrecedingNonSpaceCharacterPosition(g.text,ue-1),R=g.text.slice(Ce,ue);this.insertNodeAt(g,ue,te,{preserveLeadingWhitespace:!1,suffix:this.newLineCharacter+R})},u.prototype.replaceRangeWithText=function(g,P,te){this.changes.push({kind:z.Text,sourceFile:g,range:P,text:te})},u.prototype.insertText=function(g,P,te){this.replaceRangeWithText(g,e.createRange(P),te)},u.prototype.tryInsertTypeAnnotation=function(g,P,te){var ue,X;if(e.isFunctionLike(P)){if(X=e.findChildOfKind(P,21,g),!X){if(!e.isArrowFunction(P))return!1;X=e.first(P.parameters)}}else X=(ue=P.kind===253?P.exclamationToken:P.questionToken)!==null&&ue!==void 0?ue:P.name;return this.insertNodeAt(g,X.end,te,{prefix:": "}),!0},u.prototype.tryInsertThisTypeAnnotation=function(g,P,te){var ue=e.findChildOfKind(P,20,g).getStart(g)+1,X=P.parameters.length?", ":"";this.insertNodeAt(g,ue,te,{prefix:"this: ",suffix:X})},u.prototype.insertTypeParameters=function(g,P,te){var ue=(e.findChildOfKind(P,20,g)||e.first(P.parameters)).getStart(g);this.insertNodesAt(g,ue,te,{prefix:"<",suffix:">",joiner:", "})},u.prototype.getOptionsForInsertNodeBefore=function(g,P,te){return e.isStatement(g)||e.isClassElement(g)?{suffix:te?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(g)?{suffix:", "}:e.isParameter(g)?e.isParameter(P)?{suffix:", "}:{}:e.isStringLiteral(g)&&e.isImportDeclaration(g.parent)||e.isNamedImports(g)?{suffix:", "}:e.isImportSpecifier(g)?{suffix:","+(te?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(g)},u.prototype.insertNodeAtConstructorStart=function(g,P,te){var ue=e.firstOrUndefined(P.body.statements);!ue||!P.body.multiLine?this.replaceConstructorBody(g,P,Gt([te],P.body.statements,!0)):this.insertNodeBefore(g,ue,te)},u.prototype.insertNodeAtConstructorStartAfterSuperCall=function(g,P,te){var ue=e.find(P.body.statements,function(X){return e.isExpressionStatement(X)&&e.isSuperCall(X.expression)});!ue||!P.body.multiLine?this.replaceConstructorBody(g,P,Gt(Gt([],P.body.statements,!0),[te],!1)):this.insertNodeAfter(g,ue,te)},u.prototype.insertNodeAtConstructorEnd=function(g,P,te){var ue=e.lastOrUndefined(P.body.statements);!ue||!P.body.multiLine?this.replaceConstructorBody(g,P,Gt(Gt([],P.body.statements,!0),[te],!1)):this.insertNodeAfter(g,ue,te)},u.prototype.replaceConstructorBody=function(g,P,te){this.replaceNode(g,P.body,e.factory.createBlock(te,!0))},u.prototype.insertNodeAtEndOfScope=function(g,P,te){var ue=b(g,P.getLastToken(),{});this.insertNodeAt(g,ue,te,{prefix:e.isLineBreak(g.text.charCodeAt(P.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},u.prototype.insertNodeAtClassStart=function(g,P,te){this.insertNodeAtStartWorker(g,P,te)},u.prototype.insertNodeAtObjectStart=function(g,P,te){this.insertNodeAtStartWorker(g,P,te)},u.prototype.insertNodeAtStartWorker=function(g,P,te){var ue,X=(ue=this.guessIndentationFromExistingMembers(g,P))!==null&&ue!==void 0?ue:this.computeIndentationForNewMember(g,P);this.insertNodeAt(g,O(P).pos,te,this.getInsertNodeAtStartInsertOptions(g,P,X))},u.prototype.guessIndentationFromExistingMembers=function(g,P){for(var te,ue=P,X=0,j=O(P);X<j.length;X++){var Se=j[X];if(e.rangeStartPositionsAreOnSameLine(ue,Se,g))return;var Ce=Se.getStart(g),R=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(Ce,g),Ce,g,this.formatContext.options);if(te===void 0)te=R;else if(R!==te)return;ue=Se}return te},u.prototype.computeIndentationForNewMember=function(g,P){var te,ue=P.getStart(g);return e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(ue,g),ue,g,this.formatContext.options)+((te=this.formatContext.options.indentSize)!==null&&te!==void 0?te:4)},u.prototype.getInsertNodeAtStartInsertOptions=function(g,P,te){var ue=O(P),X=ue.length===0,j=e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(P),{node:P,sourceFile:g}),Se=e.isObjectLiteralExpression(P)&&(!e.isJsonSourceFile(g)||!X),Ce=e.isObjectLiteralExpression(P)&&e.isJsonSourceFile(g)&&X&&!j;return{indentation:te,prefix:(Ce?",":"")+this.newLineCharacter,suffix:Se?",":""}},u.prototype.insertNodeAfterComma=function(g,P,te){var ue=this.insertNodeAfterWorker(g,this.nextCommaToken(g,P)||P,te);this.insertNodeAt(g,ue,te,this.getInsertNodeAfterOptions(g,P))},u.prototype.insertNodeAfter=function(g,P,te){var ue=this.insertNodeAfterWorker(g,P,te);this.insertNodeAt(g,ue,te,this.getInsertNodeAfterOptions(g,P))},u.prototype.insertNodeAtEndOfList=function(g,P,te){this.insertNodeAt(g,P.end,te,{prefix:", "})},u.prototype.insertNodesAfter=function(g,P,te){var ue=this.insertNodeAfterWorker(g,P,e.first(te));this.insertNodesAt(g,ue,te,this.getInsertNodeAfterOptions(g,P))},u.prototype.insertNodeAfterWorker=function(g,P,te){y(P,te)&&g.text.charCodeAt(P.end-1)!==59&&this.replaceRange(g,e.createRange(P.end),e.factory.createToken(26));var ue=S(g,P,{});return ue},u.prototype.getInsertNodeAfterOptions=function(g,P){var te=this.getInsertNodeAfterOptionsWorker(P);return Rn(Rn({},te),{prefix:P.end===g.end&&e.isStatement(P)?te.prefix?`
  248. `.concat(te.prefix):`
  249. `:te.prefix})},u.prototype.getInsertNodeAfterOptionsWorker=function(g){switch(g.kind){case 256:case 260:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 253:case 10:case 79:return{prefix:", "};case 294:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 163:return{};default:return e.Debug.assert(e.isStatement(g)||e.isClassOrTypeElement(g)),{suffix:this.newLineCharacter}}},u.prototype.insertName=function(g,P,te){if(e.Debug.assert(!P.name),P.kind===213){var ue=e.findChildOfKind(P,38,g),X=e.findChildOfKind(P,20,g);X?(this.insertNodesAt(g,X.getStart(g),[e.factory.createToken(98),e.factory.createIdentifier(te)],{joiner:" "}),C(this,g,ue)):(this.insertText(g,e.first(P.parameters).getStart(g),"function ".concat(te,"(")),this.replaceRange(g,ue,e.factory.createToken(21))),P.body.kind!==234&&(this.insertNodesAt(g,P.body.getStart(g),[e.factory.createToken(18),e.factory.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(g,P.body.end,[e.factory.createToken(26),e.factory.createToken(19)],{joiner:" "}))}else{var j=e.findChildOfKind(P,P.kind===212?98:84,g).end;this.insertNodeAt(g,j,e.factory.createIdentifier(te),{prefix:" "})}},u.prototype.insertExportModifier=function(g,P){this.insertText(g,P.getStart(g),"export ")},u.prototype.insertNodeInListAfter=function(g,P,te,ue){if(ue===void 0&&(ue=e.formatting.SmartIndenter.getContainingList(P,g)),!ue){e.Debug.fail("node is not a list element");return}var X=e.indexOfNode(ue,P);if(!(X<0)){var j=P.getEnd();if(X!==ue.length-1){var Se=e.getTokenAtPosition(g,P.end);if(Se&&B(P,Se)){var Ce=ue[X+1],R=h(g.text,Ce.getFullStart()),Y="".concat(e.tokenToString(Se.kind)).concat(g.text.substring(Se.end,R));this.insertNodesAt(g,R,[te],{suffix:Y})}}else{var U=P.getStart(g),K=e.getLineStartPositionForPosition(U,g),Te=void 0,ge=!1;if(ue.length===1)Te=27;else{var ke=e.findPrecedingToken(P.pos,g);Te=B(P,ke)?ke.kind:27;var Pe=e.getLineStartPositionForPosition(ue[X-1].getStart(g),g);ge=Pe!==K}if(v(g.text,P.end)&&(ge=!0),ge){this.replaceRange(g,e.createRange(j),e.factory.createToken(Te));for(var Ie=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(K,U,g,this.formatContext.options),Ge=e.skipTrivia(g.text,j,!0,!1);Ge!==j&&e.isLineBreak(g.text.charCodeAt(Ge-1));)Ge--;this.replaceRange(g,e.createRange(Ge),te,{indentation:Ie,prefix:this.newLineCharacter})}else this.replaceRange(g,e.createRange(j),te,{prefix:"".concat(e.tokenToString(Te)," ")})}}},u.prototype.parenthesizeExpression=function(g,P){this.replaceRange(g,e.rangeOfNode(P),e.factory.createParenthesizedExpression(P))},u.prototype.finishClassesWithNodesInsertedAtStart=function(){var g=this;this.classesWithNodesInsertedAtStart.forEach(function(P){var te=P.node,ue=P.sourceFile,X=x(te,ue),j=X[0],Se=X[1];if(j!==void 0&&Se!==void 0){var Ce=O(te).length===0,R=e.positionsAreOnSameLine(j,Se,ue);Ce&&R&&j!==Se-1&&g.deleteRange(ue,e.createRange(j,Se-1)),R&&g.insertText(ue,Se-1,g.newLineCharacter)}})},u.prototype.finishDeleteDeclarations=function(){for(var g=this,P=new e.Set,te=function(Y,U){ue.deletedNodes.some(function(K){return K.sourceFile===Y&&e.rangeContainsRangeExclusive(K.node,U)})||(e.isArray(U)?ue.deleteRange(Y,e.rangeOfTypeParameters(Y,U)):D.deleteDeclaration(ue,P,Y,U))},ue=this,X=0,j=this.deletedNodes;X<j.length;X++){var Se=j[X],Ce=Se.sourceFile,R=Se.node;te(Ce,R)}P.forEach(function(Y){var U=Y.getSourceFile(),K=e.formatting.SmartIndenter.getContainingList(Y,U);if(Y===e.last(K)){var Te=e.findLastIndex(K,function(ge){return!P.has(ge)},K.length-2);Te!==-1&&g.deleteRange(U,{pos:K[Te].end,end:w(U,K[Te+1])})}})},u.prototype.getChanges=function(g){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var P=Z.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,g),te=0,ue=this.newFiles;te<ue.length;te++){var X=ue[te],j=X.oldFile,Se=X.fileName,Ce=X.statements;P.push(Z.newFileChanges(j,Se,Ce,this.newLineCharacter,this.formatContext))}return P},u.prototype.createNewFile=function(g,P,te){this.newFiles.push({oldFile:g,fileName:P,statements:te})},u}();n.ChangeTracker=I;function w(u,g){return e.skipTrivia(u.text,b(u,g,{leadingTriviaOption:k.IncludeAll}),!1,!0)}function x(u,g){var P=e.findChildOfKind(u,18,g),te=e.findChildOfKind(u,19,g);return[P==null?void 0:P.end,te==null?void 0:te.end]}function O(u){return e.isObjectLiteralExpression(u)?u.properties:u.members}function q(u,g,P,te){return Z.newFileChangesWorker(void 0,g,u,P,te)}n.getNewFileText=q;var Z;(function(u){function g(Ce,R,Y,U){return e.mapDefined(e.group(Ce,function(K){return K.sourceFile.path}),function(K){for(var Te=K[0].sourceFile,ge=e.stableSort(K,function(Ge,he){return Ge.range.pos-he.range.pos||Ge.range.end-he.range.end}),ke=function(Ge){e.Debug.assert(ge[Ge].range.end<=ge[Ge+1].range.pos,"Changes overlap",function(){return"".concat(JSON.stringify(ge[Ge].range)," and ").concat(JSON.stringify(ge[Ge+1].range))})},Pe=0;Pe<ge.length-1;Pe++)ke(Pe);var Ie=e.mapDefined(ge,function(Ge){var he=e.createTextSpanFromRange(Ge.range),ve=ue(Ge,Te,R,Y,U);if(!(he.length===ve.length&&e.stringContainsAt(Te.text,ve,he.start)))return e.createTextChange(he,ve)});return Ie.length>0?{fileName:Te.fileName,textChanges:Ie}:void 0})}u.getTextChangesFromChanges=g;function P(Ce,R,Y,U,K){var Te=te(Ce,e.getScriptKindFromFileName(R),Y,U,K);return{fileName:R,textChanges:[e.createTextChange(e.createTextSpan(0,0),Te)],isNewFile:!0}}u.newFileChanges=P;function te(Ce,R,Y,U,K){var Te=Y.map(function(Pe){return Pe===4?"":Se(Pe,Ce,U).text}).join(U),ge=e.createSourceFile("any file name",Te,99,!0,R),ke=e.formatting.formatDocument(ge,K);return ne(Te,ke)+U}u.newFileChangesWorker=te;function ue(Ce,R,Y,U,K){var Te;if(Ce.kind===z.Remove)return"";if(Ce.kind===z.Text)return Ce.text;var ge=Ce.options,ke=ge===void 0?{}:ge,Pe=Ce.range.pos,Ie=function(ve){return j(ve,R,Pe,ke,Y,U,K)},Ge=Ce.kind===z.ReplaceWithMultipleNodes?Ce.nodes.map(function(ve){return e.removeSuffix(Ie(ve),Y)}).join(((Te=Ce.options)===null||Te===void 0?void 0:Te.joiner)||Y):Ie(Ce.node),he=ke.preserveLeadingWhitespace||ke.indentation!==void 0||e.getLineStartPositionForPosition(Pe,R)===Pe?Ge:Ge.replace(/^\s+/,"");return(ke.prefix||"")+he+(!ke.suffix||e.endsWith(he,ke.suffix)?"":ke.suffix)}function X(Ce,R){var Y=Ce.options,U=!Y.semicolons||Y.semicolons===e.SemicolonPreference.Ignore,K=Y.semicolons===e.SemicolonPreference.Remove||U&&!e.probablyUsesSemicolons(R);return Rn(Rn({},Y),{semicolons:K?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})}function j(Ce,R,Y,U,K,Te,ge){var ke=U.indentation,Pe=U.prefix,Ie=U.delta,Ge=Se(Ce,R,K),he=Ge.node,ve=Ge.text;ge&&ge(he,ve);var Ve=X(Te,R),_e=ke!==void 0?ke:e.formatting.SmartIndenter.getIndentation(Y,R,Ve,Pe===K||e.getLineStartPositionForPosition(Y,R)===Y);Ie===void 0&&(Ie=e.formatting.SmartIndenter.shouldIndentChildNode(Ve,Ce)&&Ve.indentSize||0);var Le={text:ve,getLineAndCharacterOfPosition:function(Xe){return e.getLineAndCharacterOfPosition(this,Xe)}},qe=e.formatting.formatNodeGivenIndentation(he,Le,R.languageVariant,_e,Ie,Rn(Rn({},Te),{options:Ve}));return ne(ve,qe)}function Se(Ce,R,Y){var U=re(Y),K=e.getNewLineKind(Y);return e.createPrinter({newLine:K,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},U).writeNode(4,Ce,R,U),{text:U.getText(),node:Q(Ce)}}u.getNonformattedText=Se})(Z||(Z={}));function ne(u,g){for(var P=g.length-1;P>=0;P--){var te=g[P],ue=te.span,X=te.newText;u="".concat(u.substring(0,ue.start)).concat(X).concat(u.substring(e.textSpanEnd(ue)))}return u}n.applyChanges=ne;function F(u){return e.skipTrivia(u,0)===u.length}function Q(u){var g=e.visitEachChild(u,Q,e.nullTransformationContext,V,Q),P=e.nodeIsSynthesized(g)?g:Object.create(g);return e.setTextRangePosEnd(P,f(u),a(u)),P}function V(u,g,P,te,ue){var X=e.visitNodes(u,g,P,te,ue);if(!X)return X;var j=X===u?e.factory.createNodeArray(X.slice(0)):X;return e.setTextRangePosEnd(j,f(u),a(u)),j}function re(u){var g=0,P=e.createTextWriter(u),te=function(kr){kr&&p(kr,g)},ue=function(kr){kr&&d(kr,g)},X=function(kr){kr&&p(kr,g)},j=function(kr){kr&&d(kr,g)},Se=function(kr){kr&&p(kr,g)},Ce=function(kr){kr&&d(kr,g)};function R(kr,Ke){if(Ke||!F(kr)){g=P.getTextPos();for(var Me=0;e.isWhiteSpaceLike(kr.charCodeAt(kr.length-Me-1));)Me++;g-=Me}}function Y(kr){P.write(kr),R(kr,!1)}function U(kr){P.writeComment(kr)}function K(kr){P.writeKeyword(kr),R(kr,!1)}function Te(kr){P.writeOperator(kr),R(kr,!1)}function ge(kr){P.writePunctuation(kr),R(kr,!1)}function ke(kr){P.writeTrailingSemicolon(kr),R(kr,!1)}function Pe(kr){P.writeParameter(kr),R(kr,!1)}function Ie(kr){P.writeProperty(kr),R(kr,!1)}function Ge(kr){P.writeSpace(kr),R(kr,!1)}function he(kr){P.writeStringLiteral(kr),R(kr,!1)}function ve(kr,Ke){P.writeSymbol(kr,Ke),R(kr,!1)}function Ve(kr){P.writeLine(kr)}function _e(){P.increaseIndent()}function Le(){P.decreaseIndent()}function qe(){return P.getText()}function Xe(kr){P.rawWrite(kr),R(kr,!1)}function De(kr){P.writeLiteral(kr),R(kr,!0)}function Ae(){return P.getTextPos()}function Ye(){return P.getLine()}function Dr(){return P.getColumn()}function br(){return P.getIndent()}function lr(){return P.isAtStartOfLine()}function Ar(){P.clear(),g=0}return{onBeforeEmitNode:te,onAfterEmitNode:ue,onBeforeEmitNodeArray:X,onAfterEmitNodeArray:j,onBeforeEmitToken:Se,onAfterEmitToken:Ce,write:Y,writeComment:U,writeKeyword:K,writeOperator:Te,writePunctuation:ge,writeTrailingSemicolon:ke,writeParameter:Pe,writeProperty:Ie,writeSpace:Ge,writeStringLiteral:he,writeSymbol:ve,writeLine:Ve,increaseIndent:_e,decreaseIndent:Le,getText:qe,rawWrite:Xe,writeLiteral:De,getTextPos:Ae,getLine:Ye,getColumn:Dr,getIndent:br,isAtStartOfLine:lr,hasTrailingComment:function(){return P.hasTrailingComment()},hasTrailingWhitespace:function(){return P.hasTrailingWhitespace()},clear:Ar}}function T(u){for(var g,P=0,te=u.statements;P<te.length;P++){var ue=te[P];if(e.isPrologueDirective(ue))g=ue;else break}var X=0,j=u.text;if(g)return X=g.end,Ie(),X;var Se=e.getShebang(j);Se!==void 0&&(X=Se.length,Ie());var Ce=e.getLeadingCommentRanges(j,X);if(!Ce)return X;for(var R,Y,U=0,K=Ce;U<K.length;U++){var Te=K[U];if(Te.kind===3){if(e.isPinnedComment(j,Te.pos)){R={range:Te,pinnedOrTripleSlash:!0};continue}}else if(e.isRecognizedTripleSlashComment(j,Te.pos,Te.end)){R={range:Te,pinnedOrTripleSlash:!0};continue}if(R){if(R.pinnedOrTripleSlash)break;var ge=u.getLineAndCharacterOfPosition(Te.pos).line,ke=u.getLineAndCharacterOfPosition(R.range.end).line;if(ge>=ke+2)break}if(u.statements.length){Y===void 0&&(Y=u.getLineAndCharacterOfPosition(u.statements[0].getStart()).line);var Pe=u.getLineAndCharacterOfPosition(Te.end).line;if(Y<Pe+2)break}R={range:Te,pinnedOrTripleSlash:!1}}return R&&(X=R.range.end,Ie()),X;function Ie(){if(X<j.length){var Ge=j.charCodeAt(X);e.isLineBreak(Ge)&&(X++,X<j.length&&Ge===13&&j.charCodeAt(X)===10&&X++)}}}function N(u,g){return!e.isInComment(u,g)&&!e.isInString(u,g)&&!e.isInTemplateString(u,g)&&!e.isInJSXText(u,g)}n.isValidLocationToAddComment=N;function y(u,g){return(e.isPropertySignature(u)||e.isPropertyDeclaration(u))&&e.isClassOrTypeElement(g)&&g.name.kind===161||e.isStatementButNotDeclaration(u)&&e.isStatementButNotDeclaration(g)}var D;(function(u){function g(X,j,Se,Ce){switch(Ce.kind){case 163:{var R=Ce.parent;e.isArrowFunction(R)&&R.parameters.length===1&&!e.findChildOfKind(R,20,Se)?X.replaceNodeWithText(Se,Ce,"()"):m(X,j,Se,Ce);break}case 265:case 264:var Y=Se.imports.length&&Ce===e.first(Se.imports).parent||Ce===e.find(Se.statements,e.isAnyImportSyntax);C(X,Se,Ce,{leadingTriviaOption:Y?k.Exclude:e.hasJSDocNodes(Ce)?k.JSDoc:k.StartLine});break;case 202:var U=Ce.parent,K=U.kind===201&&Ce!==e.last(U.elements);K?C(X,Se,Ce):m(X,j,Se,Ce);break;case 253:ue(X,j,Se,Ce);break;case 162:m(X,j,Se,Ce);break;case 269:var Te=Ce.parent;Te.elements.length===1?te(X,Se,Te):m(X,j,Se,Ce);break;case 267:te(X,Se,Ce);break;case 26:C(X,Se,Ce,{trailingTriviaOption:J.Exclude});break;case 98:C(X,Se,Ce,{leadingTriviaOption:k.Exclude});break;case 256:case 255:C(X,Se,Ce,{leadingTriviaOption:e.hasJSDocNodes(Ce)?k.JSDoc:k.StartLine});break;default:Ce.parent?e.isImportClause(Ce.parent)&&Ce.parent.name===Ce?P(X,Se,Ce.parent):e.isCallExpression(Ce.parent)&&e.contains(Ce.parent.arguments,Ce)?m(X,j,Se,Ce):C(X,Se,Ce):C(X,Se,Ce)}}u.deleteDeclaration=g;function P(X,j,Se){if(!Se.namedBindings)C(X,j,Se.parent);else{var Ce=Se.name.getStart(j),R=e.getTokenAtPosition(j,Se.name.end);if(R&&R.kind===27){var Y=e.skipTrivia(j.text,R.end,!1,!0);X.deleteRange(j,{pos:Ce,end:Y})}else C(X,j,Se.name)}}function te(X,j,Se){if(Se.parent.name){var Ce=e.Debug.checkDefined(e.getTokenAtPosition(j,Se.pos-1));X.deleteRange(j,{pos:Ce.getStart(j),end:Se.end})}else{var R=e.getAncestor(Se,265);C(X,j,R)}}function ue(X,j,Se,Ce){var R=Ce.parent;if(R.kind===291){X.deleteNodeRange(Se,e.findChildOfKind(R,20,Se),e.findChildOfKind(R,21,Se));return}if(R.declarations.length!==1){m(X,j,Se,Ce);return}var Y=R.parent;switch(Y.kind){case 243:case 242:X.replaceNode(Se,Ce,e.factory.createObjectLiteralExpression());break;case 241:C(X,Se,R);break;case 236:C(X,Se,Y,{leadingTriviaOption:e.hasJSDocNodes(Y)?k.JSDoc:k.StartLine});break;default:e.Debug.assertNever(Y)}}})(D||(D={}));function C(u,g,P,te){te===void 0&&(te={leadingTriviaOption:k.IncludeAll});var ue=b(g,P,te),X=S(g,P,te);u.deleteRange(g,{pos:ue,end:X})}n.deleteNode=C;function m(u,g,P,te){var ue=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(te,P)),X=e.indexOfNode(ue,te);if(e.Debug.assert(X!==-1),ue.length===1){C(u,P,te);return}e.Debug.assert(!g.has(te),"Deleting a node twice"),g.add(te),u.deleteRange(P,{pos:w(P,te),end:X===ue.length-1?S(P,te,{}):w(P,ue[X+1])})}})(e.textChanges||(e.textChanges={}))}(jr||(jr={})),function(e){(function(n){var f=e.createMultiMap(),p=new e.Map;function a(I,w,x){return J(I,e.diagnosticToString(x),w,void 0,void 0)}n.createCodeFixActionWithoutFixAll=a;function d(I,w,x,O,q,Z){return J(I,e.diagnosticToString(x),w,O,e.diagnosticToString(q),Z)}n.createCodeFixAction=d;function k(I,w,x,O,q,Z){return J(I,e.diagnosticToString(x),w,O,q&&e.diagnosticToString(q),Z)}n.createCodeFixActionMaybeFixAll=k;function J(I,w,x,O,q,Z){return{fixName:I,description:w,changes:x,fixId:O,fixAllDescription:q,commands:Z?[Z]:void 0}}function h(I){for(var w=0,x=I.errorCodes;w<x.length;w++){var O=x[w];f.add(String(O),I)}if(I.fixIds)for(var q=0,Z=I.fixIds;q<Z.length;q++){var ne=Z[q];e.Debug.assert(!p.has(ne)),p.set(ne,I)}}n.registerCodeFix=h;function v(){return e.arrayFrom(f.keys())}n.getSupportedErrorCodes=v;function A(I,w){for(var x=I.errorCodes,O=0,q=0,Z=w;q<Z.length;q++){var ne=Z[q];if(e.contains(x,ne.code)&&O++,O>1)break}var F=O<2;return function(Q){var V=Q.fixId,re=Q.fixAllDescription,T=oD(Q,["fixId","fixAllDescription"]);return F?T:Rn(Rn({},T),{fixId:V,fixAllDescription:re})}}function z(I){var w=H(I),x=f.get(String(I.errorCode));return e.flatMap(x,function(O){return e.map(O.getCodeActions(I),A(O,w))})}n.getFixes=z;function ie(I){return p.get(e.cast(I.fixId,e.isString)).getAllCodeActions(I)}n.getAllFixes=ie;function b(I,w){return{changes:I,commands:w}}n.createCombinedCodeActions=b;function M(I,w){return{fileName:I,textChanges:w}}n.createFileTextChanges=M;function S(I,w,x){var O=[],q=e.textChanges.ChangeTracker.with(I,function(Z){return B(I,w,function(ne){return x(Z,ne,O)})});return b(q,O.length===0?void 0:O)}n.codeFixAll=S;function B(I,w,x){for(var O=0,q=H(I);O<q.length;O++){var Z=q[O];e.contains(w,Z.code)&&x(Z)}}n.eachDiagnostic=B;function H(I){var w=I.program,x=I.sourceFile,O=I.cancellationToken;return Gt(Gt(Gt([],w.getSemanticDiagnostics(x,O),!0),w.getSyntacticDiagnostics(x,O),!0),e.computeSuggestionDiagnostics(x,w,O),!0)}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f=new e.Map;function p(k,J){f.set(k,J)}n.registerRefactor=p;function a(k){return e.arrayFrom(e.flatMapIterator(f.values(),function(J){var h;return k.cancellationToken&&k.cancellationToken.isCancellationRequested()||!(!((h=J.kinds)===null||h===void 0)&&h.some(function(v){return n.refactorKindBeginsWith(v,k.kind)}))?void 0:J.getAvailableActions(k)}))}n.getApplicableRefactors=a;function d(k,J,h){var v=f.get(J);return v&&v.getEditsForAction(k,h)}n.getEditsForRefactor=d})(e.refactor||(e.refactor={}))}(jr||(jr={})),function(e){(function(n){var f="addConvertToUnknownForNonOverlappingTypes",p=[e.Diagnostics.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];n.registerCodeFix({errorCodes:p,getCodeActions:function(d){var k=e.textChanges.ChangeTracker.with(d,function(J){return a(J,d.sourceFile,d.span.start)});return[n.createCodeFixAction(f,k,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,f,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[f],getAllCodeActions:function(d){return n.codeFixAll(d,p,function(k,J){return a(k,J.file,J.start)})}});function a(d,k,J){var h=e.getTokenAtPosition(k,J),v=e.Debug.checkDefined(e.findAncestor(h,function(z){return e.isAsExpression(z)||e.isTypeAssertionExpression(z)}),"Expected to find an assertion expression"),A=e.isAsExpression(v)?e.factory.createAsExpression(v.expression,e.factory.createKeywordTypeNode(154)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(154),v.expression);d.replaceNode(k,v.expression,A)}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){n.registerCodeFix({errorCodes:[e.Diagnostics.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,e.Diagnostics.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(f){var p=f.sourceFile,a=e.textChanges.ChangeTracker.with(f,function(d){var k=e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([]),void 0);d.insertNodeAtEndOfScope(p,p,k)});return[n.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",a,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="addMissingAsync",p=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];n.registerCodeFix({fixIds:[f],errorCodes:p,getCodeActions:function(h){var v=h.sourceFile,A=h.errorCode,z=h.cancellationToken,ie=h.program,b=h.span,M=e.find(ie.getDiagnosticsProducingTypeChecker().getDiagnostics(v,z),J(b,A)),S=M&&M.relatedInformation&&e.find(M.relatedInformation,function(I){return I.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),B=k(v,S);if(B){var H=function(I){return e.textChanges.ChangeTracker.with(h,I)};return[a(h,B,H)]}},getAllCodeActions:function(h){var v=h.sourceFile,A=new e.Set;return n.codeFixAll(h,p,function(z,ie){var b=ie.relatedInformation&&e.find(ie.relatedInformation,function(B){return B.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),M=k(v,b);if(M){var S=function(B){return B(z),[]};return a(h,M,S,A)}})}});function a(h,v,A,z){var ie=A(function(b){return d(b,h.sourceFile,v,z)});return n.createCodeFixAction(f,ie,e.Diagnostics.Add_async_modifier_to_containing_function,f,e.Diagnostics.Add_all_missing_async_modifiers)}function d(h,v,A,z){if(!(z&&z.has(e.getNodeId(A)))){z==null||z.add(e.getNodeId(A));var ie=e.factory.updateModifiers(e.getSynthesizedDeepClone(A,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(e.getSyntacticModifierFlags(A)|256)));h.replaceNode(v,A,ie)}}function k(h,v){if(v){var A=e.getTokenAtPosition(h,v.start),z=e.findAncestor(A,function(ie){return ie.getStart(h)<v.start||ie.getEnd()>e.textSpanEnd(v)?"quit":(e.isArrowFunction(ie)||e.isMethodDeclaration(ie)||e.isFunctionExpression(ie)||e.isFunctionDeclaration(ie))&&e.textSpansEqual(v,e.createTextSpanFromNode(ie,h))});return z}}function J(h,v){return function(A){var z=A.start,ie=A.length,b=A.relatedInformation,M=A.code;return e.isNumber(z)&&e.isNumber(ie)&&e.textSpansEqual({start:z,length:ie},h)&&M===v&&!!b&&e.some(b,function(S){return S.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})}}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="addMissingAwait",p=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,a=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],d=Gt([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap.code,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p],a,!0);n.registerCodeFix({fixIds:[f],errorCodes:d,getCodeActions:function(B){var H=B.sourceFile,I=B.errorCode,w=B.span,x=B.cancellationToken,O=B.program,q=k(H,I,w,x,O);if(q){var Z=B.program.getTypeChecker(),ne=function(F){return e.textChanges.ChangeTracker.with(B,F)};return e.compact([J(B,q,I,Z,ne),h(B,q,I,Z,ne)])}},getAllCodeActions:function(B){var H=B.sourceFile,I=B.program,w=B.cancellationToken,x=B.program.getTypeChecker(),O=new e.Set;return n.codeFixAll(B,d,function(q,Z){var ne=k(H,Z.code,Z,w,I);if(ne){var F=function(Q){return Q(q),[]};return J(B,ne,Z.code,x,F,O)||h(B,ne,Z.code,x,F,O)}})}});function k(B,H,I,w,x){var O=e.getFixableErrorSpanExpression(B,I);return O&&v(B,H,I,w,x)&&b(O)?O:void 0}function J(B,H,I,w,x,O){var q=B.sourceFile,Z=B.program,ne=B.cancellationToken,F=A(H,q,ne,Z,w);if(F){var Q=x(function(V){e.forEach(F.initializers,function(re){var T=re.expression;return M(V,I,q,w,T,O)}),O&&F.needsSecondPassForFixAll&&M(V,I,q,w,H,O)});return n.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",Q,F.initializers.length===1?[e.Diagnostics.Add_await_to_initializer_for_0,F.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function h(B,H,I,w,x,O){var q=x(function(Z){return M(Z,I,B.sourceFile,w,H,O)});return n.createCodeFixAction(f,q,e.Diagnostics.Add_await,f,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function v(B,H,I,w,x){var O=x.getDiagnosticsProducingTypeChecker(),q=O.getDiagnostics(B,w);return e.some(q,function(Z){var ne=Z.start,F=Z.length,Q=Z.relatedInformation,V=Z.code;return e.isNumber(ne)&&e.isNumber(F)&&e.textSpansEqual({start:ne,length:F},I)&&V===H&&!!Q&&e.some(Q,function(re){return re.code===e.Diagnostics.Did_you_forget_to_use_await.code})})}function A(B,H,I,w,x){var O=z(B,x);if(O){for(var q=O.isCompleteFix,Z,ne=function(re){var T=x.getSymbolAtLocation(re);if(!T)return"continue";var N=e.tryCast(T.valueDeclaration,e.isVariableDeclaration),y=N&&e.tryCast(N.name,e.isIdentifier),D=e.getAncestor(N,236);if(!N||!D||N.type||!N.initializer||D.getSourceFile()!==H||e.hasSyntacticModifier(D,1)||!y||!b(N.initializer))return q=!1,"continue";var C=w.getSemanticDiagnostics(H,I),m=e.FindAllReferences.Core.eachSymbolReferenceInFile(y,x,H,function(u){return re!==u&&!ie(u,C,H,x)});if(m)return q=!1,"continue";(Z||(Z=[])).push({expression:N.initializer,declarationSymbol:T})},F=0,Q=O.identifiers;F<Q.length;F++){var V=Q[F];ne(V)}return Z&&{initializers:Z,needsSecondPassForFixAll:!q}}}function z(B,H){if(e.isPropertyAccessExpression(B.parent)&&e.isIdentifier(B.parent.expression))return{identifiers:[B.parent.expression],isCompleteFix:!0};if(e.isIdentifier(B))return{identifiers:[B],isCompleteFix:!0};if(e.isBinaryExpression(B)){for(var I=void 0,w=!0,x=0,O=[B.left,B.right];x<O.length;x++){var q=O[x],Z=H.getTypeAtLocation(q);if(H.getPromisedTypeOfPromise(Z)){if(!e.isIdentifier(q)){w=!1;continue}(I||(I=[])).push(q)}}return I&&{identifiers:I,isCompleteFix:w}}}function ie(B,H,I,w){var x=e.isPropertyAccessExpression(B.parent)?B.parent.name:e.isBinaryExpression(B.parent)?B.parent:B,O=e.find(H,function(q){return q.start===x.getStart(I)&&q.start+q.length===x.getEnd()});return O&&e.contains(d,O.code)||w.getTypeAtLocation(x).flags&1}function b(B){return B.kind&32768||!!e.findAncestor(B,function(H){return H.parent&&e.isArrowFunction(H.parent)&&H.parent.body===H||e.isBlock(H)&&(H.parent.kind===255||H.parent.kind===212||H.parent.kind===213||H.parent.kind===168)})}function M(B,H,I,w,x,O){if(e.isBinaryExpression(x))for(var q=0,Z=[x.left,x.right];q<Z.length;q++){var ne=Z[q];if(O&&e.isIdentifier(ne)){var F=w.getSymbolAtLocation(ne);if(F&&O.has(e.getSymbolId(F)))continue}var Q=w.getTypeAtLocation(ne),V=w.getPromisedTypeOfPromise(Q)?e.factory.createAwaitExpression(ne):ne;B.replaceNode(I,ne,V)}else if(H===p&&e.isPropertyAccessExpression(x.parent)){if(O&&e.isIdentifier(x.parent.expression)){var F=w.getSymbolAtLocation(x.parent.expression);if(F&&O.has(e.getSymbolId(F)))return}B.replaceNode(I,x.parent.expression,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(x.parent.expression))),S(B,x.parent.expression,I)}else if(e.contains(a,H)&&e.isCallOrNewExpression(x.parent)){if(O&&e.isIdentifier(x)){var F=w.getSymbolAtLocation(x);if(F&&O.has(e.getSymbolId(F)))return}B.replaceNode(I,x,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(x))),S(B,x,I)}else{if(O&&e.isVariableDeclaration(x.parent)&&e.isIdentifier(x.parent.name)){var F=w.getSymbolAtLocation(x.parent.name);if(F&&!e.tryAddToSet(O,e.getSymbolId(F)))return}B.replaceNode(I,x,e.factory.createAwaitExpression(x))}}function S(B,H,I){var w=e.findPrecedingToken(H.pos,I);w&&e.positionIsASICandidate(w.end,w.parent,I)&&B.insertText(I,H.getStart(I),";")}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="addMissingConst",p=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(A){var z=e.textChanges.ChangeTracker.with(A,function(ie){return a(ie,A.sourceFile,A.span.start,A.program)});if(z.length>0)return[n.createCodeFixAction(f,z,e.Diagnostics.Add_const_to_unresolved_variable,f,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[f],getAllCodeActions:function(A){var z=new e.Set;return n.codeFixAll(A,p,function(ie,b){return a(ie,b.file,b.start,A.program,z)})}});function a(A,z,ie,b,M){var S=e.getTokenAtPosition(z,ie),B=e.findAncestor(S,function(O){return e.isForInOrOfStatement(O.parent)?O.parent.initializer===O:k(O)?!1:"quit"});if(B)return d(A,B,z,M);var H=S.parent;if(e.isBinaryExpression(H)&&H.operatorToken.kind===63&&e.isExpressionStatement(H.parent))return d(A,S,z,M);if(e.isArrayLiteralExpression(H)){var I=b.getTypeChecker();return e.every(H.elements,function(O){return J(O,I)})?d(A,H,z,M):void 0}var w=e.findAncestor(S,function(O){return e.isExpressionStatement(O.parent)?!0:h(O)?!1:"quit"});if(w){var x=b.getTypeChecker();return v(w,x)?d(A,w,z,M):void 0}}function d(A,z,ie,b){(!b||e.tryAddToSet(b,z))&&A.insertModifierBefore(ie,85,z)}function k(A){switch(A.kind){case 79:case 203:case 204:case 294:case 295:return!0;default:return!1}}function J(A,z){var ie=e.isIdentifier(A)?A:e.isAssignmentExpression(A,!0)&&e.isIdentifier(A.left)?A.left:void 0;return!!ie&&!z.getSymbolAtLocation(ie)}function h(A){switch(A.kind){case 79:case 220:case 27:return!0;default:return!1}}function v(A,z){return e.isBinaryExpression(A)?A.operatorToken.kind===27?e.every([A.left,A.right],function(ie){return v(ie,z)}):A.operatorToken.kind===63&&e.isIdentifier(A.left)&&!z.getSymbolAtLocation(A.left):!1}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="addMissingDeclareProperty",p=[e.Diagnostics.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];n.registerCodeFix({errorCodes:p,getCodeActions:function(d){var k=e.textChanges.ChangeTracker.with(d,function(J){return a(J,d.sourceFile,d.span.start)});if(k.length>0)return[n.createCodeFixAction(f,k,e.Diagnostics.Prefix_with_declare,f,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[f],getAllCodeActions:function(d){var k=new e.Set;return n.codeFixAll(d,p,function(J,h){return a(J,h.file,h.start,k)})}});function a(d,k,J,h){var v=e.getTokenAtPosition(k,J);if(e.isIdentifier(v)){var A=v.parent;A.kind===166&&(!h||e.tryAddToSet(h,A))&&d.insertModifierBefore(k,135,A)}}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="addMissingInvocationForDecorator",p=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(d){var k=e.textChanges.ChangeTracker.with(d,function(J){return a(J,d.sourceFile,d.span.start)});return[n.createCodeFixAction(f,k,e.Diagnostics.Call_decorator_expression,f,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[f],getAllCodeActions:function(d){return n.codeFixAll(d,p,function(k,J){return a(k,J.file,J.start)})}});function a(d,k,J){var h=e.getTokenAtPosition(k,J),v=e.findAncestor(h,e.isDecorator);e.Debug.assert(!!v,"Expected position to be owned by a decorator.");var A=e.factory.createCallExpression(v.expression,void 0,void 0);d.replaceNode(k,v.expression,A)}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="addNameToNamelessParameter",p=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(d){var k=e.textChanges.ChangeTracker.with(d,function(J){return a(J,d.sourceFile,d.span.start)});return[n.createCodeFixAction(f,k,e.Diagnostics.Add_parameter_name,f,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[f],getAllCodeActions:function(d){return n.codeFixAll(d,p,function(k,J){return a(k,J.file,J.start)})}});function a(d,k,J){var h=e.getTokenAtPosition(k,J),v=h.parent;if(!e.isParameter(v))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(h.kind));var A=v.parent.parameters.indexOf(v);e.Debug.assert(!v.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(A>-1,"Parameter not found in parent parameter list.");var z=e.factory.createTypeReferenceNode(v.name,void 0),ie=e.factory.createParameterDeclaration(void 0,v.modifiers,v.dotDotDotToken,"arg"+A,v.questionToken,v.dotDotDotToken?e.factory.createArrayTypeNode(z):z,v.initializer);d.replaceNode(k,v,ie)}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="addOptionalPropertyUndefined",p=[e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,e.Diagnostics.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];n.registerCodeFix({errorCodes:p,getCodeActions:function(h){var v=h.program.getTypeChecker(),A=a(h.sourceFile,h.span,v);if(A.length){var z=e.textChanges.ChangeTracker.with(h,function(ie){return J(ie,A)});return[n.createCodeFixActionWithoutFixAll(f,z,e.Diagnostics.Add_undefined_to_optional_property_type)]}},fixIds:[f]});function a(h,v,A){var z,ie,b=k(e.getFixableErrorSpanExpression(h,v),A);if(!b)return e.emptyArray;var M=b.source,S=b.target,B=d(M,S,A)?A.getTypeAtLocation(S.expression):A.getTypeAtLocation(S);return!((ie=(z=B.symbol)===null||z===void 0?void 0:z.declarations)===null||ie===void 0)&&ie.some(function(H){return e.getSourceFileOfNode(H).fileName.match(/\.d\.ts$/)})?e.emptyArray:A.getExactOptionalProperties(B)}function d(h,v,A){return e.isPropertyAccessExpression(v)&&!!A.getExactOptionalProperties(A.getTypeAtLocation(v.expression)).length&&A.getTypeAtLocation(h)===A.getUndefinedType()}function k(h,v){var A;if(h){if(e.isBinaryExpression(h.parent)&&h.parent.operatorToken.kind===63)return{source:h.parent.right,target:h.parent.left};if(e.isVariableDeclaration(h.parent)&&h.parent.initializer)return{source:h.parent.initializer,target:h.parent.name};if(e.isCallExpression(h.parent)){var z=v.getSymbolAtLocation(h.parent.expression);if(!(z!=null&&z.valueDeclaration)||!e.isFunctionLikeKind(z.valueDeclaration.kind)||!e.isExpression(h))return;var ie=h.parent.arguments.indexOf(h);if(ie===-1)return;var b=z.valueDeclaration.parameters[ie].name;if(e.isIdentifier(b))return{source:h,target:b}}else if(e.isPropertyAssignment(h.parent)&&e.isIdentifier(h.parent.name)||e.isShorthandPropertyAssignment(h.parent)){var M=k(h.parent.parent,v);if(!M)return;var S=v.getPropertyOfType(v.getTypeAtLocation(M.target),h.parent.name.text),B=(A=S==null?void 0:S.declarations)===null||A===void 0?void 0:A[0];return B?{source:e.isPropertyAssignment(h.parent)?h.parent.initializer:h.parent.name,target:B}:void 0}}else return}function J(h,v){for(var A=0,z=v;A<z.length;A++){var ie=z[A],b=ie.valueDeclaration;if(b&&(e.isPropertySignature(b)||e.isPropertyDeclaration(b))&&b.type){var M=e.factory.createUnionTypeNode(Gt(Gt([],b.type.kind===186?b.type.types:[b.type],!0),[e.factory.createTypeReferenceNode("undefined")],!1));h.replaceNode(b.getSourceFile(),b.type,M)}}}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="annotateWithTypeFromJSDoc",p=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(H){var I=a(H.sourceFile,H.span.start);if(I){var w=e.textChanges.ChangeTracker.with(H,function(x){return J(x,H.sourceFile,I)});return[n.createCodeFixAction(f,w,e.Diagnostics.Annotate_with_type_from_JSDoc,f,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[f],getAllCodeActions:function(H){return n.codeFixAll(H,p,function(I,w){var x=a(w.file,w.start);x&&J(I,w.file,x)})}});function a(H,I){var w=e.getTokenAtPosition(H,I);return e.tryCast(e.isParameter(w.parent)?w.parent.parent:w.parent,d)}function d(H){return h(H)&&k(H)}n.parameterShouldGetTypeFromJSDoc=d;function k(H){return e.isFunctionLikeDeclaration(H)?H.parameters.some(k)||!H.type&&!!e.getJSDocReturnType(H):!H.type&&!!e.getJSDocType(H)}function J(H,I,w){if(e.isFunctionLikeDeclaration(w)&&(e.getJSDocReturnType(w)||w.parameters.some(function(re){return!!e.getJSDocType(re)}))){if(!w.typeParameters){var x=e.getJSDocTypeParameterDeclarations(w);x.length&&H.insertTypeParameters(I,w,x)}var O=e.isArrowFunction(w)&&!e.findChildOfKind(w,20,I);O&&H.insertNodeBefore(I,e.first(w.parameters),e.factory.createToken(20));for(var q=0,Z=w.parameters;q<Z.length;q++){var ne=Z[q];if(!ne.type){var F=e.getJSDocType(ne);F&&H.tryInsertTypeAnnotation(I,ne,v(F))}}if(O&&H.insertNodeAfter(I,e.last(w.parameters),e.factory.createToken(21)),!w.type){var Q=e.getJSDocReturnType(w);Q&&H.tryInsertTypeAnnotation(I,w,v(Q))}}else{var V=e.Debug.checkDefined(e.getJSDocType(w),"A JSDocType for this declaration should exist");e.Debug.assert(!w.type,"The JSDocType decl should have a type"),H.tryInsertTypeAnnotation(I,w,v(V))}}function h(H){return e.isFunctionLikeDeclaration(H)||H.kind===253||H.kind===165||H.kind===166}function v(H){switch(H.kind){case 310:case 311:return e.factory.createTypeReferenceNode("any",e.emptyArray);case 314:return A(H);case 313:return v(H.type);case 312:return z(H);case 316:return ie(H);case 315:return b(H);case 177:return S(H);default:var I=e.visitEachChild(H,v,e.nullTransformationContext);return e.setEmitFlags(I,1),I}}function A(H){return e.factory.createUnionTypeNode([e.visitNode(H.type,v),e.factory.createTypeReferenceNode("undefined",e.emptyArray)])}function z(H){return e.factory.createUnionTypeNode([e.visitNode(H.type,v),e.factory.createTypeReferenceNode("null",e.emptyArray)])}function ie(H){return e.factory.createArrayTypeNode(e.visitNode(H.type,v))}function b(H){var I;return e.factory.createFunctionTypeNode(e.emptyArray,H.parameters.map(M),(I=H.type)!==null&&I!==void 0?I:e.factory.createKeywordTypeNode(130))}function M(H){var I=H.parent.parameters.indexOf(H),w=H.type.kind===316&&I===H.parent.parameters.length-1,x=H.name||(w?"rest":"arg"+I),O=w?e.factory.createToken(25):H.dotDotDotToken;return e.factory.createParameterDeclaration(H.decorators,H.modifiers,O,x,H.questionToken,e.visitNode(H.type,v),H.initializer)}function S(H){var I=H.typeName,w=H.typeArguments;if(e.isIdentifier(H.typeName)){if(e.isJSDocIndexSignature(H))return B(H);var x=H.typeName.text;switch(H.typeName.text){case"String":case"Boolean":case"Object":case"Number":x=x.toLowerCase();break;case"array":case"date":case"promise":x=x[0].toUpperCase()+x.slice(1);break}I=e.factory.createIdentifier(x),(x==="Array"||x==="Promise")&&!H.typeArguments?w=e.factory.createNodeArray([e.factory.createTypeReferenceNode("any",e.emptyArray)]):w=e.visitNodes(H.typeArguments,v)}return e.factory.createTypeReferenceNode(I,w)}function B(H){var I=e.factory.createParameterDeclaration(void 0,void 0,void 0,H.typeArguments[0].kind===146?"n":"s",void 0,e.factory.createTypeReferenceNode(H.typeArguments[0].kind===146?"number":"string",[]),void 0),w=e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[I],H.typeArguments[1])]);return e.setEmitFlags(w,1),w}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="convertFunctionToEs6Class",p=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(h){var v=e.textChanges.ChangeTracker.with(h,function(A){return a(A,h.sourceFile,h.span.start,h.program.getTypeChecker(),h.preferences,h.program.getCompilerOptions())});return[n.createCodeFixAction(f,v,e.Diagnostics.Convert_function_to_an_ES2015_class,f,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[f],getAllCodeActions:function(h){return n.codeFixAll(h,p,function(v,A){return a(v,A.file,A.start,h.program.getTypeChecker(),h.preferences,h.program.getCompilerOptions())})}});function a(h,v,A,z,ie,b){var M=z.getSymbolAtLocation(e.getTokenAtPosition(v,A));if(!M||!M.valueDeclaration||!(M.flags&19))return;var S=M.valueDeclaration;if(e.isFunctionDeclaration(S))h.replaceNode(v,S,x(S));else if(e.isVariableDeclaration(S)){var B=w(S);if(!B)return;var H=S.parent.parent;e.isVariableDeclarationList(S.parent)&&S.parent.declarations.length>1?(h.delete(v,S),h.insertNodeAfter(v,H,B)):h.replaceNode(v,H,B)}function I(O){var q=[];return O.members&&O.members.forEach(function(F,Q){if(Q==="constructor"&&F.valueDeclaration){h.delete(v,F.valueDeclaration.parent);return}var V=ne(F,void 0);V&&q.push.apply(q,V)}),O.exports&&O.exports.forEach(function(F){if(F.name==="prototype"&&F.declarations){var Q=F.declarations[0];if(F.declarations.length===1&&e.isPropertyAccessExpression(Q)&&e.isBinaryExpression(Q.parent)&&Q.parent.operatorToken.kind===63&&e.isObjectLiteralExpression(Q.parent.right)){var V=Q.parent.right,re=ne(V.symbol,void 0);re&&q.push.apply(q,re)}}else{var re=ne(F,[e.factory.createToken(124)]);re&&q.push.apply(q,re)}}),q;function Z(F,Q){return e.isAccessExpression(F)?e.isPropertyAccessExpression(F)&&k(F)?!0:e.isFunctionLike(Q):e.every(F.properties,function(V){return!!(e.isMethodDeclaration(V)||e.isGetOrSetAccessorDeclaration(V)||e.isPropertyAssignment(V)&&e.isFunctionExpression(V.initializer)&&V.name||k(V))})}function ne(F,Q){var V=[];if(!(F.flags&8192)&&!(F.flags&4096))return V;var re=F.valueDeclaration,T=re.parent,N=T.right;if(!Z(re,N))return V;var y=T.parent&&T.parent.kind===237?T.parent:T;if(h.delete(v,y),!N)return V.push(e.factory.createPropertyDeclaration([],Q,F.name,void 0,void 0,void 0)),V;if(e.isAccessExpression(re)&&(e.isFunctionExpression(N)||e.isArrowFunction(N))){var D=e.getQuotePreference(v,ie),C=J(re,b,D);return C?u(V,N,C):V}else{if(e.isObjectLiteralExpression(N))return e.flatMap(N.properties,function(te){return e.isMethodDeclaration(te)||e.isGetOrSetAccessorDeclaration(te)?V.concat(te):e.isPropertyAssignment(te)&&e.isFunctionExpression(te.initializer)?u(V,te.initializer,te.name):k(te)?V:[]});if(e.isSourceFileJS(v)||!e.isPropertyAccessExpression(re))return V;var m=e.factory.createPropertyDeclaration(void 0,Q,re.name,void 0,void 0,N);return e.copyLeadingComments(T.parent,m,v),V.push(m),V}function u(te,ue,X){return e.isFunctionExpression(ue)?g(te,ue,X):P(te,ue,X)}function g(te,ue,X){var j=e.concatenate(Q,d(ue,131)),Se=e.factory.createMethodDeclaration(void 0,j,void 0,X,void 0,void 0,ue.parameters,void 0,ue.body);return e.copyLeadingComments(T,Se,v),te.concat(Se)}function P(te,ue,X){var j=ue.body,Se;j.kind===234?Se=j:Se=e.factory.createBlock([e.factory.createReturnStatement(j)]);var Ce=e.concatenate(Q,d(ue,131)),R=e.factory.createMethodDeclaration(void 0,Ce,void 0,X,void 0,void 0,ue.parameters,void 0,Se);return e.copyLeadingComments(T,R,v),te.concat(R)}}}function w(O){var q=O.initializer;if(!(!q||!e.isFunctionExpression(q)||!e.isIdentifier(O.name))){var Z=I(O.symbol);q.body&&Z.unshift(e.factory.createConstructorDeclaration(void 0,void 0,q.parameters,q.body));var ne=d(O.parent.parent,93),F=e.factory.createClassDeclaration(void 0,ne,O.name,void 0,void 0,Z);return F}}function x(O){var q=I(M);O.body&&q.unshift(e.factory.createConstructorDeclaration(void 0,void 0,O.parameters,O.body));var Z=d(O,93),ne=e.factory.createClassDeclaration(void 0,Z,O.name,void 0,void 0,q);return ne}}function d(h,v){return e.filter(h.modifiers,function(A){return A.kind===v})}function k(h){return h.name?!!(e.isIdentifier(h.name)&&h.name.text==="constructor"):!1}function J(h,v,A){if(e.isPropertyAccessExpression(h))return h.name;var z=h.argumentExpression;if(e.isNumericLiteral(z))return z;if(e.isStringLiteralLike(z))return e.isIdentifierText(z.text,e.getEmitScriptTarget(v))?e.factory.createIdentifier(z.text):e.isNoSubstitutionTemplateLiteral(z)?e.factory.createStringLiteral(z.text,A===0):z}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="convertToAsyncFunction",p=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],a=!0;n.registerCodeFix({errorCodes:p,getCodeActions:function(R){a=!0;var Y=e.textChanges.ChangeTracker.with(R,function(U){return k(U,R.sourceFile,R.span.start,R.program.getTypeChecker())});return a?[n.createCodeFixAction(f,Y,e.Diagnostics.Convert_to_async_function,f,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[f],getAllCodeActions:function(R){return n.codeFixAll(R,p,function(Y,U){return k(Y,U.file,U.start,R.program.getTypeChecker())})}});var d;(function(R){R[R.Identifier=0]="Identifier",R[R.BindingPattern=1]="BindingPattern"})(d||(d={}));function k(R,Y,U,K){var Te=e.getTokenAtPosition(Y,U),ge;if(e.isIdentifier(Te)&&e.isVariableDeclaration(Te.parent)&&Te.parent.initializer&&e.isFunctionLikeDeclaration(Te.parent.initializer)?ge=Te.parent.initializer:ge=e.tryCast(e.getContainingFunction(e.getTokenAtPosition(Y,U)),e.canBeConvertedToAsync),!!ge){var ke=new e.Map,Pe=e.isInJSFile(ge),Ie=h(ge,K),Ge=b(ge,K,ke);if(e.returnsPromise(Ge,K)){var he=Ge.body&&e.isBlock(Ge.body)?J(Ge.body,K):e.emptyArray,ve={checker:K,synthNamesMap:ke,setOfExpressionsToReturn:Ie,isInJSFile:Pe};if(he.length){var Ve=ge.modifiers?ge.modifiers.end:ge.decorators?e.skipTrivia(Y.text,ge.decorators.end):ge.getStart(Y),_e=ge.modifiers?{prefix:" "}:{suffix:" "};R.insertModifierAt(Y,Ve,131,_e);for(var Le=function(Ye){if(e.forEachChild(Ye,function Dr(br){if(e.isCallExpression(br)){var lr=H(br,br,ve,!1);if(S())return!0;R.replaceNodeWithNodes(Y,Ye,lr)}else if(!e.isFunctionLike(br)&&(e.forEachChild(br,Dr),S()))return!0}),S())return{value:void 0}},qe=0,Xe=he;qe<Xe.length;qe++){var De=Xe[qe],Ae=Le(De);if(typeof Ae=="object")return Ae.value}}}}}function J(R,Y){var U=[];return e.forEachReturnStatement(R,function(K){e.isReturnStatementWithFixablePromiseHandler(K,Y)&&U.push(K)}),U}function h(R,Y){if(!R.body)return new e.Set;var U=new e.Set;return e.forEachChild(R.body,function K(Te){v(Te,Y,"then")?(U.add(e.getNodeId(Te)),e.forEach(Te.arguments,K)):v(Te,Y,"catch")||v(Te,Y,"finally")?(U.add(e.getNodeId(Te)),e.forEachChild(Te,K)):ie(Te,Y)?U.add(e.getNodeId(Te)):e.forEachChild(Te,K)}),U}function v(R,Y,U){if(!e.isCallExpression(R))return!1;var K=e.hasPropertyAccessExpressionWithName(R,U),Te=K&&Y.getTypeAtLocation(R);return!!(Te&&Y.getPromisedTypeOfPromise(Te))}function A(R,Y){return(e.getObjectFlags(R)&4)!==0&&R.target===Y}function z(R,Y,U){if(R.expression.name.escapedText!=="finally"){var K=U.getTypeAtLocation(R.expression.expression);if(A(K,U.getPromiseType())||A(K,U.getPromiseLikeType()))if(R.expression.name.escapedText==="then"){if(Y===e.elementAt(R.arguments,0))return e.elementAt(R.typeArguments,0);if(Y===e.elementAt(R.arguments,1))return e.elementAt(R.typeArguments,1)}else return e.elementAt(R.typeArguments,0)}}function ie(R,Y){return e.isExpression(R)?!!Y.getPromisedTypeOfPromise(Y.getTypeAtLocation(R)):!1}function b(R,Y,U){var K=new e.Map,Te=e.createMultiMap();return e.forEachChild(R,function ge(ke){if(!e.isIdentifier(ke)){e.forEachChild(ke,ge);return}var Pe=Y.getSymbolAtLocation(ke);if(Pe){var Ie=Y.getTypeAtLocation(ke),Ge=N(Ie,Y),he=e.getSymbolId(Pe).toString();if(Ge&&!e.isParameter(ke.parent)&&!e.isFunctionLikeDeclaration(ke.parent)&&!U.has(he)){var ve=e.firstOrUndefined(Ge.parameters),Ve=(ve==null?void 0:ve.valueDeclaration)&&e.isParameter(ve.valueDeclaration)&&e.tryCast(ve.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),_e=M(Ve,Te);U.set(he,_e),Te.add(Ve.text,Pe)}else if(ke.parent&&(e.isParameter(ke.parent)||e.isVariableDeclaration(ke.parent)||e.isBindingElement(ke.parent))){var Le=ke.text,qe=Te.get(Le);if(qe&&qe.some(function(Ae){return Ae!==Pe})){var Xe=M(ke,Te);K.set(he,Xe.identifier),U.set(he,Xe),Te.add(Le,Pe)}else{var De=e.getSynthesizedDeepClone(ke);U.set(he,u(De)),Te.add(Le,Pe)}}}}),e.getSynthesizedDeepCloneWithReplacements(R,!0,function(ge){if(e.isBindingElement(ge)&&e.isIdentifier(ge.name)&&e.isObjectBindingPattern(ge.parent)){var ke=Y.getSymbolAtLocation(ge.name),Pe=ke&&K.get(String(e.getSymbolId(ke)));if(Pe&&Pe.text!==(ge.name||ge.propertyName).getText())return e.factory.createBindingElement(ge.dotDotDotToken,ge.propertyName||ge.name,Pe,ge.initializer)}else if(e.isIdentifier(ge)){var ke=Y.getSymbolAtLocation(ge),Pe=ke&&K.get(String(e.getSymbolId(ke)));if(Pe)return e.factory.createIdentifier(Pe.text)}})}function M(R,Y){var U=(Y.get(R.text)||e.emptyArray).length,K=U===0?R:e.factory.createIdentifier(R.text+"_"+U);return u(K)}function S(){return!a}function B(){return a=!1,e.emptyArray}function H(R,Y,U,K,Te){if(v(Y,U.checker,"then"))return ne(Y,e.elementAt(Y.arguments,0),e.elementAt(Y.arguments,1),U,K,Te);if(v(Y,U.checker,"catch"))return Z(Y,e.elementAt(Y.arguments,0),U,K,Te);if(v(Y,U.checker,"finally"))return q(Y,e.elementAt(Y.arguments,0),U,K,Te);if(e.isPropertyAccessExpression(Y))return H(R,Y.expression,U,K,Te);var ge=U.checker.getTypeAtLocation(Y);return ge&&U.checker.getPromisedTypeOfPromise(ge)?(e.Debug.assertNode(e.getOriginalNode(Y).parent,e.isPropertyAccessExpression),F(R,Y,U,K,Te)):B()}function I(R,Y){var U=R.checker;if(Y.kind===104)return!0;if(e.isIdentifier(Y)&&!e.isGeneratedIdentifier(Y)&&e.idText(Y)==="undefined"){var K=U.getSymbolAtLocation(Y);return!K||U.isUndefinedSymbol(K)}return!1}function w(R){var Y=e.factory.createUniqueName(R.identifier.text,16);return u(Y)}function x(R,Y,U){var K;return U&&!Ce(R,Y)&&(j(U)?(K=U,Y.synthNamesMap.forEach(function(Te,ge){if(Te.identifier.text===U.identifier.text){var ke=w(U);Y.synthNamesMap.set(ge,ke)}})):K=u(e.factory.createUniqueName("result",16),U.types),X(K)),K}function O(R,Y,U,K,Te){var ge=[],ke;if(K&&!Ce(R,Y)){ke=e.getSynthesizedDeepClone(X(K));var Pe=K.types,Ie=Y.checker.getUnionType(Pe,2),Ge=Y.isInJSFile?void 0:Y.checker.typeToTypeNode(Ie,void 0,void 0),he=[e.factory.createVariableDeclaration(ke,void 0,Ge)],ve=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList(he,1));ge.push(ve)}return ge.push(U),Te&&ke&&Se(Te)&&ge.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(ue(Te)),void 0,void 0,ke)],2))),ge}function q(R,Y,U,K,Te){if(!Y||I(U,Y))return H(R,R.expression.expression,U,K,Te);var ge=x(R,U,Te),ke=H(R,R.expression.expression,U,!0,ge);if(S())return B();var Pe=re(Y,K,void 0,void 0,R,U);if(S())return B();var Ie=e.factory.createBlock(ke),Ge=e.factory.createBlock(Pe),he=e.factory.createTryStatement(Ie,void 0,Ge);return O(R,U,he,ge,Te)}function Z(R,Y,U,K,Te){if(!Y||I(U,Y))return H(R,R.expression.expression,U,K,Te);var ge=C(Y,U),ke=x(R,U,Te),Pe=H(R,R.expression.expression,U,!0,ke);if(S())return B();var Ie=re(Y,K,ke,ge,R,U);if(S())return B();var Ge=e.factory.createBlock(Pe),he=e.factory.createCatchClause(ge&&e.getSynthesizedDeepClone(te(ge)),e.factory.createBlock(Ie)),ve=e.factory.createTryStatement(Ge,he,void 0);return O(R,U,ve,ke,Te)}function ne(R,Y,U,K,Te,ge){if(!Y||I(K,Y))return Z(R,U,K,Te,ge);if(U&&!I(K,U))return B();var ke=C(Y,K),Pe=H(R.expression.expression,R.expression.expression,K,!0,ke);if(S())return B();var Ie=re(Y,Te,ge,ke,R,K);return S()?B():e.concatenate(Pe,Ie)}function F(R,Y,U,K,Te){if(Ce(R,U)){var ge=e.getSynthesizedDeepClone(Y);return K&&(ge=e.factory.createAwaitExpression(ge)),[e.factory.createReturnStatement(ge)]}return Q(Te,e.factory.createAwaitExpression(Y),void 0)}function Q(R,Y,U){return!R||m(R)?[e.factory.createExpressionStatement(Y)]:j(R)&&R.hasBeenDeclared?[e.factory.createExpressionStatement(e.factory.createAssignment(e.getSynthesizedDeepClone(P(R)),Y))]:[e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(te(R)),void 0,U,Y)],2))]}function V(R,Y){if(Y&&R){var U=e.factory.createUniqueName("result",16);return Gt(Gt([],Q(u(U),R,Y),!0),[e.factory.createReturnStatement(U)],!1)}return[e.factory.createReturnStatement(R)]}function re(R,Y,U,K,Te,ge){var ke;switch(R.kind){case 104:break;case 205:case 79:if(!K)break;var Pe=e.factory.createCallExpression(e.getSynthesizedDeepClone(R),void 0,j(K)?[P(K)]:[]);if(Ce(Te,ge))return V(Pe,z(Te,R,ge.checker));var Ie=ge.checker.getTypeAtLocation(R),Ge=ge.checker.getSignaturesOfType(Ie,0);if(!Ge.length)return B();var he=Ge[0].getReturnType(),ve=Q(U,e.factory.createAwaitExpression(Pe),z(Te,R,ge.checker));return U&&U.types.push(ge.checker.getAwaitedType(he)||he),ve;case 212:case 213:{var Ve=R.body,_e=(ke=N(ge.checker.getTypeAtLocation(R),ge.checker))===null||ke===void 0?void 0:ke.getReturnType();if(e.isBlock(Ve)){for(var Le=[],qe=!1,Xe=0,De=Ve.statements;Xe<De.length;Xe++){var Ae=De[Xe];if(e.isReturnStatement(Ae))if(qe=!0,e.isReturnStatementWithFixablePromiseHandler(Ae,ge.checker))Le=Le.concat(D(ge,Ae,Y,U));else{var Ye=_e&&Ae.expression?T(ge.checker,_e,Ae.expression):Ae.expression;Le.push.apply(Le,V(Ye,z(Te,R,ge.checker)))}else{if(Y&&e.forEachReturnStatement(Ae,e.returnTrue))return B();Le.push(Ae)}}return Ce(Te,ge)?Le.map(function(lr){return e.getSynthesizedDeepClone(lr)}):y(Le,U,ge,qe)}else{var Dr=e.isFixablePromiseHandler(Ve,ge.checker)?D(ge,e.factory.createReturnStatement(Ve),Y,U):e.emptyArray;if(Dr.length>0)return Dr;if(_e){var Ye=T(ge.checker,_e,Ve);if(Ce(Te,ge))return V(Ye,z(Te,R,ge.checker));var br=Q(U,Ye,void 0);return U&&U.types.push(ge.checker.getAwaitedType(_e)||_e),br}else return B()}}default:return B()}return e.emptyArray}function T(R,Y,U){var K=e.getSynthesizedDeepClone(U);return R.getPromisedTypeOfPromise(Y)?e.factory.createAwaitExpression(K):K}function N(R,Y){var U=Y.getSignaturesOfType(R,0);return e.lastOrUndefined(U)}function y(R,Y,U,K){for(var Te=[],ge=0,ke=R;ge<ke.length;ge++){var Pe=ke[ge];if(e.isReturnStatement(Pe)){if(Pe.expression){var Ie=ie(Pe.expression,U.checker)?e.factory.createAwaitExpression(Pe.expression):Pe.expression;Y===void 0?Te.push(e.factory.createExpressionStatement(Ie)):j(Y)&&Y.hasBeenDeclared?Te.push(e.factory.createExpressionStatement(e.factory.createAssignment(P(Y),Ie))):Te.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(te(Y),void 0,void 0,Ie)],2)))}}else Te.push(e.getSynthesizedDeepClone(Pe))}return!K&&Y!==void 0&&Te.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(te(Y),void 0,void 0,e.factory.createIdentifier("undefined"))],2))),Te}function D(R,Y,U,K){var Te=[];return e.forEachChild(Y,function ge(ke){if(e.isCallExpression(ke)){var Pe=H(ke,ke,R,U,K);if(Te=Te.concat(Pe),Te.length>0)return}else e.isFunctionLike(ke)||e.forEachChild(ke,ge)}),Te}function C(R,Y){var U=[],K;if(e.isFunctionLikeDeclaration(R)){if(R.parameters.length>0){var Te=R.parameters[0].name;K=ge(Te)}}else e.isIdentifier(R)?K=ke(R):e.isPropertyAccessExpression(R)&&e.isIdentifier(R.name)&&(K=ke(R.name));if(!K||"identifier"in K&&K.identifier.text==="undefined")return;return K;function ge(Ge){if(e.isIdentifier(Ge))return ke(Ge);var he=e.flatMap(Ge.elements,function(ve){return e.isOmittedExpression(ve)?[]:[ge(ve.name)]});return g(Ge,he)}function ke(Ge){var he=Ie(Ge),ve=Pe(he);if(!ve)return u(Ge,U);var Ve=Y.synthNamesMap.get(e.getSymbolId(ve).toString());return Ve||u(Ge,U)}function Pe(Ge){return Ge.symbol?Ge.symbol:Y.checker.getSymbolAtLocation(Ge)}function Ie(Ge){return Ge.original?Ge.original:Ge}}function m(R){return R?j(R)?!R.identifier.text:e.every(R.elements,m):!0}function u(R,Y){return Y===void 0&&(Y=[]),{kind:0,identifier:R,types:Y,hasBeenDeclared:!1,hasBeenReferenced:!1}}function g(R,Y,U){return Y===void 0&&(Y=e.emptyArray),U===void 0&&(U=[]),{kind:1,bindingPattern:R,elements:Y,types:U}}function P(R){return R.hasBeenReferenced=!0,R.identifier}function te(R){return j(R)?X(R):ue(R)}function ue(R){for(var Y=0,U=R.elements;Y<U.length;Y++){var K=U[Y];te(K)}return R.bindingPattern}function X(R){return R.hasBeenDeclared=!0,R.identifier}function j(R){return R.kind===0}function Se(R){return R.kind===1}function Ce(R,Y){return!!R.original&&Y.setOfExpressionsToReturn.has(e.getNodeId(R.original))}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){n.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions:function(D){var C=D.sourceFile,m=D.program,u=D.preferences,g=e.textChanges.ChangeTracker.with(D,function(P){var te=p(C,m.getTypeChecker(),P,e.getEmitScriptTarget(m.getCompilerOptions()),e.getQuotePreference(C,u));if(te)for(var ue=0,X=m.getSourceFiles();ue<X.length;ue++){var j=X[ue];f(j,C,P,e.getQuotePreference(j,u))}});return[n.createCodeFixActionWithoutFixAll("convertToEsModule",g,e.Diagnostics.Convert_to_ES_module)]}});function f(D,C,m,u){for(var g=0,P=D.imports;g<P.length;g++){var te=P[g],ue=e.getResolvedModule(D,te.text,e.getModeForUsageLocation(D,te));if(!(!ue||ue.resolvedFileName!==C.fileName)){var X=e.importFromModuleSpecifier(te);switch(X.kind){case 264:m.replaceNode(D,X,e.makeImport(X.name,void 0,te,u));break;case 207:e.isRequireCall(X,!1)&&m.replaceNode(D,X,e.factory.createPropertyAccessExpression(e.getSynthesizedDeepClone(X),"default"));break}}}}function p(D,C,m,u,g){var P={original:q(D),additional:new e.Set},te=a(D,C,P);d(D,te,m);for(var ue=!1,X,j=0,Se=e.filter(D.statements,e.isVariableStatement);j<Se.length;j++){var Ce=Se[j],R=h(D,Ce,m,C,P,u,g);R&&e.copyEntries(R,X??(X=new e.Map))}for(var Y=0,U=e.filter(D.statements,function(Te){return!e.isVariableStatement(Te)});Y<U.length;Y++){var Ce=U[Y],K=J(D,Ce,C,m,P,u,te,X,g);ue=ue||K}return X==null||X.forEach(function(Te,ge){m.replaceNode(D,ge,Te)}),ue}function a(D,C,m){var u=new e.Map;return k(D,function(g){var P=g.name,te=P.text,ue=P.originalKeywordKind;!u.has(te)&&(ue!==void 0&&e.isNonContextualKeyword(ue)||C.resolveName(te,g,111551,!0))&&u.set(te,O("_".concat(te),m))}),u}function d(D,C,m){k(D,function(u,g){if(!g){var P=u.name.text;m.replaceNode(D,u,e.factory.createIdentifier(C.get(P)||P))}})}function k(D,C){D.forEachChild(function m(u){if(e.isPropertyAccessExpression(u)&&e.isExportsOrModuleExportsOrAlias(D,u.expression)&&e.isIdentifier(u.name)){var g=u.parent;C(u,e.isBinaryExpression(g)&&g.left===u&&g.operatorToken.kind===63)}u.forEachChild(m)})}function J(D,C,m,u,g,P,te,ue,X){switch(C.kind){case 236:return h(D,C,u,m,g,P,X),!1;case 237:{var j=C.expression;switch(j.kind){case 207:return e.isRequireCall(j,!0)&&u.replaceNode(D,C,e.makeImport(void 0,void 0,j.arguments[0],X)),!1;case 220:{var Se=j.operatorToken;return Se.kind===63&&A(D,m,j,u,te,ue)}}}default:return!1}}function h(D,C,m,u,g,P,te){var ue=C.declarationList,X=!1,j=e.map(ue.declarations,function(Ce){var R=Ce.name,Y=Ce.initializer;if(Y){if(e.isExportsOrModuleExportsOrAlias(D,Y))return X=!0,y([]);if(e.isRequireCall(Y,!0))return X=!0,w(R,Y.arguments[0],u,g,P,te);if(e.isPropertyAccessExpression(Y)&&e.isRequireCall(Y.expression,!0))return X=!0,v(R,Y.name.text,Y.expression.arguments[0],g,te)}return y([e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([Ce],ue.flags))])});if(X){m.replaceNodeWithNodes(D,C,e.flatMap(j,function(Ce){return Ce.newImports}));var Se;return e.forEach(j,function(Ce){Ce.useSitesToUnqualify&&e.copyEntries(Ce.useSitesToUnqualify,Se??(Se=new e.Map))}),Se}}function v(D,C,m,u,g){switch(D.kind){case 200:case 201:{var P=O(C,u);return y([V(P,C,m,g),T(void 0,D,e.factory.createIdentifier(P))])}case 79:return y([V(D.text,C,m,g)]);default:return e.Debug.assertNever(D,"Convert to ES module got invalid syntax form ".concat(D.kind))}}function A(D,C,m,u,g,P){var te=m.left,ue=m.right;if(!e.isPropertyAccessExpression(te))return!1;if(e.isExportsOrModuleExportsOrAlias(D,te))if(e.isExportsOrModuleExportsOrAlias(D,ue))u.delete(D,m.parent);else{var X=e.isObjectLiteralExpression(ue)?z(ue,P):e.isRequireCall(ue,!0)?b(ue.arguments[0],C):void 0;return X?(u.replaceNodeWithNodes(D,m.parent,X[0]),X[1]):(u.replaceRangeWithText(D,e.createRange(te.getStart(D),ue.pos),"export default"),!0)}else e.isExportsOrModuleExportsOrAlias(D,te.expression)&&ie(D,m,u,g);return!1}function z(D,C){var m=e.mapAllOrFail(D.properties,function(u){switch(u.kind){case 171:case 172:case 295:case 296:return;case 294:return e.isIdentifier(u.name)?H(u.name.text,u.initializer,C):void 0;case 168:return e.isIdentifier(u.name)?F(u.name.text,[e.factory.createToken(93)],u,C):void 0;default:e.Debug.assertNever(u,"Convert to ES6 got invalid prop kind ".concat(u.kind))}});return m&&[m,!1]}function ie(D,C,m,u){var g=C.left.name.text,P=u.get(g);if(P!==void 0){var te=[T(void 0,P,C.right),N([e.factory.createExportSpecifier(!1,P,g)])];m.replaceNodeWithNodes(D,C.parent,te)}else B(C,D,m)}function b(D,C){var m=D.text,u=C.getSymbolAtLocation(D),g=u?u.exports:e.emptyMap;return g.has("export=")?[[S(m)],!0]:g.has("default")?g.size>1?[[M(m),S(m)],!0]:[[S(m)],!0]:[[M(m)],!1]}function M(D){return N(void 0,D)}function S(D){return N([e.factory.createExportSpecifier(!1,void 0,"default")],D)}function B(D,C,m){var u=D.left,g=D.right,P=D.parent,te=u.name.text;if((e.isFunctionExpression(g)||e.isArrowFunction(g)||e.isClassExpression(g))&&(!g.name||g.name.text===te)){m.replaceRange(C,{pos:u.getStart(C),end:g.getStart(C)},e.factory.createToken(93),{suffix:" "}),g.name||m.insertName(C,g,te);var ue=e.findChildOfKind(P,26,C);ue&&m.delete(C,ue)}else m.replaceNodeRangeWithNodes(C,u.expression,e.findChildOfKind(u,24,C),[e.factory.createToken(93),e.factory.createToken(85)],{joiner:" ",suffix:" "})}function H(D,C,m){var u=[e.factory.createToken(93)];switch(C.kind){case 212:{var g=C.name;if(g&&g.text!==D)return P()}case 213:return F(D,u,C,m);case 225:return Q(D,u,C,m);default:return P()}function P(){return T(u,e.factory.createIdentifier(D),I(C,m))}}function I(D,C){if(!C||!e.some(e.arrayFrom(C.keys()),function(u){return e.rangeContainsRange(D,u)}))return D;return e.isArray(D)?e.getSynthesizedDeepClonesWithReplacements(D,!0,m):e.getSynthesizedDeepCloneWithReplacements(D,!0,m);function m(u){if(u.kind===205){var g=C.get(u);return C.delete(u),g}}}function w(D,C,m,u,g,P){switch(D.kind){case 200:{var te=e.mapAllOrFail(D.elements,function(X){return X.dotDotDotToken||X.initializer||X.propertyName&&!e.isIdentifier(X.propertyName)||!e.isIdentifier(X.name)?void 0:re(X.propertyName&&X.propertyName.text,X.name.text)});if(te)return y([e.makeImport(void 0,te,C,P)])}case 201:{var ue=O(n.moduleSpecifierToValidIdentifier(C.text,g),u);return y([e.makeImport(e.factory.createIdentifier(ue),void 0,C,P),T(void 0,e.getSynthesizedDeepClone(D),e.factory.createIdentifier(ue))])}case 79:return x(D,C,m,u,P);default:return e.Debug.assertNever(D,"Convert to ES module got invalid name kind ".concat(D.kind))}}function x(D,C,m,u,g){for(var P=m.getSymbolAtLocation(D),te=new e.Map,ue=!1,X,j=0,Se=u.original.get(D.text);j<Se.length;j++){var Ce=Se[j];if(!(m.getSymbolAtLocation(Ce)!==P||Ce===D)){var R=Ce.parent;if(e.isPropertyAccessExpression(R)){var Y=R.name.text;if(Y==="default"){ue=!0;var U=Ce.getText();(X??(X=new e.Map)).set(R,e.factory.createIdentifier(U))}else{e.Debug.assert(R.expression===Ce,"Didn't expect expression === use");var K=te.get(Y);K===void 0&&(K=O(Y,u),te.set(Y,K)),(X??(X=new e.Map)).set(R,e.factory.createIdentifier(K))}}else ue=!0}}var Te=te.size===0?void 0:e.arrayFrom(e.mapIterator(te.entries(),function(ge){var ke=ge[0],Pe=ge[1];return e.factory.createImportSpecifier(!1,ke===Pe?void 0:e.factory.createIdentifier(ke),e.factory.createIdentifier(Pe))}));return Te||(ue=!0),y([e.makeImport(ue?e.getSynthesizedDeepClone(D):void 0,Te,C,g)],X)}function O(D,C){for(;C.original.has(D)||C.additional.has(D);)D="_".concat(D);return C.additional.add(D),D}function q(D){var C=e.createMultiMap();return Z(D,function(m){return C.add(m.text,m)}),C}function Z(D,C){e.isIdentifier(D)&&ne(D)&&C(D),D.forEachChild(function(m){return Z(m,C)})}function ne(D){var C=D.parent;switch(C.kind){case 205:return C.name!==D;case 202:return C.propertyName!==D;case 269:return C.propertyName!==D;default:return!0}}function F(D,C,m,u){return e.factory.createFunctionDeclaration(e.getSynthesizedDeepClones(m.decorators),e.concatenate(C,e.getSynthesizedDeepClones(m.modifiers)),e.getSynthesizedDeepClone(m.asteriskToken),D,e.getSynthesizedDeepClones(m.typeParameters),e.getSynthesizedDeepClones(m.parameters),e.getSynthesizedDeepClone(m.type),e.factory.converters.convertToFunctionBlock(I(m.body,u)))}function Q(D,C,m,u){return e.factory.createClassDeclaration(e.getSynthesizedDeepClones(m.decorators),e.concatenate(C,e.getSynthesizedDeepClones(m.modifiers)),D,e.getSynthesizedDeepClones(m.typeParameters),e.getSynthesizedDeepClones(m.heritageClauses),I(m.members,u))}function V(D,C,m,u){return C==="default"?e.makeImport(e.factory.createIdentifier(D),void 0,m,u):e.makeImport(void 0,[re(C,D)],m,u)}function re(D,C){return e.factory.createImportSpecifier(!1,D!==void 0&&D!==C?e.factory.createIdentifier(D):void 0,e.factory.createIdentifier(C))}function T(D,C,m){return e.factory.createVariableStatement(D,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(C,void 0,void 0,m)],2))}function N(D,C){return e.factory.createExportDeclaration(void 0,void 0,!1,D&&e.factory.createNamedExports(D),C===void 0?void 0:e.factory.createStringLiteral(C))}function y(D,C){return{newImports:D,useSitesToUnqualify:C}}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="correctQualifiedNameToIndexedAccessType",p=[e.Diagnostics.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];n.registerCodeFix({errorCodes:p,getCodeActions:function(k){var J=a(k.sourceFile,k.span.start);if(J){var h=e.textChanges.ChangeTracker.with(k,function(A){return d(A,k.sourceFile,J)}),v="".concat(J.left.text,'["').concat(J.right.text,'"]');return[n.createCodeFixAction(f,h,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,v],f,e.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[f],getAllCodeActions:function(k){return n.codeFixAll(k,p,function(J,h){var v=a(h.file,h.start);v&&d(J,h.file,v)})}});function a(k,J){var h=e.findAncestor(e.getTokenAtPosition(k,J),e.isQualifiedName);return e.Debug.assert(!!h,"Expected position to be owned by a qualified name."),e.isIdentifier(h.left)?h:void 0}function d(k,J,h){var v=h.right.text,A=e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(h.left,void 0),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(v)));k.replaceNode(J,h,A)}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f=[e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code],p="convertToTypeOnlyExport";n.registerCodeFix({errorCodes:f,getCodeActions:function(J){var h=e.textChanges.ChangeTracker.with(J,function(v){return d(v,a(J.span,J.sourceFile),J)});if(h.length)return[n.createCodeFixAction(p,h,e.Diagnostics.Convert_to_type_only_export,p,e.Diagnostics.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[p],getAllCodeActions:function(J){var h=new e.Map;return n.codeFixAll(J,f,function(v,A){var z=a(A,J.sourceFile);z&&e.addToSeen(h,e.getNodeId(z.parent.parent))&&d(v,z,J)})}});function a(J,h){return e.tryCast(e.getTokenAtPosition(h,J.start).parent,e.isExportSpecifier)}function d(J,h,v){if(h){var A=h.parent,z=A.parent,ie=k(h,v);if(ie.length===A.elements.length)J.insertModifierBefore(v.sourceFile,151,A);else{var b=e.factory.updateExportDeclaration(z,z.decorators,z.modifiers,!1,e.factory.updateNamedExports(A,e.filter(A.elements,function(S){return!e.contains(ie,S)})),z.moduleSpecifier,void 0),M=e.factory.createExportDeclaration(void 0,void 0,!0,e.factory.createNamedExports(ie),z.moduleSpecifier,void 0);J.replaceNode(v.sourceFile,z,b,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude}),J.insertNodeAfter(v.sourceFile,z,M)}}}function k(J,h){var v=J.parent;if(v.elements.length===1)return v.elements;var A=e.getDiagnosticsWithinSpan(e.createTextSpanFromNode(v),h.program.getSemanticDiagnostics(h.sourceFile,h.cancellationToken));return e.filter(v.elements,function(z){var ie;return z===J||((ie=e.findDiagnosticForNode(z,A))===null||ie===void 0?void 0:ie.code)===f[0]})}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f=[e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code],p="convertToTypeOnlyImport";n.registerCodeFix({errorCodes:f,getCodeActions:function(k){var J=e.textChanges.ChangeTracker.with(k,function(h){var v=a(k.span,k.sourceFile);d(h,v,k)});if(J.length)return[n.createCodeFixAction(p,J,e.Diagnostics.Convert_to_type_only_import,p,e.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]},fixIds:[p],getAllCodeActions:function(k){return n.codeFixAll(k,f,function(J,h){var v=a(h,k.sourceFile);d(J,v,k)})}});function a(k,J){return e.tryCast(e.getTokenAtPosition(J,k.start).parent,e.isImportDeclaration)}function d(k,J,h){if(J!=null&&J.importClause){var v=J.importClause;k.insertText(h.sourceFile,J.getStart()+6," type"),v.name&&v.namedBindings&&(k.deleteNodeRangeExcludingEnd(h.sourceFile,v.name,J.importClause.namedBindings),k.insertNodeBefore(h.sourceFile,J,e.factory.updateImportDeclaration(J,void 0,void 0,e.factory.createImportClause(!0,v.name,void 0),J.moduleSpecifier,void 0)))}}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="convertLiteralTypeToMappedType",p=[e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(k){var J=k.sourceFile,h=k.span,v=a(J,h.start);if(v){var A=v.name,z=v.constraint,ie=e.textChanges.ChangeTracker.with(k,function(b){return d(b,J,v)});return[n.createCodeFixAction(f,ie,[e.Diagnostics.Convert_0_to_1_in_0,z,A],f,e.Diagnostics.Convert_all_type_literals_to_mapped_type)]}},fixIds:[f],getAllCodeActions:function(k){return n.codeFixAll(k,p,function(J,h){var v=a(h.file,h.start);v&&d(J,h.file,v)})}});function a(k,J){var h=e.getTokenAtPosition(k,J);if(e.isIdentifier(h)){var v=e.cast(h.parent.parent,e.isPropertySignature),A=h.getText(k);return{container:e.cast(v.parent,e.isTypeLiteralNode),typeNode:v.type,constraint:A,name:A==="K"?"P":"K"}}}function d(k,J,h){var v=h.container,A=h.typeNode,z=h.constraint,ie=h.name;k.replaceNode(J,v,e.factory.createMappedTypeNode(void 0,e.factory.createTypeParameterDeclaration(ie,e.factory.createTypeReferenceNode(z)),void 0,void 0,A,void 0))}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f=[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code,e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],p="fixClassIncorrectlyImplementsInterface";n.registerCodeFix({errorCodes:f,getCodeActions:function(h){var v=h.sourceFile,A=h.span,z=a(v,A.start);return e.mapDefined(e.getEffectiveImplementsTypeNodes(z),function(ie){var b=e.textChanges.ChangeTracker.with(h,function(M){return k(h,ie,v,z,M,h.preferences)});return b.length===0?void 0:n.createCodeFixAction(p,b,[e.Diagnostics.Implement_interface_0,ie.getText(v)],p,e.Diagnostics.Implement_all_unimplemented_interfaces)})},fixIds:[p],getAllCodeActions:function(h){var v=new e.Map;return n.codeFixAll(h,f,function(A,z){var ie=a(z.file,z.start);if(e.addToSeen(v,e.getNodeId(ie)))for(var b=0,M=e.getEffectiveImplementsTypeNodes(ie);b<M.length;b++){var S=M[b];k(h,S,z.file,ie,A,h.preferences)}})}});function a(h,v){return e.Debug.checkDefined(e.getContainingClass(e.getTokenAtPosition(h,v)),"There should be a containing class")}function d(h){return!h.valueDeclaration||!(e.getEffectiveModifierFlags(h.valueDeclaration)&8)}function k(h,v,A,z,ie,b){var M=h.program.getTypeChecker(),S=J(z,M),B=M.getTypeAtLocation(v),H=M.getPropertiesOfType(B),I=H.filter(e.and(d,function(ne){return!S.has(ne.escapedName)})),w=M.getTypeAtLocation(z),x=e.find(z.members,function(ne){return e.isConstructorDeclaration(ne)});w.getNumberIndexType()||q(B,1),w.getStringIndexType()||q(B,0);var O=n.createImportAdder(A,h.program,b,h.host);n.createMissingMemberNodes(z,I,A,h,b,O,function(ne){return Z(A,z,ne)}),O.writeFixes(ie);function q(ne,F){var Q=M.getIndexInfoOfType(ne,F);Q&&Z(A,z,M.indexInfoToIndexSignatureDeclaration(Q,z,void 0,n.getNoopSymbolTrackerWithResolver(h)))}function Z(ne,F,Q){x?ie.insertNodeAfter(ne,x,Q):ie.insertNodeAtClassStart(ne,F,Q)}}function J(h,v){var A=e.getEffectiveBaseTypeNode(h);if(!A)return e.createSymbolTable();var z=v.getTypeAtLocation(A),ie=v.getPropertiesOfType(z);return e.createSymbolTable(ie.filter(d))}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){n.importFixName="import";var f="fixMissingImport",p=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(Ie){var Ge=Ie.errorCode,he=Ie.preferences,ve=Ie.sourceFile,Ve=Ie.span,_e=Ie.program,Le=F(Ie,Ge,Ve.start,!0);if(Le){var qe=Le.fixes,Xe=Le.symbolName,De=e.getQuotePreference(ve,he);return qe.map(function(Ae){return ue(Ie,ve,Xe,Ae,De,_e.getCompilerOptions())})}},fixIds:[f],getAllCodeActions:function(Ie){var Ge=Ie.sourceFile,he=Ie.program,ve=Ie.preferences,Ve=Ie.host,_e=d(Ge,he,!0,ve,Ve);return n.eachDiagnostic(Ie,p,function(Le){return _e.addImportFromDiagnostic(Le,Ie)}),n.createCombinedCodeActions(e.textChanges.ChangeTracker.with(Ie,_e.writeFixes))}});function a(Ie,Ge,he,ve){return d(Ie,Ge,!1,he,ve)}n.createImportAdder=a;function d(Ie,Ge,he,ve,Ve){var _e=Ge.getCompilerOptions(),Le=[],qe=[],Xe=new e.Map,De=new e.Map;return{addImportFromDiagnostic:Ae,addImportFromExportedSymbol:Ye,writeFixes:br,hasFixes:lr};function Ae(Ar,kr){var Ke=F(kr,Ar.code,Ar.start,he);!Ke||!Ke.fixes.length||Dr(Ke)}function Ye(Ar,kr){var Ke=e.Debug.checkDefined(Ar.parent),Me=e.getNameForExportedSymbol(Ar,e.getEmitScriptTarget(_e)),Hr=Ge.getTypeChecker(),ur=Hr.getMergedSymbol(e.skipAlias(Ar,Hr)),gr=ie(Ie,ur,Ke,Me,Ve,Ge,ve,he),de=O(Ie,Ge),Fe=v(Ie,gr,Ke,Me,Ge,void 0,!!kr,de,Ve,ve);Fe&&Dr({fixes:[Fe],symbolName:Me})}function Dr(Ar){var kr,Ke,Me=Ar.fixes,Hr=Ar.symbolName,ur=e.first(Me);switch(ur.kind){case 0:Le.push(ur);break;case 1:qe.push(ur);break;case 2:{var gr=ur.importClauseOrBindingPattern,de=ur.importKind,Fe=ur.addAsTypeOnly,$e=String(e.getNodeId(gr)),Sr=Xe.get($e);if(Sr||Xe.set($e,Sr={importClauseOrBindingPattern:gr,defaultImport:void 0,namedImports:new e.Map}),de===0){var Pr=Sr==null?void 0:Sr.namedImports.get(Hr);Sr.namedImports.set(Hr,Jr(Pr,Fe))}else e.Debug.assert(Sr.defaultImport===void 0||Sr.defaultImport.name===Hr,"(Add to Existing) Default import should be missing or match symbolName"),Sr.defaultImport={name:Hr,addAsTypeOnly:Jr((kr=Sr.defaultImport)===null||kr===void 0?void 0:kr.addAsTypeOnly,Fe)};break}case 3:{var He=ur.moduleSpecifier,de=ur.importKind,pr=ur.useRequire,Fe=ur.addAsTypeOnly,Sr=ze(He,de,pr,Fe);switch(e.Debug.assert(Sr.useRequire===pr,"(Add new) Tried to add an `import` and a `require` for the same module"),de){case 1:e.Debug.assert(Sr.defaultImport===void 0||Sr.defaultImport.name===Hr,"(Add new) Default import should be missing or match symbolName"),Sr.defaultImport={name:Hr,addAsTypeOnly:Jr((Ke=Sr.defaultImport)===null||Ke===void 0?void 0:Ke.addAsTypeOnly,Fe)};break;case 0:var Pr=(Sr.namedImports||(Sr.namedImports=new e.Map)).get(Hr);Sr.namedImports.set(Hr,Jr(Pr,Fe));break;case 3:case 2:e.Debug.assert(Sr.namespaceLikeImport===void 0||Sr.namespaceLikeImport.name===Hr,"Namespacelike import shoudl be missing or match symbolName"),Sr.namespaceLikeImport={importKind:de,name:Hr,addAsTypeOnly:Fe};break}break}default:e.Debug.assertNever(ur,"fix wasn't never - got kind ".concat(ur.kind))}function Jr(Yr,lt){return Math.max(Yr??0,lt)}function ze(Yr,lt,tt,Rt){var cn=Lr(Yr,!0),bn=Lr(Yr,!1),In=De.get(cn),zn=De.get(bn),ir={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:tt};return lt===1&&Rt===2?In||(De.set(cn,ir),ir):Rt===1&&(In||zn)?In||zn:zn||(De.set(bn,ir),ir)}function Lr(Yr,lt){return"".concat(lt?1:0,"|").concat(Yr)}}function br(Ar){for(var kr=e.getQuotePreference(Ie,ve),Ke=0,Me=Le;Ke<Me.length;Ke++){var Hr=Me[Ke];Se(Ar,Ie,Hr)}for(var ur=0,gr=qe;ur<gr.length;ur++){var Hr=gr[ur];Ce(Ar,Ie,Hr,kr)}Xe.forEach(function(Fe){var $e=Fe.importClauseOrBindingPattern,Sr=Fe.defaultImport,Pr=Fe.namedImports;j(Ar,Ie,$e,Sr,e.arrayFrom(Pr.entries(),function(He){var pr=He[0],Jr=He[1];return{addAsTypeOnly:Jr,name:pr}}),_e)});var de;De.forEach(function(Fe,$e){var Sr=Fe.useRequire,Pr=Fe.defaultImport,He=Fe.namedImports,pr=Fe.namespaceLikeImport,Jr=$e.slice(2),ze=Sr?K:U,Lr=ze(Jr,kr,Pr,He&&e.arrayFrom(He.entries(),function(Yr){var lt=Yr[0],tt=Yr[1];return{addAsTypeOnly:tt,name:lt}}),pr);de=e.combine(de,Lr)}),de&&e.insertImports(Ar,Ie,de,!0)}function lr(){return Le.length>0||qe.length>0||Xe.size>0||De.size>0}}var k;(function(Ie){Ie[Ie.UseNamespace=0]="UseNamespace",Ie[Ie.JsdocTypeImport=1]="JsdocTypeImport",Ie[Ie.AddToExisting=2]="AddToExisting",Ie[Ie.AddNew=3]="AddNew"})(k||(k={}));var J;(function(Ie){Ie[Ie.Allowed=1]="Allowed",Ie[Ie.Required=2]="Required",Ie[Ie.NotAllowed=4]="NotAllowed"})(J||(J={}));function h(Ie,Ge,he,ve,Ve,_e,Le,qe,Xe){var De=_e.getCompilerOptions(),Ae=e.pathIsBareSpecifier(e.stripQuotes(Ge.name))?[z(Ie,Ge,_e,Ve)]:ie(he,Ie,Ge,ve,Ve,_e,Xe,!0),Ye=O(he,_e),Dr=e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(he,qe)),br=e.Debug.checkDefined(v(he,Ae,Ge,ve,_e,qe,Dr,Ye,Ve,Xe));return{moduleSpecifier:br.moduleSpecifier,codeAction:A(ue({host:Ve,formatContext:Le,preferences:Xe},he,ve,br,e.getQuotePreference(he,Xe),De))}}n.getImportCompletionAction=h;function v(Ie,Ge,he,ve,Ve,_e,Le,qe,Xe,De){return e.Debug.assert(Ge.some(function(Ae){return Ae.moduleSymbol===he||Ae.symbol.parent===he}),"Some exportInfo should match the specified moduleSymbol"),V(M(Ge,ve,_e,Le,qe,Ve,Ie,Xe,De),Ie,Ve,Xe,De)}function A(Ie){var Ge=Ie.description,he=Ie.changes,ve=Ie.commands;return{description:Ge,changes:he,commands:ve}}function z(Ie,Ge,he,ve){var Ve,_e,Le=he.getCompilerOptions(),qe=De(he.getTypeChecker(),!1);if(qe)return qe;var Xe=(_e=(Ve=ve.getPackageJsonAutoImportProvider)===null||Ve===void 0?void 0:Ve.call(ve))===null||_e===void 0?void 0:_e.getTypeChecker();return e.Debug.checkDefined(Xe&&De(Xe,!0),"Could not find symbol in specified module for code actions");function De(Ae,Ye){var Dr=e.getDefaultLikeExportInfo(Ge,Ae,Le);if(Dr&&e.skipAlias(Dr.symbol,Ae)===Ie)return{symbol:Dr.symbol,moduleSymbol:Ge,moduleFileName:void 0,exportKind:Dr.exportKind,targetFlags:e.skipAlias(Ie,Ae).flags,isFromPackageJson:Ye};var br=Ae.tryGetMemberInModuleExportsAndProperties(Ie.name,Ge);if(br&&e.skipAlias(br,Ae)===Ie)return{symbol:br,moduleSymbol:Ge,moduleFileName:void 0,exportKind:0,targetFlags:e.skipAlias(Ie,Ae).flags,isFromPackageJson:Ye}}}function ie(Ie,Ge,he,ve,Ve,_e,Le,qe){var Xe=[],De=_e.getCompilerOptions(),Ae=e.memoizeOne(function(Dr){return e.createModuleSpecifierResolutionHost(Dr?Ve.getPackageJsonAutoImportProvider():_e,Ve)});return e.forEachExternalModuleToImportFrom(_e,Ve,qe,function(Dr,br,lr,Ar){var kr=lr.getTypeChecker();if(!(br&&Dr!==he&&e.startsWith(Ie.fileName,e.getDirectoryPath(br.fileName)))){var Ke=e.getDefaultLikeExportInfo(Dr,kr,De);Ke&&(Ke.name===ve||ke(Dr,e.getEmitScriptTarget(De))===ve)&&e.skipAlias(Ke.symbol,kr)===Ge&&Ye(lr,br,Ar)&&Xe.push({symbol:Ke.symbol,moduleSymbol:Dr,moduleFileName:br==null?void 0:br.fileName,exportKind:Ke.exportKind,targetFlags:e.skipAlias(Ke.symbol,kr).flags,isFromPackageJson:Ar});for(var Me=0,Hr=kr.getExportsAndPropertiesOfModule(Dr);Me<Hr.length;Me++){var ur=Hr[Me];ur.name===ve&&kr.getMergedSymbol(e.skipAlias(ur,kr))===Ge&&Ye(lr,br,Ar)&&Xe.push({symbol:ur,moduleSymbol:Dr,moduleFileName:br==null?void 0:br.fileName,exportKind:0,targetFlags:e.skipAlias(ur,kr).flags,isFromPackageJson:Ar})}}}),Xe;function Ye(Dr,br,lr){var Ar;return!br||e.isImportableFile(Dr,Ie,br,Le,void 0,Ae(lr),(Ar=Ve.getModuleSpecifierCache)===null||Ar===void 0?void 0:Ar.call(Ve))}}function b(Ie,Ge,he,ve,Ve,_e){var Le=q(he,Ge,void 0,!1,!1,Ie,ve,Ve,_e),qe=Le.fixes,Xe=Le.computedWithoutCacheCount,De=V(qe,Ge,he,ve,Ve);return De&&Rn(Rn({},De),{computedWithoutCacheCount:Xe})}n.getModuleSpecifierForBestExportInfo=b;function M(Ie,Ge,he,ve,Ve,_e,Le,qe,Xe){var De=_e.getTypeChecker(),Ae=e.flatMap(Ie,function(lr){return x(lr,De,Le,_e.getCompilerOptions())}),Ye=he===void 0?void 0:S(Ae,Ge,he,De),Dr=w(Ae,ve,De,_e.getCompilerOptions()),br=Dr?[Dr]:Z(Ie,Ae,_e,Le,he,ve,Ve,qe,Xe);return Gt(Gt([],Ye?[Ye]:e.emptyArray,!0),br,!0)}function S(Ie,Ge,he,ve){return e.firstDefined(Ie,function(Ve){var _e=Ve.declaration,Le=H(_e),qe=e.tryGetModuleSpecifierFromDeclaration(_e);if(Le&&qe){var Xe=B(_e,ve);if(Xe&&Xe.exports.has(e.escapeLeadingUnderscores(Ge)))return{kind:0,namespacePrefix:Le,position:he,moduleSpecifier:qe}}})}function B(Ie,Ge){var he;switch(Ie.kind){case 253:return Ge.resolveExternalModuleName(Ie.initializer.arguments[0]);case 264:return Ge.getAliasedSymbol(Ie.symbol);case 265:var ve=e.tryCast((he=Ie.importClause)===null||he===void 0?void 0:he.namedBindings,e.isNamespaceImport);return ve&&Ge.getAliasedSymbol(ve.symbol);default:return e.Debug.assertNever(Ie)}}function H(Ie){var Ge,he,ve;switch(Ie.kind){case 253:return(Ge=e.tryCast(Ie.name,e.isIdentifier))===null||Ge===void 0?void 0:Ge.text;case 264:return Ie.name.text;case 265:return(ve=e.tryCast((he=Ie.importClause)===null||he===void 0?void 0:he.namedBindings,e.isNamespaceImport))===null||ve===void 0?void 0:ve.name.text;default:return e.Debug.assertNever(Ie)}}function I(Ie,Ge,he,ve,Ve,_e){return Ie?Ge&&_e.importsNotUsedAsValues===2||_e.isolatedModules&&_e.preserveValueImports&&(!(ve&111551)||Ve.getTypeOnlyAliasDeclaration(he))?2:1:4}function w(Ie,Ge,he,ve){return e.firstDefined(Ie,function(Ve){var _e=Ve.declaration,Le=Ve.importKind,qe=Ve.symbol,Xe=Ve.targetFlags;if(!(Le===3||Le===2||_e.kind===264)){if(_e.kind===253)return(Le===0||Le===1)&&_e.name.kind===200?{kind:2,importClauseOrBindingPattern:_e.name,importKind:Le,moduleSpecifier:_e.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;var De=_e.importClause;if(!(!De||!e.isStringLiteralLike(_e.moduleSpecifier))){var Ae=De.name,Ye=De.namedBindings;if(!(De.isTypeOnly&&!(Le===0&&Ye))){var Dr=I(Ge,!1,qe,Xe,he,ve);if(!(Le===1&&(Ae||Dr===2&&Ye))&&!(Le===0&&(Ye==null?void 0:Ye.kind)===267))return{kind:2,importClauseOrBindingPattern:De,importKind:Le,moduleSpecifier:_e.moduleSpecifier.text,addAsTypeOnly:Dr}}}}})}function x(Ie,Ge,he,ve){var Ve=Ie.moduleSymbol,_e=Ie.exportKind,Le=Ie.targetFlags,qe=Ie.symbol;if(!(Le&111551)&&e.isSourceFileJS(he))return e.emptyArray;var Xe=D(he,_e,ve);return e.mapDefined(he.imports,function(De){var Ae=e.importFromModuleSpecifier(De);if(e.isVariableDeclarationInitializedToRequire(Ae.parent))return Ge.resolveExternalModuleName(De)===Ve?{declaration:Ae.parent,importKind:Xe,symbol:qe,targetFlags:Le}:void 0;if(Ae.kind===265||Ae.kind===264)return Ge.getSymbolAtLocation(De)===Ve?{declaration:Ae,importKind:Xe,symbol:qe,targetFlags:Le}:void 0})}function O(Ie,Ge){if(!e.isSourceFileJS(Ie))return!1;if(Ie.commonJsModuleIndicator&&!Ie.externalModuleIndicator)return!0;if(Ie.externalModuleIndicator&&!Ie.commonJsModuleIndicator)return!1;var he=Ge.getCompilerOptions();if(he.configFile)return e.getEmitModuleKind(he)<e.ModuleKind.ES2015;for(var ve=0,Ve=Ge.getSourceFiles();ve<Ve.length;ve++){var _e=Ve[ve];if(!(_e===Ie||!e.isSourceFileJS(_e)||Ge.isSourceFileFromExternalLibrary(_e))){if(_e.commonJsModuleIndicator&&!_e.externalModuleIndicator)return!0;if(_e.externalModuleIndicator&&!_e.commonJsModuleIndicator)return!1}}return!0}function q(Ie,Ge,he,ve,Ve,_e,Le,qe,Xe){var De=e.isSourceFileJS(Ge),Ae=Ie.getCompilerOptions(),Ye=e.createModuleSpecifierResolutionHost(Ie,Le),Dr=e.memoizeOne(function(kr){return kr?Le.getPackageJsonAutoImportProvider().getTypeChecker():Ie.getTypeChecker()}),br=Xe?function(kr){return{moduleSpecifiers:e.moduleSpecifiers.tryGetModuleSpecifiersFromCache(kr,Ge,Ye,qe),computedWithoutCache:!1}}:function(kr,Ke){return e.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(kr,Ke,Ae,Ge,Ye,qe)},lr=0,Ar=e.flatMap(_e,function(kr){var Ke=Dr(kr.isFromPackageJson),Me=br(kr.moduleSymbol,Ke),Hr=Me.computedWithoutCache,ur=Me.moduleSpecifiers,gr=!!(kr.targetFlags&111551),de=I(ve,!0,kr.symbol,kr.targetFlags,Ke,Ae);return lr+=Hr?1:0,ur==null?void 0:ur.map(function(Fe){return!gr&&De&&he!==void 0?{kind:1,moduleSpecifier:Fe,position:he,exportInfo:kr}:{kind:3,moduleSpecifier:Fe,importKind:D(Ge,kr.exportKind,Ae),useRequire:Ve,addAsTypeOnly:de,exportInfo:kr}})});return{computedWithoutCacheCount:lr,fixes:Ar}}function Z(Ie,Ge,he,ve,Ve,_e,Le,qe,Xe){var De=e.firstDefined(Ge,function(Ae){return ne(Ae,_e,Le,he.getTypeChecker(),he.getCompilerOptions())});return De?[De]:q(he,ve,Ve,_e,Le,Ie,qe,Xe).fixes}function ne(Ie,Ge,he,ve,Ve){var _e=Ie.declaration,Le=Ie.importKind,qe=Ie.symbol,Xe=Ie.targetFlags,De=e.tryGetModuleSpecifierFromDeclaration(_e);if(De){var Ae=he?4:I(Ge,!0,qe,Xe,ve,Ve);return{kind:3,moduleSpecifier:De,importKind:Le,addAsTypeOnly:Ae,useRequire:he}}}function F(Ie,Ge,he,ve){var Ve=e.getTokenAtPosition(Ie.sourceFile,he),_e=Ge===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?N(Ie,Ve):e.isIdentifier(Ve)?m(Ie,Ve,ve):void 0;return _e&&Rn(Rn({},_e),{fixes:Q(_e.fixes,Ie.sourceFile,Ie.program,Ie.host,Ie.preferences)})}function Q(Ie,Ge,he,ve,Ve){var _e=e.createPackageJsonImportFilter(Ge,Ve,ve).allowsImportingSpecifier;return e.sort(Ie,function(Le,qe){return e.compareValues(Le.kind,qe.kind)||re(Le,qe,Ge,he,_e)})}function V(Ie,Ge,he,ve,Ve){if(e.some(Ie)){if(Ie[0].kind===0||Ie[0].kind===2)return Ie[0];var _e=e.createPackageJsonImportFilter(Ge,Ve,ve).allowsImportingSpecifier;return Ie.reduce(function(Le,qe){return re(qe,Le,Ge,he,_e)===-1?qe:Le})}}function re(Ie,Ge,he,ve,Ve){return Ie.kind!==0&&Ge.kind!==0?e.compareBooleans(Ve(Ge.moduleSpecifier),Ve(Ie.moduleSpecifier))||T(Ie.moduleSpecifier,Ge.moduleSpecifier,he,ve)||e.compareNumberOfDirectorySeparators(Ie.moduleSpecifier,Ge.moduleSpecifier):0}function T(Ie,Ge,he,ve){return e.startsWith(Ie,"node:")&&!e.startsWith(Ge,"node:")?e.shouldUseUriStyleNodeCoreModules(he,ve)?-1:1:e.startsWith(Ge,"node:")&&!e.startsWith(Ie,"node:")?e.shouldUseUriStyleNodeCoreModules(he,ve)?1:-1:0}function N(Ie,Ge){var he=Ie.sourceFile,ve=Ie.program,Ve=Ie.host,_e=Ie.preferences,Le=ve.getTypeChecker(),qe=y(Ge,Le);if(qe){var Xe=Le.getAliasedSymbol(qe),De=qe.name,Ae=[{symbol:qe,moduleSymbol:Xe,moduleFileName:void 0,exportKind:3,targetFlags:Xe.flags,isFromPackageJson:!1}],Ye=O(he,ve),Dr=M(Ae,De,e.isIdentifier(Ge)?Ge.getStart(he):void 0,!1,Ye,ve,he,Ve,_e);return{fixes:Dr,symbolName:De}}}function y(Ie,Ge){var he=e.isIdentifier(Ie)?Ge.getSymbolAtLocation(Ie):void 0;if(e.isUMDExportSymbol(he))return he;var ve=Ie.parent;return e.isJsxOpeningLikeElement(ve)&&ve.tagName===Ie||e.isJsxOpeningFragment(ve)?e.tryCast(Ge.resolveName(Ge.getJsxNamespace(ve),e.isJsxOpeningLikeElement(ve)?Ie:ve,111551,!1),e.isUMDExportSymbol):void 0}function D(Ie,Ge,he,ve){switch(Ge){case 0:return 0;case 1:return 1;case 2:return te(Ie,he,!!ve);case 3:return C(Ie,he,!!ve);default:return e.Debug.assertNever(Ge)}}n.getImportKind=D;function C(Ie,Ge,he){if(e.getAllowSyntheticDefaultImports(Ge))return 1;var ve=e.getEmitModuleKind(Ge);switch(ve){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return e.isInJSFile(Ie)&&(e.isExternalModule(Ie)||he)?2:3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return Ie.impliedNodeFormat===e.ModuleKind.ESNext?2:3;default:return e.Debug.assertNever(ve,"Unexpected moduleKind ".concat(ve))}}function m(Ie,Ge,he){var ve=Ie.sourceFile,Ve=Ie.program,_e=Ie.cancellationToken,Le=Ie.host,qe=Ie.preferences,Xe=Ve.getTypeChecker(),De=Ve.getCompilerOptions(),Ae=g(ve,Xe,Ge,De);e.Debug.assert(Ae!=="default","'default' isn't a legal identifier and couldn't occur here");var Ye=e.isValidTypeOnlyAliasUseSite(Ge),Dr=O(ve,Ve),br=P(Ae,e.getMeaningFromLocation(Ge),_e,ve,Ve,he,Le,qe),lr=e.arrayFrom(e.flatMapIterator(br.entries(),function(Ar){Ar[0];var kr=Ar[1];return M(kr,Ae,Ge.getStart(ve),Ye,Dr,Ve,ve,Le,qe)}));return{fixes:lr,symbolName:Ae}}function u(Ie){return Ie===2||Ie===3}function g(Ie,Ge,he,ve){var Ve=he.parent;if((e.isJsxOpeningLikeElement(Ve)||e.isJsxClosingElement(Ve))&&Ve.tagName===he&&u(ve.jsx)){var _e=Ge.getJsxNamespace(Ie);if(e.isIntrinsicJsxName(he.text)||!Ge.resolveName(_e,Ve,111551,!0))return _e}return he.text}function P(Ie,Ge,he,ve,Ve,_e,Le,qe){var Xe,De=e.createMultiMap(),Ae=e.createPackageJsonImportFilter(ve,qe,Le),Ye=(Xe=Le.getModuleSpecifierCache)===null||Xe===void 0?void 0:Xe.call(Le),Dr=e.memoizeOne(function(lr){return e.createModuleSpecifierResolutionHost(lr?Le.getPackageJsonAutoImportProvider():Ve,Le)});function br(lr,Ar,kr,Ke,Me,Hr){var ur=Dr(Hr);if(Ar&&e.isImportableFile(Me,ve,Ar,qe,Ae,ur,Ye)||!Ar&&Ae.allowsImportingAmbientModule(lr,ur)){var gr=Me.getTypeChecker();De.add(e.getUniqueSymbolId(kr,gr).toString(),{symbol:kr,moduleSymbol:lr,moduleFileName:Ar==null?void 0:Ar.fileName,exportKind:Ke,targetFlags:e.skipAlias(kr,gr).flags,isFromPackageJson:Hr})}}return e.forEachExternalModuleToImportFrom(Ve,Le,_e,function(lr,Ar,kr,Ke){var Me=kr.getTypeChecker();he.throwIfCancellationRequested();var Hr=kr.getCompilerOptions(),ur=e.getDefaultLikeExportInfo(lr,Me,Hr);ur&&(ur.name===Ie||ke(lr,e.getEmitScriptTarget(Hr))===Ie)&&ge(ur.symbolForMeaning,Ge)&&br(lr,Ar,ur.symbol,ur.exportKind,kr,Ke);var gr=Me.tryGetMemberInModuleExportsAndProperties(Ie,lr);gr&&ge(gr,Ge)&&br(lr,Ar,gr,0,kr,Ke)}),De}function te(Ie,Ge,he){var ve=e.getAllowSyntheticDefaultImports(Ge),Ve=e.isInJSFile(Ie);if(!Ve&&e.getEmitModuleKind(Ge)>=e.ModuleKind.ES2015)return ve?1:2;if(Ve)return e.isExternalModule(Ie)||he?ve?1:2:3;for(var _e=0,Le=Ie.statements;_e<Le.length;_e++){var qe=Le[_e];if(e.isImportEqualsDeclaration(qe)&&!e.nodeIsMissing(qe.moduleReference))return 3}return ve?1:3}function ue(Ie,Ge,he,ve,Ve,_e){var Le,qe=e.textChanges.ChangeTracker.with(Ie,function(Xe){Le=X(Xe,Ge,he,ve,Ve,_e)});return n.createCodeFixAction(n.importFixName,qe,Le,f,e.Diagnostics.Add_all_missing_imports)}function X(Ie,Ge,he,ve,Ve,_e){switch(ve.kind){case 0:return Se(Ie,Ge,ve),[e.Diagnostics.Change_0_to_1,he,"".concat(ve.namespacePrefix,".").concat(he)];case 1:return Ce(Ie,Ge,ve,Ve),[e.Diagnostics.Change_0_to_1,he,R(ve.moduleSpecifier,Ve)+he];case 2:{var Le=ve.importClauseOrBindingPattern,qe=ve.importKind,Xe=ve.addAsTypeOnly,De=ve.moduleSpecifier;j(Ie,Ge,Le,qe===1?{name:he,addAsTypeOnly:Xe}:void 0,qe===0?[{name:he,addAsTypeOnly:Xe}]:e.emptyArray,_e);var Ae=e.stripQuotes(De);return[qe===1?e.Diagnostics.Add_default_import_0_to_existing_import_declaration_from_1:e.Diagnostics.Add_0_to_existing_import_declaration_from_1,he,Ae]}case 3:{var qe=ve.importKind,De=ve.moduleSpecifier,Xe=ve.addAsTypeOnly,Ye=ve.useRequire,Dr=Ye?K:U,br=qe===1?{name:he,addAsTypeOnly:Xe}:void 0,lr=qe===0?[{name:he,addAsTypeOnly:Xe}]:void 0,Ar=qe===2||qe===3?{importKind:qe,name:he,addAsTypeOnly:Xe}:void 0;return e.insertImports(Ie,Ge,Dr(De,Ve,br,lr,Ar),!0),[qe===1?e.Diagnostics.Import_default_0_from_module_1:e.Diagnostics.Import_0_from_module_1,he,De]}default:return e.Debug.assertNever(ve,"Unexpected fix kind ".concat(ve.kind))}}function j(Ie,Ge,he,ve,Ve,_e){var Le;if(he.kind===200){ve&&$e(he,ve.name,"default");for(var qe=0,Xe=Ve;qe<Xe.length;qe++){var De=Xe[qe];$e(he,De.name,void 0)}return}var Ae=he.isTypeOnly&&e.some(Gt([ve],Ve,!0),function(Sr){return(Sr==null?void 0:Sr.addAsTypeOnly)===4}),Ye=he.namedBindings&&((Le=e.tryCast(he.namedBindings,e.isNamedImports))===null||Le===void 0?void 0:Le.elements),Dr=Ae&&_e.preserveValueImports&&_e.isolatedModules;if(ve&&(e.Debug.assert(!he.name,"Cannot add a default import to an import clause that already has one"),Ie.insertNodeAt(Ge,he.getStart(Ge),e.factory.createIdentifier(ve.name),{suffix:", "})),Ve.length){var br=e.stableSort(Ve.map(function(Sr){return e.factory.createImportSpecifier((!he.isTypeOnly||Ae)&&Y(Sr),void 0,e.factory.createIdentifier(Sr.name))}),e.OrganizeImports.compareImportOrExportSpecifiers);if(Ye!=null&&Ye.length&&e.OrganizeImports.importSpecifiersAreSorted(Ye))for(var lr=0,Ar=br;lr<Ar.length;lr++){var kr=Ar[lr],Ke=Dr&&!kr.isTypeOnly?0:e.OrganizeImports.getImportSpecifierInsertionIndex(Ye,kr),Me=he.namedBindings.elements[Ke-1];Me?Ie.insertNodeInListAfter(Ge,Me,kr):Ie.insertNodeBefore(Ge,Ye[0],kr,!e.positionsAreOnSameLine(Ye[0].getStart(),he.parent.getStart(),Ge))}else if(Ye!=null&&Ye.length)for(var Hr=0,ur=br;Hr<ur.length;Hr++){var kr=ur[Hr];Ie.insertNodeInListAfter(Ge,e.last(Ye),kr,Ye)}else if(br.length){var gr=e.factory.createNamedImports(br);he.namedBindings?Ie.replaceNode(Ge,he.namedBindings,gr):Ie.insertNodeAfter(Ge,e.Debug.checkDefined(he.name,"Import clause must have either named imports or a default import"),gr)}}if(Ae&&(Ie.delete(Ge,e.getTypeKeywordOfTypeOnlyImport(he,Ge)),Dr&&Ye))for(var de=0,Fe=Ye;de<Fe.length;de++){var De=Fe[de];Ie.insertModifierBefore(Ge,151,De)}function $e(Sr,Pr,He){var pr=e.factory.createBindingElement(void 0,He,Pr);Sr.elements.length?Ie.insertNodeInListAfter(Ge,e.last(Sr.elements),pr):Ie.replaceNode(Ge,Sr,e.factory.createObjectBindingPattern([pr]))}}function Se(Ie,Ge,he){var ve=he.namespacePrefix,Ve=he.position;Ie.insertText(Ge,Ve,ve+".")}function Ce(Ie,Ge,he,ve){var Ve=he.moduleSpecifier,_e=he.position;Ie.insertText(Ge,_e,R(Ve,ve))}function R(Ie,Ge){var he=e.getQuoteFromPreference(Ge);return"import(".concat(he).concat(Ie).concat(he,").")}function Y(Ie){var Ge=Ie.addAsTypeOnly;return Ge===2}function U(Ie,Ge,he,ve,Ve){var _e=e.makeStringLiteral(Ie,Ge),Le;if(he!==void 0||ve!=null&&ve.length){var qe=(!he||Y(he))&&e.every(ve,Y);Le=e.combine(Le,e.makeImport(he&&e.factory.createIdentifier(he.name),ve==null?void 0:ve.map(function(De){var Ae=De.addAsTypeOnly,Ye=De.name;return e.factory.createImportSpecifier(!qe&&Ae===2,void 0,e.factory.createIdentifier(Ye))}),Ie,Ge,qe))}if(Ve){var Xe=Ve.importKind===3?e.factory.createImportEqualsDeclaration(void 0,void 0,Y(Ve),e.factory.createIdentifier(Ve.name),e.factory.createExternalModuleReference(_e)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(Y(Ve),void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(Ve.name))),_e,void 0);Le=e.combine(Le,Xe)}return e.Debug.checkDefined(Le)}function K(Ie,Ge,he,ve,Ve){var _e=e.makeStringLiteral(Ie,Ge),Le;if(he||ve!=null&&ve.length){var qe=(ve==null?void 0:ve.map(function(De){var Ae=De.name;return e.factory.createBindingElement(void 0,void 0,Ae)}))||[];he&&qe.unshift(e.factory.createBindingElement(void 0,"default",he.name));var Xe=Te(e.factory.createObjectBindingPattern(qe),_e);Le=e.combine(Le,Xe)}if(Ve){var Xe=Te(Ve.name,_e);Le=e.combine(Le,Xe)}return e.Debug.checkDefined(Le)}function Te(Ie,Ge){return e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(typeof Ie=="string"?e.factory.createIdentifier(Ie):Ie,void 0,void 0,e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[Ge]))],2))}function ge(Ie,Ge){var he=Ie.declarations;return e.some(he,function(ve){return!!(e.getMeaningFromDeclaration(ve)&Ge)})}function ke(Ie,Ge){return Pe(e.removeFileExtension(e.stripQuotes(Ie.name)),Ge)}n.moduleSymbolToValidIdentifier=ke;function Pe(Ie,Ge){var he=e.getBaseFileName(e.removeSuffix(Ie,"/index")),ve="",Ve=!0,_e=he.charCodeAt(0);e.isIdentifierStart(_e,Ge)?ve+=String.fromCharCode(_e):Ve=!1;for(var Le=1;Le<he.length;Le++){var qe=he.charCodeAt(Le),Xe=e.isIdentifierPart(qe,Ge);if(Xe){var De=String.fromCharCode(qe);Ve||(De=De.toUpperCase()),ve+=De}Ve=Xe}return e.isStringANonContextualKeyword(ve)?"_".concat(ve):ve||"_"}n.moduleSpecifierToValidIdentifier=Pe})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f,p="fixOverrideModifier",a="fixAddOverrideModifier",d="fixRemoveOverrideModifier",k=[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code],J=(f={},f[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]=[e.Diagnostics.Add_override_modifier,a,e.Diagnostics.Add_all_missing_override_modifiers],f[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]=[e.Diagnostics.Remove_override_modifier,d,e.Diagnostics.Remove_all_unnecessary_override_modifiers],f[e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]=[e.Diagnostics.Add_override_modifier,a,e.Diagnostics.Add_all_missing_override_modifiers],f[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]=[e.Diagnostics.Add_override_modifier,a,e.Diagnostics.Remove_all_unnecessary_override_modifiers],f[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]=[e.Diagnostics.Remove_override_modifier,d,e.Diagnostics.Remove_all_unnecessary_override_modifiers],f);n.registerCodeFix({errorCodes:k,getCodeActions:function(b){var M=b.errorCode,S=b.span,B=b.sourceFile,H=J[M];if(!H)return e.emptyArray;var I=H[0],w=H[1],x=H[2];if(e.isSourceFileJS(B))return e.emptyArray;var O=e.textChanges.ChangeTracker.with(b,function(q){return h(q,b,M,S.start)});return[n.createCodeFixActionMaybeFixAll(p,O,I,w,x)]},fixIds:[p,a,d],getAllCodeActions:function(b){return n.codeFixAll(b,k,function(M,S){var B=S.code,H=S.start,I=S.file,w=J[B];!w||w[1]!==b.fixId||e.isSourceFileJS(I)||h(M,b,B,H)})}});function h(b,M,S,B){switch(S){case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:return v(b,M.sourceFile,B);case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:return A(b,M.sourceFile,B);default:e.Debug.fail("Unexpected error code: "+S)}}function v(b,M,S){var B=ie(M,S),H=B.modifiers||e.emptyArray,I=e.find(H,e.isStaticModifier),w=e.find(H,e.isAbstractModifier),x=e.find(H,function(Z){return e.isAccessibilityModifier(Z.kind)}),O=w?w.end:I?I.end:x?x.end:B.decorators?e.skipTrivia(M.text,B.decorators.end):B.getStart(M),q=x||I||w?{prefix:" "}:{suffix:" "};b.insertModifierAt(M,O,158,q)}function A(b,M,S){var B=ie(M,S),H=B.modifiers&&e.find(B.modifiers,function(I){return I.kind===158});e.Debug.assertIsDefined(H),b.deleteModifier(M,H)}function z(b){switch(b.kind){case 170:case 166:case 168:case 171:case 172:return!0;case 163:return e.isParameterPropertyDeclaration(b,b.parent);default:return!1}}function ie(b,M){var S=e.getTokenAtPosition(b,M),B=e.findAncestor(S,function(H){return e.isClassLike(H)?"quit":z(H)});return e.Debug.assert(B&&z(B)),B}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="fixNoPropertyAccessFromIndexSignature",p=[e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];n.registerCodeFix({errorCodes:p,fixIds:[f],getCodeActions:function(k){var J=k.sourceFile,h=k.span,v=k.preferences,A=d(J,h.start),z=e.textChanges.ChangeTracker.with(k,function(ie){return a(ie,k.sourceFile,A,v)});return[n.createCodeFixAction(f,z,[e.Diagnostics.Use_element_access_for_0,A.name.text],f,e.Diagnostics.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:function(k){return n.codeFixAll(k,p,function(J,h){return a(J,h.file,d(h.file,h.start),k.preferences)})}});function a(k,J,h,v){var A=e.getQuotePreference(J,v),z=e.factory.createStringLiteral(h.name.text,A===0);k.replaceNode(J,h,e.isPropertyAccessChain(h)?e.factory.createElementAccessChain(h.expression,h.questionDotToken,z):e.factory.createElementAccessExpression(h.expression,z))}function d(k,J){return e.cast(e.getTokenAtPosition(k,J).parent,e.isPropertyAccessExpression)}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="fixImplicitThis",p=[e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(d){var k=d.sourceFile,J=d.program,h=d.span,v,A=e.textChanges.ChangeTracker.with(d,function(z){v=a(z,k,h.start,J.getTypeChecker())});return v?[n.createCodeFixAction(f,A,v,f,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[f],getAllCodeActions:function(d){return n.codeFixAll(d,p,function(k,J){a(k,J.file,J.start,d.program.getTypeChecker())})}});function a(d,k,J,h){var v=e.getTokenAtPosition(k,J);e.Debug.assert(v.kind===108);var A=e.getThisContainer(v,!1);if(!(!e.isFunctionDeclaration(A)&&!e.isFunctionExpression(A))&&!e.isSourceFile(e.getThisContainer(A,!1))){var z=e.Debug.assertDefined(e.findChildOfKind(A,98,k)),ie=A.name,b=e.Debug.assertDefined(A.body);return e.isFunctionExpression(A)?ie&&e.FindAllReferences.Core.isSymbolReferencedInFile(ie,h,k,b)?void 0:(d.delete(k,z),ie&&d.delete(k,ie),d.insertText(k,b.pos," =>"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,ie?ie.text:e.ANONYMOUS]):(d.replaceNode(k,z,e.factory.createToken(85)),d.insertText(k,ie.end," = "),d.insertText(k,b.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,ie.text])}}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="fixIncorrectNamedTupleSyntax",p=[e.Diagnostics.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,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(k){var J=k.sourceFile,h=k.span,v=a(J,h.start),A=e.textChanges.ChangeTracker.with(k,function(z){return d(z,J,v)});return[n.createCodeFixAction(f,A,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,f,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[f]});function a(k,J){var h=e.getTokenAtPosition(k,J);return e.findAncestor(h,function(v){return v.kind===196})}function d(k,J,h){if(h){for(var v=h.type,A=!1,z=!1;v.kind===184||v.kind===185||v.kind===190;)v.kind===184?A=!0:v.kind===185&&(z=!0),v=v.type;var ie=e.factory.updateNamedTupleMember(h,h.dotDotDotToken||(z?e.factory.createToken(25):void 0),h.name,h.questionToken||(A?e.factory.createToken(57):void 0),v);ie!==h&&k.replaceNode(J,h,ie)}}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="fixSpelling",p=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.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,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(h){var v=h.sourceFile,A=h.errorCode,z=a(v,h.span.start,h,A);if(z){var ie=z.node,b=z.suggestedSymbol,M=e.getEmitScriptTarget(h.host.getCompilationSettings()),S=e.textChanges.ChangeTracker.with(h,function(B){return d(B,v,ie,b,M)});return[n.createCodeFixAction("spelling",S,[e.Diagnostics.Change_spelling_to_0,e.symbolName(b)],f,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[f],getAllCodeActions:function(h){return n.codeFixAll(h,p,function(v,A){var z=a(A.file,A.start,h,A.code),ie=e.getEmitScriptTarget(h.host.getCompilationSettings());z&&d(v,h.sourceFile,z.node,z.suggestedSymbol,ie)})}});function a(h,v,A,z){var ie=e.getTokenAtPosition(h,v),b=ie.parent;if(!((z===e.Diagnostics.No_overload_matches_this_call.code||z===e.Diagnostics.Type_0_is_not_assignable_to_type_1.code)&&!e.isJsxAttribute(b))){var M=A.program.getTypeChecker(),S;if(e.isPropertyAccessExpression(b)&&b.name===ie){e.Debug.assert(e.isMemberName(ie),"Expected an identifier for spelling (property access)");var B=M.getTypeAtLocation(b.expression);b.flags&32&&(B=M.getNonNullableType(B)),S=M.getSuggestedSymbolForNonexistentProperty(ie,B)}else if(e.isBinaryExpression(b)&&b.operatorToken.kind===101&&b.left===ie&&e.isPrivateIdentifier(ie)){var H=M.getTypeAtLocation(b.right);S=M.getSuggestedSymbolForNonexistentProperty(ie,H)}else if(e.isQualifiedName(b)&&b.right===ie){var I=M.getSymbolAtLocation(b.left);I&&I.flags&1536&&(S=M.getSuggestedSymbolForNonexistentModule(b.right,I))}else if(e.isImportSpecifier(b)&&b.name===ie){e.Debug.assertNode(ie,e.isIdentifier,"Expected an identifier for spelling (import)");var w=e.findAncestor(ie,e.isImportDeclaration),x=J(h,A,w);x&&x.symbol&&(S=M.getSuggestedSymbolForNonexistentModule(ie,x.symbol))}else if(e.isJsxAttribute(b)&&b.name===ie){e.Debug.assertNode(ie,e.isIdentifier,"Expected an identifier for JSX attribute");var O=e.findAncestor(ie,e.isJsxOpeningLikeElement),q=M.getContextualTypeForArgumentAtIndex(O,0);S=M.getSuggestedSymbolForNonexistentJSXAttribute(ie,q)}else if(e.hasSyntacticModifier(b,16384)&&e.isClassElement(b)&&b.name===ie){var Z=e.findAncestor(ie,e.isClassLike),ne=Z?e.getEffectiveBaseTypeNode(Z):void 0,F=ne?M.getTypeAtLocation(ne):void 0;F&&(S=M.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(ie),F))}else{var Q=e.getMeaningFromLocation(ie),V=e.getTextOfNode(ie);e.Debug.assert(V!==void 0,"name should be defined"),S=M.getSuggestedSymbolForNonexistentSymbol(ie,V,k(Q))}return S===void 0?void 0:{node:ie,suggestedSymbol:S}}}function d(h,v,A,z,ie){var b=e.symbolName(z);if(!e.isIdentifierText(b,ie)&&e.isPropertyAccessExpression(A.parent)){var M=z.valueDeclaration;M&&e.isNamedDeclaration(M)&&e.isPrivateIdentifier(M.name)?h.replaceNode(v,A,e.factory.createIdentifier(b)):h.replaceNode(v,A.parent,e.factory.createElementAccessExpression(A.parent.expression,e.factory.createStringLiteral(b)))}else h.replaceNode(v,A,e.factory.createIdentifier(b))}function k(h){var v=0;return h&4&&(v|=1920),h&2&&(v|=788968),h&1&&(v|=111551),v}function J(h,v,A){if(!(!A||!e.isStringLiteralLike(A.moduleSpecifier))){var z=e.getResolvedModule(h,A.moduleSpecifier.text,e.getModeForUsageLocation(h,A.moduleSpecifier));if(z)return v.program.getSourceFile(z.resolvedFileName)}}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="returnValueCorrect",p="fixAddReturnStatement",a="fixRemoveBracesFromArrowFunctionBody",d="fixWrapTheBlockWithParen",k=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],J;(function(w){w[w.MissingReturnStatement=0]="MissingReturnStatement",w[w.MissingParentheses=1]="MissingParentheses"})(J||(J={})),n.registerCodeFix({errorCodes:k,fixIds:[p,a,d],getCodeActions:function(w){var x=w.program,O=w.sourceFile,q=w.span.start,Z=w.errorCode,ne=z(x.getTypeChecker(),O,q,Z);if(ne)return ne.kind===J.MissingReturnStatement?e.append([B(w,ne.expression,ne.statement)],e.isArrowFunction(ne.declaration)?H(w,ne.declaration,ne.expression,ne.commentSource):void 0):[I(w,ne.declaration,ne.expression)]},getAllCodeActions:function(w){return n.codeFixAll(w,k,function(x,O){var q=z(w.program.getTypeChecker(),O.file,O.start,O.code);if(q)switch(w.fixId){case p:b(x,O.file,q.expression,q.statement);break;case a:if(!e.isArrowFunction(q.declaration))return;M(x,O.file,q.declaration,q.expression,q.commentSource,!1);break;case d:if(!e.isArrowFunction(q.declaration))return;S(x,O.file,q.declaration,q.expression);break;default:e.Debug.fail(JSON.stringify(w.fixId))}})}});function h(w,x,O){var q=w.createSymbol(4,x.escapedText);q.type=w.getTypeAtLocation(O);var Z=e.createSymbolTable([q]);return w.createAnonymousType(void 0,Z,[],[],[])}function v(w,x,O,q){if(!(!x.body||!e.isBlock(x.body)||e.length(x.body.statements)!==1)){var Z=e.first(x.body.statements);if(e.isExpressionStatement(Z)&&A(w,x,w.getTypeAtLocation(Z.expression),O,q))return{declaration:x,kind:J.MissingReturnStatement,expression:Z.expression,statement:Z,commentSource:Z.expression};if(e.isLabeledStatement(Z)&&e.isExpressionStatement(Z.statement)){var ne=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(Z.label,Z.statement.expression)]),F=h(w,Z.label,Z.statement.expression);if(A(w,x,F,O,q))return e.isArrowFunction(x)?{declaration:x,kind:J.MissingParentheses,expression:ne,statement:Z,commentSource:Z.statement.expression}:{declaration:x,kind:J.MissingReturnStatement,expression:ne,statement:Z,commentSource:Z.statement.expression}}else if(e.isBlock(Z)&&e.length(Z.statements)===1){var Q=e.first(Z.statements);if(e.isLabeledStatement(Q)&&e.isExpressionStatement(Q.statement)){var ne=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(Q.label,Q.statement.expression)]),F=h(w,Q.label,Q.statement.expression);if(A(w,x,F,O,q))return{declaration:x,kind:J.MissingReturnStatement,expression:ne,statement:Z,commentSource:Q}}}}}function A(w,x,O,q,Z){if(Z){var ne=w.getSignatureFromDeclaration(x);if(ne){e.hasSyntacticModifier(x,256)&&(O=w.createPromiseType(O));var F=w.createSignature(x,ne.typeParameters,ne.thisParameter,ne.parameters,O,void 0,ne.minArgumentCount,ne.flags);O=w.createAnonymousType(void 0,e.createSymbolTable(),[F],[],[])}else O=w.getAnyType()}return w.isTypeAssignableTo(O,q)}function z(w,x,O,q){var Z=e.getTokenAtPosition(x,O);if(Z.parent){var ne=e.findAncestor(Z.parent,e.isFunctionLikeDeclaration);switch(q){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:return!ne||!ne.body||!ne.type||!e.rangeContainsRange(ne.type,Z)?void 0:v(w,ne,w.getTypeFromTypeNode(ne.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!ne||!e.isCallExpression(ne.parent)||!ne.body)return;var F=ne.parent.arguments.indexOf(ne),Q=w.getContextualTypeForArgumentAtIndex(ne.parent,F);return Q?v(w,ne,Q,!0):void 0;case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(Z)||!e.isVariableLike(Z.parent)&&!e.isJsxAttribute(Z.parent))return;var V=ie(Z.parent);return!V||!e.isFunctionLikeDeclaration(V)||!V.body?void 0:v(w,V,w.getTypeAtLocation(Z.parent),!0)}}}function ie(w){switch(w.kind){case 253:case 163:case 202:case 166:case 294:return w.initializer;case 284:return w.initializer&&(e.isJsxExpression(w.initializer)?w.initializer.expression:void 0);case 295:case 165:case 297:case 345:case 338:return}}function b(w,x,O,q){e.suppressLeadingAndTrailingTrivia(O);var Z=e.probablyUsesSemicolons(x);w.replaceNode(x,q,e.factory.createReturnStatement(O),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:Z?";":void 0})}function M(w,x,O,q,Z,ne){var F=ne||e.needsParentheses(q)?e.factory.createParenthesizedExpression(q):q;e.suppressLeadingAndTrailingTrivia(Z),e.copyComments(Z,F),w.replaceNode(x,O.body,F)}function S(w,x,O,q){w.replaceNode(x,O.body,e.factory.createParenthesizedExpression(q))}function B(w,x,O){var q=e.textChanges.ChangeTracker.with(w,function(Z){return b(Z,w.sourceFile,x,O)});return n.createCodeFixAction(f,q,e.Diagnostics.Add_a_return_statement,p,e.Diagnostics.Add_all_missing_return_statement)}function H(w,x,O,q){var Z=e.textChanges.ChangeTracker.with(w,function(ne){return M(ne,w.sourceFile,x,O,q,!1)});return n.createCodeFixAction(f,Z,e.Diagnostics.Remove_braces_from_arrow_function_body,a,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function I(w,x,O){var q=e.textChanges.ChangeTracker.with(w,function(Z){return S(Z,w.sourceFile,x,O)});return n.createCodeFixAction(f,q,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,d,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="fixMissingMember",p="fixMissingProperties",a="fixMissingAttributes",d="fixMissingFunctionDeclaration",k=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Cannot_find_name_0.code];n.registerCodeFix({errorCodes:k,getCodeActions:function(T){var N=T.program.getTypeChecker(),y=h(T.sourceFile,T.span.start,T.errorCode,N,T.program);if(y){if(y.kind===3){var D=e.textChanges.ChangeTracker.with(T,function(C){return ne(C,T,y)});return[n.createCodeFixAction(p,D,e.Diagnostics.Add_missing_properties,p,e.Diagnostics.Add_all_missing_properties)]}if(y.kind===4){var D=e.textChanges.ChangeTracker.with(T,function(m){return Z(m,T,y)});return[n.createCodeFixAction(a,D,e.Diagnostics.Add_missing_attributes,a,e.Diagnostics.Add_all_missing_attributes)]}if(y.kind===2){var D=e.textChanges.ChangeTracker.with(T,function(m){return q(m,T,y)});return[n.createCodeFixAction(d,D,[e.Diagnostics.Add_missing_function_declaration_0,y.token.text],d,e.Diagnostics.Add_all_missing_function_declarations)]}if(y.kind===0){var D=e.textChanges.ChangeTracker.with(T,function(m){return O(m,T.program.getTypeChecker(),y)});return[n.createCodeFixAction(f,D,[e.Diagnostics.Add_missing_enum_member_0,y.token.text],f,e.Diagnostics.Add_all_missing_members)]}return e.concatenate(w(T,y),A(T,y))}},fixIds:[f,d,p,a],getAllCodeActions:function(T){var N=T.program,y=T.fixId,D=N.getTypeChecker(),C=new e.Map,m=new e.Map;return n.createCombinedCodeActions(e.textChanges.ChangeTracker.with(T,function(u){n.eachDiagnostic(T,k,function(g){var P=h(g.file,g.start,g.code,D,T.program);if(!(!P||!e.addToSeen(C,e.getNodeId(P.parentDeclaration)+"#"+P.token.text))){if(y===d&&P.kind===2)q(u,T,P);else if(y===p&&P.kind===3)ne(u,T,P);else if(y===a&&P.kind===4)Z(u,T,P);else if(P.kind===0&&O(u,D,P),P.kind===1){var te=P.parentDeclaration,ue=P.token,X=e.getOrUpdate(m,te,function(){return[]});X.some(function(j){return j.token.text===ue.text})||X.push(P)}}}),m.forEach(function(g,P){for(var te=n.getAllSupers(P,D),ue=function(Ce){if(te.some(function(Pe){var Ie=m.get(Pe);return!!Ie&&Ie.some(function(Ge){var he=Ge.token;return he.text===Ce.token.text})}))return"continue";var R=Ce.parentDeclaration,Y=Ce.declSourceFile,U=Ce.modifierFlags,K=Ce.token,Te=Ce.call,ge=Ce.isJSFile;if(Te&&!e.isPrivateIdentifier(K))x(T,u,Te,K,U&32,R,Y);else if(ge&&!e.isInterfaceDeclaration(R))ie(u,Y,R,K,!!(U&32));else{var ke=S(N.getTypeChecker(),R,K);B(u,Y,R,K.text,ke,U&32)}},X=0,j=g;X<j.length;X++){var Se=j[X];ue(Se)}})}))}});var J;(function(T){T[T.Enum=0]="Enum",T[T.ClassOrInterface=1]="ClassOrInterface",T[T.Function=2]="Function",T[T.ObjectLiteral=3]="ObjectLiteral",T[T.JsxAttributes=4]="JsxAttributes"})(J||(J={}));function h(T,N,y,D,C){var m=e.getTokenAtPosition(T,N),u=m.parent;if(y===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(m.kind===18&&e.isObjectLiteralExpression(u)&&e.isCallExpression(u.parent)))return;var g=e.findIndex(u.parent.arguments,function(he){return he===u});if(g<0)return;var P=e.singleOrUndefined(D.getSignaturesOfType(D.getTypeAtLocation(u.parent.expression),0));if(!(P&&P.declaration&&P.parameters[g]))return;var te=P.parameters[g].valueDeclaration;if(!(te&&e.isParameter(te)&&e.isIdentifier(te.name)))return;var ue=e.arrayFrom(D.getUnmatchedProperties(D.getTypeAtLocation(u),D.getTypeAtLocation(te),!1,!1));return e.length(ue)?{kind:3,token:te.name,properties:ue,indentation:0,parentDeclaration:u}:void 0}if(e.isMemberName(m)){if(e.isIdentifier(m)&&e.hasInitializer(u)&&u.initializer&&e.isObjectLiteralExpression(u.initializer)){var ue=e.arrayFrom(D.getUnmatchedProperties(D.getTypeAtLocation(u.initializer),D.getTypeAtLocation(m),!1,!1));return e.length(ue)?{kind:3,token:m,properties:ue,indentation:void 0,parentDeclaration:u.initializer}:void 0}if(e.isIdentifier(m)&&e.isJsxOpeningLikeElement(m.parent)){var X=re(D,m.parent);return e.length(X)?{kind:4,token:m,attributes:X,parentDeclaration:m.parent}:void 0}if(e.isIdentifier(m)&&e.isCallExpression(u))return{kind:2,token:m,call:u,sourceFile:T,modifierFlags:0,parentDeclaration:T};if(e.isPropertyAccessExpression(u)){var j=e.skipConstraint(D.getTypeAtLocation(u.expression)),Se=j.symbol;if(!(!Se||!Se.declarations)){if(e.isIdentifier(m)&&e.isCallExpression(u.parent)){var Ce=e.find(Se.declarations,e.isModuleDeclaration),R=Ce==null?void 0:Ce.getSourceFile();if(Ce&&R&&!v(C,R))return{kind:2,token:m,call:u.parent,sourceFile:T,modifierFlags:1,parentDeclaration:Ce};var Y=e.find(Se.declarations,e.isSourceFile);if(T.commonJsModuleIndicator)return;if(Y&&!v(C,Y))return{kind:2,token:m,call:u.parent,sourceFile:Y,modifierFlags:1,parentDeclaration:Y}}var U=e.find(Se.declarations,e.isClassLike);if(!(!U&&e.isPrivateIdentifier(m))){var K=U||e.find(Se.declarations,e.isInterfaceDeclaration);if(K&&!v(C,K.getSourceFile())){var Te=(j.target||j)!==D.getDeclaredTypeOfSymbol(Se);if(Te&&(e.isPrivateIdentifier(m)||e.isInterfaceDeclaration(K)))return;var ge=K.getSourceFile(),ke=(Te?32:0)|(e.startsWithUnderscore(m.text)?8:0),Pe=e.isSourceFileJS(ge),Ie=e.tryCast(u.parent,e.isCallExpression);return{kind:1,token:m,call:Ie,modifierFlags:ke,parentDeclaration:K,declSourceFile:ge,isJSFile:Pe}}var Ge=e.find(Se.declarations,e.isEnumDeclaration);if(Ge&&!e.isPrivateIdentifier(m)&&!v(C,Ge.getSourceFile()))return{kind:0,token:m,parentDeclaration:Ge}}}}}}function v(T,N){return T.isSourceFileFromExternalLibrary(N)||T.isSourceFileDefaultLibrary(N)}function A(T,N){return N.isJSFile?e.singleElementArray(z(T,N)):M(T,N)}function z(T,N){var y=N.parentDeclaration,D=N.declSourceFile,C=N.modifierFlags,m=N.token;if(!e.isInterfaceDeclaration(y)){var u=e.textChanges.ChangeTracker.with(T,function(P){return ie(P,D,y,m,!!(C&32))});if(u.length!==0){var g=C&32?e.Diagnostics.Initialize_static_property_0:e.isPrivateIdentifier(m)?e.Diagnostics.Declare_a_private_field_named_0:e.Diagnostics.Initialize_property_0_in_the_constructor;return n.createCodeFixAction(f,u,[g,m.text],f,e.Diagnostics.Add_all_missing_members)}}}function ie(T,N,y,D,C){var m=D.text;if(C){if(y.kind===225)return;var u=y.name.getText(),g=b(e.factory.createIdentifier(u),m);T.insertNodeAfter(N,y,g)}else if(e.isPrivateIdentifier(D)){var P=e.factory.createPropertyDeclaration(void 0,void 0,m,void 0,void 0,void 0),te=H(y);te?T.insertNodeAfter(N,te,P):T.insertNodeAtClassStart(N,y,P)}else{var ue=e.getFirstConstructorWithBody(y);if(!ue)return;var X=b(e.factory.createThis(),m);T.insertNodeAtConstructorEnd(N,ue,X)}}function b(T,N){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(T,N),Q()))}function M(T,N){var y=N.parentDeclaration,D=N.declSourceFile,C=N.modifierFlags,m=N.token,u=m.text,g=C&32,P=S(T.program.getTypeChecker(),y,m),te=function(X){return e.textChanges.ChangeTracker.with(T,function(j){return B(j,D,y,u,P,X)})},ue=[n.createCodeFixAction(f,te(C&32),[g?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,u],f,e.Diagnostics.Add_all_missing_members)];return g||e.isPrivateIdentifier(m)||(C&8&&ue.unshift(n.createCodeFixActionWithoutFixAll(f,te(8),[e.Diagnostics.Declare_private_property_0,u])),ue.push(I(T,D,y,m.text,P))),ue}function S(T,N,y){var D;if(y.parent.parent.kind===220){var C=y.parent.parent,m=y.parent===C.left?C.right:C.left,u=T.getWidenedType(T.getBaseTypeOfLiteralType(T.getTypeAtLocation(m)));D=T.typeToTypeNode(u,N,1)}else{var g=T.getContextualType(y.parent);D=g?T.typeToTypeNode(g,void 0,1):void 0}return D||e.factory.createKeywordTypeNode(130)}function B(T,N,y,D,C,m){var u=e.factory.createPropertyDeclaration(void 0,m?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(m)):void 0,D,void 0,C,void 0),g=H(y);g?T.insertNodeAfter(N,g,u):T.insertNodeAtClassStart(N,y,u)}function H(T){for(var N,y=0,D=T.members;y<D.length;y++){var C=D[y];if(!e.isPropertyDeclaration(C))break;N=C}return N}function I(T,N,y,D,C){var m=e.factory.createKeywordTypeNode(149),u=e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,m,void 0),g=e.factory.createIndexSignature(void 0,void 0,[u],C),P=e.textChanges.ChangeTracker.with(T,function(te){return te.insertNodeAtClassStart(N,y,g)});return n.createCodeFixActionWithoutFixAll(f,P,[e.Diagnostics.Add_index_signature_for_property_0,D])}function w(T,N){var y=N.parentDeclaration,D=N.declSourceFile,C=N.modifierFlags,m=N.token,u=N.call;if(u!==void 0&&!e.isPrivateIdentifier(m)){var g=m.text,P=function(ue){return e.textChanges.ChangeTracker.with(T,function(X){return x(T,X,u,m,ue,y,D)})},te=[n.createCodeFixAction(f,P(C&32),[C&32?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,g],f,e.Diagnostics.Add_all_missing_members)];return C&8&&te.unshift(n.createCodeFixActionWithoutFixAll(f,P(8),[e.Diagnostics.Declare_private_method_0,g])),te}}function x(T,N,y,D,C,m,u){var g=n.createImportAdder(u,T.program,T.preferences,T.host),P=n.createSignatureDeclarationFromCallExpression(168,T,g,y,D,C,m),te=e.findAncestor(y,function(ue){return e.isMethodDeclaration(ue)||e.isConstructorDeclaration(ue)});te&&te.parent===m?N.insertNodeAfter(u,te,P):N.insertNodeAtClassStart(u,m,P),g.writeFixes(N)}function O(T,N,y){var D=y.token,C=y.parentDeclaration,m=e.some(C.members,function(g){var P=N.getTypeAtLocation(g);return!!(P&&P.flags&402653316)}),u=e.factory.createEnumMember(D,m?e.factory.createStringLiteral(D.text):void 0);T.replaceNode(C.getSourceFile(),C,e.factory.updateEnumDeclaration(C,C.decorators,C.modifiers,C.name,e.concatenate(C.members,e.singleElementArray(u))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude})}function q(T,N,y){var D=n.createImportAdder(N.sourceFile,N.program,N.preferences,N.host),C=n.createSignatureDeclarationFromCallExpression(255,N,D,y.call,e.idText(y.token),y.modifierFlags,y.parentDeclaration);T.insertNodeAtEndOfScope(y.sourceFile,y.parentDeclaration,C)}function Z(T,N,y){var D=n.createImportAdder(N.sourceFile,N.program,N.preferences,N.host),C=e.getQuotePreference(N.sourceFile,N.preferences),m=N.program.getTypeChecker(),u=y.parentDeclaration.attributes,g=e.some(u.properties,e.isJsxSpreadAttribute),P=e.map(y.attributes,function(X){var j=X.valueDeclaration?F(N,m,D,C,m.getTypeAtLocation(X.valueDeclaration)):Q();return e.factory.createJsxAttribute(e.factory.createIdentifier(X.name),e.factory.createJsxExpression(void 0,j))}),te=e.factory.createJsxAttributes(g?Gt(Gt([],P,!0),u.properties,!0):Gt(Gt([],u.properties,!0),P,!0)),ue={prefix:u.pos===u.end?" ":void 0};T.replaceNode(N.sourceFile,u,te,ue)}function ne(T,N,y){var D=n.createImportAdder(N.sourceFile,N.program,N.preferences,N.host),C=e.getQuotePreference(N.sourceFile,N.preferences),m=N.program.getTypeChecker(),u=e.map(y.properties,function(P){var te=P.valueDeclaration?F(N,m,D,C,m.getTypeAtLocation(P.valueDeclaration)):Q();return e.factory.createPropertyAssignment(P.name,te)}),g={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,indentation:y.indentation};T.replaceNode(N.sourceFile,y.parentDeclaration,e.factory.createObjectLiteralExpression(Gt(Gt([],y.parentDeclaration.properties,!0),u,!0),!0),g)}function F(T,N,y,D,C){if(C.flags&3)return Q();if(C.flags&134217732)return e.factory.createStringLiteral("",D===0);if(C.flags&8)return e.factory.createNumericLiteral(0);if(C.flags&64)return e.factory.createBigIntLiteral("0n");if(C.flags&16)return e.factory.createFalse();if(C.flags&1056){var m=C.symbol.exports?e.firstOrUndefined(e.arrayFrom(C.symbol.exports.values())):C.symbol,u=N.symbolToExpression(C.symbol.parent?C.symbol.parent:C.symbol,111551,void 0,void 0);return m===void 0||u===void 0?e.factory.createNumericLiteral(0):e.factory.createPropertyAccessExpression(u,N.symbolToString(m))}if(C.flags&256)return e.factory.createNumericLiteral(C.value);if(C.flags&2048)return e.factory.createBigIntLiteral(C.value);if(C.flags&128)return e.factory.createStringLiteral(C.value,D===0);if(C.flags&512)return C===N.getFalseType()||C===N.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(C.flags&65536)return e.factory.createNull();if(C.flags&1048576){var g=e.firstDefined(C.types,function(Ce){return F(T,N,y,D,Ce)});return g??Q()}if(N.isArrayLikeType(C))return e.factory.createArrayLiteralExpression();if(V(C)){var P=e.map(N.getPropertiesOfType(C),function(Ce){var R=Ce.valueDeclaration?F(T,N,y,D,N.getTypeAtLocation(Ce.valueDeclaration)):Q();return e.factory.createPropertyAssignment(Ce.name,R)});return e.factory.createObjectLiteralExpression(P,!0)}if(e.getObjectFlags(C)&16){var te=e.find(C.symbol.declarations||e.emptyArray,e.or(e.isFunctionTypeNode,e.isMethodSignature,e.isMethodDeclaration));if(te===void 0)return Q();var ue=N.getSignaturesOfType(C,0);if(ue===void 0)return Q();var X=n.createSignatureDeclarationFromSignature(212,T,D,ue[0],n.createStubbedBody(e.Diagnostics.Function_not_implemented.message,D),void 0,void 0,void 0,void 0,y);return X??Q()}if(e.getObjectFlags(C)&1){var j=e.getClassLikeDeclarationOfSymbol(C.symbol);if(j===void 0||e.hasAbstractModifier(j))return Q();var Se=e.getFirstConstructorWithBody(j);return Se&&e.length(Se.parameters)?Q():e.factory.createNewExpression(e.factory.createIdentifier(C.symbol.name),void 0,void 0)}return Q()}function Q(){return e.factory.createIdentifier("undefined")}function V(T){return T.flags&524288&&(e.getObjectFlags(T)&128||T.symbol&&e.tryCast(e.singleOrUndefined(T.symbol.declarations),e.isTypeLiteralNode))}function re(T,N){var y=T.getContextualType(N.attributes);if(y===void 0)return e.emptyArray;var D=y.getProperties();if(!e.length(D))return e.emptyArray;for(var C=new e.Set,m=0,u=N.attributes.properties;m<u.length;m++){var g=u[m];if(e.isJsxAttribute(g)&&C.add(g.name.escapedText),e.isJsxSpreadAttribute(g))for(var P=T.getTypeAtLocation(g.expression),te=0,ue=P.getProperties();te<ue.length;te++){var X=ue[te];C.add(X.escapedName)}}return e.filter(D,function(j){return!(j.flags&16777216||e.getCheckFlags(j)&48||C.has(j.escapedName))})}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="addMissingNewOperator",p=[e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(k){var J=k.sourceFile,h=k.span,v=e.textChanges.ChangeTracker.with(k,function(A){return a(A,J,h)});return[n.createCodeFixAction(f,v,e.Diagnostics.Add_missing_new_operator_to_call,f,e.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[f],getAllCodeActions:function(k){return n.codeFixAll(k,p,function(J,h){return a(J,k.sourceFile,h)})}});function a(k,J,h){var v=e.cast(d(J,h),e.isCallExpression),A=e.factory.createNewExpression(v.expression,v.typeArguments,v.arguments);k.replaceNode(J,v,A)}function d(k,J){for(var h=e.getTokenAtPosition(k,J.start),v=e.textSpanEnd(J);h.end<v;)h=h.parent;return h}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="fixCannotFindModule",p="installTypesPackage",a=e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code,d=[a,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];n.registerCodeFix({errorCodes:d,getCodeActions:function(v){var A=v.host,z=v.sourceFile,ie=v.span.start,b=J(z,ie);if(b!==void 0){var M=h(b,A,v.errorCode);return M===void 0?[]:[n.createCodeFixAction(f,[],[e.Diagnostics.Install_0,M],p,e.Diagnostics.Install_all_missing_types_packages,k(z.fileName,M))]}},fixIds:[p],getAllCodeActions:function(v){return n.codeFixAll(v,d,function(A,z,ie){var b=J(z.file,z.start);if(b!==void 0)switch(v.fixId){case p:{var M=h(b,v.host,z.code);M&&ie.push(k(z.file.fileName,M));break}default:e.Debug.fail("Bad fixId: ".concat(v.fixId))}})}});function k(v,A){return{type:"install package",file:v,packageName:A}}function J(v,A){var z=e.tryCast(e.getTokenAtPosition(v,A),e.isStringLiteral);if(z){var ie=z.text,b=e.parsePackageName(ie).packageName;return e.isExternalModuleNameRelative(b)?void 0:b}}function h(v,A,z){var ie;return z===a?e.JsTyping.nodeCoreModules.has(v)?"@types/node":void 0:!((ie=A.isKnownTypesPackageName)===null||ie===void 0)&&ie.call(A,v)?e.getTypesPackageName(v):void 0}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f=[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],p="fixClassDoesntImplementInheritedAbstractMember";n.registerCodeFix({errorCodes:f,getCodeActions:function(J){var h=J.sourceFile,v=J.span,A=e.textChanges.ChangeTracker.with(J,function(z){return d(a(h,v.start),h,J,z,J.preferences)});return A.length===0?void 0:[n.createCodeFixAction(p,A,e.Diagnostics.Implement_inherited_abstract_class,p,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[p],getAllCodeActions:function(J){var h=new e.Map;return n.codeFixAll(J,f,function(v,A){var z=a(A.file,A.start);e.addToSeen(h,e.getNodeId(z))&&d(z,J.sourceFile,J,v,J.preferences)})}});function a(J,h){var v=e.getTokenAtPosition(J,h);return e.cast(v.parent,e.isClassLike)}function d(J,h,v,A,z){var ie=e.getEffectiveBaseTypeNode(J),b=v.program.getTypeChecker(),M=b.getTypeAtLocation(ie),S=b.getPropertiesOfType(M).filter(k),B=n.createImportAdder(h,v.program,z,v.host);n.createMissingMemberNodes(J,S,h,v,z,B,function(H){return A.insertNodeAtClassStart(h,J,H)}),B.writeFixes(A)}function k(J){var h=e.getSyntacticModifierFlags(e.first(J.getDeclarations()));return!(h&8)&&!!(h&128)}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="classSuperMustPrecedeThisAccess",p=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(J){var h=J.sourceFile,v=J.span,A=d(h,v.start);if(A){var z=A.constructor,ie=A.superCall,b=e.textChanges.ChangeTracker.with(J,function(M){return a(M,h,z,ie)});return[n.createCodeFixAction(f,b,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,f,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[f],getAllCodeActions:function(J){var h=J.sourceFile,v=new e.Map;return n.codeFixAll(J,p,function(A,z){var ie=d(z.file,z.start);if(ie){var b=ie.constructor,M=ie.superCall;e.addToSeen(v,e.getNodeId(b.parent))&&a(A,h,b,M)}})}});function a(J,h,v,A){J.insertNodeAtConstructorStart(h,v,A),J.delete(h,A)}function d(J,h){var v=e.getTokenAtPosition(J,h);if(v.kind===108){var A=e.getContainingFunction(v),z=k(A.body);return z&&!z.expression.arguments.some(function(ie){return e.isPropertyAccessExpression(ie)&&ie.expression===v})?{constructor:A,superCall:z}:void 0}}function k(J){return e.isExpressionStatement(J)&&e.isSuperCall(J.expression)?J:e.isFunctionLike(J)?void 0:e.forEachChild(J,k)}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="constructorForDerivedNeedSuperCall",p=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(k){var J=k.sourceFile,h=k.span,v=a(J,h.start),A=e.textChanges.ChangeTracker.with(k,function(z){return d(z,J,v)});return[n.createCodeFixAction(f,A,e.Diagnostics.Add_missing_super_call,f,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[f],getAllCodeActions:function(k){return n.codeFixAll(k,p,function(J,h){return d(J,k.sourceFile,a(h.file,h.start))})}});function a(k,J){var h=e.getTokenAtPosition(k,J);return e.Debug.assert(e.isConstructorDeclaration(h.parent),"token should be at the constructor declaration"),h.parent}function d(k,J,h){var v=e.factory.createExpressionStatement(e.factory.createCallExpression(e.factory.createSuper(),void 0,e.emptyArray));k.insertNodeAtConstructorStart(J,h,v)}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="enableExperimentalDecorators",p=[e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(d){var k=d.program.getCompilerOptions().configFile;if(k!==void 0){var J=e.textChanges.ChangeTracker.with(d,function(h){return a(h,k)});return[n.createCodeFixActionWithoutFixAll(f,J,e.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]}},fixIds:[f],getAllCodeActions:function(d){return n.codeFixAll(d,p,function(k){var J=d.program.getCompilerOptions().configFile;J!==void 0&&a(k,J)})}});function a(d,k){n.setJsonCompilerOptionValue(d,k,"experimentalDecorators",e.factory.createTrue())}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="fixEnableJsxFlag",p=[e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(d){var k=d.program.getCompilerOptions().configFile;if(k!==void 0){var J=e.textChanges.ChangeTracker.with(d,function(h){return a(h,k)});return[n.createCodeFixActionWithoutFixAll(f,J,e.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]}},fixIds:[f],getAllCodeActions:function(d){return n.codeFixAll(d,p,function(k){var J=d.program.getCompilerOptions().configFile;J!==void 0&&a(k,J)})}});function a(d,k){n.setJsonCompilerOptionValue(d,k,"jsx",e.factory.createStringLiteral("react"))}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){n.registerCodeFix({errorCodes:[e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(f){var p=f.program.getCompilerOptions(),a=p.configFile;if(a!==void 0){var d=[],k=e.getEmitModuleKind(p),J=k>=e.ModuleKind.ES2015&&k<e.ModuleKind.ESNext;if(J){var h=e.textChanges.ChangeTracker.with(f,function(z){n.setJsonCompilerOptionValue(z,a,"module",e.factory.createStringLiteral("esnext"))});d.push(n.createCodeFixActionWithoutFixAll("fixModuleOption",h,[e.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}var v=e.getEmitScriptTarget(p),A=v<4||v>99;if(A){var h=e.textChanges.ChangeTracker.with(f,function(ie){var b=e.getTsConfigObjectLiteralExpression(a);if(b){var M=[["target",e.factory.createStringLiteral("es2017")]];k===e.ModuleKind.CommonJS&&M.push(["module",e.factory.createStringLiteral("commonjs")]),n.setJsonCompilerOptionValues(ie,a,M)}});d.push(n.createCodeFixActionWithoutFixAll("fixTargetOption",h,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return d.length?d:void 0}}})})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="fixPropertyAssignment",p=[e.Diagnostics.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];n.registerCodeFix({errorCodes:p,fixIds:[f],getCodeActions:function(k){var J=k.sourceFile,h=k.span,v=d(J,h.start),A=e.textChanges.ChangeTracker.with(k,function(z){return a(z,k.sourceFile,v)});return[n.createCodeFixAction(f,A,[e.Diagnostics.Change_0_to_1,"=",":"],f,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(k){return n.codeFixAll(k,p,function(J,h){return a(J,h.file,d(h.file,h.start))})}});function a(k,J,h){k.replaceNode(J,h,e.factory.createPropertyAssignment(h.name,h.objectAssignmentInitializer))}function d(k,J){return e.cast(e.getTokenAtPosition(k,J).parent,e.isShorthandPropertyAssignment)}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="extendsInterfaceBecomesImplements",p=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(k){var J=k.sourceFile,h=a(J,k.span.start);if(h){var v=h.extendsToken,A=h.heritageClauses,z=e.textChanges.ChangeTracker.with(k,function(ie){return d(ie,J,v,A)});return[n.createCodeFixAction(f,z,e.Diagnostics.Change_extends_to_implements,f,e.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[f],getAllCodeActions:function(k){return n.codeFixAll(k,p,function(J,h){var v=a(h.file,h.start);v&&d(J,h.file,v.extendsToken,v.heritageClauses)})}});function a(k,J){var h=e.getTokenAtPosition(k,J),v=e.getContainingClass(h).heritageClauses,A=v[0].getFirstToken();return A.kind===94?{extendsToken:A,heritageClauses:v}:void 0}function d(k,J,h,v){if(k.replaceNode(J,h,e.factory.createToken(117)),v.length===2&&v[0].token===94&&v[1].token===117){var A=v[1].getFirstToken(),z=A.getFullStart();k.replaceRange(J,{pos:z,end:z},e.factory.createToken(27));for(var ie=J.text,b=A.end;b<ie.length&&e.isWhiteSpaceSingleLine(ie.charCodeAt(b));)b++;k.deleteRange(J,{pos:A.getStart(),end:b})}}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="forgottenThisPropertyAccess",p=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,a=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.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,p];n.registerCodeFix({errorCodes:a,getCodeActions:function(J){var h=J.sourceFile,v=d(h,J.span.start,J.errorCode);if(v){var A=e.textChanges.ChangeTracker.with(J,function(z){return k(z,h,v)});return[n.createCodeFixAction(f,A,[e.Diagnostics.Add_0_to_unresolved_variable,v.className||"this"],f,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[f],getAllCodeActions:function(J){return n.codeFixAll(J,a,function(h,v){var A=d(v.file,v.start,v.code);A&&k(h,J.sourceFile,A)})}});function d(J,h,v){var A=e.getTokenAtPosition(J,h);if(e.isIdentifier(A)||e.isPrivateIdentifier(A))return{node:A,className:v===p?e.getContainingClass(A).name.text:void 0}}function k(J,h,v){var A=v.node,z=v.className;e.suppressLeadingAndTrailingTrivia(A),J.replaceNode(h,A,e.factory.createPropertyAccessExpression(z?e.factory.createIdentifier(z):e.factory.createThis(),A))}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="fixInvalidJsxCharacters_expression",p="fixInvalidJsxCharacters_htmlEntity",a=[e.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code];n.registerCodeFix({errorCodes:a,fixIds:[f,p],getCodeActions:function(h){var v=h.sourceFile,A=h.preferences,z=h.span,ie=e.textChanges.ChangeTracker.with(h,function(M){return J(M,A,v,z.start,!1)}),b=e.textChanges.ChangeTracker.with(h,function(M){return J(M,A,v,z.start,!0)});return[n.createCodeFixAction(f,ie,e.Diagnostics.Wrap_invalid_character_in_an_expression_container,f,e.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),n.createCodeFixAction(p,b,e.Diagnostics.Convert_invalid_character_to_its_html_entity_code,p,e.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:function(h){return n.codeFixAll(h,a,function(v,A){return J(v,h.preferences,A.file,A.start,h.fixId===p)})}});var d={">":"&gt;","}":"&rbrace;"};function k(h){return e.hasProperty(d,h)}function J(h,v,A,z,ie){var b=A.getText()[z];if(k(b)){var M=ie?d[b]:"{".concat(e.quote(A,v,b),"}");h.replaceRangeWithText(A,{pos:z,end:z+1},M)}}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="unusedIdentifier",p="unusedIdentifier_prefix",a="unusedIdentifier_delete",d="unusedIdentifier_deleteImports",k="unusedIdentifier_infer",J=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code,e.Diagnostics.All_destructured_elements_are_unused.code,e.Diagnostics.All_variables_are_unused.code,e.Diagnostics.All_type_parameters_are_unused.code];n.registerCodeFix({errorCodes:J,getCodeActions:function(Q){var V=Q.errorCode,re=Q.sourceFile,T=Q.program,N=Q.cancellationToken,y=T.getTypeChecker(),D=T.getSourceFiles(),C=e.getTokenAtPosition(re,Q.span.start);if(e.isJSDocTemplateTag(C))return[v(e.textChanges.ChangeTracker.with(Q,function(Se){return Se.delete(re,C)}),e.Diagnostics.Remove_template_tag)];if(C.kind===29){var m=e.textChanges.ChangeTracker.with(Q,function(Se){return A(Se,re,C)});return[v(m,e.Diagnostics.Remove_type_parameters)]}var u=ie(C);if(u){var m=e.textChanges.ChangeTracker.with(Q,function(Ce){return Ce.delete(re,u)});return[n.createCodeFixAction(f,m,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(u)],d,e.Diagnostics.Delete_all_unused_imports)]}else if(z(C)){var g=e.textChanges.ChangeTracker.with(Q,function(Se){return I(re,C,Se,y,D,T,N,!1)});if(g.length)return[n.createCodeFixAction(f,g,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,C.getText(re)],d,e.Diagnostics.Delete_all_unused_imports)]}if(e.isObjectBindingPattern(C.parent)||e.isArrayBindingPattern(C.parent)){if(e.isParameter(C.parent.parent)){var P=C.parent.elements,te=[P.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(P,function(Se){return Se.getText(re)}).join(", ")];return[v(e.textChanges.ChangeTracker.with(Q,function(Se){return S(Se,re,C.parent)}),te)]}return[v(e.textChanges.ChangeTracker.with(Q,function(Se){return Se.delete(re,C.parent.parent)}),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(b(re,C))return[v(e.textChanges.ChangeTracker.with(Q,function(Se){return M(Se,re,C.parent)}),e.Diagnostics.Remove_variable_statement)];var ue=[];if(C.kind===137){var m=e.textChanges.ChangeTracker.with(Q,function(Ce){return h(Ce,re,C)}),X=e.cast(C.parent,e.isInferTypeNode).typeParameter.name.text;ue.push(n.createCodeFixAction(f,m,[e.Diagnostics.Replace_infer_0_with_unknown,X],k,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var g=e.textChanges.ChangeTracker.with(Q,function(Ce){return I(re,C,Ce,y,D,T,N,!1)});if(g.length){var X=e.isComputedPropertyName(C.parent)?C.parent:C;ue.push(v(g,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,X.getText(re)]))}}var j=e.textChanges.ChangeTracker.with(Q,function(Se){return B(Se,V,re,C)});return j.length&&ue.push(n.createCodeFixAction(f,j,[e.Diagnostics.Prefix_0_with_an_underscore,C.getText(re)],p,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),ue},fixIds:[p,a,d,k],getAllCodeActions:function(Q){var V=Q.sourceFile,re=Q.program,T=Q.cancellationToken,N=re.getTypeChecker(),y=re.getSourceFiles();return n.codeFixAll(Q,J,function(D,C){var m=e.getTokenAtPosition(V,C.start);switch(Q.fixId){case p:B(D,C.code,V,m);break;case d:{var u=ie(m);u?D.delete(V,u):z(m)&&I(V,m,D,N,y,re,T,!0);break}case a:{if(m.kind===137||z(m))break;if(e.isJSDocTemplateTag(m))D.delete(V,m);else if(m.kind===29)A(D,V,m);else if(e.isObjectBindingPattern(m.parent)){if(m.parent.parent.initializer)break;(!e.isParameter(m.parent.parent)||O(m.parent.parent,N,y))&&D.delete(V,m.parent.parent)}else{if(e.isArrayBindingPattern(m.parent.parent)&&m.parent.parent.parent.initializer)break;b(V,m)?M(D,V,m.parent):I(V,m,D,N,y,re,T,!0)}break}case k:m.kind===137&&h(D,V,m);break;default:e.Debug.fail(JSON.stringify(Q.fixId))}})}});function h(Q,V,re){Q.replaceNode(V,re.parent,e.factory.createKeywordTypeNode(154))}function v(Q,V){return n.createCodeFixAction(f,Q,V,a,e.Diagnostics.Delete_all_unused_declarations)}function A(Q,V,re){Q.delete(V,e.Debug.checkDefined(e.cast(re.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function z(Q){return Q.kind===100||Q.kind===79&&(Q.parent.kind===269||Q.parent.kind===266)}function ie(Q){return Q.kind===100?e.tryCast(Q.parent,e.isImportDeclaration):void 0}function b(Q,V){return e.isVariableDeclarationList(V.parent)&&e.first(V.parent.getChildren(Q))===V}function M(Q,V,re){Q.delete(V,re.parent.kind===236?re.parent:re)}function S(Q,V,re){e.forEach(re.elements,function(T){return Q.delete(V,T)})}function B(Q,V,re,T){V!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(T.kind===137&&(T=e.cast(T.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(T)&&H(T)&&(Q.replaceNode(re,T,e.factory.createIdentifier("_".concat(T.text))),e.isParameter(T.parent)&&e.getJSDocParameterTags(T.parent).forEach(function(N){e.isIdentifier(N.name)&&Q.replaceNode(re,N.name,e.factory.createIdentifier("_".concat(N.name.text)))})))}function H(Q){switch(Q.parent.kind){case 163:case 162:return!0;case 253:{var V=Q.parent;switch(V.parent.parent.kind){case 243:case 242:return!0}}}return!1}function I(Q,V,re,T,N,y,D,C){w(V,re,Q,T,N,y,D,C),e.isIdentifier(V)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(V,T,Q,function(m){e.isPropertyAccessExpression(m.parent)&&m.parent.name===m&&(m=m.parent),!C&&F(m)&&re.delete(Q,m.parent.parent)})}function w(Q,V,re,T,N,y,D,C){var m=Q.parent;if(e.isParameter(m))x(V,re,m,T,N,y,D,C);else if(!(C&&e.isIdentifier(Q)&&e.FindAllReferences.Core.isSymbolReferencedInFile(Q,T,re))){var u=e.isImportClause(m)?Q:e.isComputedPropertyName(m)?m.parent:m;e.Debug.assert(u!==re,"should not delete whole source file"),V.delete(re,u)}}function x(Q,V,re,T,N,y,D,C){C===void 0&&(C=!1),q(T,V,re,N,y,D,C)&&(re.modifiers&&re.modifiers.length>0&&(!e.isIdentifier(re.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(re.name,T,V))?re.modifiers.forEach(function(m){return Q.deleteModifier(V,m)}):!re.initializer&&O(re,T,N)&&Q.delete(V,re))}function O(Q,V,re){var T=Q.parent.parameters.indexOf(Q);return!e.FindAllReferences.Core.someSignatureUsage(Q.parent,re,V,function(N,y){return!y||y.arguments.length>T})}function q(Q,V,re,T,N,y,D){var C=re.parent;switch(C.kind){case 168:case 170:var m=C.parameters.indexOf(re),u=e.isMethodDeclaration(C)?C.name:C,g=e.FindAllReferences.Core.getReferencedSymbolsForNode(C.pos,u,N,T,y);if(g)for(var P=0,te=g;P<te.length;P++)for(var ue=te[P],X=0,j=ue.references;X<j.length;X++){var Se=j[X];if(Se.kind===1){var Ce=e.isSuperKeyword(Se.node)&&e.isCallExpression(Se.node.parent)&&Se.node.parent.arguments.length>m,R=e.isPropertyAccessExpression(Se.node.parent)&&e.isSuperKeyword(Se.node.parent.expression)&&e.isCallExpression(Se.node.parent.parent)&&Se.node.parent.parent.arguments.length>m,Y=(e.isMethodDeclaration(Se.node.parent)||e.isMethodSignature(Se.node.parent))&&Se.node.parent!==re.parent&&Se.node.parent.parameters.length>m;if(Ce||R||Y)return!1}}return!0;case 255:return C.name&&Z(Q,V,C.name)?ne(C,re,D):!0;case 212:case 213:return ne(C,re,D);case 172:return!1;default:return e.Debug.failBadSyntaxKind(C)}}function Z(Q,V,re){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(re,Q,V,function(T){return e.isIdentifier(T)&&e.isCallExpression(T.parent)&&T.parent.arguments.indexOf(T)>=0})}function ne(Q,V,re){var T=Q.parameters,N=T.indexOf(V);return e.Debug.assert(N!==-1,"The parameter should already be in the list"),re?T.slice(N+1).every(function(y){return e.isIdentifier(y.name)&&!y.symbol.isReferenced}):N===T.length-1}function F(Q){return(e.isBinaryExpression(Q.parent)&&Q.parent.left===Q||(e.isPostfixUnaryExpression(Q.parent)||e.isPrefixUnaryExpression(Q.parent))&&Q.parent.operand===Q)&&e.isExpressionStatement(Q.parent.parent)}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="fixUnreachableCode",p=[e.Diagnostics.Unreachable_code_detected.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(k){var J=e.textChanges.ChangeTracker.with(k,function(h){return a(h,k.sourceFile,k.span.start,k.span.length,k.errorCode)});return[n.createCodeFixAction(f,J,e.Diagnostics.Remove_unreachable_code,f,e.Diagnostics.Remove_all_unreachable_code)]},fixIds:[f],getAllCodeActions:function(k){return n.codeFixAll(k,p,function(J,h){return a(J,h.file,h.start,h.length,h.code)})}});function a(k,J,h,v,A){var z=e.getTokenAtPosition(J,h),ie=e.findAncestor(z,e.isStatement);if(ie.getStart(J)!==z.getStart(J)){var b=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(ie.kind),tokenKind:e.Debug.formatSyntaxKind(z.kind),errorCode:A,start:h,length:v});e.Debug.fail("Token and statement should start at the same point. "+b)}var M=(e.isBlock(ie.parent)?ie.parent:ie).parent;if(!e.isBlock(ie.parent)||ie===e.first(ie.parent.statements))switch(M.kind){case 238:if(M.elseStatement){if(e.isBlock(ie.parent))break;k.replaceNode(J,ie,e.factory.createBlock(e.emptyArray));return}case 240:case 241:k.delete(J,M);return}if(e.isBlock(ie.parent)){var S=h+v,B=e.Debug.checkDefined(d(e.sliceAfter(ie.parent.statements,ie),function(H){return H.pos<S}),"Some statement should be last");k.deleteNodeRange(J,ie,B)}else k.delete(J,ie)}function d(k,J){for(var h,v=0,A=k;v<A.length;v++){var z=A[v];if(!J(z))break;h=z}return h}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="fixUnusedLabel",p=[e.Diagnostics.Unused_label.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(d){var k=e.textChanges.ChangeTracker.with(d,function(J){return a(J,d.sourceFile,d.span.start)});return[n.createCodeFixAction(f,k,e.Diagnostics.Remove_unused_label,f,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[f],getAllCodeActions:function(d){return n.codeFixAll(d,p,function(k,J){return a(k,J.file,J.start)})}});function a(d,k,J){var h=e.getTokenAtPosition(k,J),v=e.cast(h.parent,e.isLabeledStatement),A=h.getStart(k),z=v.statement.getStart(k),ie=e.positionsAreOnSameLine(A,z,k)?z:e.skipTrivia(k.text,e.findChildOfKind(v,58,k).end,!0);d.deleteRange(k,{pos:A,end:ie})}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="fixJSDocTypes_plain",p="fixJSDocTypes_nullable",a=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];n.registerCodeFix({errorCodes:a,getCodeActions:function(h){var v=h.sourceFile,A=h.program.getTypeChecker(),z=k(v,h.span.start,A);if(!z)return;var ie=z.typeNode,b=z.type,M=ie.getText(v),S=[B(b,f,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return ie.kind===312&&S.push(B(A.getNullableType(b,32768),p,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),S;function B(H,I,w){var x=e.textChanges.ChangeTracker.with(h,function(O){return d(O,v,ie,H,A)});return n.createCodeFixAction("jdocTypes",x,[e.Diagnostics.Change_0_to_1,M,A.typeToString(H)],I,w)}},fixIds:[f,p],getAllCodeActions:function(h){var v=h.fixId,A=h.program,z=h.sourceFile,ie=A.getTypeChecker();return n.codeFixAll(h,a,function(b,M){var S=k(M.file,M.start,ie);if(S){var B=S.typeNode,H=S.type,I=B.kind===312&&v===p?ie.getNullableType(H,32768):H;d(b,z,B,I,ie)}})}});function d(h,v,A,z,ie){h.replaceNode(v,A,ie.typeToTypeNode(z,A,void 0))}function k(h,v,A){var z=e.findAncestor(e.getTokenAtPosition(h,v),J),ie=z&&z.type;return ie&&{typeNode:ie,type:A.getTypeFromTypeNode(ie)}}function J(h){switch(h.kind){case 228:case 173:case 174:case 255:case 171:case 175:case 194:case 168:case 167:case 163:case 166:case 165:case 172:case 258:case 210:case 253:return!0;default:return!1}}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="fixMissingCallParentheses",p=[e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];n.registerCodeFix({errorCodes:p,fixIds:[f],getCodeActions:function(k){var J=k.sourceFile,h=k.span,v=d(J,h.start);if(v){var A=e.textChanges.ChangeTracker.with(k,function(z){return a(z,k.sourceFile,v)});return[n.createCodeFixAction(f,A,e.Diagnostics.Add_missing_call_parentheses,f,e.Diagnostics.Add_all_missing_call_parentheses)]}},getAllCodeActions:function(k){return n.codeFixAll(k,p,function(J,h){var v=d(h.file,h.start);v&&a(J,h.file,v)})}});function a(k,J,h){k.replaceNodeWithText(J,h,"".concat(h.text,"()"))}function d(k,J){var h=e.getTokenAtPosition(k,J);if(e.isPropertyAccessExpression(h.parent)){for(var v=h.parent;e.isPropertyAccessExpression(v.parent);)v=v.parent;return v.name}if(e.isIdentifier(h))return h}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="fixAwaitInSyncFunction",p=[e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(J){var h=J.sourceFile,v=J.span,A=d(h,v.start);if(A){var z=e.textChanges.ChangeTracker.with(J,function(ie){return k(ie,h,A)});return[n.createCodeFixAction(f,z,e.Diagnostics.Add_async_modifier_to_containing_function,f,e.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[f],getAllCodeActions:function(J){var h=new e.Map;return n.codeFixAll(J,p,function(v,A){var z=d(A.file,A.start);!z||!e.addToSeen(h,e.getNodeId(z.insertBefore))||k(v,J.sourceFile,z)})}});function a(J){if(J.type)return J.type;if(e.isVariableDeclaration(J.parent)&&J.parent.type&&e.isFunctionTypeNode(J.parent.type))return J.parent.type.type}function d(J,h){var v=e.getTokenAtPosition(J,h),A=e.getContainingFunction(v);if(A){var z;switch(A.kind){case 168:z=A.name;break;case 255:case 212:z=e.findChildOfKind(A,98,J);break;case 213:var ie=A.typeParameters?29:20;z=e.findChildOfKind(A,ie,J)||e.first(A.parameters);break;default:return}return z&&{insertBefore:z,returnType:a(A)}}}function k(J,h,v){var A=v.insertBefore,z=v.returnType;if(z){var ie=e.getEntityNameFromTypeNode(z);(!ie||ie.kind!==79||ie.text!=="Promise")&&J.replaceNode(h,z,e.factory.createTypeReferenceNode("Promise",e.factory.createNodeArray([z])))}J.insertModifierBefore(h,131,A)}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f=[e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],p="fixPropertyOverrideAccessor";n.registerCodeFix({errorCodes:f,getCodeActions:function(d){var k=a(d.sourceFile,d.span.start,d.span.length,d.errorCode,d);if(k)return[n.createCodeFixAction(p,k,e.Diagnostics.Generate_get_and_set_accessors,p,e.Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[p],getAllCodeActions:function(d){return n.codeFixAll(d,f,function(k,J){var h=a(J.file,J.start,J.length,J.code,d);if(h)for(var v=0,A=h;v<A.length;v++){var z=A[v];k.pushRaw(d.sourceFile,z)}})}});function a(d,k,J,h,v){var A,z;if(h===e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)A=k,z=k+J;else if(h===e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){var ie=v.program.getTypeChecker(),b=e.getTokenAtPosition(d,k).parent;e.Debug.assert(e.isAccessor(b),"error span of fixPropertyOverrideAccessor should only be on an accessor");var M=b.parent;e.Debug.assert(e.isClassLike(M),"erroneous accessors should only be inside classes");var S=e.singleOrUndefined(n.getAllSupers(M,ie));if(!S)return[];var B=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(b.name)),H=ie.getPropertyOfType(ie.getTypeAtLocation(S),B);if(!H||!H.valueDeclaration)return[];A=H.valueDeclaration.pos,z=H.valueDeclaration.end,d=e.getSourceFileOfNode(H.valueDeclaration)}else e.Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+h);return n.generateAccessorFromProperty(d,v.program,A,z,v,e.Diagnostics.Generate_get_and_set_accessors.message)}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="inferFromUsage",p=[e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,e.Diagnostics.Member_0_implicitly_has_an_1_type.code,e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(Z){var ne=Z.sourceFile,F=Z.program,Q=Z.span.start,V=Z.errorCode,re=Z.cancellationToken,T=Z.host,N=Z.preferences,y=e.getTokenAtPosition(ne,Q),D,C=e.textChanges.ChangeTracker.with(Z,function(u){D=k(u,ne,y,V,F,re,e.returnTrue,T,N)}),m=D&&e.getNameOfDeclaration(D);return!m||C.length===0?void 0:[n.createCodeFixAction(f,C,[a(V,y),m.getText(ne)],f,e.Diagnostics.Infer_all_types_from_usage)]},fixIds:[f],getAllCodeActions:function(Z){var ne=Z.sourceFile,F=Z.program,Q=Z.cancellationToken,V=Z.host,re=Z.preferences,T=e.nodeSeenTracker();return n.codeFixAll(Z,p,function(N,y){k(N,ne,e.getTokenAtPosition(y.file,y.start),y.code,F,Q,T,V,re)})}});function a(Z,ne){switch(Z){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.isSetAccessorDeclaration(e.getContainingFunction(ne))?e.Diagnostics.Infer_type_of_0_from_usage:e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return e.Diagnostics.Infer_this_type_of_0_from_usage;default:return e.Diagnostics.Infer_type_of_0_from_usage}}function d(Z){switch(Z){case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_an_1_type.code;case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Member_0_implicitly_has_an_1_type.code}return Z}function k(Z,ne,F,Q,V,re,T,N,y){if(!(!e.isParameterPropertyModifier(F.kind)&&F.kind!==79&&F.kind!==25&&F.kind!==108)){var D=F.parent,C=n.createImportAdder(ne,V,y,N);switch(Q=d(Q),Q){case e.Diagnostics.Member_0_implicitly_has_an_1_type.code:case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(e.isVariableDeclaration(D)&&T(D)||e.isPropertyDeclaration(D)||e.isPropertySignature(D))return J(Z,C,ne,D,V,N,re),C.writeFixes(Z),D;if(e.isPropertyAccessExpression(D)){var m=w(D.name,V,re),u=e.getTypeNodeIfAccessible(m,D,V,N);if(u){var g=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(u),void 0);S(Z,ne,e.cast(D.parent.parent,e.isExpressionStatement),[g])}return C.writeFixes(Z),D}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:{var P=V.getTypeChecker().getSymbolAtLocation(F);return P&&P.valueDeclaration&&e.isVariableDeclaration(P.valueDeclaration)&&T(P.valueDeclaration)?(J(Z,C,ne,P.valueDeclaration,V,N,re),C.writeFixes(Z),P.valueDeclaration):void 0}}var te=e.getContainingFunction(F);if(te!==void 0){var ue;switch(Q){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(te)){z(Z,C,ne,te,V,N,re),ue=te;break}case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(T(te)){var X=e.cast(D,e.isParameter);h(Z,C,ne,X,te,V,N,re),ue=X}break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:e.isGetAccessorDeclaration(te)&&e.isIdentifier(te.name)&&(ie(Z,C,ne,te,w(te.name,V,re),V,N),ue=te);break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:e.isSetAccessorDeclaration(te)&&(z(Z,C,ne,te,V,N,re),ue=te);break;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:e.textChanges.isThisTypeAnnotatable(te)&&T(te)&&(v(Z,ne,te,V,N,re),ue=te);break;default:return e.Debug.fail(String(Q))}return C.writeFixes(Z),ue}}}function J(Z,ne,F,Q,V,re,T){e.isIdentifier(Q.name)&&ie(Z,ne,F,Q,w(Q.name,V,T),V,re)}function h(Z,ne,F,Q,V,re,T,N){if(e.isIdentifier(Q.name)){var y=x(V,F,re,N);if(e.Debug.assert(V.parameters.length===y.length,"Parameter count and inference count should match"),e.isInJSFile(V))M(Z,F,y,re,T);else{var D=e.isArrowFunction(V)&&!e.findChildOfKind(V,20,F);D&&Z.insertNodeBefore(F,e.first(V.parameters),e.factory.createToken(20));for(var C=0,m=y;C<m.length;C++){var u=m[C],g=u.declaration,P=u.type;g&&!g.type&&!g.initializer&&ie(Z,ne,F,g,P,re,T)}D&&Z.insertNodeAfter(F,e.last(V.parameters),e.factory.createToken(21))}}}function v(Z,ne,F,Q,V,re){var T=O(F,ne,Q,re);if(!(!T||!T.length)){var N=q(Q,T,re).thisParameter(),y=e.getTypeNodeIfAccessible(N,F,Q,V);y&&(e.isInJSFile(F)?A(Z,ne,F,y):Z.tryInsertThisTypeAnnotation(ne,F,y))}}function A(Z,ne,F,Q){S(Z,ne,F,[e.factory.createJSDocThisTag(void 0,e.factory.createJSDocTypeExpression(Q))])}function z(Z,ne,F,Q,V,re,T){var N=e.firstOrUndefined(Q.parameters);if(N&&e.isIdentifier(Q.name)&&e.isIdentifier(N.name)){var y=w(Q.name,V,T);y===V.getTypeChecker().getAnyType()&&(y=w(N.name,V,T)),e.isInJSFile(Q)?M(Z,F,[{declaration:N,type:y}],V,re):ie(Z,ne,F,N,y,V,re)}}function ie(Z,ne,F,Q,V,re,T){var N=e.getTypeNodeIfAccessible(V,Q,re,T);if(N)if(e.isInJSFile(F)&&Q.kind!==165){var y=e.isVariableDeclaration(Q)?e.tryCast(Q.parent.parent,e.isVariableStatement):Q;if(!y)return;var D=e.factory.createJSDocTypeExpression(N),C=e.isGetAccessorDeclaration(Q)?e.factory.createJSDocReturnTag(void 0,D,void 0):e.factory.createJSDocTypeTag(void 0,D,void 0);S(Z,F,y,[C])}else b(N,Q,F,Z,ne,e.getEmitScriptTarget(re.getCompilerOptions()))||Z.tryInsertTypeAnnotation(F,Q,N)}function b(Z,ne,F,Q,V,re){var T=n.tryGetAutoImportableReferenceFromTypeNode(Z,re);return T&&Q.tryInsertTypeAnnotation(F,ne,T.typeNode)?(e.forEach(T.symbols,function(N){return V.addImportFromExportedSymbol(N,!0)}),!0):!1}function M(Z,ne,F,Q,V){var re=F.length&&F[0].declaration.parent;if(re){var T=e.mapDefined(F,function(D){var C=D.declaration;if(!(C.initializer||e.getJSDocType(C)||!e.isIdentifier(C.name))){var m=D.type&&e.getTypeNodeIfAccessible(D.type,C,Q,V);if(m){var u=e.factory.cloneNode(C.name);return e.setEmitFlags(u,3584),{name:e.factory.cloneNode(C.name),param:C,isOptional:!!D.isOptional,typeNode:m}}}});if(T.length)if(e.isArrowFunction(re)||e.isFunctionExpression(re)){var N=e.isArrowFunction(re)&&!e.findChildOfKind(re,20,ne);N&&Z.insertNodeBefore(ne,e.first(re.parameters),e.factory.createToken(20)),e.forEach(T,function(D){var C=D.typeNode,m=D.param,u=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(C)),g=e.factory.createJSDocComment(void 0,[u]);Z.insertNodeAt(ne,m.getStart(ne),g,{suffix:" "})}),N&&Z.insertNodeAfter(ne,e.last(re.parameters),e.factory.createToken(21))}else{var y=e.map(T,function(D){var C=D.name,m=D.typeNode,u=D.isOptional;return e.factory.createJSDocParameterTag(void 0,C,!!u,e.factory.createJSDocTypeExpression(m),!1,void 0)});S(Z,ne,re,y)}}}function S(Z,ne,F,Q){var V=e.flatMap(F.jsDoc,function(D){return typeof D.comment=="string"?e.factory.createJSDocText(D.comment):D.comment}),re=e.flatMapToMutable(F.jsDoc,function(D){return D.tags}),T=Q.filter(function(D){return!re||!re.some(function(C,m){var u=H(C,D);return u&&(re[m]=u),!!u})}),N=e.factory.createJSDocComment(e.factory.createNodeArray(e.intersperse(V,e.factory.createJSDocText(`
  250. `))),e.factory.createNodeArray(Gt(Gt([],re||e.emptyArray,!0),T,!0))),y=F.kind===213?B(F):F;y.jsDoc=F.jsDoc,y.jsDocCache=F.jsDocCache,Z.insertJsdocCommentBefore(ne,y,N)}n.addJSDocTags=S;function B(Z){return Z.parent.kind===166?Z.parent:Z.parent.parent}function H(Z,ne){if(Z.kind===ne.kind)switch(Z.kind){case 338:{var F=Z,Q=ne;return e.isIdentifier(F.name)&&e.isIdentifier(Q.name)&&F.name.escapedText===Q.name.escapedText?e.factory.createJSDocParameterTag(void 0,Q.name,!1,Q.typeExpression,Q.isNameFirst,F.comment):void 0}case 339:return e.factory.createJSDocReturnTag(void 0,ne.typeExpression,Z.comment)}}function I(Z,ne,F){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,Z,ne,ne.getSourceFiles(),F),function(Q){return Q.kind!==0?e.tryCast(Q.node,e.isIdentifier):void 0})}function w(Z,ne,F){var Q=I(Z,ne,F);return q(ne,Q,F).single()}function x(Z,ne,F,Q){var V=O(Z,ne,F,Q);return V&&q(F,V,Q).parameters(Z)||Z.parameters.map(function(re){return{declaration:re,type:e.isIdentifier(re.name)?w(re.name,F,Q):F.getTypeChecker().getAnyType()}})}function O(Z,ne,F,Q){var V;switch(Z.kind){case 170:V=e.findChildOfKind(Z,134,ne);break;case 213:case 212:var re=Z.parent;V=(e.isVariableDeclaration(re)||e.isPropertyDeclaration(re))&&e.isIdentifier(re.name)?re.name:Z.name;break;case 255:case 168:case 167:V=Z.name;break}if(V)return I(V,F,Q)}function q(Z,ne,F){var Q=Z.getTypeChecker(),V={string:function(){return Q.getStringType()},number:function(){return Q.getNumberType()},Array:function(De){return Q.createArrayType(De)},Promise:function(De){return Q.createPromiseType(De)}},re=[Q.getStringType(),Q.getNumberType(),Q.createArrayType(Q.getAnyType()),Q.createPromiseType(Q.getAnyType())];return{single:y,parameters:D,thisParameter:C};function T(){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 N(De){for(var Ae=new e.Map,Ye=0,Dr=De;Ye<Dr.length;Ye++){var br=Dr[Ye];br.properties&&br.properties.forEach(function(Ar,kr){Ae.has(kr)||Ae.set(kr,[]),Ae.get(kr).push(Ar)})}var lr=new e.Map;return Ae.forEach(function(Ar,kr){lr.set(kr,N(Ar))}),{isNumber:De.some(function(Ar){return Ar.isNumber}),isString:De.some(function(Ar){return Ar.isString}),isNumberOrString:De.some(function(Ar){return Ar.isNumberOrString}),candidateTypes:e.flatMap(De,function(Ar){return Ar.candidateTypes}),properties:lr,calls:e.flatMap(De,function(Ar){return Ar.calls}),constructs:e.flatMap(De,function(Ar){return Ar.constructs}),numberIndex:e.forEach(De,function(Ar){return Ar.numberIndex}),stringIndex:e.forEach(De,function(Ar){return Ar.stringIndex}),candidateThisTypes:e.flatMap(De,function(Ar){return Ar.candidateThisTypes}),inferredTypes:void 0}}function y(){return Te(m(ne))}function D(De){if(!(ne.length===0||!De.parameters)){for(var Ae=T(),Ye=0,Dr=ne;Ye<Dr.length;Ye++){var br=Dr[Ye];F.throwIfCancellationRequested(),u(br,Ae)}var lr=Gt(Gt([],Ae.constructs||[],!0),Ae.calls||[],!0);return De.parameters.map(function(Ar,kr){for(var Ke=[],Me=e.isRestParameter(Ar),Hr=!1,ur=0,gr=lr;ur<gr.length;ur++){var de=gr[ur];if(de.argumentTypes.length<=kr)Hr=e.isInJSFile(De),Ke.push(Q.getUndefinedType());else if(Me)for(var Fe=kr;Fe<de.argumentTypes.length;Fe++)Ke.push(Q.getBaseTypeOfLiteralType(de.argumentTypes[Fe]));else Ke.push(Q.getBaseTypeOfLiteralType(de.argumentTypes[kr]))}if(e.isIdentifier(Ar.name)){var $e=m(I(Ar.name,Z,F));Ke.push.apply(Ke,Me?e.mapDefined($e,Q.getElementTypeOfArrayType):$e)}var Sr=Te(Ke);return{type:Me?Q.createArrayType(Sr):Sr,isOptional:Hr&&!Me,declaration:Ar}})}}function C(){for(var De=T(),Ae=0,Ye=ne;Ae<Ye.length;Ae++){var Dr=Ye[Ae];F.throwIfCancellationRequested(),u(Dr,De)}return Te(De.candidateThisTypes||e.emptyArray)}function m(De){for(var Ae=T(),Ye=0,Dr=De;Ye<Dr.length;Ye++){var br=Dr[Ye];F.throwIfCancellationRequested(),u(br,Ae)}return ke(Ae)}function u(De,Ae){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(De);)De=De.parent;switch(De.parent.kind){case 237:P(De,Ae);break;case 219:Ae.isNumber=!0;break;case 218:te(De.parent,Ae);break;case 220:ue(De,De.parent,Ae);break;case 288:case 289:X(De.parent,Ae);break;case 207:case 208:De.parent.expression===De?j(De.parent,Ae):g(De,Ae);break;case 205:Se(De.parent,Ae);break;case 206:Ce(De.parent,De,Ae);break;case 294:case 295:R(De.parent,Ae);break;case 166:Y(De.parent,Ae);break;case 253:{var Ye=De.parent,Dr=Ye.name,br=Ye.initializer;if(De===Dr){br&&qe(Ae,Q.getTypeAtLocation(br));break}}default:return g(De,Ae)}}function g(De,Ae){e.isExpressionNode(De)&&qe(Ae,Q.getContextualType(De))}function P(De,Ae){qe(Ae,e.isCallExpression(De)?Q.getVoidType():Q.getAnyType())}function te(De,Ae){switch(De.operator){case 45:case 46:case 40:case 54:Ae.isNumber=!0;break;case 39:Ae.isNumberOrString=!0;break}}function ue(De,Ae,Ye){switch(Ae.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:var Dr=Q.getTypeAtLocation(Ae.left===De?Ae.right:Ae.left);Dr.flags&1056?qe(Ye,Dr):Ye.isNumber=!0;break;case 64:case 39:var br=Q.getTypeAtLocation(Ae.left===De?Ae.right:Ae.left);br.flags&1056?qe(Ye,br):br.flags&296?Ye.isNumber=!0:br.flags&402653316?Ye.isString=!0:br.flags&1||(Ye.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:qe(Ye,Q.getTypeAtLocation(Ae.left===De?Ae.right:Ae.left));break;case 101:De===Ae.left&&(Ye.isString=!0);break;case 56:case 60:De===Ae.left&&(De.parent.parent.kind===253||e.isAssignmentExpression(De.parent.parent,!0))&&qe(Ye,Q.getTypeAtLocation(Ae.right));break}}function X(De,Ae){qe(Ae,Q.getTypeAtLocation(De.parent.parent.expression))}function j(De,Ae){var Ye={argumentTypes:[],return_:T()};if(De.arguments)for(var Dr=0,br=De.arguments;Dr<br.length;Dr++){var lr=br[Dr];Ye.argumentTypes.push(Q.getTypeAtLocation(lr))}u(De,Ye.return_),De.kind===207?(Ae.calls||(Ae.calls=[])).push(Ye):(Ae.constructs||(Ae.constructs=[])).push(Ye)}function Se(De,Ae){var Ye=e.escapeLeadingUnderscores(De.name.text);Ae.properties||(Ae.properties=new e.Map);var Dr=Ae.properties.get(Ye)||T();u(De,Dr),Ae.properties.set(Ye,Dr)}function Ce(De,Ae,Ye){if(Ae===De.argumentExpression){Ye.isNumberOrString=!0;return}else{var Dr=Q.getTypeAtLocation(De.argumentExpression),br=T();u(De,br),Dr.flags&296?Ye.numberIndex=br:Ye.stringIndex=br}}function R(De,Ae){var Ye=e.isVariableDeclaration(De.parent.parent)?De.parent.parent:De.parent;Xe(Ae,Q.getTypeAtLocation(Ye))}function Y(De,Ae){Xe(Ae,Q.getTypeAtLocation(De.parent))}function U(De,Ae){for(var Ye=[],Dr=0,br=De;Dr<br.length;Dr++)for(var lr=br[Dr],Ar=0,kr=Ae;Ar<kr.length;Ar++){var Ke=kr[Ar],Me=Ke.high,Hr=Ke.low;Me(lr)&&(e.Debug.assert(!Hr(lr),"Priority can't have both low and high"),Ye.push(Hr))}return De.filter(function(ur){return Ye.every(function(gr){return!gr(ur)})})}function K(De){return Te(ke(De))}function Te(De){if(!De.length)return Q.getAnyType();var Ae=Q.getUnionType([Q.getStringType(),Q.getNumberType()]),Ye=[{high:function(lr){return lr===Q.getStringType()||lr===Q.getNumberType()},low:function(lr){return lr===Ae}},{high:function(lr){return!(lr.flags&16385)},low:function(lr){return!!(lr.flags&16385)}},{high:function(lr){return!(lr.flags&114689)&&!(e.getObjectFlags(lr)&16)},low:function(lr){return!!(e.getObjectFlags(lr)&16)}}],Dr=U(De,Ye),br=Dr.filter(function(lr){return e.getObjectFlags(lr)&16});return br.length&&(Dr=Dr.filter(function(lr){return!(e.getObjectFlags(lr)&16)}),Dr.push(ge(br))),Q.getWidenedType(Q.getUnionType(Dr.map(Q.getBaseTypeOfLiteralType),2))}function ge(De){if(De.length===1)return De[0];for(var Ae=[],Ye=[],Dr=[],br=[],lr=!1,Ar=!1,kr=e.createMultiMap(),Ke=0,Me=De;Ke<Me.length;Ke++){for(var Hr=Me[Ke],ur=0,gr=Q.getPropertiesOfType(Hr);ur<gr.length;ur++){var de=gr[ur];kr.add(de.name,de.valueDeclaration?Q.getTypeOfSymbolAtLocation(de,de.valueDeclaration):Q.getAnyType())}Ae.push.apply(Ae,Q.getSignaturesOfType(Hr,0)),Ye.push.apply(Ye,Q.getSignaturesOfType(Hr,1));var Fe=Q.getIndexInfoOfType(Hr,0);Fe&&(Dr.push(Fe.type),lr=lr||Fe.isReadonly);var $e=Q.getIndexInfoOfType(Hr,1);$e&&(br.push($e.type),Ar=Ar||$e.isReadonly)}var Sr=e.mapEntries(kr,function(He,pr){var Jr=pr.length<De.length?16777216:0,ze=Q.createSymbol(4|Jr,He);return ze.type=Q.getUnionType(pr),[He,ze]}),Pr=[];return Dr.length&&Pr.push(Q.createIndexInfo(Q.getStringType(),Q.getUnionType(Dr),lr)),br.length&&Pr.push(Q.createIndexInfo(Q.getNumberType(),Q.getUnionType(br),Ar)),Q.createAnonymousType(De[0].symbol,Sr,Ae,Ye,Pr)}function ke(De){var Ae,Ye,Dr,br=[];return De.isNumber&&br.push(Q.getNumberType()),De.isString&&br.push(Q.getStringType()),De.isNumberOrString&&br.push(Q.getUnionType([Q.getStringType(),Q.getNumberType()])),De.numberIndex&&br.push(Q.createArrayType(K(De.numberIndex))),(!((Ae=De.properties)===null||Ae===void 0)&&Ae.size||!((Ye=De.calls)===null||Ye===void 0)&&Ye.length||!((Dr=De.constructs)===null||Dr===void 0)&&Dr.length||De.stringIndex)&&br.push(Pe(De)),br.push.apply(br,(De.candidateTypes||[]).map(function(lr){return Q.getBaseTypeOfLiteralType(lr)})),br.push.apply(br,Ie(De)),br}function Pe(De){var Ae=new e.Map;De.properties&&De.properties.forEach(function(lr,Ar){var kr=Q.createSymbol(4,Ar);kr.type=K(lr),Ae.set(Ar,kr)});var Ye=De.calls?[Le(De.calls)]:[],Dr=De.constructs?[Le(De.constructs)]:[],br=De.stringIndex?[Q.createIndexInfo(Q.getStringType(),K(De.stringIndex),!1)]:[];return Q.createAnonymousType(void 0,Ae,Ye,Dr,br)}function Ie(De){if(!De.properties||!De.properties.size)return[];var Ae=re.filter(function(Ye){return Ge(Ye,De)});return 0<Ae.length&&Ae.length<3?Ae.map(function(Ye){return he(Ye,De)}):[]}function Ge(De,Ae){return Ae.properties?!e.forEachEntry(Ae.properties,function(Ye,Dr){var br=Q.getTypeOfPropertyOfType(De,Dr);if(!br)return!0;if(Ye.calls){var lr=Q.getSignaturesOfType(br,0);return!lr.length||!Q.isTypeAssignableTo(br,_e(Ye.calls))}else return!Q.isTypeAssignableTo(br,K(Ye))}):!1}function he(De,Ae){if(!(e.getObjectFlags(De)&4)||!Ae.properties)return De;var Ye=De.target,Dr=e.singleOrUndefined(Ye.typeParameters);if(!Dr)return De;var br=[];return Ae.properties.forEach(function(lr,Ar){var kr=Q.getTypeOfPropertyOfType(Ye,Ar);e.Debug.assert(!!kr,"generic should have all the properties of its reference."),br.push.apply(br,ve(kr,K(lr),Dr))}),V[De.symbol.escapedName](Te(br))}function ve(De,Ae,Ye){if(De===Ye)return[Ae];if(De.flags&3145728)return e.flatMap(De.types,function(Me){return ve(Me,Ae,Ye)});if(e.getObjectFlags(De)&4&&e.getObjectFlags(Ae)&4){var Dr=Q.getTypeArguments(De),br=Q.getTypeArguments(Ae),lr=[];if(Dr&&br)for(var Ar=0;Ar<Dr.length;Ar++)br[Ar]&&lr.push.apply(lr,ve(Dr[Ar],br[Ar],Ye));return lr}var kr=Q.getSignaturesOfType(De,0),Ke=Q.getSignaturesOfType(Ae,0);return kr.length===1&&Ke.length===1?Ve(kr[0],Ke[0],Ye):[]}function Ve(De,Ae,Ye){for(var Dr=[],br=0;br<De.parameters.length;br++){var lr=De.parameters[br],Ar=Ae.parameters[br],kr=De.declaration&&e.isRestParameter(De.declaration.parameters[br]);if(!Ar)break;var Ke=lr.valueDeclaration?Q.getTypeOfSymbolAtLocation(lr,lr.valueDeclaration):Q.getAnyType(),Me=kr&&Q.getElementTypeOfArrayType(Ke);Me&&(Ke=Me);var Hr=Ar.type||(Ar.valueDeclaration?Q.getTypeOfSymbolAtLocation(Ar,Ar.valueDeclaration):Q.getAnyType());Dr.push.apply(Dr,ve(Ke,Hr,Ye))}var ur=Q.getReturnTypeOfSignature(De),gr=Q.getReturnTypeOfSignature(Ae);return Dr.push.apply(Dr,ve(ur,gr,Ye)),Dr}function _e(De){return Q.createAnonymousType(void 0,e.createSymbolTable(),[Le(De)],e.emptyArray,e.emptyArray)}function Le(De){for(var Ae=[],Ye=Math.max.apply(Math,De.map(function(Ar){return Ar.argumentTypes.length})),Dr=function(Ar){var kr=Q.createSymbol(1,e.escapeLeadingUnderscores("arg".concat(Ar)));kr.type=Te(De.map(function(Ke){return Ke.argumentTypes[Ar]||Q.getUndefinedType()})),De.some(function(Ke){return Ke.argumentTypes[Ar]===void 0})&&(kr.flags|=16777216),Ae.push(kr)},br=0;br<Ye;br++)Dr(br);var lr=K(N(De.map(function(Ar){return Ar.return_})));return Q.createSignature(void 0,void 0,void 0,Ae,lr,void 0,Ye,0)}function qe(De,Ae){Ae&&!(Ae.flags&1)&&!(Ae.flags&131072)&&(De.candidateTypes||(De.candidateTypes=[])).push(Ae)}function Xe(De,Ae){Ae&&!(Ae.flags&1)&&!(Ae.flags&131072)&&(De.candidateThisTypes||(De.candidateThisTypes=[])).push(Ae)}}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="fixReturnTypeInAsyncFunction",p=[e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];n.registerCodeFix({errorCodes:p,fixIds:[f],getCodeActions:function(k){var J=k.sourceFile,h=k.program,v=k.span,A=h.getTypeChecker(),z=a(J,h.getTypeChecker(),v.start);if(z){var ie=z.returnTypeNode,b=z.returnType,M=z.promisedTypeNode,S=z.promisedType,B=e.textChanges.ChangeTracker.with(k,function(H){return d(H,J,ie,M)});return[n.createCodeFixAction(f,B,[e.Diagnostics.Replace_0_with_Promise_1,A.typeToString(b),A.typeToString(S)],f,e.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)]}},getAllCodeActions:function(k){return n.codeFixAll(k,p,function(J,h){var v=a(h.file,k.program.getTypeChecker(),h.start);v&&d(J,h.file,v.returnTypeNode,v.promisedTypeNode)})}});function a(k,J,h){if(!e.isInJSFile(k)){var v=e.getTokenAtPosition(k,h),A=e.findAncestor(v,e.isFunctionLikeDeclaration),z=A==null?void 0:A.type;if(z){var ie=J.getTypeFromTypeNode(z),b=J.getAwaitedType(ie)||J.getVoidType(),M=J.typeToTypeNode(b,z,void 0);if(M)return{returnTypeNode:z,returnType:ie,promisedTypeNode:M,promisedType:b}}}}function d(k,J,h,v){k.replaceNode(J,h,e.factory.createTypeReferenceNode("Promise",[v]))}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="disableJsDiagnostics",p="disableJsDiagnostics",a=e.mapDefined(Object.keys(e.Diagnostics),function(k){var J=e.Diagnostics[k];return J.category===e.DiagnosticCategory.Error?J.code:void 0});n.registerCodeFix({errorCodes:a,getCodeActions:function(k){var J=k.sourceFile,h=k.program,v=k.span,A=k.host,z=k.formatContext;if(!(!e.isInJSFile(J)||!e.isCheckJsEnabledForFile(J,h.getCompilerOptions()))){var ie=J.checkJsDirective?"":e.getNewLineOrDefaultFromHost(A,z.options),b=[n.createCodeFixActionWithoutFixAll(f,[n.createFileTextChanges(J.fileName,[e.createTextChange(J.checkJsDirective?e.createTextSpanFromBounds(J.checkJsDirective.pos,J.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck".concat(ie))])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(J,v.start)&&b.unshift(n.createCodeFixAction(f,e.textChanges.ChangeTracker.with(k,function(M){return d(M,J,v.start)}),e.Diagnostics.Ignore_this_error_message,p,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),b}},fixIds:[p],getAllCodeActions:function(k){var J=new e.Set;return n.codeFixAll(k,a,function(h,v){e.textChanges.isValidLocationToAddComment(v.file,v.start)&&d(h,v.file,v.start,J)})}});function d(k,J,h,v){var A=e.getLineAndCharacterOfPosition(J,h).line;(!v||e.tryAddToSet(v,A))&&k.insertCommentBeforeLine(J,A,h," @ts-ignore")}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){function f(q,Z,ne,F,Q,V,re){for(var T=q.symbol.members,N=0,y=Z;N<y.length;N++){var D=y[N];T.has(D.escapedName)||a(D,q,ne,F,Q,V,re,void 0)}}n.createMissingMemberNodes=f;function p(q){return{trackSymbol:function(){return!1},moduleResolverHost:e.getModuleSpecifierResolverHost(q.program,q.host)}}n.getNoopSymbolTrackerWithResolver=p,function(q){q[q.Method=1]="Method",q[q.Property=2]="Property",q[q.All=3]="All"}(n.PreserveOptionalFlags||(n.PreserveOptionalFlags={}));function a(q,Z,ne,F,Q,V,re,T,N,y){N===void 0&&(N=3),y===void 0&&(y=!1);var D=q.getDeclarations();if(!(D&&D.length))return;var C=F.program.getTypeChecker(),m=e.getEmitScriptTarget(F.program.getCompilerOptions()),u=D[0],g=e.getSynthesizedDeepClone(e.getNameOfDeclaration(u),!1),P=M(e.getEffectiveModifierFlags(u)),te=P?e.factory.createNodeArray([P]):void 0,ue=C.getWidenedType(C.getTypeOfSymbolAtLocation(q,Z)),X=!!(q.flags&16777216),j=!!(Z.flags&8388608)||y,Se=e.getQuotePreference(ne,Q);switch(u.kind){case 165:case 166:var Ce=Se===0?268435456:void 0,R=C.typeToTypeNode(ue,Z,Ce,p(F));if(V){var Y=w(R,m);Y&&(R=Y.typeNode,O(V,Y.symbols))}re(e.factory.createPropertyDeclaration(void 0,te,g,X&&N&2?e.factory.createToken(57):void 0,R,void 0));break;case 171:case 172:{var U=C.typeToTypeNode(ue,Z,void 0,p(F)),K=e.getAllAccessorDeclarations(D,u),Te=K.secondAccessor?[K.firstAccessor,K.secondAccessor]:[K.firstAccessor];if(V){var Y=w(U,m);Y&&(U=Y.typeNode,O(V,Y.symbols))}for(var ge=0,ke=Te;ge<ke.length;ge++){var Pe=ke[ge];if(e.isGetAccessorDeclaration(Pe))re(e.factory.createGetAccessorDeclaration(void 0,te,g,e.emptyArray,U,j?void 0:T||ie(Se)));else{e.Debug.assertNode(Pe,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var Ie=e.getSetAccessorValueParameter(Pe),Ge=Ie&&e.isIdentifier(Ie.name)?e.idText(Ie.name):void 0;re(e.factory.createSetAccessorDeclaration(void 0,te,g,h(1,[Ge],[U],1,!1),j?void 0:T||ie(Se)))}}break}case 167:case 168:var he=C.getSignaturesOfType(ue,0);if(!e.some(he))break;if(D.length===1){e.Debug.assert(he.length===1,"One declaration implies one signature");var ve=he[0];Le(Se,ve,te,g,j?void 0:T||ie(Se));break}for(var Ve=0,_e=he;Ve<_e.length;Ve++){var ve=_e[Ve];Le(Se,ve,e.getSynthesizedDeepClones(te,!1),e.getSynthesizedDeepClone(g,!1))}if(!j)if(D.length>he.length){var ve=C.getSignatureFromDeclaration(D[D.length-1]);Le(Se,ve,te,g,T||ie(Se))}else e.Debug.assert(D.length===he.length,"Declarations and signatures should match count"),re(v(C,F,Z,he,g,X&&!!(N&1),te,Se,T));break}function Le(qe,Xe,De,Ae,Ye){var Dr=d(168,F,qe,Xe,Ye,Ae,De,X&&!!(N&1),Z,V);Dr&&re(Dr)}}n.addNewNodeForMemberSymbol=a;function d(q,Z,ne,F,Q,V,re,T,N,y){var D=Z.program,C=D.getTypeChecker(),m=e.getEmitScriptTarget(D.getCompilerOptions()),u=1073742081|(ne===0?268435456:0),g=C.signatureToSignatureDeclaration(F,q,N,u,p(Z));if(g){var P=g.typeParameters,te=g.parameters,ue=g.type;if(y){if(P){var X=e.sameMap(P,function(Y){var U=Y.constraint,K=Y.default;if(U){var Te=w(U,m);Te&&(U=Te.typeNode,O(y,Te.symbols))}if(K){var Te=w(K,m);Te&&(K=Te.typeNode,O(y,Te.symbols))}return e.factory.updateTypeParameterDeclaration(Y,Y.name,U,K)});P!==X&&(P=e.setTextRange(e.factory.createNodeArray(X,P.hasTrailingComma),P))}var j=e.sameMap(te,function(Y){var U=w(Y.type,m),K=Y.type;return U&&(K=U.typeNode,O(y,U.symbols)),e.factory.updateParameterDeclaration(Y,Y.decorators,Y.modifiers,Y.dotDotDotToken,Y.name,Y.questionToken,K,Y.initializer)});if(te!==j&&(te=e.setTextRange(e.factory.createNodeArray(j,te.hasTrailingComma),te)),ue){var Se=w(ue,m);Se&&(ue=Se.typeNode,O(y,Se.symbols))}}var Ce=T?e.factory.createToken(57):void 0,R=g.asteriskToken;if(e.isFunctionExpression(g))return e.factory.updateFunctionExpression(g,re,g.asteriskToken,e.tryCast(V,e.isIdentifier),P,te,ue,Q??g.body);if(e.isArrowFunction(g))return e.factory.updateArrowFunction(g,re,P,te,ue,g.equalsGreaterThanToken,Q??g.body);if(e.isMethodDeclaration(g))return e.factory.updateMethodDeclaration(g,void 0,re,R,V??e.factory.createIdentifier(""),Ce,P,te,ue,Q)}}n.createSignatureDeclarationFromSignature=d;function k(q,Z,ne,F,Q,V,re){var T=e.getQuotePreference(Z.sourceFile,Z.preferences),N=e.getEmitScriptTarget(Z.program.getCompilerOptions()),y=p(Z),D=Z.program.getTypeChecker(),C=e.isInJSFile(re),m=F.typeArguments,u=F.arguments,g=F.parent,P=C?void 0:D.getContextualType(F),te=e.map(u,function(Y){return e.isIdentifier(Y)?Y.text:e.isPropertyAccessExpression(Y)&&e.isIdentifier(Y.name)?Y.name.text:void 0}),ue=C?[]:e.map(u,function(Y){return J(D,ne,D.getBaseTypeOfLiteralType(D.getTypeAtLocation(Y)),re,N,void 0,y)}),X=V?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(V)):void 0,j=e.isYieldExpression(g)?e.factory.createToken(41):void 0,Se=C||m===void 0?void 0:e.map(m,function(Y,U){return e.factory.createTypeParameterDeclaration(84+m.length-1<=90?String.fromCharCode(84+U):"T".concat(U))}),Ce=h(u.length,te,ue,void 0,C),R=C||P===void 0?void 0:D.typeToTypeNode(P,re,void 0,y);return q===168?e.factory.createMethodDeclaration(void 0,X,j,Q,void 0,Se,Ce,R,e.isInterfaceDeclaration(re)?void 0:ie(T)):e.factory.createFunctionDeclaration(void 0,X,j,Q,Se,Ce,R,b(e.Diagnostics.Function_not_implemented.message,T))}n.createSignatureDeclarationFromCallExpression=k;function J(q,Z,ne,F,Q,V,re){var T=q.typeToTypeNode(ne,F,V,re);if(T&&e.isImportTypeNode(T)){var N=w(T,Q);N&&(O(Z,N.symbols),T=N.typeNode)}return e.getSynthesizedDeepClone(T)}n.typeToAutoImportableTypeNode=J;function h(q,Z,ne,F,Q){for(var V=[],re=0;re<q;re++){var T=e.factory.createParameterDeclaration(void 0,void 0,void 0,Z&&Z[re]||"arg".concat(re),F!==void 0&&re>=F?e.factory.createToken(57):void 0,Q?void 0:ne&&ne[re]||e.factory.createKeywordTypeNode(130),void 0);V.push(T)}return V}function v(q,Z,ne,F,Q,V,re,T,N){for(var y=F[0],D=F[0].minArgumentCount,C=!1,m=0,u=F;m<u.length;m++){var g=u[m];D=Math.min(g.minArgumentCount,D),e.signatureHasRestParameter(g)&&(C=!0),g.parameters.length>=y.parameters.length&&(!e.signatureHasRestParameter(g)||e.signatureHasRestParameter(y))&&(y=g)}var P=y.parameters.length-(e.signatureHasRestParameter(y)?1:0),te=y.parameters.map(function(Se){return Se.name}),ue=h(P,te,void 0,D,!1);if(C){var X=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(130)),j=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),te[P]||"rest",P>=D?e.factory.createToken(57):void 0,X,void 0);ue.push(j)}return z(re,Q,V,void 0,ue,A(F,q,Z,ne),T,N)}function A(q,Z,ne,F){if(e.length(q)){var Q=Z.getUnionType(e.map(q,Z.getReturnTypeOfSignature));return Z.typeToTypeNode(Q,F,void 0,p(ne))}}function z(q,Z,ne,F,Q,V,re,T){return e.factory.createMethodDeclaration(void 0,q,void 0,Z,ne?e.factory.createToken(57):void 0,F,Q,V,T||ie(re))}function ie(q){return b(e.Diagnostics.Method_not_implemented.message,q)}function b(q,Z){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(q,Z===0)]))],!0)}n.createStubbedBody=b;function M(q){if(q&4)return e.factory.createToken(123);if(q&16)return e.factory.createToken(122)}function S(q,Z,ne){var F=e.getTsConfigObjectLiteralExpression(Z);if(F){var Q=I(F,"compilerOptions");if(Q===void 0){q.insertNodeAtObjectStart(Z,F,H("compilerOptions",e.factory.createObjectLiteralExpression(ne.map(function(m){var u=m[0],g=m[1];return H(u,g)}),!0)));return}var V=Q.initializer;if(e.isObjectLiteralExpression(V))for(var re=0,T=ne;re<T.length;re++){var N=T[re],y=N[0],D=N[1],C=I(V,y);C===void 0?q.insertNodeAtObjectStart(Z,V,H(y,D)):q.replaceNode(Z,C.initializer,D)}}}n.setJsonCompilerOptionValues=S;function B(q,Z,ne,F){S(q,Z,[[ne,F]])}n.setJsonCompilerOptionValue=B;function H(q,Z){return e.factory.createPropertyAssignment(e.factory.createStringLiteral(q),Z)}n.createJsonPropertyAssignment=H;function I(q,Z){return e.find(q.properties,function(ne){return e.isPropertyAssignment(ne)&&!!ne.name&&e.isStringLiteral(ne.name)&&ne.name.text===Z})}n.findJsonProperty=I;function w(q,Z){var ne,F=e.visitNode(q,Q);if(ne&&F)return{typeNode:F,symbols:ne};function Q(V){var re;if(e.isLiteralImportTypeNode(V)&&V.qualifier){var T=e.getFirstIdentifier(V.qualifier),N=e.getNameForExportedSymbol(T.symbol,Z),y=N!==T.text?x(V.qualifier,e.factory.createIdentifier(N)):V.qualifier;ne=e.append(ne,T.symbol);var D=(re=V.typeArguments)===null||re===void 0?void 0:re.map(Q);return e.factory.createTypeReferenceNode(y,D)}return e.visitEachChild(V,Q,e.nullTransformationContext)}}n.tryGetAutoImportableReferenceFromTypeNode=w;function x(q,Z){return q.kind===79?Z:e.factory.createQualifiedName(x(q.left,Z),q.right)}function O(q,Z){Z.forEach(function(ne){return q.addImportFromExportedSymbol(ne,!0)})}n.importSymbols=O})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){function f(w,x,O,q,Z,ne){var F=v(w,x,O,q);if(!(!F||e.refactor.isRefactorErrorInfo(F))){var Q=e.textChanges.ChangeTracker.fromContext(Z),V=F.isStatic,re=F.isReadonly,T=F.fieldName,N=F.accessorName,y=F.originalName,D=F.type,C=F.container,m=F.declaration;e.suppressLeadingAndTrailingTrivia(T),e.suppressLeadingAndTrailingTrivia(N),e.suppressLeadingAndTrailingTrivia(m),e.suppressLeadingAndTrailingTrivia(C);var u,g;if(e.isClassLike(C)){var P=e.getEffectiveModifierFlags(m);if(e.isSourceFileJS(w)){var te=e.createModifiers(P);u=te,g=te}else u=e.createModifiers(J(P)),g=e.createModifiers(h(P))}M(Q,w,m,D,T,g);var ue=A(T,N,D,u,V,C);if(e.suppressLeadingAndTrailingTrivia(ue),S(Q,w,ue,m,C),re){var X=e.getFirstConstructorWithBody(C);X&&B(Q,w,X,T.text,y)}else{var j=z(T,N,D,u,V,C);e.suppressLeadingAndTrailingTrivia(j),S(Q,w,j,m,C)}return Q.getChanges()}}n.generateAccessorFromProperty=f;function p(w){return e.isIdentifier(w)||e.isStringLiteral(w)}function a(w){return e.isParameterPropertyDeclaration(w,w.parent)||e.isPropertyDeclaration(w)||e.isPropertyAssignment(w)}function d(w,x){return e.isIdentifier(x)?e.factory.createIdentifier(w):e.factory.createStringLiteral(w)}function k(w,x,O){var q=x?O.name:e.factory.createThis();return e.isIdentifier(w)?e.factory.createPropertyAccessExpression(q,w):e.factory.createElementAccessExpression(q,e.factory.createStringLiteralFromNode(w))}function J(w){return w&=-65,w&=-9,w&16||(w|=4),w}function h(w){return w&=-5,w&=-17,w|=8,w}function v(w,x,O,q,Z){Z===void 0&&(Z=!0);var ne=e.getTokenAtPosition(w,O),F=O===q&&Z,Q=e.findAncestor(ne.parent,a),V=124;if(!Q||!(e.nodeOverlapsWithStartEnd(Q.name,w,O,q)||F))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_property_for_which_to_generate_accessor)};if(!p(Q.name))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Name_is_not_valid)};if((e.getEffectiveModifierFlags(Q)|V)!==V)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_property_with_modifier)};var re=Q.name.text,T=e.startsWithUnderscore(re),N=d(T?re:e.getUniqueName("_".concat(re),w),Q.name),y=d(T?e.getUniqueName(re.substring(1),w):re,Q.name);return{isStatic:e.hasStaticModifier(Q),isReadonly:e.hasEffectiveReadonlyModifier(Q),type:H(Q,x),container:Q.kind===163?Q.parent.parent:Q.parent,originalName:Q.name.text,declaration:Q,fieldName:N,accessorName:y,renameAccessor:T}}n.getAccessorConvertiblePropertyAtPosition=v;function A(w,x,O,q,Z,ne){return e.factory.createGetAccessorDeclaration(void 0,q,x,void 0,O,e.factory.createBlock([e.factory.createReturnStatement(k(w,Z,ne))],!0))}function z(w,x,O,q,Z,ne){return e.factory.createSetAccessorDeclaration(void 0,q,x,[e.factory.createParameterDeclaration(void 0,void 0,void 0,e.factory.createIdentifier("value"),void 0,O)],e.factory.createBlock([e.factory.createExpressionStatement(e.factory.createAssignment(k(w,Z,ne),e.factory.createIdentifier("value")))],!0))}function ie(w,x,O,q,Z,ne){var F=e.factory.updatePropertyDeclaration(O,O.decorators,ne,Z,O.questionToken||O.exclamationToken,q,O.initializer);w.replaceNode(x,O,F)}function b(w,x,O,q){var Z=e.factory.updatePropertyAssignment(O,q,O.initializer);w.replacePropertyAssignment(x,O,Z)}function M(w,x,O,q,Z,ne){e.isPropertyDeclaration(O)?ie(w,x,O,q,Z,ne):e.isPropertyAssignment(O)?b(w,x,O,Z):w.replaceNode(x,O,e.factory.updateParameterDeclaration(O,O.decorators,ne,O.dotDotDotToken,e.cast(Z,e.isIdentifier),O.questionToken,O.type,O.initializer))}function S(w,x,O,q,Z){e.isParameterPropertyDeclaration(q,q.parent)?w.insertNodeAtClassStart(x,Z,O):e.isPropertyAssignment(q)?w.insertNodeAfterComma(x,q,O):w.insertNodeAfter(x,q,O)}function B(w,x,O,q,Z){O.body&&O.body.forEachChild(function ne(F){e.isElementAccessExpression(F)&&F.expression.kind===108&&e.isStringLiteral(F.argumentExpression)&&F.argumentExpression.text===Z&&e.isWriteAccess(F)&&w.replaceNode(x,F.argumentExpression,e.factory.createStringLiteral(q)),e.isPropertyAccessExpression(F)&&F.expression.kind===108&&F.name.text===Z&&e.isWriteAccess(F)&&w.replaceNode(x,F.name,e.factory.createIdentifier(q)),!e.isFunctionLike(F)&&!e.isClassLike(F)&&F.forEachChild(ne)})}function H(w,x){var O=e.getTypeAnnotationNode(w);if(e.isPropertyDeclaration(w)&&O&&w.questionToken){var q=x.getTypeChecker(),Z=q.getTypeFromTypeNode(O);if(!q.isTypeAssignableTo(q.getUndefinedType(),Z)){var ne=e.isUnionTypeNode(O)?O.types:[O];return e.factory.createUnionTypeNode(Gt(Gt([],ne,!0),[e.factory.createKeywordTypeNode(152)],!1))}}return O}function I(w,x){for(var O=[];w;){var q=e.getClassExtendsHeritageElement(w),Z=q&&x.getSymbolAtLocation(q.expression);if(!Z)break;var ne=Z.flags&2097152?x.getAliasedSymbol(Z):Z,F=ne.declarations&&e.find(ne.declarations,e.isClassLike);if(!F)break;O.push(F),w=F}return O}n.getAllSupers=I})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="invalidImportSyntax";function p(h,v){var A=e.getSourceFileOfNode(v),z=e.getNamespaceDeclarationNode(v),ie=h.program.getCompilerOptions(),b=[];return b.push(a(h,A,v,e.makeImport(z.name,void 0,v.moduleSpecifier,e.getQuotePreference(A,h.preferences)))),e.getEmitModuleKind(ie)===e.ModuleKind.CommonJS&&b.push(a(h,A,v,e.factory.createImportEqualsDeclaration(void 0,void 0,!1,z.name,e.factory.createExternalModuleReference(v.moduleSpecifier)))),b}function a(h,v,A,z){var ie=e.textChanges.ChangeTracker.with(h,function(b){return b.replaceNode(v,A,z)});return n.createCodeFixActionWithoutFixAll(f,ie,[e.Diagnostics.Replace_import_with_0,ie[0].textChanges[0].newText])}n.registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],getCodeActions:d});function d(h){var v=h.sourceFile,A=e.Diagnostics.This_expression_is_not_callable.code===h.errorCode?207:208,z=e.findAncestor(e.getTokenAtPosition(v,h.span.start),function(b){return b.kind===A});if(!z)return[];var ie=z.expression;return J(h,ie)}n.registerCodeFix({errorCodes:[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:k});function k(h){var v=h.sourceFile,A=e.findAncestor(e.getTokenAtPosition(v,h.span.start),function(z){return z.getStart()===h.span.start&&z.getEnd()===h.span.start+h.span.length});return A?J(h,A):[]}function J(h,v){var A=h.program.getTypeChecker().getTypeAtLocation(v);if(!(A.symbol&&A.symbol.originatingImport))return[];var z=[],ie=A.symbol.originatingImport;if(e.isImportCall(ie)||e.addRange(z,p(h,ie)),e.isExpression(v)&&!(e.isNamedDeclaration(v.parent)&&v.parent.name===v)){var b=h.sourceFile,M=e.textChanges.ChangeTracker.with(h,function(S){return S.replaceNode(b,v,e.factory.createPropertyAccessExpression(v,"default"),{})});z.push(n.createCodeFixActionWithoutFixAll(f,M,e.Diagnostics.Use_synthetic_default_member))}return z}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="strictClassInitialization",p="addMissingPropertyDefiniteAssignmentAssertions",a="addMissingPropertyUndefinedType",d="addMissingPropertyInitializer",k=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];n.registerCodeFix({errorCodes:k,getCodeActions:function(B){var H=J(B.sourceFile,B.span.start);if(H){var I=[A(B,H),h(B,H)];return e.append(I,ie(B,H)),I}},fixIds:[p,a,d],getAllCodeActions:function(B){return n.codeFixAll(B,k,function(H,I){var w=J(I.file,I.start);if(w)switch(B.fixId){case p:v(H,I.file,w);break;case a:z(H,I.file,w);break;case d:var x=B.program.getTypeChecker(),O=M(x,w);if(!O)return;b(H,I.file,w,O);break;default:e.Debug.fail(JSON.stringify(B.fixId))}})}});function J(B,H){var I=e.getTokenAtPosition(B,H);return e.isIdentifier(I)?e.cast(I.parent,e.isPropertyDeclaration):void 0}function h(B,H){var I=e.textChanges.ChangeTracker.with(B,function(w){return v(w,B.sourceFile,H)});return n.createCodeFixAction(f,I,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,H.getText()],p,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function v(B,H,I){var w=e.factory.updatePropertyDeclaration(I,I.decorators,I.modifiers,I.name,e.factory.createToken(53),I.type,I.initializer);B.replaceNode(H,I,w)}function A(B,H){var I=e.textChanges.ChangeTracker.with(B,function(w){return z(w,B.sourceFile,H)});return n.createCodeFixAction(f,I,[e.Diagnostics.Add_undefined_type_to_property_0,H.name.getText()],a,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)}function z(B,H,I){var w=e.factory.createKeywordTypeNode(152),x=I.type,O=e.isUnionTypeNode(x)?x.types.concat(w):[x,w];B.replaceNode(H,x,e.factory.createUnionTypeNode(O))}function ie(B,H){var I=B.program.getTypeChecker(),w=M(I,H);if(w){var x=e.textChanges.ChangeTracker.with(B,function(O){return b(O,B.sourceFile,H,w)});return n.createCodeFixAction(f,x,[e.Diagnostics.Add_initializer_to_property_0,H.name.getText()],d,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}}function b(B,H,I,w){var x=e.factory.updatePropertyDeclaration(I,I.decorators,I.modifiers,I.name,I.questionToken,I.type,w);B.replaceNode(H,I,x)}function M(B,H){return S(B,B.getTypeFromTypeNode(H.type))}function S(B,H){if(H.flags&512)return H===B.getFalseType()||H===B.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(H.isStringLiteral())return e.factory.createStringLiteral(H.value);if(H.isNumberLiteral())return e.factory.createNumericLiteral(H.value);if(H.flags&2048)return e.factory.createBigIntLiteral(H.value);if(H.isUnion())return e.firstDefined(H.types,function(x){return S(B,x)});if(H.isClass()){var I=e.getClassLikeDeclarationOfSymbol(H.symbol);if(!I||e.hasSyntacticModifier(I,128))return;var w=e.getFirstConstructorWithBody(I);return w&&w.parameters.length?void 0:e.factory.createNewExpression(e.factory.createIdentifier(H.symbol.name),void 0,void 0)}else if(B.isArrayLikeType(H))return e.factory.createArrayLiteralExpression()}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="requireInTs",p=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(J){var h=d(J.sourceFile,J.program,J.span.start);if(h){var v=e.textChanges.ChangeTracker.with(J,function(A){return a(A,J.sourceFile,h)});return[n.createCodeFixAction(f,v,e.Diagnostics.Convert_require_to_import,f,e.Diagnostics.Convert_all_require_to_import)]}},fixIds:[f],getAllCodeActions:function(J){return n.codeFixAll(J,p,function(h,v){var A=d(v.file,J.program,v.start);A&&a(h,J.sourceFile,A)})}});function a(J,h,v){var A=v.allowSyntheticDefaults,z=v.defaultImportName,ie=v.namedImports,b=v.statement,M=v.required;J.replaceNode(h,b,z&&!A?e.factory.createImportEqualsDeclaration(void 0,void 0,!1,z,e.factory.createExternalModuleReference(M)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,z,ie),M,void 0))}function d(J,h,v){var A=e.getTokenAtPosition(J,v).parent;if(!e.isRequireCall(A,!0))throw e.Debug.failBadSyntaxKind(A);var z=e.cast(A.parent,e.isVariableDeclaration),ie=e.tryCast(z.name,e.isIdentifier),b=e.isObjectBindingPattern(z.name)?k(z.name):void 0;if(ie||b)return{allowSyntheticDefaults:e.getAllowSyntheticDefaultImports(h.getCompilerOptions()),defaultImportName:ie,namedImports:b,statement:e.cast(z.parent.parent,e.isVariableStatement),required:e.first(A.arguments)}}function k(J){for(var h=[],v=0,A=J.elements;v<A.length;v++){var z=A[v];if(!e.isIdentifier(z.name)||z.initializer)return;h.push(e.factory.createImportSpecifier(!1,e.tryCast(z.propertyName,e.isIdentifier),z.name))}if(h.length)return e.factory.createNamedImports(h)}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="useDefaultImport",p=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(k){var J=k.sourceFile,h=k.span.start,v=a(J,h);if(v){var A=e.textChanges.ChangeTracker.with(k,function(z){return d(z,J,v,k.preferences)});return[n.createCodeFixAction(f,A,e.Diagnostics.Convert_to_default_import,f,e.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[f],getAllCodeActions:function(k){return n.codeFixAll(k,p,function(J,h){var v=a(h.file,h.start);v&&d(J,h.file,v,k.preferences)})}});function a(k,J){var h=e.getTokenAtPosition(k,J);if(e.isIdentifier(h)){var v=h.parent;if(e.isImportEqualsDeclaration(v)&&e.isExternalModuleReference(v.moduleReference))return{importNode:v,name:h,moduleSpecifier:v.moduleReference.expression};if(e.isNamespaceImport(v)){var A=v.parent.parent;return{importNode:A,name:h,moduleSpecifier:A.moduleSpecifier}}}}function d(k,J,h,v){k.replaceNode(J,h.importNode,e.makeImport(h.name,void 0,h.moduleSpecifier,e.getQuotePreference(J,v)))}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="useBigintLiteral",p=[e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(d){var k=e.textChanges.ChangeTracker.with(d,function(J){return a(J,d.sourceFile,d.span)});if(k.length>0)return[n.createCodeFixAction(f,k,e.Diagnostics.Convert_to_a_bigint_numeric_literal,f,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[f],getAllCodeActions:function(d){return n.codeFixAll(d,p,function(k,J){return a(k,J.file,J)})}});function a(d,k,J){var h=e.tryCast(e.getTokenAtPosition(k,J.start),e.isNumericLiteral);if(h){var v=h.getText(k)+"n";d.replaceNode(k,h,e.factory.createBigIntLiteral(v))}}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="fixAddModuleReferTypeMissingTypeof",p=f,a=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];n.registerCodeFix({errorCodes:a,getCodeActions:function(J){var h=J.sourceFile,v=J.span,A=d(h,v.start),z=e.textChanges.ChangeTracker.with(J,function(ie){return k(ie,h,A)});return[n.createCodeFixAction(p,z,e.Diagnostics.Add_missing_typeof,p,e.Diagnostics.Add_missing_typeof)]},fixIds:[p],getAllCodeActions:function(J){return n.codeFixAll(J,a,function(h,v){return k(h,J.sourceFile,d(v.file,v.start))})}});function d(J,h){var v=e.getTokenAtPosition(J,h);return e.Debug.assert(v.kind===100,"This token should be an ImportKeyword"),e.Debug.assert(v.parent.kind===199,"Token parent should be an ImportType"),v.parent}function k(J,h,v){var A=e.factory.updateImportTypeNode(v,v.argument,v.qualifier,v.typeArguments,!0);J.replaceNode(h,v,A)}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="wrapJsxInFragment",p=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(J){var h=J.sourceFile,v=J.span,A=a(h,v.start);if(A){var z=e.textChanges.ChangeTracker.with(J,function(ie){return d(ie,h,A)});return[n.createCodeFixAction(f,z,e.Diagnostics.Wrap_in_JSX_fragment,f,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[f],getAllCodeActions:function(J){return n.codeFixAll(J,p,function(h,v){var A=a(J.sourceFile,v.start);A&&d(h,J.sourceFile,A)})}});function a(J,h){var v=e.getTokenAtPosition(J,h),A=v.parent,z=A.parent;if(!(!e.isBinaryExpression(z)&&(z=z.parent,!e.isBinaryExpression(z)))&&e.nodeIsMissing(z.operatorToken))return z}function d(J,h,v){var A=k(v);A&&J.replaceNode(h,v,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),A,e.factory.createJsxJsxClosingFragment()))}function k(J){for(var h=[],v=J;;)if(e.isBinaryExpression(v)&&e.nodeIsMissing(v.operatorToken)&&v.operatorToken.kind===27){if(h.push(v.left),e.isJsxChild(v.right))return h.push(v.right),h;if(e.isBinaryExpression(v.right)){v=v.right;continue}else return}else return}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="fixConvertToMappedObjectType",p=f,a=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];n.registerCodeFix({errorCodes:a,getCodeActions:function(h){var v=h.sourceFile,A=h.span,z=d(v,A.start);if(z){var ie=e.textChanges.ChangeTracker.with(h,function(M){return J(M,v,z)}),b=e.idText(z.container.name);return[n.createCodeFixAction(p,ie,[e.Diagnostics.Convert_0_to_mapped_object_type,b],p,[e.Diagnostics.Convert_0_to_mapped_object_type,b])]}},fixIds:[p],getAllCodeActions:function(h){return n.codeFixAll(h,a,function(v,A){var z=d(A.file,A.start);z&&J(v,A.file,z)})}});function d(h,v){var A=e.getTokenAtPosition(h,v),z=e.cast(A.parent.parent,e.isIndexSignatureDeclaration);if(!e.isClassDeclaration(z.parent)){var ie=e.isInterfaceDeclaration(z.parent)?z.parent:e.cast(z.parent.parent,e.isTypeAliasDeclaration);return{indexSignature:z,container:ie}}}function k(h,v){return e.factory.createTypeAliasDeclaration(h.decorators,h.modifiers,h.name,h.typeParameters,v)}function J(h,v,A){var z=A.indexSignature,ie=A.container,b=e.isInterfaceDeclaration(ie)?ie.members:ie.type.members,M=b.filter(function(w){return!e.isIndexSignatureDeclaration(w)}),S=e.first(z.parameters),B=e.factory.createTypeParameterDeclaration(e.cast(S.name,e.isIdentifier),S.type),H=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(z)?e.factory.createModifier(144):void 0,B,void 0,z.questionToken,z.type,void 0),I=e.factory.createIntersectionTypeNode(Gt(Gt(Gt([],e.getAllSuperTypeNodes(ie),!0),[H],!1),M.length?[e.factory.createTypeLiteralNode(M)]:e.emptyArray,!0));h.replaceNode(v,ie,k(ie,I))}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="removeAccidentalCallParentheses",p=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(a){var d=e.findAncestor(e.getTokenAtPosition(a.sourceFile,a.span.start),e.isCallExpression);if(d){var k=e.textChanges.ChangeTracker.with(a,function(J){J.deleteRange(a.sourceFile,{pos:d.expression.end,end:d.end})});return[n.createCodeFixActionWithoutFixAll(f,k,e.Diagnostics.Remove_parentheses)]}},fixIds:[f]})})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="removeUnnecessaryAwait",p=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(d){var k=e.textChanges.ChangeTracker.with(d,function(J){return a(J,d.sourceFile,d.span)});if(k.length>0)return[n.createCodeFixAction(f,k,e.Diagnostics.Remove_unnecessary_await,f,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[f],getAllCodeActions:function(d){return n.codeFixAll(d,p,function(k,J){return a(k,J.file,J)})}});function a(d,k,J){var h=e.tryCast(e.getTokenAtPosition(k,J.start),function(M){return M.kind===132}),v=h&&e.tryCast(h.parent,e.isAwaitExpression);if(v){var A=v,z=e.isParenthesizedExpression(v.parent);if(z){var ie=e.getLeftmostExpression(v.expression,!1);if(e.isIdentifier(ie)){var b=e.findPrecedingToken(v.parent.pos,k);b&&b.kind!==103&&(A=v.parent)}}d.replaceNode(k,A,v.expression)}}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],p="splitTypeOnlyImport";n.registerCodeFix({errorCodes:f,fixIds:[p],getCodeActions:function(k){var J=e.textChanges.ChangeTracker.with(k,function(h){return d(h,a(k.sourceFile,k.span),k)});if(J.length)return[n.createCodeFixAction(p,J,e.Diagnostics.Split_into_two_separate_import_declarations,p,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(k){return n.codeFixAll(k,f,function(J,h){d(J,a(k.sourceFile,h),k)})}});function a(k,J){return e.findAncestor(e.getTokenAtPosition(k,J.start),e.isImportDeclaration)}function d(k,J,h){if(J){var v=e.Debug.checkDefined(J.importClause);k.replaceNode(h.sourceFile,J,e.factory.updateImportDeclaration(J,J.decorators,J.modifiers,e.factory.updateImportClause(v,v.isTypeOnly,v.name,void 0),J.moduleSpecifier,J.assertClause)),k.insertNodeAfter(h.sourceFile,J,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(v,v.isTypeOnly,void 0,v.namedBindings),J.moduleSpecifier,J.assertClause))}}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="fixConvertConstToLet",p=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];n.registerCodeFix({errorCodes:p,getCodeActions:function(k){var J=k.sourceFile,h=k.span,v=k.program,A=a(J,h.start,v);if(A!==void 0){var z=e.textChanges.ChangeTracker.with(k,function(ie){return d(ie,J,A)});return[n.createCodeFixAction(f,z,e.Diagnostics.Convert_const_to_let,f,e.Diagnostics.Convert_const_to_let)]}},fixIds:[f]});function a(k,J,h){var v,A=h.getTypeChecker(),z=A.getSymbolAtLocation(e.getTokenAtPosition(k,J)),ie=e.tryCast((v=z==null?void 0:z.valueDeclaration)===null||v===void 0?void 0:v.parent,e.isVariableDeclarationList);if(ie!==void 0){var b=e.findChildOfKind(ie,85,k);if(b!==void 0)return e.createRange(b.pos,b.end)}}function d(k,J,h){k.replaceRangeWithText(J,h,"let")}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="fixExpectedComma",p=e.Diagnostics._0_expected.code,a=[p];n.registerCodeFix({errorCodes:a,getCodeActions:function(J){var h=J.sourceFile,v=d(h,J.span.start,J.errorCode);if(v){var A=e.textChanges.ChangeTracker.with(J,function(z){return k(z,h,v)});return[n.createCodeFixAction(f,A,[e.Diagnostics.Change_0_to_1,";",","],f,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[f],getAllCodeActions:function(J){return n.codeFixAll(J,a,function(h,v){var A=d(v.file,v.start,v.code);A&&k(h,J.sourceFile,A)})}});function d(J,h,v){var A=e.getTokenAtPosition(J,h);return A.kind===26&&A.parent&&(e.isObjectLiteralExpression(A.parent)||e.isArrayLiteralExpression(A.parent))?{node:A}:void 0}function k(J,h,v){var A=v.node,z=e.factory.createToken(27);J.replaceNode(h,A,z)}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="addVoidToPromise",p="addVoidToPromise",a=[e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];n.registerCodeFix({errorCodes:a,fixIds:[p],getCodeActions:function(J){var h=e.textChanges.ChangeTracker.with(J,function(v){return d(v,J.sourceFile,J.span,J.program)});if(h.length>0)return[n.createCodeFixAction(f,h,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,p,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(J){return n.codeFixAll(J,a,function(h,v){return d(h,v.file,v,J.program,new e.Set)})}});function d(J,h,v,A,z){var ie=e.getTokenAtPosition(h,v.start);if(!(!e.isIdentifier(ie)||!e.isCallExpression(ie.parent)||ie.parent.expression!==ie||ie.parent.arguments.length!==0)){var b=A.getTypeChecker(),M=b.getSymbolAtLocation(ie),S=M==null?void 0:M.valueDeclaration;if(!(!S||!e.isParameter(S)||!e.isNewExpression(S.parent.parent))&&!(z!=null&&z.has(S))){z==null||z.add(S);var B=k(S.parent.parent);if(e.some(B)){var H=B[0],I=!e.isUnionTypeNode(H)&&!e.isParenthesizedTypeNode(H)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([H,e.factory.createKeywordTypeNode(114)]).types[0]);I&&J.insertText(h,H.pos,"("),J.insertText(h,H.end,I?") | void":" | void")}else{var w=b.getResolvedSignature(ie.parent),x=w==null?void 0:w.parameters[0],O=x&&b.getTypeOfSymbolAtLocation(x,S.parent.parent);e.isInJSFile(S)?(!O||O.flags&3)&&(J.insertText(h,S.parent.parent.end,")"),J.insertText(h,e.skipTrivia(h.text,S.parent.parent.pos),"/** @type {Promise<void>} */(")):(!O||O.flags&2)&&J.insertText(h,S.parent.parent.expression.end,"<void>")}}}}function k(J){var h;if(e.isInJSFile(J)){if(e.isParenthesizedExpression(J.parent)){var v=(h=e.getJSDocTypeTag(J.parent))===null||h===void 0?void 0:h.typeExpression.type;if(v&&e.isTypeReferenceNode(v)&&e.isIdentifier(v.typeName)&&e.idText(v.typeName)==="Promise")return v.typeArguments}}else return J.typeArguments}})(e.codefix||(e.codefix={}))}(jr||(jr={})),function(e){(function(n){var f="Convert export",p={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},a={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};n.registerRefactor(f,{kinds:[p.kind,a.kind],getAvailableActions:function(b){var M=d(b,b.triggerReason==="invoked");if(!M)return e.emptyArray;if(!n.isRefactorErrorInfo(M)){var S=M.wasDefault?p:a;return[{name:f,description:S.description,actions:[S]}]}return b.preferences.provideRefactorNotApplicableReason?[{name:f,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[Rn(Rn({},p),{notApplicableReason:M.error}),Rn(Rn({},a),{notApplicableReason:M.error})]}]:e.emptyArray},getEditsForAction:function(b,M){e.Debug.assert(M===p.name||M===a.name,"Unexpected action name");var S=d(b);e.Debug.assert(S&&!n.isRefactorErrorInfo(S),"Expected applicable refactor info");var B=e.textChanges.ChangeTracker.with(b,function(H){return k(b.file,b.program,S,H,b.cancellationToken)});return{edits:B,renameFilename:void 0,renameLocation:void 0}}});function d(b,M){M===void 0&&(M=!0);var S=b.file,B=b.program,H=e.getRefactorContextSpan(b),I=e.getTokenAtPosition(S,H.start),w=I.parent&&e.getSyntacticModifierFlags(I.parent)&1&&M?I.parent:e.getParentNodeInSpan(I,S,H);if(!w||!e.isSourceFile(w.parent)&&!(e.isModuleBlock(w.parent)&&e.isAmbientModule(w.parent.parent)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var x=e.isSourceFile(w.parent)?w.parent.symbol:w.parent.parent.symbol,O=e.getSyntacticModifierFlags(w)||(e.isExportAssignment(w)&&!w.isExportEquals?513:0),q=!!(O&512);if(!(O&1)||!q&&x.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var Z=B.getTypeChecker(),ne=function(re){return e.isIdentifier(re)&&Z.getSymbolAtLocation(re)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)}};switch(w.kind){case 255:case 256:case 257:case 259:case 258:case 260:{var F=w;return F.name?ne(F.name)||{exportNode:F,exportName:F.name,wasDefault:q,exportingModuleSymbol:x}:void 0}case 236:{var Q=w;if(!(Q.declarationList.flags&2)||Q.declarationList.declarations.length!==1)return;var V=e.first(Q.declarationList.declarations);return V.initializer?(e.Debug.assert(!q,"Can't have a default flag here"),ne(V.name)||{exportNode:Q,exportName:V.name,wasDefault:q,exportingModuleSymbol:x}):void 0}case 270:{var F=w;return F.isExportEquals?void 0:ne(F.expression)||{exportNode:F,exportName:F.expression,wasDefault:q,exportingModuleSymbol:x}}default:return}}function k(b,M,S,B,H){J(b,S,B,M.getTypeChecker()),h(M,S,B,H)}function J(b,M,S,B){var H=M.wasDefault,I=M.exportNode,w=M.exportName;if(H)if(e.isExportAssignment(I)&&!I.isExportEquals){var x=I.expression,O=ie(x.text,x.text);S.replaceNode(b,I,e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([O])))}else S.delete(b,e.Debug.checkDefined(e.findModifier(I,88),"Should find a default keyword in modifier list"));else{var q=e.Debug.checkDefined(e.findModifier(I,93),"Should find an export keyword in modifier list");switch(I.kind){case 255:case 256:case 257:S.insertNodeAfter(b,q,e.factory.createToken(88));break;case 236:var Z=e.first(I.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(w,B,b)&&!Z.type){S.replaceNode(b,I,e.factory.createExportDefault(e.Debug.checkDefined(Z.initializer,"Initializer was previously known to be present")));break}case 259:case 258:case 260:S.deleteModifier(b,q),S.insertNodeAfter(b,I,e.factory.createExportDefault(e.factory.createIdentifier(w.text)));break;default:e.Debug.fail("Unexpected exportNode kind ".concat(I.kind))}}}function h(b,M,S,B){var H=M.wasDefault,I=M.exportName,w=M.exportingModuleSymbol,x=b.getTypeChecker(),O=e.Debug.checkDefined(x.getSymbolAtLocation(I),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(b.getSourceFiles(),x,B,O,w,I.text,H,function(q){var Z=q.getSourceFile();H?v(Z,q,S,I.text):A(Z,q,S)})}function v(b,M,S,B){var H=M.parent;switch(H.kind){case 205:S.replaceNode(b,M,e.factory.createIdentifier(B));break;case 269:case 274:{var I=H;S.replaceNode(b,I,z(B,I.name.text));break}case 266:{var w=H;e.Debug.assert(w.name===M,"Import clause name should match provided ref");var I=z(B,M.text),x=w.namedBindings;if(!x)S.replaceNode(b,M,e.factory.createNamedImports([I]));else if(x.kind===267){S.deleteRange(b,{pos:M.getStart(b),end:x.getStart(b)});var O=e.isStringLiteral(w.parent.moduleSpecifier)?e.quotePreferenceFromString(w.parent.moduleSpecifier,b):1,q=e.makeImport(void 0,[z(B,M.text)],w.parent.moduleSpecifier,O);S.insertNodeAfter(b,w.parent,q)}else S.delete(b,M),S.insertNodeAtEndOfList(b,x.elements,I);break}default:e.Debug.failBadSyntaxKind(H)}}function A(b,M,S){var B=M.parent;switch(B.kind){case 205:S.replaceNode(b,M,e.factory.createIdentifier("default"));break;case 269:{var H=e.factory.createIdentifier(B.name.text);B.parent.elements.length===1?S.replaceNode(b,B.parent,H):(S.delete(b,B),S.insertNodeBefore(b,B.parent,H));break}case 274:{S.replaceNode(b,B,ie("default",B.name.text));break}default:e.Debug.assertNever(B,"Unexpected parent kind ".concat(B.kind))}}function z(b,M){return e.factory.createImportSpecifier(!1,b===M?void 0:e.factory.createIdentifier(b),e.factory.createIdentifier(M))}function ie(b,M){return e.factory.createExportSpecifier(!1,b===M?void 0:e.factory.createIdentifier(b),e.factory.createIdentifier(M))}})(e.refactor||(e.refactor={}))}(jr||(jr={})),function(e){(function(n){var f="Convert import",p={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},a={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"};n.registerRefactor(f,{kinds:[p.kind,a.kind],getAvailableActions:function(ie){var b=d(ie,ie.triggerReason==="invoked");if(!b)return e.emptyArray;if(!n.isRefactorErrorInfo(b)){var M=b.kind===267,S=M?p:a;return[{name:f,description:S.description,actions:[S]}]}return ie.preferences.provideRefactorNotApplicableReason?[{name:f,description:p.description,actions:[Rn(Rn({},p),{notApplicableReason:b.error})]},{name:f,description:a.description,actions:[Rn(Rn({},a),{notApplicableReason:b.error})]}]:e.emptyArray},getEditsForAction:function(ie,b){e.Debug.assert(b===p.name||b===a.name,"Unexpected action name");var M=d(ie);e.Debug.assert(M&&!n.isRefactorErrorInfo(M),"Expected applicable refactor info");var S=e.textChanges.ChangeTracker.with(ie,function(B){return k(ie.file,ie.program,B,M)});return{edits:S,renameFilename:void 0,renameLocation:void 0}}});function d(ie,b){b===void 0&&(b=!0);var M=ie.file,S=e.getRefactorContextSpan(ie),B=e.getTokenAtPosition(M,S.start),H=b?e.findAncestor(B,e.isImportDeclaration):e.getParentNodeInSpan(B,M,S);if(!H||!e.isImportDeclaration(H))return{error:"Selection is not an import declaration."};var I=S.start+S.length,w=e.findNextToken(H,H.parent,M);if(!(w&&I>w.getStart())){var x=H.importClause;return x?x.namedBindings?x.namedBindings:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_namespace_import_or_named_imports)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_import_clause)}}}function k(ie,b,M,S){var B=b.getTypeChecker();S.kind===267?J(ie,B,M,S,e.getAllowSyntheticDefaultImports(b.getCompilerOptions())):A(ie,B,M,S)}function J(ie,b,M,S,B){var H=!1,I=[],w=new e.Map;e.FindAllReferences.Core.eachSymbolReferenceInFile(S.name,b,ie,function(re){if(!e.isPropertyAccessOrQualifiedName(re.parent))H=!0;else{var T=h(re.parent).text;b.resolveName(T,re,67108863,!0)&&w.set(T,!0),e.Debug.assert(v(re.parent)===re,"Parent expression should match id"),I.push(re.parent)}});for(var x=new e.Map,O=0,q=I;O<q.length;O++){var Z=q[O],ne=h(Z).text,F=x.get(ne);F===void 0&&x.set(ne,F=w.has(ne)?e.getUniqueName(ne,ie):ne),M.replaceNode(ie,Z,e.factory.createIdentifier(F))}var Q=[];x.forEach(function(re,T){Q.push(e.factory.createImportSpecifier(!1,re===T?void 0:e.factory.createIdentifier(T),e.factory.createIdentifier(re)))});var V=S.parent.parent;H&&!B?M.insertNodeAfter(ie,V,z(V,void 0,Q)):M.replaceNode(ie,V,z(V,H?e.factory.createIdentifier(S.name.text):void 0,Q))}function h(ie){return e.isPropertyAccessExpression(ie)?ie.name:ie.right}function v(ie){return e.isPropertyAccessExpression(ie)?ie.expression:ie.left}function A(ie,b,M,S){var B=S.parent.parent,H=B.moduleSpecifier,I=new e.Set;S.elements.forEach(function(T){var N=b.getSymbolAtLocation(T.name);N&&I.add(N)});var w=H&&e.isStringLiteral(H)?e.codefix.moduleSpecifierToValidIdentifier(H.text,99):"module";function x(T){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(T.name,b,ie,function(N){var y=b.resolveName(w,N,67108863,!0);return y?I.has(y)?e.isExportSpecifier(N.parent):!0:!1})}for(var O=S.elements.some(x),q=O?e.getUniqueName(w,ie):w,Z=new e.Set,ne=function(T){var N=(T.propertyName||T.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(T.name,b,ie,function(y){var D=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(q),N);e.isShorthandPropertyAssignment(y.parent)?M.replaceNode(ie,y.parent,e.factory.createPropertyAssignment(y.text,D)):e.isExportSpecifier(y.parent)?Z.add(T):M.replaceNode(ie,y,D)})},F=0,Q=S.elements;F<Q.length;F++){var V=Q[F];ne(V)}if(M.replaceNode(ie,S,e.factory.createNamespaceImport(e.factory.createIdentifier(q))),Z.size){var re=e.arrayFrom(Z.values()).map(function(T){return e.factory.createImportSpecifier(T.isTypeOnly,T.propertyName&&e.factory.createIdentifier(T.propertyName.text),e.factory.createIdentifier(T.name.text))});M.insertNodeAfter(ie,S.parent.parent,z(B,void 0,re))}}function z(ie,b,M){return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,b,M&&M.length?e.factory.createNamedImports(M):void 0),ie.moduleSpecifier,void 0)}})(e.refactor||(e.refactor={}))}(jr||(jr={})),function(e){(function(n){(function(f){var p="Convert to optional chain expression",a=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_optional_chain_expression),d={name:p,description:a,kind:"refactor.rewrite.expression.optionalChain"};n.registerRefactor(p,{kinds:[d.kind],getAvailableActions:k,getEditsForAction:J});function k(ne){var F=z(ne,ne.triggerReason==="invoked");return F?n.isRefactorErrorInfo(F)?ne.preferences.provideRefactorNotApplicableReason?[{name:p,description:a,actions:[Rn(Rn({},d),{notApplicableReason:F.error})]}]:e.emptyArray:[{name:p,description:a,actions:[d]}]:e.emptyArray}function J(ne,F){var Q=z(ne);e.Debug.assert(Q&&!n.isRefactorErrorInfo(Q),"Expected applicable refactor info");var V=e.textChanges.ChangeTracker.with(ne,function(re){return Z(ne.file,ne.program.getTypeChecker(),re,Q)});return{edits:V,renameFilename:void 0,renameLocation:void 0}}function h(ne){return e.isBinaryExpression(ne)||e.isConditionalExpression(ne)}function v(ne){return e.isExpressionStatement(ne)||e.isReturnStatement(ne)||e.isVariableStatement(ne)}function A(ne){return h(ne)||v(ne)}function z(ne,F){F===void 0&&(F=!0);var Q=ne.file,V=ne.program,re=e.getRefactorContextSpan(ne),T=re.length===0;if(!(T&&!F)){var N=e.getTokenAtPosition(Q,re.start),y=e.findTokenOnLeftOfPosition(Q,re.start+re.length),D=e.createTextSpanFromBounds(N.pos,y&&y.end>=N.pos?y.getEnd():N.getEnd()),C=T?w(N):I(N,D),m=C&&A(C)?x(C):void 0;if(!m)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var u=V.getTypeChecker();return e.isConditionalExpression(m)?ie(m,u):b(m)}}function ie(ne,F){var Q=ne.condition,V=O(ne.whenTrue);if(!V||F.isNullableType(F.getTypeAtLocation(V)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(Q)||e.isIdentifier(Q))&&S(Q,V.expression))return{finalExpression:V,occurrences:[Q],expression:ne};if(e.isBinaryExpression(Q)){var re=M(V.expression,Q);return re?{finalExpression:V,occurrences:re,expression:ne}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}function b(ne){if(ne.operatorToken.kind!==55)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var F=O(ne.right);if(!F)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var Q=M(F.expression,ne.left);return Q?{finalExpression:F,occurrences:Q,expression:ne}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}function M(ne,F){for(var Q=[];e.isBinaryExpression(F)&&F.operatorToken.kind===55;){var V=S(e.skipParentheses(ne),e.skipParentheses(F.right));if(!V)break;Q.push(V),ne=V,F=F.left}var re=S(ne,F);return re&&Q.push(re),Q.length>0?Q:void 0}function S(ne,F){if(!(!e.isIdentifier(F)&&!e.isPropertyAccessExpression(F)&&!e.isElementAccessExpression(F)))return B(ne,F)?F:void 0}function B(ne,F){for(;(e.isCallExpression(ne)||e.isPropertyAccessExpression(ne)||e.isElementAccessExpression(ne))&&H(ne)!==H(F);)ne=ne.expression;for(;e.isPropertyAccessExpression(ne)&&e.isPropertyAccessExpression(F)||e.isElementAccessExpression(ne)&&e.isElementAccessExpression(F);){if(H(ne)!==H(F))return!1;ne=ne.expression,F=F.expression}return e.isIdentifier(ne)&&e.isIdentifier(F)&&ne.getText()===F.getText()}function H(ne){if(e.isIdentifier(ne)||e.isStringOrNumericLiteralLike(ne))return ne.getText();if(e.isPropertyAccessExpression(ne))return H(ne.name);if(e.isElementAccessExpression(ne))return H(ne.argumentExpression)}function I(ne,F){for(;ne.parent;){if(A(ne)&&F.length!==0&&ne.end>=F.start+F.length)return ne;ne=ne.parent}}function w(ne){for(;ne.parent;){if(A(ne)&&!A(ne.parent))return ne;ne=ne.parent}}function x(ne){if(h(ne))return ne;if(e.isVariableStatement(ne)){var F=e.getSingleVariableOfVariableStatement(ne),Q=F==null?void 0:F.initializer;return Q&&h(Q)?Q:void 0}return ne.expression&&h(ne.expression)?ne.expression:void 0}function O(ne){if(ne=e.skipParentheses(ne),e.isBinaryExpression(ne))return O(ne.left);if((e.isPropertyAccessExpression(ne)||e.isElementAccessExpression(ne)||e.isCallExpression(ne))&&!e.isOptionalChain(ne))return ne}function q(ne,F,Q){if(e.isPropertyAccessExpression(F)||e.isElementAccessExpression(F)||e.isCallExpression(F)){var V=q(ne,F.expression,Q),re=Q.length>0?Q[Q.length-1]:void 0,T=(re==null?void 0:re.getText())===F.expression.getText();if(T&&Q.pop(),e.isCallExpression(F))return T?e.factory.createCallChain(V,e.factory.createToken(28),F.typeArguments,F.arguments):e.factory.createCallChain(V,F.questionDotToken,F.typeArguments,F.arguments);if(e.isPropertyAccessExpression(F))return T?e.factory.createPropertyAccessChain(V,e.factory.createToken(28),F.name):e.factory.createPropertyAccessChain(V,F.questionDotToken,F.name);if(e.isElementAccessExpression(F))return T?e.factory.createElementAccessChain(V,e.factory.createToken(28),F.argumentExpression):e.factory.createElementAccessChain(V,F.questionDotToken,F.argumentExpression)}return F}function Z(ne,F,Q,V,re){var T=V.finalExpression,N=V.occurrences,y=V.expression,D=N[N.length-1],C=q(F,T,N);C&&(e.isPropertyAccessExpression(C)||e.isElementAccessExpression(C)||e.isCallExpression(C))&&(e.isBinaryExpression(y)?Q.replaceNodeRange(ne,D,T,C):e.isConditionalExpression(y)&&Q.replaceNode(ne,y,e.factory.createBinaryExpression(C,e.factory.createToken(60),y.whenFalse)))}})(n.convertToOptionalChainExpression||(n.convertToOptionalChainExpression={}))})(e.refactor||(e.refactor={}))}(jr||(jr={})),function(e){(function(n){(function(f){var p="Convert overload list to single signature",a=e.Diagnostics.Convert_overload_list_to_single_signature.message,d={name:p,description:a,kind:"refactor.rewrite.function.overloadList"};n.registerRefactor(p,{kinds:[d.kind],getEditsForAction:J,getAvailableActions:k});function k(A){var z=A.file,ie=A.startPosition,b=A.program,M=v(z,ie,b);return M?[{name:p,description:a,actions:[d]}]:e.emptyArray}function J(A){var z=A.file,ie=A.startPosition,b=A.program,M=v(z,ie,b);if(!M)return;var S=b.getTypeChecker(),B=M[M.length-1],H=B;switch(B.kind){case 167:{H=e.factory.updateMethodSignature(B,B.modifiers,B.name,B.questionToken,B.typeParameters,w(M),B.type);break}case 168:{H=e.factory.updateMethodDeclaration(B,B.decorators,B.modifiers,B.asteriskToken,B.name,B.questionToken,B.typeParameters,w(M),B.type,B.body);break}case 173:{H=e.factory.updateCallSignature(B,B.typeParameters,w(M),B.type);break}case 170:{H=e.factory.updateConstructorDeclaration(B,B.decorators,B.modifiers,w(M),B.body);break}case 174:{H=e.factory.updateConstructSignature(B,B.typeParameters,w(M),B.type);break}case 255:{H=e.factory.updateFunctionDeclaration(B,B.decorators,B.modifiers,B.asteriskToken,B.name,B.typeParameters,w(M),B.type,B.body);break}default:return e.Debug.failBadSyntaxKind(B,"Unhandled signature kind in overload list conversion refactoring")}if(H===B)return;var I=e.textChanges.ChangeTracker.with(A,function(q){q.replaceNodeRange(z,M[0],M[M.length-1],H)});return{renameFilename:void 0,renameLocation:void 0,edits:I};function w(q){var Z=q[q.length-1];return e.isFunctionLikeDeclaration(Z)&&Z.body&&(q=q.slice(0,q.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(q,x)))])}function x(q){var Z=e.map(q.parameters,O);return e.setEmitFlags(e.factory.createTupleTypeNode(Z),e.some(Z,function(ne){return!!e.length(e.getSyntheticLeadingComments(ne))})?0:1)}function O(q){e.Debug.assert(e.isIdentifier(q.name));var Z=e.setTextRange(e.factory.createNamedTupleMember(q.dotDotDotToken,q.name,q.questionToken,q.type||e.factory.createKeywordTypeNode(130)),q),ne=q.symbol&&q.symbol.getDocumentationComment(S);if(ne){var F=e.displayPartsToString(ne);F.length&&e.setSyntheticLeadingComments(Z,[{text:`*
  251. `.concat(F.split(`
  252. `).map(function(Q){return" * ".concat(Q)}).join(`
  253. `),`
  254. `),kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return Z}}function h(A){switch(A.kind){case 167:case 168:case 173:case 170:case 174:case 255:return!0}return!1}function v(A,z,ie){var b=e.getTokenAtPosition(A,z),M=e.findAncestor(b,h);if(M){var S=ie.getTypeChecker(),B=M.symbol;if(B){var H=B.declarations;if(!(e.length(H)<=1)&&e.every(H,function(q){return e.getSourceFileOfNode(q)===A})&&h(H[0])){var I=H[0].kind;if(e.every(H,function(q){return q.kind===I})){var w=H;if(!e.some(w,function(q){return!!q.typeParameters||e.some(q.parameters,function(Z){return!!Z.decorators||!!Z.modifiers||!e.isIdentifier(Z.name)})})){var x=e.mapDefined(w,function(q){return S.getSignatureFromDeclaration(q)});if(e.length(x)===e.length(H)){var O=S.getReturnTypeOfSignature(x[0]);if(e.every(x,function(q){return S.getReturnTypeOfSignature(q)===O}))return w}}}}}}}})(n.addOrRemoveBracesToArrowFunction||(n.addOrRemoveBracesToArrowFunction={}))})(e.refactor||(e.refactor={}))}(jr||(jr={})),function(e){(function(n){(function(f){var p="Extract Symbol",a={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},d={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};n.registerRefactor(p,{kinds:[a.kind,d.kind],getAvailableActions:k,getEditsForAction:J});function k(U){var K=U.kind,Te=A(U.file,e.getRefactorContextSpan(U),U.triggerReason==="invoked"),ge=Te.targetRange;if(ge===void 0){if(!Te.errors||Te.errors.length===0||!U.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var ke=[];return n.refactorKindBeginsWith(d.kind,K)&&ke.push({name:p,description:d.description,actions:[Rn(Rn({},d),{notApplicableReason:Ar(Te.errors)})]}),n.refactorKindBeginsWith(a.kind,K)&&ke.push({name:p,description:a.description,actions:[Rn(Rn({},a),{notApplicableReason:Ar(Te.errors)})]}),ke}var Pe=H(ge,U);if(Pe===void 0)return e.emptyArray;for(var Ie=[],Ge=new e.Map,he,ve=[],Ve=new e.Map,_e,Le=0,qe=0,Xe=Pe;qe<Xe.length;qe++){var De=Xe[qe],Ae=De.functionExtraction,Ye=De.constantExtraction,Dr=Ae.description;if(n.refactorKindBeginsWith(d.kind,K)&&(Ae.errors.length===0?Ge.has(Dr)||(Ge.set(Dr,!0),Ie.push({description:Dr,name:"function_scope_".concat(Le),kind:d.kind})):he||(he={description:Dr,name:"function_scope_".concat(Le),notApplicableReason:Ar(Ae.errors),kind:d.kind})),n.refactorKindBeginsWith(a.kind,K))if(Ye.errors.length===0){var br=Ye.description;Ve.has(br)||(Ve.set(br,!0),ve.push({description:br,name:"constant_scope_".concat(Le),kind:a.kind}))}else _e||(_e={description:Dr,name:"constant_scope_".concat(Le),notApplicableReason:Ar(Ye.errors),kind:a.kind});Le++}var lr=[];return Ie.length?lr.push({name:p,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:Ie}):U.preferences.provideRefactorNotApplicableReason&&he&&lr.push({name:p,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[he]}),ve.length?lr.push({name:p,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:ve}):U.preferences.provideRefactorNotApplicableReason&&_e&&lr.push({name:p,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[_e]}),lr.length?lr:e.emptyArray;function Ar(kr){var Ke=kr[0].messageText;return typeof Ke!="string"&&(Ke=Ke.messageText),Ke}}f.getAvailableActions=k;function J(U,K){var Te=A(U.file,e.getRefactorContextSpan(U)),ge=Te.targetRange,ke=/^function_scope_(\d+)$/.exec(K);if(ke){var Pe=+ke[1];return e.Debug.assert(isFinite(Pe),"Expected to parse a finite number from the function scope index"),S(ge,U,Pe)}var Ie=/^constant_scope_(\d+)$/.exec(K);if(Ie){var Pe=+Ie[1];return e.Debug.assert(isFinite(Pe),"Expected to parse a finite number from the constant scope index"),B(ge,U,Pe)}e.Debug.fail("Unrecognized action name")}f.getEditsForAction=J;var h;(function(U){function K(Te){return{message:Te,code:0,category:e.DiagnosticCategory.Message,key:Te}}U.cannotExtractRange=K("Cannot extract range."),U.cannotExtractImport=K("Cannot extract import statement."),U.cannotExtractSuper=K("Cannot extract super call."),U.cannotExtractJSDoc=K("Cannot extract JSDoc."),U.cannotExtractEmpty=K("Cannot extract empty range."),U.expressionExpected=K("expression expected."),U.uselessConstantType=K("No reason to extract constant of type."),U.statementOrExpressionExpected=K("Statement or expression expected."),U.cannotExtractRangeContainingConditionalBreakOrContinueStatements=K("Cannot extract range containing conditional break or continue statements."),U.cannotExtractRangeContainingConditionalReturnStatement=K("Cannot extract range containing conditional return statement."),U.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=K("Cannot extract range containing labeled break or continue with target outside of the range."),U.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=K("Cannot extract range containing writes to references located outside of the target range in generators."),U.typeWillNotBeVisibleInTheNewScope=K("Type will not visible in the new scope."),U.functionWillNotBeVisibleInTheNewScope=K("Function will not visible in the new scope."),U.cannotExtractIdentifier=K("Select more than a single identifier."),U.cannotExtractExportedEntity=K("Cannot extract exported declaration"),U.cannotWriteInExpression=K("Cannot write back side-effects when extracting an expression"),U.cannotExtractReadonlyPropertyInitializerOutsideConstructor=K("Cannot move initialization of read-only class property outside of the constructor"),U.cannotExtractAmbientBlock=K("Cannot extract code from ambient contexts"),U.cannotAccessVariablesFromNestedScopes=K("Cannot access variables from nested scopes"),U.cannotExtractToJSClass=K("Cannot extract constant to a class scope in JS"),U.cannotExtractToExpressionArrowFunction=K("Cannot extract constant to an arrow function without a block")})(h=f.Messages||(f.Messages={}));var v;(function(U){U[U.None=0]="None",U[U.HasReturn=1]="HasReturn",U[U.IsGenerator=2]="IsGenerator",U[U.IsAsyncFunction=4]="IsAsyncFunction",U[U.UsesThis=8]="UsesThis",U[U.InStaticRegion=16]="InStaticRegion"})(v||(v={}));function A(U,K,Te){Te===void 0&&(Te=!0);var ge=K.length;if(ge===0&&!Te)return{errors:[e.createFileDiagnostic(U,K.start,ge,h.cannotExtractEmpty)]};var ke=ge===0&&Te,Pe=e.findFirstNonJsxWhitespaceToken(U,K.start),Ie=e.findTokenOnLeftOfPosition(U,e.textSpanEnd(K)),Ge=Pe&&Ie&&Te?z(Pe,Ie,U):K,he=ke?Se(Pe):e.getParentNodeInSpan(Pe,U,Ge),ve=ke?he:e.getParentNodeInSpan(Ie,U,Ge),Ve=[],_e=v.None;if(!he||!ve)return{errors:[e.createFileDiagnostic(U,K.start,ge,h.cannotExtractRange)]};if(e.isJSDoc(he))return{errors:[e.createFileDiagnostic(U,K.start,ge,h.cannotExtractJSDoc)]};if(he.parent!==ve.parent)return{errors:[e.createFileDiagnostic(U,K.start,ge,h.cannotExtractRange)]};if(he!==ve){if(!R(he.parent))return{errors:[e.createFileDiagnostic(U,K.start,ge,h.cannotExtractRange)]};for(var Le=[],qe=he,Xe=0,De=qe.parent.statements;Xe<De.length;Xe++){var Ae=De[Xe];if(Ae===he||Le.length){var Ye=Ke(Ae);if(Ye)return{errors:Ye};Le.push(Ae)}if(Ae===ve)break}return Le.length?{targetRange:{range:Le,facts:_e,declarations:Ve}}:{errors:[e.createFileDiagnostic(U,K.start,ge,h.cannotExtractRange)]}}if(e.isReturnStatement(he)&&!he.expression)return{errors:[e.createFileDiagnostic(U,K.start,ge,h.cannotExtractRange)]};var Dr=lr(he),br=Ar(Dr)||Ke(Dr);if(br)return{errors:br};return{targetRange:{range:ie(Dr),facts:_e,declarations:Ve}};function lr(Me){if(e.isReturnStatement(Me)){if(Me.expression)return Me.expression}else if(e.isVariableStatement(Me)){for(var Hr=0,ur=void 0,gr=0,de=Me.declarationList.declarations;gr<de.length;gr++){var Fe=de[gr];Fe.initializer&&(Hr++,ur=Fe.initializer)}if(Hr===1)return ur}else if(e.isVariableDeclaration(Me)&&Me.initializer)return Me.initializer;return Me}function Ar(Me){if(e.isIdentifier(e.isExpressionStatement(Me)?Me.expression:Me))return[e.createDiagnosticForNode(Me,h.cannotExtractIdentifier)]}function kr(Me,Hr){for(var ur=Me;ur!==Hr;){if(ur.kind===166){e.isStatic(ur)&&(_e|=v.InStaticRegion);break}else if(ur.kind===163){var gr=e.getContainingFunction(ur);gr.kind===170&&(_e|=v.InStaticRegion);break}else ur.kind===168&&e.isStatic(ur)&&(_e|=v.InStaticRegion);ur=ur.parent}}function Ke(Me){var Hr;if(function(Sr){Sr[Sr.None=0]="None",Sr[Sr.Break=1]="Break",Sr[Sr.Continue=2]="Continue",Sr[Sr.Return=4]="Return"}(Hr||(Hr={})),e.Debug.assert(Me.pos<=Me.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),e.Debug.assert(!e.positionIsSynthesized(Me.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!e.isStatement(Me)&&!(e.isExpressionNode(Me)&&Ce(Me)))return[e.createDiagnosticForNode(Me,h.statementOrExpressionExpected)];if(Me.flags&8388608)return[e.createDiagnosticForNode(Me,h.cannotExtractAmbientBlock)];var ur=e.getContainingClass(Me);ur&&kr(Me,ur);var gr,de=4,Fe;return $e(Me),gr;function $e(Sr){if(gr)return!0;if(e.isDeclaration(Sr)){var Pr=Sr.kind===253?Sr.parent.parent:Sr;if(e.hasSyntacticModifier(Pr,1))return(gr||(gr=[])).push(e.createDiagnosticForNode(Sr,h.cannotExtractExportedEntity)),!0;Ve.push(Sr.symbol)}switch(Sr.kind){case 265:return(gr||(gr=[])).push(e.createDiagnosticForNode(Sr,h.cannotExtractImport)),!0;case 270:return(gr||(gr=[])).push(e.createDiagnosticForNode(Sr,h.cannotExtractExportedEntity)),!0;case 106:if(Sr.parent.kind===207){var He=e.getContainingClass(Sr);if(He.pos<K.start||He.end>=K.start+K.length)return(gr||(gr=[])).push(e.createDiagnosticForNode(Sr,h.cannotExtractSuper)),!0}else _e|=v.UsesThis;break;case 213:e.forEachChild(Sr,function ze(Lr){if(e.isThis(Lr))_e|=v.UsesThis;else{if(e.isClassLike(Lr)||e.isFunctionLike(Lr)&&!e.isArrowFunction(Lr))return!1;e.forEachChild(Lr,ze)}});case 256:case 255:e.isSourceFile(Sr.parent)&&Sr.parent.externalModuleIndicator===void 0&&(gr||(gr=[])).push(e.createDiagnosticForNode(Sr,h.functionWillNotBeVisibleInTheNewScope));case 225:case 212:case 168:case 170:case 171:case 172:return!1}var pr=de;switch(Sr.kind){case 238:de=0;break;case 251:de=0;break;case 234:Sr.parent&&Sr.parent.kind===251&&Sr.parent.finallyBlock===Sr&&(de=4);break;case 289:case 288:de|=1;break;default:e.isIterationStatement(Sr,!1)&&(de|=3);break}switch(Sr.kind){case 191:case 108:_e|=v.UsesThis;break;case 249:{var Jr=Sr.label;(Fe||(Fe=[])).push(Jr.escapedText),e.forEachChild(Sr,$e),Fe.pop();break}case 245:case 244:{var Jr=Sr.label;Jr?e.contains(Fe,Jr.escapedText)||(gr||(gr=[])).push(e.createDiagnosticForNode(Sr,h.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):de&(Sr.kind===245?1:2)||(gr||(gr=[])).push(e.createDiagnosticForNode(Sr,h.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 217:_e|=v.IsAsyncFunction;break;case 223:_e|=v.IsGenerator;break;case 246:de&4?_e|=v.HasReturn:(gr||(gr=[])).push(e.createDiagnosticForNode(Sr,h.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(Sr,$e);break}de=pr}}}f.getRangeToExtract=A;function z(U,K,Te){var ge=U.getStart(Te),ke=K.getEnd();return Te.text.charCodeAt(ke)===59&&ke++,{start:ge,length:ke-ge}}function ie(U){if(e.isStatement(U))return[U];if(e.isExpressionNode(U))return e.isExpressionStatement(U.parent)?[U.parent]:U}function b(U){return e.isFunctionLikeDeclaration(U)||e.isSourceFile(U)||e.isModuleBlock(U)||e.isClassLike(U)}function M(U){var K=te(U.range)?e.first(U.range):U.range;if(U.facts&v.UsesThis){var Te=e.getContainingClass(K);if(Te){var ge=e.findAncestor(K,e.isFunctionLikeDeclaration);return ge?[ge,Te]:[Te]}}for(var ke=[];;)if(K=K.parent,K.kind===163&&(K=e.findAncestor(K,function(Pe){return e.isFunctionLikeDeclaration(Pe)}).parent),b(K)&&(ke.push(K),K.kind===303))return ke}function S(U,K,Te){var ge=I(U,K),ke=ge.scopes,Pe=ge.readsAndWrites,Ie=Pe.target,Ge=Pe.usagesPerScope,he=Pe.functionErrorsPerScope,ve=Pe.exposedVariableDeclarations;return e.Debug.assert(!he[Te].length,"The extraction went missing? How?"),K.cancellationToken.throwIfCancellationRequested(),F(Ie,ke[Te],Ge[Te],ve,U,K)}function B(U,K,Te){var ge=I(U,K),ke=ge.scopes,Pe=ge.readsAndWrites,Ie=Pe.target,Ge=Pe.usagesPerScope,he=Pe.constantErrorsPerScope,ve=Pe.exposedVariableDeclarations;e.Debug.assert(!he[Te].length,"The extraction went missing? How?"),e.Debug.assert(ve.length===0,"Extract constant accepted a range containing a variable declaration?"),K.cancellationToken.throwIfCancellationRequested();var Ve=e.isExpression(Ie)?Ie:Ie.statements[0].expression;return Q(Ve,ke[Te],Ge[Te],U.facts,K)}function H(U,K){var Te=I(U,K),ge=Te.scopes,ke=Te.readsAndWrites,Pe=ke.functionErrorsPerScope,Ie=ke.constantErrorsPerScope,Ge=ge.map(function(he,ve){var Ve=w(he),_e=x(he),Le=e.isFunctionLikeDeclaration(he)?O(he):e.isClassLike(he)?q(he):Z(he),qe,Xe;return Le===1?(qe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[Ve,"global"]),Xe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[_e,"global"])):Le===0?(qe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[Ve,"module"]),Xe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[_e,"module"])):(qe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[Ve,Le]),Xe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[_e,Le])),ve===0&&!e.isClassLike(he)&&(Xe=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[_e])),{functionExtraction:{description:qe,errors:Pe[ve]},constantExtraction:{description:Xe,errors:Ie[ve]}}});return Ge}function I(U,K){var Te=K.file,ge=M(U),ke=ue(U,Te),Pe=j(U,ge,ke,Te,K.program.getTypeChecker(),K.cancellationToken);return{scopes:ge,readsAndWrites:Pe}}function w(U){return e.isFunctionLikeDeclaration(U)?"inner function":e.isClassLike(U)?"method":"function"}function x(U){return e.isClassLike(U)?"readonly field":"constant"}function O(U){switch(U.kind){case 170:return"constructor";case 212:case 255:return U.name?"function '".concat(U.name.text,"'"):e.ANONYMOUS;case 213:return"arrow function";case 168:return"method '".concat(U.name.getText(),"'");case 171:return"'get ".concat(U.name.getText(),"'");case 172:return"'set ".concat(U.name.getText(),"'");default:throw e.Debug.assertNever(U,"Unexpected scope kind ".concat(U.kind))}}function q(U){return U.kind===256?U.name?"class '".concat(U.name.text,"'"):"anonymous class declaration":U.name?"class expression '".concat(U.name.text,"'"):"anonymous class expression"}function Z(U){return U.kind===261?"namespace '".concat(U.parent.name.getText(),"'"):U.externalModuleIndicator?0:1}var ne;(function(U){U[U.Module=0]="Module",U[U.Global=1]="Global"})(ne||(ne={}));function F(U,K,Te,ge,ke,Pe){var Ie=Te.usages,Ge=Te.typeParameterUsages,he=Te.substitutions,ve=Pe.program.getTypeChecker(),Ve=e.getEmitScriptTarget(Pe.program.getCompilerOptions()),_e=e.codefix.createImportAdder(Pe.file,Pe.program,Pe.preferences,Pe.host),Le=K.getSourceFile(),qe=e.getUniqueName(e.isClassLike(K)?"newMethod":"newFunction",Le),Xe=e.isInJSFile(K),De=e.factory.createIdentifier(qe),Ae,Ye=[],Dr=[],br;Ie.forEach(function(We,$){var Ne;if(!Xe){var me=ve.getTypeOfSymbolAtLocation(We.symbol,We.node);me=ve.getBaseTypeOfLiteralType(me),Ne=e.codefix.typeToAutoImportableTypeNode(ve,_e,me,K,Ve,1)}var Ze=e.factory.createParameterDeclaration(void 0,void 0,void 0,$,void 0,Ne);Ye.push(Ze),We.usage===2&&(br||(br=[])).push(We),Dr.push(e.factory.createIdentifier($))});var lr=e.arrayFrom(Ge.values()).map(function(We){return{type:We,declaration:re(We)}}),Ar=lr.sort(T),kr=Ar.length===0?void 0:Ar.map(function(We){return We.declaration}),Ke=kr!==void 0?kr.map(function(We){return e.factory.createTypeReferenceNode(We.name,void 0)}):void 0;if(e.isExpression(U)&&!Xe){var Me=ve.getContextualType(U);Ae=ve.typeToTypeNode(Me,K,1)}var Hr=y(U,ge,br,he,!!(ke.facts&v.HasReturn)),ur=Hr.body,gr=Hr.returnValueProperty;e.suppressLeadingAndTrailingTrivia(ur);var de;if(e.isClassLike(K)){var Fe=Xe?[]:[e.factory.createModifier(121)];ke.facts&v.InStaticRegion&&Fe.push(e.factory.createModifier(124)),ke.facts&v.IsAsyncFunction&&Fe.push(e.factory.createModifier(131)),de=e.factory.createMethodDeclaration(void 0,Fe.length?Fe:void 0,ke.facts&v.IsGenerator?e.factory.createToken(41):void 0,De,void 0,kr,Ye,Ae,ur)}else de=e.factory.createFunctionDeclaration(void 0,ke.facts&v.IsAsyncFunction?[e.factory.createToken(131)]:void 0,ke.facts&v.IsGenerator?e.factory.createToken(41):void 0,De,kr,Ye,Ae,ur);var $e=e.textChanges.ChangeTracker.fromContext(Pe),Sr=(te(ke.range)?e.last(ke.range):ke.range).end,Pr=m(Sr,K);Pr?$e.insertNodeBefore(Pe.file,Pr,de,!0):$e.insertNodeAtEndOfScope(Pe.file,K,de),_e.writeFixes($e);var He=[],pr=N(K,ke,qe),Jr=e.factory.createCallExpression(pr,Ke,Dr);if(ke.facts&v.IsGenerator&&(Jr=e.factory.createYieldExpression(e.factory.createToken(41),Jr)),ke.facts&v.IsAsyncFunction&&(Jr=e.factory.createAwaitExpression(Jr)),Y(U)&&(Jr=e.factory.createJsxExpression(void 0,Jr)),ge.length&&!br)if(e.Debug.assert(!gr,"Expected no returnValueProperty"),e.Debug.assert(!(ke.facts&v.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),ge.length===1){var ze=ge[0];He.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(ze.name),void 0,e.getSynthesizedDeepClone(ze.type),Jr)],ze.parent.flags)))}else{for(var Lr=[],Yr=[],lt=ge[0].parent.flags,tt=!1,Rt=0,cn=ge;Rt<cn.length;Rt++){var ze=cn[Rt];Lr.push(e.factory.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(ze.name)));var bn=ve.typeToTypeNode(ve.getBaseTypeOfLiteralType(ve.getTypeAtLocation(ze)),K,1);Yr.push(e.factory.createPropertySignature(void 0,ze.symbol.name,void 0,bn)),tt=tt||ze.type!==void 0,lt=lt&ze.parent.flags}var In=tt?e.factory.createTypeLiteralNode(Yr):void 0;In&&e.setEmitFlags(In,1),He.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.factory.createObjectBindingPattern(Lr),void 0,In,Jr)],lt)))}else if(ge.length||br){if(ge.length)for(var zn=0,ir=ge;zn<ir.length;zn++){var ze=ir[zn],Or=ze.parent.flags;Or&2&&(Or=Or&-3|1),He.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(ze.symbol.name,void 0,Ee(ze.type))],Or)))}gr&&He.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(gr,void 0,Ee(Ae))],1)));var sr=P(ge,br);gr&&sr.unshift(e.factory.createShorthandPropertyAssignment(gr)),sr.length===1?(e.Debug.assert(!gr,"Shouldn't have returnValueProperty here"),He.push(e.factory.createExpressionStatement(e.factory.createAssignment(sr[0].name,Jr))),ke.facts&v.HasReturn&&He.push(e.factory.createReturnStatement())):(He.push(e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createObjectLiteralExpression(sr),Jr))),gr&&He.push(e.factory.createReturnStatement(e.factory.createIdentifier(gr))))}else ke.facts&v.HasReturn?He.push(e.factory.createReturnStatement(Jr)):te(ke.range)?He.push(e.factory.createExpressionStatement(Jr)):He.push(Jr);te(ke.range)?$e.replaceNodeRangeWithNodes(Pe.file,e.first(ke.range),e.last(ke.range),He):$e.replaceNodeWithNodes(Pe.file,ke.range,He);var ye=$e.getChanges(),or=te(ke.range)?e.first(ke.range):ke.range,fe=or.getSourceFile().fileName,je=e.getRenameLocation(ye,fe,qe,!1);return{renameFilename:fe,renameLocation:je,edits:ye};function Ee(We){if(We!==void 0){for(var $=e.getSynthesizedDeepClone(We),Ne=$;e.isParenthesizedTypeNode(Ne);)Ne=Ne.type;return e.isUnionTypeNode(Ne)&&e.find(Ne.types,function(me){return me.kind===152})?$:e.factory.createUnionTypeNode([$,e.factory.createKeywordTypeNode(152)])}}}function Q(U,K,Te,ge,ke){var Pe,Ie=Te.substitutions,Ge=ke.program.getTypeChecker(),he=K.getSourceFile(),ve=e.getUniqueName(e.isClassLike(K)?"newProperty":"newLocal",he),Ve=e.isInJSFile(K),_e=Ve||!Ge.isContextSensitive(U)?void 0:Ge.typeToTypeNode(Ge.getContextualType(U),K,1),Le=D(e.skipParentheses(U),Ie);Pe=Hr(_e,Le),_e=Pe.variableType,Le=Pe.initializer,e.suppressLeadingAndTrailingTrivia(Le);var qe=e.textChanges.ChangeTracker.fromContext(ke);if(e.isClassLike(K)){e.Debug.assert(!Ve,"Cannot extract to a JS class");var Xe=[];Xe.push(e.factory.createModifier(121)),ge&v.InStaticRegion&&Xe.push(e.factory.createModifier(124)),Xe.push(e.factory.createModifier(144));var De=e.factory.createPropertyDeclaration(void 0,Xe,ve,void 0,_e,Le),Ae=e.factory.createPropertyAccessExpression(ge&v.InStaticRegion?e.factory.createIdentifier(K.name.getText()):e.factory.createThis(),e.factory.createIdentifier(ve));Y(U)&&(Ae=e.factory.createJsxExpression(void 0,Ae));var Ye=U.pos,Dr=u(Ye,K);qe.insertNodeBefore(ke.file,Dr,De,!0),qe.replaceNode(ke.file,U,Ae)}else{var br=e.factory.createVariableDeclaration(ve,void 0,_e,Le),lr=V(U,K);if(lr){qe.insertNodeBefore(ke.file,lr,br);var Ae=e.factory.createIdentifier(ve);qe.replaceNode(ke.file,U,Ae)}else if(U.parent.kind===237&&K===e.findAncestor(U,b)){var Ar=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([br],2));qe.replaceNode(ke.file,U.parent,Ar)}else{var Ar=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([br],2)),Dr=g(U,K);if(Dr.pos===0?qe.insertNodeAtTopOfFile(ke.file,Ar,!1):qe.insertNodeBefore(ke.file,Dr,Ar,!1),U.parent.kind===237)qe.delete(ke.file,U.parent);else{var Ae=e.factory.createIdentifier(ve);Y(U)&&(Ae=e.factory.createJsxExpression(void 0,Ae)),qe.replaceNode(ke.file,U,Ae)}}}var kr=qe.getChanges(),Ke=U.getSourceFile().fileName,Me=e.getRenameLocation(kr,Ke,ve,!0);return{renameFilename:Ke,renameLocation:Me,edits:kr};function Hr(ur,gr){if(ur===void 0)return{variableType:ur,initializer:gr};if(!e.isFunctionExpression(gr)&&!e.isArrowFunction(gr)||gr.typeParameters)return{variableType:ur,initializer:gr};var de=Ge.getTypeAtLocation(U),Fe=e.singleOrUndefined(Ge.getSignaturesOfType(de,0));if(!Fe)return{variableType:ur,initializer:gr};if(Fe.getTypeParameters())return{variableType:ur,initializer:gr};for(var $e=[],Sr=!1,Pr=0,He=gr.parameters;Pr<He.length;Pr++){var pr=He[Pr];if(pr.type)$e.push(pr);else{var Jr=Ge.getTypeAtLocation(pr);Jr===Ge.getAnyType()&&(Sr=!0),$e.push(e.factory.updateParameterDeclaration(pr,pr.decorators,pr.modifiers,pr.dotDotDotToken,pr.name,pr.questionToken,pr.type||Ge.typeToTypeNode(Jr,K,1),pr.initializer))}}if(Sr)return{variableType:ur,initializer:gr};if(ur=void 0,e.isArrowFunction(gr))gr=e.factory.updateArrowFunction(gr,U.modifiers,gr.typeParameters,$e,gr.type||Ge.typeToTypeNode(Fe.getReturnType(),K,1),gr.equalsGreaterThanToken,gr.body);else{if(Fe&&Fe.thisParameter){var ze=e.firstOrUndefined($e);if(!ze||e.isIdentifier(ze.name)&&ze.name.escapedText!=="this"){var Lr=Ge.getTypeOfSymbolAtLocation(Fe.thisParameter,U);$e.splice(0,0,e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,Ge.typeToTypeNode(Lr,K,1)))}}gr=e.factory.updateFunctionExpression(gr,U.modifiers,gr.asteriskToken,gr.name,gr.typeParameters,$e,gr.type||Ge.typeToTypeNode(Fe.getReturnType(),K,1),gr.body)}return{variableType:ur,initializer:gr}}}function V(U,K){for(var Te;U!==void 0&&U!==K;){if(e.isVariableDeclaration(U)&&U.initializer===Te&&e.isVariableDeclarationList(U.parent)&&U.parent.declarations.length>1)return U;Te=U,U=U.parent}}function re(U){var K,Te=U.symbol;if(Te&&Te.declarations)for(var ge=0,ke=Te.declarations;ge<ke.length;ge++){var Pe=ke[ge];(K===void 0||Pe.pos<K.pos)&&(K=Pe)}return K}function T(U,K){var Te=U.type,ge=U.declaration,ke=K.type,Pe=K.declaration;return e.compareProperties(ge,Pe,"pos",e.compareValues)||e.compareStringsCaseSensitive(Te.symbol?Te.symbol.getName():"",ke.symbol?ke.symbol.getName():"")||e.compareValues(Te.id,ke.id)}function N(U,K,Te){var ge=e.factory.createIdentifier(Te);if(e.isClassLike(U)){var ke=K.facts&v.InStaticRegion?e.factory.createIdentifier(U.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(ke,ge)}else return ge}function y(U,K,Te,ge,ke){var Pe=Te!==void 0||K.length>0;if(e.isBlock(U)&&!Pe&&ge.size===0)return{body:e.factory.createBlock(U.statements,!0),returnValueProperty:void 0};var Ie,Ge=!1,he=e.factory.createNodeArray(e.isBlock(U)?U.statements.slice(0):[e.isStatement(U)?U:e.factory.createReturnStatement(e.skipParentheses(U))]);if(Pe||ge.size){var ve=e.visitNodes(he,_e).slice();if(Pe&&!ke&&e.isStatement(U)){var Ve=P(K,Te);Ve.length===1?ve.push(e.factory.createReturnStatement(Ve[0].name)):ve.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(Ve)))}return{body:e.factory.createBlock(ve,!0),returnValueProperty:Ie}}else return{body:e.factory.createBlock(he,!0),returnValueProperty:void 0};function _e(Le){if(!Ge&&e.isReturnStatement(Le)&&Pe){var qe=P(K,Te);return Le.expression&&(Ie||(Ie="__return"),qe.unshift(e.factory.createPropertyAssignment(Ie,e.visitNode(Le.expression,_e)))),qe.length===1?e.factory.createReturnStatement(qe[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(qe))}else{var Xe=Ge;Ge=Ge||e.isFunctionLikeDeclaration(Le)||e.isClassLike(Le);var De=ge.get(e.getNodeId(Le).toString()),Ae=De?e.getSynthesizedDeepClone(De):e.visitEachChild(Le,_e,e.nullTransformationContext);return Ge=Xe,Ae}}}function D(U,K){return K.size?Te(U):U;function Te(ge){var ke=K.get(e.getNodeId(ge).toString());return ke?e.getSynthesizedDeepClone(ke):e.visitEachChild(ge,Te,e.nullTransformationContext)}}function C(U){if(e.isFunctionLikeDeclaration(U)){var K=U.body;if(e.isBlock(K))return K.statements}else{if(e.isModuleBlock(U)||e.isSourceFile(U))return U.statements;if(e.isClassLike(U))return U.members;e.assertType(U)}return e.emptyArray}function m(U,K){return e.find(C(K),function(Te){return Te.pos>=U&&e.isFunctionLikeDeclaration(Te)&&!e.isConstructorDeclaration(Te)})}function u(U,K){var Te=K.members;e.Debug.assert(Te.length>0,"Found no members");for(var ge,ke=!0,Pe=0,Ie=Te;Pe<Ie.length;Pe++){var Ge=Ie[Pe];if(Ge.pos>U)return ge||Te[0];if(ke&&!e.isPropertyDeclaration(Ge)){if(ge!==void 0)return Ge;ke=!1}ge=Ge}return ge===void 0?e.Debug.fail():ge}function g(U,K){e.Debug.assert(!e.isClassLike(K));for(var Te,ge=U;ge!==K;ge=ge.parent)b(ge)&&(Te=ge);for(var ge=(Te||U).parent;;ge=ge.parent){if(R(ge)){for(var ke=void 0,Pe=0,Ie=ge.statements;Pe<Ie.length;Pe++){var Ge=Ie[Pe];if(Ge.pos>U.pos)break;ke=Ge}return!ke&&e.isCaseClause(ge)?(e.Debug.assert(e.isSwitchStatement(ge.parent.parent),"Grandparent isn't a switch statement"),ge.parent.parent):e.Debug.checkDefined(ke,"prevStatement failed to get set")}e.Debug.assert(ge!==K,"Didn't encounter a block-like before encountering scope")}}function P(U,K){var Te=e.map(U,function(ke){return e.factory.createShorthandPropertyAssignment(ke.symbol.name)}),ge=e.map(K,function(ke){return e.factory.createShorthandPropertyAssignment(ke.symbol.name)});return Te===void 0?ge:ge===void 0?Te:Te.concat(ge)}function te(U){return e.isArray(U)}function ue(U,K){return te(U.range)?{pos:e.first(U.range).getStart(K),end:e.last(U.range).getEnd()}:U.range}var X;(function(U){U[U.Read=1]="Read",U[U.Write=2]="Write"})(X||(X={}));function j(U,K,Te,ge,ke,Pe){var Ie=new e.Map,Ge=[],he=[],ve=[],Ve=[],_e=[],Le=new e.Map,qe=[],Xe,De=te(U.range)?U.range.length===1&&e.isExpressionStatement(U.range[0])?U.range[0].expression:void 0:U.range,Ae;if(De===void 0){var Ye=U.range,Dr=e.first(Ye).getStart(),br=e.last(Ye).end;Ae=e.createFileDiagnostic(ge,Dr,br-Dr,h.expressionExpected)}else ke.getTypeAtLocation(De).flags&147456&&(Ae=e.createDiagnosticForNode(De,h.uselessConstantType));for(var lr=0,Ar=K;lr<Ar.length;lr++){var kr=Ar[lr];Ge.push({usages:new e.Map,typeParameterUsages:new e.Map,substitutions:new e.Map}),he.push(new e.Map),ve.push([]);var Ke=[];Ae&&Ke.push(Ae),e.isClassLike(kr)&&e.isInJSFile(kr)&&Ke.push(e.createDiagnosticForNode(kr,h.cannotExtractToJSClass)),e.isArrowFunction(kr)&&!e.isBlock(kr.body)&&Ke.push(e.createDiagnosticForNode(kr,h.cannotExtractToExpressionArrowFunction)),Ve.push(Ke)}var Me=new e.Map,Hr=te(U.range)?e.factory.createBlock(U.range):U.range,ur=te(U.range)?e.first(U.range):U.range,gr=lt(ur);if(Rt(Hr),gr&&!te(U.range)){var de=ke.getContextualType(U.range);tt(de)}if(Ie.size>0){for(var Fe=new e.Map,$e=0,Sr=ur;Sr!==void 0&&$e<K.length;Sr=Sr.parent)if(Sr===K[$e]&&(Fe.forEach(function(Or,sr){Ge[$e].typeParameterUsages.set(sr,Or)}),$e++),e.isDeclarationWithTypeParameters(Sr))for(var Pr=0,He=e.getEffectiveTypeParameterDeclarations(Sr);Pr<He.length;Pr++){var pr=He[Pr],Jr=ke.getTypeAtLocation(pr);Ie.has(Jr.id.toString())&&Fe.set(Jr.id.toString(),Jr)}e.Debug.assert($e===K.length,"Should have iterated all scopes")}if(_e.length){var ze=e.isBlockScope(K[0],K[0].parent)?K[0]:e.getEnclosingBlockScopeContainer(K[0]);e.forEachChild(ze,In)}for(var Lr=function(Or){var sr=Ge[Or];if(Or>0&&(sr.usages.size>0||sr.typeParameterUsages.size>0)){var ye=te(U.range)?U.range[0]:U.range;Ve[Or].push(e.createDiagnosticForNode(ye,h.cannotAccessVariablesFromNestedScopes))}var or=!1,fe;if(Ge[Or].usages.forEach(function(Ee){Ee.usage===2&&(or=!0,Ee.symbol.flags&106500&&Ee.symbol.valueDeclaration&&e.hasEffectiveModifier(Ee.symbol.valueDeclaration,64)&&(fe=Ee.symbol.valueDeclaration))}),e.Debug.assert(te(U.range)||qe.length===0,"No variable declarations expected if something was extracted"),or&&!te(U.range)){var je=e.createDiagnosticForNode(U.range,h.cannotWriteInExpression);ve[Or].push(je),Ve[Or].push(je)}else if(fe&&Or>0){var je=e.createDiagnosticForNode(fe,h.cannotExtractReadonlyPropertyInitializerOutsideConstructor);ve[Or].push(je),Ve[Or].push(je)}else if(Xe){var je=e.createDiagnosticForNode(Xe,h.cannotExtractExportedEntity);ve[Or].push(je),Ve[Or].push(je)}},Yr=0;Yr<K.length;Yr++)Lr(Yr);return{target:Hr,usagesPerScope:Ge,functionErrorsPerScope:ve,constantErrorsPerScope:Ve,exposedVariableDeclarations:qe};function lt(Or){return!!e.findAncestor(Or,function(sr){return e.isDeclarationWithTypeParameters(sr)&&e.getEffectiveTypeParameterDeclarations(sr).length!==0})}function tt(Or){for(var sr=ke.getSymbolWalker(function(){return Pe.throwIfCancellationRequested(),!0}),ye=sr.walkType(Or).visitedTypes,or=0,fe=ye;or<fe.length;or++){var je=fe[or];je.isTypeParameter()&&Ie.set(je.id.toString(),je)}}function Rt(Or,sr){if(sr===void 0&&(sr=1),gr){var ye=ke.getTypeAtLocation(Or);tt(ye)}if(e.isDeclaration(Or)&&Or.symbol&&_e.push(Or),e.isAssignmentExpression(Or))Rt(Or.left,2),Rt(Or.right);else if(e.isUnaryExpressionWithWrite(Or))Rt(Or.operand,2);else if(e.isPropertyAccessExpression(Or)||e.isElementAccessExpression(Or))e.forEachChild(Or,Rt);else if(e.isIdentifier(Or)){if(!Or.parent||e.isQualifiedName(Or.parent)&&Or!==Or.parent.left||e.isPropertyAccessExpression(Or.parent)&&Or!==Or.parent.expression)return;cn(Or,sr,e.isPartOfTypeNode(Or))}else e.forEachChild(Or,Rt)}function cn(Or,sr,ye){var or=bn(Or,sr,ye);if(or)for(var fe=0;fe<K.length;fe++){var je=he[fe].get(or);je&&Ge[fe].substitutions.set(e.getNodeId(Or).toString(),je)}}function bn(Or,sr,ye){var or=zn(Or);if(or){var fe=e.getSymbolId(or).toString(),je=Me.get(fe);if(je&&je>=sr)return fe;if(Me.set(fe,sr),je){for(var Ee=0,We=Ge;Ee<We.length;Ee++){var $=We[Ee],Ne=$.usages.get(Or.text);Ne&&$.usages.set(Or.text,{usage:sr,symbol:or,node:Or})}return fe}var me=or.getDeclarations(),Ze=me&&e.find(me,function(gt){return gt.getSourceFile()===ge});if(Ze&&!e.rangeContainsStartEnd(Te,Ze.getStart(),Ze.end)){if(U.facts&v.IsGenerator&&sr===2){for(var Cr=e.createDiagnosticForNode(Or,h.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),fr=0,dr=ve;fr<dr.length;fr++){var et=dr[fr];et.push(Cr)}for(var yt=0,Vr=Ve;yt<Vr.length;yt++){var et=Vr[yt];et.push(Cr)}}for(var tr=0;tr<K.length;tr++){var xr=K[tr],Nr=ke.resolveName(or.name,xr,or.flags,!1);if(Nr!==or&&!he[tr].has(fe)){var zr=ir(or.exportSymbol||or,xr,ye);if(zr)he[tr].set(fe,zr);else if(ye){if(!(or.flags&262144)){var Cr=e.createDiagnosticForNode(Or,h.typeWillNotBeVisibleInTheNewScope);ve[tr].push(Cr),Ve[tr].push(Cr)}}else Ge[tr].usages.set(Or.text,{usage:sr,symbol:or,node:Or})}}return fe}}}function In(Or){if(!(Or===U.range||te(U.range)&&U.range.indexOf(Or)>=0)){var sr=e.isIdentifier(Or)?zn(Or):ke.getSymbolAtLocation(Or);if(sr){var ye=e.find(_e,function(fe){return fe.symbol===sr});if(ye)if(e.isVariableDeclaration(ye)){var or=ye.symbol.id.toString();Le.has(or)||(qe.push(ye),Le.set(or,!0))}else Xe=Xe||ye}e.forEachChild(Or,In)}}function zn(Or){return Or.parent&&e.isShorthandPropertyAssignment(Or.parent)&&Or.parent.name===Or?ke.getShorthandAssignmentValueSymbol(Or.parent):ke.getSymbolAtLocation(Or)}function ir(Or,sr,ye){if(Or){var or=Or.getDeclarations();if(or&&or.some(function(je){return je.parent===sr}))return e.factory.createIdentifier(Or.name);var fe=ir(Or.parent,sr,ye);if(fe!==void 0)return ye?e.factory.createQualifiedName(fe,e.factory.createIdentifier(Or.name)):e.factory.createPropertyAccessExpression(fe,Or.name)}}}function Se(U){return e.findAncestor(U,function(K){return K.parent&&Ce(K)&&!e.isBinaryExpression(K.parent)})}function Ce(U){var K=U.parent;switch(K.kind){case 297:return!1}switch(U.kind){case 10:return K.kind!==265&&K.kind!==269;case 224:case 200:case 202:return!1;case 79:return K.kind!==202&&K.kind!==269&&K.kind!==274}return!0}function R(U){switch(U.kind){case 234:case 303:case 261:case 288:return!0;default:return!1}}function Y(U){return(e.isJsxElement(U)||e.isJsxSelfClosingElement(U)||e.isJsxFragment(U))&&(e.isJsxElement(U.parent)||e.isJsxFragment(U.parent))}})(n.extractSymbol||(n.extractSymbol={}))})(e.refactor||(e.refactor={}))}(jr||(jr={})),function(e){(function(n){var f="Extract type",p={name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias),kind:"refactor.extract.type"},a={name:"Extract to interface",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface),kind:"refactor.extract.interface"},d={name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef),kind:"refactor.extract.typedef"};n.registerRefactor(f,{kinds:[p.kind,a.kind,d.kind],getAvailableActions:function(b){var M=k(b,b.triggerReason==="invoked");return M?n.isRefactorErrorInfo(M)?b.preferences.provideRefactorNotApplicableReason?[{name:f,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:[Rn(Rn({},d),{notApplicableReason:M.error}),Rn(Rn({},p),{notApplicableReason:M.error}),Rn(Rn({},a),{notApplicableReason:M.error})]}]:e.emptyArray:[{name:f,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:M.isJS?[d]:e.append([p],M.typeElements&&a)}]:e.emptyArray},getEditsForAction:function(b,M){var S=b.file,B=k(b);e.Debug.assert(B&&!n.isRefactorErrorInfo(B),"Expected to find a range to extract");var H=e.getUniqueName("NewType",S),I=e.textChanges.ChangeTracker.with(b,function(O){switch(M){case p.name:return e.Debug.assert(!B.isJS,"Invalid actionName/JS combo"),A(O,S,H,B);case d.name:return e.Debug.assert(B.isJS,"Invalid actionName/JS combo"),ie(O,S,H,B);case a.name:return e.Debug.assert(!B.isJS&&!!B.typeElements,"Invalid actionName/JS combo"),z(O,S,H,B);default:e.Debug.fail("Unexpected action name")}}),w=S.fileName,x=e.getRenameLocation(I,w,H,!1);return{edits:I,renameFilename:w,renameLocation:x}}});function k(b,M){M===void 0&&(M=!0);var S=b.file,B=b.startPosition,H=e.isSourceFileJS(S),I=e.getTokenAtPosition(S,B),w=e.createTextRangeFromSpan(e.getRefactorContextSpan(b)),x=w.pos===w.end&&M,O=e.findAncestor(I,function(Q){return Q.parent&&e.isTypeNode(Q)&&!h(w,Q.parent,S)&&(x||e.nodeOverlapsWithStartEnd(I,S,w.pos,w.end))});if(!O||!e.isTypeNode(O))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_type_node)};var q=b.program.getTypeChecker(),Z=e.Debug.checkDefined(e.findAncestor(O,e.isStatement),"Should find a statement"),ne=v(q,O,Z,S);if(!ne)return{error:e.getLocaleSpecificMessage(e.Diagnostics.No_type_could_be_extracted_from_this_type_node)};var F=J(q,O);return{isJS:H,selection:O,firstStatement:Z,typeParameters:ne,typeElements:F}}function J(b,M){if(M)if(e.isIntersectionTypeNode(M)){for(var S=[],B=new e.Map,H=0,I=M.types;H<I.length;H++){var w=I[H],x=J(b,w);if(!x||!x.every(function(O){return O.name&&e.addToSeen(B,e.getNameFromPropertyName(O.name))}))return;e.addRange(S,x)}return S}else{if(e.isParenthesizedTypeNode(M))return J(b,M.type);if(e.isTypeLiteralNode(M))return M.members}}function h(b,M,S){return e.rangeContainsStartEnd(b,e.skipTrivia(S.text,M.pos),M.end)}function v(b,M,S,B){var H=[];return I(M)?void 0:H;function I(w){var x;if(e.isTypeReferenceNode(w)){if(e.isIdentifier(w.typeName)){var O=b.resolveName(w.typeName.text,w.typeName,262144,!0),q=e.tryCast((x=O==null?void 0:O.declarations)===null||x===void 0?void 0:x[0],e.isTypeParameterDeclaration);q&&h(S,q,B)&&!h(M,q,B)&&e.pushIfUnique(H,q)}}else if(e.isInferTypeNode(w)){var Z=e.findAncestor(w,function(F){return e.isConditionalTypeNode(F)&&h(F.extendsType,w,B)});if(!Z||!h(M,Z,B))return!0}else if(e.isTypePredicateNode(w)||e.isThisTypeNode(w)){var ne=e.findAncestor(w.parent,e.isFunctionLike);if(ne&&ne.type&&h(ne.type,w,B)&&!h(M,ne,B))return!0}else if(e.isTypeQueryNode(w)){if(e.isIdentifier(w.exprName)){var O=b.resolveName(w.exprName.text,w.exprName,111551,!1);if(O!=null&&O.valueDeclaration&&h(S,O.valueDeclaration,B)&&!h(M,O.valueDeclaration,B))return!0}else if(e.isThisIdentifier(w.exprName.left)&&!h(M,w.parent,B))return!0}return B&&e.isTupleTypeNode(w)&&e.getLineAndCharacterOfPosition(B,w.pos).line===e.getLineAndCharacterOfPosition(B,w.end).line&&e.setEmitFlags(w,1),e.forEachChild(w,I)}}function A(b,M,S,B){var H=B.firstStatement,I=B.selection,w=B.typeParameters,x=e.factory.createTypeAliasDeclaration(void 0,void 0,S,w.map(function(O){return e.factory.updateTypeParameterDeclaration(O,O.name,O.constraint,void 0)}),I);b.insertNodeBefore(M,H,e.ignoreSourceNewlines(x),!0),b.replaceNode(M,I,e.factory.createTypeReferenceNode(S,w.map(function(O){return e.factory.createTypeReferenceNode(O.name,void 0)})),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}function z(b,M,S,B){var H,I=B.firstStatement,w=B.selection,x=B.typeParameters,O=B.typeElements,q=e.factory.createInterfaceDeclaration(void 0,void 0,S,x,void 0,O);e.setTextRange(q,(H=O[0])===null||H===void 0?void 0:H.parent),b.insertNodeBefore(M,I,e.ignoreSourceNewlines(q),!0),b.replaceNode(M,w,e.factory.createTypeReferenceNode(S,x.map(function(Z){return e.factory.createTypeReferenceNode(Z.name,void 0)})),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}function ie(b,M,S,B){var H=B.firstStatement,I=B.selection,w=B.typeParameters,x=e.factory.createJSDocTypedefTag(e.factory.createIdentifier("typedef"),e.factory.createJSDocTypeExpression(I),e.factory.createIdentifier(S)),O=[];e.forEach(w,function(q){var Z=e.getEffectiveConstraintOfTypeParameter(q),ne=e.factory.createTypeParameterDeclaration(q.name),F=e.factory.createJSDocTemplateTag(e.factory.createIdentifier("template"),Z&&e.cast(Z,e.isJSDocTypeExpression),[ne]);O.push(F)}),b.insertNodeBefore(M,H,e.factory.createJSDocComment(void 0,e.factory.createNodeArray(e.concatenate(O,[x]))),!0),b.replaceNode(M,I,e.factory.createTypeReferenceNode(S,w.map(function(q){return e.factory.createTypeReferenceNode(q.name,void 0)})))}})(e.refactor||(e.refactor={}))}(jr||(jr={})),function(e){(function(n){(function(f){var p="Generate 'get' and 'set' accessors",a=e.Diagnostics.Generate_get_and_set_accessors.message,d={name:p,description:a,kind:"refactor.rewrite.property.generateAccessors"};n.registerRefactor(p,{kinds:[d.kind],getEditsForAction:function(k,J){if(k.endPosition){var h=e.codefix.getAccessorConvertiblePropertyAtPosition(k.file,k.program,k.startPosition,k.endPosition);e.Debug.assert(h&&!n.isRefactorErrorInfo(h),"Expected applicable refactor info");var v=e.codefix.generateAccessorFromProperty(k.file,k.program,k.startPosition,k.endPosition,k,J);if(v){var A=k.file.fileName,z=h.renameAccessor?h.accessorName:h.fieldName,ie=e.isIdentifier(z)?0:-1,b=ie+e.getRenameLocation(v,A,z.text,e.isParameter(h.declaration));return{renameFilename:A,renameLocation:b,edits:v}}}},getAvailableActions:function(k){if(!k.endPosition)return e.emptyArray;var J=e.codefix.getAccessorConvertiblePropertyAtPosition(k.file,k.program,k.startPosition,k.endPosition,k.triggerReason==="invoked");return J?n.isRefactorErrorInfo(J)?k.preferences.provideRefactorNotApplicableReason?[{name:p,description:a,actions:[Rn(Rn({},d),{notApplicableReason:J.error})]}]:e.emptyArray:[{name:p,description:a,actions:[d]}]:e.emptyArray}})})(n.generateGetAccessorAndSetAccessor||(n.generateGetAccessorAndSetAccessor={}))})(e.refactor||(e.refactor={}))}(jr||(jr={})),function(e){(function(n){function f(a){return a.error!==void 0}n.isRefactorErrorInfo=f;function p(a,d){return d?a.substr(0,d.length)===d:!0}n.refactorKindBeginsWith=p})(e.refactor||(e.refactor={}))}(jr||(jr={})),function(e){(function(n){var f="Move to a new file",p=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file),a={name:f,description:p,kind:"refactor.move.newFile"};n.registerRefactor(f,{kinds:[a.kind],getAvailableActions:function(he){var ve=J(he);return he.preferences.allowTextChangesInNewFiles&&ve?[{name:f,description:p,actions:[a]}]:he.preferences.provideRefactorNotApplicableReason?[{name:f,description:p,actions:[Rn(Rn({},a),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_statement_or_statements)})]}]:e.emptyArray},getEditsForAction:function(he,ve){e.Debug.assert(ve===f,"Wrong refactor invoked");var Ve=e.Debug.checkDefined(J(he)),_e=e.textChanges.ChangeTracker.with(he,function(Le){return k(he.file,he.program,Ve,Le,he.host,he.preferences)});return{edits:_e,renameFilename:void 0,renameLocation:void 0}}});function d(he){var ve=he.file,Ve=e.createTextRangeFromSpan(e.getRefactorContextSpan(he)),_e=ve.statements,Le=e.findIndex(_e,function(De){return De.end>Ve.pos});if(Le!==-1){var qe=_e[Le];if(e.isNamedDeclaration(qe)&&qe.name&&e.rangeContainsRange(qe.name,Ve))return{toMove:[_e[Le]],afterLast:_e[Le+1]};if(!(Ve.pos>qe.getStart(ve))){var Xe=e.findIndex(_e,function(De){return De.end>Ve.end},Le);if(!(Xe!==-1&&(Xe===0||_e[Xe].getStart(ve)<Ve.end)))return{toMove:_e.slice(Le,Xe===-1?_e.length:Xe),afterLast:Xe===-1?void 0:_e[Xe]}}}}function k(he,ve,Ve,_e,Le,qe){var Xe=ve.getTypeChecker(),De=y(he,Ve.all,Xe),Ae=e.getDirectoryPath(he.fileName),Ye=e.extensionFromPath(he.fileName),Dr=T(N(De.movedSymbols),Ye,Ae,Le),br=Dr+Ye;_e.createNewFile(he,e.combinePaths(Ae,br),z(he,De,_e,Ve,ve,Dr,qe)),A(ve,_e,he.fileName,br,e.hostGetCanonicalFileName(Le))}function J(he){var ve=d(he);if(ve!==void 0){var Ve=[],_e=[],Le=ve.toMove,qe=ve.afterLast;return e.getRangesWhere(Le,h,function(Xe,De){for(var Ae=Xe;Ae<De;Ae++)Ve.push(Le[Ae]);_e.push({first:Le[Xe],afterLast:qe})}),Ve.length===0?void 0:{all:Ve,ranges:_e}}}function h(he){return!v(he)&&!e.isPrologueDirective(he)}function v(he){switch(he.kind){case 265:return!0;case 264:return!e.hasSyntacticModifier(he,1);case 236:return he.declarationList.declarations.every(function(ve){return!!ve.initializer&&e.isRequireCall(ve.initializer,!0)});default:return!1}}function A(he,ve,Ve,_e,Le){var qe=he.getCompilerOptions().configFile;if(qe){var Xe=e.normalizePath(e.combinePaths(Ve,"..",_e)),De=e.getRelativePathFromFile(qe.fileName,Xe,Le),Ae=qe.statements[0]&&e.tryCast(qe.statements[0].expression,e.isObjectLiteralExpression),Ye=Ae&&e.find(Ae.properties,function(Dr){return e.isPropertyAssignment(Dr)&&e.isStringLiteral(Dr.name)&&Dr.name.text==="files"});Ye&&e.isArrayLiteralExpression(Ye.initializer)&&ve.insertNodeInListAfter(qe,e.last(Ye.initializer.elements),e.factory.createStringLiteral(De),Ye.initializer.elements)}}function z(he,ve,Ve,_e,Le,qe,Xe){var De=Le.getTypeChecker(),Ae=e.takeWhile(he.statements,e.isPrologueDirective);if(!he.externalModuleIndicator&&!he.commonJsModuleIndicator)return ie(he,_e.ranges,Ve),Gt(Gt([],Ae,!0),_e.all,!0);var Ye=!!he.externalModuleIndicator,Dr=e.getQuotePreference(he,Xe),br=x(ve.oldFileImportsFromNewFile,qe,Ye,Dr);br&&e.insertImports(Ve,he,br,!0),b(he,_e.all,Ve,ve.unusedImportsFromOldFile,De),ie(he,_e.ranges,Ve),M(Ve,Le,he,ve.movedSymbols,qe);var lr=re(he,ve.oldImportsNeededByNewFile,ve.newFileImportsFromOldFile,Ve,De,Ye,Dr),Ar=ne(he,_e.all,ve.oldFileImportsFromNewFile,Ye);return lr.length&&Ar.length?Gt(Gt(Gt(Gt([],Ae,!0),lr,!0),[4],!1),Ar,!0):Gt(Gt(Gt([],Ae,!0),lr,!0),Ar,!0)}function ie(he,ve,Ve){for(var _e=0,Le=ve;_e<Le.length;_e++){var qe=Le[_e],Xe=qe.first,De=qe.afterLast;Ve.deleteNodeRangeExcludingEnd(he,Xe,De)}}function b(he,ve,Ve,_e,Le){for(var qe=0,Xe=he.statements;qe<Xe.length;qe++){var De=Xe[qe];e.contains(ve,De)||w(De,function(Ae){return F(he,Ae,Ve,function(Ye){return _e.has(Le.getSymbolAtLocation(Ye))})})}}function M(he,ve,Ve,_e,Le){for(var qe=ve.getTypeChecker(),Xe=function(Dr){if(Dr===Ve)return"continue";for(var br=function(Ke){w(Ke,function(Me){if(qe.getSymbolAtLocation(I(Me))===Ve.symbol){var Hr=function(Fe){var $e=e.isBindingElement(Fe.parent)?e.getPropertySymbolFromBindingElement(qe,Fe.parent):e.skipAlias(qe.getSymbolAtLocation(Fe),qe);return!!$e&&_e.has($e)};F(Dr,Me,he,Hr);var ur=e.combinePaths(e.getDirectoryPath(I(Me).text),Le),gr=m(Me,e.factory.createStringLiteral(ur),Hr);gr&&he.insertNodeAfter(Dr,Ke,gr);var de=S(Me);de&&B(he,Dr,qe,_e,Le,ur,de,Me)}})},lr=0,Ar=Dr.statements;lr<Ar.length;lr++){var kr=Ar[lr];br(kr)}},De=0,Ae=ve.getSourceFiles();De<Ae.length;De++){var Ye=Ae[De];Xe(Ye)}}function S(he){switch(he.kind){case 265:return he.importClause&&he.importClause.namedBindings&&he.importClause.namedBindings.kind===267?he.importClause.namedBindings.name:void 0;case 264:return he.name;case 253:return e.tryCast(he.name,e.isIdentifier);default:return e.Debug.assertNever(he,"Unexpected node kind ".concat(he.kind))}}function B(he,ve,Ve,_e,Le,qe,Xe,De){var Ae=e.codefix.moduleSpecifierToValidIdentifier(Le,99),Ye=!1,Dr=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(Xe,Ve,ve,function(Ke){e.isPropertyAccessExpression(Ke.parent)&&(Ye=Ye||!!Ve.resolveName(Ae,Ke,67108863,!0),_e.has(Ve.getSymbolAtLocation(Ke.parent.name))&&Dr.push(Ke))}),Dr.length){for(var br=Ye?e.getUniqueName(Ae,ve):Ae,lr=0,Ar=Dr;lr<Ar.length;lr++){var kr=Ar[lr];he.replaceNode(ve,kr,e.factory.createIdentifier(br))}he.insertNodeAfter(ve,De,H(De,Le,qe))}}function H(he,ve,Ve){var _e=e.factory.createIdentifier(ve),Le=e.factory.createStringLiteral(Ve);switch(he.kind){case 265:return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(_e)),Le,void 0);case 264:return e.factory.createImportEqualsDeclaration(void 0,void 0,!1,_e,e.factory.createExternalModuleReference(Le));case 253:return e.factory.createVariableDeclaration(_e,void 0,void 0,Z(Le));default:return e.Debug.assertNever(he,"Unexpected node kind ".concat(he.kind))}}function I(he){return he.kind===265?he.moduleSpecifier:he.kind===264?he.moduleReference.expression:he.initializer.arguments[0]}function w(he,ve){if(e.isImportDeclaration(he))e.isStringLiteral(he.moduleSpecifier)&&ve(he);else if(e.isImportEqualsDeclaration(he))e.isExternalModuleReference(he.moduleReference)&&e.isStringLiteralLike(he.moduleReference.expression)&&ve(he);else if(e.isVariableStatement(he))for(var Ve=0,_e=he.declarationList.declarations;Ve<_e.length;Ve++){var Le=_e[Ve];Le.initializer&&e.isRequireCall(Le.initializer,!0)&&ve(Le)}}function x(he,ve,Ve,_e){var Le,qe=[];return he.forEach(function(Xe){Xe.escapedName==="default"?Le=e.factory.createIdentifier(e.symbolNameNoDefault(Xe)):qe.push(Xe.name)}),O(Le,qe,ve,Ve,_e)}function O(he,ve,Ve,_e,Le){if(Ve=e.ensurePathIsNonModuleName(Ve),_e){var qe=ve.map(function(De){return e.factory.createImportSpecifier(!1,void 0,e.factory.createIdentifier(De))});return e.makeImportIfNecessary(he,qe,Ve,Le)}else{e.Debug.assert(!he,"No default import should exist");var Xe=ve.map(function(De){return e.factory.createBindingElement(void 0,void 0,De)});return Xe.length?q(e.factory.createObjectBindingPattern(Xe),void 0,Z(e.factory.createStringLiteral(Ve))):void 0}}function q(he,ve,Ve,_e){return _e===void 0&&(_e=2),e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(he,void 0,ve,Ve)],_e))}function Z(he){return e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[he])}function ne(he,ve,Ve,_e){return e.flatMap(ve,function(Le){if(j(Le)&&!Te(he,Le,_e)&&Ce(Le,function(Xe){return Ve.has(e.Debug.checkDefined(Xe.symbol))})){var qe=ge(Le,_e);if(qe)return qe}return Le})}function F(he,ve,Ve,_e){switch(ve.kind){case 265:Q(he,ve,Ve,_e);break;case 264:_e(ve.name)&&Ve.delete(he,ve);break;case 253:V(he,ve,Ve,_e);break;default:e.Debug.assertNever(ve,"Unexpected import decl kind ".concat(ve.kind))}}function Q(he,ve,Ve,_e){if(ve.importClause){var Le=ve.importClause,qe=Le.name,Xe=Le.namedBindings,De=!qe||_e(qe),Ae=!Xe||(Xe.kind===267?_e(Xe.name):Xe.elements.length!==0&&Xe.elements.every(function(lr){return _e(lr.name)}));if(De&&Ae)Ve.delete(he,ve);else if(qe&&De&&Ve.delete(he,qe),Xe){if(Ae)Ve.replaceNode(he,ve.importClause,e.factory.updateImportClause(ve.importClause,ve.importClause.isTypeOnly,qe,void 0));else if(Xe.kind===268)for(var Ye=0,Dr=Xe.elements;Ye<Dr.length;Ye++){var br=Dr[Ye];_e(br.name)&&Ve.delete(he,br)}}}}function V(he,ve,Ve,_e){var Le=ve.name;switch(Le.kind){case 79:_e(Le)&&Ve.delete(he,Le);break;case 201:break;case 200:if(Le.elements.every(function(Ae){return e.isIdentifier(Ae.name)&&_e(Ae.name)}))Ve.delete(he,e.isVariableDeclarationList(ve.parent)&&ve.parent.declarations.length===1?ve.parent.parent:ve);else for(var qe=0,Xe=Le.elements;qe<Xe.length;qe++){var De=Xe[qe];e.isIdentifier(De.name)&&_e(De.name)&&Ve.delete(he,De.name)}break}}function re(he,ve,Ve,_e,Le,qe,Xe){for(var De=[],Ae=0,Ye=he.statements;Ae<Ye.length;Ae++){var Dr=Ye[Ae];w(Dr,function(kr){e.append(De,m(kr,I(kr),function(Ke){return ve.has(Le.getSymbolAtLocation(Ke))}))})}var br,lr=[],Ar=e.nodeSeenTracker();return Ve.forEach(function(kr){if(kr.declarations)for(var Ke=0,Me=kr.declarations;Ke<Me.length;Ke++){var Hr=Me[Ke];if(ue(Hr)){var ur=Y(Hr);if(ur){var gr=U(Hr);Ar(gr)&&K(he,gr,ur,_e,qe),e.hasSyntacticModifier(Hr,512)?br=ur:lr.push(ur.text)}}}}),e.append(De,O(br,lr,e.removeFileExtension(e.getBaseFileName(he.fileName)),qe,Xe)),De}function T(he,ve,Ve,_e){for(var Le=he,qe=1;;qe++){var Xe=e.combinePaths(Ve,Le+ve);if(!_e.fileExists(Xe))return Le;Le="".concat(he,".").concat(qe)}}function N(he){return he.forEachEntry(e.symbolNameNoDefault)||"newFile"}function y(he,ve,Ve){var _e=new te,Le=new te,qe=new te,Xe=e.find(ve,function(ur){return!!(ur.transformFlags&2)}),De=Hr(Xe);De&&Le.add(De);for(var Ae=0,Ye=ve;Ae<Ye.length;Ae++){var Dr=Ye[Ae];Ce(Dr,function(ur){_e.add(e.Debug.checkDefined(e.isExpressionStatement(ur)?Ve.getSymbolAtLocation(ur.expression.left):ur.symbol,"Need a symbol here"))})}for(var br=0,lr=ve;br<lr.length;br++){var Dr=lr[br];P(Dr,Ve,function(gr){if(gr.declarations)for(var de=0,Fe=gr.declarations;de<Fe.length;de++){var $e=Fe[de];D($e)?Le.add(gr):ue($e)&&X($e)===he&&!_e.has(gr)&&qe.add(gr)}})}for(var Ar=Le.clone(),kr=new te,Ke=0,Me=he.statements;Ke<Me.length;Ke++){var Dr=Me[Ke];e.contains(ve,Dr)||(De&&Dr.transformFlags&2&&Ar.delete(De),P(Dr,Ve,function(gr){_e.has(gr)&&kr.add(gr),Ar.delete(gr)}))}return{movedSymbols:_e,newFileImportsFromOldFile:qe,oldFileImportsFromNewFile:kr,oldImportsNeededByNewFile:Le,unusedImportsFromOldFile:Ar};function Hr(ur){if(ur!==void 0){var gr=Ve.getJsxNamespace(ur),de=Ve.resolveName(gr,ur,1920,!0);return de&&e.some(de.declarations,D)?de:void 0}}}function D(he){switch(he.kind){case 264:case 269:case 266:case 267:return!0;case 253:return C(he);case 202:return e.isVariableDeclaration(he.parent.parent)&&C(he.parent.parent);default:return!1}}function C(he){return e.isSourceFile(he.parent.parent.parent)&&!!he.initializer&&e.isRequireCall(he.initializer,!0)}function m(he,ve,Ve){switch(he.kind){case 265:{var _e=he.importClause;if(!_e)return;var Le=_e.name&&Ve(_e.name)?_e.name:void 0,qe=_e.namedBindings&&u(_e.namedBindings,Ve);return Le||qe?e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,Le,qe),ve,void 0):void 0}case 264:return Ve(he.name)?he:void 0;case 253:{var Xe=g(he.name,Ve);return Xe?q(Xe,he.type,Z(ve),he.parent.flags):void 0}default:return e.Debug.assertNever(he,"Unexpected import kind ".concat(he.kind))}}function u(he,ve){if(he.kind===267)return ve(he.name)?he:void 0;var Ve=he.elements.filter(function(_e){return ve(_e.name)});return Ve.length?e.factory.createNamedImports(Ve):void 0}function g(he,ve){switch(he.kind){case 79:return ve(he)?he:void 0;case 201:return he;case 200:{var Ve=he.elements.filter(function(_e){return _e.propertyName||!e.isIdentifier(_e.name)||ve(_e.name)});return Ve.length?e.factory.createObjectBindingPattern(Ve):void 0}}}function P(he,ve,Ve){he.forEachChild(function _e(Le){if(e.isIdentifier(Le)&&!e.isDeclarationName(Le)){var qe=ve.getSymbolAtLocation(Le);qe&&Ve(qe)}else Le.forEachChild(_e)})}var te=function(){function he(){this.map=new e.Map}return he.prototype.add=function(ve){this.map.set(String(e.getSymbolId(ve)),ve)},he.prototype.has=function(ve){return this.map.has(String(e.getSymbolId(ve)))},he.prototype.delete=function(ve){this.map.delete(String(e.getSymbolId(ve)))},he.prototype.forEach=function(ve){this.map.forEach(ve)},he.prototype.forEachEntry=function(ve){return e.forEachEntry(this.map,ve)},he.prototype.clone=function(){var ve=new he;return e.copyEntries(this.map,ve.map),ve},he}();function ue(he){return Se(he)&&e.isSourceFile(he.parent)||e.isVariableDeclaration(he)&&e.isSourceFile(he.parent.parent.parent)}function X(he){return e.isVariableDeclaration(he)?he.parent.parent.parent:he.parent}function j(he){return e.Debug.assert(e.isSourceFile(he.parent),"Node parent should be a SourceFile"),Se(he)||e.isVariableStatement(he)}function Se(he){switch(he.kind){case 255:case 256:case 260:case 259:case 258:case 257:case 264:return!0;default:return!1}}function Ce(he,ve){switch(he.kind){case 255:case 256:case 260:case 259:case 258:case 257:case 264:return ve(he);case 236:return e.firstDefined(he.declarationList.declarations,function(_e){return R(_e.name,ve)});case 237:{var Ve=he.expression;return e.isBinaryExpression(Ve)&&e.getAssignmentDeclarationKind(Ve)===1?ve(he):void 0}}}function R(he,ve){switch(he.kind){case 79:return ve(e.cast(he.parent,function(Ve){return e.isVariableDeclaration(Ve)||e.isBindingElement(Ve)}));case 201:case 200:return e.firstDefined(he.elements,function(Ve){return e.isOmittedExpression(Ve)?void 0:R(Ve.name,ve)});default:return e.Debug.assertNever(he,"Unexpected name kind ".concat(he.kind))}}function Y(he){return e.isExpressionStatement(he)?e.tryCast(he.expression.left.name,e.isIdentifier):e.tryCast(he.name,e.isIdentifier)}function U(he){switch(he.kind){case 253:return he.parent.parent;case 202:return U(e.cast(he.parent.parent,function(ve){return e.isVariableDeclaration(ve)||e.isBindingElement(ve)}));default:return he}}function K(he,ve,Ve,_e,Le){if(!Te(he,ve,Le,Ve))if(Le)e.isExpressionStatement(ve)||_e.insertExportModifier(he,ve);else{var qe=Ie(ve);qe.length!==0&&_e.insertNodesAfter(he,ve,qe.map(Ge))}}function Te(he,ve,Ve,_e){var Le;return Ve?!e.isExpressionStatement(ve)&&e.hasSyntacticModifier(ve,1)||!!(_e&&(!((Le=he.symbol.exports)===null||Le===void 0)&&Le.has(_e.escapedText))):Ie(ve).some(function(qe){return he.symbol.exports.has(e.escapeLeadingUnderscores(qe))})}function ge(he,ve){return ve?[ke(he)]:Pe(he)}function ke(he){var ve=e.concatenate([e.factory.createModifier(93)],he.modifiers);switch(he.kind){case 255:return e.factory.updateFunctionDeclaration(he,he.decorators,ve,he.asteriskToken,he.name,he.typeParameters,he.parameters,he.type,he.body);case 256:return e.factory.updateClassDeclaration(he,he.decorators,ve,he.name,he.typeParameters,he.heritageClauses,he.members);case 236:return e.factory.updateVariableStatement(he,ve,he.declarationList);case 260:return e.factory.updateModuleDeclaration(he,he.decorators,ve,he.name,he.body);case 259:return e.factory.updateEnumDeclaration(he,he.decorators,ve,he.name,he.members);case 258:return e.factory.updateTypeAliasDeclaration(he,he.decorators,ve,he.name,he.typeParameters,he.type);case 257:return e.factory.updateInterfaceDeclaration(he,he.decorators,ve,he.name,he.typeParameters,he.heritageClauses,he.members);case 264:return e.factory.updateImportEqualsDeclaration(he,he.decorators,ve,he.isTypeOnly,he.name,he.moduleReference);case 237:return e.Debug.fail();default:return e.Debug.assertNever(he,"Unexpected declaration kind ".concat(he.kind))}}function Pe(he){return Gt([he],Ie(he).map(Ge),!0)}function Ie(he){switch(he.kind){case 255:case 256:return[he.name.text];case 236:return e.mapDefined(he.declarationList.declarations,function(ve){return e.isIdentifier(ve.name)?ve.name.text:void 0});case 260:case 259:case 258:case 257:case 264:return e.emptyArray;case 237:return e.Debug.fail("Can't export an ExpressionStatement");default:return e.Debug.assertNever(he,"Unexpected decl kind ".concat(he.kind))}}function Ge(he){return e.factory.createExpressionStatement(e.factory.createBinaryExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),e.factory.createIdentifier(he)),63,e.factory.createIdentifier(he)))}})(e.refactor||(e.refactor={}))}(jr||(jr={})),function(e){(function(n){(function(f){var p="Add or remove braces in an arrow function",a=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,d={name:"Add braces to arrow function",description:e.Diagnostics.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},k={name:"Remove braces from arrow function",description:e.Diagnostics.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"};n.registerRefactor(p,{kinds:[k.kind],getEditsForAction:h,getAvailableActions:J});function J(A){var z=A.file,ie=A.startPosition,b=A.triggerReason,M=v(z,ie,b==="invoked");return M?n.isRefactorErrorInfo(M)?A.preferences.provideRefactorNotApplicableReason?[{name:p,description:a,actions:[Rn(Rn({},d),{notApplicableReason:M.error}),Rn(Rn({},k),{notApplicableReason:M.error})]}]:e.emptyArray:[{name:p,description:a,actions:[M.addBraces?d:k]}]:e.emptyArray}function h(A,z){var ie=A.file,b=A.startPosition,M=v(ie,b);e.Debug.assert(M&&!n.isRefactorErrorInfo(M),"Expected applicable refactor info");var S=M.expression,B=M.returnStatement,H=M.func,I;if(z===d.name){var w=e.factory.createReturnStatement(S);I=e.factory.createBlock([w],!0),e.copyLeadingComments(S,w,ie,3,!0)}else if(z===k.name&&B){var x=S||e.factory.createVoidZero();I=e.needsParentheses(x)?e.factory.createParenthesizedExpression(x):x,e.copyTrailingAsLeadingComments(B,I,ie,3,!1),e.copyLeadingComments(B,I,ie,3,!1),e.copyTrailingComments(B,I,ie,3,!1)}else e.Debug.fail("invalid action");var O=e.textChanges.ChangeTracker.with(A,function(q){q.replaceNode(ie,H.body,I)});return{renameFilename:void 0,renameLocation:void 0,edits:O}}function v(A,z,ie,b){ie===void 0&&(ie=!0);var M=e.getTokenAtPosition(A,z),S=e.getContainingFunction(M);if(!S)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_a_containing_arrow_function)};if(!e.isArrowFunction(S))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Containing_function_is_not_an_arrow_function)};if(!(!e.rangeContainsRange(S,M)||e.rangeContainsRange(S.body,M)&&!ie)){if(n.refactorKindBeginsWith(d.kind,b)&&e.isExpression(S.body))return{func:S,addBraces:!0,expression:S.body};if(n.refactorKindBeginsWith(k.kind,b)&&e.isBlock(S.body)&&S.body.statements.length===1){var B=e.first(S.body.statements);if(e.isReturnStatement(B))return{func:S,addBraces:!1,expression:B.expression,returnStatement:B}}}}})(n.addOrRemoveBracesToArrowFunction||(n.addOrRemoveBracesToArrowFunction={}))})(e.refactor||(e.refactor={}))}(jr||(jr={})),function(e){(function(n){(function(f){var p="Convert parameters to destructured object",a=2,d=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object),k={name:p,description:d,kind:"refactor.rewrite.parameters.toDestructured"};n.registerRefactor(p,{kinds:[k.kind],getEditsForAction:h,getAvailableActions:J});function J(u){var g=u.file,P=u.startPosition,te=e.isSourceFileJS(g);if(te)return e.emptyArray;var ue=H(g,P,u.program.getTypeChecker());return ue?[{name:p,description:d,actions:[k]}]:e.emptyArray}function h(u,g){e.Debug.assert(g===p,"Unexpected action name");var P=u.file,te=u.startPosition,ue=u.program,X=u.cancellationToken,j=u.host,Se=H(P,te,ue.getTypeChecker());if(!(!Se||!X)){var Ce=A(Se,ue,X);if(Ce.valid){var R=e.textChanges.ChangeTracker.with(u,function(Y){return v(P,ue,j,Y,Se,Ce)});return{renameFilename:void 0,renameLocation:void 0,edits:R}}return{edits:[]}}}function v(u,g,P,te,ue,X){var j=X.signature,Se=e.map(y(ue,g,P),function(ke){return e.getSynthesizedDeepClone(ke)});if(j){var Ce=e.map(y(j,g,P),function(ke){return e.getSynthesizedDeepClone(ke)});ge(j,Ce)}ge(ue,Se);for(var R=e.sortAndDeduplicate(X.functionCalls,function(ke,Pe){return e.compareValues(ke.pos,Pe.pos)}),Y=0,U=R;Y<U.length;Y++){var K=U[Y];if(K.arguments&&K.arguments.length){var Te=e.getSynthesizedDeepClone(N(ue,K.arguments),!0);te.replaceNodeRange(e.getSourceFileOfNode(K),e.first(K.arguments),e.last(K.arguments),Te,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function ge(ke,Pe){te.replaceNodeRangeWithNodes(u,e.first(ke.parameters),e.last(ke.parameters),Pe,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function A(u,g,P){var te=m(u),ue=e.isConstructorDeclaration(u)?C(u):[],X=e.deduplicate(Gt(Gt([],te,!0),ue,!0),e.equateValues),j=g.getTypeChecker(),Se=e.flatMap(X,function(U){return e.FindAllReferences.getReferenceEntriesForNode(-1,U,g,g.getSourceFiles(),P)}),Ce=R(Se);return e.every(Ce.declarations,function(U){return e.contains(X,U)})||(Ce.valid=!1),Ce;function R(U){for(var K={accessExpressions:[],typeUsages:[]},Te={functionCalls:[],declarations:[],classReferences:K,valid:!0},ge=e.map(te,Y),ke=e.map(ue,Y),Pe=e.isConstructorDeclaration(u),Ie=e.map(te,function(Ae){return z(Ae,j)}),Ge=0,he=U;Ge<he.length;Ge++){var ve=he[Ge];if(ve.kind===0){Te.valid=!1;continue}if(e.contains(Ie,Y(ve.node))){if(w(ve.node.parent)){Te.signature=ve.node.parent;continue}var Ve=M(ve);if(Ve){Te.functionCalls.push(Ve);continue}}var _e=z(ve.node,j);if(_e&&e.contains(Ie,_e)){var Le=b(ve);if(Le){Te.declarations.push(Le);continue}}if(e.contains(ge,Y(ve.node))||e.isNewExpressionTarget(ve.node)){var qe=ie(ve);if(qe)continue;var Le=b(ve);if(Le){Te.declarations.push(Le);continue}var Ve=M(ve);if(Ve){Te.functionCalls.push(Ve);continue}}if(Pe&&e.contains(ke,Y(ve.node))){var qe=ie(ve);if(qe)continue;var Le=b(ve);if(Le){Te.declarations.push(Le);continue}var Xe=S(ve);if(Xe){K.accessExpressions.push(Xe);continue}if(e.isClassDeclaration(u.parent)){var De=B(ve);if(De){K.typeUsages.push(De);continue}}}Te.valid=!1}return Te}function Y(U){var K=j.getSymbolAtLocation(U);return K&&e.getSymbolTarget(K,j)}}function z(u,g){var P=e.getContainingObjectLiteralElement(u);if(P){var te=g.getContextualTypeForObjectLiteralElement(P),ue=te==null?void 0:te.getSymbol();if(ue&&!(e.getCheckFlags(ue)&6))return ue}}function ie(u){var g=u.node;if(e.isImportSpecifier(g.parent)||e.isImportClause(g.parent)||e.isImportEqualsDeclaration(g.parent)||e.isNamespaceImport(g.parent)||e.isExportSpecifier(g.parent)||e.isExportAssignment(g.parent))return g}function b(u){if(e.isDeclaration(u.node.parent))return u.node}function M(u){if(u.node.parent){var g=u.node,P=g.parent;switch(P.kind){case 207:case 208:var te=e.tryCast(P,e.isCallOrNewExpression);if(te&&te.expression===g)return te;break;case 205:var ue=e.tryCast(P,e.isPropertyAccessExpression);if(ue&&ue.parent&&ue.name===g){var X=e.tryCast(ue.parent,e.isCallOrNewExpression);if(X&&X.expression===ue)return X}break;case 206:var j=e.tryCast(P,e.isElementAccessExpression);if(j&&j.parent&&j.argumentExpression===g){var Se=e.tryCast(j.parent,e.isCallOrNewExpression);if(Se&&Se.expression===j)return Se}break}}}function S(u){if(u.node.parent){var g=u.node,P=g.parent;switch(P.kind){case 205:var te=e.tryCast(P,e.isPropertyAccessExpression);if(te&&te.expression===g)return te;break;case 206:var ue=e.tryCast(P,e.isElementAccessExpression);if(ue&&ue.expression===g)return ue;break}}}function B(u){var g=u.node;if(e.getMeaningFromLocation(g)===2||e.isExpressionWithTypeArgumentsInClassExtendsClause(g.parent))return g}function H(u,g,P){var te=e.getTouchingToken(u,g),ue=e.getContainingFunctionDeclaration(te);if(!I(te)&&ue&&x(ue,P)&&e.rangeContainsRange(ue,te)&&!(ue.body&&e.rangeContainsRange(ue.body,te)))return ue}function I(u){var g=e.findAncestor(u,e.isJSDocNode);if(g){var P=e.findAncestor(g,function(te){return!e.isJSDocNode(te)});return!!P&&e.isFunctionLikeDeclaration(P)}return!1}function w(u){return e.isMethodSignature(u)&&(e.isInterfaceDeclaration(u.parent)||e.isTypeLiteralNode(u.parent))}function x(u,g){var P;if(!Z(u.parameters,g))return!1;switch(u.kind){case 255:return q(u)&&O(u,g);case 168:if(e.isObjectLiteralExpression(u.parent)){var te=z(u.name,g);return((P=te==null?void 0:te.declarations)===null||P===void 0?void 0:P.length)===1&&O(u,g)}return O(u,g);case 170:return e.isClassDeclaration(u.parent)?q(u.parent)&&O(u,g):F(u.parent.parent)&&O(u,g);case 212:case 213:return F(u.parent)}return!1}function O(u,g){return!!u.body&&!g.isImplementationOfOverload(u)}function q(u){if(!u.name){var g=e.findModifier(u,88);return!!g}return!0}function Z(u,g){return V(u)>=a&&e.every(u,function(P){return ne(P,g)})}function ne(u,g){if(e.isRestParameter(u)){var P=g.getTypeAtLocation(u);if(!g.isArrayType(P)&&!g.isTupleType(P))return!1}return!u.modifiers&&!u.decorators&&e.isIdentifier(u.name)}function F(u){return e.isVariableDeclaration(u)&&e.isVarConst(u)&&e.isIdentifier(u.name)&&!u.type}function Q(u){return u.length>0&&e.isThis(u[0].name)}function V(u){return Q(u)?u.length-1:u.length}function re(u){return Q(u)&&(u=e.factory.createNodeArray(u.slice(1),u.hasTrailingComma)),u}function T(u,g){return e.isIdentifier(g)&&e.getTextOfIdentifierOrLiteral(g)===u?e.factory.createShorthandPropertyAssignment(u):e.factory.createPropertyAssignment(u,g)}function N(u,g){var P=re(u.parameters),te=e.isRestParameter(e.last(P)),ue=te?g.slice(0,P.length-1):g,X=e.map(ue,function(R,Y){var U=D(P[Y]),K=T(U,R);return e.suppressLeadingAndTrailingTrivia(K.name),e.isPropertyAssignment(K)&&e.suppressLeadingAndTrailingTrivia(K.initializer),e.copyComments(R,K),K});if(te&&g.length>=P.length){var j=g.slice(P.length-1),Se=e.factory.createPropertyAssignment(D(e.last(P)),e.factory.createArrayLiteralExpression(j));X.push(Se)}var Ce=e.factory.createObjectLiteralExpression(X,!1);return Ce}function y(u,g,P){var te=g.getTypeChecker(),ue=re(u.parameters),X=e.map(ue,K),j=e.factory.createObjectBindingPattern(X),Se=Te(ue),Ce;e.every(ue,Pe)&&(Ce=e.factory.createObjectLiteralExpression());var R=e.factory.createParameterDeclaration(void 0,void 0,void 0,j,void 0,Se,Ce);if(Q(u.parameters)){var Y=u.parameters[0],U=e.factory.createParameterDeclaration(void 0,void 0,void 0,Y.name,void 0,Y.type);return e.suppressLeadingAndTrailingTrivia(U.name),e.copyComments(Y.name,U.name),Y.type&&(e.suppressLeadingAndTrailingTrivia(U.type),e.copyComments(Y.type,U.type)),e.factory.createNodeArray([U,R])}return e.factory.createNodeArray([R]);function K(Ie){var Ge=e.factory.createBindingElement(void 0,void 0,D(Ie),e.isRestParameter(Ie)&&Pe(Ie)?e.factory.createArrayLiteralExpression():Ie.initializer);return e.suppressLeadingAndTrailingTrivia(Ge),Ie.initializer&&Ge.initializer&&e.copyComments(Ie.initializer,Ge.initializer),Ge}function Te(Ie){var Ge=e.map(Ie,ge),he=e.addEmitFlags(e.factory.createTypeLiteralNode(Ge),1);return he}function ge(Ie){var Ge=Ie.type;!Ge&&(Ie.initializer||e.isRestParameter(Ie))&&(Ge=ke(Ie));var he=e.factory.createPropertySignature(void 0,D(Ie),Pe(Ie)?e.factory.createToken(57):Ie.questionToken,Ge);return e.suppressLeadingAndTrailingTrivia(he),e.copyComments(Ie.name,he.name),Ie.type&&he.type&&e.copyComments(Ie.type,he.type),he}function ke(Ie){var Ge=te.getTypeAtLocation(Ie);return e.getTypeNodeIfAccessible(Ge,Ie,g,P)}function Pe(Ie){if(e.isRestParameter(Ie)){var Ge=te.getTypeAtLocation(Ie);return!te.isTupleType(Ge)}return te.isOptionalParameter(Ie)}}function D(u){return e.getTextOfIdentifierOrLiteral(u.name)}function C(u){switch(u.parent.kind){case 256:var g=u.parent;if(g.name)return[g.name];var P=e.Debug.checkDefined(e.findModifier(g,88),"Nameless class declaration should be a default export");return[P];case 225:var te=u.parent,ue=u.parent.parent,X=te.name;return X?[X,ue.name]:[ue.name]}}function m(u){switch(u.kind){case 255:if(u.name)return[u.name];var g=e.Debug.checkDefined(e.findModifier(u,88),"Nameless function declaration should be a default export");return[g];case 168:return[u.name];case 170:var P=e.Debug.checkDefined(e.findChildOfKind(u,134,u.getSourceFile()),"Constructor declaration should have constructor keyword");if(u.parent.kind===225){var te=u.parent.parent;return[te.name,P]}return[P];case 213:return[u.parent.name];case 212:return u.name?[u.name,u.parent.name]:[u.parent.name];default:return e.Debug.assertNever(u,"Unexpected function declaration kind ".concat(u.kind))}}})(n.convertParamsToDestructuredObject||(n.convertParamsToDestructuredObject={}))})(e.refactor||(e.refactor={}))}(jr||(jr={})),function(e){(function(n){(function(f){var p="Convert to template string",a=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string),d={name:p,description:a,kind:"refactor.rewrite.string"};n.registerRefactor(p,{kinds:[d.kind],getEditsForAction:h,getAvailableActions:k});function k(O){var q=O.file,Z=O.startPosition,ne=J(q,Z),F=z(ne),Q={name:p,description:a,actions:[]};return e.isBinaryExpression(F)&&ie(F).isValidConcatenation?(Q.actions.push(d),[Q]):O.preferences.provideRefactorNotApplicableReason?(Q.actions.push(Rn(Rn({},d),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_string_concatenation)})),[Q]):e.emptyArray}function J(O,q){var Z=e.getTokenAtPosition(O,q),ne=z(Z),F=!ie(ne).isValidConcatenation;return F&&e.isParenthesizedExpression(ne.parent)&&e.isBinaryExpression(ne.parent.parent)?ne.parent.parent:Z}function h(O,q){var Z=O.file,ne=O.startPosition,F=J(Z,ne);switch(q){case a:return{edits:v(O,F)};default:return e.Debug.fail("invalid action")}}function v(O,q){var Z=z(q),ne=O.file,F=I(ie(Z),ne),Q=e.getTrailingCommentRanges(ne.text,Z.end);if(Q){var V=Q[Q.length-1],re={pos:Q[0].pos,end:V.end};return e.textChanges.ChangeTracker.with(O,function(T){T.deleteRange(ne,re),T.replaceNode(ne,Z,F)})}else return e.textChanges.ChangeTracker.with(O,function(T){return T.replaceNode(ne,Z,F)})}function A(O){return O.operatorToken.kind!==63}function z(O){var q=e.findAncestor(O.parent,function(Z){switch(Z.kind){case 205:case 206:return!1;case 222:case 220:return!(e.isBinaryExpression(Z.parent)&&A(Z.parent));default:return"quit"}});return q||O}function ie(O){var q=function(re){if(!e.isBinaryExpression(re))return{nodes:[re],operators:[],validOperators:!0,hasString:e.isStringLiteral(re)||e.isNoSubstitutionTemplateLiteral(re)};var T=q(re.left),N=T.nodes,y=T.operators,D=T.hasString,C=T.validOperators;if(!(D||e.isStringLiteral(re.right)||e.isTemplateExpression(re.right)))return{nodes:[re],operators:[],hasString:!1,validOperators:!0};var m=re.operatorToken.kind===39,u=C&&m;return N.push(re.right),y.push(re.operatorToken),{nodes:N,operators:y,hasString:!0,validOperators:u}},Z=q(O),ne=Z.nodes,F=Z.operators,Q=Z.validOperators,V=Z.hasString;return{nodes:ne,operators:F,isValidConcatenation:Q&&V}}var b=function(O,q){return function(Z,ne){Z<O.length&&e.copyTrailingComments(O[Z],ne,q,3,!1)}},M=function(O,q,Z){return function(ne,F){for(;ne.length>0;){var Q=ne.shift();e.copyTrailingComments(O[Q],F,q,3,!1),Z(Q,F)}}};function S(O){return O.replace(/\\.|[$`]/g,function(q){return q[0]==="\\"?q:"\\"+q})}function B(O){var q=e.isTemplateHead(O)||e.isTemplateMiddle(O)?-2:-1;return e.getTextOfNode(O).slice(1,q)}function H(O,q){for(var Z=[],ne="",F="";O<q.length;){var Q=q[O];if(e.isStringLiteralLike(Q))ne+=Q.text,F+=S(e.getTextOfNode(Q).slice(1,-1)),Z.push(O),O++;else if(e.isTemplateExpression(Q)){ne+=Q.head.text,F+=B(Q.head);break}else break}return[O,ne,F,Z]}function I(O,q){var Z=O.nodes,ne=O.operators,F=b(ne,q),Q=M(Z,q,F),V=H(0,Z),re=V[0],T=V[1],N=V[2],y=V[3];if(re===Z.length){var D=e.factory.createNoSubstitutionTemplateLiteral(T,N);return Q(y,D),D}var C=[],m=e.factory.createTemplateHead(T,N);Q(y,m);for(var u=function(te){var ue=x(Z[te]);F(te,ue);var X=H(te+1,Z),j=X[0],Se=X[1],Ce=X[2],R=X[3];te=j-1;var Y=te===Z.length-1;if(e.isTemplateExpression(ue)){var U=e.map(ue.templateSpans,function(Te,ge){w(Te);var ke=ge===ue.templateSpans.length-1,Pe=Te.literal.text+(ke?Se:""),Ie=B(Te.literal)+(ke?Ce:"");return e.factory.createTemplateSpan(Te.expression,Y?e.factory.createTemplateTail(Pe,Ie):e.factory.createTemplateMiddle(Pe,Ie))});C.push.apply(C,U)}else{var K=Y?e.factory.createTemplateTail(Se,Ce):e.factory.createTemplateMiddle(Se,Ce);Q(R,K),C.push(e.factory.createTemplateSpan(ue,K))}g=te},g,P=re;P<Z.length;P++)u(P),P=g;return e.factory.createTemplateExpression(m,C)}function w(O){var q=O.getSourceFile();e.copyTrailingComments(O,O.expression,q,3,!1),e.copyTrailingAsLeadingComments(O.expression,O.expression,q,3,!1)}function x(O){return e.isParenthesizedExpression(O)&&(w(O),O=O.expression),O}})(n.convertStringOrTemplateLiteral||(n.convertStringOrTemplateLiteral={}))})(e.refactor||(e.refactor={}))}(jr||(jr={})),function(e){(function(n){(function(f){var p="Convert arrow function or function expression",a=e.getLocaleSpecificMessage(e.Diagnostics.Convert_arrow_function_or_function_expression),d={name:"Convert to anonymous function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},k={name:"Convert to named function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_named_function),kind:"refactor.rewrite.function.named"},J={name:"Convert to arrow function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};n.registerRefactor(p,{kinds:[d.kind,k.kind,J.kind],getEditsForAction:v,getAvailableActions:h});function h(O){var q=O.file,Z=O.startPosition,ne=O.program,F=O.kind,Q=z(q,Z,ne);if(!Q)return e.emptyArray;var V=Q.selectedVariableDeclaration,re=Q.func,T=[],N=[];if(n.refactorKindBeginsWith(k.kind,F)){var y=V||e.isArrowFunction(re)&&e.isVariableDeclaration(re.parent)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_named_function);y?N.push(Rn(Rn({},k),{notApplicableReason:y})):T.push(k)}if(n.refactorKindBeginsWith(d.kind,F)){var y=!V&&e.isArrowFunction(re)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_anonymous_function);y?N.push(Rn(Rn({},d),{notApplicableReason:y})):T.push(d)}if(n.refactorKindBeginsWith(J.kind,F)){var y=e.isFunctionExpression(re)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_arrow_function);y?N.push(Rn(Rn({},J),{notApplicableReason:y})):T.push(J)}return[{name:p,description:a,actions:T.length===0&&O.preferences.provideRefactorNotApplicableReason?N:T}]}function v(O,q){var Z=O.file,ne=O.startPosition,F=O.program,Q=z(Z,ne,F);if(Q){var V=Q.func,re=[];switch(q){case d.name:re.push.apply(re,B(O,V));break;case k.name:var T=S(V);if(!T)return;re.push.apply(re,H(O,V,T));break;case J.name:if(!e.isFunctionExpression(V))return;re.push.apply(re,I(O,V));break;default:return e.Debug.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:re}}}function A(O){var q=!1;return O.forEachChild(function Z(ne){if(e.isThis(ne)){q=!0;return}!e.isClassLike(ne)&&!e.isFunctionDeclaration(ne)&&!e.isFunctionExpression(ne)&&e.forEachChild(ne,Z)}),q}function z(O,q,Z){var ne=e.getTokenAtPosition(O,q),F=Z.getTypeChecker(),Q=b(O,F,ne.parent);if(Q&&!A(Q.body)&&!F.containsArgumentsReference(Q))return{selectedVariableDeclaration:!0,func:Q};var V=e.getContainingFunction(ne);if(V&&(e.isFunctionExpression(V)||e.isArrowFunction(V))&&!e.rangeContainsRange(V.body,ne)&&!A(V.body)&&!F.containsArgumentsReference(V))return e.isFunctionExpression(V)&&x(O,F,V)?void 0:{selectedVariableDeclaration:!1,func:V}}function ie(O){return e.isVariableDeclaration(O)||e.isVariableDeclarationList(O)&&O.declarations.length===1}function b(O,q,Z){if(ie(Z)){var ne=e.isVariableDeclaration(Z)?Z:e.first(Z.declarations),F=ne.initializer;if(F&&(e.isArrowFunction(F)||e.isFunctionExpression(F)&&!x(O,q,F)))return F}}function M(O){if(e.isExpression(O)){var q=e.factory.createReturnStatement(O),Z=O.getSourceFile();return e.suppressLeadingAndTrailingTrivia(q),e.copyTrailingAsLeadingComments(O,q,Z,void 0,!0),e.factory.createBlock([q],!0)}else return O}function S(O){var q=O.parent;if(!(!e.isVariableDeclaration(q)||!e.isVariableDeclarationInVariableStatement(q))){var Z=q.parent,ne=Z.parent;if(!(!e.isVariableDeclarationList(Z)||!e.isVariableStatement(ne)||!e.isIdentifier(q.name)))return{variableDeclaration:q,variableDeclarationList:Z,statement:ne,name:q.name}}}function B(O,q){var Z=O.file,ne=M(q.body),F=e.factory.createFunctionExpression(q.modifiers,q.asteriskToken,void 0,q.typeParameters,q.parameters,q.type,ne);return e.textChanges.ChangeTracker.with(O,function(Q){return Q.replaceNode(Z,q,F)})}function H(O,q,Z){var ne=O.file,F=M(q.body),Q=Z.variableDeclaration,V=Z.variableDeclarationList,re=Z.statement,T=Z.name;e.suppressLeadingTrivia(re);var N=e.getCombinedModifierFlags(Q)&1|e.getEffectiveModifierFlags(q),y=e.factory.createModifiersFromModifierFlags(N),D=e.factory.createFunctionDeclaration(q.decorators,e.length(y)?y:void 0,q.asteriskToken,T,q.typeParameters,q.parameters,q.type,F);return V.declarations.length===1?e.textChanges.ChangeTracker.with(O,function(C){return C.replaceNode(ne,re,D)}):e.textChanges.ChangeTracker.with(O,function(C){C.delete(ne,Q),C.insertNodeAfter(ne,re,D)})}function I(O,q){var Z=O.file,ne=q.body.statements,F=ne[0],Q;w(q.body,F)?(Q=F.expression,e.suppressLeadingAndTrailingTrivia(Q),e.copyComments(F,Q)):Q=q.body;var V=e.factory.createArrowFunction(q.modifiers,q.typeParameters,q.parameters,q.type,e.factory.createToken(38),Q);return e.textChanges.ChangeTracker.with(O,function(re){return re.replaceNode(Z,q,V)})}function w(O,q){return O.statements.length===1&&e.isReturnStatement(q)&&!!q.expression}function x(O,q,Z){return!!Z.name&&e.FindAllReferences.Core.isSymbolReferencedInFile(Z.name,q,O)}})(n.convertArrowFunctionOrFunctionExpression||(n.convertArrowFunctionOrFunctionExpression={}))})(e.refactor||(e.refactor={}))}(jr||(jr={})),function(e){(function(n){(function(f){var p="Infer function return type",a=e.Diagnostics.Infer_function_return_type.message,d={name:p,description:a,kind:"refactor.rewrite.function.returnType"};n.registerRefactor(p,{kinds:[d.kind],getEditsForAction:k,getAvailableActions:J});function k(ie){var b=v(ie);if(b&&!n.isRefactorErrorInfo(b)){var M=e.textChanges.ChangeTracker.with(ie,function(S){return h(ie.file,S,b.declaration,b.returnTypeNode)});return{renameFilename:void 0,renameLocation:void 0,edits:M}}}function J(ie){var b=v(ie);return b?n.isRefactorErrorInfo(b)?ie.preferences.provideRefactorNotApplicableReason?[{name:p,description:a,actions:[Rn(Rn({},d),{notApplicableReason:b.error})]}]:e.emptyArray:[{name:p,description:a,actions:[d]}]:e.emptyArray}function h(ie,b,M,S){var B=e.findChildOfKind(M,21,ie),H=e.isArrowFunction(M)&&B===void 0,I=H?e.first(M.parameters):B;I&&(H&&(b.insertNodeBefore(ie,I,e.factory.createToken(20)),b.insertNodeAfter(ie,I,e.factory.createToken(21))),b.insertNodeAt(ie,I.end,S,{prefix:": "}))}function v(ie){if(!(e.isInJSFile(ie.file)||!n.refactorKindBeginsWith(d.kind,ie.kind))){var b=e.getTokenAtPosition(ie.file,ie.startPosition),M=e.findAncestor(b,function(I){return e.isBlock(I)||I.parent&&e.isArrowFunction(I.parent)&&(I.kind===38||I.parent.body===I)?"quit":A(I)});if(!M||!M.body||M.type)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Return_type_must_be_inferred_from_a_function)};var S=ie.program.getTypeChecker(),B=z(S,M);if(!B)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var H=S.typeToTypeNode(B,M,1);if(H)return{declaration:M,returnTypeNode:H}}}function A(ie){switch(ie.kind){case 255:case 212:case 213:case 168:return!0;default:return!1}}function z(ie,b){if(ie.isImplementationOfOverload(b)){var M=ie.getTypeAtLocation(b).getCallSignatures();if(M.length>1)return ie.getUnionType(e.mapDefined(M,function(B){return B.getReturnType()}))}var S=ie.getSignatureFromDeclaration(b);if(S)return ie.getReturnTypeOfSignature(S)}})(n.inferFunctionReturnType||(n.inferFunctionReturnType={}))})(e.refactor||(e.refactor={}))}(jr||(jr={})),function(e){e.servicesVersion="0.8";function n(Y,U,K,Te){var ge=e.isNodeKind(Y)?new f(Y,U,K):Y===79?new v(79,U,K):Y===80?new A(80,U,K):new h(Y,U,K);return ge.parent=Te,ge.flags=Te.flags&25358336,ge}var f=function(){function Y(U,K,Te){this.pos=K,this.end=Te,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=U}return Y.prototype.assertHasRealPosition=function(U){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),U||"Node must have a real position for this operation")},Y.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},Y.prototype.getStart=function(U,K){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,U,K)},Y.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},Y.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},Y.prototype.getWidth=function(U){return this.assertHasRealPosition(),this.getEnd()-this.getStart(U)},Y.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},Y.prototype.getLeadingTriviaWidth=function(U){return this.assertHasRealPosition(),this.getStart(U)-this.pos},Y.prototype.getFullText=function(U){return this.assertHasRealPosition(),(U||this.getSourceFile()).text.substring(this.pos,this.end)},Y.prototype.getText=function(U){return this.assertHasRealPosition(),U||(U=this.getSourceFile()),U.text.substring(this.getStart(U),this.getEnd())},Y.prototype.getChildCount=function(U){return this.getChildren(U).length},Y.prototype.getChildAt=function(U,K){return this.getChildren(K)[U]},Y.prototype.getChildren=function(U){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=p(this,U))},Y.prototype.getFirstToken=function(U){this.assertHasRealPosition();var K=this.getChildren(U);if(K.length){var Te=e.find(K,function(ge){return ge.kind<307||ge.kind>345});return Te.kind<160?Te:Te.getFirstToken(U)}},Y.prototype.getLastToken=function(U){this.assertHasRealPosition();var K=this.getChildren(U),Te=e.lastOrUndefined(K);if(Te)return Te.kind<160?Te:Te.getLastToken(U)},Y.prototype.forEachChild=function(U,K){return e.forEachChild(this,U,K)},Y}();function p(Y,U){if(!e.isNodeKind(Y.kind))return e.emptyArray;var K=[];if(e.isJSDocCommentContainingNode(Y))return Y.forEachChild(function(Pe){K.push(Pe)}),K;e.scanner.setText((U||Y.getSourceFile()).text);var Te=Y.pos,ge=function(Pe){a(K,Te,Pe.pos,Y),K.push(Pe),Te=Pe.end},ke=function(Pe){a(K,Te,Pe.pos,Y),K.push(d(Pe,Y)),Te=Pe.end};return e.forEach(Y.jsDoc,ge),Te=Y.pos,Y.forEachChild(ge,ke),a(K,Te,Y.end,Y),e.scanner.setText(void 0),K}function a(Y,U,K,Te){for(e.scanner.setTextPos(U);U<K;){var ge=e.scanner.scan(),ke=e.scanner.getTextPos();if(ke<=K&&(ge===79&&e.Debug.fail("Did not expect ".concat(e.Debug.formatSyntaxKind(Te.kind)," to have an Identifier in its trivia")),Y.push(n(ge,U,ke,Te))),U=ke,ge===1)break}}function d(Y,U){var K=n(346,Y.pos,Y.end,U);K._children=[];for(var Te=Y.pos,ge=0,ke=Y;ge<ke.length;ge++){var Pe=ke[ge];a(K._children,Te,Pe.pos,U),K._children.push(Pe),Te=Pe.end}return a(K._children,Te,Y.end,U),K}var k=function(){function Y(U,K){this.pos=U,this.end=K,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}return Y.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},Y.prototype.getStart=function(U,K){return e.getTokenPosOfNode(this,U,K)},Y.prototype.getFullStart=function(){return this.pos},Y.prototype.getEnd=function(){return this.end},Y.prototype.getWidth=function(U){return this.getEnd()-this.getStart(U)},Y.prototype.getFullWidth=function(){return this.end-this.pos},Y.prototype.getLeadingTriviaWidth=function(U){return this.getStart(U)-this.pos},Y.prototype.getFullText=function(U){return(U||this.getSourceFile()).text.substring(this.pos,this.end)},Y.prototype.getText=function(U){return U||(U=this.getSourceFile()),U.text.substring(this.getStart(U),this.getEnd())},Y.prototype.getChildCount=function(){return this.getChildren().length},Y.prototype.getChildAt=function(U){return this.getChildren()[U]},Y.prototype.getChildren=function(){return this.kind===1&&this.jsDoc||e.emptyArray},Y.prototype.getFirstToken=function(){},Y.prototype.getLastToken=function(){},Y.prototype.forEachChild=function(){},Y}(),J=function(){function Y(U,K){this.flags=U,this.escapedName=K}return Y.prototype.getFlags=function(){return this.flags},Object.defineProperty(Y.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:!1,configurable:!0}),Y.prototype.getEscapedName=function(){return this.escapedName},Y.prototype.getName=function(){return this.name},Y.prototype.getDeclarations=function(){return this.declarations},Y.prototype.getDocumentationComment=function(U){if(!this.documentationComment)if(this.documentationComment=e.emptyArray,!this.declarations&&this.target&&this.target.tupleLabelDeclaration){var K=this.target.tupleLabelDeclaration;this.documentationComment=S([K],U)}else this.documentationComment=S(this.declarations,U);return this.documentationComment},Y.prototype.getContextualDocumentationComment=function(U,K){switch(U==null?void 0:U.kind){case 171:return this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=e.emptyArray,this.contextualGetAccessorDocumentationComment=S(e.filter(this.declarations,e.isGetAccessor),K)),this.contextualGetAccessorDocumentationComment;case 172:return this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=e.emptyArray,this.contextualSetAccessorDocumentationComment=S(e.filter(this.declarations,e.isSetAccessor),K)),this.contextualSetAccessorDocumentationComment;default:return this.getDocumentationComment(K)}},Y.prototype.getJsDocTags=function(U){return this.tags===void 0&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations,U)),this.tags},Y}(),h=function(Y){wm(U,Y);function U(K,Te,ge){var ke=Y.call(this,Te,ge)||this;return ke.kind=K,ke}return U}(k),v=function(Y){wm(U,Y);function U(K,Te,ge){var ke=Y.call(this,Te,ge)||this;return ke.kind=79,ke}return Object.defineProperty(U.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),U}(k);v.prototype.kind=79;var A=function(Y){wm(U,Y);function U(K,Te,ge){return Y.call(this,Te,ge)||this}return Object.defineProperty(U.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),U}(k);A.prototype.kind=80;var z=function(){function Y(U,K){this.checker=U,this.flags=K}return Y.prototype.getFlags=function(){return this.flags},Y.prototype.getSymbol=function(){return this.symbol},Y.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},Y.prototype.getProperty=function(U){return this.checker.getPropertyOfType(this,U)},Y.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},Y.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},Y.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},Y.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},Y.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},Y.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},Y.prototype.isNullableType=function(){return this.checker.isNullableType(this)},Y.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},Y.prototype.getNonOptionalType=function(){return this.checker.getNonOptionalType(this)},Y.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},Y.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},Y.prototype.isUnion=function(){return!!(this.flags&1048576)},Y.prototype.isIntersection=function(){return!!(this.flags&2097152)},Y.prototype.isUnionOrIntersection=function(){return!!(this.flags&3145728)},Y.prototype.isLiteral=function(){return!!(this.flags&384)},Y.prototype.isStringLiteral=function(){return!!(this.flags&128)},Y.prototype.isNumberLiteral=function(){return!!(this.flags&256)},Y.prototype.isTypeParameter=function(){return!!(this.flags&262144)},Y.prototype.isClassOrInterface=function(){return!!(e.getObjectFlags(this)&3)},Y.prototype.isClass=function(){return!!(e.getObjectFlags(this)&1)},Object.defineProperty(Y.prototype,"typeArguments",{get:function(){if(e.getObjectFlags(this)&4)return this.checker.getTypeArguments(this)},enumerable:!1,configurable:!0}),Y}(),ie=function(){function Y(U,K){this.checker=U,this.flags=K}return Y.prototype.getDeclaration=function(){return this.declaration},Y.prototype.getTypeParameters=function(){return this.typeParameters},Y.prototype.getParameters=function(){return this.parameters},Y.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},Y.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=S(e.singleElementArray(this.declaration),this.checker))},Y.prototype.getJsDocTags=function(){return this.jsDocTags===void 0&&(this.jsDocTags=this.declaration?M(this.declaration,this.checker):[]),this.jsDocTags},Y}();function b(Y){return e.getJSDocTags(Y).some(function(U){return U.tagName.text==="inheritDoc"})}function M(Y,U){var K=e.JsDoc.getJsDocTagsFromDeclarations([Y],U);if(K.length===0||b(Y)){var Te=B(U,Y,function(ge){var ke;return((ke=ge.declarations)===null||ke===void 0?void 0:ke.length)===1?ge.getJsDocTags():void 0});Te&&(K=Gt(Gt([],Te,!0),K,!0))}return K}function S(Y,U){if(!Y)return e.emptyArray;var K=e.JsDoc.getJsDocCommentsFromDeclarations(Y,U);if(U&&(K.length===0||Y.some(b)))for(var Te=new e.Set,ge=0,ke=Y;ge<ke.length;ge++){var Pe=ke[ge],Ie=B(U,Pe,function(Ge){if(!Te.has(Ge))return Te.add(Ge),Ge.getDocumentationComment(U)});Ie&&(K=K.length===0?Ie.slice():Ie.concat(e.lineBreakPart(),K))}return K}function B(Y,U,K){var Te,ge=((Te=U.parent)===null||Te===void 0?void 0:Te.kind)===170?U.parent.parent:U.parent;if(ge)return e.firstDefined(e.getAllSuperTypeNodes(ge),function(ke){var Pe=Y.getPropertyOfType(Y.getTypeAtLocation(ke),U.symbol.name);return Pe?K(Pe):void 0})}var H=function(Y){wm(U,Y);function U(K,Te,ge){var ke=Y.call(this,K,Te,ge)||this;return ke.kind=303,ke}return U.prototype.update=function(K,Te){return e.updateSourceFile(this,K,Te)},U.prototype.getLineAndCharacterOfPosition=function(K){return e.getLineAndCharacterOfPosition(this,K)},U.prototype.getLineStarts=function(){return e.getLineStarts(this)},U.prototype.getPositionOfLineAndCharacter=function(K,Te,ge){return e.computePositionOfLineAndCharacter(e.getLineStarts(this),K,Te,this.text,ge)},U.prototype.getLineEndOfPosition=function(K){var Te=this.getLineAndCharacterOfPosition(K).line,ge=this.getLineStarts(),ke;Te+1>=ge.length&&(ke=this.getEnd()),ke||(ke=ge[Te+1]-1);var Pe=this.getFullText();return Pe[ke]===`
  255. `&&Pe[ke-1]==="\r"?ke-1:ke},U.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},U.prototype.computeNamedDeclarations=function(){var K=e.createMultiMap();return this.forEachChild(Pe),K;function Te(Ie){var Ge=ke(Ie);Ge&&K.add(Ge,Ie)}function ge(Ie){var Ge=K.get(Ie);return Ge||K.set(Ie,Ge=[]),Ge}function ke(Ie){var Ge=e.getNonAssignedNameOfDeclaration(Ie);return Ge&&(e.isComputedPropertyName(Ge)&&e.isPropertyAccessExpression(Ge.expression)?Ge.expression.name.text:e.isPropertyName(Ge)?e.getNameFromPropertyName(Ge):void 0)}function Pe(Ie){switch(Ie.kind){case 255:case 212:case 168:case 167:var Ge=Ie,he=ke(Ge);if(he){var ve=ge(he),Ve=e.lastOrUndefined(ve);Ve&&Ge.parent===Ve.parent&&Ge.symbol===Ve.symbol?Ge.body&&!Ve.body&&(ve[ve.length-1]=Ge):ve.push(Ge)}e.forEachChild(Ie,Pe);break;case 256:case 225:case 257:case 258:case 259:case 260:case 264:case 274:case 269:case 266:case 267:case 171:case 172:case 181:Te(Ie),e.forEachChild(Ie,Pe);break;case 163:if(!e.hasSyntacticModifier(Ie,16476))break;case 253:case 202:{var _e=Ie;if(e.isBindingPattern(_e.name)){e.forEachChild(_e.name,Pe);break}_e.initializer&&Pe(_e.initializer)}case 297:case 166:case 165:Te(Ie);break;case 271:var Le=Ie;Le.exportClause&&(e.isNamedExports(Le.exportClause)?e.forEach(Le.exportClause.elements,Pe):Pe(Le.exportClause.name));break;case 265:var qe=Ie.importClause;qe&&(qe.name&&Te(qe.name),qe.namedBindings&&(qe.namedBindings.kind===267?Te(qe.namedBindings):e.forEach(qe.namedBindings.elements,Pe)));break;case 220:e.getAssignmentDeclarationKind(Ie)!==0&&Te(Ie);default:e.forEachChild(Ie,Pe)}}},U}(f),I=function(){function Y(U,K,Te){this.fileName=U,this.text=K,this.skipTrivia=Te}return Y.prototype.getLineAndCharacterOfPosition=function(U){return e.getLineAndCharacterOfPosition(this,U)},Y}();function w(){return{getNodeConstructor:function(){return f},getTokenConstructor:function(){return h},getIdentifierConstructor:function(){return v},getPrivateIdentifierConstructor:function(){return A},getSourceFileConstructor:function(){return H},getSymbolConstructor:function(){return J},getTypeConstructor:function(){return z},getSignatureConstructor:function(){return ie},getSourceMapSourceConstructor:function(){return I}}}function x(Y){var U=!0;for(var K in Y)if(e.hasProperty(Y,K)&&!O(K)){U=!1;break}if(U)return Y;var Te={};for(var K in Y)if(e.hasProperty(Y,K)){var ge=O(K)?K:K.charAt(0).toLowerCase()+K.substr(1);Te[ge]=Y[K]}return Te}e.toEditorSettings=x;function O(Y){return!Y.length||Y.charAt(0)===Y.charAt(0).toLowerCase()}function q(Y){return Y?e.map(Y,function(U){return U.text}).join(""):""}e.displayPartsToString=q;function Z(){return{target:1,jsx:1}}e.getDefaultCompilerOptions=Z;function ne(){return e.codefix.getSupportedErrorCodes()}e.getSupportedCodeFixes=ne;var F=function(){function Y(U,K){this.host=U,this.currentDirectory=U.getCurrentDirectory(),this.fileNameToEntry=new e.Map;for(var Te=U.getScriptFileNames(),ge=0,ke=Te;ge<ke.length;ge++){var Pe=ke[ge];this.createEntry(Pe,e.toPath(Pe,this.currentDirectory,K))}}return Y.prototype.createEntry=function(U,K){var Te,ge=this.host.getScriptSnapshot(U);return ge?Te={hostFileName:U,version:this.host.getScriptVersion(U),scriptSnapshot:ge,scriptKind:e.getScriptKind(U,this.host)}:Te=U,this.fileNameToEntry.set(K,Te),Te},Y.prototype.getEntryByPath=function(U){return this.fileNameToEntry.get(U)},Y.prototype.getHostFileInformation=function(U){var K=this.fileNameToEntry.get(U);return e.isString(K)?void 0:K},Y.prototype.getOrCreateEntryByPath=function(U,K){var Te=this.getEntryByPath(K)||this.createEntry(U,K);return e.isString(Te)?void 0:Te},Y.prototype.getRootFileNames=function(){var U=[];return this.fileNameToEntry.forEach(function(K){e.isString(K)?U.push(K):U.push(K.hostFileName)}),U},Y.prototype.getScriptSnapshot=function(U){var K=this.getHostFileInformation(U);return K&&K.scriptSnapshot},Y}(),Q=function(){function Y(U){this.host=U}return Y.prototype.getCurrentSourceFile=function(U){var K=this.host.getScriptSnapshot(U);if(!K)throw new Error("Could not find file: '"+U+"'.");var Te=e.getScriptKind(U,this.host),ge=this.host.getScriptVersion(U),ke;if(this.currentFileName!==U)ke=re(U,K,99,ge,!0,Te);else if(this.currentFileVersion!==ge){var Pe=K.getChangeRange(this.currentFileScriptSnapshot);ke=T(this.currentSourceFile,K,ge,Pe)}return ke&&(this.currentFileVersion=ge,this.currentFileName=U,this.currentFileScriptSnapshot=K,this.currentSourceFile=ke),this.currentSourceFile},Y}();function V(Y,U,K){Y.version=K,Y.scriptSnapshot=U}function re(Y,U,K,Te,ge,ke){var Pe=e.createSourceFile(Y,e.getSnapshotText(U),K,ge,ke);return V(Pe,U,Te),Pe}e.createLanguageServiceSourceFile=re;function T(Y,U,K,Te,ge){if(Te&&K!==Y.version){var ke=void 0,Pe=Te.span.start!==0?Y.text.substr(0,Te.span.start):"",Ie=e.textSpanEnd(Te.span)!==Y.text.length?Y.text.substr(e.textSpanEnd(Te.span)):"";if(Te.newLength===0)ke=Pe&&Ie?Pe+Ie:Pe||Ie;else{var Ge=U.getText(Te.span.start,Te.span.start+Te.newLength);ke=Pe&&Ie?Pe+Ge+Ie:Pe?Pe+Ge:Ge+Ie}var he=e.updateSourceFile(Y,ke,Te,ge);return V(he,U,K),he.nameTable=void 0,Y!==he&&Y.scriptSnapshot&&(Y.scriptSnapshot.dispose&&Y.scriptSnapshot.dispose(),Y.scriptSnapshot=void 0),he}return re(Y.fileName,U,Y.languageVersion,K,!0,Y.scriptKind)}e.updateLanguageServiceSourceFile=T;var N={isCancellationRequested:e.returnFalse,throwIfCancellationRequested:e.noop},y=function(){function Y(U){this.cancellationToken=U}return Y.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},Y.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw e.tracing===null||e.tracing===void 0||e.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new e.OperationCanceledException},Y}(),D=function(){function Y(U,K){K===void 0&&(K=20),this.hostCancellationToken=U,this.throttleWaitMilliseconds=K,this.lastCancellationCheckTime=0}return Y.prototype.isCancellationRequested=function(){var U=e.timestamp(),K=Math.abs(U-this.lastCancellationCheckTime);return K>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=U,this.hostCancellationToken.isCancellationRequested()):!1},Y.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw e.tracing===null||e.tracing===void 0||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},Y}();e.ThrottledCancellationToken=D;var C=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],m=Gt(Gt([],C,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function u(Y,U,K){var Te;U===void 0&&(U=e.createDocumentRegistry(Y.useCaseSensitiveFileNames&&Y.useCaseSensitiveFileNames(),Y.getCurrentDirectory()));var ge;K===void 0?ge=e.LanguageServiceMode.Semantic:typeof K=="boolean"?ge=K?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:ge=K;var ke=new Q(Y),Pe,Ie,Ge=0,he=Y.getCancellationToken?new y(Y.getCancellationToken()):N,ve=Y.getCurrentDirectory();!e.localizedDiagnosticMessages&&Y.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(Y.getLocalizedDiagnosticMessages());function Ve(pt){Y.log&&Y.log(pt)}var _e=e.hostUsesCaseSensitiveFileNames(Y),Le=e.createGetCanonicalFileName(_e),qe=e.getSourceMapper({useCaseSensitiveFileNames:function(){return _e},getCurrentDirectory:function(){return ve},getProgram:Ae,fileExists:e.maybeBind(Y,Y.fileExists),readFile:e.maybeBind(Y,Y.readFile),getDocumentPositionMapper:e.maybeBind(Y,Y.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(Y,Y.getSourceFileLike),log:Ve});function Xe(pt){var _t=Pe.getSourceFile(pt);if(!_t){var Mt=new Error("Could not find source file: '".concat(pt,"'."));throw Mt.ProgramFiles=Pe.getSourceFiles().map(function(It){return It.fileName}),Mt}return _t}function De(){var pt,_t,Mt;if(e.Debug.assert(ge!==e.LanguageServiceMode.Syntactic),Y.getProjectVersion){var It=Y.getProjectVersion();if(It){if(Ie===It&&!(!((pt=Y.hasChangedAutomaticTypeDirectiveNames)===null||pt===void 0)&&pt.call(Y)))return;Ie=It}}var rt=Y.getTypeRootsVersion?Y.getTypeRootsVersion():0;Ge!==rt&&(Ve("TypeRoots version has changed; provide new program"),Pe=void 0,Ge=rt);var Cn=new F(Y,Le),Qn=Cn.getRootFileNames(),Ra=Y.getCompilationSettings()||Z(),Ci=Y.hasInvalidatedResolution||e.returnFalse,_i=e.maybeBind(Y,Y.hasChangedAutomaticTypeDirectiveNames),va=(_t=Y.getProjectReferences)===null||_t===void 0?void 0:_t.call(Y),yi,ro={useCaseSensitiveFileNames:_e,fileExists:No,readFile:lo,readDirectory:Lo,trace:e.maybeBind(Y,Y.trace),getCurrentDirectory:function(){return ve},onUnRecoverableConfigFileDiagnostic:e.noop};if(e.isProgramUptoDate(Pe,Qn,Ra,function(za,hi){return Y.getScriptVersion(hi)},No,Ci,_i,ji,va))return;var Ka={getSourceFile:Yo,getSourceFileByPath:co,getCancellationToken:function(){return he},getCanonicalFileName:Le,useCaseSensitiveFileNames:function(){return _e},getNewLine:function(){return e.getNewLineCharacter(Ra,function(){return e.getNewLineOrDefaultFromHost(Y)})},getDefaultLibFileName:function(za){return Y.getDefaultLibFileName(za)},writeFile:e.noop,getCurrentDirectory:function(){return ve},fileExists:No,readFile:lo,getSymlinkCache:e.maybeBind(Y,Y.getSymlinkCache),realpath:e.maybeBind(Y,Y.realpath),directoryExists:function(za){return e.directoryProbablyExists(za,Y)},getDirectories:function(za){return Y.getDirectories?Y.getDirectories(za):[]},readDirectory:Lo,onReleaseOldSourceFile:Ha,onReleaseParsedCommandLine:to,hasInvalidatedResolution:Ci,hasChangedAutomaticTypeDirectiveNames:_i,trace:ro.trace,resolveModuleNames:e.maybeBind(Y,Y.resolveModuleNames),resolveTypeReferenceDirectives:e.maybeBind(Y,Y.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(Y,Y.useSourceOfProjectReferenceRedirect),getParsedCommandLine:ji};(Mt=Y.setCompilerHost)===null||Mt===void 0||Mt.call(Y,Ka);var Mi=U.getKeyForCompilationSettings(Ra),io={rootNames:Qn,options:Ra,host:Ka,oldProgram:Pe,projectReferences:va};Pe=e.createProgram(io),Cn=void 0,yi=void 0,qe.clearCache(),Pe.getTypeChecker();return;function ji(za){var hi=e.toPath(za,ve,Le),Zi=yi==null?void 0:yi.get(hi);if(Zi!==void 0)return Zi||void 0;var Mo=Y.getParsedCommandLine?Y.getParsedCommandLine(za):Hi(za);return(yi||(yi=new e.Map)).set(hi,Mo||!1),Mo}function Hi(za){var hi=Yo(za,100);if(hi)return hi.path=e.toPath(za,ve,Le),hi.resolvedPath=hi.path,hi.originalFileName=hi.fileName,e.parseJsonSourceFileConfigFileContent(hi,ro,e.getNormalizedAbsolutePath(e.getDirectoryPath(za),ve),void 0,e.getNormalizedAbsolutePath(za,ve))}function to(za,hi,Zi){var Mo;Y.getParsedCommandLine?(Mo=Y.onReleaseParsedCommandLine)===null||Mo===void 0||Mo.call(Y,za,hi,Zi):hi&&Ha(hi.sourceFile,Zi)}function No(za){var hi=e.toPath(za,ve,Le),Zi=Cn&&Cn.getEntryByPath(hi);return Zi?!e.isString(Zi):!!Y.fileExists&&Y.fileExists(za)}function lo(za){var hi=e.toPath(za,ve,Le),Zi=Cn&&Cn.getEntryByPath(hi);return Zi?e.isString(Zi)?void 0:e.getSnapshotText(Zi.scriptSnapshot):Y.readFile&&Y.readFile(za)}function Lo(za,hi,Zi,Mo,Po){return e.Debug.checkDefined(Y.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),Y.readDirectory(za,hi,Zi,Mo,Po)}function Ha(za,hi){var Zi=U.getKeyForCompilationSettings(hi);U.releaseDocumentWithKey(za.resolvedPath,Zi,za.scriptKind)}function Yo(za,hi,Zi,Mo){return co(za,e.toPath(za,ve,Le),hi,Zi,Mo)}function co(za,hi,Zi,Mo,Po){e.Debug.assert(Cn!==void 0,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var Fo=Cn&&Cn.getOrCreateEntryByPath(za,hi);if(Fo){if(!Po){var zo=Pe&&Pe.getSourceFileByPath(hi);if(zo){if(Fo.scriptKind===zo.scriptKind)return U.updateDocumentWithKey(za,hi,Ra,Mi,Fo.scriptSnapshot,Fo.version,Fo.scriptKind);U.releaseDocumentWithKey(zo.resolvedPath,U.getKeyForCompilationSettings(Pe.getCompilerOptions()),zo.scriptKind)}}return U.acquireDocumentWithKey(za,hi,Ra,Mi,Fo.scriptSnapshot,Fo.version,Fo.scriptKind)}}}function Ae(){if(ge===e.LanguageServiceMode.Syntactic){e.Debug.assert(Pe===void 0);return}return De(),Pe}function Ye(){var pt;return(pt=Y.getPackageJsonAutoImportProvider)===null||pt===void 0?void 0:pt.call(Y)}function Dr(){Pe=void 0}function br(){if(Pe){var pt=U.getKeyForCompilationSettings(Pe.getCompilerOptions());e.forEach(Pe.getSourceFiles(),function(_t){return U.releaseDocumentWithKey(_t.resolvedPath,pt,_t.scriptKind)}),Pe=void 0}Y=void 0}function lr(pt){return De(),Pe.getSyntacticDiagnostics(Xe(pt),he).slice()}function Ar(pt){De();var _t=Xe(pt),Mt=Pe.getSemanticDiagnostics(_t,he);if(!e.getEmitDeclarations(Pe.getCompilerOptions()))return Mt.slice();var It=Pe.getDeclarationDiagnostics(_t,he);return Gt(Gt([],Mt,!0),It,!0)}function kr(pt){return De(),e.computeSuggestionDiagnostics(Xe(pt),Pe,he)}function Ke(){return De(),Gt(Gt([],Pe.getOptionsDiagnostics(he),!0),Pe.getGlobalDiagnostics(he),!0)}function Me(pt,_t,Mt){Mt===void 0&&(Mt=e.emptyOptions);var It=Rn(Rn({},e.identity(Mt)),{includeCompletionsForModuleExports:Mt.includeCompletionsForModuleExports||Mt.includeExternalModuleExports,includeCompletionsWithInsertText:Mt.includeCompletionsWithInsertText||Mt.includeInsertTextCompletions});return De(),e.Completions.getCompletionsAtPosition(Y,Pe,Ve,Xe(pt),_t,It,Mt.triggerCharacter,Mt.triggerKind,he)}function Hr(pt,_t,Mt,It,rt,Cn,Qn){return Cn===void 0&&(Cn=e.emptyOptions),De(),e.Completions.getCompletionEntryDetails(Pe,Ve,Xe(pt),_t,{name:Mt,source:rt,data:Qn},Y,It&&e.formatting.getFormatContext(It,Y),Cn,he)}function ur(pt,_t,Mt,It,rt){return rt===void 0&&(rt=e.emptyOptions),De(),e.Completions.getCompletionEntrySymbol(Pe,Ve,Xe(pt),_t,{name:Mt,source:It},Y,rt)}function gr(pt,_t){De();var Mt=Xe(pt),It=e.getTouchingPropertyName(Mt,_t);if(It!==Mt){var rt=Pe.getTypeChecker(),Cn=de(It),Qn=j(Cn,rt);if(!Qn||rt.isUnknownSymbol(Qn)){var Ra=Fe(Mt,Cn,_t)?rt.getTypeAtLocation(Cn):void 0;return Ra&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(Cn,Mt),displayParts:rt.runWithCancellationToken(he,function(Ka){return e.typeToDisplayParts(Ka,Ra,e.getContainerNode(Cn))}),documentation:Ra.symbol?Ra.symbol.getDocumentationComment(rt):void 0,tags:Ra.symbol?Ra.symbol.getJsDocTags(rt):void 0}}var Ci=rt.runWithCancellationToken(he,function(Ka){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(Ka,Qn,Mt,e.getContainerNode(Cn),Cn)}),_i=Ci.symbolKind,va=Ci.displayParts,yi=Ci.documentation,ro=Ci.tags;return{kind:_i,kindModifiers:e.SymbolDisplay.getSymbolModifiers(rt,Qn),textSpan:e.createTextSpanFromNode(Cn,Mt),displayParts:va,documentation:yi,tags:ro}}}function de(pt){return e.isNewExpression(pt.parent)&&pt.pos===pt.parent.pos?pt.parent.expression:e.isNamedTupleMember(pt.parent)&&pt.pos===pt.parent.pos?pt.parent:pt}function Fe(pt,_t,Mt){switch(_t.kind){case 79:return!e.isLabelName(_t)&&!e.isTagName(_t)&&!e.isConstTypeReference(_t.parent);case 205:case 160:return!e.isInComment(pt,Mt);case 108:case 191:case 106:case 196:return!0;default:return!1}}function $e(pt,_t){return De(),e.GoToDefinition.getDefinitionAtPosition(Pe,Xe(pt),_t)}function Sr(pt,_t){return De(),e.GoToDefinition.getDefinitionAndBoundSpan(Pe,Xe(pt),_t)}function Pr(pt,_t){return De(),e.GoToDefinition.getTypeDefinitionAtPosition(Pe.getTypeChecker(),Xe(pt),_t)}function He(pt,_t){return De(),e.FindAllReferences.getImplementationsAtPosition(Pe,he,Pe.getSourceFiles(),Xe(pt),_t)}function pr(pt,_t){return e.flatMap(Jr(pt,_t,[pt]),function(Mt){return Mt.highlightSpans.map(function(It){return Rn(Rn({fileName:Mt.fileName,textSpan:It.textSpan,isWriteAccess:It.kind==="writtenReference",isDefinition:!1},It.isInString&&{isInString:!0}),It.contextSpan&&{contextSpan:It.contextSpan})})})}function Jr(pt,_t,Mt){var It=e.normalizePath(pt);e.Debug.assert(Mt.some(function(Qn){return e.normalizePath(Qn)===It})),De();var rt=e.mapDefined(Mt,function(Qn){return Pe.getSourceFile(Qn)}),Cn=Xe(pt);return e.DocumentHighlights.getDocumentHighlights(Pe,he,Cn,_t,rt)}function ze(pt,_t,Mt,It,rt){De();var Cn=Xe(pt),Qn=e.getAdjustedRenameLocation(e.getTouchingPropertyName(Cn,_t));if(e.Rename.nodeIsEligibleForRename(Qn))if(e.isIdentifier(Qn)&&(e.isJsxOpeningElement(Qn.parent)||e.isJsxClosingElement(Qn.parent))&&e.isIntrinsicJsxName(Qn.escapedText)){var Ra=Qn.parent.parent,Ci=Ra.openingElement,_i=Ra.closingElement;return[Ci,_i].map(function(va){var yi=e.createTextSpanFromNode(va.tagName,Cn);return Rn({fileName:Cn.fileName,textSpan:yi},e.FindAllReferences.toContextSpan(yi,Cn,va.parent))})}else return Yr(Qn,_t,{findInStrings:Mt,findInComments:It,providePrefixAndSuffixTextForRename:rt,use:2},function(va,yi,ro){return e.FindAllReferences.toRenameLocation(va,yi,ro,rt||!1)})}function Lr(pt,_t){return De(),Yr(e.getTouchingPropertyName(Xe(pt),_t),_t,{use:1},function(Mt,It,rt){return e.FindAllReferences.toReferenceEntry(Mt,rt.getSymbolAtLocation(It))})}function Yr(pt,_t,Mt,It){De();var rt=Mt&&Mt.use===2?Pe.getSourceFiles().filter(function(Cn){return!Pe.isSourceFileDefaultLibrary(Cn)}):Pe.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(Pe,he,rt,pt,_t,Mt,It)}function lt(pt,_t){return De(),e.FindAllReferences.findReferencedSymbols(Pe,he,Pe.getSourceFiles(),Xe(pt),_t)}function tt(pt){var _t;De();var Mt=(_t=Pe.getSourceFile(pt))===null||_t===void 0?void 0:_t.symbol;return e.FindAllReferences.Core.getReferencesForFileName(pt,Pe,Pe.getSourceFiles()).map(function(It){return e.FindAllReferences.toReferenceEntry(It,Mt)})}function Rt(pt,_t,Mt,It){It===void 0&&(It=!1),De();var rt=Mt?[Xe(Mt)]:Pe.getSourceFiles();return e.NavigateTo.getNavigateToItems(rt,Pe.getTypeChecker(),he,pt,_t,It)}function cn(pt,_t,Mt){De();var It=Xe(pt),rt=Y.getCustomTransformers&&Y.getCustomTransformers();return e.getFileEmitOutput(Pe,It,!!_t,he,rt,Mt)}function bn(pt,_t,Mt){var It=Mt===void 0?e.emptyOptions:Mt,rt=It.triggerReason;De();var Cn=Xe(pt);return e.SignatureHelp.getSignatureHelpItems(Pe,Cn,_t,rt,he)}function In(pt){return ke.getCurrentSourceFile(pt)}function zn(pt,_t,Mt){var It=ke.getCurrentSourceFile(pt),rt=e.getTouchingPropertyName(It,_t);if(rt!==It){switch(rt.kind){case 205:case 160:case 10:case 95:case 110:case 104:case 106:case 108:case 191:case 79:break;default:return}for(var Cn=rt;;)if(e.isRightSideOfPropertyAccess(Cn)||e.isRightSideOfQualifiedName(Cn))Cn=Cn.parent;else if(e.isNameOfModuleDeclaration(Cn))if(Cn.parent.parent.kind===260&&Cn.parent.parent.body===Cn.parent)Cn=Cn.parent.parent.name;else break;else break;return e.createTextSpanFromBounds(Cn.getStart(),rt.getEnd())}}function ir(pt,_t){var Mt=ke.getCurrentSourceFile(pt);return e.BreakpointResolver.spanInSourceFileAtLocation(Mt,_t)}function Or(pt){return e.NavigationBar.getNavigationBarItems(ke.getCurrentSourceFile(pt),he)}function sr(pt){return e.NavigationBar.getNavigationTree(ke.getCurrentSourceFile(pt),he)}function ye(pt,_t,Mt){De();var It=Mt||"original";return It==="2020"?e.classifier.v2020.getSemanticClassifications(Pe,he,Xe(pt),_t):e.getSemanticClassifications(Pe.getTypeChecker(),he,Xe(pt),Pe.getClassifiableNames(),_t)}function or(pt,_t,Mt){De();var It=Mt||"original";return It==="original"?e.getEncodedSemanticClassifications(Pe.getTypeChecker(),he,Xe(pt),Pe.getClassifiableNames(),_t):e.classifier.v2020.getEncodedSemanticClassifications(Pe,he,Xe(pt),_t)}function fe(pt,_t){return e.getSyntacticClassifications(he,ke.getCurrentSourceFile(pt),_t)}function je(pt,_t){return e.getEncodedSyntacticClassifications(he,ke.getCurrentSourceFile(pt),_t)}function Ee(pt){var _t=ke.getCurrentSourceFile(pt);return e.OutliningElementsCollector.collectElements(_t,he)}var We=new e.Map(e.getEntries((Te={},Te[18]=19,Te[20]=21,Te[22]=23,Te[31]=29,Te)));We.forEach(function(pt,_t){return We.set(pt.toString(),Number(_t))});function $(pt,_t){var Mt=ke.getCurrentSourceFile(pt),It=e.getTouchingToken(Mt,_t),rt=It.getStart(Mt)===_t?We.get(It.kind.toString()):void 0,Cn=rt&&e.findChildOfKind(It.parent,rt,Mt);return Cn?[e.createTextSpanFromNode(It,Mt),e.createTextSpanFromNode(Cn,Mt)].sort(function(Qn,Ra){return Qn.start-Ra.start}):e.emptyArray}function Ne(pt,_t,Mt){var It=e.timestamp(),rt=x(Mt),Cn=ke.getCurrentSourceFile(pt);Ve("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-It)),It=e.timestamp();var Qn=e.formatting.SmartIndenter.getIndentation(_t,Cn,rt);return Ve("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-It)),Qn}function me(pt,_t,Mt,It){var rt=ke.getCurrentSourceFile(pt);return e.formatting.formatSelection(_t,Mt,rt,e.formatting.getFormatContext(x(It),Y))}function Ze(pt,_t){return e.formatting.formatDocument(ke.getCurrentSourceFile(pt),e.formatting.getFormatContext(x(_t),Y))}function Cr(pt,_t,Mt,It){var rt=ke.getCurrentSourceFile(pt),Cn=e.formatting.getFormatContext(x(It),Y);if(!e.isInComment(rt,_t))switch(Mt){case"{":return e.formatting.formatOnOpeningCurly(_t,rt,Cn);case"}":return e.formatting.formatOnClosingCurly(_t,rt,Cn);case";":return e.formatting.formatOnSemicolon(_t,rt,Cn);case`
  256. `:return e.formatting.formatOnEnter(_t,rt,Cn)}return[]}function fr(pt,_t,Mt,It,rt,Cn){Cn===void 0&&(Cn=e.emptyOptions),De();var Qn=Xe(pt),Ra=e.createTextSpanFromBounds(_t,Mt),Ci=e.formatting.getFormatContext(rt,Y);return e.flatMap(e.deduplicate(It,e.equateValues,e.compareValues),function(_i){return he.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:_i,sourceFile:Qn,span:Ra,program:Pe,host:Y,cancellationToken:he,formatContext:Ci,preferences:Cn})})}function dr(pt,_t,Mt,It){It===void 0&&(It=e.emptyOptions),De(),e.Debug.assert(pt.type==="file");var rt=Xe(pt.fileName),Cn=e.formatting.getFormatContext(Mt,Y);return e.codefix.getAllFixes({fixId:_t,sourceFile:rt,program:Pe,host:Y,cancellationToken:he,formatContext:Cn,preferences:It})}function et(pt,_t,Mt){Mt===void 0&&(Mt=e.emptyOptions),De(),e.Debug.assert(pt.type==="file");var It=Xe(pt.fileName),rt=e.formatting.getFormatContext(_t,Y);return e.OrganizeImports.organizeImports(It,rt,Y,Pe,Mt,pt.skipDestructiveCodeActions)}function yt(pt,_t,Mt,It){return It===void 0&&(It=e.emptyOptions),e.getEditsForFileRename(Ae(),pt,_t,Y,e.formatting.getFormatContext(Mt,Y),It,qe)}function Vr(pt,_t){var Mt=typeof pt=="string"?_t:pt;return e.isArray(Mt)?Promise.all(Mt.map(function(It){return tr(It)})):tr(Mt)}function tr(pt){var _t=function(Mt){return e.toPath(Mt,ve,Le)};return e.Debug.assertEqual(pt.type,"install package"),Y.installPackage?Y.installPackage({fileName:_t(pt.file),packageName:pt.packageName}):Promise.reject("Host does not implement `installPackage`")}function xr(pt,_t,Mt){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(Y),ke.getCurrentSourceFile(pt),_t,Mt)}function Nr(pt,_t,Mt){if(Mt===60)return!1;var It=ke.getCurrentSourceFile(pt);if(e.isInString(It,_t))return!1;if(e.isInsideJsxElementOrAttribute(It,_t))return Mt===123;if(e.isInTemplateString(It,_t))return!1;switch(Mt){case 39:case 34:case 96:return!e.isInComment(It,_t)}return!0}function zr(pt,_t){var Mt=ke.getCurrentSourceFile(pt),It=e.findPrecedingToken(_t,Mt);if(It){var rt=It.kind===31&&e.isJsxOpeningElement(It.parent)?It.parent.parent:e.isJsxText(It)&&e.isJsxElement(It.parent)?It.parent:void 0;if(rt&&wt(rt))return{newText:"</".concat(rt.openingElement.tagName.getText(Mt),">")};var Cn=It.kind===31&&e.isJsxOpeningFragment(It.parent)?It.parent.parent:e.isJsxText(It)&&e.isJsxFragment(It.parent)?It.parent:void 0;if(Cn&&Qt(Cn))return{newText:"</>"}}}function gt(pt,_t){return{lineStarts:pt.getLineStarts(),firstLine:pt.getLineAndCharacterOfPosition(_t.pos).line,lastLine:pt.getLineAndCharacterOfPosition(_t.end).line}}function vt(pt,_t,Mt){for(var It=ke.getCurrentSourceFile(pt),rt=[],Cn=gt(It,_t),Qn=Cn.lineStarts,Ra=Cn.firstLine,Ci=Cn.lastLine,_i=Mt||!1,va=Number.MAX_VALUE,yi=new e.Map,ro=new RegExp(/\S/),Ka=e.isInsideJsxElement(It,Qn[Ra]),Mi=Ka?"{/*":"//",io=Ra;io<=Ci;io++){var ji=It.text.substring(Qn[io],It.getLineEndOfPosition(Qn[io])),Hi=ro.exec(ji);Hi&&(va=Math.min(va,Hi.index),yi.set(io.toString(),Hi.index),ji.substr(Hi.index,Mi.length)!==Mi&&(_i=Mt===void 0||Mt))}for(var io=Ra;io<=Ci;io++)if(!(Ra!==Ci&&Qn[io]===_t.end)){var to=yi.get(io.toString());to!==void 0&&(Ka?rt.push.apply(rt,ut(pt,{pos:Qn[io]+va,end:It.getLineEndOfPosition(Qn[io])},_i,Ka)):_i?rt.push({newText:Mi,span:{length:0,start:Qn[io]+va}}):It.text.substr(Qn[io]+to,Mi.length)===Mi&&rt.push({newText:"",span:{length:Mi.length,start:Qn[io]+to}}))}return rt}function ut(pt,_t,Mt,It){for(var rt,Cn=ke.getCurrentSourceFile(pt),Qn=[],Ra=Cn.text,Ci=!1,_i=Mt||!1,va=[],yi=_t.pos,ro=It!==void 0?It:e.isInsideJsxElement(Cn,yi),Ka=ro?"{/*":"/*",Mi=ro?"*/}":"*/",io=ro?"\\{\\/\\*":"\\/\\*",ji=ro?"\\*\\/\\}":"\\*\\/";yi<=_t.end;){var Hi=Ra.substr(yi,Ka.length)===Ka?Ka.length:0,to=e.isInComment(Cn,yi+Hi);if(to)ro&&(to.pos--,to.end++),va.push(to.pos),to.kind===3&&va.push(to.end),Ci=!0,yi=to.end+1;else{var No=Ra.substring(yi,_t.end).search("(".concat(io,")|(").concat(ji,")"));_i=Mt!==void 0?Mt:_i||!e.isTextWhiteSpaceLike(Ra,yi,No===-1?_t.end:yi+No),yi=No===-1?_t.end+1:yi+No+Mi.length}}if(_i||!Ci){((rt=e.isInComment(Cn,_t.pos))===null||rt===void 0?void 0:rt.kind)!==2&&e.insertSorted(va,_t.pos,e.compareValues),e.insertSorted(va,_t.end,e.compareValues);var lo=va[0];Ra.substr(lo,Ka.length)!==Ka&&Qn.push({newText:Ka,span:{length:0,start:lo}});for(var Lo=1;Lo<va.length-1;Lo++)Ra.substr(va[Lo]-Mi.length,Mi.length)!==Mi&&Qn.push({newText:Mi,span:{length:0,start:va[Lo]}}),Ra.substr(va[Lo],Ka.length)!==Ka&&Qn.push({newText:Ka,span:{length:0,start:va[Lo]}});Qn.length%2!==0&&Qn.push({newText:Mi,span:{length:0,start:va[va.length-1]}})}else for(var Ha=0,Yo=va;Ha<Yo.length;Ha++){var co=Yo[Ha],za=co-Mi.length>0?co-Mi.length:0,Hi=Ra.substr(za,Mi.length)===Mi?Mi.length:0;Qn.push({newText:"",span:{length:Ka.length,start:co-Hi}})}return Qn}function ht(pt,_t){var Mt=ke.getCurrentSourceFile(pt),It=gt(Mt,_t),rt=It.firstLine,Cn=It.lastLine;return rt===Cn&&_t.pos!==_t.end?ut(pt,_t,!0):vt(pt,_t,!0)}function xt(pt,_t){var Mt=ke.getCurrentSourceFile(pt),It=[],rt=_t.pos,Cn=_t.end;rt===Cn&&(Cn+=e.isInsideJsxElement(Mt,rt)?2:1);for(var Qn=rt;Qn<=Cn;Qn++){var Ra=e.isInComment(Mt,Qn);if(Ra){switch(Ra.kind){case 2:It.push.apply(It,vt(pt,{end:Ra.end,pos:Ra.pos+1},!1));break;case 3:It.push.apply(It,ut(pt,{end:Ra.end,pos:Ra.pos+1},!1))}Qn=Ra.end+1}}return It}function wt(pt){var _t=pt.openingElement,Mt=pt.closingElement,It=pt.parent;return!e.tagNamesAreEquivalent(_t.tagName,Mt.tagName)||e.isJsxElement(It)&&e.tagNamesAreEquivalent(_t.tagName,It.openingElement.tagName)&&wt(It)}function Qt(pt){var _t=pt.closingFragment,Mt=pt.parent;return!!(_t.flags&65536)||e.isJsxFragment(Mt)&&Qt(Mt)}function mt(pt,_t,Mt){var It=ke.getCurrentSourceFile(pt),rt=e.formatting.getRangeOfEnclosingComment(It,_t);return rt&&(!Mt||rt.kind===3)?e.createTextSpanFromRange(rt):void 0}function rn(pt,_t){De();var Mt=Xe(pt);he.throwIfCancellationRequested();var It=Mt.text,rt=[];if(_t.length>0&&!ji(Mt.fileName))for(var Cn=Mi(),Qn=void 0;Qn=Cn.exec(It);){he.throwIfCancellationRequested();var Ra=3;e.Debug.assert(Qn.length===_t.length+Ra);var Ci=Qn[1],_i=Qn.index+Ci.length;if(e.isInComment(Mt,_i)){for(var va=void 0,yi=0;yi<_t.length;yi++)Qn[yi+Ra]&&(va=_t[yi]);if(va===void 0)return e.Debug.fail();if(!io(It.charCodeAt(_i+va.text.length))){var ro=Qn[2];rt.push({descriptor:va,message:ro,position:_i})}}}return rt;function Ka(Hi){return Hi.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Mi(){var Hi=/(?:\/\/+\s*)/.source,to=/(?:\/\*+\s*)/.source,No=/(?:^(?:\s|\*)*)/.source,lo="("+No+"|"+Hi+"|"+to+")",Lo="(?:"+e.map(_t,function(hi){return"("+Ka(hi.text)+")"}).join("|")+")",Ha=/(?:$|\*\/)/.source,Yo=/(?:.*?)/.source,co="("+Lo+Yo+")",za=lo+co+Ha;return new RegExp(za,"gim")}function io(Hi){return Hi>=97&&Hi<=122||Hi>=65&&Hi<=90||Hi>=48&&Hi<=57}function ji(Hi){return e.stringContains(Hi,"/node_modules/")}}function sa(pt,_t,Mt){return De(),e.Rename.getRenameInfo(Pe,Xe(pt),_t,Mt)}function ba(pt,_t,Mt,It,rt,Cn){var Qn=typeof _t=="number"?[_t,void 0]:[_t.pos,_t.end],Ra=Qn[0],Ci=Qn[1];return{file:pt,startPosition:Ra,endPosition:Ci,program:Ae(),host:Y,formatContext:e.formatting.getFormatContext(It,Y),cancellationToken:he,preferences:Mt,triggerReason:rt,kind:Cn}}function Jn(pt,_t,Mt){return{file:pt,program:Ae(),host:Y,span:_t,preferences:Mt,cancellationToken:he}}function na(pt,_t){return e.SmartSelectionRange.getSmartSelectionRange(_t,ke.getCurrentSourceFile(pt))}function Wn(pt,_t,Mt,It,rt){Mt===void 0&&(Mt=e.emptyOptions),De();var Cn=Xe(pt);return e.refactor.getApplicableRefactors(ba(Cn,_t,Mt,e.emptyOptions,It,rt))}function en(pt,_t,Mt,It,rt,Cn){Cn===void 0&&(Cn=e.emptyOptions),De();var Qn=Xe(pt);return e.refactor.getEditsForRefactor(ba(Qn,Mt,Cn,_t),It,rt)}function St(pt,_t){return _t===0?{line:0,character:0}:qe.toLineColumnOffset(pt,_t)}function Ut(pt,_t){De();var Mt=e.CallHierarchy.resolveCallHierarchyDeclaration(Pe,e.getTouchingPropertyName(Xe(pt),_t));return Mt&&e.mapOneOrMany(Mt,function(It){return e.CallHierarchy.createCallHierarchyItem(Pe,It)})}function qt(pt,_t){De();var Mt=Xe(pt),It=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(Pe,_t===0?Mt:e.getTouchingPropertyName(Mt,_t)));return It?e.CallHierarchy.getIncomingCalls(Pe,It,he):[]}function Mn(pt,_t){De();var Mt=Xe(pt),It=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(Pe,_t===0?Mt:e.getTouchingPropertyName(Mt,_t)));return It?e.CallHierarchy.getOutgoingCalls(Pe,It):[]}function dn(pt,_t,Mt){Mt===void 0&&(Mt=e.emptyOptions),De();var It=Xe(pt);return e.InlayHints.provideInlayHints(Jn(It,_t,Mt))}var oa={dispose:br,cleanupSemanticCache:Dr,getSyntacticDiagnostics:lr,getSemanticDiagnostics:Ar,getSuggestionDiagnostics:kr,getCompilerOptionsDiagnostics:Ke,getSyntacticClassifications:fe,getSemanticClassifications:ye,getEncodedSyntacticClassifications:je,getEncodedSemanticClassifications:or,getCompletionsAtPosition:Me,getCompletionEntryDetails:Hr,getCompletionEntrySymbol:ur,getSignatureHelpItems:bn,getQuickInfoAtPosition:gr,getDefinitionAtPosition:$e,getDefinitionAndBoundSpan:Sr,getImplementationAtPosition:He,getTypeDefinitionAtPosition:Pr,getReferencesAtPosition:Lr,findReferences:lt,getFileReferences:tt,getOccurrencesAtPosition:pr,getDocumentHighlights:Jr,getNameOrDottedNameSpan:zn,getBreakpointStatementAtPosition:ir,getNavigateToItems:Rt,getRenameInfo:sa,getSmartSelectionRange:na,findRenameLocations:ze,getNavigationBarItems:Or,getNavigationTree:sr,getOutliningSpans:Ee,getTodoComments:rn,getBraceMatchingAtPosition:$,getIndentationAtPosition:Ne,getFormattingEditsForRange:me,getFormattingEditsForDocument:Ze,getFormattingEditsAfterKeystroke:Cr,getDocCommentTemplateAtPosition:xr,isValidBraceCompletionAtPosition:Nr,getJsxClosingTagAtPosition:zr,getSpanOfEnclosingComment:mt,getCodeFixesAtPosition:fr,getCombinedCodeFix:dr,applyCodeActionCommand:Vr,organizeImports:et,getEditsForFileRename:yt,getEmitOutput:cn,getNonBoundSourceFile:In,getProgram:Ae,getAutoImportProvider:Ye,getApplicableRefactors:Wn,getEditsForRefactor:en,toLineColumnOffset:St,getSourceMapper:function(){return qe},clearSourceMapperCache:function(){return qe.clearCache()},prepareCallHierarchy:Ut,provideCallHierarchyIncomingCalls:qt,provideCallHierarchyOutgoingCalls:Mn,toggleLineComment:vt,toggleMultilineComment:ut,commentSelection:ht,uncommentSelection:xt,provideInlayHints:dn};switch(ge){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:C.forEach(function(pt){return oa[pt]=function(){throw new Error("LanguageService Operation: ".concat(pt," not allowed in LanguageServiceMode.PartialSemantic"))}});break;case e.LanguageServiceMode.Syntactic:m.forEach(function(pt){return oa[pt]=function(){throw new Error("LanguageService Operation: ".concat(pt," not allowed in LanguageServiceMode.Syntactic"))}});break;default:e.Debug.assertNever(ge)}return oa}e.createLanguageService=u;function g(Y){return Y.nameTable||P(Y),Y.nameTable}e.getNameTable=g;function P(Y){var U=Y.nameTable=new e.Map;Y.forEachChild(function K(Te){if(e.isIdentifier(Te)&&!e.isTagName(Te)&&Te.escapedText||e.isStringOrNumericLiteralLike(Te)&&te(Te)){var ge=e.getEscapedTextOfIdentifierOrLiteral(Te);U.set(ge,U.get(ge)===void 0?Te.pos:-1)}else if(e.isPrivateIdentifier(Te)){var ge=Te.escapedText;U.set(ge,U.get(ge)===void 0?Te.pos:-1)}if(e.forEachChild(Te,K),e.hasJSDocNodes(Te))for(var ke=0,Pe=Te.jsDoc;ke<Pe.length;ke++){var Ie=Pe[ke];e.forEachChild(Ie,K)}})}function te(Y){return e.isDeclarationName(Y)||Y.parent.kind===276||Ce(Y)||e.isLiteralComputedPropertyDeclarationName(Y)}function ue(Y){var U=X(Y);return U&&(e.isObjectLiteralExpression(U.parent)||e.isJsxAttributes(U.parent))?U:void 0}e.getContainingObjectLiteralElement=ue;function X(Y){switch(Y.kind){case 10:case 14:case 8:if(Y.parent.kind===161)return e.isObjectLiteralElement(Y.parent.parent)?Y.parent.parent:void 0;case 79:return e.isObjectLiteralElement(Y.parent)&&(Y.parent.parent.kind===204||Y.parent.parent.kind===285)&&Y.parent.name===Y?Y.parent:void 0}}function j(Y,U){var K=ue(Y);if(K){var Te=U.getContextualType(K.parent),ge=Te&&Se(K,U,Te,!1);if(ge&&ge.length===1)return e.first(ge)}return U.getSymbolAtLocation(Y)}function Se(Y,U,K,Te){var ge=e.getNameFromPropertyName(Y.name);if(!ge)return e.emptyArray;if(!K.isUnion()){var ke=K.getProperty(ge);return ke?[ke]:e.emptyArray}var Pe=e.mapDefined(K.types,function(Ie){return(e.isObjectLiteralExpression(Y.parent)||e.isJsxAttributes(Y.parent))&&U.isTypeInvalidDueToUnionDiscriminant(Ie,Y.parent)?void 0:Ie.getProperty(ge)});if(Te&&(Pe.length===0||Pe.length===K.types.length)){var ke=K.getProperty(ge);if(ke)return[ke]}return Pe.length===0?e.mapDefined(K.types,function(Ie){return Ie.getProperty(ge)}):Pe}e.getPropertySymbolsFromContextualType=Se;function Ce(Y){return Y&&Y.parent&&Y.parent.kind===206&&Y.parent.argumentExpression===Y}function R(Y){if(typeof __dirname<"u")return __dirname+e.directorySeparator+e.getDefaultLibFileName(Y);throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}e.getDefaultLibFilePath=R,e.setObjectAllocator(w())}(jr||(jr={})),function(e){(function(n){function f(p,a){if(p.isDeclarationFile)return;var d=e.getTokenAtPosition(p,a),k=p.getLineAndCharacterOfPosition(a).line;if(p.getLineAndCharacterOfPosition(d.getStart(p)).line>k){var J=e.findPrecedingToken(d.pos,p);if(!J||p.getLineAndCharacterOfPosition(J.getEnd()).line!==k)return;d=J}if(d.flags&8388608)return;return M(d);function h(S,B){var H=S.decorators?e.skipTrivia(p.text,S.decorators.end):S.getStart(p);return e.createTextSpanFromBounds(H,(B||S).getEnd())}function v(S,B){return h(S,e.findNextToken(B,B.parent,p))}function A(S,B){return S&&k===p.getLineAndCharacterOfPosition(S.getStart(p)).line?M(S):M(B)}function z(S){return e.createTextSpanFromBounds(e.skipTrivia(p.text,S.pos),S.end)}function ie(S){return M(e.findPrecedingToken(S.pos,p))}function b(S){return M(e.findNextToken(S,S.parent,p))}function M(S){if(S){var B=S.parent;switch(S.kind){case 236:return ne(S.declarationList.declarations[0]);case 253:case 166:case 165:return ne(S);case 163:return Q(S);case 255:case 168:case 167:case 171:case 172:case 170:case 212:case 213:return re(S);case 234:if(e.isFunctionBlock(S))return T(S);case 261:return N(S);case 291:return N(S.block);case 237:return h(S.expression);case 246:return h(S.getChildAt(0),S.expression);case 240:return v(S,S.expression);case 239:return M(S.statement);case 252:return h(S.getChildAt(0));case 238:return v(S,S.expression);case 249:return M(S.statement);case 245:case 244:return h(S.getChildAt(0),S.label);case 241:return D(S);case 242:return v(S,S.expression);case 243:return y(S);case 248:return v(S,S.expression);case 288:case 289:return M(S.statements[0]);case 251:return N(S.tryBlock);case 250:return h(S,S.expression);case 270:return h(S,S.expression);case 264:return h(S,S.moduleReference);case 265:return h(S,S.moduleSpecifier);case 271:return h(S,S.moduleSpecifier);case 260:if(e.getModuleInstanceState(S)!==1)return;case 256:case 259:case 297:case 202:return h(S);case 247:return M(S.statement);case 164:return z(B.decorators);case 200:case 201:return C(S);case 257:case 258:return;case 26:case 1:return A(e.findPrecedingToken(S.pos,p));case 27:return ie(S);case 18:return u(S);case 19:return g(S);case 23:return P(S);case 20:return te(S);case 21:return ue(S);case 58:return X(S);case 31:case 29:return j(S);case 115:return Se(S);case 91:case 83:case 96:return b(S);case 159:return Ce(S);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(S))return m(S);if((S.kind===79||S.kind===224||S.kind===294||S.kind===295)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(B))return h(S);if(S.kind===220){var H=S,I=H.left,w=H.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(I))return m(I);if(w.kind===63&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(S.parent))return h(S);if(w.kind===27)return M(I)}if(e.isExpressionNode(S))switch(B.kind){case 239:return ie(S);case 164:return M(S.parent);case 241:case 243:return h(S);case 220:if(S.parent.operatorToken.kind===27)return h(S);break;case 213:if(S.parent.body===S)return h(S);break}switch(S.parent.kind){case 294:if(S.parent.name===S&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(S.parent.parent))return M(S.parent.initializer);break;case 210:if(S.parent.type===S)return b(S.parent.type);break;case 253:case 163:{var x=S.parent,O=x.initializer,q=x.type;if(O===S||q===S||e.isAssignmentOperator(S.kind))return ie(S);break}case 220:{var I=S.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(I)&&S!==I)return ie(S);break}default:if(e.isFunctionLike(S.parent)&&S.parent.type===S)return ie(S)}return M(S.parent)}}function Z(R){return e.isVariableDeclarationList(R.parent)&&R.parent.declarations[0]===R?h(e.findPrecedingToken(R.pos,p,R.parent),R):h(R)}function ne(R){if(R.parent.parent.kind===242)return M(R.parent.parent);var Y=R.parent;if(e.isBindingPattern(R.name))return C(R.name);if(R.initializer||e.hasSyntacticModifier(R,1)||Y.parent.kind===243)return Z(R);if(e.isVariableDeclarationList(R.parent)&&R.parent.declarations[0]!==R)return M(e.findPrecedingToken(R.pos,p,R.parent))}function F(R){return!!R.initializer||R.dotDotDotToken!==void 0||e.hasSyntacticModifier(R,12)}function Q(R){if(e.isBindingPattern(R.name))return C(R.name);if(F(R))return h(R);var Y=R.parent,U=Y.parameters.indexOf(R);return e.Debug.assert(U!==-1),U!==0?Q(Y.parameters[U-1]):M(Y.body)}function V(R){return e.hasSyntacticModifier(R,1)||R.parent.kind===256&&R.kind!==170}function re(R){if(R.body)return V(R)?h(R):M(R.body)}function T(R){var Y=R.statements.length?R.statements[0]:R.getLastToken();return V(R.parent)?A(R.parent,Y):M(Y)}function N(R){switch(R.parent.kind){case 260:if(e.getModuleInstanceState(R.parent)!==1)return;case 240:case 238:case 242:return A(R.parent,R.statements[0]);case 241:case 243:return A(e.findPrecedingToken(R.pos,p,R.parent),R.statements[0])}return M(R.statements[0])}function y(R){if(R.initializer.kind===254){var Y=R.initializer;if(Y.declarations.length>0)return M(Y.declarations[0])}else return M(R.initializer)}function D(R){if(R.initializer)return y(R);if(R.condition)return h(R.condition);if(R.incrementor)return h(R.incrementor)}function C(R){var Y=e.forEach(R.elements,function(U){return U.kind!==226?U:void 0});return Y?M(Y):R.parent.kind===202?h(R.parent):Z(R.parent)}function m(R){e.Debug.assert(R.kind!==201&&R.kind!==200);var Y=R.kind===203?R.elements:R.properties,U=e.forEach(Y,function(K){return K.kind!==226?K:void 0});return U?M(U):h(R.parent.kind===220?R.parent:R)}function u(R){switch(R.parent.kind){case 259:var Y=R.parent;return A(e.findPrecedingToken(R.pos,p,R.parent),Y.members.length?Y.members[0]:Y.getLastToken(p));case 256:var U=R.parent;return A(e.findPrecedingToken(R.pos,p,R.parent),U.members.length?U.members[0]:U.getLastToken(p));case 262:return A(R.parent.parent,R.parent.clauses[0])}return M(R.parent)}function g(R){switch(R.parent.kind){case 261:if(e.getModuleInstanceState(R.parent.parent)!==1)return;case 259:case 256:return h(R);case 234:if(e.isFunctionBlock(R.parent))return h(R);case 291:return M(e.lastOrUndefined(R.parent.statements));case 262:var Y=R.parent,U=e.lastOrUndefined(Y.clauses);return U?M(e.lastOrUndefined(U.statements)):void 0;case 200:var K=R.parent;return M(e.lastOrUndefined(K.elements)||K);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(R.parent)){var Te=R.parent;return h(e.lastOrUndefined(Te.properties)||Te)}return M(R.parent)}}function P(R){switch(R.parent.kind){case 201:var Y=R.parent;return h(e.lastOrUndefined(Y.elements)||Y);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(R.parent)){var U=R.parent;return h(e.lastOrUndefined(U.elements)||U)}return M(R.parent)}}function te(R){return R.parent.kind===239||R.parent.kind===207||R.parent.kind===208?ie(R):R.parent.kind===211?b(R):M(R.parent)}function ue(R){switch(R.parent.kind){case 212:case 255:case 213:case 168:case 167:case 171:case 172:case 170:case 240:case 239:case 241:case 243:case 207:case 208:case 211:return ie(R);default:return M(R.parent)}}function X(R){return e.isFunctionLike(R.parent)||R.parent.kind===294||R.parent.kind===163?ie(R):M(R.parent)}function j(R){return R.parent.kind===210?b(R):M(R.parent)}function Se(R){return R.parent.kind===239?v(R,R.parent.expression):M(R.parent)}function Ce(R){return R.parent.kind===243?b(R):M(R.parent)}}}n.spanInSourceFileAtLocation=f})(e.BreakpointResolver||(e.BreakpointResolver={}))}(jr||(jr={})),function(e){function n(f,p,a){var d=[];a=e.fixupCompilerOptions(a,d);var k=e.isArray(f)?f:[f],J=e.transformNodes(void 0,void 0,e.factory,a,k,p,!0);return J.diagnostics=e.concatenate(J.diagnostics,d),J}e.transform=n}(jr||(jr={}));var AE=function(){return this}();(function(e){function n(B,H){B&&B.log("*INTERNAL ERROR* - Exception in typescript services: "+H.message)}var f=function(){function B(H){this.scriptSnapshotShim=H}return B.prototype.getText=function(H,I){return this.scriptSnapshotShim.getText(H,I)},B.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},B.prototype.getChangeRange=function(H){var I=H,w=this.scriptSnapshotShim.getChangeRange(I.scriptSnapshotShim);if(w===null)return null;var x=JSON.parse(w);return e.createTextChangeRange(e.createTextSpan(x.span.start,x.span.length),x.newLength)},B.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},B}(),p=function(){function B(H){var I=this;this.shimHost=H,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(w,x){var O=JSON.parse(I.shimHost.getModuleResolutionsForFile(x));return e.map(w,function(q){var Z=e.getProperty(O,q);return Z?{resolvedFileName:Z,extension:e.extensionFromPath(Z),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(w){return I.shimHost.directoryExists(w)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(w,x){var O=JSON.parse(I.shimHost.getTypeReferenceDirectiveResolutionsForFile(x));return e.map(w,function(q){return e.getProperty(O,q)})})}return B.prototype.log=function(H){this.loggingEnabled&&this.shimHost.log(H)},B.prototype.trace=function(H){this.tracingEnabled&&this.shimHost.trace(H)},B.prototype.error=function(H){this.shimHost.error(H)},B.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},B.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},B.prototype.useCaseSensitiveFileNames=function(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1},B.prototype.getCompilationSettings=function(){var H=this.shimHost.getCompilationSettings();if(H===null||H==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var I=JSON.parse(H);return I.allowNonTsExtensions=!0,I},B.prototype.getScriptFileNames=function(){var H=this.shimHost.getScriptFileNames();return JSON.parse(H)},B.prototype.getScriptSnapshot=function(H){var I=this.shimHost.getScriptSnapshot(H);return I&&new f(I)},B.prototype.getScriptKind=function(H){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(H):0},B.prototype.getScriptVersion=function(H){return this.shimHost.getScriptVersion(H)},B.prototype.getLocalizedDiagnosticMessages=function(){var H=this.shimHost.getLocalizedDiagnosticMessages();if(H===null||H==="")return null;try{return JSON.parse(H)}catch(I){return this.log(I.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},B.prototype.getCancellationToken=function(){var H=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(H)},B.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},B.prototype.getDirectories=function(H){return JSON.parse(this.shimHost.getDirectories(H))},B.prototype.getDefaultLibFileName=function(H){return this.shimHost.getDefaultLibFileName(JSON.stringify(H))},B.prototype.readDirectory=function(H,I,w,x,O){var q=e.getFileMatcherPatterns(H,w,x,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(H,JSON.stringify(I),JSON.stringify(q.basePaths),q.excludePattern,q.includeFilePattern,q.includeDirectoryPattern,O))},B.prototype.readFile=function(H,I){return this.shimHost.readFile(H,I)},B.prototype.fileExists=function(H){return this.shimHost.fileExists(H)},B}();e.LanguageServiceShimHostAdapter=p;var a=function(){function B(H){var I=this;this.shimHost=H,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=function(w){return I.shimHost.directoryExists(w)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(w){return I.shimHost.realpath(w)}:this.realpath=void 0}return B.prototype.readDirectory=function(H,I,w,x,O){var q=e.getFileMatcherPatterns(H,w,x,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(H,JSON.stringify(I),JSON.stringify(q.basePaths),q.excludePattern,q.includeFilePattern,q.includeDirectoryPattern,O))},B.prototype.fileExists=function(H){return this.shimHost.fileExists(H)},B.prototype.readFile=function(H){return this.shimHost.readFile(H)},B.prototype.getDirectories=function(H){return JSON.parse(this.shimHost.getDirectories(H))},B}();e.CoreServicesShimHostAdapter=a;function d(B,H,I,w){var x;w&&(B.log(H),x=e.timestamp());var O=I();if(w){var q=e.timestamp();if(B.log("".concat(H," completed in ").concat(q-x," msec")),e.isString(O)){var Z=O;Z.length>128&&(Z=Z.substring(0,128)+"..."),B.log(" result.length=".concat(Z.length,", result='").concat(JSON.stringify(Z),"'"))}}return O}function k(B,H,I,w){return J(B,H,!0,I,w)}function J(B,H,I,w,x){try{var O=d(B,H,w,x);return I?JSON.stringify({result:O}):O}catch(q){return q instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(n(B,q),q.description=H,JSON.stringify({error:q}))}}var h=function(){function B(H){this.factory=H,H.registerShim(this)}return B.prototype.dispose=function(H){this.factory.unregisterShim(this)},B}();function v(B,H){return B.map(function(I){return A(I,H)})}e.realizeDiagnostics=v;function A(B,H){return{message:e.flattenDiagnosticMessageText(B.messageText,H),start:B.start,length:B.length,category:e.diagnosticCategoryName(B),code:B.code,reportsUnnecessary:B.reportsUnnecessary,reportsDeprecated:B.reportsDeprecated}}var z=function(B){wm(H,B);function H(I,w,x){var O=B.call(this,I)||this;return O.host=w,O.languageService=x,O.logPerformance=!1,O.logger=O.host,O}return H.prototype.forwardJSONCall=function(I,w){return k(this.logger,I,w,this.logPerformance)},H.prototype.dispose=function(I){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,AE&&AE.CollectGarbage&&(AE.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,B.prototype.dispose.call(this,I)},H.prototype.refresh=function(I){this.forwardJSONCall("refresh(".concat(I,")"),function(){return null})},H.prototype.cleanupSemanticCache=function(){var I=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return I.languageService.cleanupSemanticCache(),null})},H.prototype.realizeDiagnostics=function(I){var w=e.getNewLineOrDefaultFromHost(this.host);return v(I,w)},H.prototype.getSyntacticClassifications=function(I,w,x){var O=this;return this.forwardJSONCall("getSyntacticClassifications('".concat(I,"', ").concat(w,", ").concat(x,")"),function(){return O.languageService.getSyntacticClassifications(I,e.createTextSpan(w,x))})},H.prototype.getSemanticClassifications=function(I,w,x){var O=this;return this.forwardJSONCall("getSemanticClassifications('".concat(I,"', ").concat(w,", ").concat(x,")"),function(){return O.languageService.getSemanticClassifications(I,e.createTextSpan(w,x))})},H.prototype.getEncodedSyntacticClassifications=function(I,w,x){var O=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('".concat(I,"', ").concat(w,", ").concat(x,")"),function(){return ie(O.languageService.getEncodedSyntacticClassifications(I,e.createTextSpan(w,x)))})},H.prototype.getEncodedSemanticClassifications=function(I,w,x){var O=this;return this.forwardJSONCall("getEncodedSemanticClassifications('".concat(I,"', ").concat(w,", ").concat(x,")"),function(){return ie(O.languageService.getEncodedSemanticClassifications(I,e.createTextSpan(w,x)))})},H.prototype.getSyntacticDiagnostics=function(I){var w=this;return this.forwardJSONCall("getSyntacticDiagnostics('".concat(I,"')"),function(){var x=w.languageService.getSyntacticDiagnostics(I);return w.realizeDiagnostics(x)})},H.prototype.getSemanticDiagnostics=function(I){var w=this;return this.forwardJSONCall("getSemanticDiagnostics('".concat(I,"')"),function(){var x=w.languageService.getSemanticDiagnostics(I);return w.realizeDiagnostics(x)})},H.prototype.getSuggestionDiagnostics=function(I){var w=this;return this.forwardJSONCall("getSuggestionDiagnostics('".concat(I,"')"),function(){return w.realizeDiagnostics(w.languageService.getSuggestionDiagnostics(I))})},H.prototype.getCompilerOptionsDiagnostics=function(){var I=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var w=I.languageService.getCompilerOptionsDiagnostics();return I.realizeDiagnostics(w)})},H.prototype.getQuickInfoAtPosition=function(I,w){var x=this;return this.forwardJSONCall("getQuickInfoAtPosition('".concat(I,"', ").concat(w,")"),function(){return x.languageService.getQuickInfoAtPosition(I,w)})},H.prototype.getNameOrDottedNameSpan=function(I,w,x){var O=this;return this.forwardJSONCall("getNameOrDottedNameSpan('".concat(I,"', ").concat(w,", ").concat(x,")"),function(){return O.languageService.getNameOrDottedNameSpan(I,w,x)})},H.prototype.getBreakpointStatementAtPosition=function(I,w){var x=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('".concat(I,"', ").concat(w,")"),function(){return x.languageService.getBreakpointStatementAtPosition(I,w)})},H.prototype.getSignatureHelpItems=function(I,w,x){var O=this;return this.forwardJSONCall("getSignatureHelpItems('".concat(I,"', ").concat(w,")"),function(){return O.languageService.getSignatureHelpItems(I,w,x)})},H.prototype.getDefinitionAtPosition=function(I,w){var x=this;return this.forwardJSONCall("getDefinitionAtPosition('".concat(I,"', ").concat(w,")"),function(){return x.languageService.getDefinitionAtPosition(I,w)})},H.prototype.getDefinitionAndBoundSpan=function(I,w){var x=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('".concat(I,"', ").concat(w,")"),function(){return x.languageService.getDefinitionAndBoundSpan(I,w)})},H.prototype.getTypeDefinitionAtPosition=function(I,w){var x=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('".concat(I,"', ").concat(w,")"),function(){return x.languageService.getTypeDefinitionAtPosition(I,w)})},H.prototype.getImplementationAtPosition=function(I,w){var x=this;return this.forwardJSONCall("getImplementationAtPosition('".concat(I,"', ").concat(w,")"),function(){return x.languageService.getImplementationAtPosition(I,w)})},H.prototype.getRenameInfo=function(I,w,x){var O=this;return this.forwardJSONCall("getRenameInfo('".concat(I,"', ").concat(w,")"),function(){return O.languageService.getRenameInfo(I,w,x)})},H.prototype.getSmartSelectionRange=function(I,w){var x=this;return this.forwardJSONCall("getSmartSelectionRange('".concat(I,"', ").concat(w,")"),function(){return x.languageService.getSmartSelectionRange(I,w)})},H.prototype.findRenameLocations=function(I,w,x,O,q){var Z=this;return this.forwardJSONCall("findRenameLocations('".concat(I,"', ").concat(w,", ").concat(x,", ").concat(O,", ").concat(q,")"),function(){return Z.languageService.findRenameLocations(I,w,x,O,q)})},H.prototype.getBraceMatchingAtPosition=function(I,w){var x=this;return this.forwardJSONCall("getBraceMatchingAtPosition('".concat(I,"', ").concat(w,")"),function(){return x.languageService.getBraceMatchingAtPosition(I,w)})},H.prototype.isValidBraceCompletionAtPosition=function(I,w,x){var O=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('".concat(I,"', ").concat(w,", ").concat(x,")"),function(){return O.languageService.isValidBraceCompletionAtPosition(I,w,x)})},H.prototype.getSpanOfEnclosingComment=function(I,w,x){var O=this;return this.forwardJSONCall("getSpanOfEnclosingComment('".concat(I,"', ").concat(w,")"),function(){return O.languageService.getSpanOfEnclosingComment(I,w,x)})},H.prototype.getIndentationAtPosition=function(I,w,x){var O=this;return this.forwardJSONCall("getIndentationAtPosition('".concat(I,"', ").concat(w,")"),function(){var q=JSON.parse(x);return O.languageService.getIndentationAtPosition(I,w,q)})},H.prototype.getReferencesAtPosition=function(I,w){var x=this;return this.forwardJSONCall("getReferencesAtPosition('".concat(I,"', ").concat(w,")"),function(){return x.languageService.getReferencesAtPosition(I,w)})},H.prototype.findReferences=function(I,w){var x=this;return this.forwardJSONCall("findReferences('".concat(I,"', ").concat(w,")"),function(){return x.languageService.findReferences(I,w)})},H.prototype.getFileReferences=function(I){var w=this;return this.forwardJSONCall("getFileReferences('".concat(I,")"),function(){return w.languageService.getFileReferences(I)})},H.prototype.getOccurrencesAtPosition=function(I,w){var x=this;return this.forwardJSONCall("getOccurrencesAtPosition('".concat(I,"', ").concat(w,")"),function(){return x.languageService.getOccurrencesAtPosition(I,w)})},H.prototype.getDocumentHighlights=function(I,w,x){var O=this;return this.forwardJSONCall("getDocumentHighlights('".concat(I,"', ").concat(w,")"),function(){var q=O.languageService.getDocumentHighlights(I,w,JSON.parse(x)),Z=e.toFileNameLowerCase(e.normalizeSlashes(I));return e.filter(q,function(ne){return e.toFileNameLowerCase(e.normalizeSlashes(ne.fileName))===Z})})},H.prototype.getCompletionsAtPosition=function(I,w,x){var O=this;return this.forwardJSONCall("getCompletionsAtPosition('".concat(I,"', ").concat(w,", ").concat(x,")"),function(){return O.languageService.getCompletionsAtPosition(I,w,x)})},H.prototype.getCompletionEntryDetails=function(I,w,x,O,q,Z,ne){var F=this;return this.forwardJSONCall("getCompletionEntryDetails('".concat(I,"', ").concat(w,", '").concat(x,"')"),function(){var Q=O===void 0?void 0:JSON.parse(O);return F.languageService.getCompletionEntryDetails(I,w,x,Q,q,Z,ne)})},H.prototype.getFormattingEditsForRange=function(I,w,x,O){var q=this;return this.forwardJSONCall("getFormattingEditsForRange('".concat(I,"', ").concat(w,", ").concat(x,")"),function(){var Z=JSON.parse(O);return q.languageService.getFormattingEditsForRange(I,w,x,Z)})},H.prototype.getFormattingEditsForDocument=function(I,w){var x=this;return this.forwardJSONCall("getFormattingEditsForDocument('".concat(I,"')"),function(){var O=JSON.parse(w);return x.languageService.getFormattingEditsForDocument(I,O)})},H.prototype.getFormattingEditsAfterKeystroke=function(I,w,x,O){var q=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('".concat(I,"', ").concat(w,", '").concat(x,"')"),function(){var Z=JSON.parse(O);return q.languageService.getFormattingEditsAfterKeystroke(I,w,x,Z)})},H.prototype.getDocCommentTemplateAtPosition=function(I,w,x){var O=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('".concat(I,"', ").concat(w,")"),function(){return O.languageService.getDocCommentTemplateAtPosition(I,w,x)})},H.prototype.getNavigateToItems=function(I,w,x){var O=this;return this.forwardJSONCall("getNavigateToItems('".concat(I,"', ").concat(w,", ").concat(x,")"),function(){return O.languageService.getNavigateToItems(I,w,x)})},H.prototype.getNavigationBarItems=function(I){var w=this;return this.forwardJSONCall("getNavigationBarItems('".concat(I,"')"),function(){return w.languageService.getNavigationBarItems(I)})},H.prototype.getNavigationTree=function(I){var w=this;return this.forwardJSONCall("getNavigationTree('".concat(I,"')"),function(){return w.languageService.getNavigationTree(I)})},H.prototype.getOutliningSpans=function(I){var w=this;return this.forwardJSONCall("getOutliningSpans('".concat(I,"')"),function(){return w.languageService.getOutliningSpans(I)})},H.prototype.getTodoComments=function(I,w){var x=this;return this.forwardJSONCall("getTodoComments('".concat(I,"')"),function(){return x.languageService.getTodoComments(I,JSON.parse(w))})},H.prototype.prepareCallHierarchy=function(I,w){var x=this;return this.forwardJSONCall("prepareCallHierarchy('".concat(I,"', ").concat(w,")"),function(){return x.languageService.prepareCallHierarchy(I,w)})},H.prototype.provideCallHierarchyIncomingCalls=function(I,w){var x=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('".concat(I,"', ").concat(w,")"),function(){return x.languageService.provideCallHierarchyIncomingCalls(I,w)})},H.prototype.provideCallHierarchyOutgoingCalls=function(I,w){var x=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('".concat(I,"', ").concat(w,")"),function(){return x.languageService.provideCallHierarchyOutgoingCalls(I,w)})},H.prototype.provideInlayHints=function(I,w,x){var O=this;return this.forwardJSONCall("provideInlayHints('".concat(I,"', '").concat(JSON.stringify(w),"', ").concat(JSON.stringify(x),")"),function(){return O.languageService.provideInlayHints(I,w,x)})},H.prototype.getEmitOutput=function(I){var w=this;return this.forwardJSONCall("getEmitOutput('".concat(I,"')"),function(){var x=w.languageService.getEmitOutput(I),O=x.diagnostics,q=oD(x,["diagnostics"]);return Rn(Rn({},q),{diagnostics:w.realizeDiagnostics(O)})})},H.prototype.getEmitOutputObject=function(I){var w=this;return J(this.logger,"getEmitOutput('".concat(I,"')"),!1,function(){return w.languageService.getEmitOutput(I)},this.logPerformance)},H.prototype.toggleLineComment=function(I,w){var x=this;return this.forwardJSONCall("toggleLineComment('".concat(I,"', '").concat(JSON.stringify(w),"')"),function(){return x.languageService.toggleLineComment(I,w)})},H.prototype.toggleMultilineComment=function(I,w){var x=this;return this.forwardJSONCall("toggleMultilineComment('".concat(I,"', '").concat(JSON.stringify(w),"')"),function(){return x.languageService.toggleMultilineComment(I,w)})},H.prototype.commentSelection=function(I,w){var x=this;return this.forwardJSONCall("commentSelection('".concat(I,"', '").concat(JSON.stringify(w),"')"),function(){return x.languageService.commentSelection(I,w)})},H.prototype.uncommentSelection=function(I,w){var x=this;return this.forwardJSONCall("uncommentSelection('".concat(I,"', '").concat(JSON.stringify(w),"')"),function(){return x.languageService.uncommentSelection(I,w)})},H}(h);function ie(B){return{spans:B.spans.join(","),endOfLineState:B.endOfLineState}}var b=function(B){wm(H,B);function H(I,w){var x=B.call(this,I)||this;return x.logger=w,x.logPerformance=!1,x.classifier=e.createClassifier(),x}return H.prototype.getEncodedLexicalClassifications=function(I,w,x){var O=this;return x===void 0&&(x=!1),k(this.logger,"getEncodedLexicalClassifications",function(){return ie(O.classifier.getEncodedLexicalClassifications(I,w,x))},this.logPerformance)},H.prototype.getClassificationsForLine=function(I,w,x){x===void 0&&(x=!1);for(var O=this.classifier.getClassificationsForLine(I,w,x),q="",Z=0,ne=O.entries;Z<ne.length;Z++){var F=ne[Z];q+=F.length+`
  257. `,q+=F.classification+`
  258. `}return q+=O.finalLexState,q},H}(h),M=function(B){wm(H,B);function H(I,w,x){var O=B.call(this,I)||this;return O.logger=w,O.host=x,O.logPerformance=!1,O}return H.prototype.forwardJSONCall=function(I,w){return k(this.logger,I,w,this.logPerformance)},H.prototype.resolveModuleName=function(I,w,x){var O=this;return this.forwardJSONCall("resolveModuleName('".concat(I,"')"),function(){var q=JSON.parse(x),Z=e.resolveModuleName(w,e.normalizeSlashes(I),q,O.host),ne=Z.resolvedModule?Z.resolvedModule.resolvedFileName:void 0;return Z.resolvedModule&&Z.resolvedModule.extension!==".ts"&&Z.resolvedModule.extension!==".tsx"&&Z.resolvedModule.extension!==".d.ts"&&(ne=void 0),{resolvedFileName:ne,failedLookupLocations:Z.failedLookupLocations}})},H.prototype.resolveTypeReferenceDirective=function(I,w,x){var O=this;return this.forwardJSONCall("resolveTypeReferenceDirective(".concat(I,")"),function(){var q=JSON.parse(x),Z=e.resolveTypeReferenceDirective(w,e.normalizeSlashes(I),q,O.host);return{resolvedFileName:Z.resolvedTypeReferenceDirective?Z.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:Z.resolvedTypeReferenceDirective?Z.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:Z.failedLookupLocations}})},H.prototype.getPreProcessedFileInfo=function(I,w){var x=this;return this.forwardJSONCall("getPreProcessedFileInfo('".concat(I,"')"),function(){var O=e.preProcessFile(e.getSnapshotText(w),!0,!0);return{referencedFiles:x.convertFileReferences(O.referencedFiles),importedFiles:x.convertFileReferences(O.importedFiles),ambientExternalModules:O.ambientExternalModules,isLibFile:O.isLibFile,typeReferenceDirectives:x.convertFileReferences(O.typeReferenceDirectives),libReferenceDirectives:x.convertFileReferences(O.libReferenceDirectives)}})},H.prototype.getAutomaticTypeDirectiveNames=function(I){var w=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('".concat(I,"')"),function(){var x=JSON.parse(I);return e.getAutomaticTypeDirectiveNames(x,w.host)})},H.prototype.convertFileReferences=function(I){if(I){for(var w=[],x=0,O=I;x<O.length;x++){var q=O[x];w.push({path:e.normalizeSlashes(q.fileName),position:q.pos,length:q.end-q.pos})}return w}},H.prototype.getTSConfigFileInfo=function(I,w){var x=this;return this.forwardJSONCall("getTSConfigFileInfo('".concat(I,"')"),function(){var O=e.parseJsonText(I,e.getSnapshotText(w)),q=e.normalizeSlashes(I),Z=e.parseJsonSourceFileConfigFileContent(O,x.host,e.getDirectoryPath(q),{},q);return{options:Z.options,typeAcquisition:Z.typeAcquisition,files:Z.fileNames,raw:Z.raw,errors:v(Gt(Gt([],O.parseDiagnostics,!0),Z.errors,!0),`\r
  259. `)}})},H.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return e.getDefaultCompilerOptions()})},H.prototype.discoverTypings=function(I){var w=this,x=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var O=JSON.parse(I);return w.safeList===void 0&&(w.safeList=e.JsTyping.loadSafeList(w.host,e.toPath(O.safeListPath,O.safeListPath,x))),e.JsTyping.discoverTypings(w.host,function(q){return w.logger.log(q)},O.fileNames,e.toPath(O.projectRootPath,O.projectRootPath,x),w.safeList,O.packageNameToTypingLocation,O.typeAcquisition,O.unresolvedImports,O.typesRegistry)})},H}(h),S=function(){function B(){this._shims=[]}return B.prototype.getServicesVersion=function(){return e.servicesVersion},B.prototype.createLanguageServiceShim=function(H){try{this.documentRegistry===void 0&&(this.documentRegistry=e.createDocumentRegistry(H.useCaseSensitiveFileNames&&H.useCaseSensitiveFileNames(),H.getCurrentDirectory()));var I=new p(H),w=e.createLanguageService(I,this.documentRegistry,!1);return new z(this,H,w)}catch(x){throw n(H,x),x}},B.prototype.createClassifierShim=function(H){try{return new b(this,H)}catch(I){throw n(H,I),I}},B.prototype.createCoreServicesShim=function(H){try{var I=new a(H);return new M(this,H,I)}catch(w){throw n(H,w),w}},B.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},B.prototype.registerShim=function(H){this._shims.push(H)},B.prototype.unregisterShim=function(H){for(var I=0;I<this._shims.length;I++)if(this._shims[I]===H){delete this._shims[I];return}throw new Error("Invalid operation")},B}();e.TypeScriptServicesFactory=S})(jr||(jr={})),function(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,typeof globalThis>"u"&&(window.globalThis=window),delete Object.prototype.__magic__}catch{window.globalThis=window}}(),(typeof process>"u"||process.browser)&&(globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=jr.TypeScriptServicesFactory,globalThis.toolsVersion=jr.versionMajorMinor),typeof module<"u"&&module.exports;var jr;(function(e){var n={since:"4.0",warnAfter:"4.1",message:"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead."};e.createNodeArray=e.Debug.deprecate(e.factory.createNodeArray,n),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,n),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,n),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,n),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,n),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,n),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,n),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,n),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,n),e.createSuper=e.Debug.deprecate(e.factory.createSuper,n),e.createThis=e.Debug.deprecate(e.factory.createThis,n),e.createNull=e.Debug.deprecate(e.factory.createNull,n),e.createTrue=e.Debug.deprecate(e.factory.createTrue,n),e.createFalse=e.Debug.deprecate(e.factory.createFalse,n),e.createModifier=e.Debug.deprecate(e.factory.createModifier,n),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,n),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,n),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,n),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,n),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,n),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,n),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,n),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,n),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,n),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,n),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,n),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,n),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,n),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,n),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,n),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,n),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,n),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,n),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,n),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,n),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,n),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,n),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,n),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,n),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,n),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,n),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,n),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,n),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,n),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,n),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,n),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,n),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,n),e.createConstructorTypeNode=e.Debug.deprecate(function(f,p,a){return e.factory.createConstructorTypeNode(void 0,f,p,a)},n),e.updateConstructorTypeNode=e.Debug.deprecate(function(f,p,a,d){return e.factory.updateConstructorTypeNode(f,f.modifiers,p,a,d)},n),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,n),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,n),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,n),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,n),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,n),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,n),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,n),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,n),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,n),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,n),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,n),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,n),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,n),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,n),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,n),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,n),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,n),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,n),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,n),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,n),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,n),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,n),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,n),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,n),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,n),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,n),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,n),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,n),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,n),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,n),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,n),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,n),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,n),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,n),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,n),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,n),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,n),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,n),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,n),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,n),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,n),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,n),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,n),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,n),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,n),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,n),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,n),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,n),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,n),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,n),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,n),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,n),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,n),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,n),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,n),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,n),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,n),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,n),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,n),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,n),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,n),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,n),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,n),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,n),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,n),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,n),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,n),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,n),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,n),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,n),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,n),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,n),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,n),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,n),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,n),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,n),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,n),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,n),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,n),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,n),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,n),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,n),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,n),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,n),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,n),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,n),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,n),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,n),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,n),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,n),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,n),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,n),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,n),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,n),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,n),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,n),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,n),e.createBlock=e.Debug.deprecate(e.factory.createBlock,n),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,n),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,n),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,n),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,n),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,n),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,n),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,n),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,n),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,n),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,n),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,n),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,n),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,n),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,n),e.createFor=e.Debug.deprecate(e.factory.createForStatement,n),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,n),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,n),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,n),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,n),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,n),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,n),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,n),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,n),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,n),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,n),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,n),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,n),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,n),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,n),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,n),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,n),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,n),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,n),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,n),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,n),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,n),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,n),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,n),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,n),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,n),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,n),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,n),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,n),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,n),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,n),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,n),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,n),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,n),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,n),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,n),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,n),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,n),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,n),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,n),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,n),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,n),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,n),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,n),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,n),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,n),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,n),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,n),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,n),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,n),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,n),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,n),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,n),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,n),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,n),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,n),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,n),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,n),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,n),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,n),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,n),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,n),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,n),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,n),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,n),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,n),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,n),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,n),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,n),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,n),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,n),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,n),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,n),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,n),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,n),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,n),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,n),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,n),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,n),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,n),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,n),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,n),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,n),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,n),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,n),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,n),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,n),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,n),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,n),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,n),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,n),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,n),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,n),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,n),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,n),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,n),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,n),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,n),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,n),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,n),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,n),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,n),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,n),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,n),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,n),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,n),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,n),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,n),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,n),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,n),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,n),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,n),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,n),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,n),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,n),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,n),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,n),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,n),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,n),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,n),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,n),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,n),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,n),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,n),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,n),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,n),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,n),e.createBundle=e.Debug.deprecate(e.factory.createBundle,n),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,n),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,n),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,n),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,n),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,n),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,n),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,n),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,n),e.createToken=e.Debug.deprecate(function(p){return e.factory.createToken(p)},n),e.createIdentifier=e.Debug.deprecate(function(p){return e.factory.createIdentifier(p,void 0,void 0)},n),e.createTempVariable=e.Debug.deprecate(function(p){return e.factory.createTempVariable(p,void 0)},n),e.getGeneratedNameForNode=e.Debug.deprecate(function(p){return e.factory.getGeneratedNameForNode(p,void 0)},n),e.createOptimisticUniqueName=e.Debug.deprecate(function(p){return e.factory.createUniqueName(p,16)},n),e.createFileLevelUniqueName=e.Debug.deprecate(function(p){return e.factory.createUniqueName(p,48)},n),e.createIndexSignature=e.Debug.deprecate(function(p,a,d,k){return e.factory.createIndexSignature(p,a,d,k)},n),e.createTypePredicateNode=e.Debug.deprecate(function(p,a){return e.factory.createTypePredicateNode(void 0,p,a)},n),e.updateTypePredicateNode=e.Debug.deprecate(function(p,a,d){return e.factory.updateTypePredicateNode(p,void 0,a,d)},n),e.createLiteral=e.Debug.deprecate(function(p){return typeof p=="number"?e.factory.createNumericLiteral(p):typeof p=="object"&&"base10Value"in p?e.factory.createBigIntLiteral(p):typeof p=="boolean"?p?e.factory.createTrue():e.factory.createFalse():typeof p=="string"?e.factory.createStringLiteral(p,void 0):e.factory.createStringLiteralFromNode(p)},{since:"4.0",warnAfter:"4.1",message:"Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead."}),e.createMethodSignature=e.Debug.deprecate(function(p,a,d,k,J){return e.factory.createMethodSignature(void 0,k,J,p,a,d)},n),e.updateMethodSignature=e.Debug.deprecate(function(p,a,d,k,J,h){return e.factory.updateMethodSignature(p,p.modifiers,J,h,a,d,k)},n),e.createTypeOperatorNode=e.Debug.deprecate(function(p,a){var d;return a?d=p:(a=p,d=140),e.factory.createTypeOperatorNode(d,a)},n),e.createTaggedTemplate=e.Debug.deprecate(function(p,a,d){var k;return d?k=a:d=a,e.factory.createTaggedTemplateExpression(p,k,d)},n),e.updateTaggedTemplate=e.Debug.deprecate(function(p,a,d,k){var J;return k?J=d:k=d,e.factory.updateTaggedTemplateExpression(p,a,J,k)},n),e.updateBinary=e.Debug.deprecate(function(p,a,d,k){return k===void 0&&(k=p.operatorToken),typeof k=="number"&&(k=k===p.operatorToken.kind?p.operatorToken:e.factory.createToken(k)),e.factory.updateBinaryExpression(p,a,k,d)},n),e.createConditional=e.Debug.deprecate(function(p,a,d,k,J){return arguments.length===5?e.factory.createConditionalExpression(p,a,d,k,J):arguments.length===3?e.factory.createConditionalExpression(p,e.factory.createToken(57),a,e.factory.createToken(58),d):e.Debug.fail("Argument count mismatch")},n),e.createYield=e.Debug.deprecate(function(p,a){var d;return a?d=p:a=p,e.factory.createYieldExpression(d,a)},n),e.createClassExpression=e.Debug.deprecate(function(p,a,d,k,J){return e.factory.createClassExpression(void 0,p,a,d,k,J)},n),e.updateClassExpression=e.Debug.deprecate(function(p,a,d,k,J,h){return e.factory.updateClassExpression(p,void 0,a,d,k,J,h)},n),e.createPropertySignature=e.Debug.deprecate(function(p,a,d,k,J){var h=e.factory.createPropertySignature(p,a,d,k);return h.initializer=J,h},n),e.updatePropertySignature=e.Debug.deprecate(function(p,a,d,k,J,h){var v=e.factory.updatePropertySignature(p,a,d,k,J);return p.initializer!==h&&(v===p&&(v=e.factory.cloneNode(p)),v.initializer=h),v},n),e.createExpressionWithTypeArguments=e.Debug.deprecate(function(p,a){return e.factory.createExpressionWithTypeArguments(a,p)},n),e.updateExpressionWithTypeArguments=e.Debug.deprecate(function(p,a,d){return e.factory.updateExpressionWithTypeArguments(p,d,a)},n),e.createArrowFunction=e.Debug.deprecate(function(p,a,d,k,J,h){return arguments.length===6?e.factory.createArrowFunction(p,a,d,k,J,h):arguments.length===5?e.factory.createArrowFunction(p,a,d,k,void 0,J):e.Debug.fail("Argument count mismatch")},n),e.updateArrowFunction=e.Debug.deprecate(function(p,a,d,k,J,h,v){return arguments.length===7?e.factory.updateArrowFunction(p,a,d,k,J,h,v):arguments.length===6?e.factory.updateArrowFunction(p,a,d,k,J,p.equalsGreaterThanToken,h):e.Debug.fail("Argument count mismatch")},n),e.createVariableDeclaration=e.Debug.deprecate(function(p,a,d,k){return arguments.length===4?e.factory.createVariableDeclaration(p,a,d,k):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration(p,void 0,a,d):e.Debug.fail("Argument count mismatch")},n),e.updateVariableDeclaration=e.Debug.deprecate(function(p,a,d,k,J){return arguments.length===5?e.factory.updateVariableDeclaration(p,a,d,k,J):arguments.length===4?e.factory.updateVariableDeclaration(p,a,p.exclamationToken,d,k):e.Debug.fail("Argument count mismatch")},n),e.createImportClause=e.Debug.deprecate(function(p,a,d){return d===void 0&&(d=!1),e.factory.createImportClause(d,p,a)},n),e.updateImportClause=e.Debug.deprecate(function(p,a,d,k){return e.factory.updateImportClause(p,k,a,d)},n),e.createExportDeclaration=e.Debug.deprecate(function(p,a,d,k,J){return J===void 0&&(J=!1),e.factory.createExportDeclaration(p,a,J,d,k)},n),e.updateExportDeclaration=e.Debug.deprecate(function(p,a,d,k,J,h){return e.factory.updateExportDeclaration(p,a,d,h,k,J,p.assertClause)},n),e.createJSDocParamTag=e.Debug.deprecate(function(p,a,d,k){return e.factory.createJSDocParameterTag(void 0,p,a,d,!1,k?e.factory.createNodeArray([e.factory.createJSDocText(k)]):void 0)},n),e.createComma=e.Debug.deprecate(function(p,a){return e.factory.createComma(p,a)},n),e.createLessThan=e.Debug.deprecate(function(p,a){return e.factory.createLessThan(p,a)},n),e.createAssignment=e.Debug.deprecate(function(p,a){return e.factory.createAssignment(p,a)},n),e.createStrictEquality=e.Debug.deprecate(function(p,a){return e.factory.createStrictEquality(p,a)},n),e.createStrictInequality=e.Debug.deprecate(function(p,a){return e.factory.createStrictInequality(p,a)},n),e.createAdd=e.Debug.deprecate(function(p,a){return e.factory.createAdd(p,a)},n),e.createSubtract=e.Debug.deprecate(function(p,a){return e.factory.createSubtract(p,a)},n),e.createLogicalAnd=e.Debug.deprecate(function(p,a){return e.factory.createLogicalAnd(p,a)},n),e.createLogicalOr=e.Debug.deprecate(function(p,a){return e.factory.createLogicalOr(p,a)},n),e.createPostfixIncrement=e.Debug.deprecate(function(p){return e.factory.createPostfixIncrement(p)},n),e.createLogicalNot=e.Debug.deprecate(function(p){return e.factory.createLogicalNot(p)},n),e.createNode=e.Debug.deprecate(function(p,a,d){return a===void 0&&(a=0),d===void 0&&(d=0),e.setTextRangePosEnd(p===303?e.parseBaseNodeFactory.createBaseSourceFileNode(p):p===79?e.parseBaseNodeFactory.createBaseIdentifierNode(p):p===80?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(p):e.isNodeKind(p)?e.parseBaseNodeFactory.createBaseNode(p):e.parseBaseNodeFactory.createBaseTokenNode(p),a,d)},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate(function(p){var a=e.factory.cloneNode(p);return e.setTextRange(a,p),e.setParent(a,p.parent),a},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."}),e.isTypeAssertion=e.Debug.deprecate(function(p){return p.kind===210},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."}),e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate(function(p){return e.isMemberName(p)},{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})})(jr||(jr={}));var ck=jr.createClassifier,sD=jr.createLanguageService,uk=jr.displayPartsToString,fk=jr.EndOfLineState,dk=jr.flattenDiagnosticMessageText,pk=jr.IndentStyle,Mm=jr.ScriptKind,_k=jr.ScriptTarget,mk=jr.TokenClass,lD=jr,Oi={};Oi["lib.d.ts"]=`/*! *****************************************************************************
  260. Copyright (c) Microsoft Corporation. All rights reserved.
  261. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  262. this file except in compliance with the License. You may obtain a copy of the
  263. License at http://www.apache.org/licenses/LICENSE-2.0
  264. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  265. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  266. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  267. MERCHANTABLITY OR NON-INFRINGEMENT.
  268. See the Apache Version 2.0 License for specific language governing permissions
  269. and limitations under the License.
  270. ***************************************************************************** */
  271. /// <reference no-default-lib="true"/>
  272. /// <reference lib="es5" />
  273. /// <reference lib="dom" />
  274. /// <reference lib="webworker.importscripts" />
  275. /// <reference lib="scripthost" />
  276. `,Oi["lib.dom.d.ts"]=`/*! *****************************************************************************
  277. Copyright (c) Microsoft Corporation. All rights reserved.
  278. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  279. this file except in compliance with the License. You may obtain a copy of the
  280. License at http://www.apache.org/licenses/LICENSE-2.0
  281. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  282. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  283. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  284. MERCHANTABLITY OR NON-INFRINGEMENT.
  285. See the Apache Version 2.0 License for specific language governing permissions
  286. and limitations under the License.
  287. ***************************************************************************** */
  288. /// <reference no-default-lib="true"/>
  289. /////////////////////////////
  290. /// Window APIs
  291. /////////////////////////////
  292. interface AddEventListenerOptions extends EventListenerOptions {
  293. once?: boolean;
  294. passive?: boolean;
  295. signal?: AbortSignal;
  296. }
  297. interface AesCbcParams extends Algorithm {
  298. iv: BufferSource;
  299. }
  300. interface AesCtrParams extends Algorithm {
  301. counter: BufferSource;
  302. length: number;
  303. }
  304. interface AesDerivedKeyParams extends Algorithm {
  305. length: number;
  306. }
  307. interface AesGcmParams extends Algorithm {
  308. additionalData?: BufferSource;
  309. iv: BufferSource;
  310. tagLength?: number;
  311. }
  312. interface AesKeyAlgorithm extends KeyAlgorithm {
  313. length: number;
  314. }
  315. interface AesKeyGenParams extends Algorithm {
  316. length: number;
  317. }
  318. interface Algorithm {
  319. name: string;
  320. }
  321. interface AnalyserOptions extends AudioNodeOptions {
  322. fftSize?: number;
  323. maxDecibels?: number;
  324. minDecibels?: number;
  325. smoothingTimeConstant?: number;
  326. }
  327. interface AnimationEventInit extends EventInit {
  328. animationName?: string;
  329. elapsedTime?: number;
  330. pseudoElement?: string;
  331. }
  332. interface AnimationPlaybackEventInit extends EventInit {
  333. currentTime?: CSSNumberish | null;
  334. timelineTime?: CSSNumberish | null;
  335. }
  336. interface AssignedNodesOptions {
  337. flatten?: boolean;
  338. }
  339. interface AudioBufferOptions {
  340. length: number;
  341. numberOfChannels?: number;
  342. sampleRate: number;
  343. }
  344. interface AudioBufferSourceOptions {
  345. buffer?: AudioBuffer | null;
  346. detune?: number;
  347. loop?: boolean;
  348. loopEnd?: number;
  349. loopStart?: number;
  350. playbackRate?: number;
  351. }
  352. interface AudioConfiguration {
  353. bitrate?: number;
  354. channels?: string;
  355. contentType: string;
  356. samplerate?: number;
  357. spatialRendering?: boolean;
  358. }
  359. interface AudioContextOptions {
  360. latencyHint?: AudioContextLatencyCategory | number;
  361. sampleRate?: number;
  362. }
  363. interface AudioNodeOptions {
  364. channelCount?: number;
  365. channelCountMode?: ChannelCountMode;
  366. channelInterpretation?: ChannelInterpretation;
  367. }
  368. interface AudioProcessingEventInit extends EventInit {
  369. inputBuffer: AudioBuffer;
  370. outputBuffer: AudioBuffer;
  371. playbackTime: number;
  372. }
  373. interface AudioTimestamp {
  374. contextTime?: number;
  375. performanceTime?: DOMHighResTimeStamp;
  376. }
  377. interface AudioWorkletNodeOptions extends AudioNodeOptions {
  378. numberOfInputs?: number;
  379. numberOfOutputs?: number;
  380. outputChannelCount?: number[];
  381. parameterData?: Record<string, number>;
  382. processorOptions?: any;
  383. }
  384. interface AuthenticationExtensionsClientInputs {
  385. appid?: string;
  386. appidExclude?: string;
  387. credProps?: boolean;
  388. uvm?: boolean;
  389. }
  390. interface AuthenticationExtensionsClientOutputs {
  391. appid?: boolean;
  392. credProps?: CredentialPropertiesOutput;
  393. uvm?: UvmEntries;
  394. }
  395. interface AuthenticatorSelectionCriteria {
  396. authenticatorAttachment?: AuthenticatorAttachment;
  397. requireResidentKey?: boolean;
  398. residentKey?: ResidentKeyRequirement;
  399. userVerification?: UserVerificationRequirement;
  400. }
  401. interface BiquadFilterOptions extends AudioNodeOptions {
  402. Q?: number;
  403. detune?: number;
  404. frequency?: number;
  405. gain?: number;
  406. type?: BiquadFilterType;
  407. }
  408. interface BlobEventInit {
  409. data: Blob;
  410. timecode?: DOMHighResTimeStamp;
  411. }
  412. interface BlobPropertyBag {
  413. endings?: EndingType;
  414. type?: string;
  415. }
  416. interface CSSStyleSheetInit {
  417. baseURL?: string;
  418. disabled?: boolean;
  419. media?: MediaList | string;
  420. }
  421. interface CacheQueryOptions {
  422. ignoreMethod?: boolean;
  423. ignoreSearch?: boolean;
  424. ignoreVary?: boolean;
  425. }
  426. interface CanvasRenderingContext2DSettings {
  427. alpha?: boolean;
  428. colorSpace?: PredefinedColorSpace;
  429. desynchronized?: boolean;
  430. willReadFrequently?: boolean;
  431. }
  432. interface ChannelMergerOptions extends AudioNodeOptions {
  433. numberOfInputs?: number;
  434. }
  435. interface ChannelSplitterOptions extends AudioNodeOptions {
  436. numberOfOutputs?: number;
  437. }
  438. interface ClientQueryOptions {
  439. includeUncontrolled?: boolean;
  440. type?: ClientTypes;
  441. }
  442. interface ClipboardEventInit extends EventInit {
  443. clipboardData?: DataTransfer | null;
  444. }
  445. interface ClipboardItemOptions {
  446. presentationStyle?: PresentationStyle;
  447. }
  448. interface CloseEventInit extends EventInit {
  449. code?: number;
  450. reason?: string;
  451. wasClean?: boolean;
  452. }
  453. interface CompositionEventInit extends UIEventInit {
  454. data?: string;
  455. }
  456. interface ComputedEffectTiming extends EffectTiming {
  457. activeDuration?: CSSNumberish;
  458. currentIteration?: number | null;
  459. endTime?: CSSNumberish;
  460. localTime?: CSSNumberish | null;
  461. progress?: CSSNumberish | null;
  462. startTime?: CSSNumberish;
  463. }
  464. interface ComputedKeyframe {
  465. composite: CompositeOperationOrAuto;
  466. computedOffset: number;
  467. easing: string;
  468. offset: number | null;
  469. [property: string]: string | number | null | undefined;
  470. }
  471. interface ConstantSourceOptions {
  472. offset?: number;
  473. }
  474. interface ConstrainBooleanParameters {
  475. exact?: boolean;
  476. ideal?: boolean;
  477. }
  478. interface ConstrainDOMStringParameters {
  479. exact?: string | string[];
  480. ideal?: string | string[];
  481. }
  482. interface ConstrainDoubleRange extends DoubleRange {
  483. exact?: number;
  484. ideal?: number;
  485. }
  486. interface ConstrainULongRange extends ULongRange {
  487. exact?: number;
  488. ideal?: number;
  489. }
  490. interface ConvolverOptions extends AudioNodeOptions {
  491. buffer?: AudioBuffer | null;
  492. disableNormalization?: boolean;
  493. }
  494. interface CredentialCreationOptions {
  495. publicKey?: PublicKeyCredentialCreationOptions;
  496. signal?: AbortSignal;
  497. }
  498. interface CredentialPropertiesOutput {
  499. rk?: boolean;
  500. }
  501. interface CredentialRequestOptions {
  502. mediation?: CredentialMediationRequirement;
  503. publicKey?: PublicKeyCredentialRequestOptions;
  504. signal?: AbortSignal;
  505. }
  506. interface CryptoKeyPair {
  507. privateKey?: CryptoKey;
  508. publicKey?: CryptoKey;
  509. }
  510. interface CustomEventInit<T = any> extends EventInit {
  511. detail?: T;
  512. }
  513. interface DOMMatrix2DInit {
  514. a?: number;
  515. b?: number;
  516. c?: number;
  517. d?: number;
  518. e?: number;
  519. f?: number;
  520. m11?: number;
  521. m12?: number;
  522. m21?: number;
  523. m22?: number;
  524. m41?: number;
  525. m42?: number;
  526. }
  527. interface DOMMatrixInit extends DOMMatrix2DInit {
  528. is2D?: boolean;
  529. m13?: number;
  530. m14?: number;
  531. m23?: number;
  532. m24?: number;
  533. m31?: number;
  534. m32?: number;
  535. m33?: number;
  536. m34?: number;
  537. m43?: number;
  538. m44?: number;
  539. }
  540. interface DOMPointInit {
  541. w?: number;
  542. x?: number;
  543. y?: number;
  544. z?: number;
  545. }
  546. interface DOMQuadInit {
  547. p1?: DOMPointInit;
  548. p2?: DOMPointInit;
  549. p3?: DOMPointInit;
  550. p4?: DOMPointInit;
  551. }
  552. interface DOMRectInit {
  553. height?: number;
  554. width?: number;
  555. x?: number;
  556. y?: number;
  557. }
  558. interface DelayOptions extends AudioNodeOptions {
  559. delayTime?: number;
  560. maxDelayTime?: number;
  561. }
  562. interface DeviceMotionEventAccelerationInit {
  563. x?: number | null;
  564. y?: number | null;
  565. z?: number | null;
  566. }
  567. interface DeviceMotionEventInit extends EventInit {
  568. acceleration?: DeviceMotionEventAccelerationInit;
  569. accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;
  570. interval?: number;
  571. rotationRate?: DeviceMotionEventRotationRateInit;
  572. }
  573. interface DeviceMotionEventRotationRateInit {
  574. alpha?: number | null;
  575. beta?: number | null;
  576. gamma?: number | null;
  577. }
  578. interface DeviceOrientationEventInit extends EventInit {
  579. absolute?: boolean;
  580. alpha?: number | null;
  581. beta?: number | null;
  582. gamma?: number | null;
  583. }
  584. interface DisplayMediaStreamConstraints {
  585. audio?: boolean | MediaTrackConstraints;
  586. video?: boolean | MediaTrackConstraints;
  587. }
  588. interface DocumentTimelineOptions {
  589. originTime?: DOMHighResTimeStamp;
  590. }
  591. interface DoubleRange {
  592. max?: number;
  593. min?: number;
  594. }
  595. interface DragEventInit extends MouseEventInit {
  596. dataTransfer?: DataTransfer | null;
  597. }
  598. interface DynamicsCompressorOptions extends AudioNodeOptions {
  599. attack?: number;
  600. knee?: number;
  601. ratio?: number;
  602. release?: number;
  603. threshold?: number;
  604. }
  605. interface EcKeyAlgorithm extends KeyAlgorithm {
  606. namedCurve: NamedCurve;
  607. }
  608. interface EcKeyGenParams extends Algorithm {
  609. namedCurve: NamedCurve;
  610. }
  611. interface EcKeyImportParams extends Algorithm {
  612. namedCurve: NamedCurve;
  613. }
  614. interface EcdhKeyDeriveParams extends Algorithm {
  615. public: CryptoKey;
  616. }
  617. interface EcdsaParams extends Algorithm {
  618. hash: HashAlgorithmIdentifier;
  619. }
  620. interface EffectTiming {
  621. delay?: number;
  622. direction?: PlaybackDirection;
  623. duration?: number | string;
  624. easing?: string;
  625. endDelay?: number;
  626. fill?: FillMode;
  627. iterationStart?: number;
  628. iterations?: number;
  629. playbackRate?: number;
  630. }
  631. interface ElementCreationOptions {
  632. is?: string;
  633. }
  634. interface ElementDefinitionOptions {
  635. extends?: string;
  636. }
  637. interface ErrorEventInit extends EventInit {
  638. colno?: number;
  639. error?: any;
  640. filename?: string;
  641. lineno?: number;
  642. message?: string;
  643. }
  644. interface EventInit {
  645. bubbles?: boolean;
  646. cancelable?: boolean;
  647. composed?: boolean;
  648. }
  649. interface EventListenerOptions {
  650. capture?: boolean;
  651. }
  652. interface EventModifierInit extends UIEventInit {
  653. altKey?: boolean;
  654. ctrlKey?: boolean;
  655. metaKey?: boolean;
  656. modifierAltGraph?: boolean;
  657. modifierCapsLock?: boolean;
  658. modifierFn?: boolean;
  659. modifierFnLock?: boolean;
  660. modifierHyper?: boolean;
  661. modifierNumLock?: boolean;
  662. modifierScrollLock?: boolean;
  663. modifierSuper?: boolean;
  664. modifierSymbol?: boolean;
  665. modifierSymbolLock?: boolean;
  666. shiftKey?: boolean;
  667. }
  668. interface EventSourceInit {
  669. withCredentials?: boolean;
  670. }
  671. interface FilePropertyBag extends BlobPropertyBag {
  672. lastModified?: number;
  673. }
  674. interface FileSystemFlags {
  675. create?: boolean;
  676. exclusive?: boolean;
  677. }
  678. interface FocusEventInit extends UIEventInit {
  679. relatedTarget?: EventTarget | null;
  680. }
  681. interface FocusOptions {
  682. preventScroll?: boolean;
  683. }
  684. interface FontFaceDescriptors {
  685. display?: string;
  686. featureSettings?: string;
  687. stretch?: string;
  688. style?: string;
  689. unicodeRange?: string;
  690. variant?: string;
  691. weight?: string;
  692. }
  693. interface FontFaceSetLoadEventInit extends EventInit {
  694. fontfaces?: FontFace[];
  695. }
  696. interface FormDataEventInit extends EventInit {
  697. formData: FormData;
  698. }
  699. interface FullscreenOptions {
  700. navigationUI?: FullscreenNavigationUI;
  701. }
  702. interface GainOptions extends AudioNodeOptions {
  703. gain?: number;
  704. }
  705. interface GamepadEventInit extends EventInit {
  706. gamepad: Gamepad;
  707. }
  708. interface GetAnimationsOptions {
  709. subtree?: boolean;
  710. }
  711. interface GetNotificationOptions {
  712. tag?: string;
  713. }
  714. interface GetRootNodeOptions {
  715. composed?: boolean;
  716. }
  717. interface HashChangeEventInit extends EventInit {
  718. newURL?: string;
  719. oldURL?: string;
  720. }
  721. interface HkdfParams extends Algorithm {
  722. hash: HashAlgorithmIdentifier;
  723. info: BufferSource;
  724. salt: BufferSource;
  725. }
  726. interface HmacImportParams extends Algorithm {
  727. hash: HashAlgorithmIdentifier;
  728. length?: number;
  729. }
  730. interface HmacKeyAlgorithm extends KeyAlgorithm {
  731. hash: KeyAlgorithm;
  732. length: number;
  733. }
  734. interface HmacKeyGenParams extends Algorithm {
  735. hash: HashAlgorithmIdentifier;
  736. length?: number;
  737. }
  738. interface IDBDatabaseInfo {
  739. name?: string;
  740. version?: number;
  741. }
  742. interface IDBIndexParameters {
  743. multiEntry?: boolean;
  744. unique?: boolean;
  745. }
  746. interface IDBObjectStoreParameters {
  747. autoIncrement?: boolean;
  748. keyPath?: string | string[] | null;
  749. }
  750. interface IDBVersionChangeEventInit extends EventInit {
  751. newVersion?: number | null;
  752. oldVersion?: number;
  753. }
  754. interface IIRFilterOptions extends AudioNodeOptions {
  755. feedback: number[];
  756. feedforward: number[];
  757. }
  758. interface IdleRequestOptions {
  759. timeout?: number;
  760. }
  761. interface ImageBitmapOptions {
  762. colorSpaceConversion?: ColorSpaceConversion;
  763. imageOrientation?: ImageOrientation;
  764. premultiplyAlpha?: PremultiplyAlpha;
  765. resizeHeight?: number;
  766. resizeQuality?: ResizeQuality;
  767. resizeWidth?: number;
  768. }
  769. interface ImageBitmapRenderingContextSettings {
  770. alpha?: boolean;
  771. }
  772. interface ImageDataSettings {
  773. colorSpace?: PredefinedColorSpace;
  774. }
  775. interface ImportMeta {
  776. url: string;
  777. }
  778. interface InputEventInit extends UIEventInit {
  779. data?: string | null;
  780. dataTransfer?: DataTransfer | null;
  781. inputType?: string;
  782. isComposing?: boolean;
  783. targetRanges?: StaticRange[];
  784. }
  785. interface IntersectionObserverEntryInit {
  786. boundingClientRect: DOMRectInit;
  787. intersectionRatio: number;
  788. intersectionRect: DOMRectInit;
  789. isIntersecting: boolean;
  790. rootBounds: DOMRectInit | null;
  791. target: Element;
  792. time: DOMHighResTimeStamp;
  793. }
  794. interface IntersectionObserverInit {
  795. root?: Element | Document | null;
  796. rootMargin?: string;
  797. threshold?: number | number[];
  798. }
  799. interface JsonWebKey {
  800. alg?: string;
  801. crv?: string;
  802. d?: string;
  803. dp?: string;
  804. dq?: string;
  805. e?: string;
  806. ext?: boolean;
  807. k?: string;
  808. key_ops?: string[];
  809. kty?: string;
  810. n?: string;
  811. oth?: RsaOtherPrimesInfo[];
  812. p?: string;
  813. q?: string;
  814. qi?: string;
  815. use?: string;
  816. x?: string;
  817. y?: string;
  818. }
  819. interface KeyAlgorithm {
  820. name: string;
  821. }
  822. interface KeyboardEventInit extends EventModifierInit {
  823. /** @deprecated */
  824. charCode?: number;
  825. code?: string;
  826. isComposing?: boolean;
  827. key?: string;
  828. /** @deprecated */
  829. keyCode?: number;
  830. location?: number;
  831. repeat?: boolean;
  832. }
  833. interface Keyframe {
  834. composite?: CompositeOperationOrAuto;
  835. easing?: string;
  836. offset?: number | null;
  837. [property: string]: string | number | null | undefined;
  838. }
  839. interface KeyframeAnimationOptions extends KeyframeEffectOptions {
  840. id?: string;
  841. }
  842. interface KeyframeEffectOptions extends EffectTiming {
  843. composite?: CompositeOperation;
  844. iterationComposite?: IterationCompositeOperation;
  845. pseudoElement?: string | null;
  846. }
  847. interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
  848. configuration?: MediaDecodingConfiguration;
  849. }
  850. interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
  851. configuration?: MediaEncodingConfiguration;
  852. }
  853. interface MediaCapabilitiesInfo {
  854. powerEfficient: boolean;
  855. smooth: boolean;
  856. supported: boolean;
  857. }
  858. interface MediaConfiguration {
  859. audio?: AudioConfiguration;
  860. video?: VideoConfiguration;
  861. }
  862. interface MediaDecodingConfiguration extends MediaConfiguration {
  863. type: MediaDecodingType;
  864. }
  865. interface MediaElementAudioSourceOptions {
  866. mediaElement: HTMLMediaElement;
  867. }
  868. interface MediaEncodingConfiguration extends MediaConfiguration {
  869. type: MediaEncodingType;
  870. }
  871. interface MediaEncryptedEventInit extends EventInit {
  872. initData?: ArrayBuffer | null;
  873. initDataType?: string;
  874. }
  875. interface MediaImage {
  876. sizes?: string;
  877. src: string;
  878. type?: string;
  879. }
  880. interface MediaKeyMessageEventInit extends EventInit {
  881. message: ArrayBuffer;
  882. messageType: MediaKeyMessageType;
  883. }
  884. interface MediaKeySystemConfiguration {
  885. audioCapabilities?: MediaKeySystemMediaCapability[];
  886. distinctiveIdentifier?: MediaKeysRequirement;
  887. initDataTypes?: string[];
  888. label?: string;
  889. persistentState?: MediaKeysRequirement;
  890. sessionTypes?: string[];
  891. videoCapabilities?: MediaKeySystemMediaCapability[];
  892. }
  893. interface MediaKeySystemMediaCapability {
  894. contentType?: string;
  895. encryptionScheme?: string | null;
  896. robustness?: string;
  897. }
  898. interface MediaMetadataInit {
  899. album?: string;
  900. artist?: string;
  901. artwork?: MediaImage[];
  902. title?: string;
  903. }
  904. interface MediaPositionState {
  905. duration?: number;
  906. playbackRate?: number;
  907. position?: number;
  908. }
  909. interface MediaQueryListEventInit extends EventInit {
  910. matches?: boolean;
  911. media?: string;
  912. }
  913. interface MediaRecorderErrorEventInit extends EventInit {
  914. error: DOMException;
  915. }
  916. interface MediaRecorderOptions {
  917. audioBitsPerSecond?: number;
  918. bitsPerSecond?: number;
  919. mimeType?: string;
  920. videoBitsPerSecond?: number;
  921. }
  922. interface MediaSessionActionDetails {
  923. action: MediaSessionAction;
  924. fastSeek?: boolean | null;
  925. seekOffset?: number | null;
  926. seekTime?: number | null;
  927. }
  928. interface MediaStreamAudioSourceOptions {
  929. mediaStream: MediaStream;
  930. }
  931. interface MediaStreamConstraints {
  932. audio?: boolean | MediaTrackConstraints;
  933. peerIdentity?: string;
  934. preferCurrentTab?: boolean;
  935. video?: boolean | MediaTrackConstraints;
  936. }
  937. interface MediaStreamTrackEventInit extends EventInit {
  938. track: MediaStreamTrack;
  939. }
  940. interface MediaTrackCapabilities {
  941. aspectRatio?: DoubleRange;
  942. autoGainControl?: boolean[];
  943. channelCount?: ULongRange;
  944. cursor?: string[];
  945. deviceId?: string;
  946. displaySurface?: string;
  947. echoCancellation?: boolean[];
  948. facingMode?: string[];
  949. frameRate?: DoubleRange;
  950. groupId?: string;
  951. height?: ULongRange;
  952. latency?: DoubleRange;
  953. logicalSurface?: boolean;
  954. noiseSuppression?: boolean[];
  955. resizeMode?: string[];
  956. sampleRate?: ULongRange;
  957. sampleSize?: ULongRange;
  958. width?: ULongRange;
  959. }
  960. interface MediaTrackConstraintSet {
  961. aspectRatio?: ConstrainDouble;
  962. autoGainControl?: ConstrainBoolean;
  963. channelCount?: ConstrainULong;
  964. deviceId?: ConstrainDOMString;
  965. echoCancellation?: ConstrainBoolean;
  966. facingMode?: ConstrainDOMString;
  967. frameRate?: ConstrainDouble;
  968. groupId?: ConstrainDOMString;
  969. height?: ConstrainULong;
  970. latency?: ConstrainDouble;
  971. noiseSuppression?: ConstrainBoolean;
  972. sampleRate?: ConstrainULong;
  973. sampleSize?: ConstrainULong;
  974. suppressLocalAudioPlayback?: ConstrainBoolean;
  975. width?: ConstrainULong;
  976. }
  977. interface MediaTrackConstraints extends MediaTrackConstraintSet {
  978. advanced?: MediaTrackConstraintSet[];
  979. }
  980. interface MediaTrackSettings {
  981. aspectRatio?: number;
  982. autoGainControl?: boolean;
  983. deviceId?: string;
  984. echoCancellation?: boolean;
  985. facingMode?: string;
  986. frameRate?: number;
  987. groupId?: string;
  988. height?: number;
  989. noiseSuppression?: boolean;
  990. restrictOwnAudio?: boolean;
  991. sampleRate?: number;
  992. sampleSize?: number;
  993. width?: number;
  994. }
  995. interface MediaTrackSupportedConstraints {
  996. aspectRatio?: boolean;
  997. autoGainControl?: boolean;
  998. deviceId?: boolean;
  999. echoCancellation?: boolean;
  1000. facingMode?: boolean;
  1001. frameRate?: boolean;
  1002. groupId?: boolean;
  1003. height?: boolean;
  1004. noiseSuppression?: boolean;
  1005. sampleRate?: boolean;
  1006. sampleSize?: boolean;
  1007. suppressLocalAudioPlayback?: boolean;
  1008. width?: boolean;
  1009. }
  1010. interface MessageEventInit<T = any> extends EventInit {
  1011. data?: T;
  1012. lastEventId?: string;
  1013. origin?: string;
  1014. ports?: MessagePort[];
  1015. source?: MessageEventSource | null;
  1016. }
  1017. interface MouseEventInit extends EventModifierInit {
  1018. button?: number;
  1019. buttons?: number;
  1020. clientX?: number;
  1021. clientY?: number;
  1022. movementX?: number;
  1023. movementY?: number;
  1024. relatedTarget?: EventTarget | null;
  1025. screenX?: number;
  1026. screenY?: number;
  1027. }
  1028. interface MultiCacheQueryOptions extends CacheQueryOptions {
  1029. cacheName?: string;
  1030. }
  1031. interface MutationObserverInit {
  1032. /** 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. */
  1033. attributeFilter?: string[];
  1034. /** Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded. */
  1035. attributeOldValue?: boolean;
  1036. /** Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */
  1037. attributes?: boolean;
  1038. /** Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified. */
  1039. characterData?: boolean;
  1040. /** Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded. */
  1041. characterDataOldValue?: boolean;
  1042. /** Set to true if mutations to target's children are to be observed. */
  1043. childList?: boolean;
  1044. /** Set to true if mutations to not just target, but also target's descendants are to be observed. */
  1045. subtree?: boolean;
  1046. }
  1047. interface NotificationAction {
  1048. action: string;
  1049. icon?: string;
  1050. title: string;
  1051. }
  1052. interface NotificationOptions {
  1053. actions?: NotificationAction[];
  1054. badge?: string;
  1055. body?: string;
  1056. data?: any;
  1057. dir?: NotificationDirection;
  1058. icon?: string;
  1059. image?: string;
  1060. lang?: string;
  1061. renotify?: boolean;
  1062. requireInteraction?: boolean;
  1063. silent?: boolean;
  1064. tag?: string;
  1065. timestamp?: DOMTimeStamp;
  1066. vibrate?: VibratePattern;
  1067. }
  1068. interface OfflineAudioCompletionEventInit extends EventInit {
  1069. renderedBuffer: AudioBuffer;
  1070. }
  1071. interface OfflineAudioContextOptions {
  1072. length: number;
  1073. numberOfChannels?: number;
  1074. sampleRate: number;
  1075. }
  1076. interface OptionalEffectTiming {
  1077. delay?: number;
  1078. direction?: PlaybackDirection;
  1079. duration?: number | string;
  1080. easing?: string;
  1081. endDelay?: number;
  1082. fill?: FillMode;
  1083. iterationStart?: number;
  1084. iterations?: number;
  1085. playbackRate?: number;
  1086. }
  1087. interface OscillatorOptions extends AudioNodeOptions {
  1088. detune?: number;
  1089. frequency?: number;
  1090. periodicWave?: PeriodicWave;
  1091. type?: OscillatorType;
  1092. }
  1093. interface PageTransitionEventInit extends EventInit {
  1094. persisted?: boolean;
  1095. }
  1096. interface PannerOptions extends AudioNodeOptions {
  1097. coneInnerAngle?: number;
  1098. coneOuterAngle?: number;
  1099. coneOuterGain?: number;
  1100. distanceModel?: DistanceModelType;
  1101. maxDistance?: number;
  1102. orientationX?: number;
  1103. orientationY?: number;
  1104. orientationZ?: number;
  1105. panningModel?: PanningModelType;
  1106. positionX?: number;
  1107. positionY?: number;
  1108. positionZ?: number;
  1109. refDistance?: number;
  1110. rolloffFactor?: number;
  1111. }
  1112. interface PaymentCurrencyAmount {
  1113. currency: string;
  1114. value: string;
  1115. }
  1116. interface PaymentDetailsBase {
  1117. displayItems?: PaymentItem[];
  1118. modifiers?: PaymentDetailsModifier[];
  1119. }
  1120. interface PaymentDetailsInit extends PaymentDetailsBase {
  1121. id?: string;
  1122. total: PaymentItem;
  1123. }
  1124. interface PaymentDetailsModifier {
  1125. additionalDisplayItems?: PaymentItem[];
  1126. data?: any;
  1127. supportedMethods: string;
  1128. total?: PaymentItem;
  1129. }
  1130. interface PaymentDetailsUpdate extends PaymentDetailsBase {
  1131. paymentMethodErrors?: any;
  1132. total?: PaymentItem;
  1133. }
  1134. interface PaymentItem {
  1135. amount: PaymentCurrencyAmount;
  1136. label: string;
  1137. pending?: boolean;
  1138. }
  1139. interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {
  1140. methodDetails?: any;
  1141. methodName?: string;
  1142. }
  1143. interface PaymentMethodData {
  1144. data?: any;
  1145. supportedMethods: string;
  1146. }
  1147. interface PaymentRequestUpdateEventInit extends EventInit {
  1148. }
  1149. interface PaymentValidationErrors {
  1150. error?: string;
  1151. paymentMethod?: any;
  1152. }
  1153. interface Pbkdf2Params extends Algorithm {
  1154. hash: HashAlgorithmIdentifier;
  1155. iterations: number;
  1156. salt: BufferSource;
  1157. }
  1158. interface PerformanceMarkOptions {
  1159. detail?: any;
  1160. startTime?: DOMHighResTimeStamp;
  1161. }
  1162. interface PerformanceMeasureOptions {
  1163. detail?: any;
  1164. duration?: DOMHighResTimeStamp;
  1165. end?: string | DOMHighResTimeStamp;
  1166. start?: string | DOMHighResTimeStamp;
  1167. }
  1168. interface PerformanceObserverInit {
  1169. buffered?: boolean;
  1170. entryTypes?: string[];
  1171. type?: string;
  1172. }
  1173. interface PeriodicWaveConstraints {
  1174. disableNormalization?: boolean;
  1175. }
  1176. interface PeriodicWaveOptions extends PeriodicWaveConstraints {
  1177. imag?: number[] | Float32Array;
  1178. real?: number[] | Float32Array;
  1179. }
  1180. interface PermissionDescriptor {
  1181. name: PermissionName;
  1182. }
  1183. interface PointerEventInit extends MouseEventInit {
  1184. coalescedEvents?: PointerEvent[];
  1185. height?: number;
  1186. isPrimary?: boolean;
  1187. pointerId?: number;
  1188. pointerType?: string;
  1189. predictedEvents?: PointerEvent[];
  1190. pressure?: number;
  1191. tangentialPressure?: number;
  1192. tiltX?: number;
  1193. tiltY?: number;
  1194. twist?: number;
  1195. width?: number;
  1196. }
  1197. interface PopStateEventInit extends EventInit {
  1198. state?: any;
  1199. }
  1200. interface PositionOptions {
  1201. enableHighAccuracy?: boolean;
  1202. maximumAge?: number;
  1203. timeout?: number;
  1204. }
  1205. interface ProgressEventInit extends EventInit {
  1206. lengthComputable?: boolean;
  1207. loaded?: number;
  1208. total?: number;
  1209. }
  1210. interface PromiseRejectionEventInit extends EventInit {
  1211. promise: Promise<any>;
  1212. reason?: any;
  1213. }
  1214. interface PropertyIndexedKeyframes {
  1215. composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];
  1216. easing?: string | string[];
  1217. offset?: number | (number | null)[];
  1218. [property: string]: string | string[] | number | null | (number | null)[] | undefined;
  1219. }
  1220. interface PublicKeyCredentialCreationOptions {
  1221. attestation?: AttestationConveyancePreference;
  1222. authenticatorSelection?: AuthenticatorSelectionCriteria;
  1223. challenge: BufferSource;
  1224. excludeCredentials?: PublicKeyCredentialDescriptor[];
  1225. extensions?: AuthenticationExtensionsClientInputs;
  1226. pubKeyCredParams: PublicKeyCredentialParameters[];
  1227. rp: PublicKeyCredentialRpEntity;
  1228. timeout?: number;
  1229. user: PublicKeyCredentialUserEntity;
  1230. }
  1231. interface PublicKeyCredentialDescriptor {
  1232. id: BufferSource;
  1233. transports?: AuthenticatorTransport[];
  1234. type: PublicKeyCredentialType;
  1235. }
  1236. interface PublicKeyCredentialEntity {
  1237. name: string;
  1238. }
  1239. interface PublicKeyCredentialParameters {
  1240. alg: COSEAlgorithmIdentifier;
  1241. type: PublicKeyCredentialType;
  1242. }
  1243. interface PublicKeyCredentialRequestOptions {
  1244. allowCredentials?: PublicKeyCredentialDescriptor[];
  1245. challenge: BufferSource;
  1246. extensions?: AuthenticationExtensionsClientInputs;
  1247. rpId?: string;
  1248. timeout?: number;
  1249. userVerification?: UserVerificationRequirement;
  1250. }
  1251. interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
  1252. id?: string;
  1253. }
  1254. interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
  1255. displayName: string;
  1256. id: BufferSource;
  1257. }
  1258. interface PushSubscriptionJSON {
  1259. endpoint?: string;
  1260. expirationTime?: DOMTimeStamp | null;
  1261. keys?: Record<string, string>;
  1262. }
  1263. interface PushSubscriptionOptionsInit {
  1264. applicationServerKey?: BufferSource | string | null;
  1265. userVisibleOnly?: boolean;
  1266. }
  1267. interface QueuingStrategy<T = any> {
  1268. highWaterMark?: number;
  1269. size?: QueuingStrategySize<T>;
  1270. }
  1271. interface QueuingStrategyInit {
  1272. /**
  1273. * Creates a new ByteLengthQueuingStrategy with the provided high water mark.
  1274. *
  1275. * 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.
  1276. */
  1277. highWaterMark: number;
  1278. }
  1279. interface RTCAnswerOptions extends RTCOfferAnswerOptions {
  1280. }
  1281. interface RTCCertificateExpiration {
  1282. expires?: DOMTimeStamp;
  1283. }
  1284. interface RTCConfiguration {
  1285. bundlePolicy?: RTCBundlePolicy;
  1286. certificates?: RTCCertificate[];
  1287. iceCandidatePoolSize?: number;
  1288. iceServers?: RTCIceServer[];
  1289. iceTransportPolicy?: RTCIceTransportPolicy;
  1290. rtcpMuxPolicy?: RTCRtcpMuxPolicy;
  1291. }
  1292. interface RTCDTMFToneChangeEventInit extends EventInit {
  1293. tone?: string;
  1294. }
  1295. interface RTCDataChannelEventInit extends EventInit {
  1296. channel: RTCDataChannel;
  1297. }
  1298. interface RTCDataChannelInit {
  1299. id?: number;
  1300. maxPacketLifeTime?: number;
  1301. maxRetransmits?: number;
  1302. negotiated?: boolean;
  1303. ordered?: boolean;
  1304. protocol?: string;
  1305. }
  1306. interface RTCDtlsFingerprint {
  1307. algorithm?: string;
  1308. value?: string;
  1309. }
  1310. interface RTCIceCandidateInit {
  1311. candidate?: string;
  1312. sdpMLineIndex?: number | null;
  1313. sdpMid?: string | null;
  1314. usernameFragment?: string | null;
  1315. }
  1316. interface RTCIceCandidatePairStats extends RTCStats {
  1317. availableIncomingBitrate?: number;
  1318. availableOutgoingBitrate?: number;
  1319. bytesReceived?: number;
  1320. bytesSent?: number;
  1321. currentRoundTripTime?: number;
  1322. localCandidateId: string;
  1323. nominated?: boolean;
  1324. remoteCandidateId: string;
  1325. requestsReceived?: number;
  1326. requestsSent?: number;
  1327. responsesReceived?: number;
  1328. responsesSent?: number;
  1329. state: RTCStatsIceCandidatePairState;
  1330. totalRoundTripTime?: number;
  1331. transportId: string;
  1332. }
  1333. interface RTCIceServer {
  1334. credential?: string;
  1335. credentialType?: RTCIceCredentialType;
  1336. urls: string | string[];
  1337. username?: string;
  1338. }
  1339. interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
  1340. firCount?: number;
  1341. framesDecoded?: number;
  1342. nackCount?: number;
  1343. pliCount?: number;
  1344. qpSum?: number;
  1345. remoteId?: string;
  1346. }
  1347. interface RTCLocalSessionDescriptionInit {
  1348. sdp?: string;
  1349. type?: RTCSdpType;
  1350. }
  1351. interface RTCOfferAnswerOptions {
  1352. }
  1353. interface RTCOfferOptions extends RTCOfferAnswerOptions {
  1354. iceRestart?: boolean;
  1355. offerToReceiveAudio?: boolean;
  1356. offerToReceiveVideo?: boolean;
  1357. }
  1358. interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {
  1359. firCount?: number;
  1360. framesEncoded?: number;
  1361. nackCount?: number;
  1362. pliCount?: number;
  1363. qpSum?: number;
  1364. remoteId?: string;
  1365. }
  1366. interface RTCPeerConnectionIceErrorEventInit extends EventInit {
  1367. address?: string | null;
  1368. errorCode: number;
  1369. errorText?: string;
  1370. port?: number | null;
  1371. url?: string;
  1372. }
  1373. interface RTCPeerConnectionIceEventInit extends EventInit {
  1374. candidate?: RTCIceCandidate | null;
  1375. url?: string | null;
  1376. }
  1377. interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {
  1378. jitter?: number;
  1379. packetsDiscarded?: number;
  1380. packetsLost?: number;
  1381. packetsReceived?: number;
  1382. }
  1383. interface RTCRtcpParameters {
  1384. cname?: string;
  1385. reducedSize?: boolean;
  1386. }
  1387. interface RTCRtpCapabilities {
  1388. codecs: RTCRtpCodecCapability[];
  1389. headerExtensions: RTCRtpHeaderExtensionCapability[];
  1390. }
  1391. interface RTCRtpCodecCapability {
  1392. channels?: number;
  1393. clockRate: number;
  1394. mimeType: string;
  1395. sdpFmtpLine?: string;
  1396. }
  1397. interface RTCRtpCodecParameters {
  1398. channels?: number;
  1399. clockRate: number;
  1400. mimeType: string;
  1401. payloadType: number;
  1402. sdpFmtpLine?: string;
  1403. }
  1404. interface RTCRtpCodingParameters {
  1405. rid?: string;
  1406. }
  1407. interface RTCRtpContributingSource {
  1408. audioLevel?: number;
  1409. rtpTimestamp: number;
  1410. source: number;
  1411. timestamp: DOMHighResTimeStamp;
  1412. }
  1413. interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
  1414. active?: boolean;
  1415. maxBitrate?: number;
  1416. priority?: RTCPriorityType;
  1417. scaleResolutionDownBy?: number;
  1418. }
  1419. interface RTCRtpHeaderExtensionCapability {
  1420. uri?: string;
  1421. }
  1422. interface RTCRtpHeaderExtensionParameters {
  1423. encrypted?: boolean;
  1424. id: number;
  1425. uri: string;
  1426. }
  1427. interface RTCRtpParameters {
  1428. codecs: RTCRtpCodecParameters[];
  1429. headerExtensions: RTCRtpHeaderExtensionParameters[];
  1430. rtcp: RTCRtcpParameters;
  1431. }
  1432. interface RTCRtpReceiveParameters extends RTCRtpParameters {
  1433. }
  1434. interface RTCRtpSendParameters extends RTCRtpParameters {
  1435. degradationPreference?: RTCDegradationPreference;
  1436. encodings: RTCRtpEncodingParameters[];
  1437. transactionId: string;
  1438. }
  1439. interface RTCRtpStreamStats extends RTCStats {
  1440. codecId?: string;
  1441. kind: string;
  1442. ssrc: number;
  1443. transportId?: string;
  1444. }
  1445. interface RTCRtpSynchronizationSource extends RTCRtpContributingSource {
  1446. }
  1447. interface RTCRtpTransceiverInit {
  1448. direction?: RTCRtpTransceiverDirection;
  1449. sendEncodings?: RTCRtpEncodingParameters[];
  1450. streams?: MediaStream[];
  1451. }
  1452. interface RTCSentRtpStreamStats extends RTCRtpStreamStats {
  1453. bytesSent?: number;
  1454. packetsSent?: number;
  1455. }
  1456. interface RTCSessionDescriptionInit {
  1457. sdp?: string;
  1458. type: RTCSdpType;
  1459. }
  1460. interface RTCStats {
  1461. id: string;
  1462. timestamp: DOMHighResTimeStamp;
  1463. type: RTCStatsType;
  1464. }
  1465. interface RTCTrackEventInit extends EventInit {
  1466. receiver: RTCRtpReceiver;
  1467. streams?: MediaStream[];
  1468. track: MediaStreamTrack;
  1469. transceiver: RTCRtpTransceiver;
  1470. }
  1471. interface RTCTransportStats extends RTCStats {
  1472. bytesReceived?: number;
  1473. bytesSent?: number;
  1474. dtlsCipher?: string;
  1475. dtlsState: RTCDtlsTransportState;
  1476. localCertificateId?: string;
  1477. remoteCertificateId?: string;
  1478. rtcpTransportStatsId?: string;
  1479. selectedCandidatePairId?: string;
  1480. srtpCipher?: string;
  1481. tlsVersion?: string;
  1482. }
  1483. interface ReadableStreamDefaultReadDoneResult {
  1484. done: true;
  1485. value?: undefined;
  1486. }
  1487. interface ReadableStreamDefaultReadValueResult<T> {
  1488. done: false;
  1489. value: T;
  1490. }
  1491. interface ReadableWritablePair<R = any, W = any> {
  1492. readable: ReadableStream<R>;
  1493. /**
  1494. * 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.
  1495. *
  1496. * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
  1497. */
  1498. writable: WritableStream<W>;
  1499. }
  1500. interface RegistrationOptions {
  1501. scope?: string;
  1502. type?: WorkerType;
  1503. updateViaCache?: ServiceWorkerUpdateViaCache;
  1504. }
  1505. interface RequestInit {
  1506. /** A BodyInit object or null to set request's body. */
  1507. body?: BodyInit | null;
  1508. /** A string indicating how the request will interact with the browser's cache to set request's cache. */
  1509. cache?: RequestCache;
  1510. /** 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. */
  1511. credentials?: RequestCredentials;
  1512. /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */
  1513. headers?: HeadersInit;
  1514. /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
  1515. integrity?: string;
  1516. /** A boolean to set request's keepalive. */
  1517. keepalive?: boolean;
  1518. /** A string to set request's method. */
  1519. method?: string;
  1520. /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
  1521. mode?: RequestMode;
  1522. /** 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. */
  1523. redirect?: RequestRedirect;
  1524. /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
  1525. referrer?: string;
  1526. /** A referrer policy to set request's referrerPolicy. */
  1527. referrerPolicy?: ReferrerPolicy;
  1528. /** An AbortSignal to set request's signal. */
  1529. signal?: AbortSignal | null;
  1530. /** Can only be null. Used to disassociate request from any Window. */
  1531. window?: null;
  1532. }
  1533. interface ResizeObserverOptions {
  1534. box?: ResizeObserverBoxOptions;
  1535. }
  1536. interface ResponseInit {
  1537. headers?: HeadersInit;
  1538. status?: number;
  1539. statusText?: string;
  1540. }
  1541. interface RsaHashedImportParams extends Algorithm {
  1542. hash: HashAlgorithmIdentifier;
  1543. }
  1544. interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
  1545. hash: KeyAlgorithm;
  1546. }
  1547. interface RsaHashedKeyGenParams extends RsaKeyGenParams {
  1548. hash: HashAlgorithmIdentifier;
  1549. }
  1550. interface RsaKeyAlgorithm extends KeyAlgorithm {
  1551. modulusLength: number;
  1552. publicExponent: BigInteger;
  1553. }
  1554. interface RsaKeyGenParams extends Algorithm {
  1555. modulusLength: number;
  1556. publicExponent: BigInteger;
  1557. }
  1558. interface RsaOaepParams extends Algorithm {
  1559. label?: BufferSource;
  1560. }
  1561. interface RsaOtherPrimesInfo {
  1562. d?: string;
  1563. r?: string;
  1564. t?: string;
  1565. }
  1566. interface RsaPssParams extends Algorithm {
  1567. saltLength: number;
  1568. }
  1569. interface SVGBoundingBoxOptions {
  1570. clipped?: boolean;
  1571. fill?: boolean;
  1572. markers?: boolean;
  1573. stroke?: boolean;
  1574. }
  1575. interface ScrollIntoViewOptions extends ScrollOptions {
  1576. block?: ScrollLogicalPosition;
  1577. inline?: ScrollLogicalPosition;
  1578. }
  1579. interface ScrollOptions {
  1580. behavior?: ScrollBehavior;
  1581. }
  1582. interface ScrollToOptions extends ScrollOptions {
  1583. left?: number;
  1584. top?: number;
  1585. }
  1586. interface SecurityPolicyViolationEventInit extends EventInit {
  1587. blockedURI?: string;
  1588. columnNumber?: number;
  1589. disposition: SecurityPolicyViolationEventDisposition;
  1590. documentURI: string;
  1591. effectiveDirective: string;
  1592. lineNumber?: number;
  1593. originalPolicy: string;
  1594. referrer?: string;
  1595. sample?: string;
  1596. sourceFile?: string;
  1597. statusCode: number;
  1598. violatedDirective: string;
  1599. }
  1600. interface ShadowRootInit {
  1601. delegatesFocus?: boolean;
  1602. mode: ShadowRootMode;
  1603. slotAssignment?: SlotAssignmentMode;
  1604. }
  1605. interface ShareData {
  1606. files?: File[];
  1607. text?: string;
  1608. title?: string;
  1609. url?: string;
  1610. }
  1611. interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {
  1612. error: SpeechSynthesisErrorCode;
  1613. }
  1614. interface SpeechSynthesisEventInit extends EventInit {
  1615. charIndex?: number;
  1616. charLength?: number;
  1617. elapsedTime?: number;
  1618. name?: string;
  1619. utterance: SpeechSynthesisUtterance;
  1620. }
  1621. interface StaticRangeInit {
  1622. endContainer: Node;
  1623. endOffset: number;
  1624. startContainer: Node;
  1625. startOffset: number;
  1626. }
  1627. interface StereoPannerOptions extends AudioNodeOptions {
  1628. pan?: number;
  1629. }
  1630. interface StorageEstimate {
  1631. quota?: number;
  1632. usage?: number;
  1633. }
  1634. interface StorageEventInit extends EventInit {
  1635. key?: string | null;
  1636. newValue?: string | null;
  1637. oldValue?: string | null;
  1638. storageArea?: Storage | null;
  1639. url?: string;
  1640. }
  1641. interface StreamPipeOptions {
  1642. preventAbort?: boolean;
  1643. preventCancel?: boolean;
  1644. /**
  1645. * 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.
  1646. *
  1647. * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
  1648. *
  1649. * Errors and closures of the source and destination streams propagate as follows:
  1650. *
  1651. * 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.
  1652. *
  1653. * 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.
  1654. *
  1655. * 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.
  1656. *
  1657. * 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.
  1658. *
  1659. * 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.
  1660. */
  1661. preventClose?: boolean;
  1662. signal?: AbortSignal;
  1663. }
  1664. interface StructuredSerializeOptions {
  1665. transfer?: any[];
  1666. }
  1667. interface SubmitEventInit extends EventInit {
  1668. submitter?: HTMLElement | null;
  1669. }
  1670. interface TextDecodeOptions {
  1671. stream?: boolean;
  1672. }
  1673. interface TextDecoderOptions {
  1674. fatal?: boolean;
  1675. ignoreBOM?: boolean;
  1676. }
  1677. interface TextEncoderEncodeIntoResult {
  1678. read?: number;
  1679. written?: number;
  1680. }
  1681. interface TouchEventInit extends EventModifierInit {
  1682. changedTouches?: Touch[];
  1683. targetTouches?: Touch[];
  1684. touches?: Touch[];
  1685. }
  1686. interface TouchInit {
  1687. altitudeAngle?: number;
  1688. azimuthAngle?: number;
  1689. clientX?: number;
  1690. clientY?: number;
  1691. force?: number;
  1692. identifier: number;
  1693. pageX?: number;
  1694. pageY?: number;
  1695. radiusX?: number;
  1696. radiusY?: number;
  1697. rotationAngle?: number;
  1698. screenX?: number;
  1699. screenY?: number;
  1700. target: EventTarget;
  1701. touchType?: TouchType;
  1702. }
  1703. interface TrackEventInit extends EventInit {
  1704. track?: TextTrack | null;
  1705. }
  1706. interface Transformer<I = any, O = any> {
  1707. flush?: TransformerFlushCallback<O>;
  1708. readableType?: undefined;
  1709. start?: TransformerStartCallback<O>;
  1710. transform?: TransformerTransformCallback<I, O>;
  1711. writableType?: undefined;
  1712. }
  1713. interface TransitionEventInit extends EventInit {
  1714. elapsedTime?: number;
  1715. propertyName?: string;
  1716. pseudoElement?: string;
  1717. }
  1718. interface UIEventInit extends EventInit {
  1719. detail?: number;
  1720. view?: Window | null;
  1721. /** @deprecated */
  1722. which?: number;
  1723. }
  1724. interface ULongRange {
  1725. max?: number;
  1726. min?: number;
  1727. }
  1728. interface UnderlyingSink<W = any> {
  1729. abort?: UnderlyingSinkAbortCallback;
  1730. close?: UnderlyingSinkCloseCallback;
  1731. start?: UnderlyingSinkStartCallback;
  1732. type?: undefined;
  1733. write?: UnderlyingSinkWriteCallback<W>;
  1734. }
  1735. interface UnderlyingSource<R = any> {
  1736. cancel?: UnderlyingSourceCancelCallback;
  1737. pull?: UnderlyingSourcePullCallback<R>;
  1738. start?: UnderlyingSourceStartCallback<R>;
  1739. type?: undefined;
  1740. }
  1741. interface VideoConfiguration {
  1742. bitrate: number;
  1743. colorGamut?: ColorGamut;
  1744. contentType: string;
  1745. framerate: number;
  1746. hdrMetadataType?: HdrMetadataType;
  1747. height: number;
  1748. scalabilityMode?: string;
  1749. transferFunction?: TransferFunction;
  1750. width: number;
  1751. }
  1752. interface WaveShaperOptions extends AudioNodeOptions {
  1753. curve?: number[] | Float32Array;
  1754. oversample?: OverSampleType;
  1755. }
  1756. interface WebGLContextAttributes {
  1757. alpha?: boolean;
  1758. antialias?: boolean;
  1759. depth?: boolean;
  1760. desynchronized?: boolean;
  1761. failIfMajorPerformanceCaveat?: boolean;
  1762. powerPreference?: WebGLPowerPreference;
  1763. premultipliedAlpha?: boolean;
  1764. preserveDrawingBuffer?: boolean;
  1765. stencil?: boolean;
  1766. }
  1767. interface WebGLContextEventInit extends EventInit {
  1768. statusMessage?: string;
  1769. }
  1770. interface WheelEventInit extends MouseEventInit {
  1771. deltaMode?: number;
  1772. deltaX?: number;
  1773. deltaY?: number;
  1774. deltaZ?: number;
  1775. }
  1776. interface WindowPostMessageOptions extends StructuredSerializeOptions {
  1777. targetOrigin?: string;
  1778. }
  1779. interface WorkerOptions {
  1780. credentials?: RequestCredentials;
  1781. name?: string;
  1782. type?: WorkerType;
  1783. }
  1784. interface WorkletOptions {
  1785. credentials?: RequestCredentials;
  1786. }
  1787. type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };
  1788. declare var NodeFilter: {
  1789. readonly FILTER_ACCEPT: number;
  1790. readonly FILTER_REJECT: number;
  1791. readonly FILTER_SKIP: number;
  1792. readonly SHOW_ALL: number;
  1793. readonly SHOW_ATTRIBUTE: number;
  1794. readonly SHOW_CDATA_SECTION: number;
  1795. readonly SHOW_COMMENT: number;
  1796. readonly SHOW_DOCUMENT: number;
  1797. readonly SHOW_DOCUMENT_FRAGMENT: number;
  1798. readonly SHOW_DOCUMENT_TYPE: number;
  1799. readonly SHOW_ELEMENT: number;
  1800. readonly SHOW_ENTITY: number;
  1801. readonly SHOW_ENTITY_REFERENCE: number;
  1802. readonly SHOW_NOTATION: number;
  1803. readonly SHOW_PROCESSING_INSTRUCTION: number;
  1804. readonly SHOW_TEXT: number;
  1805. };
  1806. type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };
  1807. /** 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. */
  1808. interface ANGLE_instanced_arrays {
  1809. drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
  1810. drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
  1811. vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
  1812. readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;
  1813. }
  1814. interface ARIAMixin {
  1815. ariaAtomic: string;
  1816. ariaAutoComplete: string;
  1817. ariaBusy: string;
  1818. ariaChecked: string;
  1819. ariaColCount: string;
  1820. ariaColIndex: string;
  1821. ariaColSpan: string;
  1822. ariaCurrent: string;
  1823. ariaDisabled: string;
  1824. ariaExpanded: string;
  1825. ariaHasPopup: string;
  1826. ariaHidden: string;
  1827. ariaKeyShortcuts: string;
  1828. ariaLabel: string;
  1829. ariaLevel: string;
  1830. ariaLive: string;
  1831. ariaModal: string;
  1832. ariaMultiLine: string;
  1833. ariaMultiSelectable: string;
  1834. ariaOrientation: string;
  1835. ariaPlaceholder: string;
  1836. ariaPosInSet: string;
  1837. ariaPressed: string;
  1838. ariaReadOnly: string;
  1839. ariaRequired: string;
  1840. ariaRoleDescription: string;
  1841. ariaRowCount: string;
  1842. ariaRowIndex: string;
  1843. ariaRowSpan: string;
  1844. ariaSelected: string;
  1845. ariaSetSize: string;
  1846. ariaSort: string;
  1847. ariaValueMax: string;
  1848. ariaValueMin: string;
  1849. ariaValueNow: string;
  1850. ariaValueText: string;
  1851. }
  1852. /** A controller object that allows you to abort one or more DOM requests as and when desired. */
  1853. interface AbortController {
  1854. /** Returns the AbortSignal object associated with this object. */
  1855. readonly signal: AbortSignal;
  1856. /** 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. */
  1857. abort(): void;
  1858. }
  1859. declare var AbortController: {
  1860. prototype: AbortController;
  1861. new(): AbortController;
  1862. };
  1863. interface AbortSignalEventMap {
  1864. "abort": Event;
  1865. }
  1866. /** 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. */
  1867. interface AbortSignal extends EventTarget {
  1868. /** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
  1869. readonly aborted: boolean;
  1870. onabort: ((this: AbortSignal, ev: Event) => any) | null;
  1871. addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  1872. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  1873. removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  1874. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  1875. }
  1876. declare var AbortSignal: {
  1877. prototype: AbortSignal;
  1878. new(): AbortSignal;
  1879. // abort(): AbortSignal; - To be re-added in the future
  1880. };
  1881. interface AbstractRange {
  1882. /** Returns true if range is collapsed, and false otherwise. */
  1883. readonly collapsed: boolean;
  1884. /** Returns range's end node. */
  1885. readonly endContainer: Node;
  1886. /** Returns range's end offset. */
  1887. readonly endOffset: number;
  1888. /** Returns range's start node. */
  1889. readonly startContainer: Node;
  1890. /** Returns range's start offset. */
  1891. readonly startOffset: number;
  1892. }
  1893. declare var AbstractRange: {
  1894. prototype: AbstractRange;
  1895. new(): AbstractRange;
  1896. };
  1897. interface AbstractWorkerEventMap {
  1898. "error": ErrorEvent;
  1899. }
  1900. interface AbstractWorker {
  1901. onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
  1902. addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  1903. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  1904. removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  1905. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  1906. }
  1907. /** 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. */
  1908. interface AnalyserNode extends AudioNode {
  1909. fftSize: number;
  1910. readonly frequencyBinCount: number;
  1911. maxDecibels: number;
  1912. minDecibels: number;
  1913. smoothingTimeConstant: number;
  1914. getByteFrequencyData(array: Uint8Array): void;
  1915. getByteTimeDomainData(array: Uint8Array): void;
  1916. getFloatFrequencyData(array: Float32Array): void;
  1917. getFloatTimeDomainData(array: Float32Array): void;
  1918. }
  1919. declare var AnalyserNode: {
  1920. prototype: AnalyserNode;
  1921. new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;
  1922. };
  1923. interface Animatable {
  1924. animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
  1925. getAnimations(options?: GetAnimationsOptions): Animation[];
  1926. }
  1927. interface AnimationEventMap {
  1928. "cancel": AnimationPlaybackEvent;
  1929. "finish": AnimationPlaybackEvent;
  1930. "remove": Event;
  1931. }
  1932. interface Animation extends EventTarget {
  1933. currentTime: CSSNumberish | null;
  1934. effect: AnimationEffect | null;
  1935. readonly finished: Promise<Animation>;
  1936. id: string;
  1937. oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
  1938. onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
  1939. onremove: ((this: Animation, ev: Event) => any) | null;
  1940. readonly pending: boolean;
  1941. readonly playState: AnimationPlayState;
  1942. playbackRate: number;
  1943. readonly ready: Promise<Animation>;
  1944. readonly replaceState: AnimationReplaceState;
  1945. startTime: CSSNumberish | null;
  1946. timeline: AnimationTimeline | null;
  1947. cancel(): void;
  1948. commitStyles(): void;
  1949. finish(): void;
  1950. pause(): void;
  1951. persist(): void;
  1952. play(): void;
  1953. reverse(): void;
  1954. updatePlaybackRate(playbackRate: number): void;
  1955. addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  1956. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  1957. removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  1958. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  1959. }
  1960. declare var Animation: {
  1961. prototype: Animation;
  1962. new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;
  1963. };
  1964. interface AnimationEffect {
  1965. getComputedTiming(): ComputedEffectTiming;
  1966. getTiming(): EffectTiming;
  1967. updateTiming(timing?: OptionalEffectTiming): void;
  1968. }
  1969. declare var AnimationEffect: {
  1970. prototype: AnimationEffect;
  1971. new(): AnimationEffect;
  1972. };
  1973. /** Events providing information related to animations. */
  1974. interface AnimationEvent extends Event {
  1975. readonly animationName: string;
  1976. readonly elapsedTime: number;
  1977. readonly pseudoElement: string;
  1978. }
  1979. declare var AnimationEvent: {
  1980. prototype: AnimationEvent;
  1981. new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;
  1982. };
  1983. interface AnimationFrameProvider {
  1984. cancelAnimationFrame(handle: number): void;
  1985. requestAnimationFrame(callback: FrameRequestCallback): number;
  1986. }
  1987. interface AnimationPlaybackEvent extends Event {
  1988. readonly currentTime: CSSNumberish | null;
  1989. readonly timelineTime: CSSNumberish | null;
  1990. }
  1991. declare var AnimationPlaybackEvent: {
  1992. prototype: AnimationPlaybackEvent;
  1993. new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;
  1994. };
  1995. interface AnimationTimeline {
  1996. readonly currentTime: number | null;
  1997. }
  1998. declare var AnimationTimeline: {
  1999. prototype: AnimationTimeline;
  2000. new(): AnimationTimeline;
  2001. };
  2002. /** 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. */
  2003. interface Attr extends Node {
  2004. readonly localName: string;
  2005. readonly name: string;
  2006. readonly namespaceURI: string | null;
  2007. readonly ownerDocument: Document;
  2008. readonly ownerElement: Element | null;
  2009. readonly prefix: string | null;
  2010. readonly specified: boolean;
  2011. value: string;
  2012. }
  2013. declare var Attr: {
  2014. prototype: Attr;
  2015. new(): Attr;
  2016. };
  2017. /** 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. */
  2018. interface AudioBuffer {
  2019. readonly duration: number;
  2020. readonly length: number;
  2021. readonly numberOfChannels: number;
  2022. readonly sampleRate: number;
  2023. copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void;
  2024. copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void;
  2025. getChannelData(channel: number): Float32Array;
  2026. }
  2027. declare var AudioBuffer: {
  2028. prototype: AudioBuffer;
  2029. new(options: AudioBufferOptions): AudioBuffer;
  2030. };
  2031. /** 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. */
  2032. interface AudioBufferSourceNode extends AudioScheduledSourceNode {
  2033. buffer: AudioBuffer | null;
  2034. readonly detune: AudioParam;
  2035. loop: boolean;
  2036. loopEnd: number;
  2037. loopStart: number;
  2038. readonly playbackRate: AudioParam;
  2039. start(when?: number, offset?: number, duration?: number): void;
  2040. addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  2041. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  2042. removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  2043. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  2044. }
  2045. declare var AudioBufferSourceNode: {
  2046. prototype: AudioBufferSourceNode;
  2047. new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;
  2048. };
  2049. /** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */
  2050. interface AudioContext extends BaseAudioContext {
  2051. readonly baseLatency: number;
  2052. close(): Promise<void>;
  2053. createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
  2054. createMediaStreamDestination(): MediaStreamAudioDestinationNode;
  2055. createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;
  2056. getOutputTimestamp(): AudioTimestamp;
  2057. resume(): Promise<void>;
  2058. suspend(): Promise<void>;
  2059. addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  2060. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  2061. removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  2062. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  2063. }
  2064. declare var AudioContext: {
  2065. prototype: AudioContext;
  2066. new(contextOptions?: AudioContextOptions): AudioContext;
  2067. };
  2068. /** 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. */
  2069. interface AudioDestinationNode extends AudioNode {
  2070. readonly maxChannelCount: number;
  2071. }
  2072. declare var AudioDestinationNode: {
  2073. prototype: AudioDestinationNode;
  2074. new(): AudioDestinationNode;
  2075. };
  2076. /** 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. */
  2077. interface AudioListener {
  2078. readonly forwardX: AudioParam;
  2079. readonly forwardY: AudioParam;
  2080. readonly forwardZ: AudioParam;
  2081. readonly positionX: AudioParam;
  2082. readonly positionY: AudioParam;
  2083. readonly positionZ: AudioParam;
  2084. readonly upX: AudioParam;
  2085. readonly upY: AudioParam;
  2086. readonly upZ: AudioParam;
  2087. /** @deprecated */
  2088. setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;
  2089. /** @deprecated */
  2090. setPosition(x: number, y: number, z: number): void;
  2091. }
  2092. declare var AudioListener: {
  2093. prototype: AudioListener;
  2094. new(): AudioListener;
  2095. };
  2096. /** A generic interface for representing an audio processing module. Examples include: */
  2097. interface AudioNode extends EventTarget {
  2098. channelCount: number;
  2099. channelCountMode: ChannelCountMode;
  2100. channelInterpretation: ChannelInterpretation;
  2101. readonly context: BaseAudioContext;
  2102. readonly numberOfInputs: number;
  2103. readonly numberOfOutputs: number;
  2104. connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;
  2105. connect(destinationParam: AudioParam, output?: number): void;
  2106. disconnect(): void;
  2107. disconnect(output: number): void;
  2108. disconnect(destinationNode: AudioNode): void;
  2109. disconnect(destinationNode: AudioNode, output: number): void;
  2110. disconnect(destinationNode: AudioNode, output: number, input: number): void;
  2111. disconnect(destinationParam: AudioParam): void;
  2112. disconnect(destinationParam: AudioParam, output: number): void;
  2113. }
  2114. declare var AudioNode: {
  2115. prototype: AudioNode;
  2116. new(): AudioNode;
  2117. };
  2118. /** The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). */
  2119. interface AudioParam {
  2120. automationRate: AutomationRate;
  2121. readonly defaultValue: number;
  2122. readonly maxValue: number;
  2123. readonly minValue: number;
  2124. value: number;
  2125. cancelAndHoldAtTime(cancelTime: number): AudioParam;
  2126. cancelScheduledValues(cancelTime: number): AudioParam;
  2127. exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;
  2128. linearRampToValueAtTime(value: number, endTime: number): AudioParam;
  2129. setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;
  2130. setValueAtTime(value: number, startTime: number): AudioParam;
  2131. setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;
  2132. }
  2133. declare var AudioParam: {
  2134. prototype: AudioParam;
  2135. new(): AudioParam;
  2136. };
  2137. interface AudioParamMap {
  2138. forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;
  2139. }
  2140. declare var AudioParamMap: {
  2141. prototype: AudioParamMap;
  2142. new(): AudioParamMap;
  2143. };
  2144. /**
  2145. * The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed.
  2146. * @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.
  2147. */
  2148. interface AudioProcessingEvent extends Event {
  2149. /** @deprecated */
  2150. readonly inputBuffer: AudioBuffer;
  2151. /** @deprecated */
  2152. readonly outputBuffer: AudioBuffer;
  2153. /** @deprecated */
  2154. readonly playbackTime: number;
  2155. }
  2156. /** @deprecated */
  2157. declare var AudioProcessingEvent: {
  2158. prototype: AudioProcessingEvent;
  2159. new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;
  2160. };
  2161. interface AudioScheduledSourceNodeEventMap {
  2162. "ended": Event;
  2163. }
  2164. interface AudioScheduledSourceNode extends AudioNode {
  2165. onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;
  2166. start(when?: number): void;
  2167. stop(when?: number): void;
  2168. addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  2169. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  2170. removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  2171. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  2172. }
  2173. declare var AudioScheduledSourceNode: {
  2174. prototype: AudioScheduledSourceNode;
  2175. new(): AudioScheduledSourceNode;
  2176. };
  2177. /** Available only in secure contexts. */
  2178. interface AudioWorklet extends Worklet {
  2179. }
  2180. declare var AudioWorklet: {
  2181. prototype: AudioWorklet;
  2182. new(): AudioWorklet;
  2183. };
  2184. interface AudioWorkletNodeEventMap {
  2185. "processorerror": Event;
  2186. }
  2187. /** Available only in secure contexts. */
  2188. interface AudioWorkletNode extends AudioNode {
  2189. onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;
  2190. readonly parameters: AudioParamMap;
  2191. readonly port: MessagePort;
  2192. addEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  2193. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  2194. removeEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  2195. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  2196. }
  2197. declare var AudioWorkletNode: {
  2198. prototype: AudioWorkletNode;
  2199. new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;
  2200. };
  2201. /** Available only in secure contexts. */
  2202. interface AuthenticatorAssertionResponse extends AuthenticatorResponse {
  2203. readonly authenticatorData: ArrayBuffer;
  2204. readonly signature: ArrayBuffer;
  2205. readonly userHandle: ArrayBuffer | null;
  2206. }
  2207. declare var AuthenticatorAssertionResponse: {
  2208. prototype: AuthenticatorAssertionResponse;
  2209. new(): AuthenticatorAssertionResponse;
  2210. };
  2211. /** Available only in secure contexts. */
  2212. interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
  2213. readonly attestationObject: ArrayBuffer;
  2214. }
  2215. declare var AuthenticatorAttestationResponse: {
  2216. prototype: AuthenticatorAttestationResponse;
  2217. new(): AuthenticatorAttestationResponse;
  2218. };
  2219. /** Available only in secure contexts. */
  2220. interface AuthenticatorResponse {
  2221. readonly clientDataJSON: ArrayBuffer;
  2222. }
  2223. declare var AuthenticatorResponse: {
  2224. prototype: AuthenticatorResponse;
  2225. new(): AuthenticatorResponse;
  2226. };
  2227. interface BarProp {
  2228. readonly visible: boolean;
  2229. }
  2230. declare var BarProp: {
  2231. prototype: BarProp;
  2232. new(): BarProp;
  2233. };
  2234. interface BaseAudioContextEventMap {
  2235. "statechange": Event;
  2236. }
  2237. interface BaseAudioContext extends EventTarget {
  2238. /** Available only in secure contexts. */
  2239. readonly audioWorklet: AudioWorklet;
  2240. readonly currentTime: number;
  2241. readonly destination: AudioDestinationNode;
  2242. readonly listener: AudioListener;
  2243. onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;
  2244. readonly sampleRate: number;
  2245. readonly state: AudioContextState;
  2246. createAnalyser(): AnalyserNode;
  2247. createBiquadFilter(): BiquadFilterNode;
  2248. createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
  2249. createBufferSource(): AudioBufferSourceNode;
  2250. createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
  2251. createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
  2252. createConstantSource(): ConstantSourceNode;
  2253. createConvolver(): ConvolverNode;
  2254. createDelay(maxDelayTime?: number): DelayNode;
  2255. createDynamicsCompressor(): DynamicsCompressorNode;
  2256. createGain(): GainNode;
  2257. createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;
  2258. createOscillator(): OscillatorNode;
  2259. createPanner(): PannerNode;
  2260. createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
  2261. /** @deprecated */
  2262. createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
  2263. createStereoPanner(): StereoPannerNode;
  2264. createWaveShaper(): WaveShaperNode;
  2265. decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise<AudioBuffer>;
  2266. addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  2267. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  2268. removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  2269. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  2270. }
  2271. declare var BaseAudioContext: {
  2272. prototype: BaseAudioContext;
  2273. new(): BaseAudioContext;
  2274. };
  2275. /** The beforeunload event is fired when the window, the document and its resources are about to be unloaded. */
  2276. interface BeforeUnloadEvent extends Event {
  2277. returnValue: any;
  2278. }
  2279. declare var BeforeUnloadEvent: {
  2280. prototype: BeforeUnloadEvent;
  2281. new(): BeforeUnloadEvent;
  2282. };
  2283. /** 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. */
  2284. interface BiquadFilterNode extends AudioNode {
  2285. readonly Q: AudioParam;
  2286. readonly detune: AudioParam;
  2287. readonly frequency: AudioParam;
  2288. readonly gain: AudioParam;
  2289. type: BiquadFilterType;
  2290. getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
  2291. }
  2292. declare var BiquadFilterNode: {
  2293. prototype: BiquadFilterNode;
  2294. new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;
  2295. };
  2296. /** 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. */
  2297. interface Blob {
  2298. readonly size: number;
  2299. readonly type: string;
  2300. arrayBuffer(): Promise<ArrayBuffer>;
  2301. slice(start?: number, end?: number, contentType?: string): Blob;
  2302. stream(): ReadableStream;
  2303. text(): Promise<string>;
  2304. }
  2305. declare var Blob: {
  2306. prototype: Blob;
  2307. new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
  2308. };
  2309. interface BlobEvent extends Event {
  2310. readonly data: Blob;
  2311. readonly timecode: DOMHighResTimeStamp;
  2312. }
  2313. declare var BlobEvent: {
  2314. prototype: BlobEvent;
  2315. new(type: string, eventInitDict: BlobEventInit): BlobEvent;
  2316. };
  2317. interface Body {
  2318. readonly body: ReadableStream<Uint8Array> | null;
  2319. readonly bodyUsed: boolean;
  2320. arrayBuffer(): Promise<ArrayBuffer>;
  2321. blob(): Promise<Blob>;
  2322. formData(): Promise<FormData>;
  2323. json(): Promise<any>;
  2324. text(): Promise<string>;
  2325. }
  2326. interface BroadcastChannelEventMap {
  2327. "message": MessageEvent;
  2328. "messageerror": MessageEvent;
  2329. }
  2330. interface BroadcastChannel extends EventTarget {
  2331. /** Returns the channel name (as passed to the constructor). */
  2332. readonly name: string;
  2333. onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
  2334. onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
  2335. /** Closes the BroadcastChannel object, opening it up to garbage collection. */
  2336. close(): void;
  2337. /** Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. */
  2338. postMessage(message: any): void;
  2339. addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  2340. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  2341. removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  2342. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  2343. }
  2344. declare var BroadcastChannel: {
  2345. prototype: BroadcastChannel;
  2346. new(name: string): BroadcastChannel;
  2347. };
  2348. /** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
  2349. interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
  2350. readonly highWaterMark: number;
  2351. readonly size: QueuingStrategySize<ArrayBufferView>;
  2352. }
  2353. declare var ByteLengthQueuingStrategy: {
  2354. prototype: ByteLengthQueuingStrategy;
  2355. new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
  2356. };
  2357. /** 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. */
  2358. interface CDATASection extends Text {
  2359. }
  2360. declare var CDATASection: {
  2361. prototype: CDATASection;
  2362. new(): CDATASection;
  2363. };
  2364. interface CSSAnimation extends Animation {
  2365. readonly animationName: string;
  2366. addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  2367. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  2368. removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  2369. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  2370. }
  2371. declare var CSSAnimation: {
  2372. prototype: CSSAnimation;
  2373. new(): CSSAnimation;
  2374. };
  2375. /** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */
  2376. interface CSSConditionRule extends CSSGroupingRule {
  2377. conditionText: string;
  2378. }
  2379. declare var CSSConditionRule: {
  2380. prototype: CSSConditionRule;
  2381. new(): CSSConditionRule;
  2382. };
  2383. interface CSSCounterStyleRule extends CSSRule {
  2384. additiveSymbols: string;
  2385. fallback: string;
  2386. name: string;
  2387. negative: string;
  2388. pad: string;
  2389. prefix: string;
  2390. range: string;
  2391. speakAs: string;
  2392. suffix: string;
  2393. symbols: string;
  2394. system: string;
  2395. }
  2396. declare var CSSCounterStyleRule: {
  2397. prototype: CSSCounterStyleRule;
  2398. new(): CSSCounterStyleRule;
  2399. };
  2400. interface CSSFontFaceRule extends CSSRule {
  2401. readonly style: CSSStyleDeclaration;
  2402. }
  2403. declare var CSSFontFaceRule: {
  2404. prototype: CSSFontFaceRule;
  2405. new(): CSSFontFaceRule;
  2406. };
  2407. /** Any CSS at-rule that contains other rules nested within it. */
  2408. interface CSSGroupingRule extends CSSRule {
  2409. readonly cssRules: CSSRuleList;
  2410. deleteRule(index: number): void;
  2411. insertRule(rule: string, index?: number): number;
  2412. }
  2413. declare var CSSGroupingRule: {
  2414. prototype: CSSGroupingRule;
  2415. new(): CSSGroupingRule;
  2416. };
  2417. interface CSSImportRule extends CSSRule {
  2418. readonly href: string;
  2419. readonly media: MediaList;
  2420. readonly styleSheet: CSSStyleSheet;
  2421. }
  2422. declare var CSSImportRule: {
  2423. prototype: CSSImportRule;
  2424. new(): CSSImportRule;
  2425. };
  2426. /** 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). */
  2427. interface CSSKeyframeRule extends CSSRule {
  2428. keyText: string;
  2429. readonly style: CSSStyleDeclaration;
  2430. }
  2431. declare var CSSKeyframeRule: {
  2432. prototype: CSSKeyframeRule;
  2433. new(): CSSKeyframeRule;
  2434. };
  2435. /** 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). */
  2436. interface CSSKeyframesRule extends CSSRule {
  2437. readonly cssRules: CSSRuleList;
  2438. name: string;
  2439. appendRule(rule: string): void;
  2440. deleteRule(select: string): void;
  2441. findRule(select: string): CSSKeyframeRule | null;
  2442. }
  2443. declare var CSSKeyframesRule: {
  2444. prototype: CSSKeyframesRule;
  2445. new(): CSSKeyframesRule;
  2446. };
  2447. /** 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). */
  2448. interface CSSMediaRule extends CSSConditionRule {
  2449. readonly media: MediaList;
  2450. }
  2451. declare var CSSMediaRule: {
  2452. prototype: CSSMediaRule;
  2453. new(): CSSMediaRule;
  2454. };
  2455. /** An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). */
  2456. interface CSSNamespaceRule extends CSSRule {
  2457. readonly namespaceURI: string;
  2458. readonly prefix: string;
  2459. }
  2460. declare var CSSNamespaceRule: {
  2461. prototype: CSSNamespaceRule;
  2462. new(): CSSNamespaceRule;
  2463. };
  2464. /** CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). */
  2465. interface CSSPageRule extends CSSGroupingRule {
  2466. selectorText: string;
  2467. readonly style: CSSStyleDeclaration;
  2468. }
  2469. declare var CSSPageRule: {
  2470. prototype: CSSPageRule;
  2471. new(): CSSPageRule;
  2472. };
  2473. /** A single CSS rule. There are several types of rules, listed in the Type constants section below. */
  2474. interface CSSRule {
  2475. cssText: string;
  2476. readonly parentRule: CSSRule | null;
  2477. readonly parentStyleSheet: CSSStyleSheet | null;
  2478. /** @deprecated */
  2479. readonly type: number;
  2480. readonly CHARSET_RULE: number;
  2481. readonly FONT_FACE_RULE: number;
  2482. readonly IMPORT_RULE: number;
  2483. readonly KEYFRAMES_RULE: number;
  2484. readonly KEYFRAME_RULE: number;
  2485. readonly MEDIA_RULE: number;
  2486. readonly NAMESPACE_RULE: number;
  2487. readonly PAGE_RULE: number;
  2488. readonly STYLE_RULE: number;
  2489. readonly SUPPORTS_RULE: number;
  2490. }
  2491. declare var CSSRule: {
  2492. prototype: CSSRule;
  2493. new(): CSSRule;
  2494. readonly CHARSET_RULE: number;
  2495. readonly FONT_FACE_RULE: number;
  2496. readonly IMPORT_RULE: number;
  2497. readonly KEYFRAMES_RULE: number;
  2498. readonly KEYFRAME_RULE: number;
  2499. readonly MEDIA_RULE: number;
  2500. readonly NAMESPACE_RULE: number;
  2501. readonly PAGE_RULE: number;
  2502. readonly STYLE_RULE: number;
  2503. readonly SUPPORTS_RULE: number;
  2504. };
  2505. /** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */
  2506. interface CSSRuleList {
  2507. readonly length: number;
  2508. item(index: number): CSSRule | null;
  2509. [index: number]: CSSRule;
  2510. }
  2511. declare var CSSRuleList: {
  2512. prototype: CSSRuleList;
  2513. new(): CSSRuleList;
  2514. };
  2515. /** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */
  2516. interface CSSStyleDeclaration {
  2517. accentColor: string;
  2518. alignContent: string;
  2519. alignItems: string;
  2520. alignSelf: string;
  2521. alignmentBaseline: string;
  2522. all: string;
  2523. animation: string;
  2524. animationDelay: string;
  2525. animationDirection: string;
  2526. animationDuration: string;
  2527. animationFillMode: string;
  2528. animationIterationCount: string;
  2529. animationName: string;
  2530. animationPlayState: string;
  2531. animationTimingFunction: string;
  2532. appearance: string;
  2533. aspectRatio: string;
  2534. backfaceVisibility: string;
  2535. background: string;
  2536. backgroundAttachment: string;
  2537. backgroundBlendMode: string;
  2538. backgroundClip: string;
  2539. backgroundColor: string;
  2540. backgroundImage: string;
  2541. backgroundOrigin: string;
  2542. backgroundPosition: string;
  2543. backgroundPositionX: string;
  2544. backgroundPositionY: string;
  2545. backgroundRepeat: string;
  2546. backgroundSize: string;
  2547. baselineShift: string;
  2548. blockSize: string;
  2549. border: string;
  2550. borderBlock: string;
  2551. borderBlockColor: string;
  2552. borderBlockEnd: string;
  2553. borderBlockEndColor: string;
  2554. borderBlockEndStyle: string;
  2555. borderBlockEndWidth: string;
  2556. borderBlockStart: string;
  2557. borderBlockStartColor: string;
  2558. borderBlockStartStyle: string;
  2559. borderBlockStartWidth: string;
  2560. borderBlockStyle: string;
  2561. borderBlockWidth: string;
  2562. borderBottom: string;
  2563. borderBottomColor: string;
  2564. borderBottomLeftRadius: string;
  2565. borderBottomRightRadius: string;
  2566. borderBottomStyle: string;
  2567. borderBottomWidth: string;
  2568. borderCollapse: string;
  2569. borderColor: string;
  2570. borderEndEndRadius: string;
  2571. borderEndStartRadius: string;
  2572. borderImage: string;
  2573. borderImageOutset: string;
  2574. borderImageRepeat: string;
  2575. borderImageSlice: string;
  2576. borderImageSource: string;
  2577. borderImageWidth: string;
  2578. borderInline: string;
  2579. borderInlineColor: string;
  2580. borderInlineEnd: string;
  2581. borderInlineEndColor: string;
  2582. borderInlineEndStyle: string;
  2583. borderInlineEndWidth: string;
  2584. borderInlineStart: string;
  2585. borderInlineStartColor: string;
  2586. borderInlineStartStyle: string;
  2587. borderInlineStartWidth: string;
  2588. borderInlineStyle: string;
  2589. borderInlineWidth: string;
  2590. borderLeft: string;
  2591. borderLeftColor: string;
  2592. borderLeftStyle: string;
  2593. borderLeftWidth: string;
  2594. borderRadius: string;
  2595. borderRight: string;
  2596. borderRightColor: string;
  2597. borderRightStyle: string;
  2598. borderRightWidth: string;
  2599. borderSpacing: string;
  2600. borderStartEndRadius: string;
  2601. borderStartStartRadius: string;
  2602. borderStyle: string;
  2603. borderTop: string;
  2604. borderTopColor: string;
  2605. borderTopLeftRadius: string;
  2606. borderTopRightRadius: string;
  2607. borderTopStyle: string;
  2608. borderTopWidth: string;
  2609. borderWidth: string;
  2610. bottom: string;
  2611. boxShadow: string;
  2612. boxSizing: string;
  2613. breakAfter: string;
  2614. breakBefore: string;
  2615. breakInside: string;
  2616. captionSide: string;
  2617. caretColor: string;
  2618. clear: string;
  2619. /** @deprecated */
  2620. clip: string;
  2621. clipPath: string;
  2622. clipRule: string;
  2623. color: string;
  2624. colorInterpolation: string;
  2625. colorInterpolationFilters: string;
  2626. colorScheme: string;
  2627. columnCount: string;
  2628. columnFill: string;
  2629. columnGap: string;
  2630. columnRule: string;
  2631. columnRuleColor: string;
  2632. columnRuleStyle: string;
  2633. columnRuleWidth: string;
  2634. columnSpan: string;
  2635. columnWidth: string;
  2636. columns: string;
  2637. contain: string;
  2638. content: string;
  2639. counterIncrement: string;
  2640. counterReset: string;
  2641. counterSet: string;
  2642. cssFloat: string;
  2643. cssText: string;
  2644. cursor: string;
  2645. direction: string;
  2646. display: string;
  2647. dominantBaseline: string;
  2648. emptyCells: string;
  2649. fill: string;
  2650. fillOpacity: string;
  2651. fillRule: string;
  2652. filter: string;
  2653. flex: string;
  2654. flexBasis: string;
  2655. flexDirection: string;
  2656. flexFlow: string;
  2657. flexGrow: string;
  2658. flexShrink: string;
  2659. flexWrap: string;
  2660. float: string;
  2661. floodColor: string;
  2662. floodOpacity: string;
  2663. font: string;
  2664. fontFamily: string;
  2665. fontFeatureSettings: string;
  2666. fontKerning: string;
  2667. fontOpticalSizing: string;
  2668. fontSize: string;
  2669. fontSizeAdjust: string;
  2670. fontStretch: string;
  2671. fontStyle: string;
  2672. fontSynthesis: string;
  2673. fontVariant: string;
  2674. /** @deprecated */
  2675. fontVariantAlternates: string;
  2676. fontVariantCaps: string;
  2677. fontVariantEastAsian: string;
  2678. fontVariantLigatures: string;
  2679. fontVariantNumeric: string;
  2680. fontVariantPosition: string;
  2681. fontVariationSettings: string;
  2682. fontWeight: string;
  2683. gap: string;
  2684. grid: string;
  2685. gridArea: string;
  2686. gridAutoColumns: string;
  2687. gridAutoFlow: string;
  2688. gridAutoRows: string;
  2689. gridColumn: string;
  2690. gridColumnEnd: string;
  2691. /** @deprecated This is a legacy alias of \`columnGap\`. */
  2692. gridColumnGap: string;
  2693. gridColumnStart: string;
  2694. /** @deprecated This is a legacy alias of \`gap\`. */
  2695. gridGap: string;
  2696. gridRow: string;
  2697. gridRowEnd: string;
  2698. /** @deprecated This is a legacy alias of \`rowGap\`. */
  2699. gridRowGap: string;
  2700. gridRowStart: string;
  2701. gridTemplate: string;
  2702. gridTemplateAreas: string;
  2703. gridTemplateColumns: string;
  2704. gridTemplateRows: string;
  2705. height: string;
  2706. hyphens: string;
  2707. /** @deprecated */
  2708. imageOrientation: string;
  2709. imageRendering: string;
  2710. inlineSize: string;
  2711. inset: string;
  2712. insetBlock: string;
  2713. insetBlockEnd: string;
  2714. insetBlockStart: string;
  2715. insetInline: string;
  2716. insetInlineEnd: string;
  2717. insetInlineStart: string;
  2718. isolation: string;
  2719. justifyContent: string;
  2720. justifyItems: string;
  2721. justifySelf: string;
  2722. left: string;
  2723. readonly length: number;
  2724. letterSpacing: string;
  2725. lightingColor: string;
  2726. lineBreak: string;
  2727. lineHeight: string;
  2728. listStyle: string;
  2729. listStyleImage: string;
  2730. listStylePosition: string;
  2731. listStyleType: string;
  2732. margin: string;
  2733. marginBlock: string;
  2734. marginBlockEnd: string;
  2735. marginBlockStart: string;
  2736. marginBottom: string;
  2737. marginInline: string;
  2738. marginInlineEnd: string;
  2739. marginInlineStart: string;
  2740. marginLeft: string;
  2741. marginRight: string;
  2742. marginTop: string;
  2743. marker: string;
  2744. markerEnd: string;
  2745. markerMid: string;
  2746. markerStart: string;
  2747. mask: string;
  2748. maskType: string;
  2749. maxBlockSize: string;
  2750. maxHeight: string;
  2751. maxInlineSize: string;
  2752. maxWidth: string;
  2753. minBlockSize: string;
  2754. minHeight: string;
  2755. minInlineSize: string;
  2756. minWidth: string;
  2757. mixBlendMode: string;
  2758. objectFit: string;
  2759. objectPosition: string;
  2760. offset: string;
  2761. offsetAnchor: string;
  2762. offsetDistance: string;
  2763. offsetPath: string;
  2764. offsetRotate: string;
  2765. opacity: string;
  2766. order: string;
  2767. orphans: string;
  2768. outline: string;
  2769. outlineColor: string;
  2770. outlineOffset: string;
  2771. outlineStyle: string;
  2772. outlineWidth: string;
  2773. overflow: string;
  2774. overflowAnchor: string;
  2775. overflowWrap: string;
  2776. overflowX: string;
  2777. overflowY: string;
  2778. overscrollBehavior: string;
  2779. overscrollBehaviorBlock: string;
  2780. overscrollBehaviorInline: string;
  2781. overscrollBehaviorX: string;
  2782. overscrollBehaviorY: string;
  2783. padding: string;
  2784. paddingBlock: string;
  2785. paddingBlockEnd: string;
  2786. paddingBlockStart: string;
  2787. paddingBottom: string;
  2788. paddingInline: string;
  2789. paddingInlineEnd: string;
  2790. paddingInlineStart: string;
  2791. paddingLeft: string;
  2792. paddingRight: string;
  2793. paddingTop: string;
  2794. pageBreakAfter: string;
  2795. pageBreakBefore: string;
  2796. pageBreakInside: string;
  2797. paintOrder: string;
  2798. readonly parentRule: CSSRule | null;
  2799. perspective: string;
  2800. perspectiveOrigin: string;
  2801. placeContent: string;
  2802. placeItems: string;
  2803. placeSelf: string;
  2804. pointerEvents: string;
  2805. position: string;
  2806. quotes: string;
  2807. resize: string;
  2808. right: string;
  2809. rotate: string;
  2810. rowGap: string;
  2811. rubyPosition: string;
  2812. scale: string;
  2813. scrollBehavior: string;
  2814. scrollMargin: string;
  2815. scrollMarginBlock: string;
  2816. scrollMarginBlockEnd: string;
  2817. scrollMarginBlockStart: string;
  2818. scrollMarginBottom: string;
  2819. scrollMarginInline: string;
  2820. scrollMarginInlineEnd: string;
  2821. scrollMarginInlineStart: string;
  2822. scrollMarginLeft: string;
  2823. scrollMarginRight: string;
  2824. scrollMarginTop: string;
  2825. scrollPadding: string;
  2826. scrollPaddingBlock: string;
  2827. scrollPaddingBlockEnd: string;
  2828. scrollPaddingBlockStart: string;
  2829. scrollPaddingBottom: string;
  2830. scrollPaddingInline: string;
  2831. scrollPaddingInlineEnd: string;
  2832. scrollPaddingInlineStart: string;
  2833. scrollPaddingLeft: string;
  2834. scrollPaddingRight: string;
  2835. scrollPaddingTop: string;
  2836. scrollSnapAlign: string;
  2837. scrollSnapStop: string;
  2838. scrollSnapType: string;
  2839. shapeImageThreshold: string;
  2840. shapeMargin: string;
  2841. shapeOutside: string;
  2842. shapeRendering: string;
  2843. stopColor: string;
  2844. stopOpacity: string;
  2845. stroke: string;
  2846. strokeDasharray: string;
  2847. strokeDashoffset: string;
  2848. strokeLinecap: string;
  2849. strokeLinejoin: string;
  2850. strokeMiterlimit: string;
  2851. strokeOpacity: string;
  2852. strokeWidth: string;
  2853. tabSize: string;
  2854. tableLayout: string;
  2855. textAlign: string;
  2856. textAlignLast: string;
  2857. textAnchor: string;
  2858. textCombineUpright: string;
  2859. textDecoration: string;
  2860. textDecorationColor: string;
  2861. textDecorationLine: string;
  2862. textDecorationSkipInk: string;
  2863. textDecorationStyle: string;
  2864. textDecorationThickness: string;
  2865. textEmphasis: string;
  2866. textEmphasisColor: string;
  2867. textEmphasisPosition: string;
  2868. textEmphasisStyle: string;
  2869. textIndent: string;
  2870. textOrientation: string;
  2871. textOverflow: string;
  2872. textRendering: string;
  2873. textShadow: string;
  2874. textTransform: string;
  2875. textUnderlineOffset: string;
  2876. textUnderlinePosition: string;
  2877. top: string;
  2878. touchAction: string;
  2879. transform: string;
  2880. transformBox: string;
  2881. transformOrigin: string;
  2882. transformStyle: string;
  2883. transition: string;
  2884. transitionDelay: string;
  2885. transitionDuration: string;
  2886. transitionProperty: string;
  2887. transitionTimingFunction: string;
  2888. translate: string;
  2889. unicodeBidi: string;
  2890. userSelect: string;
  2891. verticalAlign: string;
  2892. visibility: string;
  2893. /** @deprecated This is a legacy alias of \`alignContent\`. */
  2894. webkitAlignContent: string;
  2895. /** @deprecated This is a legacy alias of \`alignItems\`. */
  2896. webkitAlignItems: string;
  2897. /** @deprecated This is a legacy alias of \`alignSelf\`. */
  2898. webkitAlignSelf: string;
  2899. /** @deprecated This is a legacy alias of \`animation\`. */
  2900. webkitAnimation: string;
  2901. /** @deprecated This is a legacy alias of \`animationDelay\`. */
  2902. webkitAnimationDelay: string;
  2903. /** @deprecated This is a legacy alias of \`animationDirection\`. */
  2904. webkitAnimationDirection: string;
  2905. /** @deprecated This is a legacy alias of \`animationDuration\`. */
  2906. webkitAnimationDuration: string;
  2907. /** @deprecated This is a legacy alias of \`animationFillMode\`. */
  2908. webkitAnimationFillMode: string;
  2909. /** @deprecated This is a legacy alias of \`animationIterationCount\`. */
  2910. webkitAnimationIterationCount: string;
  2911. /** @deprecated This is a legacy alias of \`animationName\`. */
  2912. webkitAnimationName: string;
  2913. /** @deprecated This is a legacy alias of \`animationPlayState\`. */
  2914. webkitAnimationPlayState: string;
  2915. /** @deprecated This is a legacy alias of \`animationTimingFunction\`. */
  2916. webkitAnimationTimingFunction: string;
  2917. /** @deprecated This is a legacy alias of \`appearance\`. */
  2918. webkitAppearance: string;
  2919. /** @deprecated This is a legacy alias of \`backfaceVisibility\`. */
  2920. webkitBackfaceVisibility: string;
  2921. /** @deprecated This is a legacy alias of \`backgroundClip\`. */
  2922. webkitBackgroundClip: string;
  2923. /** @deprecated This is a legacy alias of \`backgroundOrigin\`. */
  2924. webkitBackgroundOrigin: string;
  2925. /** @deprecated This is a legacy alias of \`backgroundSize\`. */
  2926. webkitBackgroundSize: string;
  2927. /** @deprecated This is a legacy alias of \`borderBottomLeftRadius\`. */
  2928. webkitBorderBottomLeftRadius: string;
  2929. /** @deprecated This is a legacy alias of \`borderBottomRightRadius\`. */
  2930. webkitBorderBottomRightRadius: string;
  2931. /** @deprecated This is a legacy alias of \`borderRadius\`. */
  2932. webkitBorderRadius: string;
  2933. /** @deprecated This is a legacy alias of \`borderTopLeftRadius\`. */
  2934. webkitBorderTopLeftRadius: string;
  2935. /** @deprecated This is a legacy alias of \`borderTopRightRadius\`. */
  2936. webkitBorderTopRightRadius: string;
  2937. /** @deprecated This is a legacy alias of \`boxAlign\`. */
  2938. webkitBoxAlign: string;
  2939. /** @deprecated This is a legacy alias of \`boxFlex\`. */
  2940. webkitBoxFlex: string;
  2941. /** @deprecated This is a legacy alias of \`boxOrdinalGroup\`. */
  2942. webkitBoxOrdinalGroup: string;
  2943. /** @deprecated This is a legacy alias of \`boxOrient\`. */
  2944. webkitBoxOrient: string;
  2945. /** @deprecated This is a legacy alias of \`boxPack\`. */
  2946. webkitBoxPack: string;
  2947. /** @deprecated This is a legacy alias of \`boxShadow\`. */
  2948. webkitBoxShadow: string;
  2949. /** @deprecated This is a legacy alias of \`boxSizing\`. */
  2950. webkitBoxSizing: string;
  2951. /** @deprecated This is a legacy alias of \`filter\`. */
  2952. webkitFilter: string;
  2953. /** @deprecated This is a legacy alias of \`flex\`. */
  2954. webkitFlex: string;
  2955. /** @deprecated This is a legacy alias of \`flexBasis\`. */
  2956. webkitFlexBasis: string;
  2957. /** @deprecated This is a legacy alias of \`flexDirection\`. */
  2958. webkitFlexDirection: string;
  2959. /** @deprecated This is a legacy alias of \`flexFlow\`. */
  2960. webkitFlexFlow: string;
  2961. /** @deprecated This is a legacy alias of \`flexGrow\`. */
  2962. webkitFlexGrow: string;
  2963. /** @deprecated This is a legacy alias of \`flexShrink\`. */
  2964. webkitFlexShrink: string;
  2965. /** @deprecated This is a legacy alias of \`flexWrap\`. */
  2966. webkitFlexWrap: string;
  2967. /** @deprecated This is a legacy alias of \`justifyContent\`. */
  2968. webkitJustifyContent: string;
  2969. webkitLineClamp: string;
  2970. /** @deprecated This is a legacy alias of \`mask\`. */
  2971. webkitMask: string;
  2972. /** @deprecated This is a legacy alias of \`maskBorder\`. */
  2973. webkitMaskBoxImage: string;
  2974. /** @deprecated This is a legacy alias of \`maskBorderOutset\`. */
  2975. webkitMaskBoxImageOutset: string;
  2976. /** @deprecated This is a legacy alias of \`maskBorderRepeat\`. */
  2977. webkitMaskBoxImageRepeat: string;
  2978. /** @deprecated This is a legacy alias of \`maskBorderSlice\`. */
  2979. webkitMaskBoxImageSlice: string;
  2980. /** @deprecated This is a legacy alias of \`maskBorderSource\`. */
  2981. webkitMaskBoxImageSource: string;
  2982. /** @deprecated This is a legacy alias of \`maskBorderWidth\`. */
  2983. webkitMaskBoxImageWidth: string;
  2984. /** @deprecated This is a legacy alias of \`maskClip\`. */
  2985. webkitMaskClip: string;
  2986. webkitMaskComposite: string;
  2987. /** @deprecated This is a legacy alias of \`maskImage\`. */
  2988. webkitMaskImage: string;
  2989. /** @deprecated This is a legacy alias of \`maskOrigin\`. */
  2990. webkitMaskOrigin: string;
  2991. /** @deprecated This is a legacy alias of \`maskPosition\`. */
  2992. webkitMaskPosition: string;
  2993. /** @deprecated This is a legacy alias of \`maskRepeat\`. */
  2994. webkitMaskRepeat: string;
  2995. /** @deprecated This is a legacy alias of \`maskSize\`. */
  2996. webkitMaskSize: string;
  2997. /** @deprecated This is a legacy alias of \`order\`. */
  2998. webkitOrder: string;
  2999. /** @deprecated This is a legacy alias of \`perspective\`. */
  3000. webkitPerspective: string;
  3001. /** @deprecated This is a legacy alias of \`perspectiveOrigin\`. */
  3002. webkitPerspectiveOrigin: string;
  3003. webkitTextFillColor: string;
  3004. webkitTextStroke: string;
  3005. webkitTextStrokeColor: string;
  3006. webkitTextStrokeWidth: string;
  3007. /** @deprecated This is a legacy alias of \`transform\`. */
  3008. webkitTransform: string;
  3009. /** @deprecated This is a legacy alias of \`transformOrigin\`. */
  3010. webkitTransformOrigin: string;
  3011. /** @deprecated This is a legacy alias of \`transformStyle\`. */
  3012. webkitTransformStyle: string;
  3013. /** @deprecated This is a legacy alias of \`transition\`. */
  3014. webkitTransition: string;
  3015. /** @deprecated This is a legacy alias of \`transitionDelay\`. */
  3016. webkitTransitionDelay: string;
  3017. /** @deprecated This is a legacy alias of \`transitionDuration\`. */
  3018. webkitTransitionDuration: string;
  3019. /** @deprecated This is a legacy alias of \`transitionProperty\`. */
  3020. webkitTransitionProperty: string;
  3021. /** @deprecated This is a legacy alias of \`transitionTimingFunction\`. */
  3022. webkitTransitionTimingFunction: string;
  3023. /** @deprecated This is a legacy alias of \`userSelect\`. */
  3024. webkitUserSelect: string;
  3025. whiteSpace: string;
  3026. widows: string;
  3027. width: string;
  3028. willChange: string;
  3029. wordBreak: string;
  3030. wordSpacing: string;
  3031. /** @deprecated */
  3032. wordWrap: string;
  3033. writingMode: string;
  3034. zIndex: string;
  3035. getPropertyPriority(property: string): string;
  3036. getPropertyValue(property: string): string;
  3037. item(index: number): string;
  3038. removeProperty(property: string): string;
  3039. setProperty(property: string, value: string | null, priority?: string): void;
  3040. [index: number]: string;
  3041. }
  3042. declare var CSSStyleDeclaration: {
  3043. prototype: CSSStyleDeclaration;
  3044. new(): CSSStyleDeclaration;
  3045. };
  3046. /** CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). */
  3047. interface CSSStyleRule extends CSSRule {
  3048. selectorText: string;
  3049. readonly style: CSSStyleDeclaration;
  3050. }
  3051. declare var CSSStyleRule: {
  3052. prototype: CSSStyleRule;
  3053. new(): CSSStyleRule;
  3054. };
  3055. /** A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. */
  3056. interface CSSStyleSheet extends StyleSheet {
  3057. readonly cssRules: CSSRuleList;
  3058. readonly ownerRule: CSSRule | null;
  3059. /** @deprecated */
  3060. readonly rules: CSSRuleList;
  3061. /** @deprecated */
  3062. addRule(selector?: string, style?: string, index?: number): number;
  3063. deleteRule(index: number): void;
  3064. insertRule(rule: string, index?: number): number;
  3065. /** @deprecated */
  3066. removeRule(index?: number): void;
  3067. }
  3068. declare var CSSStyleSheet: {
  3069. prototype: CSSStyleSheet;
  3070. new(options?: CSSStyleSheetInit): CSSStyleSheet;
  3071. };
  3072. /** 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). */
  3073. interface CSSSupportsRule extends CSSConditionRule {
  3074. }
  3075. declare var CSSSupportsRule: {
  3076. prototype: CSSSupportsRule;
  3077. new(): CSSSupportsRule;
  3078. };
  3079. interface CSSTransition extends Animation {
  3080. readonly transitionProperty: string;
  3081. addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  3082. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  3083. removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  3084. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  3085. }
  3086. declare var CSSTransition: {
  3087. prototype: CSSTransition;
  3088. new(): CSSTransition;
  3089. };
  3090. /**
  3091. * 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.
  3092. * Available only in secure contexts.
  3093. */
  3094. interface Cache {
  3095. add(request: RequestInfo): Promise<void>;
  3096. addAll(requests: RequestInfo[]): Promise<void>;
  3097. delete(request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>;
  3098. keys(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
  3099. match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;
  3100. matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
  3101. put(request: RequestInfo, response: Response): Promise<void>;
  3102. }
  3103. declare var Cache: {
  3104. prototype: Cache;
  3105. new(): Cache;
  3106. };
  3107. /**
  3108. * The storage for Cache objects.
  3109. * Available only in secure contexts.
  3110. */
  3111. interface CacheStorage {
  3112. delete(cacheName: string): Promise<boolean>;
  3113. has(cacheName: string): Promise<boolean>;
  3114. keys(): Promise<string[]>;
  3115. match(request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
  3116. open(cacheName: string): Promise<Cache>;
  3117. }
  3118. declare var CacheStorage: {
  3119. prototype: CacheStorage;
  3120. new(): CacheStorage;
  3121. };
  3122. interface CanvasCompositing {
  3123. globalAlpha: number;
  3124. globalCompositeOperation: string;
  3125. }
  3126. interface CanvasDrawImage {
  3127. drawImage(image: CanvasImageSource, dx: number, dy: number): void;
  3128. drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
  3129. drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
  3130. }
  3131. interface CanvasDrawPath {
  3132. beginPath(): void;
  3133. clip(fillRule?: CanvasFillRule): void;
  3134. clip(path: Path2D, fillRule?: CanvasFillRule): void;
  3135. fill(fillRule?: CanvasFillRule): void;
  3136. fill(path: Path2D, fillRule?: CanvasFillRule): void;
  3137. isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
  3138. isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
  3139. isPointInStroke(x: number, y: number): boolean;
  3140. isPointInStroke(path: Path2D, x: number, y: number): boolean;
  3141. stroke(): void;
  3142. stroke(path: Path2D): void;
  3143. }
  3144. interface CanvasFillStrokeStyles {
  3145. fillStyle: string | CanvasGradient | CanvasPattern;
  3146. strokeStyle: string | CanvasGradient | CanvasPattern;
  3147. createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
  3148. createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
  3149. createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
  3150. }
  3151. interface CanvasFilters {
  3152. filter: string;
  3153. }
  3154. /** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
  3155. interface CanvasGradient {
  3156. /**
  3157. * 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.
  3158. *
  3159. * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
  3160. */
  3161. addColorStop(offset: number, color: string): void;
  3162. }
  3163. declare var CanvasGradient: {
  3164. prototype: CanvasGradient;
  3165. new(): CanvasGradient;
  3166. };
  3167. interface CanvasImageData {
  3168. createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
  3169. createImageData(imagedata: ImageData): ImageData;
  3170. getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
  3171. putImageData(imagedata: ImageData, dx: number, dy: number): void;
  3172. putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
  3173. }
  3174. interface CanvasImageSmoothing {
  3175. imageSmoothingEnabled: boolean;
  3176. imageSmoothingQuality: ImageSmoothingQuality;
  3177. }
  3178. interface CanvasPath {
  3179. arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
  3180. arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
  3181. bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
  3182. closePath(): void;
  3183. ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
  3184. lineTo(x: number, y: number): void;
  3185. moveTo(x: number, y: number): void;
  3186. quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
  3187. rect(x: number, y: number, w: number, h: number): void;
  3188. }
  3189. interface CanvasPathDrawingStyles {
  3190. lineCap: CanvasLineCap;
  3191. lineDashOffset: number;
  3192. lineJoin: CanvasLineJoin;
  3193. lineWidth: number;
  3194. miterLimit: number;
  3195. getLineDash(): number[];
  3196. setLineDash(segments: number[]): void;
  3197. }
  3198. /** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
  3199. interface CanvasPattern {
  3200. /** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */
  3201. setTransform(transform?: DOMMatrix2DInit): void;
  3202. }
  3203. declare var CanvasPattern: {
  3204. prototype: CanvasPattern;
  3205. new(): CanvasPattern;
  3206. };
  3207. interface CanvasRect {
  3208. clearRect(x: number, y: number, w: number, h: number): void;
  3209. fillRect(x: number, y: number, w: number, h: number): void;
  3210. strokeRect(x: number, y: number, w: number, h: number): void;
  3211. }
  3212. /** 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. */
  3213. interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {
  3214. readonly canvas: HTMLCanvasElement;
  3215. getContextAttributes(): CanvasRenderingContext2DSettings;
  3216. }
  3217. declare var CanvasRenderingContext2D: {
  3218. prototype: CanvasRenderingContext2D;
  3219. new(): CanvasRenderingContext2D;
  3220. };
  3221. interface CanvasShadowStyles {
  3222. shadowBlur: number;
  3223. shadowColor: string;
  3224. shadowOffsetX: number;
  3225. shadowOffsetY: number;
  3226. }
  3227. interface CanvasState {
  3228. restore(): void;
  3229. save(): void;
  3230. }
  3231. interface CanvasText {
  3232. fillText(text: string, x: number, y: number, maxWidth?: number): void;
  3233. measureText(text: string): TextMetrics;
  3234. strokeText(text: string, x: number, y: number, maxWidth?: number): void;
  3235. }
  3236. interface CanvasTextDrawingStyles {
  3237. direction: CanvasDirection;
  3238. font: string;
  3239. textAlign: CanvasTextAlign;
  3240. textBaseline: CanvasTextBaseline;
  3241. }
  3242. interface CanvasTransform {
  3243. getTransform(): DOMMatrix;
  3244. resetTransform(): void;
  3245. rotate(angle: number): void;
  3246. scale(x: number, y: number): void;
  3247. setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
  3248. setTransform(transform?: DOMMatrix2DInit): void;
  3249. transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
  3250. translate(x: number, y: number): void;
  3251. }
  3252. interface CanvasUserInterface {
  3253. drawFocusIfNeeded(element: Element): void;
  3254. drawFocusIfNeeded(path: Path2D, element: Element): void;
  3255. }
  3256. /** 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. */
  3257. interface ChannelMergerNode extends AudioNode {
  3258. }
  3259. declare var ChannelMergerNode: {
  3260. prototype: ChannelMergerNode;
  3261. new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;
  3262. };
  3263. /** 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. */
  3264. interface ChannelSplitterNode extends AudioNode {
  3265. }
  3266. declare var ChannelSplitterNode: {
  3267. prototype: ChannelSplitterNode;
  3268. new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;
  3269. };
  3270. /** 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. */
  3271. interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
  3272. data: string;
  3273. readonly length: number;
  3274. readonly ownerDocument: Document;
  3275. appendData(data: string): void;
  3276. deleteData(offset: number, count: number): void;
  3277. insertData(offset: number, data: string): void;
  3278. replaceData(offset: number, count: number, data: string): void;
  3279. substringData(offset: number, count: number): string;
  3280. }
  3281. declare var CharacterData: {
  3282. prototype: CharacterData;
  3283. new(): CharacterData;
  3284. };
  3285. interface ChildNode extends Node {
  3286. /**
  3287. * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
  3288. *
  3289. * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
  3290. */
  3291. after(...nodes: (Node | string)[]): void;
  3292. /**
  3293. * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
  3294. *
  3295. * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
  3296. */
  3297. before(...nodes: (Node | string)[]): void;
  3298. /** Removes node. */
  3299. remove(): void;
  3300. /**
  3301. * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
  3302. *
  3303. * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
  3304. */
  3305. replaceWith(...nodes: (Node | string)[]): void;
  3306. }
  3307. /** @deprecated */
  3308. interface ClientRect extends DOMRect {
  3309. }
  3310. /** Available only in secure contexts. */
  3311. interface Clipboard extends EventTarget {
  3312. read(): Promise<ClipboardItems>;
  3313. readText(): Promise<string>;
  3314. write(data: ClipboardItems): Promise<void>;
  3315. writeText(data: string): Promise<void>;
  3316. }
  3317. declare var Clipboard: {
  3318. prototype: Clipboard;
  3319. new(): Clipboard;
  3320. };
  3321. /** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */
  3322. interface ClipboardEvent extends Event {
  3323. readonly clipboardData: DataTransfer | null;
  3324. }
  3325. declare var ClipboardEvent: {
  3326. prototype: ClipboardEvent;
  3327. new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
  3328. };
  3329. interface ClipboardItem {
  3330. readonly types: ReadonlyArray<string>;
  3331. getType(type: string): Promise<Blob>;
  3332. }
  3333. declare var ClipboardItem: {
  3334. prototype: ClipboardItem;
  3335. new(items: Record<string, ClipboardItemDataType | PromiseLike<ClipboardItemDataType>>, options?: ClipboardItemOptions): ClipboardItem;
  3336. };
  3337. /** 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. */
  3338. interface CloseEvent extends Event {
  3339. /** Returns the WebSocket connection close code provided by the server. */
  3340. readonly code: number;
  3341. /** Returns the WebSocket connection close reason provided by the server. */
  3342. readonly reason: string;
  3343. /** Returns true if the connection closed cleanly; false otherwise. */
  3344. readonly wasClean: boolean;
  3345. }
  3346. declare var CloseEvent: {
  3347. prototype: CloseEvent;
  3348. new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
  3349. };
  3350. /** Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. */
  3351. interface Comment extends CharacterData {
  3352. }
  3353. declare var Comment: {
  3354. prototype: Comment;
  3355. new(data?: string): Comment;
  3356. };
  3357. /** The DOM CompositionEvent represents events that occur due to the user indirectly entering text. */
  3358. interface CompositionEvent extends UIEvent {
  3359. readonly data: string;
  3360. /** @deprecated */
  3361. initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void;
  3362. }
  3363. declare var CompositionEvent: {
  3364. prototype: CompositionEvent;
  3365. new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;
  3366. };
  3367. interface ConstantSourceNode extends AudioScheduledSourceNode {
  3368. readonly offset: AudioParam;
  3369. addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  3370. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  3371. removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  3372. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  3373. }
  3374. declare var ConstantSourceNode: {
  3375. prototype: ConstantSourceNode;
  3376. new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;
  3377. };
  3378. /** 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. */
  3379. interface ConvolverNode extends AudioNode {
  3380. buffer: AudioBuffer | null;
  3381. normalize: boolean;
  3382. }
  3383. declare var ConvolverNode: {
  3384. prototype: ConvolverNode;
  3385. new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;
  3386. };
  3387. /** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
  3388. interface CountQueuingStrategy extends QueuingStrategy {
  3389. readonly highWaterMark: number;
  3390. readonly size: QueuingStrategySize;
  3391. }
  3392. declare var CountQueuingStrategy: {
  3393. prototype: CountQueuingStrategy;
  3394. new(init: QueuingStrategyInit): CountQueuingStrategy;
  3395. };
  3396. /** Available only in secure contexts. */
  3397. interface Credential {
  3398. readonly id: string;
  3399. readonly type: string;
  3400. }
  3401. declare var Credential: {
  3402. prototype: Credential;
  3403. new(): Credential;
  3404. };
  3405. /** Available only in secure contexts. */
  3406. interface CredentialsContainer {
  3407. create(options?: CredentialCreationOptions): Promise<Credential | null>;
  3408. get(options?: CredentialRequestOptions): Promise<Credential | null>;
  3409. preventSilentAccess(): Promise<void>;
  3410. store(credential: Credential): Promise<Credential>;
  3411. }
  3412. declare var CredentialsContainer: {
  3413. prototype: CredentialsContainer;
  3414. new(): CredentialsContainer;
  3415. };
  3416. /** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
  3417. interface Crypto {
  3418. /** Available only in secure contexts. */
  3419. readonly subtle: SubtleCrypto;
  3420. getRandomValues<T extends ArrayBufferView | null>(array: T): T;
  3421. }
  3422. declare var Crypto: {
  3423. prototype: Crypto;
  3424. new(): Crypto;
  3425. };
  3426. /**
  3427. * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
  3428. * Available only in secure contexts.
  3429. */
  3430. interface CryptoKey {
  3431. readonly algorithm: KeyAlgorithm;
  3432. readonly extractable: boolean;
  3433. readonly type: KeyType;
  3434. readonly usages: KeyUsage[];
  3435. }
  3436. declare var CryptoKey: {
  3437. prototype: CryptoKey;
  3438. new(): CryptoKey;
  3439. };
  3440. interface CustomElementRegistry {
  3441. define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
  3442. get(name: string): CustomElementConstructor | undefined;
  3443. upgrade(root: Node): void;
  3444. whenDefined(name: string): Promise<CustomElementConstructor>;
  3445. }
  3446. declare var CustomElementRegistry: {
  3447. prototype: CustomElementRegistry;
  3448. new(): CustomElementRegistry;
  3449. };
  3450. interface CustomEvent<T = any> extends Event {
  3451. /** Returns any custom data event was created with. Typically used for synthetic events. */
  3452. readonly detail: T;
  3453. /** @deprecated */
  3454. initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
  3455. }
  3456. declare var CustomEvent: {
  3457. prototype: CustomEvent;
  3458. new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
  3459. };
  3460. /** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
  3461. interface DOMException extends Error {
  3462. readonly code: number;
  3463. readonly message: string;
  3464. readonly name: string;
  3465. readonly ABORT_ERR: number;
  3466. readonly DATA_CLONE_ERR: number;
  3467. readonly DOMSTRING_SIZE_ERR: number;
  3468. readonly HIERARCHY_REQUEST_ERR: number;
  3469. readonly INDEX_SIZE_ERR: number;
  3470. readonly INUSE_ATTRIBUTE_ERR: number;
  3471. readonly INVALID_ACCESS_ERR: number;
  3472. readonly INVALID_CHARACTER_ERR: number;
  3473. readonly INVALID_MODIFICATION_ERR: number;
  3474. readonly INVALID_NODE_TYPE_ERR: number;
  3475. readonly INVALID_STATE_ERR: number;
  3476. readonly NAMESPACE_ERR: number;
  3477. readonly NETWORK_ERR: number;
  3478. readonly NOT_FOUND_ERR: number;
  3479. readonly NOT_SUPPORTED_ERR: number;
  3480. readonly NO_DATA_ALLOWED_ERR: number;
  3481. readonly NO_MODIFICATION_ALLOWED_ERR: number;
  3482. readonly QUOTA_EXCEEDED_ERR: number;
  3483. readonly SECURITY_ERR: number;
  3484. readonly SYNTAX_ERR: number;
  3485. readonly TIMEOUT_ERR: number;
  3486. readonly TYPE_MISMATCH_ERR: number;
  3487. readonly URL_MISMATCH_ERR: number;
  3488. readonly VALIDATION_ERR: number;
  3489. readonly WRONG_DOCUMENT_ERR: number;
  3490. }
  3491. declare var DOMException: {
  3492. prototype: DOMException;
  3493. new(message?: string, name?: string): DOMException;
  3494. readonly ABORT_ERR: number;
  3495. readonly DATA_CLONE_ERR: number;
  3496. readonly DOMSTRING_SIZE_ERR: number;
  3497. readonly HIERARCHY_REQUEST_ERR: number;
  3498. readonly INDEX_SIZE_ERR: number;
  3499. readonly INUSE_ATTRIBUTE_ERR: number;
  3500. readonly INVALID_ACCESS_ERR: number;
  3501. readonly INVALID_CHARACTER_ERR: number;
  3502. readonly INVALID_MODIFICATION_ERR: number;
  3503. readonly INVALID_NODE_TYPE_ERR: number;
  3504. readonly INVALID_STATE_ERR: number;
  3505. readonly NAMESPACE_ERR: number;
  3506. readonly NETWORK_ERR: number;
  3507. readonly NOT_FOUND_ERR: number;
  3508. readonly NOT_SUPPORTED_ERR: number;
  3509. readonly NO_DATA_ALLOWED_ERR: number;
  3510. readonly NO_MODIFICATION_ALLOWED_ERR: number;
  3511. readonly QUOTA_EXCEEDED_ERR: number;
  3512. readonly SECURITY_ERR: number;
  3513. readonly SYNTAX_ERR: number;
  3514. readonly TIMEOUT_ERR: number;
  3515. readonly TYPE_MISMATCH_ERR: number;
  3516. readonly URL_MISMATCH_ERR: number;
  3517. readonly VALIDATION_ERR: number;
  3518. readonly WRONG_DOCUMENT_ERR: number;
  3519. };
  3520. /** An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. */
  3521. interface DOMImplementation {
  3522. createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;
  3523. createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
  3524. createHTMLDocument(title?: string): Document;
  3525. /** @deprecated */
  3526. hasFeature(...args: any[]): true;
  3527. }
  3528. declare var DOMImplementation: {
  3529. prototype: DOMImplementation;
  3530. new(): DOMImplementation;
  3531. };
  3532. interface DOMMatrix extends DOMMatrixReadOnly {
  3533. a: number;
  3534. b: number;
  3535. c: number;
  3536. d: number;
  3537. e: number;
  3538. f: number;
  3539. m11: number;
  3540. m12: number;
  3541. m13: number;
  3542. m14: number;
  3543. m21: number;
  3544. m22: number;
  3545. m23: number;
  3546. m24: number;
  3547. m31: number;
  3548. m32: number;
  3549. m33: number;
  3550. m34: number;
  3551. m41: number;
  3552. m42: number;
  3553. m43: number;
  3554. m44: number;
  3555. invertSelf(): DOMMatrix;
  3556. multiplySelf(other?: DOMMatrixInit): DOMMatrix;
  3557. preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
  3558. rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
  3559. rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
  3560. rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
  3561. scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
  3562. scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
  3563. setMatrixValue(transformList: string): DOMMatrix;
  3564. skewXSelf(sx?: number): DOMMatrix;
  3565. skewYSelf(sy?: number): DOMMatrix;
  3566. translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
  3567. }
  3568. declare var DOMMatrix: {
  3569. prototype: DOMMatrix;
  3570. new(init?: string | number[]): DOMMatrix;
  3571. fromFloat32Array(array32: Float32Array): DOMMatrix;
  3572. fromFloat64Array(array64: Float64Array): DOMMatrix;
  3573. fromMatrix(other?: DOMMatrixInit): DOMMatrix;
  3574. };
  3575. type SVGMatrix = DOMMatrix;
  3576. declare var SVGMatrix: typeof DOMMatrix;
  3577. type WebKitCSSMatrix = DOMMatrix;
  3578. declare var WebKitCSSMatrix: typeof DOMMatrix;
  3579. interface DOMMatrixReadOnly {
  3580. readonly a: number;
  3581. readonly b: number;
  3582. readonly c: number;
  3583. readonly d: number;
  3584. readonly e: number;
  3585. readonly f: number;
  3586. readonly is2D: boolean;
  3587. readonly isIdentity: boolean;
  3588. readonly m11: number;
  3589. readonly m12: number;
  3590. readonly m13: number;
  3591. readonly m14: number;
  3592. readonly m21: number;
  3593. readonly m22: number;
  3594. readonly m23: number;
  3595. readonly m24: number;
  3596. readonly m31: number;
  3597. readonly m32: number;
  3598. readonly m33: number;
  3599. readonly m34: number;
  3600. readonly m41: number;
  3601. readonly m42: number;
  3602. readonly m43: number;
  3603. readonly m44: number;
  3604. flipX(): DOMMatrix;
  3605. flipY(): DOMMatrix;
  3606. inverse(): DOMMatrix;
  3607. multiply(other?: DOMMatrixInit): DOMMatrix;
  3608. rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
  3609. rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
  3610. rotateFromVector(x?: number, y?: number): DOMMatrix;
  3611. scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
  3612. scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
  3613. /** @deprecated */
  3614. scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
  3615. skewX(sx?: number): DOMMatrix;
  3616. skewY(sy?: number): DOMMatrix;
  3617. toFloat32Array(): Float32Array;
  3618. toFloat64Array(): Float64Array;
  3619. toJSON(): any;
  3620. transformPoint(point?: DOMPointInit): DOMPoint;
  3621. translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
  3622. toString(): string;
  3623. }
  3624. declare var DOMMatrixReadOnly: {
  3625. prototype: DOMMatrixReadOnly;
  3626. new(init?: string | number[]): DOMMatrixReadOnly;
  3627. fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
  3628. fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
  3629. fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
  3630. toString(): string;
  3631. };
  3632. /** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */
  3633. interface DOMParser {
  3634. /**
  3635. * 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).
  3636. *
  3637. * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error.
  3638. *
  3639. * Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8.
  3640. *
  3641. * Values other than the above for type will cause a TypeError exception to be thrown.
  3642. */
  3643. parseFromString(string: string, type: DOMParserSupportedType): Document;
  3644. }
  3645. declare var DOMParser: {
  3646. prototype: DOMParser;
  3647. new(): DOMParser;
  3648. };
  3649. interface DOMPoint extends DOMPointReadOnly {
  3650. w: number;
  3651. x: number;
  3652. y: number;
  3653. z: number;
  3654. }
  3655. declare var DOMPoint: {
  3656. prototype: DOMPoint;
  3657. new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
  3658. fromPoint(other?: DOMPointInit): DOMPoint;
  3659. };
  3660. type SVGPoint = DOMPoint;
  3661. declare var SVGPoint: typeof DOMPoint;
  3662. interface DOMPointReadOnly {
  3663. readonly w: number;
  3664. readonly x: number;
  3665. readonly y: number;
  3666. readonly z: number;
  3667. matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
  3668. toJSON(): any;
  3669. }
  3670. declare var DOMPointReadOnly: {
  3671. prototype: DOMPointReadOnly;
  3672. new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
  3673. fromPoint(other?: DOMPointInit): DOMPointReadOnly;
  3674. };
  3675. interface DOMQuad {
  3676. readonly p1: DOMPoint;
  3677. readonly p2: DOMPoint;
  3678. readonly p3: DOMPoint;
  3679. readonly p4: DOMPoint;
  3680. getBounds(): DOMRect;
  3681. toJSON(): any;
  3682. }
  3683. declare var DOMQuad: {
  3684. prototype: DOMQuad;
  3685. new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
  3686. fromQuad(other?: DOMQuadInit): DOMQuad;
  3687. fromRect(other?: DOMRectInit): DOMQuad;
  3688. };
  3689. interface DOMRect extends DOMRectReadOnly {
  3690. height: number;
  3691. width: number;
  3692. x: number;
  3693. y: number;
  3694. }
  3695. declare var DOMRect: {
  3696. prototype: DOMRect;
  3697. new(x?: number, y?: number, width?: number, height?: number): DOMRect;
  3698. fromRect(other?: DOMRectInit): DOMRect;
  3699. };
  3700. type SVGRect = DOMRect;
  3701. declare var SVGRect: typeof DOMRect;
  3702. interface DOMRectList {
  3703. readonly length: number;
  3704. item(index: number): DOMRect | null;
  3705. [index: number]: DOMRect;
  3706. }
  3707. declare var DOMRectList: {
  3708. prototype: DOMRectList;
  3709. new(): DOMRectList;
  3710. };
  3711. interface DOMRectReadOnly {
  3712. readonly bottom: number;
  3713. readonly height: number;
  3714. readonly left: number;
  3715. readonly right: number;
  3716. readonly top: number;
  3717. readonly width: number;
  3718. readonly x: number;
  3719. readonly y: number;
  3720. toJSON(): any;
  3721. }
  3722. declare var DOMRectReadOnly: {
  3723. prototype: DOMRectReadOnly;
  3724. new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
  3725. fromRect(other?: DOMRectInit): DOMRectReadOnly;
  3726. };
  3727. /** A type returned by some APIs which contains a list of DOMString (strings). */
  3728. interface DOMStringList {
  3729. /** Returns the number of strings in strings. */
  3730. readonly length: number;
  3731. /** Returns true if strings contains string, and false otherwise. */
  3732. contains(string: string): boolean;
  3733. /** Returns the string with index index from strings. */
  3734. item(index: number): string | null;
  3735. [index: number]: string;
  3736. }
  3737. declare var DOMStringList: {
  3738. prototype: DOMStringList;
  3739. new(): DOMStringList;
  3740. };
  3741. /** Used by the dataset HTML attribute to represent data for custom attributes added to elements. */
  3742. interface DOMStringMap {
  3743. [name: string]: string | undefined;
  3744. }
  3745. declare var DOMStringMap: {
  3746. prototype: DOMStringMap;
  3747. new(): DOMStringMap;
  3748. };
  3749. /** 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. */
  3750. interface DOMTokenList {
  3751. /** Returns the number of tokens. */
  3752. readonly length: number;
  3753. /**
  3754. * Returns the associated set as string.
  3755. *
  3756. * Can be set, to change the associated attribute.
  3757. */
  3758. value: string;
  3759. toString(): string;
  3760. /**
  3761. * Adds all arguments passed, except those already present.
  3762. *
  3763. * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
  3764. *
  3765. * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
  3766. */
  3767. add(...tokens: string[]): void;
  3768. /** Returns true if token is present, and false otherwise. */
  3769. contains(token: string): boolean;
  3770. /** Returns the token with index index. */
  3771. item(index: number): string | null;
  3772. /**
  3773. * Removes arguments passed, if they are present.
  3774. *
  3775. * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
  3776. *
  3777. * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
  3778. */
  3779. remove(...tokens: string[]): void;
  3780. /**
  3781. * Replaces token with newToken.
  3782. *
  3783. * Returns true if token was replaced with newToken, and false otherwise.
  3784. *
  3785. * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
  3786. *
  3787. * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
  3788. */
  3789. replace(token: string, newToken: string): boolean;
  3790. /**
  3791. * Returns true if token is in the associated attribute's supported tokens. Returns false otherwise.
  3792. *
  3793. * Throws a TypeError if the associated attribute has no supported tokens defined.
  3794. */
  3795. supports(token: string): boolean;
  3796. /**
  3797. * 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()).
  3798. *
  3799. * Returns true if token is now present, and false otherwise.
  3800. *
  3801. * Throws a "SyntaxError" DOMException if token is empty.
  3802. *
  3803. * Throws an "InvalidCharacterError" DOMException if token contains any spaces.
  3804. */
  3805. toggle(token: string, force?: boolean): boolean;
  3806. forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void;
  3807. [index: number]: string;
  3808. }
  3809. declare var DOMTokenList: {
  3810. prototype: DOMTokenList;
  3811. new(): DOMTokenList;
  3812. };
  3813. /** 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. */
  3814. interface DataTransfer {
  3815. /**
  3816. * 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.
  3817. *
  3818. * Can be set, to change the selected operation.
  3819. *
  3820. * The possible values are "none", "copy", "link", and "move".
  3821. */
  3822. dropEffect: "none" | "copy" | "link" | "move";
  3823. /**
  3824. * Returns the kinds of operations that are to be allowed.
  3825. *
  3826. * Can be set (during the dragstart event), to change the allowed operations.
  3827. *
  3828. * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",
  3829. */
  3830. effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";
  3831. /** Returns a FileList of the files being dragged, if any. */
  3832. readonly files: FileList;
  3833. /** Returns a DataTransferItemList object, with the drag data. */
  3834. readonly items: DataTransferItemList;
  3835. /** 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". */
  3836. readonly types: ReadonlyArray<string>;
  3837. /** Removes the data of the specified formats. Removes all data if the argument is omitted. */
  3838. clearData(format?: string): void;
  3839. /** Returns the specified data. If there is no such data, returns the empty string. */
  3840. getData(format: string): string;
  3841. /** Adds the specified data. */
  3842. setData(format: string, data: string): void;
  3843. /** Uses the given element to update the drag feedback, replacing any previously specified feedback. */
  3844. setDragImage(image: Element, x: number, y: number): void;
  3845. }
  3846. declare var DataTransfer: {
  3847. prototype: DataTransfer;
  3848. new(): DataTransfer;
  3849. };
  3850. /** 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. */
  3851. interface DataTransferItem {
  3852. /** Returns the drag data item kind, one of: "string", "file". */
  3853. readonly kind: string;
  3854. /** Returns the drag data item type string. */
  3855. readonly type: string;
  3856. /** Returns a File object, if the drag data item kind is File. */
  3857. getAsFile(): File | null;
  3858. /** Invokes the callback with the string data as the argument, if the drag data item kind is text. */
  3859. getAsString(callback: FunctionStringCallback | null): void;
  3860. webkitGetAsEntry(): FileSystemEntry | null;
  3861. }
  3862. declare var DataTransferItem: {
  3863. prototype: DataTransferItem;
  3864. new(): DataTransferItem;
  3865. };
  3866. /** 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. */
  3867. interface DataTransferItemList {
  3868. /** Returns the number of items in the drag data store. */
  3869. readonly length: number;
  3870. /** 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. */
  3871. add(data: string, type: string): DataTransferItem | null;
  3872. add(data: File): DataTransferItem | null;
  3873. /** Removes all the entries in the drag data store. */
  3874. clear(): void;
  3875. /** Removes the indexth entry in the drag data store. */
  3876. remove(index: number): void;
  3877. [index: number]: DataTransferItem;
  3878. }
  3879. declare var DataTransferItemList: {
  3880. prototype: DataTransferItemList;
  3881. new(): DataTransferItemList;
  3882. };
  3883. /** 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. */
  3884. interface DelayNode extends AudioNode {
  3885. readonly delayTime: AudioParam;
  3886. }
  3887. declare var DelayNode: {
  3888. prototype: DelayNode;
  3889. new(context: BaseAudioContext, options?: DelayOptions): DelayNode;
  3890. };
  3891. /**
  3892. * The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation.
  3893. * Available only in secure contexts.
  3894. */
  3895. interface DeviceMotionEvent extends Event {
  3896. readonly acceleration: DeviceMotionEventAcceleration | null;
  3897. readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;
  3898. readonly interval: number;
  3899. readonly rotationRate: DeviceMotionEventRotationRate | null;
  3900. }
  3901. declare var DeviceMotionEvent: {
  3902. prototype: DeviceMotionEvent;
  3903. new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
  3904. };
  3905. /** Available only in secure contexts. */
  3906. interface DeviceMotionEventAcceleration {
  3907. readonly x: number | null;
  3908. readonly y: number | null;
  3909. readonly z: number | null;
  3910. }
  3911. /** Available only in secure contexts. */
  3912. interface DeviceMotionEventRotationRate {
  3913. readonly alpha: number | null;
  3914. readonly beta: number | null;
  3915. readonly gamma: number | null;
  3916. }
  3917. /**
  3918. * The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page.
  3919. * Available only in secure contexts.
  3920. */
  3921. interface DeviceOrientationEvent extends Event {
  3922. readonly absolute: boolean;
  3923. readonly alpha: number | null;
  3924. readonly beta: number | null;
  3925. readonly gamma: number | null;
  3926. }
  3927. declare var DeviceOrientationEvent: {
  3928. prototype: DeviceOrientationEvent;
  3929. new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
  3930. };
  3931. interface DocumentEventMap extends DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
  3932. "fullscreenchange": Event;
  3933. "fullscreenerror": Event;
  3934. "pointerlockchange": Event;
  3935. "pointerlockerror": Event;
  3936. "readystatechange": Event;
  3937. "visibilitychange": Event;
  3938. }
  3939. /** Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. */
  3940. interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
  3941. /** Sets or gets the URL for the current document. */
  3942. readonly URL: string;
  3943. /**
  3944. * Sets or gets the color of all active links in the document.
  3945. * @deprecated
  3946. */
  3947. alinkColor: string;
  3948. /**
  3949. * Returns a reference to the collection of elements contained by the object.
  3950. * @deprecated
  3951. */
  3952. readonly all: HTMLAllCollection;
  3953. /**
  3954. * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
  3955. * @deprecated
  3956. */
  3957. readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;
  3958. /**
  3959. * Retrieves a collection of all applet objects in the document.
  3960. * @deprecated
  3961. */
  3962. readonly applets: HTMLCollection;
  3963. /**
  3964. * Deprecated. Sets or retrieves a value that indicates the background color behind the object.
  3965. * @deprecated
  3966. */
  3967. bgColor: string;
  3968. /** Specifies the beginning and end of the document body. */
  3969. body: HTMLElement;
  3970. /** Returns document's encoding. */
  3971. readonly characterSet: string;
  3972. /**
  3973. * Gets or sets the character set used to encode the object.
  3974. * @deprecated This is a legacy alias of \`characterSet\`.
  3975. */
  3976. readonly charset: string;
  3977. /** Gets a value that indicates whether standards-compliant mode is switched on for the object. */
  3978. readonly compatMode: string;
  3979. /** Returns document's content type. */
  3980. readonly contentType: string;
  3981. /**
  3982. * 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.
  3983. *
  3984. * Can be set, to add a new cookie to the element's set of HTTP cookies.
  3985. *
  3986. * 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.
  3987. */
  3988. cookie: string;
  3989. /**
  3990. * 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.
  3991. *
  3992. * 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.
  3993. */
  3994. readonly currentScript: HTMLOrSVGScriptElement | null;
  3995. /** Returns the Window object of the active document. */
  3996. readonly defaultView: (WindowProxy & typeof globalThis) | null;
  3997. /** Sets or gets a value that indicates whether the document can be edited. */
  3998. designMode: string;
  3999. /** Sets or retrieves a value that indicates the reading order of the object. */
  4000. dir: string;
  4001. /** Gets an object representing the document type declaration associated with the current document. */
  4002. readonly doctype: DocumentType | null;
  4003. /** Gets a reference to the root node of the document. */
  4004. readonly documentElement: HTMLElement;
  4005. /** Returns document's URL. */
  4006. readonly documentURI: string;
  4007. /** Sets or gets the security domain of the document. */
  4008. domain: string;
  4009. /** Retrieves a collection of all embed objects in the document. */
  4010. readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;
  4011. /**
  4012. * Sets or gets the foreground (text) color of the document.
  4013. * @deprecated
  4014. */
  4015. fgColor: string;
  4016. /** Retrieves a collection, in source order, of all form objects in the document. */
  4017. readonly forms: HTMLCollectionOf<HTMLFormElement>;
  4018. /** @deprecated */
  4019. readonly fullscreen: boolean;
  4020. /** Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. */
  4021. readonly fullscreenEnabled: boolean;
  4022. /** Returns the head element. */
  4023. readonly head: HTMLHeadElement;
  4024. readonly hidden: boolean;
  4025. /** Retrieves a collection, in source order, of img objects in the document. */
  4026. readonly images: HTMLCollectionOf<HTMLImageElement>;
  4027. /** Gets the implementation object of the current document. */
  4028. readonly implementation: DOMImplementation;
  4029. /**
  4030. * Returns the character encoding used to create the webpage that is loaded into the document object.
  4031. * @deprecated This is a legacy alias of \`characterSet\`.
  4032. */
  4033. readonly inputEncoding: string;
  4034. /** Gets the date that the page was last modified, if the page supplies one. */
  4035. readonly lastModified: string;
  4036. /**
  4037. * Sets or gets the color of the document links.
  4038. * @deprecated
  4039. */
  4040. linkColor: string;
  4041. /** Retrieves a collection of all a objects that specify the href property and all area objects in the document. */
  4042. readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
  4043. /** Contains information about the current URL. */
  4044. get location(): Location;
  4045. set location(href: string | Location);
  4046. onfullscreenchange: ((this: Document, ev: Event) => any) | null;
  4047. onfullscreenerror: ((this: Document, ev: Event) => any) | null;
  4048. onpointerlockchange: ((this: Document, ev: Event) => any) | null;
  4049. onpointerlockerror: ((this: Document, ev: Event) => any) | null;
  4050. /**
  4051. * Fires when the state of the object has changed.
  4052. * @param ev The event
  4053. */
  4054. onreadystatechange: ((this: Document, ev: Event) => any) | null;
  4055. onvisibilitychange: ((this: Document, ev: Event) => any) | null;
  4056. readonly ownerDocument: null;
  4057. readonly pictureInPictureEnabled: boolean;
  4058. /** Return an HTMLCollection of the embed elements in the Document. */
  4059. readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;
  4060. /** Retrieves a value that indicates the current state of the object. */
  4061. readonly readyState: DocumentReadyState;
  4062. /** Gets the URL of the location that referred the user to the current page. */
  4063. readonly referrer: string;
  4064. /** @deprecated */
  4065. readonly rootElement: SVGSVGElement | null;
  4066. /** Retrieves a collection of all script objects in the document. */
  4067. readonly scripts: HTMLCollectionOf<HTMLScriptElement>;
  4068. readonly scrollingElement: Element | null;
  4069. readonly timeline: DocumentTimeline;
  4070. /** Contains the title of the document. */
  4071. title: string;
  4072. readonly visibilityState: VisibilityState;
  4073. /**
  4074. * Sets or gets the color of the links that the user has visited.
  4075. * @deprecated
  4076. */
  4077. vlinkColor: string;
  4078. /**
  4079. * Moves node from another document and returns it.
  4080. *
  4081. * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.
  4082. */
  4083. adoptNode<T extends Node>(node: T): T;
  4084. /** @deprecated */
  4085. captureEvents(): void;
  4086. /** @deprecated */
  4087. caretRangeFromPoint(x: number, y: number): Range | null;
  4088. /** @deprecated */
  4089. clear(): void;
  4090. /** Closes an output stream and forces the sent data to display. */
  4091. close(): void;
  4092. /**
  4093. * Creates an attribute object with a specified name.
  4094. * @param name String that sets the attribute object's name.
  4095. */
  4096. createAttribute(localName: string): Attr;
  4097. createAttributeNS(namespace: string | null, qualifiedName: string): Attr;
  4098. /** Returns a CDATASection node whose data is data. */
  4099. createCDATASection(data: string): CDATASection;
  4100. /**
  4101. * Creates a comment object with the specified data.
  4102. * @param data Sets the comment object's data.
  4103. */
  4104. createComment(data: string): Comment;
  4105. /** Creates a new document. */
  4106. createDocumentFragment(): DocumentFragment;
  4107. /**
  4108. * Creates an instance of the element for the specified tag.
  4109. * @param tagName The name of an element.
  4110. */
  4111. createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];
  4112. /** @deprecated */
  4113. createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K];
  4114. createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;
  4115. /**
  4116. * 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.
  4117. *
  4118. * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.
  4119. *
  4120. * If one of the following conditions is true a "NamespaceError" DOMException will be thrown:
  4121. *
  4122. * localName does not match the QName production.
  4123. * Namespace prefix is not null and namespace is the empty string.
  4124. * Namespace prefix is "xml" and namespace is not the XML namespace.
  4125. * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace.
  4126. * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".
  4127. *
  4128. * When supplied, options's is can be used to create a customized built-in element.
  4129. */
  4130. createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;
  4131. createElementNS<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];
  4132. createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;
  4133. createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;
  4134. createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;
  4135. createEvent(eventInterface: "AnimationEvent"): AnimationEvent;
  4136. createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;
  4137. createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;
  4138. createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;
  4139. createEvent(eventInterface: "BlobEvent"): BlobEvent;
  4140. createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
  4141. createEvent(eventInterface: "CloseEvent"): CloseEvent;
  4142. createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
  4143. createEvent(eventInterface: "CustomEvent"): CustomEvent;
  4144. createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
  4145. createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
  4146. createEvent(eventInterface: "DragEvent"): DragEvent;
  4147. createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
  4148. createEvent(eventInterface: "FocusEvent"): FocusEvent;
  4149. createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
  4150. createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
  4151. createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
  4152. createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
  4153. createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
  4154. createEvent(eventInterface: "InputEvent"): InputEvent;
  4155. createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
  4156. createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
  4157. createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
  4158. createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
  4159. createEvent(eventInterface: "MediaRecorderErrorEvent"): MediaRecorderErrorEvent;
  4160. createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;
  4161. createEvent(eventInterface: "MessageEvent"): MessageEvent;
  4162. createEvent(eventInterface: "MouseEvent"): MouseEvent;
  4163. createEvent(eventInterface: "MouseEvents"): MouseEvent;
  4164. createEvent(eventInterface: "MutationEvent"): MutationEvent;
  4165. createEvent(eventInterface: "MutationEvents"): MutationEvent;
  4166. createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
  4167. createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
  4168. createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
  4169. createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
  4170. createEvent(eventInterface: "PointerEvent"): PointerEvent;
  4171. createEvent(eventInterface: "PopStateEvent"): PopStateEvent;
  4172. createEvent(eventInterface: "ProgressEvent"): ProgressEvent;
  4173. createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
  4174. createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
  4175. createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
  4176. createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
  4177. createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
  4178. createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
  4179. createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
  4180. createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
  4181. createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
  4182. createEvent(eventInterface: "StorageEvent"): StorageEvent;
  4183. createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
  4184. createEvent(eventInterface: "TouchEvent"): TouchEvent;
  4185. createEvent(eventInterface: "TrackEvent"): TrackEvent;
  4186. createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
  4187. createEvent(eventInterface: "UIEvent"): UIEvent;
  4188. createEvent(eventInterface: "UIEvents"): UIEvent;
  4189. createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;
  4190. createEvent(eventInterface: "WheelEvent"): WheelEvent;
  4191. createEvent(eventInterface: string): Event;
  4192. /**
  4193. * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
  4194. * @param root The root element or node to start traversing on.
  4195. * @param whatToShow The type of nodes or elements to appear in the node list
  4196. * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.
  4197. */
  4198. createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;
  4199. /** 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. */
  4200. createProcessingInstruction(target: string, data: string): ProcessingInstruction;
  4201. /** Returns an empty range object that has both of its boundary points positioned at the beginning of the document. */
  4202. createRange(): Range;
  4203. /**
  4204. * Creates a text string from the specified value.
  4205. * @param data String that specifies the nodeValue property of the text node.
  4206. */
  4207. createTextNode(data: string): Text;
  4208. /**
  4209. * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
  4210. * @param root The root element or node to start traversing on.
  4211. * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.
  4212. * @param filter A custom NodeFilter function to use.
  4213. */
  4214. createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;
  4215. /**
  4216. * Executes a command on the current document, current selection, or the given range.
  4217. * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
  4218. * @param showUI Display the user interface, defaults to false.
  4219. * @param value Value to assign.
  4220. * @deprecated
  4221. */
  4222. execCommand(commandId: string, showUI?: boolean, value?: string): boolean;
  4223. /** Stops document's fullscreen element from being displayed fullscreen and resolves promise when done. */
  4224. exitFullscreen(): Promise<void>;
  4225. exitPictureInPicture(): Promise<void>;
  4226. exitPointerLock(): void;
  4227. /**
  4228. * Returns a reference to the first object with the specified value of the ID attribute.
  4229. * @param elementId String that specifies the ID value.
  4230. */
  4231. getElementById(elementId: string): HTMLElement | null;
  4232. /** 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. */
  4233. getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
  4234. /**
  4235. * Gets a collection of objects based on the value of the NAME or ID attribute.
  4236. * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
  4237. */
  4238. getElementsByName(elementName: string): NodeListOf<HTMLElement>;
  4239. /**
  4240. * Retrieves a collection of objects based on the specified element name.
  4241. * @param name Specifies the name of an element.
  4242. */
  4243. getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
  4244. getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
  4245. getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
  4246. /**
  4247. * If namespace and localName are "*" returns a HTMLCollection of all descendant elements.
  4248. *
  4249. * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.
  4250. *
  4251. * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.
  4252. *
  4253. * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.
  4254. */
  4255. getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
  4256. getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
  4257. getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
  4258. /** Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. */
  4259. getSelection(): Selection | null;
  4260. /** Gets a value indicating whether the object currently has focus. */
  4261. hasFocus(): boolean;
  4262. hasStorageAccess(): Promise<boolean>;
  4263. /**
  4264. * Returns a copy of node. If deep is true, the copy also includes the node's descendants.
  4265. *
  4266. * If node is a document or a shadow root, throws a "NotSupportedError" DOMException.
  4267. */
  4268. importNode<T extends Node>(node: T, deep?: boolean): T;
  4269. /**
  4270. * 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.
  4271. * @param url Specifies a MIME type for the document.
  4272. * @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.
  4273. * @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.
  4274. * @param replace Specifies whether the existing entry for the document is replaced in the history list.
  4275. */
  4276. open(unused1?: string, unused2?: string): Document;
  4277. open(url: string | URL, name: string, features: string): WindowProxy | null;
  4278. /**
  4279. * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
  4280. * @param commandId Specifies a command identifier.
  4281. * @deprecated
  4282. */
  4283. queryCommandEnabled(commandId: string): boolean;
  4284. /**
  4285. * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
  4286. * @param commandId String that specifies a command identifier.
  4287. */
  4288. queryCommandIndeterm(commandId: string): boolean;
  4289. /**
  4290. * Returns a Boolean value that indicates the current state of the command.
  4291. * @param commandId String that specifies a command identifier.
  4292. * @deprecated
  4293. */
  4294. queryCommandState(commandId: string): boolean;
  4295. /**
  4296. * Returns a Boolean value that indicates whether the current command is supported on the current range.
  4297. * @param commandId Specifies a command identifier.
  4298. * @deprecated
  4299. */
  4300. queryCommandSupported(commandId: string): boolean;
  4301. /**
  4302. * Returns the current value of the document, range, or current selection for the given command.
  4303. * @param commandId String that specifies a command identifier.
  4304. */
  4305. queryCommandValue(commandId: string): string;
  4306. /** @deprecated */
  4307. releaseEvents(): void;
  4308. requestStorageAccess(): Promise<void>;
  4309. /**
  4310. * Writes one or more HTML expressions to a document in the specified window.
  4311. * @param content Specifies the text and HTML tags to write.
  4312. */
  4313. write(...text: string[]): void;
  4314. /**
  4315. * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
  4316. * @param content The text and HTML tags to write.
  4317. */
  4318. writeln(...text: string[]): void;
  4319. addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  4320. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  4321. removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  4322. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  4323. }
  4324. declare var Document: {
  4325. prototype: Document;
  4326. new(): Document;
  4327. };
  4328. interface DocumentAndElementEventHandlersEventMap {
  4329. "copy": ClipboardEvent;
  4330. "cut": ClipboardEvent;
  4331. "paste": ClipboardEvent;
  4332. }
  4333. interface DocumentAndElementEventHandlers {
  4334. oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
  4335. oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
  4336. onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
  4337. addEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  4338. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  4339. removeEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  4340. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  4341. }
  4342. /** 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. */
  4343. interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
  4344. readonly ownerDocument: Document;
  4345. getElementById(elementId: string): HTMLElement | null;
  4346. }
  4347. declare var DocumentFragment: {
  4348. prototype: DocumentFragment;
  4349. new(): DocumentFragment;
  4350. };
  4351. interface DocumentOrShadowRoot {
  4352. /**
  4353. * 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.
  4354. *
  4355. * 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.
  4356. *
  4357. * 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.
  4358. */
  4359. readonly activeElement: Element | null;
  4360. /** Returns document's fullscreen element. */
  4361. readonly fullscreenElement: Element | null;
  4362. readonly pictureInPictureElement: Element | null;
  4363. readonly pointerLockElement: Element | null;
  4364. /** Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. */
  4365. readonly styleSheets: StyleSheetList;
  4366. /**
  4367. * Returns the element for the specified x coordinate and the specified y coordinate.
  4368. * @param x The x-offset
  4369. * @param y The y-offset
  4370. */
  4371. elementFromPoint(x: number, y: number): Element | null;
  4372. elementsFromPoint(x: number, y: number): Element[];
  4373. getAnimations(): Animation[];
  4374. }
  4375. interface DocumentTimeline extends AnimationTimeline {
  4376. }
  4377. declare var DocumentTimeline: {
  4378. prototype: DocumentTimeline;
  4379. new(options?: DocumentTimelineOptions): DocumentTimeline;
  4380. };
  4381. /** A Node containing a doctype. */
  4382. interface DocumentType extends Node, ChildNode {
  4383. readonly name: string;
  4384. readonly ownerDocument: Document;
  4385. readonly publicId: string;
  4386. readonly systemId: string;
  4387. }
  4388. declare var DocumentType: {
  4389. prototype: DocumentType;
  4390. new(): DocumentType;
  4391. };
  4392. /** 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. */
  4393. interface DragEvent extends MouseEvent {
  4394. /** Returns the DataTransfer object for the event. */
  4395. readonly dataTransfer: DataTransfer | null;
  4396. }
  4397. declare var DragEvent: {
  4398. prototype: DragEvent;
  4399. new(type: string, eventInitDict?: DragEventInit): DragEvent;
  4400. };
  4401. /** Inherits properties from its parent, AudioNode. */
  4402. interface DynamicsCompressorNode extends AudioNode {
  4403. readonly attack: AudioParam;
  4404. readonly knee: AudioParam;
  4405. readonly ratio: AudioParam;
  4406. readonly reduction: number;
  4407. readonly release: AudioParam;
  4408. readonly threshold: AudioParam;
  4409. }
  4410. declare var DynamicsCompressorNode: {
  4411. prototype: DynamicsCompressorNode;
  4412. new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;
  4413. };
  4414. interface EXT_blend_minmax {
  4415. readonly MAX_EXT: GLenum;
  4416. readonly MIN_EXT: GLenum;
  4417. }
  4418. interface EXT_color_buffer_float {
  4419. }
  4420. interface EXT_color_buffer_half_float {
  4421. readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
  4422. readonly RGB16F_EXT: GLenum;
  4423. readonly RGBA16F_EXT: GLenum;
  4424. readonly UNSIGNED_NORMALIZED_EXT: GLenum;
  4425. }
  4426. interface EXT_float_blend {
  4427. }
  4428. /** 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. */
  4429. interface EXT_frag_depth {
  4430. }
  4431. interface EXT_sRGB {
  4432. readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum;
  4433. readonly SRGB8_ALPHA8_EXT: GLenum;
  4434. readonly SRGB_ALPHA_EXT: GLenum;
  4435. readonly SRGB_EXT: GLenum;
  4436. }
  4437. interface EXT_shader_texture_lod {
  4438. }
  4439. interface EXT_texture_compression_rgtc {
  4440. readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
  4441. readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
  4442. readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum;
  4443. readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum;
  4444. }
  4445. /** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
  4446. interface EXT_texture_filter_anisotropic {
  4447. readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
  4448. readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
  4449. }
  4450. interface ElementEventMap {
  4451. "fullscreenchange": Event;
  4452. "fullscreenerror": Event;
  4453. }
  4454. /** 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. */
  4455. interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {
  4456. readonly attributes: NamedNodeMap;
  4457. /** Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. */
  4458. readonly classList: DOMTokenList;
  4459. /** Returns the value of element's class content attribute. Can be set to change it. */
  4460. className: string;
  4461. readonly clientHeight: number;
  4462. readonly clientLeft: number;
  4463. readonly clientTop: number;
  4464. readonly clientWidth: number;
  4465. /** Returns the value of element's id content attribute. Can be set to change it. */
  4466. id: string;
  4467. /** Returns the local name. */
  4468. readonly localName: string;
  4469. /** Returns the namespace. */
  4470. readonly namespaceURI: string | null;
  4471. onfullscreenchange: ((this: Element, ev: Event) => any) | null;
  4472. onfullscreenerror: ((this: Element, ev: Event) => any) | null;
  4473. outerHTML: string;
  4474. readonly ownerDocument: Document;
  4475. readonly part: DOMTokenList;
  4476. /** Returns the namespace prefix. */
  4477. readonly prefix: string | null;
  4478. readonly scrollHeight: number;
  4479. scrollLeft: number;
  4480. scrollTop: number;
  4481. readonly scrollWidth: number;
  4482. /** Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. */
  4483. readonly shadowRoot: ShadowRoot | null;
  4484. /** Returns the value of element's slot content attribute. Can be set to change it. */
  4485. slot: string;
  4486. /** Returns the HTML-uppercased qualified name. */
  4487. readonly tagName: string;
  4488. /** Creates a shadow root for element and returns it. */
  4489. attachShadow(init: ShadowRootInit): ShadowRoot;
  4490. /** Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. */
  4491. closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
  4492. closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
  4493. closest<E extends Element = Element>(selectors: string): E | null;
  4494. /** Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. */
  4495. getAttribute(qualifiedName: string): string | null;
  4496. /** Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. */
  4497. getAttributeNS(namespace: string | null, localName: string): string | null;
  4498. /** Returns the qualified names of all element's attributes. Can contain duplicates. */
  4499. getAttributeNames(): string[];
  4500. getAttributeNode(qualifiedName: string): Attr | null;
  4501. getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
  4502. getBoundingClientRect(): DOMRect;
  4503. getClientRects(): DOMRectList;
  4504. /** 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. */
  4505. getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
  4506. getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
  4507. getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
  4508. getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
  4509. getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
  4510. getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
  4511. getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
  4512. /** Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. */
  4513. hasAttribute(qualifiedName: string): boolean;
  4514. /** Returns true if element has an attribute whose namespace is namespace and local name is localName. */
  4515. hasAttributeNS(namespace: string | null, localName: string): boolean;
  4516. /** Returns true if element has attributes, and false otherwise. */
  4517. hasAttributes(): boolean;
  4518. hasPointerCapture(pointerId: number): boolean;
  4519. insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
  4520. insertAdjacentHTML(position: InsertPosition, text: string): void;
  4521. insertAdjacentText(where: InsertPosition, data: string): void;
  4522. /** Returns true if matching selectors against element's root yields element, and false otherwise. */
  4523. matches(selectors: string): boolean;
  4524. releasePointerCapture(pointerId: number): void;
  4525. /** Removes element's first attribute whose qualified name is qualifiedName. */
  4526. removeAttribute(qualifiedName: string): void;
  4527. /** Removes element's attribute whose namespace is namespace and local name is localName. */
  4528. removeAttributeNS(namespace: string | null, localName: string): void;
  4529. removeAttributeNode(attr: Attr): Attr;
  4530. /**
  4531. * Displays element fullscreen and resolves promise when done.
  4532. *
  4533. * 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.
  4534. */
  4535. requestFullscreen(options?: FullscreenOptions): Promise<void>;
  4536. requestPointerLock(): void;
  4537. scroll(options?: ScrollToOptions): void;
  4538. scroll(x: number, y: number): void;
  4539. scrollBy(options?: ScrollToOptions): void;
  4540. scrollBy(x: number, y: number): void;
  4541. scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
  4542. scrollTo(options?: ScrollToOptions): void;
  4543. scrollTo(x: number, y: number): void;
  4544. /** Sets the value of element's first attribute whose qualified name is qualifiedName to value. */
  4545. setAttribute(qualifiedName: string, value: string): void;
  4546. /** Sets the value of element's attribute whose namespace is namespace and local name is localName to value. */
  4547. setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
  4548. setAttributeNode(attr: Attr): Attr | null;
  4549. setAttributeNodeNS(attr: Attr): Attr | null;
  4550. setPointerCapture(pointerId: number): void;
  4551. /**
  4552. * 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.
  4553. *
  4554. * Returns true if qualifiedName is now present, and false otherwise.
  4555. */
  4556. toggleAttribute(qualifiedName: string, force?: boolean): boolean;
  4557. /** @deprecated This is a legacy alias of \`matches\`. */
  4558. webkitMatchesSelector(selectors: string): boolean;
  4559. addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  4560. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  4561. removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  4562. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  4563. }
  4564. declare var Element: {
  4565. prototype: Element;
  4566. new(): Element;
  4567. };
  4568. interface ElementCSSInlineStyle {
  4569. readonly style: CSSStyleDeclaration;
  4570. }
  4571. interface ElementContentEditable {
  4572. contentEditable: string;
  4573. enterKeyHint: string;
  4574. inputMode: string;
  4575. readonly isContentEditable: boolean;
  4576. }
  4577. interface ElementInternals extends ARIAMixin {
  4578. /** Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. */
  4579. readonly shadowRoot: ShadowRoot | null;
  4580. }
  4581. declare var ElementInternals: {
  4582. prototype: ElementInternals;
  4583. new(): ElementInternals;
  4584. };
  4585. /** Events providing information related to errors in scripts or in files. */
  4586. interface ErrorEvent extends Event {
  4587. readonly colno: number;
  4588. readonly error: any;
  4589. readonly filename: string;
  4590. readonly lineno: number;
  4591. readonly message: string;
  4592. }
  4593. declare var ErrorEvent: {
  4594. prototype: ErrorEvent;
  4595. new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
  4596. };
  4597. /** An event which takes place in the DOM. */
  4598. interface Event {
  4599. /** 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. */
  4600. readonly bubbles: boolean;
  4601. cancelBubble: boolean;
  4602. /** 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. */
  4603. readonly cancelable: boolean;
  4604. /** 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. */
  4605. readonly composed: boolean;
  4606. /** Returns the object whose event listener's callback is currently being invoked. */
  4607. readonly currentTarget: EventTarget | null;
  4608. /** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */
  4609. readonly defaultPrevented: boolean;
  4610. /** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */
  4611. readonly eventPhase: number;
  4612. /** Returns true if event was dispatched by the user agent, and false otherwise. */
  4613. readonly isTrusted: boolean;
  4614. /** @deprecated */
  4615. returnValue: boolean;
  4616. /** @deprecated */
  4617. readonly srcElement: EventTarget | null;
  4618. /** Returns the object to which event is dispatched (its target). */
  4619. readonly target: EventTarget | null;
  4620. /** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */
  4621. readonly timeStamp: DOMHighResTimeStamp;
  4622. /** Returns the type of event, e.g. "click", "hashchange", or "submit". */
  4623. readonly type: string;
  4624. /** 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. */
  4625. composedPath(): EventTarget[];
  4626. /** @deprecated */
  4627. initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
  4628. /** 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. */
  4629. preventDefault(): void;
  4630. /** 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. */
  4631. stopImmediatePropagation(): void;
  4632. /** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */
  4633. stopPropagation(): void;
  4634. readonly AT_TARGET: number;
  4635. readonly BUBBLING_PHASE: number;
  4636. readonly CAPTURING_PHASE: number;
  4637. readonly NONE: number;
  4638. }
  4639. declare var Event: {
  4640. prototype: Event;
  4641. new(type: string, eventInitDict?: EventInit): Event;
  4642. readonly AT_TARGET: number;
  4643. readonly BUBBLING_PHASE: number;
  4644. readonly CAPTURING_PHASE: number;
  4645. readonly NONE: number;
  4646. };
  4647. interface EventListener {
  4648. (evt: Event): void;
  4649. }
  4650. interface EventListenerObject {
  4651. handleEvent(object: Event): void;
  4652. }
  4653. interface EventSourceEventMap {
  4654. "error": Event;
  4655. "message": MessageEvent;
  4656. "open": Event;
  4657. }
  4658. interface EventSource extends EventTarget {
  4659. onerror: ((this: EventSource, ev: Event) => any) | null;
  4660. onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
  4661. onopen: ((this: EventSource, ev: Event) => any) | null;
  4662. /** Returns the state of this EventSource object's connection. It can have the values described below. */
  4663. readonly readyState: number;
  4664. /** Returns the URL providing the event stream. */
  4665. readonly url: string;
  4666. /** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. */
  4667. readonly withCredentials: boolean;
  4668. /** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */
  4669. close(): void;
  4670. readonly CLOSED: number;
  4671. readonly CONNECTING: number;
  4672. readonly OPEN: number;
  4673. addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  4674. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  4675. removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  4676. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  4677. }
  4678. declare var EventSource: {
  4679. prototype: EventSource;
  4680. new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
  4681. readonly CLOSED: number;
  4682. readonly CONNECTING: number;
  4683. readonly OPEN: number;
  4684. };
  4685. /** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
  4686. interface EventTarget {
  4687. /**
  4688. * 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.
  4689. *
  4690. * 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.
  4691. *
  4692. * 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.
  4693. *
  4694. * 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.
  4695. *
  4696. * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
  4697. *
  4698. * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
  4699. *
  4700. * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
  4701. */
  4702. addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
  4703. /** 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. */
  4704. dispatchEvent(event: Event): boolean;
  4705. /** Removes the event listener in target's event listener list with the same type, callback, and options. */
  4706. removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
  4707. }
  4708. declare var EventTarget: {
  4709. prototype: EventTarget;
  4710. new(): EventTarget;
  4711. };
  4712. /** @deprecated */
  4713. interface External {
  4714. /** @deprecated */
  4715. AddSearchProvider(): void;
  4716. /** @deprecated */
  4717. IsSearchProviderInstalled(): void;
  4718. }
  4719. /** @deprecated */
  4720. declare var External: {
  4721. prototype: External;
  4722. new(): External;
  4723. };
  4724. /** Provides information about files and allows JavaScript in a web page to access their content. */
  4725. interface File extends Blob {
  4726. readonly lastModified: number;
  4727. readonly name: string;
  4728. readonly webkitRelativePath: string;
  4729. }
  4730. declare var File: {
  4731. prototype: File;
  4732. new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
  4733. };
  4734. /** 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. */
  4735. interface FileList {
  4736. readonly length: number;
  4737. item(index: number): File | null;
  4738. [index: number]: File;
  4739. }
  4740. declare var FileList: {
  4741. prototype: FileList;
  4742. new(): FileList;
  4743. };
  4744. interface FileReaderEventMap {
  4745. "abort": ProgressEvent<FileReader>;
  4746. "error": ProgressEvent<FileReader>;
  4747. "load": ProgressEvent<FileReader>;
  4748. "loadend": ProgressEvent<FileReader>;
  4749. "loadstart": ProgressEvent<FileReader>;
  4750. "progress": ProgressEvent<FileReader>;
  4751. }
  4752. /** 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. */
  4753. interface FileReader extends EventTarget {
  4754. readonly error: DOMException | null;
  4755. onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
  4756. onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
  4757. onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
  4758. onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
  4759. onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
  4760. onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
  4761. readonly readyState: number;
  4762. readonly result: string | ArrayBuffer | null;
  4763. abort(): void;
  4764. readAsArrayBuffer(blob: Blob): void;
  4765. readAsBinaryString(blob: Blob): void;
  4766. readAsDataURL(blob: Blob): void;
  4767. readAsText(blob: Blob, encoding?: string): void;
  4768. readonly DONE: number;
  4769. readonly EMPTY: number;
  4770. readonly LOADING: number;
  4771. addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  4772. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  4773. removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  4774. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  4775. }
  4776. declare var FileReader: {
  4777. prototype: FileReader;
  4778. new(): FileReader;
  4779. readonly DONE: number;
  4780. readonly EMPTY: number;
  4781. readonly LOADING: number;
  4782. };
  4783. interface FileSystem {
  4784. readonly name: string;
  4785. readonly root: FileSystemDirectoryEntry;
  4786. }
  4787. declare var FileSystem: {
  4788. prototype: FileSystem;
  4789. new(): FileSystem;
  4790. };
  4791. interface FileSystemDirectoryEntry extends FileSystemEntry {
  4792. createReader(): FileSystemDirectoryReader;
  4793. getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
  4794. getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
  4795. }
  4796. declare var FileSystemDirectoryEntry: {
  4797. prototype: FileSystemDirectoryEntry;
  4798. new(): FileSystemDirectoryEntry;
  4799. };
  4800. interface FileSystemDirectoryReader {
  4801. readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
  4802. }
  4803. declare var FileSystemDirectoryReader: {
  4804. prototype: FileSystemDirectoryReader;
  4805. new(): FileSystemDirectoryReader;
  4806. };
  4807. interface FileSystemEntry {
  4808. readonly filesystem: FileSystem;
  4809. readonly fullPath: string;
  4810. readonly isDirectory: boolean;
  4811. readonly isFile: boolean;
  4812. readonly name: string;
  4813. getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
  4814. }
  4815. declare var FileSystemEntry: {
  4816. prototype: FileSystemEntry;
  4817. new(): FileSystemEntry;
  4818. };
  4819. interface FileSystemFileEntry extends FileSystemEntry {
  4820. file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;
  4821. }
  4822. declare var FileSystemFileEntry: {
  4823. prototype: FileSystemFileEntry;
  4824. new(): FileSystemFileEntry;
  4825. };
  4826. /** Focus-related events like focus, blur, focusin, or focusout. */
  4827. interface FocusEvent extends UIEvent {
  4828. readonly relatedTarget: EventTarget | null;
  4829. }
  4830. declare var FocusEvent: {
  4831. prototype: FocusEvent;
  4832. new(type: string, eventInitDict?: FocusEventInit): FocusEvent;
  4833. };
  4834. interface FontFace {
  4835. ascentOverride: string;
  4836. descentOverride: string;
  4837. display: string;
  4838. family: string;
  4839. featureSettings: string;
  4840. lineGapOverride: string;
  4841. readonly loaded: Promise<FontFace>;
  4842. readonly status: FontFaceLoadStatus;
  4843. stretch: string;
  4844. style: string;
  4845. unicodeRange: string;
  4846. variant: string;
  4847. variationSettings: string;
  4848. weight: string;
  4849. load(): Promise<FontFace>;
  4850. }
  4851. declare var FontFace: {
  4852. prototype: FontFace;
  4853. new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
  4854. };
  4855. interface FontFaceSetEventMap {
  4856. "loading": Event;
  4857. "loadingdone": Event;
  4858. "loadingerror": Event;
  4859. }
  4860. interface FontFaceSet extends EventTarget {
  4861. onloading: ((this: FontFaceSet, ev: Event) => any) | null;
  4862. onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
  4863. onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
  4864. readonly ready: Promise<FontFaceSet>;
  4865. readonly status: FontFaceSetLoadStatus;
  4866. check(font: string, text?: string): boolean;
  4867. load(font: string, text?: string): Promise<FontFace[]>;
  4868. forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
  4869. addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  4870. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  4871. removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  4872. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  4873. }
  4874. declare var FontFaceSet: {
  4875. prototype: FontFaceSet;
  4876. new(initialFaces: FontFace[]): FontFaceSet;
  4877. };
  4878. interface FontFaceSetLoadEvent extends Event {
  4879. readonly fontfaces: ReadonlyArray<FontFace>;
  4880. }
  4881. declare var FontFaceSetLoadEvent: {
  4882. prototype: FontFaceSetLoadEvent;
  4883. new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
  4884. };
  4885. interface FontFaceSource {
  4886. readonly fonts: FontFaceSet;
  4887. }
  4888. /** 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". */
  4889. interface FormData {
  4890. append(name: string, value: string | Blob, fileName?: string): void;
  4891. delete(name: string): void;
  4892. get(name: string): FormDataEntryValue | null;
  4893. getAll(name: string): FormDataEntryValue[];
  4894. has(name: string): boolean;
  4895. set(name: string, value: string | Blob, fileName?: string): void;
  4896. forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
  4897. }
  4898. declare var FormData: {
  4899. prototype: FormData;
  4900. new(form?: HTMLFormElement): FormData;
  4901. };
  4902. interface FormDataEvent extends Event {
  4903. /** 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. */
  4904. readonly formData: FormData;
  4905. }
  4906. declare var FormDataEvent: {
  4907. prototype: FormDataEvent;
  4908. new(type: string, eventInitDict: FormDataEventInit): FormDataEvent;
  4909. };
  4910. /** 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. */
  4911. interface GainNode extends AudioNode {
  4912. readonly gain: AudioParam;
  4913. }
  4914. declare var GainNode: {
  4915. prototype: GainNode;
  4916. new(context: BaseAudioContext, options?: GainOptions): GainNode;
  4917. };
  4918. /**
  4919. * This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.
  4920. * Available only in secure contexts.
  4921. */
  4922. interface Gamepad {
  4923. readonly axes: ReadonlyArray<number>;
  4924. readonly buttons: ReadonlyArray<GamepadButton>;
  4925. readonly connected: boolean;
  4926. readonly hapticActuators: ReadonlyArray<GamepadHapticActuator>;
  4927. readonly id: string;
  4928. readonly index: number;
  4929. readonly mapping: GamepadMappingType;
  4930. readonly timestamp: DOMHighResTimeStamp;
  4931. }
  4932. declare var Gamepad: {
  4933. prototype: Gamepad;
  4934. new(): Gamepad;
  4935. };
  4936. /**
  4937. * 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.
  4938. * Available only in secure contexts.
  4939. */
  4940. interface GamepadButton {
  4941. readonly pressed: boolean;
  4942. readonly touched: boolean;
  4943. readonly value: number;
  4944. }
  4945. declare var GamepadButton: {
  4946. prototype: GamepadButton;
  4947. new(): GamepadButton;
  4948. };
  4949. /**
  4950. * 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.
  4951. * Available only in secure contexts.
  4952. */
  4953. interface GamepadEvent extends Event {
  4954. readonly gamepad: Gamepad;
  4955. }
  4956. declare var GamepadEvent: {
  4957. prototype: GamepadEvent;
  4958. new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;
  4959. };
  4960. /** This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. */
  4961. interface GamepadHapticActuator {
  4962. readonly type: GamepadHapticActuatorType;
  4963. }
  4964. declare var GamepadHapticActuator: {
  4965. prototype: GamepadHapticActuator;
  4966. new(): GamepadHapticActuator;
  4967. };
  4968. interface GenericTransformStream {
  4969. readonly readable: ReadableStream;
  4970. readonly writable: WritableStream;
  4971. }
  4972. /** 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. */
  4973. interface Geolocation {
  4974. clearWatch(watchId: number): void;
  4975. getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;
  4976. watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;
  4977. }
  4978. declare var Geolocation: {
  4979. prototype: Geolocation;
  4980. new(): Geolocation;
  4981. };
  4982. /** Available only in secure contexts. */
  4983. interface GeolocationCoordinates {
  4984. readonly accuracy: number;
  4985. readonly altitude: number | null;
  4986. readonly altitudeAccuracy: number | null;
  4987. readonly heading: number | null;
  4988. readonly latitude: number;
  4989. readonly longitude: number;
  4990. readonly speed: number | null;
  4991. }
  4992. declare var GeolocationCoordinates: {
  4993. prototype: GeolocationCoordinates;
  4994. new(): GeolocationCoordinates;
  4995. };
  4996. /** Available only in secure contexts. */
  4997. interface GeolocationPosition {
  4998. readonly coords: GeolocationCoordinates;
  4999. readonly timestamp: DOMTimeStamp;
  5000. }
  5001. declare var GeolocationPosition: {
  5002. prototype: GeolocationPosition;
  5003. new(): GeolocationPosition;
  5004. };
  5005. interface GeolocationPositionError {
  5006. readonly code: number;
  5007. readonly message: string;
  5008. readonly PERMISSION_DENIED: number;
  5009. readonly POSITION_UNAVAILABLE: number;
  5010. readonly TIMEOUT: number;
  5011. }
  5012. declare var GeolocationPositionError: {
  5013. prototype: GeolocationPositionError;
  5014. new(): GeolocationPositionError;
  5015. readonly PERMISSION_DENIED: number;
  5016. readonly POSITION_UNAVAILABLE: number;
  5017. readonly TIMEOUT: number;
  5018. };
  5019. interface GlobalEventHandlersEventMap {
  5020. "abort": UIEvent;
  5021. "animationcancel": AnimationEvent;
  5022. "animationend": AnimationEvent;
  5023. "animationiteration": AnimationEvent;
  5024. "animationstart": AnimationEvent;
  5025. "auxclick": MouseEvent;
  5026. "beforeinput": InputEvent;
  5027. "blur": FocusEvent;
  5028. "canplay": Event;
  5029. "canplaythrough": Event;
  5030. "change": Event;
  5031. "click": MouseEvent;
  5032. "close": Event;
  5033. "compositionend": CompositionEvent;
  5034. "compositionstart": CompositionEvent;
  5035. "compositionupdate": CompositionEvent;
  5036. "contextmenu": MouseEvent;
  5037. "cuechange": Event;
  5038. "dblclick": MouseEvent;
  5039. "drag": DragEvent;
  5040. "dragend": DragEvent;
  5041. "dragenter": DragEvent;
  5042. "dragleave": DragEvent;
  5043. "dragover": DragEvent;
  5044. "dragstart": DragEvent;
  5045. "drop": DragEvent;
  5046. "durationchange": Event;
  5047. "emptied": Event;
  5048. "ended": Event;
  5049. "error": ErrorEvent;
  5050. "focus": FocusEvent;
  5051. "focusin": FocusEvent;
  5052. "focusout": FocusEvent;
  5053. "formdata": FormDataEvent;
  5054. "gotpointercapture": PointerEvent;
  5055. "input": Event;
  5056. "invalid": Event;
  5057. "keydown": KeyboardEvent;
  5058. "keypress": KeyboardEvent;
  5059. "keyup": KeyboardEvent;
  5060. "load": Event;
  5061. "loadeddata": Event;
  5062. "loadedmetadata": Event;
  5063. "loadstart": Event;
  5064. "lostpointercapture": PointerEvent;
  5065. "mousedown": MouseEvent;
  5066. "mouseenter": MouseEvent;
  5067. "mouseleave": MouseEvent;
  5068. "mousemove": MouseEvent;
  5069. "mouseout": MouseEvent;
  5070. "mouseover": MouseEvent;
  5071. "mouseup": MouseEvent;
  5072. "pause": Event;
  5073. "play": Event;
  5074. "playing": Event;
  5075. "pointercancel": PointerEvent;
  5076. "pointerdown": PointerEvent;
  5077. "pointerenter": PointerEvent;
  5078. "pointerleave": PointerEvent;
  5079. "pointermove": PointerEvent;
  5080. "pointerout": PointerEvent;
  5081. "pointerover": PointerEvent;
  5082. "pointerup": PointerEvent;
  5083. "progress": ProgressEvent;
  5084. "ratechange": Event;
  5085. "reset": Event;
  5086. "resize": UIEvent;
  5087. "scroll": Event;
  5088. "securitypolicyviolation": SecurityPolicyViolationEvent;
  5089. "seeked": Event;
  5090. "seeking": Event;
  5091. "select": Event;
  5092. "selectionchange": Event;
  5093. "selectstart": Event;
  5094. "stalled": Event;
  5095. "submit": SubmitEvent;
  5096. "suspend": Event;
  5097. "timeupdate": Event;
  5098. "toggle": Event;
  5099. "touchcancel": TouchEvent;
  5100. "touchend": TouchEvent;
  5101. "touchmove": TouchEvent;
  5102. "touchstart": TouchEvent;
  5103. "transitioncancel": TransitionEvent;
  5104. "transitionend": TransitionEvent;
  5105. "transitionrun": TransitionEvent;
  5106. "transitionstart": TransitionEvent;
  5107. "volumechange": Event;
  5108. "waiting": Event;
  5109. "webkitanimationend": Event;
  5110. "webkitanimationiteration": Event;
  5111. "webkitanimationstart": Event;
  5112. "webkittransitionend": Event;
  5113. "wheel": WheelEvent;
  5114. }
  5115. interface GlobalEventHandlers {
  5116. /**
  5117. * Fires when the user aborts the download.
  5118. * @param ev The event.
  5119. */
  5120. onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
  5121. onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
  5122. onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
  5123. onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
  5124. onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
  5125. onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
  5126. /**
  5127. * Fires when the object loses the input focus.
  5128. * @param ev The focus event.
  5129. */
  5130. onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
  5131. /**
  5132. * Occurs when playback is possible, but would require further buffering.
  5133. * @param ev The event.
  5134. */
  5135. oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5136. oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5137. /**
  5138. * Fires when the contents of the object or selection have changed.
  5139. * @param ev The event.
  5140. */
  5141. onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5142. /**
  5143. * Fires when the user clicks the left mouse button on the object
  5144. * @param ev The mouse event.
  5145. */
  5146. onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
  5147. onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5148. /**
  5149. * Fires when the user clicks the right mouse button in the client area, opening the context menu.
  5150. * @param ev The mouse event.
  5151. */
  5152. oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
  5153. oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5154. /**
  5155. * Fires when the user double-clicks the object.
  5156. * @param ev The mouse event.
  5157. */
  5158. ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
  5159. /**
  5160. * Fires on the source object continuously during a drag operation.
  5161. * @param ev The event.
  5162. */
  5163. ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
  5164. /**
  5165. * Fires on the source object when the user releases the mouse at the close of a drag operation.
  5166. * @param ev The event.
  5167. */
  5168. ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
  5169. /**
  5170. * Fires on the target element when the user drags the object to a valid drop target.
  5171. * @param ev The drag event.
  5172. */
  5173. ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
  5174. /**
  5175. * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
  5176. * @param ev The drag event.
  5177. */
  5178. ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
  5179. /**
  5180. * Fires on the target element continuously while the user drags the object over a valid drop target.
  5181. * @param ev The event.
  5182. */
  5183. ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
  5184. /**
  5185. * Fires on the source object when the user starts to drag a text selection or selected object.
  5186. * @param ev The event.
  5187. */
  5188. ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
  5189. ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
  5190. /**
  5191. * Occurs when the duration attribute is updated.
  5192. * @param ev The event.
  5193. */
  5194. ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5195. /**
  5196. * Occurs when the media element is reset to its initial state.
  5197. * @param ev The event.
  5198. */
  5199. onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5200. /**
  5201. * Occurs when the end of playback is reached.
  5202. * @param ev The event
  5203. */
  5204. onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5205. /**
  5206. * Fires when an error occurs during object loading.
  5207. * @param ev The event.
  5208. */
  5209. onerror: OnErrorEventHandler;
  5210. /**
  5211. * Fires when the object receives focus.
  5212. * @param ev The event.
  5213. */
  5214. onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
  5215. onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
  5216. ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
  5217. oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5218. oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5219. /**
  5220. * Fires when the user presses a key.
  5221. * @param ev The keyboard event
  5222. */
  5223. onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
  5224. /**
  5225. * Fires when the user presses an alphanumeric key.
  5226. * @param ev The event.
  5227. * @deprecated
  5228. */
  5229. onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
  5230. /**
  5231. * Fires when the user releases a key.
  5232. * @param ev The keyboard event
  5233. */
  5234. onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
  5235. /**
  5236. * Fires immediately after the browser loads the object.
  5237. * @param ev The event.
  5238. */
  5239. onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5240. /**
  5241. * Occurs when media data is loaded at the current playback position.
  5242. * @param ev The event.
  5243. */
  5244. onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5245. /**
  5246. * Occurs when the duration and dimensions of the media have been determined.
  5247. * @param ev The event.
  5248. */
  5249. onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5250. /**
  5251. * Occurs when Internet Explorer begins looking for media data.
  5252. * @param ev The event.
  5253. */
  5254. onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5255. onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
  5256. /**
  5257. * Fires when the user clicks the object with either mouse button.
  5258. * @param ev The mouse event.
  5259. */
  5260. onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
  5261. onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
  5262. onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
  5263. /**
  5264. * Fires when the user moves the mouse over the object.
  5265. * @param ev The mouse event.
  5266. */
  5267. onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
  5268. /**
  5269. * Fires when the user moves the mouse pointer outside the boundaries of the object.
  5270. * @param ev The mouse event.
  5271. */
  5272. onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
  5273. /**
  5274. * Fires when the user moves the mouse pointer into the object.
  5275. * @param ev The mouse event.
  5276. */
  5277. onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
  5278. /**
  5279. * Fires when the user releases a mouse button while the mouse is over the object.
  5280. * @param ev The mouse event.
  5281. */
  5282. onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
  5283. /**
  5284. * Occurs when playback is paused.
  5285. * @param ev The event.
  5286. */
  5287. onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5288. /**
  5289. * Occurs when the play method is requested.
  5290. * @param ev The event.
  5291. */
  5292. onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5293. /**
  5294. * Occurs when the audio or video has started playing.
  5295. * @param ev The event.
  5296. */
  5297. onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5298. onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
  5299. onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
  5300. onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
  5301. onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
  5302. onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
  5303. onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
  5304. onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
  5305. onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
  5306. /**
  5307. * Occurs to indicate progress while downloading media data.
  5308. * @param ev The event.
  5309. */
  5310. onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
  5311. /**
  5312. * Occurs when the playback rate is increased or decreased.
  5313. * @param ev The event.
  5314. */
  5315. onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5316. /**
  5317. * Fires when the user resets a form.
  5318. * @param ev The event.
  5319. */
  5320. onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5321. onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
  5322. /**
  5323. * Fires when the user repositions the scroll box in the scroll bar on the object.
  5324. * @param ev The event.
  5325. */
  5326. onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5327. /**
  5328. * Occurs when the seek operation ends.
  5329. * @param ev The event.
  5330. */
  5331. onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5332. /**
  5333. * Occurs when the current playback position is moved.
  5334. * @param ev The event.
  5335. */
  5336. onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5337. /**
  5338. * Fires when the current selection changes.
  5339. * @param ev The event.
  5340. */
  5341. onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5342. onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5343. onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5344. /**
  5345. * Occurs when the download has stopped.
  5346. * @param ev The event.
  5347. */
  5348. onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5349. onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
  5350. /**
  5351. * Occurs if the load operation has been intentionally halted.
  5352. * @param ev The event.
  5353. */
  5354. onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5355. /**
  5356. * Occurs to indicate the current playback position.
  5357. * @param ev The event.
  5358. */
  5359. ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5360. ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5361. ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
  5362. ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
  5363. ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
  5364. ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
  5365. ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
  5366. ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
  5367. ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
  5368. ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
  5369. /**
  5370. * Occurs when the volume is changed, or playback is muted or unmuted.
  5371. * @param ev The event.
  5372. */
  5373. onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5374. /**
  5375. * Occurs when playback stops because the next frame of a video resource is not available.
  5376. * @param ev The event.
  5377. */
  5378. onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5379. /** @deprecated This is a legacy alias of \`onanimationend\`. */
  5380. onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5381. /** @deprecated This is a legacy alias of \`onanimationiteration\`. */
  5382. onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5383. /** @deprecated This is a legacy alias of \`onanimationstart\`. */
  5384. onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5385. /** @deprecated This is a legacy alias of \`ontransitionend\`. */
  5386. onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  5387. onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
  5388. addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5389. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5390. removeEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5391. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5392. }
  5393. interface HTMLAllCollection {
  5394. /** Returns the number of elements in the collection. */
  5395. readonly length: number;
  5396. /** Returns the item with index index from the collection (determined by tree order). */
  5397. item(nameOrIndex?: string): HTMLCollection | Element | null;
  5398. /**
  5399. * Returns the item with ID or name name from the collection.
  5400. *
  5401. * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.
  5402. *
  5403. * 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.
  5404. */
  5405. namedItem(name: string): HTMLCollection | Element | null;
  5406. [index: number]: Element;
  5407. }
  5408. declare var HTMLAllCollection: {
  5409. prototype: HTMLAllCollection;
  5410. new(): HTMLAllCollection;
  5411. };
  5412. /** 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. */
  5413. interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
  5414. /**
  5415. * Sets or retrieves the character set used to encode the object.
  5416. * @deprecated
  5417. */
  5418. charset: string;
  5419. /**
  5420. * Sets or retrieves the coordinates of the object.
  5421. * @deprecated
  5422. */
  5423. coords: string;
  5424. download: string;
  5425. /** Sets or retrieves the language code of the object. */
  5426. hreflang: string;
  5427. /**
  5428. * Sets or retrieves the shape of the object.
  5429. * @deprecated
  5430. */
  5431. name: string;
  5432. ping: string;
  5433. referrerPolicy: string;
  5434. /** Sets or retrieves the relationship between the object and the destination of the link. */
  5435. rel: string;
  5436. readonly relList: DOMTokenList;
  5437. /**
  5438. * Sets or retrieves the relationship between the object and the destination of the link.
  5439. * @deprecated
  5440. */
  5441. rev: string;
  5442. /**
  5443. * Sets or retrieves the shape of the object.
  5444. * @deprecated
  5445. */
  5446. shape: string;
  5447. /** Sets or retrieves the window or frame at which to target content. */
  5448. target: string;
  5449. /** Retrieves or sets the text of the object as a string. */
  5450. text: string;
  5451. type: string;
  5452. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5453. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5454. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5455. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5456. }
  5457. declare var HTMLAnchorElement: {
  5458. prototype: HTMLAnchorElement;
  5459. new(): HTMLAnchorElement;
  5460. };
  5461. /** 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. */
  5462. interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
  5463. /** Sets or retrieves a text alternative to the graphic. */
  5464. alt: string;
  5465. /** Sets or retrieves the coordinates of the object. */
  5466. coords: string;
  5467. download: string;
  5468. /**
  5469. * Sets or gets whether clicks in this region cause action.
  5470. * @deprecated
  5471. */
  5472. noHref: boolean;
  5473. ping: string;
  5474. referrerPolicy: string;
  5475. rel: string;
  5476. readonly relList: DOMTokenList;
  5477. /** Sets or retrieves the shape of the object. */
  5478. shape: string;
  5479. /** Sets or retrieves the window or frame at which to target content. */
  5480. target: string;
  5481. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5482. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5483. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5484. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5485. }
  5486. declare var HTMLAreaElement: {
  5487. prototype: HTMLAreaElement;
  5488. new(): HTMLAreaElement;
  5489. };
  5490. /** Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface. */
  5491. interface HTMLAudioElement extends HTMLMediaElement {
  5492. addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5493. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5494. removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5495. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5496. }
  5497. declare var HTMLAudioElement: {
  5498. prototype: HTMLAudioElement;
  5499. new(): HTMLAudioElement;
  5500. };
  5501. /** A HTML line break element (<br>). It inherits from HTMLElement. */
  5502. interface HTMLBRElement extends HTMLElement {
  5503. /**
  5504. * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.
  5505. * @deprecated
  5506. */
  5507. clear: string;
  5508. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5509. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5510. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5511. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5512. }
  5513. declare var HTMLBRElement: {
  5514. prototype: HTMLBRElement;
  5515. new(): HTMLBRElement;
  5516. };
  5517. /** Contains the base URI for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. */
  5518. interface HTMLBaseElement extends HTMLElement {
  5519. /** Gets or sets the baseline URL on which relative links are based. */
  5520. href: string;
  5521. /** Sets or retrieves the window or frame at which to target content. */
  5522. target: string;
  5523. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5524. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5525. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5526. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5527. }
  5528. declare var HTMLBaseElement: {
  5529. prototype: HTMLBaseElement;
  5530. new(): HTMLBaseElement;
  5531. };
  5532. interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
  5533. "orientationchange": Event;
  5534. }
  5535. /** Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. */
  5536. interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
  5537. /** @deprecated */
  5538. aLink: string;
  5539. /** @deprecated */
  5540. background: string;
  5541. /** @deprecated */
  5542. bgColor: string;
  5543. /** @deprecated */
  5544. link: string;
  5545. /** @deprecated */
  5546. onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null;
  5547. /** @deprecated */
  5548. text: string;
  5549. /** @deprecated */
  5550. vLink: string;
  5551. addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5552. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5553. removeEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5554. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5555. }
  5556. declare var HTMLBodyElement: {
  5557. prototype: HTMLBodyElement;
  5558. new(): HTMLBodyElement;
  5559. };
  5560. /** Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements. */
  5561. interface HTMLButtonElement extends HTMLElement {
  5562. disabled: boolean;
  5563. /** Retrieves a reference to the form that the object is embedded in. */
  5564. readonly form: HTMLFormElement | null;
  5565. /** Overrides the action attribute (where the data on a form is sent) on the parent form element. */
  5566. formAction: string;
  5567. /** Used to override the encoding (formEnctype attribute) specified on the form element. */
  5568. formEnctype: string;
  5569. /** Overrides the submit method attribute previously specified on a form element. */
  5570. formMethod: string;
  5571. /** 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. */
  5572. formNoValidate: boolean;
  5573. /** Overrides the target attribute on a form element. */
  5574. formTarget: string;
  5575. readonly labels: NodeListOf<HTMLLabelElement>;
  5576. /** Sets or retrieves the name of the object. */
  5577. name: string;
  5578. /** Gets the classification and default behavior of the button. */
  5579. type: string;
  5580. /** 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. */
  5581. readonly validationMessage: string;
  5582. /** Returns a ValidityState object that represents the validity states of an element. */
  5583. readonly validity: ValidityState;
  5584. /** Sets or retrieves the default or selected value of the control. */
  5585. value: string;
  5586. /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
  5587. readonly willValidate: boolean;
  5588. /** Returns whether a form will validate when it is submitted, without having to submit it. */
  5589. checkValidity(): boolean;
  5590. reportValidity(): boolean;
  5591. /**
  5592. * Sets a custom error message that is displayed when a form is submitted.
  5593. * @param error Sets a custom error message that is displayed when a form is submitted.
  5594. */
  5595. setCustomValidity(error: string): void;
  5596. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5597. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5598. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5599. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5600. }
  5601. declare var HTMLButtonElement: {
  5602. prototype: HTMLButtonElement;
  5603. new(): HTMLButtonElement;
  5604. };
  5605. /** 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. */
  5606. interface HTMLCanvasElement extends HTMLElement {
  5607. /** Gets or sets the height of a canvas element on a document. */
  5608. height: number;
  5609. /** Gets or sets the width of a canvas element on a document. */
  5610. width: number;
  5611. captureStream(frameRequestRate?: number): MediaStream;
  5612. /**
  5613. * 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.
  5614. * @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");
  5615. */
  5616. getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
  5617. getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;
  5618. getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;
  5619. getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;
  5620. getContext(contextId: string, options?: any): RenderingContext | null;
  5621. toBlob(callback: BlobCallback, type?: string, quality?: any): void;
  5622. /**
  5623. * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
  5624. * @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.
  5625. */
  5626. toDataURL(type?: string, quality?: any): string;
  5627. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5628. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5629. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5630. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5631. }
  5632. declare var HTMLCanvasElement: {
  5633. prototype: HTMLCanvasElement;
  5634. new(): HTMLCanvasElement;
  5635. };
  5636. /** A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. */
  5637. interface HTMLCollectionBase {
  5638. /** Sets or retrieves the number of objects in a collection. */
  5639. readonly length: number;
  5640. /** Retrieves an object from various collections. */
  5641. item(index: number): Element | null;
  5642. [index: number]: Element;
  5643. }
  5644. interface HTMLCollection extends HTMLCollectionBase {
  5645. /** Retrieves a select object or an object from an options collection. */
  5646. namedItem(name: string): Element | null;
  5647. }
  5648. declare var HTMLCollection: {
  5649. prototype: HTMLCollection;
  5650. new(): HTMLCollection;
  5651. };
  5652. interface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {
  5653. item(index: number): T | null;
  5654. namedItem(name: string): T | null;
  5655. [index: number]: T;
  5656. }
  5657. /** Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. */
  5658. interface HTMLDListElement extends HTMLElement {
  5659. /** @deprecated */
  5660. compact: boolean;
  5661. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5662. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5663. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5664. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5665. }
  5666. declare var HTMLDListElement: {
  5667. prototype: HTMLDListElement;
  5668. new(): HTMLDListElement;
  5669. };
  5670. /** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements. */
  5671. interface HTMLDataElement extends HTMLElement {
  5672. value: string;
  5673. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5674. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5675. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5676. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5677. }
  5678. declare var HTMLDataElement: {
  5679. prototype: HTMLDataElement;
  5680. new(): HTMLDataElement;
  5681. };
  5682. /** Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content. */
  5683. interface HTMLDataListElement extends HTMLElement {
  5684. /** Returns an HTMLCollection of the option elements of the datalist element. */
  5685. readonly options: HTMLCollectionOf<HTMLOptionElement>;
  5686. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5687. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5688. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5689. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5690. }
  5691. declare var HTMLDataListElement: {
  5692. prototype: HTMLDataListElement;
  5693. new(): HTMLDataListElement;
  5694. };
  5695. interface HTMLDetailsElement extends HTMLElement {
  5696. open: boolean;
  5697. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5698. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5699. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5700. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5701. }
  5702. declare var HTMLDetailsElement: {
  5703. prototype: HTMLDetailsElement;
  5704. new(): HTMLDetailsElement;
  5705. };
  5706. /** @deprecated this is not available in most browsers */
  5707. interface HTMLDialogElement extends HTMLElement {
  5708. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5709. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5710. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5711. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5712. }
  5713. /** @deprecated */
  5714. interface HTMLDirectoryElement extends HTMLElement {
  5715. /** @deprecated */
  5716. compact: boolean;
  5717. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5718. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5719. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5720. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5721. }
  5722. /** @deprecated */
  5723. declare var HTMLDirectoryElement: {
  5724. prototype: HTMLDirectoryElement;
  5725. new(): HTMLDirectoryElement;
  5726. };
  5727. /** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements. */
  5728. interface HTMLDivElement extends HTMLElement {
  5729. /**
  5730. * Sets or retrieves how the object is aligned with adjacent text.
  5731. * @deprecated
  5732. */
  5733. align: string;
  5734. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5735. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5736. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5737. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5738. }
  5739. declare var HTMLDivElement: {
  5740. prototype: HTMLDivElement;
  5741. new(): HTMLDivElement;
  5742. };
  5743. /** @deprecated use Document */
  5744. interface HTMLDocument extends Document {
  5745. addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5746. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5747. removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5748. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5749. }
  5750. /** @deprecated */
  5751. declare var HTMLDocument: {
  5752. prototype: HTMLDocument;
  5753. new(): HTMLDocument;
  5754. };
  5755. interface HTMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
  5756. }
  5757. /** Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. */
  5758. interface HTMLElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
  5759. accessKey: string;
  5760. readonly accessKeyLabel: string;
  5761. autocapitalize: string;
  5762. dir: string;
  5763. draggable: boolean;
  5764. hidden: boolean;
  5765. innerText: string;
  5766. lang: string;
  5767. readonly offsetHeight: number;
  5768. readonly offsetLeft: number;
  5769. readonly offsetParent: Element | null;
  5770. readonly offsetTop: number;
  5771. readonly offsetWidth: number;
  5772. outerText: string;
  5773. spellcheck: boolean;
  5774. title: string;
  5775. translate: boolean;
  5776. attachInternals(): ElementInternals;
  5777. click(): void;
  5778. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5779. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5780. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5781. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5782. }
  5783. declare var HTMLElement: {
  5784. prototype: HTMLElement;
  5785. new(): HTMLElement;
  5786. };
  5787. /** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements. */
  5788. interface HTMLEmbedElement extends HTMLElement {
  5789. /** @deprecated */
  5790. align: string;
  5791. /** Sets or retrieves the height of the object. */
  5792. height: string;
  5793. /**
  5794. * Sets or retrieves the name of the object.
  5795. * @deprecated
  5796. */
  5797. name: string;
  5798. /** Sets or retrieves a URL to be loaded by the object. */
  5799. src: string;
  5800. type: string;
  5801. /** Sets or retrieves the width of the object. */
  5802. width: string;
  5803. getSVGDocument(): Document | null;
  5804. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5805. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5806. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5807. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5808. }
  5809. declare var HTMLEmbedElement: {
  5810. prototype: HTMLEmbedElement;
  5811. new(): HTMLEmbedElement;
  5812. };
  5813. /** 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. */
  5814. interface HTMLFieldSetElement extends HTMLElement {
  5815. disabled: boolean;
  5816. /** Returns an HTMLCollection of the form controls in the element. */
  5817. readonly elements: HTMLCollection;
  5818. /** Retrieves a reference to the form that the object is embedded in. */
  5819. readonly form: HTMLFormElement | null;
  5820. name: string;
  5821. /** Returns the string "fieldset". */
  5822. readonly type: string;
  5823. /** 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. */
  5824. readonly validationMessage: string;
  5825. /** Returns a ValidityState object that represents the validity states of an element. */
  5826. readonly validity: ValidityState;
  5827. /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
  5828. readonly willValidate: boolean;
  5829. /** Returns whether a form will validate when it is submitted, without having to submit it. */
  5830. checkValidity(): boolean;
  5831. reportValidity(): boolean;
  5832. /**
  5833. * Sets a custom error message that is displayed when a form is submitted.
  5834. * @param error Sets a custom error message that is displayed when a form is submitted.
  5835. */
  5836. setCustomValidity(error: string): void;
  5837. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5838. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5839. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5840. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5841. }
  5842. declare var HTMLFieldSetElement: {
  5843. prototype: HTMLFieldSetElement;
  5844. new(): HTMLFieldSetElement;
  5845. };
  5846. /**
  5847. * 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.
  5848. * @deprecated
  5849. */
  5850. interface HTMLFontElement extends HTMLElement {
  5851. /** @deprecated */
  5852. color: string;
  5853. /**
  5854. * Sets or retrieves the current typeface family.
  5855. * @deprecated
  5856. */
  5857. face: string;
  5858. /** @deprecated */
  5859. size: string;
  5860. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5861. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5862. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5863. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5864. }
  5865. /** @deprecated */
  5866. declare var HTMLFontElement: {
  5867. prototype: HTMLFontElement;
  5868. new(): HTMLFontElement;
  5869. };
  5870. /** A collection of HTML form control elements. */
  5871. interface HTMLFormControlsCollection extends HTMLCollectionBase {
  5872. /**
  5873. * Returns the item with ID or name name from the collection.
  5874. *
  5875. * If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.
  5876. */
  5877. namedItem(name: string): RadioNodeList | Element | null;
  5878. }
  5879. declare var HTMLFormControlsCollection: {
  5880. prototype: HTMLFormControlsCollection;
  5881. new(): HTMLFormControlsCollection;
  5882. };
  5883. /** 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. */
  5884. interface HTMLFormElement extends HTMLElement {
  5885. /** Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. */
  5886. acceptCharset: string;
  5887. /** Sets or retrieves the URL to which the form content is sent for processing. */
  5888. action: string;
  5889. /** Specifies whether autocomplete is applied to an editable text field. */
  5890. autocomplete: string;
  5891. /** Retrieves a collection, in source order, of all controls in a given form. */
  5892. readonly elements: HTMLFormControlsCollection;
  5893. /** Sets or retrieves the MIME encoding for the form. */
  5894. encoding: string;
  5895. /** Sets or retrieves the encoding type for the form. */
  5896. enctype: string;
  5897. /** Sets or retrieves the number of objects in a collection. */
  5898. readonly length: number;
  5899. /** Sets or retrieves how to send the form data to the server. */
  5900. method: string;
  5901. /** Sets or retrieves the name of the object. */
  5902. name: string;
  5903. /** Designates a form that is not validated when submitted. */
  5904. noValidate: boolean;
  5905. /** Sets or retrieves the window or frame at which to target content. */
  5906. target: string;
  5907. /** Returns whether a form will validate when it is submitted, without having to submit it. */
  5908. checkValidity(): boolean;
  5909. reportValidity(): boolean;
  5910. requestSubmit(submitter?: HTMLElement | null): void;
  5911. /** Fires when the user resets a form. */
  5912. reset(): void;
  5913. /** Fires when a FORM is about to be submitted. */
  5914. submit(): void;
  5915. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5916. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5917. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5918. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5919. [index: number]: Element;
  5920. [name: string]: any;
  5921. }
  5922. declare var HTMLFormElement: {
  5923. prototype: HTMLFormElement;
  5924. new(): HTMLFormElement;
  5925. };
  5926. /** @deprecated */
  5927. interface HTMLFrameElement extends HTMLElement {
  5928. /**
  5929. * Retrieves the document object of the page or frame.
  5930. * @deprecated
  5931. */
  5932. readonly contentDocument: Document | null;
  5933. /**
  5934. * Retrieves the object of the specified.
  5935. * @deprecated
  5936. */
  5937. readonly contentWindow: WindowProxy | null;
  5938. /**
  5939. * Sets or retrieves whether to display a border for the frame.
  5940. * @deprecated
  5941. */
  5942. frameBorder: string;
  5943. /**
  5944. * Sets or retrieves a URI to a long description of the object.
  5945. * @deprecated
  5946. */
  5947. longDesc: string;
  5948. /**
  5949. * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
  5950. * @deprecated
  5951. */
  5952. marginHeight: string;
  5953. /**
  5954. * Sets or retrieves the left and right margin widths before displaying the text in a frame.
  5955. * @deprecated
  5956. */
  5957. marginWidth: string;
  5958. /**
  5959. * Sets or retrieves the frame name.
  5960. * @deprecated
  5961. */
  5962. name: string;
  5963. /**
  5964. * Sets or retrieves whether the user can resize the frame.
  5965. * @deprecated
  5966. */
  5967. noResize: boolean;
  5968. /**
  5969. * Sets or retrieves whether the frame can be scrolled.
  5970. * @deprecated
  5971. */
  5972. scrolling: string;
  5973. /**
  5974. * Sets or retrieves a URL to be loaded by the object.
  5975. * @deprecated
  5976. */
  5977. src: string;
  5978. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  5979. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  5980. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  5981. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  5982. }
  5983. /** @deprecated */
  5984. declare var HTMLFrameElement: {
  5985. prototype: HTMLFrameElement;
  5986. new(): HTMLFrameElement;
  5987. };
  5988. interface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
  5989. }
  5990. /**
  5991. * Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements.
  5992. * @deprecated
  5993. */
  5994. interface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {
  5995. /**
  5996. * Sets or retrieves the frame widths of the object.
  5997. * @deprecated
  5998. */
  5999. cols: string;
  6000. /**
  6001. * Sets or retrieves the frame heights of the object.
  6002. * @deprecated
  6003. */
  6004. rows: string;
  6005. addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6006. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6007. removeEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6008. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6009. }
  6010. /** @deprecated */
  6011. declare var HTMLFrameSetElement: {
  6012. prototype: HTMLFrameSetElement;
  6013. new(): HTMLFrameSetElement;
  6014. };
  6015. /** Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements. */
  6016. interface HTMLHRElement extends HTMLElement {
  6017. /**
  6018. * Sets or retrieves how the object is aligned with adjacent text.
  6019. * @deprecated
  6020. */
  6021. align: string;
  6022. /** @deprecated */
  6023. color: string;
  6024. /**
  6025. * Sets or retrieves whether the horizontal rule is drawn with 3-D shading.
  6026. * @deprecated
  6027. */
  6028. noShade: boolean;
  6029. /** @deprecated */
  6030. size: string;
  6031. /**
  6032. * Sets or retrieves the width of the object.
  6033. * @deprecated
  6034. */
  6035. width: string;
  6036. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6037. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6038. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6039. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6040. }
  6041. declare var HTMLHRElement: {
  6042. prototype: HTMLHRElement;
  6043. new(): HTMLHRElement;
  6044. };
  6045. /** Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface. */
  6046. interface HTMLHeadElement extends HTMLElement {
  6047. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6048. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6049. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6050. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6051. }
  6052. declare var HTMLHeadElement: {
  6053. prototype: HTMLHeadElement;
  6054. new(): HTMLHeadElement;
  6055. };
  6056. /** The different heading elements. It inherits methods and properties from the HTMLElement interface. */
  6057. interface HTMLHeadingElement extends HTMLElement {
  6058. /**
  6059. * Sets or retrieves a value that indicates the table alignment.
  6060. * @deprecated
  6061. */
  6062. align: string;
  6063. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6064. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6065. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6066. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6067. }
  6068. declare var HTMLHeadingElement: {
  6069. prototype: HTMLHeadingElement;
  6070. new(): HTMLHeadingElement;
  6071. };
  6072. /** Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface. */
  6073. interface HTMLHtmlElement extends HTMLElement {
  6074. /**
  6075. * Sets or retrieves the DTD version that governs the current document.
  6076. * @deprecated
  6077. */
  6078. version: string;
  6079. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6080. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6081. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6082. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6083. }
  6084. declare var HTMLHtmlElement: {
  6085. prototype: HTMLHtmlElement;
  6086. new(): HTMLHtmlElement;
  6087. };
  6088. interface HTMLHyperlinkElementUtils {
  6089. /**
  6090. * Returns the hyperlink's URL's fragment (includes leading "#" if non-empty).
  6091. *
  6092. * Can be set, to change the URL's fragment (ignores leading "#").
  6093. */
  6094. hash: string;
  6095. /**
  6096. * Returns the hyperlink's URL's host and port (if different from the default port for the scheme).
  6097. *
  6098. * Can be set, to change the URL's host and port.
  6099. */
  6100. host: string;
  6101. /**
  6102. * Returns the hyperlink's URL's host.
  6103. *
  6104. * Can be set, to change the URL's host.
  6105. */
  6106. hostname: string;
  6107. /**
  6108. * Returns the hyperlink's URL.
  6109. *
  6110. * Can be set, to change the URL.
  6111. */
  6112. href: string;
  6113. toString(): string;
  6114. /** Returns the hyperlink's URL's origin. */
  6115. readonly origin: string;
  6116. /**
  6117. * Returns the hyperlink's URL's password.
  6118. *
  6119. * Can be set, to change the URL's password.
  6120. */
  6121. password: string;
  6122. /**
  6123. * Returns the hyperlink's URL's path.
  6124. *
  6125. * Can be set, to change the URL's path.
  6126. */
  6127. pathname: string;
  6128. /**
  6129. * Returns the hyperlink's URL's port.
  6130. *
  6131. * Can be set, to change the URL's port.
  6132. */
  6133. port: string;
  6134. /**
  6135. * Returns the hyperlink's URL's scheme.
  6136. *
  6137. * Can be set, to change the URL's scheme.
  6138. */
  6139. protocol: string;
  6140. /**
  6141. * Returns the hyperlink's URL's query (includes leading "?" if non-empty).
  6142. *
  6143. * Can be set, to change the URL's query (ignores leading "?").
  6144. */
  6145. search: string;
  6146. /**
  6147. * Returns the hyperlink's URL's username.
  6148. *
  6149. * Can be set, to change the URL's username.
  6150. */
  6151. username: string;
  6152. }
  6153. /** 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. */
  6154. interface HTMLIFrameElement extends HTMLElement {
  6155. /**
  6156. * Sets or retrieves how the object is aligned with adjacent text.
  6157. * @deprecated
  6158. */
  6159. align: string;
  6160. allow: string;
  6161. allowFullscreen: boolean;
  6162. /** Retrieves the document object of the page or frame. */
  6163. readonly contentDocument: Document | null;
  6164. /** Retrieves the object of the specified. */
  6165. readonly contentWindow: WindowProxy | null;
  6166. /**
  6167. * Sets or retrieves whether to display a border for the frame.
  6168. * @deprecated
  6169. */
  6170. frameBorder: string;
  6171. /** Sets or retrieves the height of the object. */
  6172. height: string;
  6173. /**
  6174. * Sets or retrieves a URI to a long description of the object.
  6175. * @deprecated
  6176. */
  6177. longDesc: string;
  6178. /**
  6179. * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
  6180. * @deprecated
  6181. */
  6182. marginHeight: string;
  6183. /**
  6184. * Sets or retrieves the left and right margin widths before displaying the text in a frame.
  6185. * @deprecated
  6186. */
  6187. marginWidth: string;
  6188. /** Sets or retrieves the frame name. */
  6189. name: string;
  6190. referrerPolicy: ReferrerPolicy;
  6191. readonly sandbox: DOMTokenList;
  6192. /**
  6193. * Sets or retrieves whether the frame can be scrolled.
  6194. * @deprecated
  6195. */
  6196. scrolling: string;
  6197. /** Sets or retrieves a URL to be loaded by the object. */
  6198. src: string;
  6199. /** Sets or retrives the content of the page that is to contain. */
  6200. srcdoc: string;
  6201. /** Sets or retrieves the width of the object. */
  6202. width: string;
  6203. getSVGDocument(): Document | null;
  6204. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6205. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6206. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6207. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6208. }
  6209. declare var HTMLIFrameElement: {
  6210. prototype: HTMLIFrameElement;
  6211. new(): HTMLIFrameElement;
  6212. };
  6213. /** Provides special properties and methods for manipulating <img> elements. */
  6214. interface HTMLImageElement extends HTMLElement {
  6215. /**
  6216. * Sets or retrieves how the object is aligned with adjacent text.
  6217. * @deprecated
  6218. */
  6219. align: string;
  6220. /** Sets or retrieves a text alternative to the graphic. */
  6221. alt: string;
  6222. /**
  6223. * Specifies the properties of a border drawn around an object.
  6224. * @deprecated
  6225. */
  6226. border: string;
  6227. /** Retrieves whether the object is fully loaded. */
  6228. readonly complete: boolean;
  6229. crossOrigin: string | null;
  6230. readonly currentSrc: string;
  6231. decoding: "async" | "sync" | "auto";
  6232. /** Sets or retrieves the height of the object. */
  6233. height: number;
  6234. /**
  6235. * Sets or retrieves the width of the border to draw around the object.
  6236. * @deprecated
  6237. */
  6238. hspace: number;
  6239. /** Sets or retrieves whether the image is a server-side image map. */
  6240. isMap: boolean;
  6241. loading: string;
  6242. /**
  6243. * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
  6244. * @deprecated
  6245. */
  6246. longDesc: string;
  6247. /** @deprecated */
  6248. lowsrc: string;
  6249. /**
  6250. * Sets or retrieves the name of the object.
  6251. * @deprecated
  6252. */
  6253. name: string;
  6254. /** The original height of the image resource before sizing. */
  6255. readonly naturalHeight: number;
  6256. /** The original width of the image resource before sizing. */
  6257. readonly naturalWidth: number;
  6258. referrerPolicy: string;
  6259. sizes: string;
  6260. /** The address or URL of the a media resource that is to be considered. */
  6261. src: string;
  6262. srcset: string;
  6263. /** Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */
  6264. useMap: string;
  6265. /**
  6266. * Sets or retrieves the vertical margin for the object.
  6267. * @deprecated
  6268. */
  6269. vspace: number;
  6270. /** Sets or retrieves the width of the object. */
  6271. width: number;
  6272. readonly x: number;
  6273. readonly y: number;
  6274. decode(): Promise<void>;
  6275. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6276. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6277. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6278. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6279. }
  6280. declare var HTMLImageElement: {
  6281. prototype: HTMLImageElement;
  6282. new(): HTMLImageElement;
  6283. };
  6284. /** Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements. */
  6285. interface HTMLInputElement extends HTMLElement {
  6286. /** Sets or retrieves a comma-separated list of content types. */
  6287. accept: string;
  6288. /**
  6289. * Sets or retrieves how the object is aligned with adjacent text.
  6290. * @deprecated
  6291. */
  6292. align: string;
  6293. /** Sets or retrieves a text alternative to the graphic. */
  6294. alt: string;
  6295. /** Specifies whether autocomplete is applied to an editable text field. */
  6296. autocomplete: string;
  6297. capture: string;
  6298. /** Sets or retrieves the state of the check box or radio button. */
  6299. checked: boolean;
  6300. /** Sets or retrieves the state of the check box or radio button. */
  6301. defaultChecked: boolean;
  6302. /** Sets or retrieves the initial contents of the object. */
  6303. defaultValue: string;
  6304. dirName: string;
  6305. disabled: boolean;
  6306. /** Returns a FileList object on a file type input object. */
  6307. files: FileList | null;
  6308. /** Retrieves a reference to the form that the object is embedded in. */
  6309. readonly form: HTMLFormElement | null;
  6310. /** Overrides the action attribute (where the data on a form is sent) on the parent form element. */
  6311. formAction: string;
  6312. /** Used to override the encoding (formEnctype attribute) specified on the form element. */
  6313. formEnctype: string;
  6314. /** Overrides the submit method attribute previously specified on a form element. */
  6315. formMethod: string;
  6316. /** 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. */
  6317. formNoValidate: boolean;
  6318. /** Overrides the target attribute on a form element. */
  6319. formTarget: string;
  6320. /** Sets or retrieves the height of the object. */
  6321. height: number;
  6322. /** When set, overrides the rendering of checkbox controls so that the current value is not visible. */
  6323. indeterminate: boolean;
  6324. readonly labels: NodeListOf<HTMLLabelElement> | null;
  6325. /** Specifies the ID of a pre-defined datalist of options for an input element. */
  6326. readonly list: HTMLElement | null;
  6327. /** 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. */
  6328. max: string;
  6329. /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
  6330. maxLength: number;
  6331. /** 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. */
  6332. min: string;
  6333. minLength: number;
  6334. /** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */
  6335. multiple: boolean;
  6336. /** Sets or retrieves the name of the object. */
  6337. name: string;
  6338. /** Gets or sets a string containing a regular expression that the user's input must match. */
  6339. pattern: string;
  6340. /** 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. */
  6341. placeholder: string;
  6342. readOnly: boolean;
  6343. /** When present, marks an element that can't be submitted without a value. */
  6344. required: boolean;
  6345. selectionDirection: "forward" | "backward" | "none" | null;
  6346. /** Gets or sets the end position or offset of a text selection. */
  6347. selectionEnd: number | null;
  6348. /** Gets or sets the starting position or offset of a text selection. */
  6349. selectionStart: number | null;
  6350. size: number;
  6351. /** The address or URL of the a media resource that is to be considered. */
  6352. src: string;
  6353. /** 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. */
  6354. step: string;
  6355. /** Returns the content type of the object. */
  6356. type: string;
  6357. /**
  6358. * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
  6359. * @deprecated
  6360. */
  6361. useMap: string;
  6362. /** 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. */
  6363. readonly validationMessage: string;
  6364. /** Returns a ValidityState object that represents the validity states of an element. */
  6365. readonly validity: ValidityState;
  6366. /** Returns the value of the data at the cursor's current position. */
  6367. value: string;
  6368. /** 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. */
  6369. valueAsDate: Date | null;
  6370. /** Returns the input field value as a number. */
  6371. valueAsNumber: number;
  6372. readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
  6373. webkitdirectory: boolean;
  6374. /** Sets or retrieves the width of the object. */
  6375. width: number;
  6376. /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
  6377. readonly willValidate: boolean;
  6378. /** Returns whether a form will validate when it is submitted, without having to submit it. */
  6379. checkValidity(): boolean;
  6380. reportValidity(): boolean;
  6381. /** Makes the selection equal to the current object. */
  6382. select(): void;
  6383. /**
  6384. * Sets a custom error message that is displayed when a form is submitted.
  6385. * @param error Sets a custom error message that is displayed when a form is submitted.
  6386. */
  6387. setCustomValidity(error: string): void;
  6388. setRangeText(replacement: string): void;
  6389. setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
  6390. /**
  6391. * Sets the start and end positions of a selection in a text field.
  6392. * @param start The offset into the text field for the start of the selection.
  6393. * @param end The offset into the text field for the end of the selection.
  6394. * @param direction The direction in which the selection is performed.
  6395. */
  6396. setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
  6397. /**
  6398. * 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.
  6399. * @param n Value to decrement the value by.
  6400. */
  6401. stepDown(n?: number): void;
  6402. /**
  6403. * 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.
  6404. * @param n Value to increment the value by.
  6405. */
  6406. stepUp(n?: number): void;
  6407. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6408. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6409. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6410. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6411. }
  6412. declare var HTMLInputElement: {
  6413. prototype: HTMLInputElement;
  6414. new(): HTMLInputElement;
  6415. };
  6416. /** Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements. */
  6417. interface HTMLLIElement extends HTMLElement {
  6418. /** @deprecated */
  6419. type: string;
  6420. /** Sets or retrieves the value of a list item. */
  6421. value: number;
  6422. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6423. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6424. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6425. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6426. }
  6427. declare var HTMLLIElement: {
  6428. prototype: HTMLLIElement;
  6429. new(): HTMLLIElement;
  6430. };
  6431. /** Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface. */
  6432. interface HTMLLabelElement extends HTMLElement {
  6433. /** Returns the form control that is associated with this element. */
  6434. readonly control: HTMLElement | null;
  6435. /** Retrieves a reference to the form that the object is embedded in. */
  6436. readonly form: HTMLFormElement | null;
  6437. /** Sets or retrieves the object to which the given label object is assigned. */
  6438. htmlFor: string;
  6439. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6440. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6441. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6442. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6443. }
  6444. declare var HTMLLabelElement: {
  6445. prototype: HTMLLabelElement;
  6446. new(): HTMLLabelElement;
  6447. };
  6448. /** The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface. */
  6449. interface HTMLLegendElement extends HTMLElement {
  6450. /** @deprecated */
  6451. align: string;
  6452. /** Retrieves a reference to the form that the object is embedded in. */
  6453. readonly form: HTMLFormElement | null;
  6454. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6455. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6456. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6457. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6458. }
  6459. declare var HTMLLegendElement: {
  6460. prototype: HTMLLegendElement;
  6461. new(): HTMLLegendElement;
  6462. };
  6463. /** 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. */
  6464. interface HTMLLinkElement extends HTMLElement, LinkStyle {
  6465. as: string;
  6466. /**
  6467. * Sets or retrieves the character set used to encode the object.
  6468. * @deprecated
  6469. */
  6470. charset: string;
  6471. crossOrigin: string | null;
  6472. disabled: boolean;
  6473. /** Sets or retrieves a destination URL or an anchor point. */
  6474. href: string;
  6475. /** Sets or retrieves the language code of the object. */
  6476. hreflang: string;
  6477. imageSizes: string;
  6478. imageSrcset: string;
  6479. integrity: string;
  6480. /** Sets or retrieves the media type. */
  6481. media: string;
  6482. referrerPolicy: string;
  6483. /** Sets or retrieves the relationship between the object and the destination of the link. */
  6484. rel: string;
  6485. readonly relList: DOMTokenList;
  6486. /**
  6487. * Sets or retrieves the relationship between the object and the destination of the link.
  6488. * @deprecated
  6489. */
  6490. rev: string;
  6491. readonly sizes: DOMTokenList;
  6492. /**
  6493. * Sets or retrieves the window or frame at which to target content.
  6494. * @deprecated
  6495. */
  6496. target: string;
  6497. /** Sets or retrieves the MIME type of the object. */
  6498. type: string;
  6499. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6500. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6501. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6502. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6503. }
  6504. declare var HTMLLinkElement: {
  6505. prototype: HTMLLinkElement;
  6506. new(): HTMLLinkElement;
  6507. };
  6508. /** 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. */
  6509. interface HTMLMapElement extends HTMLElement {
  6510. /** Retrieves a collection of the area objects defined for the given map object. */
  6511. readonly areas: HTMLCollection;
  6512. /** Sets or retrieves the name of the object. */
  6513. name: string;
  6514. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6515. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6516. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6517. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6518. }
  6519. declare var HTMLMapElement: {
  6520. prototype: HTMLMapElement;
  6521. new(): HTMLMapElement;
  6522. };
  6523. /**
  6524. * Provides methods to manipulate <marquee> elements.
  6525. * @deprecated
  6526. */
  6527. interface HTMLMarqueeElement extends HTMLElement {
  6528. /** @deprecated */
  6529. behavior: string;
  6530. /** @deprecated */
  6531. bgColor: string;
  6532. /** @deprecated */
  6533. direction: string;
  6534. /** @deprecated */
  6535. height: string;
  6536. /** @deprecated */
  6537. hspace: number;
  6538. /** @deprecated */
  6539. loop: number;
  6540. /** @deprecated */
  6541. scrollAmount: number;
  6542. /** @deprecated */
  6543. scrollDelay: number;
  6544. /** @deprecated */
  6545. trueSpeed: boolean;
  6546. /** @deprecated */
  6547. vspace: number;
  6548. /** @deprecated */
  6549. width: string;
  6550. /** @deprecated */
  6551. start(): void;
  6552. /** @deprecated */
  6553. stop(): void;
  6554. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6555. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6556. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6557. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6558. }
  6559. /** @deprecated */
  6560. declare var HTMLMarqueeElement: {
  6561. prototype: HTMLMarqueeElement;
  6562. new(): HTMLMarqueeElement;
  6563. };
  6564. interface HTMLMediaElementEventMap extends HTMLElementEventMap {
  6565. "encrypted": MediaEncryptedEvent;
  6566. "waitingforkey": Event;
  6567. }
  6568. /** Adds to HTMLElement the properties and methods needed to support basic media-related capabilities that are common to audio and video. */
  6569. interface HTMLMediaElement extends HTMLElement {
  6570. /** Gets or sets a value that indicates whether to start playing the media automatically. */
  6571. autoplay: boolean;
  6572. /** Gets a collection of buffered time ranges. */
  6573. readonly buffered: TimeRanges;
  6574. /** 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). */
  6575. controls: boolean;
  6576. crossOrigin: string | null;
  6577. /** Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. */
  6578. readonly currentSrc: string;
  6579. /** Gets or sets the current playback position, in seconds. */
  6580. currentTime: number;
  6581. defaultMuted: boolean;
  6582. /** Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. */
  6583. defaultPlaybackRate: number;
  6584. disableRemotePlayback: boolean;
  6585. /** 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. */
  6586. readonly duration: number;
  6587. /** Gets information about whether the playback has ended or not. */
  6588. readonly ended: boolean;
  6589. /** Returns an object representing the current error state of the audio or video element. */
  6590. readonly error: MediaError | null;
  6591. /** Gets or sets a flag to specify whether playback should restart after it completes. */
  6592. loop: boolean;
  6593. /** Available only in secure contexts. */
  6594. readonly mediaKeys: MediaKeys | null;
  6595. /** Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. */
  6596. muted: boolean;
  6597. /** Gets the current network activity for the element. */
  6598. readonly networkState: number;
  6599. onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;
  6600. onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;
  6601. /** Gets a flag that specifies whether playback is paused. */
  6602. readonly paused: boolean;
  6603. /** 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. */
  6604. playbackRate: number;
  6605. /** Gets TimeRanges for the current media resource that has been played. */
  6606. readonly played: TimeRanges;
  6607. /** Gets or sets a value indicating what data should be preloaded, if any. */
  6608. preload: "none" | "metadata" | "auto" | "";
  6609. readonly readyState: number;
  6610. readonly remote: RemotePlayback;
  6611. /** Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. */
  6612. readonly seekable: TimeRanges;
  6613. /** Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource. */
  6614. readonly seeking: boolean;
  6615. /** The address or URL of the a media resource that is to be considered. */
  6616. src: string;
  6617. srcObject: MediaProvider | null;
  6618. readonly textTracks: TextTrackList;
  6619. /** Gets or sets the volume level for audio portions of the media element. */
  6620. volume: number;
  6621. addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;
  6622. /** Returns a string that specifies whether the client can play a given media resource type. */
  6623. canPlayType(type: string): CanPlayTypeResult;
  6624. fastSeek(time: number): void;
  6625. /** Resets the audio or video object and loads a new media resource. */
  6626. load(): void;
  6627. /** 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. */
  6628. pause(): void;
  6629. /** Loads and starts playback of a media resource. */
  6630. play(): Promise<void>;
  6631. /** Available only in secure contexts. */
  6632. setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;
  6633. readonly HAVE_CURRENT_DATA: number;
  6634. readonly HAVE_ENOUGH_DATA: number;
  6635. readonly HAVE_FUTURE_DATA: number;
  6636. readonly HAVE_METADATA: number;
  6637. readonly HAVE_NOTHING: number;
  6638. readonly NETWORK_EMPTY: number;
  6639. readonly NETWORK_IDLE: number;
  6640. readonly NETWORK_LOADING: number;
  6641. readonly NETWORK_NO_SOURCE: number;
  6642. addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6643. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6644. removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6645. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6646. }
  6647. declare var HTMLMediaElement: {
  6648. prototype: HTMLMediaElement;
  6649. new(): HTMLMediaElement;
  6650. readonly HAVE_CURRENT_DATA: number;
  6651. readonly HAVE_ENOUGH_DATA: number;
  6652. readonly HAVE_FUTURE_DATA: number;
  6653. readonly HAVE_METADATA: number;
  6654. readonly HAVE_NOTHING: number;
  6655. readonly NETWORK_EMPTY: number;
  6656. readonly NETWORK_IDLE: number;
  6657. readonly NETWORK_LOADING: number;
  6658. readonly NETWORK_NO_SOURCE: number;
  6659. };
  6660. interface HTMLMenuElement extends HTMLElement {
  6661. /** @deprecated */
  6662. compact: boolean;
  6663. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6664. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6665. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6666. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6667. }
  6668. declare var HTMLMenuElement: {
  6669. prototype: HTMLMenuElement;
  6670. new(): HTMLMenuElement;
  6671. };
  6672. /** Contains descriptive metadata about a document. It inherits all of the properties and methods described in the HTMLElement interface. */
  6673. interface HTMLMetaElement extends HTMLElement {
  6674. /** Gets or sets meta-information to associate with httpEquiv or name. */
  6675. content: string;
  6676. /** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */
  6677. httpEquiv: string;
  6678. /** Sets or retrieves the value specified in the content attribute of the meta object. */
  6679. name: string;
  6680. /**
  6681. * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
  6682. * @deprecated
  6683. */
  6684. scheme: string;
  6685. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6686. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6687. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6688. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6689. }
  6690. declare var HTMLMetaElement: {
  6691. prototype: HTMLMetaElement;
  6692. new(): HTMLMetaElement;
  6693. };
  6694. /** 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. */
  6695. interface HTMLMeterElement extends HTMLElement {
  6696. high: number;
  6697. readonly labels: NodeListOf<HTMLLabelElement>;
  6698. low: number;
  6699. max: number;
  6700. min: number;
  6701. optimum: number;
  6702. value: number;
  6703. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6704. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6705. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6706. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6707. }
  6708. declare var HTMLMeterElement: {
  6709. prototype: HTMLMeterElement;
  6710. new(): HTMLMeterElement;
  6711. };
  6712. /** 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>. */
  6713. interface HTMLModElement extends HTMLElement {
  6714. /** Sets or retrieves reference information about the object. */
  6715. cite: string;
  6716. /** Sets or retrieves the date and time of a modification to the object. */
  6717. dateTime: string;
  6718. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6719. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6720. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6721. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6722. }
  6723. declare var HTMLModElement: {
  6724. prototype: HTMLModElement;
  6725. new(): HTMLModElement;
  6726. };
  6727. /** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements. */
  6728. interface HTMLOListElement extends HTMLElement {
  6729. /** @deprecated */
  6730. compact: boolean;
  6731. reversed: boolean;
  6732. /** The starting number. */
  6733. start: number;
  6734. type: string;
  6735. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6736. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6737. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6738. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6739. }
  6740. declare var HTMLOListElement: {
  6741. prototype: HTMLOListElement;
  6742. new(): HTMLOListElement;
  6743. };
  6744. /** 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. */
  6745. interface HTMLObjectElement extends HTMLElement {
  6746. /** @deprecated */
  6747. align: string;
  6748. /**
  6749. * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
  6750. * @deprecated
  6751. */
  6752. archive: string;
  6753. /** @deprecated */
  6754. border: string;
  6755. /**
  6756. * Sets or retrieves the URL of the file containing the compiled Java class.
  6757. * @deprecated
  6758. */
  6759. code: string;
  6760. /**
  6761. * Sets or retrieves the URL of the component.
  6762. * @deprecated
  6763. */
  6764. codeBase: string;
  6765. /**
  6766. * Sets or retrieves the Internet media type for the code associated with the object.
  6767. * @deprecated
  6768. */
  6769. codeType: string;
  6770. /** Retrieves the document object of the page or frame. */
  6771. readonly contentDocument: Document | null;
  6772. readonly contentWindow: WindowProxy | null;
  6773. /** Sets or retrieves the URL that references the data of the object. */
  6774. data: string;
  6775. /** @deprecated */
  6776. declare: boolean;
  6777. /** Retrieves a reference to the form that the object is embedded in. */
  6778. readonly form: HTMLFormElement | null;
  6779. /** Sets or retrieves the height of the object. */
  6780. height: string;
  6781. /** @deprecated */
  6782. hspace: number;
  6783. /** Sets or retrieves the name of the object. */
  6784. name: string;
  6785. /**
  6786. * Sets or retrieves a message to be displayed while an object is loading.
  6787. * @deprecated
  6788. */
  6789. standby: string;
  6790. /** Sets or retrieves the MIME type of the object. */
  6791. type: string;
  6792. /** Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */
  6793. useMap: string;
  6794. /** 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. */
  6795. readonly validationMessage: string;
  6796. /** Returns a ValidityState object that represents the validity states of an element. */
  6797. readonly validity: ValidityState;
  6798. /** @deprecated */
  6799. vspace: number;
  6800. /** Sets or retrieves the width of the object. */
  6801. width: string;
  6802. /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
  6803. readonly willValidate: boolean;
  6804. /** Returns whether a form will validate when it is submitted, without having to submit it. */
  6805. checkValidity(): boolean;
  6806. getSVGDocument(): Document | null;
  6807. reportValidity(): boolean;
  6808. /**
  6809. * Sets a custom error message that is displayed when a form is submitted.
  6810. * @param error Sets a custom error message that is displayed when a form is submitted.
  6811. */
  6812. setCustomValidity(error: string): void;
  6813. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6814. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6815. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6816. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6817. }
  6818. declare var HTMLObjectElement: {
  6819. prototype: HTMLObjectElement;
  6820. new(): HTMLObjectElement;
  6821. };
  6822. /** 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. */
  6823. interface HTMLOptGroupElement extends HTMLElement {
  6824. disabled: boolean;
  6825. /** Sets or retrieves a value that you can use to implement your own label functionality for the object. */
  6826. label: string;
  6827. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6828. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6829. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6830. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6831. }
  6832. declare var HTMLOptGroupElement: {
  6833. prototype: HTMLOptGroupElement;
  6834. new(): HTMLOptGroupElement;
  6835. };
  6836. /** <option> elements and inherits all classes and methods of the HTMLElement interface. */
  6837. interface HTMLOptionElement extends HTMLElement {
  6838. /** Sets or retrieves the status of an option. */
  6839. defaultSelected: boolean;
  6840. disabled: boolean;
  6841. /** Retrieves a reference to the form that the object is embedded in. */
  6842. readonly form: HTMLFormElement | null;
  6843. /** Sets or retrieves the ordinal position of an option in a list box. */
  6844. readonly index: number;
  6845. /** Sets or retrieves a value that you can use to implement your own label functionality for the object. */
  6846. label: string;
  6847. /** Sets or retrieves whether the option in the list box is the default item. */
  6848. selected: boolean;
  6849. /** Sets or retrieves the text string specified by the option tag. */
  6850. text: string;
  6851. /** Sets or retrieves the value which is returned to the server when the form control is submitted. */
  6852. value: string;
  6853. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6854. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6855. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6856. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6857. }
  6858. declare var HTMLOptionElement: {
  6859. prototype: HTMLOptionElement;
  6860. new(): HTMLOptionElement;
  6861. };
  6862. /** 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. */
  6863. interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
  6864. /**
  6865. * Returns the number of elements in the collection.
  6866. *
  6867. * When set to a smaller number, truncates the number of option elements in the corresponding container.
  6868. *
  6869. * When set to a greater number, adds new blank option elements to that container.
  6870. */
  6871. length: number;
  6872. /**
  6873. * Returns the index of the first selected item, if any, or −1 if there is no selected item.
  6874. *
  6875. * Can be set, to change the selection.
  6876. */
  6877. selectedIndex: number;
  6878. /**
  6879. * Inserts element before the node given by before.
  6880. *
  6881. * 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.
  6882. *
  6883. * If before is omitted, null, or a number out of range, then element will be added at the end of the list.
  6884. *
  6885. * This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted.
  6886. */
  6887. add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
  6888. /** Removes the item with index index from the collection. */
  6889. remove(index: number): void;
  6890. }
  6891. declare var HTMLOptionsCollection: {
  6892. prototype: HTMLOptionsCollection;
  6893. new(): HTMLOptionsCollection;
  6894. };
  6895. interface HTMLOrSVGElement {
  6896. autofocus: boolean;
  6897. readonly dataset: DOMStringMap;
  6898. nonce?: string;
  6899. tabIndex: number;
  6900. blur(): void;
  6901. focus(options?: FocusOptions): void;
  6902. }
  6903. /** Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements. */
  6904. interface HTMLOutputElement extends HTMLElement {
  6905. defaultValue: string;
  6906. readonly form: HTMLFormElement | null;
  6907. readonly htmlFor: DOMTokenList;
  6908. readonly labels: NodeListOf<HTMLLabelElement>;
  6909. name: string;
  6910. /** Returns the string "output". */
  6911. readonly type: string;
  6912. readonly validationMessage: string;
  6913. readonly validity: ValidityState;
  6914. /**
  6915. * Returns the element's current value.
  6916. *
  6917. * Can be set, to change the value.
  6918. */
  6919. value: string;
  6920. readonly willValidate: boolean;
  6921. checkValidity(): boolean;
  6922. reportValidity(): boolean;
  6923. setCustomValidity(error: string): void;
  6924. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6925. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6926. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6927. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6928. }
  6929. declare var HTMLOutputElement: {
  6930. prototype: HTMLOutputElement;
  6931. new(): HTMLOutputElement;
  6932. };
  6933. /** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. */
  6934. interface HTMLParagraphElement extends HTMLElement {
  6935. /**
  6936. * Sets or retrieves how the object is aligned with adjacent text.
  6937. * @deprecated
  6938. */
  6939. align: string;
  6940. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6941. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6942. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6943. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6944. }
  6945. declare var HTMLParagraphElement: {
  6946. prototype: HTMLParagraphElement;
  6947. new(): HTMLParagraphElement;
  6948. };
  6949. /** 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. */
  6950. interface HTMLParamElement extends HTMLElement {
  6951. /** Sets or retrieves the name of an input parameter for an element. */
  6952. name: string;
  6953. /**
  6954. * Sets or retrieves the content type of the resource designated by the value attribute.
  6955. * @deprecated
  6956. */
  6957. type: string;
  6958. /** Sets or retrieves the value of an input parameter for an element. */
  6959. value: string;
  6960. /**
  6961. * Sets or retrieves the data type of the value attribute.
  6962. * @deprecated
  6963. */
  6964. valueType: string;
  6965. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6966. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6967. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6968. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6969. }
  6970. declare var HTMLParamElement: {
  6971. prototype: HTMLParamElement;
  6972. new(): HTMLParamElement;
  6973. };
  6974. /** A <picture> HTML element. It doesn't implement specific properties or methods. */
  6975. interface HTMLPictureElement extends HTMLElement {
  6976. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6977. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6978. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6979. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6980. }
  6981. declare var HTMLPictureElement: {
  6982. prototype: HTMLPictureElement;
  6983. new(): HTMLPictureElement;
  6984. };
  6985. /** 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>). */
  6986. interface HTMLPreElement extends HTMLElement {
  6987. /**
  6988. * Sets or gets a value that you can use to implement your own width functionality for the object.
  6989. * @deprecated
  6990. */
  6991. width: number;
  6992. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  6993. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  6994. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  6995. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  6996. }
  6997. declare var HTMLPreElement: {
  6998. prototype: HTMLPreElement;
  6999. new(): HTMLPreElement;
  7000. };
  7001. /** 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. */
  7002. interface HTMLProgressElement extends HTMLElement {
  7003. readonly labels: NodeListOf<HTMLLabelElement>;
  7004. /** Defines the maximum, or "done" value for a progress element. */
  7005. max: number;
  7006. /** 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). */
  7007. readonly position: number;
  7008. /** Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. */
  7009. value: number;
  7010. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7011. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7012. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7013. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7014. }
  7015. declare var HTMLProgressElement: {
  7016. prototype: HTMLProgressElement;
  7017. new(): HTMLProgressElement;
  7018. };
  7019. /** 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. */
  7020. interface HTMLQuoteElement extends HTMLElement {
  7021. /** Sets or retrieves reference information about the object. */
  7022. cite: string;
  7023. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7024. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7025. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7026. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7027. }
  7028. declare var HTMLQuoteElement: {
  7029. prototype: HTMLQuoteElement;
  7030. new(): HTMLQuoteElement;
  7031. };
  7032. /** 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). */
  7033. interface HTMLScriptElement extends HTMLElement {
  7034. async: boolean;
  7035. /**
  7036. * Sets or retrieves the character set used to encode the object.
  7037. * @deprecated
  7038. */
  7039. charset: string;
  7040. crossOrigin: string | null;
  7041. /** Sets or retrieves the status of the script. */
  7042. defer: boolean;
  7043. /**
  7044. * Sets or retrieves the event for which the script is written.
  7045. * @deprecated
  7046. */
  7047. event: string;
  7048. /**
  7049. * Sets or retrieves the object that is bound to the event script.
  7050. * @deprecated
  7051. */
  7052. htmlFor: string;
  7053. integrity: string;
  7054. noModule: boolean;
  7055. referrerPolicy: string;
  7056. /** Retrieves the URL to an external file that contains the source code or data. */
  7057. src: string;
  7058. /** Retrieves or sets the text of the object as a string. */
  7059. text: string;
  7060. /** Sets or retrieves the MIME type for the associated scripting engine. */
  7061. type: string;
  7062. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7063. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7064. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7065. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7066. }
  7067. declare var HTMLScriptElement: {
  7068. prototype: HTMLScriptElement;
  7069. new(): HTMLScriptElement;
  7070. };
  7071. /** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */
  7072. interface HTMLSelectElement extends HTMLElement {
  7073. autocomplete: string;
  7074. disabled: boolean;
  7075. /** Retrieves a reference to the form that the object is embedded in. */
  7076. readonly form: HTMLFormElement | null;
  7077. readonly labels: NodeListOf<HTMLLabelElement>;
  7078. /** Sets or retrieves the number of objects in a collection. */
  7079. length: number;
  7080. /** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */
  7081. multiple: boolean;
  7082. /** Sets or retrieves the name of the object. */
  7083. name: string;
  7084. /** Returns an HTMLOptionsCollection of the list of options. */
  7085. readonly options: HTMLOptionsCollection;
  7086. /** When present, marks an element that can't be submitted without a value. */
  7087. required: boolean;
  7088. /** Sets or retrieves the index of the selected option in a select object. */
  7089. selectedIndex: number;
  7090. readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
  7091. /** Sets or retrieves the number of rows in the list box. */
  7092. size: number;
  7093. /** Retrieves the type of select control based on the value of the MULTIPLE attribute. */
  7094. readonly type: string;
  7095. /** 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. */
  7096. readonly validationMessage: string;
  7097. /** Returns a ValidityState object that represents the validity states of an element. */
  7098. readonly validity: ValidityState;
  7099. /** Sets or retrieves the value which is returned to the server when the form control is submitted. */
  7100. value: string;
  7101. /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
  7102. readonly willValidate: boolean;
  7103. /**
  7104. * Adds an element to the areas, controlRange, or options collection.
  7105. * @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.
  7106. * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.
  7107. */
  7108. add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
  7109. /** Returns whether a form will validate when it is submitted, without having to submit it. */
  7110. checkValidity(): boolean;
  7111. /**
  7112. * Retrieves a select object or an object from an options collection.
  7113. * @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.
  7114. * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
  7115. */
  7116. item(index: number): HTMLOptionElement | null;
  7117. /**
  7118. * Retrieves a select object or an object from an options collection.
  7119. * @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.
  7120. */
  7121. namedItem(name: string): HTMLOptionElement | null;
  7122. /**
  7123. * Removes an element from the collection.
  7124. * @param index Number that specifies the zero-based index of the element to remove from the collection.
  7125. */
  7126. remove(): void;
  7127. remove(index: number): void;
  7128. reportValidity(): boolean;
  7129. /**
  7130. * Sets a custom error message that is displayed when a form is submitted.
  7131. * @param error Sets a custom error message that is displayed when a form is submitted.
  7132. */
  7133. setCustomValidity(error: string): void;
  7134. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7135. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7136. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7137. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7138. [name: number]: HTMLOptionElement | HTMLOptGroupElement;
  7139. }
  7140. declare var HTMLSelectElement: {
  7141. prototype: HTMLSelectElement;
  7142. new(): HTMLSelectElement;
  7143. };
  7144. interface HTMLSlotElement extends HTMLElement {
  7145. name: string;
  7146. assign(...nodes: (Element | Text)[]): void;
  7147. assignedElements(options?: AssignedNodesOptions): Element[];
  7148. assignedNodes(options?: AssignedNodesOptions): Node[];
  7149. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7150. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7151. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7152. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7153. }
  7154. declare var HTMLSlotElement: {
  7155. prototype: HTMLSlotElement;
  7156. new(): HTMLSlotElement;
  7157. };
  7158. /** Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. */
  7159. interface HTMLSourceElement extends HTMLElement {
  7160. /** Gets or sets the intended media type of the media source. */
  7161. media: string;
  7162. sizes: string;
  7163. /** The address or URL of the a media resource that is to be considered. */
  7164. src: string;
  7165. srcset: string;
  7166. /** Gets or sets the MIME type of a media resource. */
  7167. type: string;
  7168. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7169. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7170. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7171. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7172. }
  7173. declare var HTMLSourceElement: {
  7174. prototype: HTMLSourceElement;
  7175. new(): HTMLSourceElement;
  7176. };
  7177. /** A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */
  7178. interface HTMLSpanElement extends HTMLElement {
  7179. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7180. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7181. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7182. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7183. }
  7184. declare var HTMLSpanElement: {
  7185. prototype: HTMLSpanElement;
  7186. new(): HTMLSpanElement;
  7187. };
  7188. /** A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. */
  7189. interface HTMLStyleElement extends HTMLElement, LinkStyle {
  7190. /** Sets or retrieves the media type. */
  7191. media: string;
  7192. /**
  7193. * Retrieves the CSS language in which the style sheet is written.
  7194. * @deprecated
  7195. */
  7196. type: string;
  7197. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7198. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7199. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7200. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7201. }
  7202. declare var HTMLStyleElement: {
  7203. prototype: HTMLStyleElement;
  7204. new(): HTMLStyleElement;
  7205. };
  7206. /** Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements. */
  7207. interface HTMLTableCaptionElement extends HTMLElement {
  7208. /**
  7209. * Sets or retrieves the alignment of the caption or legend.
  7210. * @deprecated
  7211. */
  7212. align: string;
  7213. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7214. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7215. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7216. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7217. }
  7218. declare var HTMLTableCaptionElement: {
  7219. prototype: HTMLTableCaptionElement;
  7220. new(): HTMLTableCaptionElement;
  7221. };
  7222. /** 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. */
  7223. interface HTMLTableCellElement extends HTMLElement {
  7224. /** Sets or retrieves abbreviated text for the object. */
  7225. abbr: string;
  7226. /**
  7227. * Sets or retrieves how the object is aligned with adjacent text.
  7228. * @deprecated
  7229. */
  7230. align: string;
  7231. /**
  7232. * Sets or retrieves a comma-delimited list of conceptual categories associated with the object.
  7233. * @deprecated
  7234. */
  7235. axis: string;
  7236. /** @deprecated */
  7237. bgColor: string;
  7238. /** Retrieves the position of the object in the cells collection of a row. */
  7239. readonly cellIndex: number;
  7240. /** @deprecated */
  7241. ch: string;
  7242. /** @deprecated */
  7243. chOff: string;
  7244. /** Sets or retrieves the number columns in the table that the object should span. */
  7245. colSpan: number;
  7246. /** Sets or retrieves a list of header cells that provide information for the object. */
  7247. headers: string;
  7248. /**
  7249. * Sets or retrieves the height of the object.
  7250. * @deprecated
  7251. */
  7252. height: string;
  7253. /**
  7254. * Sets or retrieves whether the browser automatically performs wordwrap.
  7255. * @deprecated
  7256. */
  7257. noWrap: boolean;
  7258. /** Sets or retrieves how many rows in a table the cell should span. */
  7259. rowSpan: number;
  7260. /** Sets or retrieves the group of cells in a table to which the object's information applies. */
  7261. scope: string;
  7262. /** @deprecated */
  7263. vAlign: string;
  7264. /**
  7265. * Sets or retrieves the width of the object.
  7266. * @deprecated
  7267. */
  7268. width: string;
  7269. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7270. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7271. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7272. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7273. }
  7274. declare var HTMLTableCellElement: {
  7275. prototype: HTMLTableCellElement;
  7276. new(): HTMLTableCellElement;
  7277. };
  7278. /** Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements. */
  7279. interface HTMLTableColElement extends HTMLElement {
  7280. /**
  7281. * Sets or retrieves the alignment of the object relative to the display or table.
  7282. * @deprecated
  7283. */
  7284. align: string;
  7285. /** @deprecated */
  7286. ch: string;
  7287. /** @deprecated */
  7288. chOff: string;
  7289. /** Sets or retrieves the number of columns in the group. */
  7290. span: number;
  7291. /** @deprecated */
  7292. vAlign: string;
  7293. /**
  7294. * Sets or retrieves the width of the object.
  7295. * @deprecated
  7296. */
  7297. width: string;
  7298. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7299. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7300. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7301. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7302. }
  7303. declare var HTMLTableColElement: {
  7304. prototype: HTMLTableColElement;
  7305. new(): HTMLTableColElement;
  7306. };
  7307. /** @deprecated prefer HTMLTableCellElement */
  7308. interface HTMLTableDataCellElement extends HTMLTableCellElement {
  7309. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7310. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7311. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7312. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7313. }
  7314. /** 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. */
  7315. interface HTMLTableElement extends HTMLElement {
  7316. /**
  7317. * Sets or retrieves a value that indicates the table alignment.
  7318. * @deprecated
  7319. */
  7320. align: string;
  7321. /** @deprecated */
  7322. bgColor: string;
  7323. /**
  7324. * Sets or retrieves the width of the border to draw around the object.
  7325. * @deprecated
  7326. */
  7327. border: string;
  7328. /** Retrieves the caption object of a table. */
  7329. caption: HTMLTableCaptionElement | null;
  7330. /**
  7331. * Sets or retrieves the amount of space between the border of the cell and the content of the cell.
  7332. * @deprecated
  7333. */
  7334. cellPadding: string;
  7335. /**
  7336. * Sets or retrieves the amount of space between cells in a table.
  7337. * @deprecated
  7338. */
  7339. cellSpacing: string;
  7340. /**
  7341. * Sets or retrieves the way the border frame around the table is displayed.
  7342. * @deprecated
  7343. */
  7344. frame: string;
  7345. /** Sets or retrieves the number of horizontal rows contained in the object. */
  7346. readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
  7347. /**
  7348. * Sets or retrieves which dividing lines (inner borders) are displayed.
  7349. * @deprecated
  7350. */
  7351. rules: string;
  7352. /**
  7353. * Sets or retrieves a description and/or structure of the object.
  7354. * @deprecated
  7355. */
  7356. summary: string;
  7357. /** Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. */
  7358. readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;
  7359. /** Retrieves the tFoot object of the table. */
  7360. tFoot: HTMLTableSectionElement | null;
  7361. /** Retrieves the tHead object of the table. */
  7362. tHead: HTMLTableSectionElement | null;
  7363. /**
  7364. * Sets or retrieves the width of the object.
  7365. * @deprecated
  7366. */
  7367. width: string;
  7368. /** Creates an empty caption element in the table. */
  7369. createCaption(): HTMLTableCaptionElement;
  7370. /** Creates an empty tBody element in the table. */
  7371. createTBody(): HTMLTableSectionElement;
  7372. /** Creates an empty tFoot element in the table. */
  7373. createTFoot(): HTMLTableSectionElement;
  7374. /** Returns the tHead element object if successful, or null otherwise. */
  7375. createTHead(): HTMLTableSectionElement;
  7376. /** Deletes the caption element and its contents from the table. */
  7377. deleteCaption(): void;
  7378. /**
  7379. * Removes the specified row (tr) from the element and from the rows collection.
  7380. * @param index Number that specifies the zero-based position in the rows collection of the row to remove.
  7381. */
  7382. deleteRow(index: number): void;
  7383. /** Deletes the tFoot element and its contents from the table. */
  7384. deleteTFoot(): void;
  7385. /** Deletes the tHead element and its contents from the table. */
  7386. deleteTHead(): void;
  7387. /**
  7388. * Creates a new row (tr) in the table, and adds the row to the rows collection.
  7389. * @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.
  7390. */
  7391. insertRow(index?: number): HTMLTableRowElement;
  7392. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7393. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7394. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7395. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7396. }
  7397. declare var HTMLTableElement: {
  7398. prototype: HTMLTableElement;
  7399. new(): HTMLTableElement;
  7400. };
  7401. /** @deprecated prefer HTMLTableCellElement */
  7402. interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
  7403. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7404. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7405. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7406. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7407. }
  7408. /** 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. */
  7409. interface HTMLTableRowElement extends HTMLElement {
  7410. /**
  7411. * Sets or retrieves how the object is aligned with adjacent text.
  7412. * @deprecated
  7413. */
  7414. align: string;
  7415. /** @deprecated */
  7416. bgColor: string;
  7417. /** Retrieves a collection of all cells in the table row. */
  7418. readonly cells: HTMLCollectionOf<HTMLTableCellElement>;
  7419. /** @deprecated */
  7420. ch: string;
  7421. /** @deprecated */
  7422. chOff: string;
  7423. /** Retrieves the position of the object in the rows collection for the table. */
  7424. readonly rowIndex: number;
  7425. /** Retrieves the position of the object in the collection. */
  7426. readonly sectionRowIndex: number;
  7427. /** @deprecated */
  7428. vAlign: string;
  7429. /**
  7430. * Removes the specified cell from the table row, as well as from the cells collection.
  7431. * @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.
  7432. */
  7433. deleteCell(index: number): void;
  7434. /**
  7435. * Creates a new cell in the table row, and adds the cell to the cells collection.
  7436. * @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.
  7437. */
  7438. insertCell(index?: number): HTMLTableCellElement;
  7439. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7440. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7441. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7442. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7443. }
  7444. declare var HTMLTableRowElement: {
  7445. prototype: HTMLTableRowElement;
  7446. new(): HTMLTableRowElement;
  7447. };
  7448. /** 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. */
  7449. interface HTMLTableSectionElement extends HTMLElement {
  7450. /**
  7451. * Sets or retrieves a value that indicates the table alignment.
  7452. * @deprecated
  7453. */
  7454. align: string;
  7455. /** @deprecated */
  7456. ch: string;
  7457. /** @deprecated */
  7458. chOff: string;
  7459. /** Sets or retrieves the number of horizontal rows contained in the object. */
  7460. readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
  7461. /** @deprecated */
  7462. vAlign: string;
  7463. /**
  7464. * Removes the specified row (tr) from the element and from the rows collection.
  7465. * @param index Number that specifies the zero-based position in the rows collection of the row to remove.
  7466. */
  7467. deleteRow(index: number): void;
  7468. /**
  7469. * Creates a new row (tr) in the table, and adds the row to the rows collection.
  7470. * @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.
  7471. */
  7472. insertRow(index?: number): HTMLTableRowElement;
  7473. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7474. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7475. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7476. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7477. }
  7478. declare var HTMLTableSectionElement: {
  7479. prototype: HTMLTableSectionElement;
  7480. new(): HTMLTableSectionElement;
  7481. };
  7482. /** Enables access to the contents of an HTML <template> element. */
  7483. interface HTMLTemplateElement extends HTMLElement {
  7484. /** Returns the template contents (a DocumentFragment). */
  7485. readonly content: DocumentFragment;
  7486. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7487. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7488. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7489. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7490. }
  7491. declare var HTMLTemplateElement: {
  7492. prototype: HTMLTemplateElement;
  7493. new(): HTMLTemplateElement;
  7494. };
  7495. /** Provides special properties and methods for manipulating the layout and presentation of <textarea> elements. */
  7496. interface HTMLTextAreaElement extends HTMLElement {
  7497. autocomplete: string;
  7498. /** Sets or retrieves the width of the object. */
  7499. cols: number;
  7500. /** Sets or retrieves the initial contents of the object. */
  7501. defaultValue: string;
  7502. dirName: string;
  7503. disabled: boolean;
  7504. /** Retrieves a reference to the form that the object is embedded in. */
  7505. readonly form: HTMLFormElement | null;
  7506. readonly labels: NodeListOf<HTMLLabelElement>;
  7507. /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
  7508. maxLength: number;
  7509. minLength: number;
  7510. /** Sets or retrieves the name of the object. */
  7511. name: string;
  7512. /** 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. */
  7513. placeholder: string;
  7514. /** Sets or retrieves the value indicated whether the content of the object is read-only. */
  7515. readOnly: boolean;
  7516. /** When present, marks an element that can't be submitted without a value. */
  7517. required: boolean;
  7518. /** Sets or retrieves the number of horizontal rows contained in the object. */
  7519. rows: number;
  7520. selectionDirection: "forward" | "backward" | "none";
  7521. /** Gets or sets the end position or offset of a text selection. */
  7522. selectionEnd: number;
  7523. /** Gets or sets the starting position or offset of a text selection. */
  7524. selectionStart: number;
  7525. readonly textLength: number;
  7526. /** Retrieves the type of control. */
  7527. readonly type: string;
  7528. /** 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. */
  7529. readonly validationMessage: string;
  7530. /** Returns a ValidityState object that represents the validity states of an element. */
  7531. readonly validity: ValidityState;
  7532. /** Retrieves or sets the text in the entry field of the textArea element. */
  7533. value: string;
  7534. /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
  7535. readonly willValidate: boolean;
  7536. /** Sets or retrieves how to handle wordwrapping in the object. */
  7537. wrap: string;
  7538. /** Returns whether a form will validate when it is submitted, without having to submit it. */
  7539. checkValidity(): boolean;
  7540. reportValidity(): boolean;
  7541. /** Highlights the input area of a form element. */
  7542. select(): void;
  7543. /**
  7544. * Sets a custom error message that is displayed when a form is submitted.
  7545. * @param error Sets a custom error message that is displayed when a form is submitted.
  7546. */
  7547. setCustomValidity(error: string): void;
  7548. setRangeText(replacement: string): void;
  7549. setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
  7550. /**
  7551. * Sets the start and end positions of a selection in a text field.
  7552. * @param start The offset into the text field for the start of the selection.
  7553. * @param end The offset into the text field for the end of the selection.
  7554. * @param direction The direction in which the selection is performed.
  7555. */
  7556. setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
  7557. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7558. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7559. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7560. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7561. }
  7562. declare var HTMLTextAreaElement: {
  7563. prototype: HTMLTextAreaElement;
  7564. new(): HTMLTextAreaElement;
  7565. };
  7566. /** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements. */
  7567. interface HTMLTimeElement extends HTMLElement {
  7568. dateTime: string;
  7569. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7570. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7571. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7572. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7573. }
  7574. declare var HTMLTimeElement: {
  7575. prototype: HTMLTimeElement;
  7576. new(): HTMLTimeElement;
  7577. };
  7578. /** Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface. */
  7579. interface HTMLTitleElement extends HTMLElement {
  7580. /** Retrieves or sets the text of the object as a string. */
  7581. text: string;
  7582. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7583. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7584. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7585. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7586. }
  7587. declare var HTMLTitleElement: {
  7588. prototype: HTMLTitleElement;
  7589. new(): HTMLTitleElement;
  7590. };
  7591. /** The HTMLTrackElement */
  7592. interface HTMLTrackElement extends HTMLElement {
  7593. default: boolean;
  7594. kind: string;
  7595. label: string;
  7596. readonly readyState: number;
  7597. src: string;
  7598. srclang: string;
  7599. /** Returns the TextTrack object corresponding to the text track of the track element. */
  7600. readonly track: TextTrack;
  7601. readonly ERROR: number;
  7602. readonly LOADED: number;
  7603. readonly LOADING: number;
  7604. readonly NONE: number;
  7605. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7606. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7607. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7608. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7609. }
  7610. declare var HTMLTrackElement: {
  7611. prototype: HTMLTrackElement;
  7612. new(): HTMLTrackElement;
  7613. readonly ERROR: number;
  7614. readonly LOADED: number;
  7615. readonly LOADING: number;
  7616. readonly NONE: number;
  7617. };
  7618. /** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements. */
  7619. interface HTMLUListElement extends HTMLElement {
  7620. /** @deprecated */
  7621. compact: boolean;
  7622. /** @deprecated */
  7623. type: string;
  7624. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7625. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7626. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7627. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7628. }
  7629. declare var HTMLUListElement: {
  7630. prototype: HTMLUListElement;
  7631. new(): HTMLUListElement;
  7632. };
  7633. /** An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */
  7634. interface HTMLUnknownElement extends HTMLElement {
  7635. addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7636. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7637. removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7638. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7639. }
  7640. declare var HTMLUnknownElement: {
  7641. prototype: HTMLUnknownElement;
  7642. new(): HTMLUnknownElement;
  7643. };
  7644. interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
  7645. "enterpictureinpicture": Event;
  7646. "leavepictureinpicture": Event;
  7647. }
  7648. /** Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. */
  7649. interface HTMLVideoElement extends HTMLMediaElement {
  7650. disablePictureInPicture: boolean;
  7651. /** Gets or sets the height of the video element. */
  7652. height: number;
  7653. onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
  7654. onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
  7655. /** 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. */
  7656. playsInline: boolean;
  7657. /** 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. */
  7658. poster: string;
  7659. /** Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. */
  7660. readonly videoHeight: number;
  7661. /** Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. */
  7662. readonly videoWidth: number;
  7663. /** Gets or sets the width of the video element. */
  7664. width: number;
  7665. getVideoPlaybackQuality(): VideoPlaybackQuality;
  7666. requestPictureInPicture(): Promise<PictureInPictureWindow>;
  7667. addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7668. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7669. removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7670. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7671. }
  7672. declare var HTMLVideoElement: {
  7673. prototype: HTMLVideoElement;
  7674. new(): HTMLVideoElement;
  7675. };
  7676. /** Events that fire when the fragment identifier of the URL has changed. */
  7677. interface HashChangeEvent extends Event {
  7678. /** Returns the URL of the session history entry that is now current. */
  7679. readonly newURL: string;
  7680. /** Returns the URL of the session history entry that was previously current. */
  7681. readonly oldURL: string;
  7682. }
  7683. declare var HashChangeEvent: {
  7684. prototype: HashChangeEvent;
  7685. new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;
  7686. };
  7687. /** 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. */
  7688. interface Headers {
  7689. append(name: string, value: string): void;
  7690. delete(name: string): void;
  7691. get(name: string): string | null;
  7692. has(name: string): boolean;
  7693. set(name: string, value: string): void;
  7694. forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
  7695. }
  7696. declare var Headers: {
  7697. prototype: Headers;
  7698. new(init?: HeadersInit): Headers;
  7699. };
  7700. /** Allows manipulation of the browser session history, that is the pages visited in the tab or frame that the current page is loaded in. */
  7701. interface History {
  7702. readonly length: number;
  7703. scrollRestoration: ScrollRestoration;
  7704. readonly state: any;
  7705. back(): void;
  7706. forward(): void;
  7707. go(delta?: number): void;
  7708. pushState(data: any, unused: string, url?: string | URL | null): void;
  7709. replaceState(data: any, unused: string, url?: string | URL | null): void;
  7710. }
  7711. declare var History: {
  7712. prototype: History;
  7713. new(): History;
  7714. };
  7715. /** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
  7716. interface IDBCursor {
  7717. /** Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. */
  7718. readonly direction: IDBCursorDirection;
  7719. /** Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
  7720. readonly key: IDBValidKey;
  7721. /** Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
  7722. readonly primaryKey: IDBValidKey;
  7723. readonly request: IDBRequest;
  7724. /** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */
  7725. readonly source: IDBObjectStore | IDBIndex;
  7726. /** Advances the cursor through the next count records in range. */
  7727. advance(count: number): void;
  7728. /** Advances the cursor to the next record in range. */
  7729. continue(key?: IDBValidKey): void;
  7730. /** 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. */
  7731. continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
  7732. /**
  7733. * Delete the record pointed at by the cursor with a new value.
  7734. *
  7735. * If successful, request's result will be undefined.
  7736. */
  7737. delete(): IDBRequest<undefined>;
  7738. /**
  7739. * Updated the record pointed at by the cursor with a new value.
  7740. *
  7741. * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
  7742. *
  7743. * If successful, request's result will be the record's key.
  7744. */
  7745. update(value: any): IDBRequest<IDBValidKey>;
  7746. }
  7747. declare var IDBCursor: {
  7748. prototype: IDBCursor;
  7749. new(): IDBCursor;
  7750. };
  7751. /** 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. */
  7752. interface IDBCursorWithValue extends IDBCursor {
  7753. /** Returns the cursor's current value. */
  7754. readonly value: any;
  7755. }
  7756. declare var IDBCursorWithValue: {
  7757. prototype: IDBCursorWithValue;
  7758. new(): IDBCursorWithValue;
  7759. };
  7760. interface IDBDatabaseEventMap {
  7761. "abort": Event;
  7762. "close": Event;
  7763. "error": Event;
  7764. "versionchange": IDBVersionChangeEvent;
  7765. }
  7766. /** 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. */
  7767. interface IDBDatabase extends EventTarget {
  7768. /** Returns the name of the database. */
  7769. readonly name: string;
  7770. /** Returns a list of the names of object stores in the database. */
  7771. readonly objectStoreNames: DOMStringList;
  7772. onabort: ((this: IDBDatabase, ev: Event) => any) | null;
  7773. onclose: ((this: IDBDatabase, ev: Event) => any) | null;
  7774. onerror: ((this: IDBDatabase, ev: Event) => any) | null;
  7775. onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
  7776. /** Returns the version of the database. */
  7777. readonly version: number;
  7778. /** Closes the connection once all running transactions have finished. */
  7779. close(): void;
  7780. /**
  7781. * Creates a new object store with the given name and options and returns a new IDBObjectStore.
  7782. *
  7783. * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
  7784. */
  7785. createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
  7786. /**
  7787. * Deletes the object store with the given name.
  7788. *
  7789. * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
  7790. */
  7791. deleteObjectStore(name: string): void;
  7792. /** 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. */
  7793. transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
  7794. addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  7795. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  7796. removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  7797. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  7798. }
  7799. declare var IDBDatabase: {
  7800. prototype: IDBDatabase;
  7801. new(): IDBDatabase;
  7802. };
  7803. /** 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.) */
  7804. interface IDBFactory {
  7805. /**
  7806. * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
  7807. *
  7808. * Throws a "DataError" DOMException if either input is not a valid key.
  7809. */
  7810. cmp(first: any, second: any): number;
  7811. databases(): Promise<IDBDatabaseInfo[]>;
  7812. /** 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. */
  7813. deleteDatabase(name: string): IDBOpenDBRequest;
  7814. /** 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. */
  7815. open(name: string, version?: number): IDBOpenDBRequest;
  7816. }
  7817. declare var IDBFactory: {
  7818. prototype: IDBFactory;
  7819. new(): IDBFactory;
  7820. };
  7821. /** 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. */
  7822. interface IDBIndex {
  7823. readonly keyPath: string | string[];
  7824. readonly multiEntry: boolean;
  7825. /** Returns the name of the index. */
  7826. name: string;
  7827. /** Returns the IDBObjectStore the index belongs to. */
  7828. readonly objectStore: IDBObjectStore;
  7829. readonly unique: boolean;
  7830. /**
  7831. * Retrieves the number of records matching the given key or key range in query.
  7832. *
  7833. * If successful, request's result will be the count.
  7834. */
  7835. count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
  7836. /**
  7837. * Retrieves the value of the first record matching the given key or key range in query.
  7838. *
  7839. * If successful, request's result will be the value, or undefined if there was no matching record.
  7840. */
  7841. get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
  7842. /**
  7843. * Retrieves the values of the records matching the given key or key range in query (up to count if given).
  7844. *
  7845. * If successful, request's result will be an Array of the values.
  7846. */
  7847. getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
  7848. /**
  7849. * Retrieves the keys of records matching the given key or key range in query (up to count if given).
  7850. *
  7851. * If successful, request's result will be an Array of the keys.
  7852. */
  7853. getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
  7854. /**
  7855. * Retrieves the key of the first record matching the given key or key range in query.
  7856. *
  7857. * If successful, request's result will be the key, or undefined if there was no matching record.
  7858. */
  7859. getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
  7860. /**
  7861. * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
  7862. *
  7863. * If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
  7864. */
  7865. openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
  7866. /**
  7867. * 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.
  7868. *
  7869. * If successful, request's result will be an IDBCursor, or null if there were no matching records.
  7870. */
  7871. openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
  7872. }
  7873. declare var IDBIndex: {
  7874. prototype: IDBIndex;
  7875. new(): IDBIndex;
  7876. };
  7877. /** 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: */
  7878. interface IDBKeyRange {
  7879. /** Returns lower bound, or undefined if none. */
  7880. readonly lower: any;
  7881. /** Returns true if the lower open flag is set, and false otherwise. */
  7882. readonly lowerOpen: boolean;
  7883. /** Returns upper bound, or undefined if none. */
  7884. readonly upper: any;
  7885. /** Returns true if the upper open flag is set, and false otherwise. */
  7886. readonly upperOpen: boolean;
  7887. /** Returns true if key is included in the range, and false otherwise. */
  7888. includes(key: any): boolean;
  7889. }
  7890. declare var IDBKeyRange: {
  7891. prototype: IDBKeyRange;
  7892. new(): IDBKeyRange;
  7893. /** 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. */
  7894. bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
  7895. /** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */
  7896. lowerBound(lower: any, open?: boolean): IDBKeyRange;
  7897. /** Returns a new IDBKeyRange spanning only key. */
  7898. only(value: any): IDBKeyRange;
  7899. /** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */
  7900. upperBound(upper: any, open?: boolean): IDBKeyRange;
  7901. };
  7902. /** 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.) */
  7903. interface IDBObjectStore {
  7904. /** Returns true if the store has a key generator, and false otherwise. */
  7905. readonly autoIncrement: boolean;
  7906. /** Returns a list of the names of indexes in the store. */
  7907. readonly indexNames: DOMStringList;
  7908. /** Returns the key path of the store, or null if none. */
  7909. readonly keyPath: string | string[];
  7910. /** Returns the name of the store. */
  7911. name: string;
  7912. /** Returns the associated transaction. */
  7913. readonly transaction: IDBTransaction;
  7914. /**
  7915. * Adds or updates a record in store with the given value and key.
  7916. *
  7917. * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
  7918. *
  7919. * 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.
  7920. *
  7921. * If successful, request's result will be the record's key.
  7922. */
  7923. add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
  7924. /**
  7925. * Deletes all records in store.
  7926. *
  7927. * If successful, request's result will be undefined.
  7928. */
  7929. clear(): IDBRequest<undefined>;
  7930. /**
  7931. * Retrieves the number of records matching the given key or key range in query.
  7932. *
  7933. * If successful, request's result will be the count.
  7934. */
  7935. count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
  7936. /**
  7937. * 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.
  7938. *
  7939. * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
  7940. */
  7941. createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
  7942. /**
  7943. * Deletes records in store with the given key or in the given key range in query.
  7944. *
  7945. * If successful, request's result will be undefined.
  7946. */
  7947. delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
  7948. /**
  7949. * Deletes the index in store with the given name.
  7950. *
  7951. * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
  7952. */
  7953. deleteIndex(name: string): void;
  7954. /**
  7955. * Retrieves the value of the first record matching the given key or key range in query.
  7956. *
  7957. * If successful, request's result will be the value, or undefined if there was no matching record.
  7958. */
  7959. get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
  7960. /**
  7961. * Retrieves the values of the records matching the given key or key range in query (up to count if given).
  7962. *
  7963. * If successful, request's result will be an Array of the values.
  7964. */
  7965. getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
  7966. /**
  7967. * Retrieves the keys of records matching the given key or key range in query (up to count if given).
  7968. *
  7969. * If successful, request's result will be an Array of the keys.
  7970. */
  7971. getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
  7972. /**
  7973. * Retrieves the key of the first record matching the given key or key range in query.
  7974. *
  7975. * If successful, request's result will be the key, or undefined if there was no matching record.
  7976. */
  7977. getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
  7978. index(name: string): IDBIndex;
  7979. /**
  7980. * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
  7981. *
  7982. * If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
  7983. */
  7984. openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
  7985. /**
  7986. * 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.
  7987. *
  7988. * If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
  7989. */
  7990. openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
  7991. /**
  7992. * Adds or updates a record in store with the given value and key.
  7993. *
  7994. * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
  7995. *
  7996. * 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.
  7997. *
  7998. * If successful, request's result will be the record's key.
  7999. */
  8000. put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
  8001. }
  8002. declare var IDBObjectStore: {
  8003. prototype: IDBObjectStore;
  8004. new(): IDBObjectStore;
  8005. };
  8006. interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
  8007. "blocked": Event;
  8008. "upgradeneeded": IDBVersionChangeEvent;
  8009. }
  8010. /** Also inherits methods from its parents IDBRequest and EventTarget. */
  8011. interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
  8012. onblocked: ((this: IDBOpenDBRequest, ev: Event) => any) | null;
  8013. onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
  8014. addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  8015. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  8016. removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  8017. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  8018. }
  8019. declare var IDBOpenDBRequest: {
  8020. prototype: IDBOpenDBRequest;
  8021. new(): IDBOpenDBRequest;
  8022. };
  8023. interface IDBRequestEventMap {
  8024. "error": Event;
  8025. "success": Event;
  8026. }
  8027. /** 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. */
  8028. interface IDBRequest<T = any> extends EventTarget {
  8029. /** 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. */
  8030. readonly error: DOMException | null;
  8031. onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
  8032. onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
  8033. /** Returns "pending" until a request is complete, then returns "done". */
  8034. readonly readyState: IDBRequestReadyState;
  8035. /** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. */
  8036. readonly result: T;
  8037. /** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */
  8038. readonly source: IDBObjectStore | IDBIndex | IDBCursor;
  8039. /** 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. */
  8040. readonly transaction: IDBTransaction | null;
  8041. addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  8042. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  8043. removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  8044. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  8045. }
  8046. declare var IDBRequest: {
  8047. prototype: IDBRequest;
  8048. new(): IDBRequest;
  8049. };
  8050. interface IDBTransactionEventMap {
  8051. "abort": Event;
  8052. "complete": Event;
  8053. "error": Event;
  8054. }
  8055. interface IDBTransaction extends EventTarget {
  8056. /** Returns the transaction's connection. */
  8057. readonly db: IDBDatabase;
  8058. /** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
  8059. readonly error: DOMException | null;
  8060. /** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
  8061. readonly mode: IDBTransactionMode;
  8062. /** 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. */
  8063. readonly objectStoreNames: DOMStringList;
  8064. onabort: ((this: IDBTransaction, ev: Event) => any) | null;
  8065. oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
  8066. onerror: ((this: IDBTransaction, ev: Event) => any) | null;
  8067. /** Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. */
  8068. abort(): void;
  8069. commit(): void;
  8070. /** Returns an IDBObjectStore in the transaction's scope. */
  8071. objectStore(name: string): IDBObjectStore;
  8072. addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  8073. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  8074. removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  8075. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  8076. }
  8077. declare var IDBTransaction: {
  8078. prototype: IDBTransaction;
  8079. new(): IDBTransaction;
  8080. };
  8081. /** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */
  8082. interface IDBVersionChangeEvent extends Event {
  8083. readonly newVersion: number | null;
  8084. readonly oldVersion: number;
  8085. }
  8086. declare var IDBVersionChangeEvent: {
  8087. prototype: IDBVersionChangeEvent;
  8088. new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
  8089. };
  8090. /** 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. */
  8091. interface IIRFilterNode extends AudioNode {
  8092. getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
  8093. }
  8094. declare var IIRFilterNode: {
  8095. prototype: IIRFilterNode;
  8096. new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;
  8097. };
  8098. interface IdleDeadline {
  8099. readonly didTimeout: boolean;
  8100. timeRemaining(): DOMHighResTimeStamp;
  8101. }
  8102. declare var IdleDeadline: {
  8103. prototype: IdleDeadline;
  8104. new(): IdleDeadline;
  8105. };
  8106. interface ImageBitmap {
  8107. /** Returns the intrinsic height of the image, in CSS pixels. */
  8108. readonly height: number;
  8109. /** Returns the intrinsic width of the image, in CSS pixels. */
  8110. readonly width: number;
  8111. /** Releases imageBitmap's underlying bitmap data. */
  8112. close(): void;
  8113. }
  8114. declare var ImageBitmap: {
  8115. prototype: ImageBitmap;
  8116. new(): ImageBitmap;
  8117. };
  8118. interface ImageBitmapRenderingContext {
  8119. /** Returns the canvas element that the context is bound to. */
  8120. readonly canvas: HTMLCanvasElement;
  8121. /** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */
  8122. transferFromImageBitmap(bitmap: ImageBitmap | null): void;
  8123. }
  8124. declare var ImageBitmapRenderingContext: {
  8125. prototype: ImageBitmapRenderingContext;
  8126. new(): ImageBitmapRenderingContext;
  8127. };
  8128. /** 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(). */
  8129. interface ImageData {
  8130. /** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
  8131. readonly data: Uint8ClampedArray;
  8132. /** Returns the actual dimensions of the data in the ImageData object, in pixels. */
  8133. readonly height: number;
  8134. /** Returns the actual dimensions of the data in the ImageData object, in pixels. */
  8135. readonly width: number;
  8136. }
  8137. declare var ImageData: {
  8138. prototype: ImageData;
  8139. new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
  8140. new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
  8141. };
  8142. interface InnerHTML {
  8143. innerHTML: string;
  8144. }
  8145. interface InputEvent extends UIEvent {
  8146. readonly data: string | null;
  8147. readonly dataTransfer: DataTransfer | null;
  8148. readonly inputType: string;
  8149. readonly isComposing: boolean;
  8150. getTargetRanges(): StaticRange[];
  8151. }
  8152. declare var InputEvent: {
  8153. prototype: InputEvent;
  8154. new(type: string, eventInitDict?: InputEventInit): InputEvent;
  8155. };
  8156. /** 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. */
  8157. interface IntersectionObserver {
  8158. readonly root: Element | Document | null;
  8159. readonly rootMargin: string;
  8160. readonly thresholds: ReadonlyArray<number>;
  8161. disconnect(): void;
  8162. observe(target: Element): void;
  8163. takeRecords(): IntersectionObserverEntry[];
  8164. unobserve(target: Element): void;
  8165. }
  8166. declare var IntersectionObserver: {
  8167. prototype: IntersectionObserver;
  8168. new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver;
  8169. };
  8170. /** This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition. */
  8171. interface IntersectionObserverEntry {
  8172. readonly boundingClientRect: DOMRectReadOnly;
  8173. readonly intersectionRatio: number;
  8174. readonly intersectionRect: DOMRectReadOnly;
  8175. readonly isIntersecting: boolean;
  8176. readonly rootBounds: DOMRectReadOnly | null;
  8177. readonly target: Element;
  8178. readonly time: DOMHighResTimeStamp;
  8179. }
  8180. declare var IntersectionObserverEntry: {
  8181. prototype: IntersectionObserverEntry;
  8182. new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;
  8183. };
  8184. interface KHR_parallel_shader_compile {
  8185. readonly COMPLETION_STATUS_KHR: GLenum;
  8186. }
  8187. /** 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. */
  8188. interface KeyboardEvent extends UIEvent {
  8189. readonly altKey: boolean;
  8190. /** @deprecated */
  8191. readonly charCode: number;
  8192. readonly code: string;
  8193. readonly ctrlKey: boolean;
  8194. readonly isComposing: boolean;
  8195. readonly key: string;
  8196. /** @deprecated */
  8197. readonly keyCode: number;
  8198. readonly location: number;
  8199. readonly metaKey: boolean;
  8200. readonly repeat: boolean;
  8201. readonly shiftKey: boolean;
  8202. getModifierState(keyArg: string): boolean;
  8203. /** @deprecated */
  8204. initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void;
  8205. readonly DOM_KEY_LOCATION_LEFT: number;
  8206. readonly DOM_KEY_LOCATION_NUMPAD: number;
  8207. readonly DOM_KEY_LOCATION_RIGHT: number;
  8208. readonly DOM_KEY_LOCATION_STANDARD: number;
  8209. }
  8210. declare var KeyboardEvent: {
  8211. prototype: KeyboardEvent;
  8212. new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
  8213. readonly DOM_KEY_LOCATION_LEFT: number;
  8214. readonly DOM_KEY_LOCATION_NUMPAD: number;
  8215. readonly DOM_KEY_LOCATION_RIGHT: number;
  8216. readonly DOM_KEY_LOCATION_STANDARD: number;
  8217. };
  8218. interface KeyframeEffect extends AnimationEffect {
  8219. composite: CompositeOperation;
  8220. iterationComposite: IterationCompositeOperation;
  8221. pseudoElement: string | null;
  8222. target: Element | null;
  8223. getKeyframes(): ComputedKeyframe[];
  8224. setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void;
  8225. }
  8226. declare var KeyframeEffect: {
  8227. prototype: KeyframeEffect;
  8228. new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect;
  8229. new(source: KeyframeEffect): KeyframeEffect;
  8230. };
  8231. interface LinkStyle {
  8232. readonly sheet: CSSStyleSheet | null;
  8233. }
  8234. /** 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. */
  8235. interface Location {
  8236. /** Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context. */
  8237. readonly ancestorOrigins: DOMStringList;
  8238. /**
  8239. * Returns the Location object's URL's fragment (includes leading "#" if non-empty).
  8240. *
  8241. * Can be set, to navigate to the same URL with a changed fragment (ignores leading "#").
  8242. */
  8243. hash: string;
  8244. /**
  8245. * Returns the Location object's URL's host and port (if different from the default port for the scheme).
  8246. *
  8247. * Can be set, to navigate to the same URL with a changed host and port.
  8248. */
  8249. host: string;
  8250. /**
  8251. * Returns the Location object's URL's host.
  8252. *
  8253. * Can be set, to navigate to the same URL with a changed host.
  8254. */
  8255. hostname: string;
  8256. /**
  8257. * Returns the Location object's URL.
  8258. *
  8259. * Can be set, to navigate to the given URL.
  8260. */
  8261. href: string;
  8262. toString(): string;
  8263. /** Returns the Location object's URL's origin. */
  8264. readonly origin: string;
  8265. /**
  8266. * Returns the Location object's URL's path.
  8267. *
  8268. * Can be set, to navigate to the same URL with a changed path.
  8269. */
  8270. pathname: string;
  8271. /**
  8272. * Returns the Location object's URL's port.
  8273. *
  8274. * Can be set, to navigate to the same URL with a changed port.
  8275. */
  8276. port: string;
  8277. /**
  8278. * Returns the Location object's URL's scheme.
  8279. *
  8280. * Can be set, to navigate to the same URL with a changed scheme.
  8281. */
  8282. protocol: string;
  8283. /**
  8284. * Returns the Location object's URL's query (includes leading "?" if non-empty).
  8285. *
  8286. * Can be set, to navigate to the same URL with a changed query (ignores leading "?").
  8287. */
  8288. search: string;
  8289. /** Navigates to the given URL. */
  8290. assign(url: string | URL): void;
  8291. /** Reloads the current page. */
  8292. reload(): void;
  8293. /** Removes the current page from the session history and navigates to the given URL. */
  8294. replace(url: string | URL): void;
  8295. }
  8296. declare var Location: {
  8297. prototype: Location;
  8298. new(): Location;
  8299. };
  8300. interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
  8301. }
  8302. interface MathMLElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
  8303. addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  8304. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  8305. removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  8306. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  8307. }
  8308. declare var MathMLElement: {
  8309. prototype: MathMLElement;
  8310. new(): MathMLElement;
  8311. };
  8312. interface MediaCapabilities {
  8313. decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
  8314. encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
  8315. }
  8316. declare var MediaCapabilities: {
  8317. prototype: MediaCapabilities;
  8318. new(): MediaCapabilities;
  8319. };
  8320. /**
  8321. * The MediaDevicesInfo interface contains information that describes a single media input or output device.
  8322. * Available only in secure contexts.
  8323. */
  8324. interface MediaDeviceInfo {
  8325. readonly deviceId: string;
  8326. readonly groupId: string;
  8327. readonly kind: MediaDeviceKind;
  8328. readonly label: string;
  8329. toJSON(): any;
  8330. }
  8331. declare var MediaDeviceInfo: {
  8332. prototype: MediaDeviceInfo;
  8333. new(): MediaDeviceInfo;
  8334. };
  8335. interface MediaDevicesEventMap {
  8336. "devicechange": Event;
  8337. }
  8338. /**
  8339. * 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.
  8340. * Available only in secure contexts.
  8341. */
  8342. interface MediaDevices extends EventTarget {
  8343. ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;
  8344. enumerateDevices(): Promise<MediaDeviceInfo[]>;
  8345. getDisplayMedia(constraints?: DisplayMediaStreamConstraints): Promise<MediaStream>;
  8346. getSupportedConstraints(): MediaTrackSupportedConstraints;
  8347. getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;
  8348. addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  8349. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  8350. removeEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  8351. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  8352. }
  8353. declare var MediaDevices: {
  8354. prototype: MediaDevices;
  8355. new(): MediaDevices;
  8356. };
  8357. /** 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. */
  8358. interface MediaElementAudioSourceNode extends AudioNode {
  8359. readonly mediaElement: HTMLMediaElement;
  8360. }
  8361. declare var MediaElementAudioSourceNode: {
  8362. prototype: MediaElementAudioSourceNode;
  8363. new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode;
  8364. };
  8365. interface MediaEncryptedEvent extends Event {
  8366. readonly initData: ArrayBuffer | null;
  8367. readonly initDataType: string;
  8368. }
  8369. declare var MediaEncryptedEvent: {
  8370. prototype: MediaEncryptedEvent;
  8371. new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent;
  8372. };
  8373. /** An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>. */
  8374. interface MediaError {
  8375. readonly code: number;
  8376. readonly message: string;
  8377. readonly MEDIA_ERR_ABORTED: number;
  8378. readonly MEDIA_ERR_DECODE: number;
  8379. readonly MEDIA_ERR_NETWORK: number;
  8380. readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
  8381. }
  8382. declare var MediaError: {
  8383. prototype: MediaError;
  8384. new(): MediaError;
  8385. readonly MEDIA_ERR_ABORTED: number;
  8386. readonly MEDIA_ERR_DECODE: number;
  8387. readonly MEDIA_ERR_NETWORK: number;
  8388. readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
  8389. };
  8390. /**
  8391. * This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session.
  8392. * Available only in secure contexts.
  8393. */
  8394. interface MediaKeyMessageEvent extends Event {
  8395. readonly message: ArrayBuffer;
  8396. readonly messageType: MediaKeyMessageType;
  8397. }
  8398. declare var MediaKeyMessageEvent: {
  8399. prototype: MediaKeyMessageEvent;
  8400. new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent;
  8401. };
  8402. interface MediaKeySessionEventMap {
  8403. "keystatuseschange": Event;
  8404. "message": MediaKeyMessageEvent;
  8405. }
  8406. /**
  8407. * This EncryptedMediaExtensions API interface represents a context for message exchange with a content decryption module (CDM).
  8408. * Available only in secure contexts.
  8409. */
  8410. interface MediaKeySession extends EventTarget {
  8411. readonly closed: Promise<MediaKeySessionClosedReason>;
  8412. readonly expiration: number;
  8413. readonly keyStatuses: MediaKeyStatusMap;
  8414. onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;
  8415. onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null;
  8416. readonly sessionId: string;
  8417. close(): Promise<void>;
  8418. generateRequest(initDataType: string, initData: BufferSource): Promise<void>;
  8419. load(sessionId: string): Promise<boolean>;
  8420. remove(): Promise<void>;
  8421. update(response: BufferSource): Promise<void>;
  8422. addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  8423. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  8424. removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  8425. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  8426. }
  8427. declare var MediaKeySession: {
  8428. prototype: MediaKeySession;
  8429. new(): MediaKeySession;
  8430. };
  8431. /**
  8432. * This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs.
  8433. * Available only in secure contexts.
  8434. */
  8435. interface MediaKeyStatusMap {
  8436. readonly size: number;
  8437. get(keyId: BufferSource): MediaKeyStatus | undefined;
  8438. has(keyId: BufferSource): boolean;
  8439. forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;
  8440. }
  8441. declare var MediaKeyStatusMap: {
  8442. prototype: MediaKeyStatusMap;
  8443. new(): MediaKeyStatusMap;
  8444. };
  8445. /**
  8446. * 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.
  8447. * Available only in secure contexts.
  8448. */
  8449. interface MediaKeySystemAccess {
  8450. readonly keySystem: string;
  8451. createMediaKeys(): Promise<MediaKeys>;
  8452. getConfiguration(): MediaKeySystemConfiguration;
  8453. }
  8454. declare var MediaKeySystemAccess: {
  8455. prototype: MediaKeySystemAccess;
  8456. new(): MediaKeySystemAccess;
  8457. };
  8458. /**
  8459. * This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback.
  8460. * Available only in secure contexts.
  8461. */
  8462. interface MediaKeys {
  8463. createSession(sessionType?: MediaKeySessionType): MediaKeySession;
  8464. setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
  8465. }
  8466. declare var MediaKeys: {
  8467. prototype: MediaKeys;
  8468. new(): MediaKeys;
  8469. };
  8470. interface MediaList {
  8471. readonly length: number;
  8472. mediaText: string;
  8473. toString(): string;
  8474. appendMedium(medium: string): void;
  8475. deleteMedium(medium: string): void;
  8476. item(index: number): string | null;
  8477. [index: number]: string;
  8478. }
  8479. declare var MediaList: {
  8480. prototype: MediaList;
  8481. new(): MediaList;
  8482. };
  8483. interface MediaMetadata {
  8484. album: string;
  8485. artist: string;
  8486. artwork: ReadonlyArray<MediaImage>;
  8487. title: string;
  8488. }
  8489. declare var MediaMetadata: {
  8490. prototype: MediaMetadata;
  8491. new(init?: MediaMetadataInit): MediaMetadata;
  8492. };
  8493. interface MediaQueryListEventMap {
  8494. "change": MediaQueryListEvent;
  8495. }
  8496. /** 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). */
  8497. interface MediaQueryList extends EventTarget {
  8498. readonly matches: boolean;
  8499. readonly media: string;
  8500. onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;
  8501. /** @deprecated */
  8502. addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
  8503. /** @deprecated */
  8504. removeListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
  8505. addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  8506. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  8507. removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  8508. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  8509. }
  8510. declare var MediaQueryList: {
  8511. prototype: MediaQueryList;
  8512. new(): MediaQueryList;
  8513. };
  8514. interface MediaQueryListEvent extends Event {
  8515. readonly matches: boolean;
  8516. readonly media: string;
  8517. }
  8518. declare var MediaQueryListEvent: {
  8519. prototype: MediaQueryListEvent;
  8520. new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent;
  8521. };
  8522. interface MediaRecorderEventMap {
  8523. "dataavailable": BlobEvent;
  8524. "error": MediaRecorderErrorEvent;
  8525. "pause": Event;
  8526. "resume": Event;
  8527. "start": Event;
  8528. "stop": Event;
  8529. }
  8530. interface MediaRecorder extends EventTarget {
  8531. readonly audioBitsPerSecond: number;
  8532. readonly mimeType: string;
  8533. ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
  8534. onerror: ((this: MediaRecorder, ev: MediaRecorderErrorEvent) => any) | null;
  8535. onpause: ((this: MediaRecorder, ev: Event) => any) | null;
  8536. onresume: ((this: MediaRecorder, ev: Event) => any) | null;
  8537. onstart: ((this: MediaRecorder, ev: Event) => any) | null;
  8538. onstop: ((this: MediaRecorder, ev: Event) => any) | null;
  8539. readonly state: RecordingState;
  8540. readonly stream: MediaStream;
  8541. readonly videoBitsPerSecond: number;
  8542. pause(): void;
  8543. requestData(): void;
  8544. resume(): void;
  8545. start(timeslice?: number): void;
  8546. stop(): void;
  8547. addEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  8548. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  8549. removeEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  8550. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  8551. }
  8552. declare var MediaRecorder: {
  8553. prototype: MediaRecorder;
  8554. new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder;
  8555. isTypeSupported(type: string): boolean;
  8556. };
  8557. interface MediaRecorderErrorEvent extends Event {
  8558. readonly error: DOMException;
  8559. }
  8560. declare var MediaRecorderErrorEvent: {
  8561. prototype: MediaRecorderErrorEvent;
  8562. new(type: string, eventInitDict: MediaRecorderErrorEventInit): MediaRecorderErrorEvent;
  8563. };
  8564. interface MediaSession {
  8565. metadata: MediaMetadata | null;
  8566. playbackState: MediaSessionPlaybackState;
  8567. setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;
  8568. setPositionState(state?: MediaPositionState): void;
  8569. }
  8570. declare var MediaSession: {
  8571. prototype: MediaSession;
  8572. new(): MediaSession;
  8573. };
  8574. interface MediaSourceEventMap {
  8575. "sourceclose": Event;
  8576. "sourceended": Event;
  8577. "sourceopen": Event;
  8578. }
  8579. /** 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. */
  8580. interface MediaSource extends EventTarget {
  8581. readonly activeSourceBuffers: SourceBufferList;
  8582. duration: number;
  8583. onsourceclose: ((this: MediaSource, ev: Event) => any) | null;
  8584. onsourceended: ((this: MediaSource, ev: Event) => any) | null;
  8585. onsourceopen: ((this: MediaSource, ev: Event) => any) | null;
  8586. readonly readyState: ReadyState;
  8587. readonly sourceBuffers: SourceBufferList;
  8588. addSourceBuffer(type: string): SourceBuffer;
  8589. clearLiveSeekableRange(): void;
  8590. endOfStream(error?: EndOfStreamError): void;
  8591. removeSourceBuffer(sourceBuffer: SourceBuffer): void;
  8592. setLiveSeekableRange(start: number, end: number): void;
  8593. addEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  8594. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  8595. removeEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  8596. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  8597. }
  8598. declare var MediaSource: {
  8599. prototype: MediaSource;
  8600. new(): MediaSource;
  8601. isTypeSupported(type: string): boolean;
  8602. };
  8603. interface MediaStreamEventMap {
  8604. "addtrack": MediaStreamTrackEvent;
  8605. "removetrack": MediaStreamTrackEvent;
  8606. }
  8607. /** 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. */
  8608. interface MediaStream extends EventTarget {
  8609. readonly active: boolean;
  8610. readonly id: string;
  8611. onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
  8612. onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
  8613. addTrack(track: MediaStreamTrack): void;
  8614. clone(): MediaStream;
  8615. getAudioTracks(): MediaStreamTrack[];
  8616. getTrackById(trackId: string): MediaStreamTrack | null;
  8617. getTracks(): MediaStreamTrack[];
  8618. getVideoTracks(): MediaStreamTrack[];
  8619. removeTrack(track: MediaStreamTrack): void;
  8620. addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  8621. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  8622. removeEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  8623. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  8624. }
  8625. declare var MediaStream: {
  8626. prototype: MediaStream;
  8627. new(): MediaStream;
  8628. new(stream: MediaStream): MediaStream;
  8629. new(tracks: MediaStreamTrack[]): MediaStream;
  8630. };
  8631. interface MediaStreamAudioDestinationNode extends AudioNode {
  8632. readonly stream: MediaStream;
  8633. }
  8634. declare var MediaStreamAudioDestinationNode: {
  8635. prototype: MediaStreamAudioDestinationNode;
  8636. new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode;
  8637. };
  8638. /** 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. */
  8639. interface MediaStreamAudioSourceNode extends AudioNode {
  8640. readonly mediaStream: MediaStream;
  8641. }
  8642. declare var MediaStreamAudioSourceNode: {
  8643. prototype: MediaStreamAudioSourceNode;
  8644. new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode;
  8645. };
  8646. interface MediaStreamTrackEventMap {
  8647. "ended": Event;
  8648. "mute": Event;
  8649. "unmute": Event;
  8650. }
  8651. /** A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. */
  8652. interface MediaStreamTrack extends EventTarget {
  8653. contentHint: string;
  8654. enabled: boolean;
  8655. readonly id: string;
  8656. readonly kind: string;
  8657. readonly label: string;
  8658. readonly muted: boolean;
  8659. onended: ((this: MediaStreamTrack, ev: Event) => any) | null;
  8660. onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
  8661. onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
  8662. readonly readyState: MediaStreamTrackState;
  8663. applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;
  8664. clone(): MediaStreamTrack;
  8665. getCapabilities(): MediaTrackCapabilities;
  8666. getConstraints(): MediaTrackConstraints;
  8667. getSettings(): MediaTrackSettings;
  8668. stop(): void;
  8669. addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  8670. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  8671. removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  8672. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  8673. }
  8674. declare var MediaStreamTrack: {
  8675. prototype: MediaStreamTrack;
  8676. new(): MediaStreamTrack;
  8677. };
  8678. /** 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. */
  8679. interface MediaStreamTrackEvent extends Event {
  8680. readonly track: MediaStreamTrack;
  8681. }
  8682. declare var MediaStreamTrackEvent: {
  8683. prototype: MediaStreamTrackEvent;
  8684. new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent;
  8685. };
  8686. /** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */
  8687. interface MessageChannel {
  8688. /** Returns the first MessagePort object. */
  8689. readonly port1: MessagePort;
  8690. /** Returns the second MessagePort object. */
  8691. readonly port2: MessagePort;
  8692. }
  8693. declare var MessageChannel: {
  8694. prototype: MessageChannel;
  8695. new(): MessageChannel;
  8696. };
  8697. /** A message received by a target object. */
  8698. interface MessageEvent<T = any> extends Event {
  8699. /** Returns the data of the message. */
  8700. readonly data: T;
  8701. /** Returns the last event ID string, for server-sent events. */
  8702. readonly lastEventId: string;
  8703. /** Returns the origin of the message, for server-sent events and cross-document messaging. */
  8704. readonly origin: string;
  8705. /** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */
  8706. readonly ports: ReadonlyArray<MessagePort>;
  8707. /** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */
  8708. readonly source: MessageEventSource | null;
  8709. /** @deprecated */
  8710. initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
  8711. }
  8712. declare var MessageEvent: {
  8713. prototype: MessageEvent;
  8714. new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
  8715. };
  8716. interface MessagePortEventMap {
  8717. "message": MessageEvent;
  8718. "messageerror": MessageEvent;
  8719. }
  8720. /** 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. */
  8721. interface MessagePort extends EventTarget {
  8722. onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
  8723. onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
  8724. /** Disconnects the port, so that it is no longer active. */
  8725. close(): void;
  8726. /**
  8727. * 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.
  8728. *
  8729. * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
  8730. */
  8731. postMessage(message: any, transfer: Transferable[]): void;
  8732. postMessage(message: any, options?: StructuredSerializeOptions): void;
  8733. /** Begins dispatching messages received on the port. */
  8734. start(): void;
  8735. addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  8736. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  8737. removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  8738. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  8739. }
  8740. declare var MessagePort: {
  8741. prototype: MessagePort;
  8742. new(): MessagePort;
  8743. };
  8744. /**
  8745. * Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object.
  8746. * @deprecated
  8747. */
  8748. interface MimeType {
  8749. /**
  8750. * Returns the MIME type's description.
  8751. * @deprecated
  8752. */
  8753. readonly description: string;
  8754. /**
  8755. * Returns the Plugin object that implements this MIME type.
  8756. * @deprecated
  8757. */
  8758. readonly enabledPlugin: Plugin;
  8759. /**
  8760. * Returns the MIME type's typical file extensions, in a comma-separated list.
  8761. * @deprecated
  8762. */
  8763. readonly suffixes: string;
  8764. /**
  8765. * Returns the MIME type.
  8766. * @deprecated
  8767. */
  8768. readonly type: string;
  8769. }
  8770. /** @deprecated */
  8771. declare var MimeType: {
  8772. prototype: MimeType;
  8773. new(): MimeType;
  8774. };
  8775. /**
  8776. * Returns an array of MimeType instances, each of which contains information about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes.
  8777. * @deprecated
  8778. */
  8779. interface MimeTypeArray {
  8780. /** @deprecated */
  8781. readonly length: number;
  8782. /** @deprecated */
  8783. item(index: number): MimeType | null;
  8784. /** @deprecated */
  8785. namedItem(name: string): MimeType | null;
  8786. [index: number]: MimeType;
  8787. }
  8788. /** @deprecated */
  8789. declare var MimeTypeArray: {
  8790. prototype: MimeTypeArray;
  8791. new(): MimeTypeArray;
  8792. };
  8793. /** 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. */
  8794. interface MouseEvent extends UIEvent {
  8795. readonly altKey: boolean;
  8796. readonly button: number;
  8797. readonly buttons: number;
  8798. readonly clientX: number;
  8799. readonly clientY: number;
  8800. readonly ctrlKey: boolean;
  8801. readonly metaKey: boolean;
  8802. readonly movementX: number;
  8803. readonly movementY: number;
  8804. readonly offsetX: number;
  8805. readonly offsetY: number;
  8806. readonly pageX: number;
  8807. readonly pageY: number;
  8808. readonly relatedTarget: EventTarget | null;
  8809. readonly screenX: number;
  8810. readonly screenY: number;
  8811. readonly shiftKey: boolean;
  8812. readonly x: number;
  8813. readonly y: number;
  8814. getModifierState(keyArg: string): boolean;
  8815. /** @deprecated */
  8816. 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;
  8817. }
  8818. declare var MouseEvent: {
  8819. prototype: MouseEvent;
  8820. new(type: string, eventInitDict?: MouseEventInit): MouseEvent;
  8821. };
  8822. /**
  8823. * Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes.
  8824. * @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.
  8825. */
  8826. interface MutationEvent extends Event {
  8827. /** @deprecated */
  8828. readonly attrChange: number;
  8829. /** @deprecated */
  8830. readonly attrName: string;
  8831. /** @deprecated */
  8832. readonly newValue: string;
  8833. /** @deprecated */
  8834. readonly prevValue: string;
  8835. /** @deprecated */
  8836. readonly relatedNode: Node | null;
  8837. /** @deprecated */
  8838. initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void;
  8839. readonly ADDITION: number;
  8840. readonly MODIFICATION: number;
  8841. readonly REMOVAL: number;
  8842. }
  8843. /** @deprecated */
  8844. declare var MutationEvent: {
  8845. prototype: MutationEvent;
  8846. new(): MutationEvent;
  8847. readonly ADDITION: number;
  8848. readonly MODIFICATION: number;
  8849. readonly REMOVAL: number;
  8850. };
  8851. /** 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. */
  8852. interface MutationObserver {
  8853. /** Stops observer from observing any mutations. Until the observe() method is used again, observer's callback will not be invoked. */
  8854. disconnect(): void;
  8855. /**
  8856. * Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object).
  8857. *
  8858. * The options argument allows for setting mutation observation options via object members.
  8859. */
  8860. observe(target: Node, options?: MutationObserverInit): void;
  8861. /** Empties the record queue and returns what was in there. */
  8862. takeRecords(): MutationRecord[];
  8863. }
  8864. declare var MutationObserver: {
  8865. prototype: MutationObserver;
  8866. new(callback: MutationCallback): MutationObserver;
  8867. };
  8868. /** A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver's callback. */
  8869. interface MutationRecord {
  8870. /** Return the nodes added and removed respectively. */
  8871. readonly addedNodes: NodeList;
  8872. /** Returns the local name of the changed attribute, and null otherwise. */
  8873. readonly attributeName: string | null;
  8874. /** Returns the namespace of the changed attribute, and null otherwise. */
  8875. readonly attributeNamespace: string | null;
  8876. /** Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. */
  8877. readonly nextSibling: Node | null;
  8878. /** 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. */
  8879. readonly oldValue: string | null;
  8880. /** Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. */
  8881. readonly previousSibling: Node | null;
  8882. /** Return the nodes added and removed respectively. */
  8883. readonly removedNodes: NodeList;
  8884. /** 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. */
  8885. readonly target: Node;
  8886. /** 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. */
  8887. readonly type: MutationRecordType;
  8888. }
  8889. declare var MutationRecord: {
  8890. prototype: MutationRecord;
  8891. new(): MutationRecord;
  8892. };
  8893. /** 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. */
  8894. interface NamedNodeMap {
  8895. readonly length: number;
  8896. getNamedItem(qualifiedName: string): Attr | null;
  8897. getNamedItemNS(namespace: string | null, localName: string): Attr | null;
  8898. item(index: number): Attr | null;
  8899. removeNamedItem(qualifiedName: string): Attr;
  8900. removeNamedItemNS(namespace: string | null, localName: string): Attr;
  8901. setNamedItem(attr: Attr): Attr | null;
  8902. setNamedItemNS(attr: Attr): Attr | null;
  8903. [index: number]: Attr;
  8904. }
  8905. declare var NamedNodeMap: {
  8906. prototype: NamedNodeMap;
  8907. new(): NamedNodeMap;
  8908. };
  8909. /** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
  8910. interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
  8911. /** Available only in secure contexts. */
  8912. readonly clipboard: Clipboard;
  8913. /** Available only in secure contexts. */
  8914. readonly credentials: CredentialsContainer;
  8915. readonly doNotTrack: string | null;
  8916. readonly geolocation: Geolocation;
  8917. readonly maxTouchPoints: number;
  8918. readonly mediaCapabilities: MediaCapabilities;
  8919. /** Available only in secure contexts. */
  8920. readonly mediaDevices: MediaDevices;
  8921. readonly mediaSession: MediaSession;
  8922. readonly permissions: Permissions;
  8923. /** Available only in secure contexts. */
  8924. readonly serviceWorker: ServiceWorkerContainer;
  8925. /** Available only in secure contexts. */
  8926. canShare(data?: ShareData): boolean;
  8927. getGamepads(): (Gamepad | null)[];
  8928. /** Available only in secure contexts. */
  8929. requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
  8930. sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
  8931. /** Available only in secure contexts. */
  8932. share(data?: ShareData): Promise<void>;
  8933. vibrate(pattern: VibratePattern): boolean;
  8934. }
  8935. declare var Navigator: {
  8936. prototype: Navigator;
  8937. new(): Navigator;
  8938. };
  8939. interface NavigatorAutomationInformation {
  8940. readonly webdriver: boolean;
  8941. }
  8942. interface NavigatorConcurrentHardware {
  8943. readonly hardwareConcurrency: number;
  8944. }
  8945. interface NavigatorContentUtils {
  8946. /** Available only in secure contexts. */
  8947. registerProtocolHandler(scheme: string, url: string | URL): void;
  8948. }
  8949. interface NavigatorCookies {
  8950. readonly cookieEnabled: boolean;
  8951. }
  8952. interface NavigatorID {
  8953. /** @deprecated */
  8954. readonly appCodeName: string;
  8955. /** @deprecated */
  8956. readonly appName: string;
  8957. /** @deprecated */
  8958. readonly appVersion: string;
  8959. /** @deprecated */
  8960. readonly platform: string;
  8961. /** @deprecated */
  8962. readonly product: string;
  8963. /** @deprecated */
  8964. readonly productSub: string;
  8965. readonly userAgent: string;
  8966. readonly vendor: string;
  8967. /** @deprecated */
  8968. readonly vendorSub: string;
  8969. }
  8970. interface NavigatorLanguage {
  8971. readonly language: string;
  8972. readonly languages: ReadonlyArray<string>;
  8973. }
  8974. interface NavigatorNetworkInformation {
  8975. readonly connection: NetworkInformation;
  8976. }
  8977. interface NavigatorOnLine {
  8978. readonly onLine: boolean;
  8979. }
  8980. interface NavigatorPlugins {
  8981. /** @deprecated */
  8982. readonly mimeTypes: MimeTypeArray;
  8983. /** @deprecated */
  8984. readonly plugins: PluginArray;
  8985. /** @deprecated */
  8986. javaEnabled(): boolean;
  8987. }
  8988. /** Available only in secure contexts. */
  8989. interface NavigatorStorage {
  8990. readonly storage: StorageManager;
  8991. }
  8992. interface NetworkInformation extends EventTarget {
  8993. readonly type: ConnectionType;
  8994. }
  8995. declare var NetworkInformation: {
  8996. prototype: NetworkInformation;
  8997. new(): NetworkInformation;
  8998. };
  8999. /** 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. */
  9000. interface Node extends EventTarget {
  9001. /** Returns node's node document's document base URL. */
  9002. readonly baseURI: string;
  9003. /** Returns the children. */
  9004. readonly childNodes: NodeListOf<ChildNode>;
  9005. /** Returns the first child. */
  9006. readonly firstChild: ChildNode | null;
  9007. /** Returns true if node is connected and false otherwise. */
  9008. readonly isConnected: boolean;
  9009. /** Returns the last child. */
  9010. readonly lastChild: ChildNode | null;
  9011. /** Returns the next sibling. */
  9012. readonly nextSibling: ChildNode | null;
  9013. /** Returns a string appropriate for the type of node. */
  9014. readonly nodeName: string;
  9015. /** Returns the type of node. */
  9016. readonly nodeType: number;
  9017. nodeValue: string | null;
  9018. /** Returns the node document. Returns null for documents. */
  9019. readonly ownerDocument: Document | null;
  9020. /** Returns the parent element. */
  9021. readonly parentElement: HTMLElement | null;
  9022. /** Returns the parent. */
  9023. readonly parentNode: ParentNode | null;
  9024. /** Returns the previous sibling. */
  9025. readonly previousSibling: ChildNode | null;
  9026. textContent: string | null;
  9027. appendChild<T extends Node>(node: T): T;
  9028. /** Returns a copy of node. If deep is true, the copy also includes the node's descendants. */
  9029. cloneNode(deep?: boolean): Node;
  9030. /** Returns a bitmask indicating the position of other relative to node. */
  9031. compareDocumentPosition(other: Node): number;
  9032. /** Returns true if other is an inclusive descendant of node, and false otherwise. */
  9033. contains(other: Node | null): boolean;
  9034. /** Returns node's root. */
  9035. getRootNode(options?: GetRootNodeOptions): Node;
  9036. /** Returns whether node has children. */
  9037. hasChildNodes(): boolean;
  9038. insertBefore<T extends Node>(node: T, child: Node | null): T;
  9039. isDefaultNamespace(namespace: string | null): boolean;
  9040. /** Returns whether node and otherNode have the same properties. */
  9041. isEqualNode(otherNode: Node | null): boolean;
  9042. isSameNode(otherNode: Node | null): boolean;
  9043. lookupNamespaceURI(prefix: string | null): string | null;
  9044. lookupPrefix(namespace: string | null): string | null;
  9045. /** Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. */
  9046. normalize(): void;
  9047. removeChild<T extends Node>(child: T): T;
  9048. replaceChild<T extends Node>(node: Node, child: T): T;
  9049. readonly ATTRIBUTE_NODE: number;
  9050. /** node is a CDATASection node. */
  9051. readonly CDATA_SECTION_NODE: number;
  9052. /** node is a Comment node. */
  9053. readonly COMMENT_NODE: number;
  9054. /** node is a DocumentFragment node. */
  9055. readonly DOCUMENT_FRAGMENT_NODE: number;
  9056. /** node is a document. */
  9057. readonly DOCUMENT_NODE: number;
  9058. /** Set when other is a descendant of node. */
  9059. readonly DOCUMENT_POSITION_CONTAINED_BY: number;
  9060. /** Set when other is an ancestor of node. */
  9061. readonly DOCUMENT_POSITION_CONTAINS: number;
  9062. /** Set when node and other are not in the same tree. */
  9063. readonly DOCUMENT_POSITION_DISCONNECTED: number;
  9064. /** Set when other is following node. */
  9065. readonly DOCUMENT_POSITION_FOLLOWING: number;
  9066. readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
  9067. /** Set when other is preceding node. */
  9068. readonly DOCUMENT_POSITION_PRECEDING: number;
  9069. /** node is a doctype. */
  9070. readonly DOCUMENT_TYPE_NODE: number;
  9071. /** node is an element. */
  9072. readonly ELEMENT_NODE: number;
  9073. readonly ENTITY_NODE: number;
  9074. readonly ENTITY_REFERENCE_NODE: number;
  9075. readonly NOTATION_NODE: number;
  9076. /** node is a ProcessingInstruction node. */
  9077. readonly PROCESSING_INSTRUCTION_NODE: number;
  9078. /** node is a Text node. */
  9079. readonly TEXT_NODE: number;
  9080. }
  9081. declare var Node: {
  9082. prototype: Node;
  9083. new(): Node;
  9084. readonly ATTRIBUTE_NODE: number;
  9085. /** node is a CDATASection node. */
  9086. readonly CDATA_SECTION_NODE: number;
  9087. /** node is a Comment node. */
  9088. readonly COMMENT_NODE: number;
  9089. /** node is a DocumentFragment node. */
  9090. readonly DOCUMENT_FRAGMENT_NODE: number;
  9091. /** node is a document. */
  9092. readonly DOCUMENT_NODE: number;
  9093. /** Set when other is a descendant of node. */
  9094. readonly DOCUMENT_POSITION_CONTAINED_BY: number;
  9095. /** Set when other is an ancestor of node. */
  9096. readonly DOCUMENT_POSITION_CONTAINS: number;
  9097. /** Set when node and other are not in the same tree. */
  9098. readonly DOCUMENT_POSITION_DISCONNECTED: number;
  9099. /** Set when other is following node. */
  9100. readonly DOCUMENT_POSITION_FOLLOWING: number;
  9101. readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
  9102. /** Set when other is preceding node. */
  9103. readonly DOCUMENT_POSITION_PRECEDING: number;
  9104. /** node is a doctype. */
  9105. readonly DOCUMENT_TYPE_NODE: number;
  9106. /** node is an element. */
  9107. readonly ELEMENT_NODE: number;
  9108. readonly ENTITY_NODE: number;
  9109. readonly ENTITY_REFERENCE_NODE: number;
  9110. readonly NOTATION_NODE: number;
  9111. /** node is a ProcessingInstruction node. */
  9112. readonly PROCESSING_INSTRUCTION_NODE: number;
  9113. /** node is a Text node. */
  9114. readonly TEXT_NODE: number;
  9115. };
  9116. /** 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. */
  9117. interface NodeIterator {
  9118. readonly filter: NodeFilter | null;
  9119. readonly pointerBeforeReferenceNode: boolean;
  9120. readonly referenceNode: Node;
  9121. readonly root: Node;
  9122. readonly whatToShow: number;
  9123. /** @deprecated */
  9124. detach(): void;
  9125. nextNode(): Node | null;
  9126. previousNode(): Node | null;
  9127. }
  9128. declare var NodeIterator: {
  9129. prototype: NodeIterator;
  9130. new(): NodeIterator;
  9131. };
  9132. /** NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). */
  9133. interface NodeList {
  9134. /** Returns the number of nodes in the collection. */
  9135. readonly length: number;
  9136. /** Returns the node with index index from the collection. The nodes are sorted in tree order. */
  9137. item(index: number): Node | null;
  9138. /**
  9139. * Performs the specified action for each node in an list.
  9140. * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
  9141. * @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.
  9142. */
  9143. forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void;
  9144. [index: number]: Node;
  9145. }
  9146. declare var NodeList: {
  9147. prototype: NodeList;
  9148. new(): NodeList;
  9149. };
  9150. interface NodeListOf<TNode extends Node> extends NodeList {
  9151. item(index: number): TNode;
  9152. /**
  9153. * Performs the specified action for each node in an list.
  9154. * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
  9155. * @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.
  9156. */
  9157. forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void;
  9158. [index: number]: TNode;
  9159. }
  9160. interface NonDocumentTypeChildNode {
  9161. /** Returns the first following sibling that is an element, and null otherwise. */
  9162. readonly nextElementSibling: Element | null;
  9163. /** Returns the first preceding sibling that is an element, and null otherwise. */
  9164. readonly previousElementSibling: Element | null;
  9165. }
  9166. interface NonElementParentNode {
  9167. /** Returns the first element within node's descendants whose ID is elementId. */
  9168. getElementById(elementId: string): Element | null;
  9169. }
  9170. interface NotificationEventMap {
  9171. "click": Event;
  9172. "close": Event;
  9173. "error": Event;
  9174. "show": Event;
  9175. }
  9176. /** This Notifications API interface is used to configure and display desktop notifications to the user. */
  9177. interface Notification extends EventTarget {
  9178. readonly body: string;
  9179. readonly data: any;
  9180. readonly dir: NotificationDirection;
  9181. readonly icon: string;
  9182. readonly lang: string;
  9183. onclick: ((this: Notification, ev: Event) => any) | null;
  9184. onclose: ((this: Notification, ev: Event) => any) | null;
  9185. onerror: ((this: Notification, ev: Event) => any) | null;
  9186. onshow: ((this: Notification, ev: Event) => any) | null;
  9187. readonly tag: string;
  9188. readonly title: string;
  9189. close(): void;
  9190. addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  9191. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  9192. removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  9193. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  9194. }
  9195. declare var Notification: {
  9196. prototype: Notification;
  9197. new(title: string, options?: NotificationOptions): Notification;
  9198. readonly permission: NotificationPermission;
  9199. requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
  9200. };
  9201. /** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
  9202. interface OES_element_index_uint {
  9203. }
  9204. interface OES_fbo_render_mipmap {
  9205. }
  9206. /** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
  9207. interface OES_standard_derivatives {
  9208. readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;
  9209. }
  9210. /** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */
  9211. interface OES_texture_float {
  9212. }
  9213. /** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */
  9214. interface OES_texture_float_linear {
  9215. }
  9216. /** 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. */
  9217. interface OES_texture_half_float {
  9218. readonly HALF_FLOAT_OES: GLenum;
  9219. }
  9220. /** 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. */
  9221. interface OES_texture_half_float_linear {
  9222. }
  9223. interface OES_vertex_array_object {
  9224. bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
  9225. createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
  9226. deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
  9227. isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
  9228. readonly VERTEX_ARRAY_BINDING_OES: GLenum;
  9229. }
  9230. interface OVR_multiview2 {
  9231. framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
  9232. readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: GLenum;
  9233. readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: GLenum;
  9234. readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: GLenum;
  9235. readonly MAX_VIEWS_OVR: GLenum;
  9236. }
  9237. /** The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface. */
  9238. interface OfflineAudioCompletionEvent extends Event {
  9239. readonly renderedBuffer: AudioBuffer;
  9240. }
  9241. declare var OfflineAudioCompletionEvent: {
  9242. prototype: OfflineAudioCompletionEvent;
  9243. new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent;
  9244. };
  9245. interface OfflineAudioContextEventMap extends BaseAudioContextEventMap {
  9246. "complete": OfflineAudioCompletionEvent;
  9247. }
  9248. /** 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. */
  9249. interface OfflineAudioContext extends BaseAudioContext {
  9250. readonly length: number;
  9251. oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;
  9252. resume(): Promise<void>;
  9253. startRendering(): Promise<AudioBuffer>;
  9254. suspend(suspendTime: number): Promise<void>;
  9255. addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  9256. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  9257. removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  9258. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  9259. }
  9260. declare var OfflineAudioContext: {
  9261. prototype: OfflineAudioContext;
  9262. new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext;
  9263. new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;
  9264. };
  9265. /** 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. */
  9266. interface OscillatorNode extends AudioScheduledSourceNode {
  9267. readonly detune: AudioParam;
  9268. readonly frequency: AudioParam;
  9269. type: OscillatorType;
  9270. setPeriodicWave(periodicWave: PeriodicWave): void;
  9271. addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  9272. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  9273. removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  9274. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  9275. }
  9276. declare var OscillatorNode: {
  9277. prototype: OscillatorNode;
  9278. new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode;
  9279. };
  9280. interface OverconstrainedError extends Error {
  9281. readonly constraint: string;
  9282. }
  9283. declare var OverconstrainedError: {
  9284. prototype: OverconstrainedError;
  9285. new(constraint: string, message?: string): OverconstrainedError;
  9286. };
  9287. /** The PageTransitionEvent is fired when a document is being loaded or unloaded. */
  9288. interface PageTransitionEvent extends Event {
  9289. /**
  9290. * For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true.
  9291. *
  9292. * 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.
  9293. *
  9294. * Things that can cause the page to be unsalvageable include:
  9295. *
  9296. * The user agent decided to not keep the Document alive in a session history entry after unload
  9297. * Having iframes that are not salvageable
  9298. * Active WebSocket objects
  9299. * Aborting a Document
  9300. */
  9301. readonly persisted: boolean;
  9302. }
  9303. declare var PageTransitionEvent: {
  9304. prototype: PageTransitionEvent;
  9305. new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;
  9306. };
  9307. /** 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! */
  9308. interface PannerNode extends AudioNode {
  9309. coneInnerAngle: number;
  9310. coneOuterAngle: number;
  9311. coneOuterGain: number;
  9312. distanceModel: DistanceModelType;
  9313. maxDistance: number;
  9314. readonly orientationX: AudioParam;
  9315. readonly orientationY: AudioParam;
  9316. readonly orientationZ: AudioParam;
  9317. panningModel: PanningModelType;
  9318. readonly positionX: AudioParam;
  9319. readonly positionY: AudioParam;
  9320. readonly positionZ: AudioParam;
  9321. refDistance: number;
  9322. rolloffFactor: number;
  9323. /** @deprecated */
  9324. setOrientation(x: number, y: number, z: number): void;
  9325. /** @deprecated */
  9326. setPosition(x: number, y: number, z: number): void;
  9327. }
  9328. declare var PannerNode: {
  9329. prototype: PannerNode;
  9330. new(context: BaseAudioContext, options?: PannerOptions): PannerNode;
  9331. };
  9332. interface ParentNode extends Node {
  9333. readonly childElementCount: number;
  9334. /** Returns the child elements. */
  9335. readonly children: HTMLCollection;
  9336. /** Returns the first child that is an element, and null otherwise. */
  9337. readonly firstElementChild: Element | null;
  9338. /** Returns the last child that is an element, and null otherwise. */
  9339. readonly lastElementChild: Element | null;
  9340. /**
  9341. * Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
  9342. *
  9343. * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
  9344. */
  9345. append(...nodes: (Node | string)[]): void;
  9346. /**
  9347. * Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
  9348. *
  9349. * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
  9350. */
  9351. prepend(...nodes: (Node | string)[]): void;
  9352. /** Returns the first element that is a descendant of node that matches selectors. */
  9353. querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
  9354. querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
  9355. querySelector<E extends Element = Element>(selectors: string): E | null;
  9356. /** Returns all element descendants of node that match selectors. */
  9357. querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
  9358. querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
  9359. querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
  9360. /**
  9361. * Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
  9362. *
  9363. * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
  9364. */
  9365. replaceChildren(...nodes: (Node | string)[]): void;
  9366. }
  9367. /** 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. */
  9368. interface Path2D extends CanvasPath {
  9369. /** Adds to the path the path given by the argument. */
  9370. addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
  9371. }
  9372. declare var Path2D: {
  9373. prototype: Path2D;
  9374. new(path?: Path2D | string): Path2D;
  9375. };
  9376. /** Available only in secure contexts. */
  9377. interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {
  9378. readonly methodDetails: any;
  9379. readonly methodName: string;
  9380. }
  9381. declare var PaymentMethodChangeEvent: {
  9382. prototype: PaymentMethodChangeEvent;
  9383. new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent;
  9384. };
  9385. interface PaymentRequestEventMap {
  9386. "paymentmethodchange": Event;
  9387. }
  9388. /**
  9389. * 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.
  9390. * Available only in secure contexts.
  9391. */
  9392. interface PaymentRequest extends EventTarget {
  9393. readonly id: string;
  9394. onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
  9395. abort(): Promise<void>;
  9396. canMakePayment(): Promise<boolean>;
  9397. show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>;
  9398. addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  9399. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  9400. removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  9401. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  9402. }
  9403. declare var PaymentRequest: {
  9404. prototype: PaymentRequest;
  9405. new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;
  9406. };
  9407. /**
  9408. * This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action.
  9409. * Available only in secure contexts.
  9410. */
  9411. interface PaymentRequestUpdateEvent extends Event {
  9412. updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void;
  9413. }
  9414. declare var PaymentRequestUpdateEvent: {
  9415. prototype: PaymentRequestUpdateEvent;
  9416. new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
  9417. };
  9418. /**
  9419. * This Payment Request API interface is returned after a user selects a payment method and approves a payment request.
  9420. * Available only in secure contexts.
  9421. */
  9422. interface PaymentResponse extends EventTarget {
  9423. readonly details: any;
  9424. readonly methodName: string;
  9425. readonly requestId: string;
  9426. complete(result?: PaymentComplete): Promise<void>;
  9427. retry(errorFields?: PaymentValidationErrors): Promise<void>;
  9428. toJSON(): any;
  9429. }
  9430. declare var PaymentResponse: {
  9431. prototype: PaymentResponse;
  9432. new(): PaymentResponse;
  9433. };
  9434. interface PerformanceEventMap {
  9435. "resourcetimingbufferfull": Event;
  9436. }
  9437. /** 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. */
  9438. interface Performance extends EventTarget {
  9439. /** @deprecated */
  9440. readonly navigation: PerformanceNavigation;
  9441. onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
  9442. readonly timeOrigin: DOMHighResTimeStamp;
  9443. /** @deprecated */
  9444. readonly timing: PerformanceTiming;
  9445. clearMarks(markName?: string): void;
  9446. clearMeasures(measureName?: string): void;
  9447. clearResourceTimings(): void;
  9448. getEntries(): PerformanceEntryList;
  9449. getEntriesByName(name: string, type?: string): PerformanceEntryList;
  9450. getEntriesByType(type: string): PerformanceEntryList;
  9451. mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
  9452. measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
  9453. now(): DOMHighResTimeStamp;
  9454. setResourceTimingBufferSize(maxSize: number): void;
  9455. toJSON(): any;
  9456. addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  9457. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  9458. removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  9459. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  9460. }
  9461. declare var Performance: {
  9462. prototype: Performance;
  9463. new(): Performance;
  9464. };
  9465. /** 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). */
  9466. interface PerformanceEntry {
  9467. readonly duration: DOMHighResTimeStamp;
  9468. readonly entryType: string;
  9469. readonly name: string;
  9470. readonly startTime: DOMHighResTimeStamp;
  9471. toJSON(): any;
  9472. }
  9473. declare var PerformanceEntry: {
  9474. prototype: PerformanceEntry;
  9475. new(): PerformanceEntry;
  9476. };
  9477. interface PerformanceEventTiming extends PerformanceEntry {
  9478. readonly cancelable: boolean;
  9479. readonly processingEnd: DOMHighResTimeStamp;
  9480. readonly processingStart: DOMHighResTimeStamp;
  9481. readonly target: Node | null;
  9482. }
  9483. declare var PerformanceEventTiming: {
  9484. prototype: PerformanceEventTiming;
  9485. new(): PerformanceEventTiming;
  9486. };
  9487. /** 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. */
  9488. interface PerformanceMark extends PerformanceEntry {
  9489. readonly detail: any;
  9490. }
  9491. declare var PerformanceMark: {
  9492. prototype: PerformanceMark;
  9493. new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
  9494. };
  9495. /** 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. */
  9496. interface PerformanceMeasure extends PerformanceEntry {
  9497. readonly detail: any;
  9498. }
  9499. declare var PerformanceMeasure: {
  9500. prototype: PerformanceMeasure;
  9501. new(): PerformanceMeasure;
  9502. };
  9503. /**
  9504. * The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done.
  9505. * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
  9506. */
  9507. interface PerformanceNavigation {
  9508. /** @deprecated */
  9509. readonly redirectCount: number;
  9510. /** @deprecated */
  9511. readonly type: number;
  9512. /** @deprecated */
  9513. toJSON(): any;
  9514. readonly TYPE_BACK_FORWARD: number;
  9515. readonly TYPE_NAVIGATE: number;
  9516. readonly TYPE_RELOAD: number;
  9517. readonly TYPE_RESERVED: number;
  9518. }
  9519. /** @deprecated */
  9520. declare var PerformanceNavigation: {
  9521. prototype: PerformanceNavigation;
  9522. new(): PerformanceNavigation;
  9523. readonly TYPE_BACK_FORWARD: number;
  9524. readonly TYPE_NAVIGATE: number;
  9525. readonly TYPE_RELOAD: number;
  9526. readonly TYPE_RESERVED: number;
  9527. };
  9528. /** 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. */
  9529. interface PerformanceNavigationTiming extends PerformanceResourceTiming {
  9530. readonly domComplete: DOMHighResTimeStamp;
  9531. readonly domContentLoadedEventEnd: DOMHighResTimeStamp;
  9532. readonly domContentLoadedEventStart: DOMHighResTimeStamp;
  9533. readonly domInteractive: DOMHighResTimeStamp;
  9534. readonly loadEventEnd: DOMHighResTimeStamp;
  9535. readonly loadEventStart: DOMHighResTimeStamp;
  9536. readonly redirectCount: number;
  9537. readonly type: NavigationType;
  9538. readonly unloadEventEnd: DOMHighResTimeStamp;
  9539. readonly unloadEventStart: DOMHighResTimeStamp;
  9540. toJSON(): any;
  9541. }
  9542. declare var PerformanceNavigationTiming: {
  9543. prototype: PerformanceNavigationTiming;
  9544. new(): PerformanceNavigationTiming;
  9545. };
  9546. interface PerformanceObserver {
  9547. disconnect(): void;
  9548. observe(options?: PerformanceObserverInit): void;
  9549. takeRecords(): PerformanceEntryList;
  9550. }
  9551. declare var PerformanceObserver: {
  9552. prototype: PerformanceObserver;
  9553. new(callback: PerformanceObserverCallback): PerformanceObserver;
  9554. readonly supportedEntryTypes: ReadonlyArray<string>;
  9555. };
  9556. interface PerformanceObserverEntryList {
  9557. getEntries(): PerformanceEntryList;
  9558. getEntriesByName(name: string, type?: string): PerformanceEntryList;
  9559. getEntriesByType(type: string): PerformanceEntryList;
  9560. }
  9561. declare var PerformanceObserverEntryList: {
  9562. prototype: PerformanceObserverEntryList;
  9563. new(): PerformanceObserverEntryList;
  9564. };
  9565. interface PerformancePaintTiming extends PerformanceEntry {
  9566. }
  9567. declare var PerformancePaintTiming: {
  9568. prototype: PerformancePaintTiming;
  9569. new(): PerformancePaintTiming;
  9570. };
  9571. /** 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. */
  9572. interface PerformanceResourceTiming extends PerformanceEntry {
  9573. readonly connectEnd: DOMHighResTimeStamp;
  9574. readonly connectStart: DOMHighResTimeStamp;
  9575. readonly decodedBodySize: number;
  9576. readonly domainLookupEnd: DOMHighResTimeStamp;
  9577. readonly domainLookupStart: DOMHighResTimeStamp;
  9578. readonly encodedBodySize: number;
  9579. readonly fetchStart: DOMHighResTimeStamp;
  9580. readonly initiatorType: string;
  9581. readonly nextHopProtocol: string;
  9582. readonly redirectEnd: DOMHighResTimeStamp;
  9583. readonly redirectStart: DOMHighResTimeStamp;
  9584. readonly requestStart: DOMHighResTimeStamp;
  9585. readonly responseEnd: DOMHighResTimeStamp;
  9586. readonly responseStart: DOMHighResTimeStamp;
  9587. readonly secureConnectionStart: DOMHighResTimeStamp;
  9588. readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
  9589. readonly transferSize: number;
  9590. readonly workerStart: DOMHighResTimeStamp;
  9591. toJSON(): any;
  9592. }
  9593. declare var PerformanceResourceTiming: {
  9594. prototype: PerformanceResourceTiming;
  9595. new(): PerformanceResourceTiming;
  9596. };
  9597. interface PerformanceServerTiming {
  9598. readonly description: string;
  9599. readonly duration: DOMHighResTimeStamp;
  9600. readonly name: string;
  9601. toJSON(): any;
  9602. }
  9603. declare var PerformanceServerTiming: {
  9604. prototype: PerformanceServerTiming;
  9605. new(): PerformanceServerTiming;
  9606. };
  9607. /**
  9608. * 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.
  9609. * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
  9610. */
  9611. interface PerformanceTiming {
  9612. /** @deprecated */
  9613. readonly connectEnd: number;
  9614. /** @deprecated */
  9615. readonly connectStart: number;
  9616. /** @deprecated */
  9617. readonly domComplete: number;
  9618. /** @deprecated */
  9619. readonly domContentLoadedEventEnd: number;
  9620. /** @deprecated */
  9621. readonly domContentLoadedEventStart: number;
  9622. /** @deprecated */
  9623. readonly domInteractive: number;
  9624. /** @deprecated */
  9625. readonly domLoading: number;
  9626. /** @deprecated */
  9627. readonly domainLookupEnd: number;
  9628. /** @deprecated */
  9629. readonly domainLookupStart: number;
  9630. /** @deprecated */
  9631. readonly fetchStart: number;
  9632. /** @deprecated */
  9633. readonly loadEventEnd: number;
  9634. /** @deprecated */
  9635. readonly loadEventStart: number;
  9636. /** @deprecated */
  9637. readonly navigationStart: number;
  9638. /** @deprecated */
  9639. readonly redirectEnd: number;
  9640. /** @deprecated */
  9641. readonly redirectStart: number;
  9642. /** @deprecated */
  9643. readonly requestStart: number;
  9644. /** @deprecated */
  9645. readonly responseEnd: number;
  9646. /** @deprecated */
  9647. readonly responseStart: number;
  9648. /** @deprecated */
  9649. readonly secureConnectionStart: number;
  9650. /** @deprecated */
  9651. readonly unloadEventEnd: number;
  9652. /** @deprecated */
  9653. readonly unloadEventStart: number;
  9654. /** @deprecated */
  9655. toJSON(): any;
  9656. }
  9657. /** @deprecated */
  9658. declare var PerformanceTiming: {
  9659. prototype: PerformanceTiming;
  9660. new(): PerformanceTiming;
  9661. };
  9662. /** 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(). */
  9663. interface PeriodicWave {
  9664. }
  9665. declare var PeriodicWave: {
  9666. prototype: PeriodicWave;
  9667. new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave;
  9668. };
  9669. interface PermissionStatusEventMap {
  9670. "change": Event;
  9671. }
  9672. interface PermissionStatus extends EventTarget {
  9673. onchange: ((this: PermissionStatus, ev: Event) => any) | null;
  9674. readonly state: PermissionState;
  9675. addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  9676. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  9677. removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  9678. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  9679. }
  9680. declare var PermissionStatus: {
  9681. prototype: PermissionStatus;
  9682. new(): PermissionStatus;
  9683. };
  9684. interface Permissions {
  9685. query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
  9686. }
  9687. declare var Permissions: {
  9688. prototype: Permissions;
  9689. new(): Permissions;
  9690. };
  9691. interface PictureInPictureWindowEventMap {
  9692. "resize": Event;
  9693. }
  9694. interface PictureInPictureWindow extends EventTarget {
  9695. readonly height: number;
  9696. onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null;
  9697. readonly width: number;
  9698. addEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  9699. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  9700. removeEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  9701. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  9702. }
  9703. declare var PictureInPictureWindow: {
  9704. prototype: PictureInPictureWindow;
  9705. new(): PictureInPictureWindow;
  9706. };
  9707. /**
  9708. * Provides information about a browser plugin.
  9709. * @deprecated
  9710. */
  9711. interface Plugin {
  9712. /**
  9713. * Returns the plugin's description.
  9714. * @deprecated
  9715. */
  9716. readonly description: string;
  9717. /**
  9718. * Returns the plugin library's filename, if applicable on the current platform.
  9719. * @deprecated
  9720. */
  9721. readonly filename: string;
  9722. /**
  9723. * Returns the number of MIME types, represented by MimeType objects, supported by the plugin.
  9724. * @deprecated
  9725. */
  9726. readonly length: number;
  9727. /**
  9728. * Returns the plugin's name.
  9729. * @deprecated
  9730. */
  9731. readonly name: string;
  9732. /**
  9733. * Returns the specified MimeType object.
  9734. * @deprecated
  9735. */
  9736. item(index: number): MimeType | null;
  9737. /** @deprecated */
  9738. namedItem(name: string): MimeType | null;
  9739. [index: number]: MimeType;
  9740. }
  9741. /** @deprecated */
  9742. declare var Plugin: {
  9743. prototype: Plugin;
  9744. new(): Plugin;
  9745. };
  9746. /**
  9747. * 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.
  9748. * @deprecated
  9749. */
  9750. interface PluginArray {
  9751. /** @deprecated */
  9752. readonly length: number;
  9753. /** @deprecated */
  9754. item(index: number): Plugin | null;
  9755. /** @deprecated */
  9756. namedItem(name: string): Plugin | null;
  9757. /** @deprecated */
  9758. refresh(): void;
  9759. [index: number]: Plugin;
  9760. }
  9761. /** @deprecated */
  9762. declare var PluginArray: {
  9763. prototype: PluginArray;
  9764. new(): PluginArray;
  9765. };
  9766. /** 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. */
  9767. interface PointerEvent extends MouseEvent {
  9768. readonly height: number;
  9769. readonly isPrimary: boolean;
  9770. readonly pointerId: number;
  9771. readonly pointerType: string;
  9772. readonly pressure: number;
  9773. readonly tangentialPressure: number;
  9774. readonly tiltX: number;
  9775. readonly tiltY: number;
  9776. readonly twist: number;
  9777. readonly width: number;
  9778. /** Available only in secure contexts. */
  9779. getCoalescedEvents(): PointerEvent[];
  9780. getPredictedEvents(): PointerEvent[];
  9781. }
  9782. declare var PointerEvent: {
  9783. prototype: PointerEvent;
  9784. new(type: string, eventInitDict?: PointerEventInit): PointerEvent;
  9785. };
  9786. /** PopStateEvent is an event handler for the popstate event on the window. */
  9787. interface PopStateEvent extends Event {
  9788. /** Returns a copy of the information that was provided to pushState() or replaceState(). */
  9789. readonly state: any;
  9790. }
  9791. declare var PopStateEvent: {
  9792. prototype: PopStateEvent;
  9793. new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;
  9794. };
  9795. /** A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them. */
  9796. interface ProcessingInstruction extends CharacterData, LinkStyle {
  9797. readonly ownerDocument: Document;
  9798. readonly target: string;
  9799. }
  9800. declare var ProcessingInstruction: {
  9801. prototype: ProcessingInstruction;
  9802. new(): ProcessingInstruction;
  9803. };
  9804. /** 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>). */
  9805. interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
  9806. readonly lengthComputable: boolean;
  9807. readonly loaded: number;
  9808. readonly target: T | null;
  9809. readonly total: number;
  9810. }
  9811. declare var ProgressEvent: {
  9812. prototype: ProgressEvent;
  9813. new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
  9814. };
  9815. interface PromiseRejectionEvent extends Event {
  9816. readonly promise: Promise<any>;
  9817. readonly reason: any;
  9818. }
  9819. declare var PromiseRejectionEvent: {
  9820. prototype: PromiseRejectionEvent;
  9821. new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
  9822. };
  9823. /** Available only in secure contexts. */
  9824. interface PublicKeyCredential extends Credential {
  9825. readonly rawId: ArrayBuffer;
  9826. readonly response: AuthenticatorResponse;
  9827. getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
  9828. }
  9829. declare var PublicKeyCredential: {
  9830. prototype: PublicKeyCredential;
  9831. new(): PublicKeyCredential;
  9832. isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
  9833. };
  9834. /**
  9835. * This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
  9836. * Available only in secure contexts.
  9837. */
  9838. interface PushManager {
  9839. getSubscription(): Promise<PushSubscription | null>;
  9840. permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;
  9841. subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
  9842. }
  9843. declare var PushManager: {
  9844. prototype: PushManager;
  9845. new(): PushManager;
  9846. readonly supportedContentEncodings: ReadonlyArray<string>;
  9847. };
  9848. /**
  9849. * This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
  9850. * Available only in secure contexts.
  9851. */
  9852. interface PushSubscription {
  9853. readonly endpoint: string;
  9854. readonly options: PushSubscriptionOptions;
  9855. getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
  9856. toJSON(): PushSubscriptionJSON;
  9857. unsubscribe(): Promise<boolean>;
  9858. }
  9859. declare var PushSubscription: {
  9860. prototype: PushSubscription;
  9861. new(): PushSubscription;
  9862. };
  9863. /** Available only in secure contexts. */
  9864. interface PushSubscriptionOptions {
  9865. readonly applicationServerKey: ArrayBuffer | null;
  9866. }
  9867. declare var PushSubscriptionOptions: {
  9868. prototype: PushSubscriptionOptions;
  9869. new(): PushSubscriptionOptions;
  9870. };
  9871. interface RTCCertificate {
  9872. readonly expires: DOMTimeStamp;
  9873. getFingerprints(): RTCDtlsFingerprint[];
  9874. }
  9875. declare var RTCCertificate: {
  9876. prototype: RTCCertificate;
  9877. new(): RTCCertificate;
  9878. };
  9879. interface RTCDTMFSenderEventMap {
  9880. "tonechange": RTCDTMFToneChangeEvent;
  9881. }
  9882. interface RTCDTMFSender extends EventTarget {
  9883. readonly canInsertDTMF: boolean;
  9884. ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null;
  9885. readonly toneBuffer: string;
  9886. insertDTMF(tones: string, duration?: number, interToneGap?: number): void;
  9887. addEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  9888. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  9889. removeEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  9890. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  9891. }
  9892. declare var RTCDTMFSender: {
  9893. prototype: RTCDTMFSender;
  9894. new(): RTCDTMFSender;
  9895. };
  9896. /** Events sent to indicate that DTMF tones have started or finished playing. This interface is used by the tonechange event. */
  9897. interface RTCDTMFToneChangeEvent extends Event {
  9898. readonly tone: string;
  9899. }
  9900. declare var RTCDTMFToneChangeEvent: {
  9901. prototype: RTCDTMFToneChangeEvent;
  9902. new(type: string, eventInitDict?: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;
  9903. };
  9904. interface RTCDataChannelEventMap {
  9905. "bufferedamountlow": Event;
  9906. "close": Event;
  9907. "error": Event;
  9908. "message": MessageEvent;
  9909. "open": Event;
  9910. }
  9911. interface RTCDataChannel extends EventTarget {
  9912. binaryType: BinaryType;
  9913. readonly bufferedAmount: number;
  9914. bufferedAmountLowThreshold: number;
  9915. readonly id: number | null;
  9916. readonly label: string;
  9917. readonly maxPacketLifeTime: number | null;
  9918. readonly maxRetransmits: number | null;
  9919. readonly negotiated: boolean;
  9920. onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
  9921. onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
  9922. onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
  9923. onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
  9924. onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
  9925. readonly ordered: boolean;
  9926. readonly protocol: string;
  9927. readonly readyState: RTCDataChannelState;
  9928. close(): void;
  9929. send(data: string): void;
  9930. send(data: Blob): void;
  9931. send(data: ArrayBuffer): void;
  9932. send(data: ArrayBufferView): void;
  9933. addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  9934. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  9935. removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  9936. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  9937. }
  9938. declare var RTCDataChannel: {
  9939. prototype: RTCDataChannel;
  9940. new(): RTCDataChannel;
  9941. };
  9942. interface RTCDataChannelEvent extends Event {
  9943. readonly channel: RTCDataChannel;
  9944. }
  9945. declare var RTCDataChannelEvent: {
  9946. prototype: RTCDataChannelEvent;
  9947. new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent;
  9948. };
  9949. interface RTCDtlsTransportEventMap {
  9950. "statechange": Event;
  9951. }
  9952. interface RTCDtlsTransport extends EventTarget {
  9953. onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
  9954. readonly state: RTCDtlsTransportState;
  9955. addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  9956. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  9957. removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  9958. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  9959. }
  9960. declare var RTCDtlsTransport: {
  9961. prototype: RTCDtlsTransport;
  9962. new(): RTCDtlsTransport;
  9963. };
  9964. /** The RTCIceCandidate interface—part of the WebRTC API—represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. */
  9965. interface RTCIceCandidate {
  9966. readonly address: string | null;
  9967. readonly candidate: string;
  9968. readonly component: RTCIceComponent | null;
  9969. readonly foundation: string | null;
  9970. readonly port: number | null;
  9971. readonly priority: number | null;
  9972. readonly protocol: RTCIceProtocol | null;
  9973. readonly relatedAddress: string | null;
  9974. readonly relatedPort: number | null;
  9975. readonly sdpMLineIndex: number | null;
  9976. readonly sdpMid: string | null;
  9977. readonly tcpType: RTCIceTcpCandidateType | null;
  9978. readonly type: RTCIceCandidateType | null;
  9979. readonly usernameFragment: string | null;
  9980. toJSON(): RTCIceCandidateInit;
  9981. }
  9982. declare var RTCIceCandidate: {
  9983. prototype: RTCIceCandidate;
  9984. new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
  9985. };
  9986. /** Provides access to information about the ICE transport layer over which the data is being sent and received. */
  9987. interface RTCIceTransport extends EventTarget {
  9988. readonly gatheringState: RTCIceGathererState;
  9989. readonly state: RTCIceTransportState;
  9990. }
  9991. declare var RTCIceTransport: {
  9992. prototype: RTCIceTransport;
  9993. new(): RTCIceTransport;
  9994. };
  9995. interface RTCPeerConnectionEventMap {
  9996. "connectionstatechange": Event;
  9997. "datachannel": RTCDataChannelEvent;
  9998. "icecandidate": RTCPeerConnectionIceEvent;
  9999. "icecandidateerror": Event;
  10000. "iceconnectionstatechange": Event;
  10001. "icegatheringstatechange": Event;
  10002. "negotiationneeded": Event;
  10003. "signalingstatechange": Event;
  10004. "track": RTCTrackEvent;
  10005. }
  10006. /** 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. */
  10007. interface RTCPeerConnection extends EventTarget {
  10008. readonly canTrickleIceCandidates: boolean | null;
  10009. readonly connectionState: RTCPeerConnectionState;
  10010. readonly currentLocalDescription: RTCSessionDescription | null;
  10011. readonly currentRemoteDescription: RTCSessionDescription | null;
  10012. readonly iceConnectionState: RTCIceConnectionState;
  10013. readonly iceGatheringState: RTCIceGatheringState;
  10014. readonly localDescription: RTCSessionDescription | null;
  10015. onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
  10016. ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;
  10017. onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;
  10018. onicecandidateerror: ((this: RTCPeerConnection, ev: Event) => any) | null;
  10019. oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
  10020. onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
  10021. onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;
  10022. onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
  10023. ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;
  10024. readonly pendingLocalDescription: RTCSessionDescription | null;
  10025. readonly pendingRemoteDescription: RTCSessionDescription | null;
  10026. readonly remoteDescription: RTCSessionDescription | null;
  10027. readonly signalingState: RTCSignalingState;
  10028. addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;
  10029. /** @deprecated */
  10030. addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
  10031. addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;
  10032. addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;
  10033. close(): void;
  10034. createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;
  10035. /** @deprecated */
  10036. createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
  10037. createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;
  10038. createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;
  10039. /** @deprecated */
  10040. createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;
  10041. getConfiguration(): RTCConfiguration;
  10042. getReceivers(): RTCRtpReceiver[];
  10043. getSenders(): RTCRtpSender[];
  10044. getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;
  10045. getTransceivers(): RTCRtpTransceiver[];
  10046. removeTrack(sender: RTCRtpSender): void;
  10047. restartIce(): void;
  10048. setConfiguration(configuration?: RTCConfiguration): void;
  10049. setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>;
  10050. /** @deprecated */
  10051. setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
  10052. setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;
  10053. /** @deprecated */
  10054. setRemoteDescription(description: RTCSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
  10055. addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10056. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10057. removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10058. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10059. }
  10060. declare var RTCPeerConnection: {
  10061. prototype: RTCPeerConnection;
  10062. new(configuration?: RTCConfiguration): RTCPeerConnection;
  10063. generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;
  10064. };
  10065. interface RTCPeerConnectionIceErrorEvent extends Event {
  10066. readonly address: string | null;
  10067. readonly errorCode: number;
  10068. readonly errorText: string;
  10069. readonly port: number | null;
  10070. readonly url: string;
  10071. }
  10072. declare var RTCPeerConnectionIceErrorEvent: {
  10073. prototype: RTCPeerConnectionIceErrorEvent;
  10074. new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;
  10075. };
  10076. /** Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate. */
  10077. interface RTCPeerConnectionIceEvent extends Event {
  10078. readonly candidate: RTCIceCandidate | null;
  10079. }
  10080. declare var RTCPeerConnectionIceEvent: {
  10081. prototype: RTCPeerConnectionIceEvent;
  10082. new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;
  10083. };
  10084. /** This WebRTC API interface manages the reception and decoding of data for a MediaStreamTrack on an RTCPeerConnection. */
  10085. interface RTCRtpReceiver {
  10086. readonly track: MediaStreamTrack;
  10087. readonly transport: RTCDtlsTransport | null;
  10088. getContributingSources(): RTCRtpContributingSource[];
  10089. getParameters(): RTCRtpReceiveParameters;
  10090. getStats(): Promise<RTCStatsReport>;
  10091. getSynchronizationSources(): RTCRtpSynchronizationSource[];
  10092. }
  10093. declare var RTCRtpReceiver: {
  10094. prototype: RTCRtpReceiver;
  10095. new(): RTCRtpReceiver;
  10096. getCapabilities(kind: string): RTCRtpCapabilities | null;
  10097. };
  10098. /** Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer. */
  10099. interface RTCRtpSender {
  10100. readonly dtmf: RTCDTMFSender | null;
  10101. readonly track: MediaStreamTrack | null;
  10102. readonly transport: RTCDtlsTransport | null;
  10103. getParameters(): RTCRtpSendParameters;
  10104. getStats(): Promise<RTCStatsReport>;
  10105. replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;
  10106. setParameters(parameters: RTCRtpSendParameters): Promise<void>;
  10107. setStreams(...streams: MediaStream[]): void;
  10108. }
  10109. declare var RTCRtpSender: {
  10110. prototype: RTCRtpSender;
  10111. new(): RTCRtpSender;
  10112. getCapabilities(kind: string): RTCRtpCapabilities | null;
  10113. };
  10114. interface RTCRtpTransceiver {
  10115. readonly currentDirection: RTCRtpTransceiverDirection | null;
  10116. direction: RTCRtpTransceiverDirection;
  10117. readonly mid: string | null;
  10118. readonly receiver: RTCRtpReceiver;
  10119. readonly sender: RTCRtpSender;
  10120. stop(): void;
  10121. }
  10122. declare var RTCRtpTransceiver: {
  10123. prototype: RTCRtpTransceiver;
  10124. new(): RTCRtpTransceiver;
  10125. };
  10126. /** 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. */
  10127. interface RTCSessionDescription {
  10128. readonly sdp: string;
  10129. readonly type: RTCSdpType;
  10130. toJSON(): any;
  10131. }
  10132. declare var RTCSessionDescription: {
  10133. prototype: RTCSessionDescription;
  10134. new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;
  10135. };
  10136. interface RTCStatsReport {
  10137. forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void;
  10138. }
  10139. declare var RTCStatsReport: {
  10140. prototype: RTCStatsReport;
  10141. new(): RTCStatsReport;
  10142. };
  10143. interface RTCTrackEvent extends Event {
  10144. readonly receiver: RTCRtpReceiver;
  10145. readonly streams: ReadonlyArray<MediaStream>;
  10146. readonly track: MediaStreamTrack;
  10147. readonly transceiver: RTCRtpTransceiver;
  10148. }
  10149. declare var RTCTrackEvent: {
  10150. prototype: RTCTrackEvent;
  10151. new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent;
  10152. };
  10153. interface RadioNodeList extends NodeList {
  10154. value: string;
  10155. }
  10156. declare var RadioNodeList: {
  10157. prototype: RadioNodeList;
  10158. new(): RadioNodeList;
  10159. };
  10160. /** A fragment of a document that can contain nodes and parts of text nodes. */
  10161. interface Range extends AbstractRange {
  10162. /** Returns the node, furthest away from the document, that is an ancestor of both range's start node and end node. */
  10163. readonly commonAncestorContainer: Node;
  10164. cloneContents(): DocumentFragment;
  10165. cloneRange(): Range;
  10166. collapse(toStart?: boolean): void;
  10167. compareBoundaryPoints(how: number, sourceRange: Range): number;
  10168. /** 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. */
  10169. comparePoint(node: Node, offset: number): number;
  10170. createContextualFragment(fragment: string): DocumentFragment;
  10171. deleteContents(): void;
  10172. detach(): void;
  10173. extractContents(): DocumentFragment;
  10174. getBoundingClientRect(): DOMRect;
  10175. getClientRects(): DOMRectList;
  10176. insertNode(node: Node): void;
  10177. /** Returns whether range intersects node. */
  10178. intersectsNode(node: Node): boolean;
  10179. isPointInRange(node: Node, offset: number): boolean;
  10180. selectNode(node: Node): void;
  10181. selectNodeContents(node: Node): void;
  10182. setEnd(node: Node, offset: number): void;
  10183. setEndAfter(node: Node): void;
  10184. setEndBefore(node: Node): void;
  10185. setStart(node: Node, offset: number): void;
  10186. setStartAfter(node: Node): void;
  10187. setStartBefore(node: Node): void;
  10188. surroundContents(newParent: Node): void;
  10189. toString(): string;
  10190. readonly END_TO_END: number;
  10191. readonly END_TO_START: number;
  10192. readonly START_TO_END: number;
  10193. readonly START_TO_START: number;
  10194. }
  10195. declare var Range: {
  10196. prototype: Range;
  10197. new(): Range;
  10198. readonly END_TO_END: number;
  10199. readonly END_TO_START: number;
  10200. readonly START_TO_END: number;
  10201. readonly START_TO_START: number;
  10202. toString(): string;
  10203. };
  10204. /** 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. */
  10205. interface ReadableStream<R = any> {
  10206. readonly locked: boolean;
  10207. cancel(reason?: any): Promise<void>;
  10208. getReader(): ReadableStreamDefaultReader<R>;
  10209. pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
  10210. pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
  10211. tee(): [ReadableStream<R>, ReadableStream<R>];
  10212. }
  10213. declare var ReadableStream: {
  10214. prototype: ReadableStream;
  10215. new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
  10216. };
  10217. interface ReadableStreamDefaultController<R = any> {
  10218. readonly desiredSize: number | null;
  10219. close(): void;
  10220. enqueue(chunk?: R): void;
  10221. error(e?: any): void;
  10222. }
  10223. declare var ReadableStreamDefaultController: {
  10224. prototype: ReadableStreamDefaultController;
  10225. new(): ReadableStreamDefaultController;
  10226. };
  10227. interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
  10228. read(): Promise<ReadableStreamDefaultReadResult<R>>;
  10229. releaseLock(): void;
  10230. }
  10231. declare var ReadableStreamDefaultReader: {
  10232. prototype: ReadableStreamDefaultReader;
  10233. new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
  10234. };
  10235. interface ReadableStreamGenericReader {
  10236. readonly closed: Promise<undefined>;
  10237. cancel(reason?: any): Promise<void>;
  10238. }
  10239. interface RemotePlaybackEventMap {
  10240. "connect": Event;
  10241. "connecting": Event;
  10242. "disconnect": Event;
  10243. }
  10244. interface RemotePlayback extends EventTarget {
  10245. onconnect: ((this: RemotePlayback, ev: Event) => any) | null;
  10246. onconnecting: ((this: RemotePlayback, ev: Event) => any) | null;
  10247. ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null;
  10248. readonly state: RemotePlaybackState;
  10249. cancelWatchAvailability(id?: number): Promise<void>;
  10250. prompt(): Promise<void>;
  10251. watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>;
  10252. addEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10253. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10254. removeEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10255. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10256. }
  10257. declare var RemotePlayback: {
  10258. prototype: RemotePlayback;
  10259. new(): RemotePlayback;
  10260. };
  10261. /** This Fetch API interface represents a resource request. */
  10262. interface Request extends Body {
  10263. /** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */
  10264. readonly cache: RequestCache;
  10265. /** 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. */
  10266. readonly credentials: RequestCredentials;
  10267. /** Returns the kind of resource requested by request, e.g., "document" or "script". */
  10268. readonly destination: RequestDestination;
  10269. /** 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. */
  10270. readonly headers: Headers;
  10271. /** 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] */
  10272. readonly integrity: string;
  10273. /** Returns a boolean indicating whether or not request can outlive the global in which it was created. */
  10274. readonly keepalive: boolean;
  10275. /** Returns request's HTTP method, which is "GET" by default. */
  10276. readonly method: string;
  10277. /** 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. */
  10278. readonly mode: RequestMode;
  10279. /** 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. */
  10280. readonly redirect: RequestRedirect;
  10281. /** 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. */
  10282. readonly referrer: string;
  10283. /** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. */
  10284. readonly referrerPolicy: ReferrerPolicy;
  10285. /** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */
  10286. readonly signal: AbortSignal;
  10287. /** Returns the URL of request as a string. */
  10288. readonly url: string;
  10289. clone(): Request;
  10290. }
  10291. declare var Request: {
  10292. prototype: Request;
  10293. new(input: RequestInfo, init?: RequestInit): Request;
  10294. };
  10295. interface ResizeObserver {
  10296. disconnect(): void;
  10297. observe(target: Element, options?: ResizeObserverOptions): void;
  10298. unobserve(target: Element): void;
  10299. }
  10300. declare var ResizeObserver: {
  10301. prototype: ResizeObserver;
  10302. new(callback: ResizeObserverCallback): ResizeObserver;
  10303. };
  10304. interface ResizeObserverEntry {
  10305. readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
  10306. readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
  10307. readonly contentRect: DOMRectReadOnly;
  10308. readonly target: Element;
  10309. }
  10310. declare var ResizeObserverEntry: {
  10311. prototype: ResizeObserverEntry;
  10312. new(): ResizeObserverEntry;
  10313. };
  10314. interface ResizeObserverSize {
  10315. readonly blockSize: number;
  10316. readonly inlineSize: number;
  10317. }
  10318. declare var ResizeObserverSize: {
  10319. prototype: ResizeObserverSize;
  10320. new(): ResizeObserverSize;
  10321. };
  10322. /** This Fetch API interface represents the response to a request. */
  10323. interface Response extends Body {
  10324. readonly headers: Headers;
  10325. readonly ok: boolean;
  10326. readonly redirected: boolean;
  10327. readonly status: number;
  10328. readonly statusText: string;
  10329. readonly type: ResponseType;
  10330. readonly url: string;
  10331. clone(): Response;
  10332. }
  10333. declare var Response: {
  10334. prototype: Response;
  10335. new(body?: BodyInit | null, init?: ResponseInit): Response;
  10336. error(): Response;
  10337. redirect(url: string | URL, status?: number): Response;
  10338. };
  10339. /** Provides access to the properties of <a> element, as well as methods to manipulate them. */
  10340. interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
  10341. rel: string;
  10342. readonly relList: DOMTokenList;
  10343. readonly target: SVGAnimatedString;
  10344. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10345. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10346. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10347. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10348. }
  10349. declare var SVGAElement: {
  10350. prototype: SVGAElement;
  10351. new(): SVGAElement;
  10352. };
  10353. /** Used to represent a value that can be an <angle> or <number> value. An SVGAngle reflected through the animVal attribute is always read only. */
  10354. interface SVGAngle {
  10355. readonly unitType: number;
  10356. value: number;
  10357. valueAsString: string;
  10358. valueInSpecifiedUnits: number;
  10359. convertToSpecifiedUnits(unitType: number): void;
  10360. newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
  10361. readonly SVG_ANGLETYPE_DEG: number;
  10362. readonly SVG_ANGLETYPE_GRAD: number;
  10363. readonly SVG_ANGLETYPE_RAD: number;
  10364. readonly SVG_ANGLETYPE_UNKNOWN: number;
  10365. readonly SVG_ANGLETYPE_UNSPECIFIED: number;
  10366. }
  10367. declare var SVGAngle: {
  10368. prototype: SVGAngle;
  10369. new(): SVGAngle;
  10370. readonly SVG_ANGLETYPE_DEG: number;
  10371. readonly SVG_ANGLETYPE_GRAD: number;
  10372. readonly SVG_ANGLETYPE_RAD: number;
  10373. readonly SVG_ANGLETYPE_UNKNOWN: number;
  10374. readonly SVG_ANGLETYPE_UNSPECIFIED: number;
  10375. };
  10376. interface SVGAnimateElement extends SVGAnimationElement {
  10377. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10378. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10379. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10380. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10381. }
  10382. declare var SVGAnimateElement: {
  10383. prototype: SVGAnimateElement;
  10384. new(): SVGAnimateElement;
  10385. };
  10386. interface SVGAnimateMotionElement extends SVGAnimationElement {
  10387. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10388. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10389. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10390. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10391. }
  10392. declare var SVGAnimateMotionElement: {
  10393. prototype: SVGAnimateMotionElement;
  10394. new(): SVGAnimateMotionElement;
  10395. };
  10396. interface SVGAnimateTransformElement extends SVGAnimationElement {
  10397. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10398. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10399. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10400. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10401. }
  10402. declare var SVGAnimateTransformElement: {
  10403. prototype: SVGAnimateTransformElement;
  10404. new(): SVGAnimateTransformElement;
  10405. };
  10406. /** Used for attributes of basic type <angle> which can be animated. */
  10407. interface SVGAnimatedAngle {
  10408. readonly animVal: SVGAngle;
  10409. readonly baseVal: SVGAngle;
  10410. }
  10411. declare var SVGAnimatedAngle: {
  10412. prototype: SVGAnimatedAngle;
  10413. new(): SVGAnimatedAngle;
  10414. };
  10415. /** Used for attributes of type boolean which can be animated. */
  10416. interface SVGAnimatedBoolean {
  10417. readonly animVal: boolean;
  10418. baseVal: boolean;
  10419. }
  10420. declare var SVGAnimatedBoolean: {
  10421. prototype: SVGAnimatedBoolean;
  10422. new(): SVGAnimatedBoolean;
  10423. };
  10424. /** Used for attributes whose value must be a constant from a particular enumeration and which can be animated. */
  10425. interface SVGAnimatedEnumeration {
  10426. readonly animVal: number;
  10427. baseVal: number;
  10428. }
  10429. declare var SVGAnimatedEnumeration: {
  10430. prototype: SVGAnimatedEnumeration;
  10431. new(): SVGAnimatedEnumeration;
  10432. };
  10433. /** Used for attributes of basic type <integer> which can be animated. */
  10434. interface SVGAnimatedInteger {
  10435. readonly animVal: number;
  10436. baseVal: number;
  10437. }
  10438. declare var SVGAnimatedInteger: {
  10439. prototype: SVGAnimatedInteger;
  10440. new(): SVGAnimatedInteger;
  10441. };
  10442. /** Used for attributes of basic type <length> which can be animated. */
  10443. interface SVGAnimatedLength {
  10444. readonly animVal: SVGLength;
  10445. readonly baseVal: SVGLength;
  10446. }
  10447. declare var SVGAnimatedLength: {
  10448. prototype: SVGAnimatedLength;
  10449. new(): SVGAnimatedLength;
  10450. };
  10451. /** Used for attributes of type SVGLengthList which can be animated. */
  10452. interface SVGAnimatedLengthList {
  10453. readonly animVal: SVGLengthList;
  10454. readonly baseVal: SVGLengthList;
  10455. }
  10456. declare var SVGAnimatedLengthList: {
  10457. prototype: SVGAnimatedLengthList;
  10458. new(): SVGAnimatedLengthList;
  10459. };
  10460. /** Used for attributes of basic type <Number> which can be animated. */
  10461. interface SVGAnimatedNumber {
  10462. readonly animVal: number;
  10463. baseVal: number;
  10464. }
  10465. declare var SVGAnimatedNumber: {
  10466. prototype: SVGAnimatedNumber;
  10467. new(): SVGAnimatedNumber;
  10468. };
  10469. /** The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated. */
  10470. interface SVGAnimatedNumberList {
  10471. readonly animVal: SVGNumberList;
  10472. readonly baseVal: SVGNumberList;
  10473. }
  10474. declare var SVGAnimatedNumberList: {
  10475. prototype: SVGAnimatedNumberList;
  10476. new(): SVGAnimatedNumberList;
  10477. };
  10478. interface SVGAnimatedPoints {
  10479. readonly animatedPoints: SVGPointList;
  10480. readonly points: SVGPointList;
  10481. }
  10482. /** Used for attributes of type SVGPreserveAspectRatio which can be animated. */
  10483. interface SVGAnimatedPreserveAspectRatio {
  10484. readonly animVal: SVGPreserveAspectRatio;
  10485. readonly baseVal: SVGPreserveAspectRatio;
  10486. }
  10487. declare var SVGAnimatedPreserveAspectRatio: {
  10488. prototype: SVGAnimatedPreserveAspectRatio;
  10489. new(): SVGAnimatedPreserveAspectRatio;
  10490. };
  10491. /** Used for attributes of basic SVGRect which can be animated. */
  10492. interface SVGAnimatedRect {
  10493. readonly animVal: DOMRectReadOnly;
  10494. readonly baseVal: DOMRect;
  10495. }
  10496. declare var SVGAnimatedRect: {
  10497. prototype: SVGAnimatedRect;
  10498. new(): SVGAnimatedRect;
  10499. };
  10500. /** 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. */
  10501. interface SVGAnimatedString {
  10502. readonly animVal: string;
  10503. baseVal: string;
  10504. }
  10505. declare var SVGAnimatedString: {
  10506. prototype: SVGAnimatedString;
  10507. new(): SVGAnimatedString;
  10508. };
  10509. /** Used for attributes which take a list of numbers and which can be animated. */
  10510. interface SVGAnimatedTransformList {
  10511. readonly animVal: SVGTransformList;
  10512. readonly baseVal: SVGTransformList;
  10513. }
  10514. declare var SVGAnimatedTransformList: {
  10515. prototype: SVGAnimatedTransformList;
  10516. new(): SVGAnimatedTransformList;
  10517. };
  10518. interface SVGAnimationElement extends SVGElement, SVGTests {
  10519. readonly targetElement: SVGElement | null;
  10520. beginElement(): void;
  10521. beginElementAt(offset: number): void;
  10522. endElement(): void;
  10523. endElementAt(offset: number): void;
  10524. getCurrentTime(): number;
  10525. getSimpleDuration(): number;
  10526. getStartTime(): number;
  10527. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10528. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10529. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10530. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10531. }
  10532. declare var SVGAnimationElement: {
  10533. prototype: SVGAnimationElement;
  10534. new(): SVGAnimationElement;
  10535. };
  10536. /** 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. */
  10537. interface SVGCircleElement extends SVGGeometryElement {
  10538. readonly cx: SVGAnimatedLength;
  10539. readonly cy: SVGAnimatedLength;
  10540. readonly r: SVGAnimatedLength;
  10541. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10542. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10543. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10544. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10545. }
  10546. declare var SVGCircleElement: {
  10547. prototype: SVGCircleElement;
  10548. new(): SVGCircleElement;
  10549. };
  10550. /** Provides access to the properties of <clipPath> elements, as well as methods to manipulate them. */
  10551. interface SVGClipPathElement extends SVGElement {
  10552. readonly clipPathUnits: SVGAnimatedEnumeration;
  10553. readonly transform: SVGAnimatedTransformList;
  10554. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10555. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10556. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10557. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10558. }
  10559. declare var SVGClipPathElement: {
  10560. prototype: SVGClipPathElement;
  10561. new(): SVGClipPathElement;
  10562. };
  10563. /** A base interface used by the component transfer function interfaces. */
  10564. interface SVGComponentTransferFunctionElement extends SVGElement {
  10565. readonly amplitude: SVGAnimatedNumber;
  10566. readonly exponent: SVGAnimatedNumber;
  10567. readonly intercept: SVGAnimatedNumber;
  10568. readonly offset: SVGAnimatedNumber;
  10569. readonly slope: SVGAnimatedNumber;
  10570. readonly tableValues: SVGAnimatedNumberList;
  10571. readonly type: SVGAnimatedEnumeration;
  10572. readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
  10573. readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
  10574. readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
  10575. readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
  10576. readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
  10577. readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
  10578. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10579. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10580. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10581. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10582. }
  10583. declare var SVGComponentTransferFunctionElement: {
  10584. prototype: SVGComponentTransferFunctionElement;
  10585. new(): SVGComponentTransferFunctionElement;
  10586. readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
  10587. readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
  10588. readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
  10589. readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
  10590. readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
  10591. readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
  10592. };
  10593. /** Corresponds to the <defs> element. */
  10594. interface SVGDefsElement extends SVGGraphicsElement {
  10595. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10596. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10597. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10598. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10599. }
  10600. declare var SVGDefsElement: {
  10601. prototype: SVGDefsElement;
  10602. new(): SVGDefsElement;
  10603. };
  10604. /** Corresponds to the <desc> element. */
  10605. interface SVGDescElement extends SVGElement {
  10606. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10607. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10608. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10609. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10610. }
  10611. declare var SVGDescElement: {
  10612. prototype: SVGDescElement;
  10613. new(): SVGDescElement;
  10614. };
  10615. interface SVGElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
  10616. }
  10617. /** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */
  10618. interface SVGElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
  10619. /** @deprecated */
  10620. readonly className: any;
  10621. readonly ownerSVGElement: SVGSVGElement | null;
  10622. readonly viewportElement: SVGElement | null;
  10623. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10624. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10625. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10626. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10627. }
  10628. declare var SVGElement: {
  10629. prototype: SVGElement;
  10630. new(): SVGElement;
  10631. };
  10632. /** Provides access to the properties of <ellipse> elements. */
  10633. interface SVGEllipseElement extends SVGGeometryElement {
  10634. readonly cx: SVGAnimatedLength;
  10635. readonly cy: SVGAnimatedLength;
  10636. readonly rx: SVGAnimatedLength;
  10637. readonly ry: SVGAnimatedLength;
  10638. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10639. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10640. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10641. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10642. }
  10643. declare var SVGEllipseElement: {
  10644. prototype: SVGEllipseElement;
  10645. new(): SVGEllipseElement;
  10646. };
  10647. /** Corresponds to the <feBlend> element. */
  10648. interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
  10649. readonly in1: SVGAnimatedString;
  10650. readonly in2: SVGAnimatedString;
  10651. readonly mode: SVGAnimatedEnumeration;
  10652. readonly SVG_FEBLEND_MODE_COLOR: number;
  10653. readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
  10654. readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
  10655. readonly SVG_FEBLEND_MODE_DARKEN: number;
  10656. readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
  10657. readonly SVG_FEBLEND_MODE_EXCLUSION: number;
  10658. readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
  10659. readonly SVG_FEBLEND_MODE_HUE: number;
  10660. readonly SVG_FEBLEND_MODE_LIGHTEN: number;
  10661. readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
  10662. readonly SVG_FEBLEND_MODE_MULTIPLY: number;
  10663. readonly SVG_FEBLEND_MODE_NORMAL: number;
  10664. readonly SVG_FEBLEND_MODE_OVERLAY: number;
  10665. readonly SVG_FEBLEND_MODE_SATURATION: number;
  10666. readonly SVG_FEBLEND_MODE_SCREEN: number;
  10667. readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
  10668. readonly SVG_FEBLEND_MODE_UNKNOWN: number;
  10669. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10670. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10671. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10672. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10673. }
  10674. declare var SVGFEBlendElement: {
  10675. prototype: SVGFEBlendElement;
  10676. new(): SVGFEBlendElement;
  10677. readonly SVG_FEBLEND_MODE_COLOR: number;
  10678. readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
  10679. readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
  10680. readonly SVG_FEBLEND_MODE_DARKEN: number;
  10681. readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
  10682. readonly SVG_FEBLEND_MODE_EXCLUSION: number;
  10683. readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
  10684. readonly SVG_FEBLEND_MODE_HUE: number;
  10685. readonly SVG_FEBLEND_MODE_LIGHTEN: number;
  10686. readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
  10687. readonly SVG_FEBLEND_MODE_MULTIPLY: number;
  10688. readonly SVG_FEBLEND_MODE_NORMAL: number;
  10689. readonly SVG_FEBLEND_MODE_OVERLAY: number;
  10690. readonly SVG_FEBLEND_MODE_SATURATION: number;
  10691. readonly SVG_FEBLEND_MODE_SCREEN: number;
  10692. readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
  10693. readonly SVG_FEBLEND_MODE_UNKNOWN: number;
  10694. };
  10695. /** Corresponds to the <feColorMatrix> element. */
  10696. interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
  10697. readonly in1: SVGAnimatedString;
  10698. readonly type: SVGAnimatedEnumeration;
  10699. readonly values: SVGAnimatedNumberList;
  10700. readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
  10701. readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
  10702. readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
  10703. readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
  10704. readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
  10705. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10706. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10707. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10708. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10709. }
  10710. declare var SVGFEColorMatrixElement: {
  10711. prototype: SVGFEColorMatrixElement;
  10712. new(): SVGFEColorMatrixElement;
  10713. readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
  10714. readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
  10715. readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
  10716. readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
  10717. readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
  10718. };
  10719. /** Corresponds to the <feComponentTransfer> element. */
  10720. interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
  10721. readonly in1: SVGAnimatedString;
  10722. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10723. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10724. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10725. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10726. }
  10727. declare var SVGFEComponentTransferElement: {
  10728. prototype: SVGFEComponentTransferElement;
  10729. new(): SVGFEComponentTransferElement;
  10730. };
  10731. /** Corresponds to the <feComposite> element. */
  10732. interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
  10733. readonly in1: SVGAnimatedString;
  10734. readonly in2: SVGAnimatedString;
  10735. readonly k1: SVGAnimatedNumber;
  10736. readonly k2: SVGAnimatedNumber;
  10737. readonly k3: SVGAnimatedNumber;
  10738. readonly k4: SVGAnimatedNumber;
  10739. readonly operator: SVGAnimatedEnumeration;
  10740. readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
  10741. readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
  10742. readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
  10743. readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
  10744. readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
  10745. readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
  10746. readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
  10747. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10748. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10749. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10750. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10751. }
  10752. declare var SVGFECompositeElement: {
  10753. prototype: SVGFECompositeElement;
  10754. new(): SVGFECompositeElement;
  10755. readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
  10756. readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
  10757. readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
  10758. readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
  10759. readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
  10760. readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
  10761. readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
  10762. };
  10763. /** Corresponds to the <feConvolveMatrix> element. */
  10764. interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
  10765. readonly bias: SVGAnimatedNumber;
  10766. readonly divisor: SVGAnimatedNumber;
  10767. readonly edgeMode: SVGAnimatedEnumeration;
  10768. readonly in1: SVGAnimatedString;
  10769. readonly kernelMatrix: SVGAnimatedNumberList;
  10770. readonly kernelUnitLengthX: SVGAnimatedNumber;
  10771. readonly kernelUnitLengthY: SVGAnimatedNumber;
  10772. readonly orderX: SVGAnimatedInteger;
  10773. readonly orderY: SVGAnimatedInteger;
  10774. readonly preserveAlpha: SVGAnimatedBoolean;
  10775. readonly targetX: SVGAnimatedInteger;
  10776. readonly targetY: SVGAnimatedInteger;
  10777. readonly SVG_EDGEMODE_DUPLICATE: number;
  10778. readonly SVG_EDGEMODE_NONE: number;
  10779. readonly SVG_EDGEMODE_UNKNOWN: number;
  10780. readonly SVG_EDGEMODE_WRAP: number;
  10781. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10782. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10783. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10784. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10785. }
  10786. declare var SVGFEConvolveMatrixElement: {
  10787. prototype: SVGFEConvolveMatrixElement;
  10788. new(): SVGFEConvolveMatrixElement;
  10789. readonly SVG_EDGEMODE_DUPLICATE: number;
  10790. readonly SVG_EDGEMODE_NONE: number;
  10791. readonly SVG_EDGEMODE_UNKNOWN: number;
  10792. readonly SVG_EDGEMODE_WRAP: number;
  10793. };
  10794. /** Corresponds to the <feDiffuseLighting> element. */
  10795. interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
  10796. readonly diffuseConstant: SVGAnimatedNumber;
  10797. readonly in1: SVGAnimatedString;
  10798. readonly kernelUnitLengthX: SVGAnimatedNumber;
  10799. readonly kernelUnitLengthY: SVGAnimatedNumber;
  10800. readonly surfaceScale: SVGAnimatedNumber;
  10801. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10802. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10803. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10804. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10805. }
  10806. declare var SVGFEDiffuseLightingElement: {
  10807. prototype: SVGFEDiffuseLightingElement;
  10808. new(): SVGFEDiffuseLightingElement;
  10809. };
  10810. /** Corresponds to the <feDisplacementMap> element. */
  10811. interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
  10812. readonly in1: SVGAnimatedString;
  10813. readonly in2: SVGAnimatedString;
  10814. readonly scale: SVGAnimatedNumber;
  10815. readonly xChannelSelector: SVGAnimatedEnumeration;
  10816. readonly yChannelSelector: SVGAnimatedEnumeration;
  10817. readonly SVG_CHANNEL_A: number;
  10818. readonly SVG_CHANNEL_B: number;
  10819. readonly SVG_CHANNEL_G: number;
  10820. readonly SVG_CHANNEL_R: number;
  10821. readonly SVG_CHANNEL_UNKNOWN: number;
  10822. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10823. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10824. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10825. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10826. }
  10827. declare var SVGFEDisplacementMapElement: {
  10828. prototype: SVGFEDisplacementMapElement;
  10829. new(): SVGFEDisplacementMapElement;
  10830. readonly SVG_CHANNEL_A: number;
  10831. readonly SVG_CHANNEL_B: number;
  10832. readonly SVG_CHANNEL_G: number;
  10833. readonly SVG_CHANNEL_R: number;
  10834. readonly SVG_CHANNEL_UNKNOWN: number;
  10835. };
  10836. /** Corresponds to the <feDistantLight> element. */
  10837. interface SVGFEDistantLightElement extends SVGElement {
  10838. readonly azimuth: SVGAnimatedNumber;
  10839. readonly elevation: SVGAnimatedNumber;
  10840. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10841. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10842. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10843. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10844. }
  10845. declare var SVGFEDistantLightElement: {
  10846. prototype: SVGFEDistantLightElement;
  10847. new(): SVGFEDistantLightElement;
  10848. };
  10849. interface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
  10850. readonly dx: SVGAnimatedNumber;
  10851. readonly dy: SVGAnimatedNumber;
  10852. readonly in1: SVGAnimatedString;
  10853. readonly stdDeviationX: SVGAnimatedNumber;
  10854. readonly stdDeviationY: SVGAnimatedNumber;
  10855. setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
  10856. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10857. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10858. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10859. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10860. }
  10861. declare var SVGFEDropShadowElement: {
  10862. prototype: SVGFEDropShadowElement;
  10863. new(): SVGFEDropShadowElement;
  10864. };
  10865. /** Corresponds to the <feFlood> element. */
  10866. interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
  10867. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10868. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10869. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10870. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10871. }
  10872. declare var SVGFEFloodElement: {
  10873. prototype: SVGFEFloodElement;
  10874. new(): SVGFEFloodElement;
  10875. };
  10876. /** Corresponds to the <feFuncA> element. */
  10877. interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {
  10878. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10879. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10880. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10881. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10882. }
  10883. declare var SVGFEFuncAElement: {
  10884. prototype: SVGFEFuncAElement;
  10885. new(): SVGFEFuncAElement;
  10886. };
  10887. /** Corresponds to the <feFuncB> element. */
  10888. interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {
  10889. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10890. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10891. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10892. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10893. }
  10894. declare var SVGFEFuncBElement: {
  10895. prototype: SVGFEFuncBElement;
  10896. new(): SVGFEFuncBElement;
  10897. };
  10898. /** Corresponds to the <feFuncG> element. */
  10899. interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {
  10900. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10901. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10902. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10903. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10904. }
  10905. declare var SVGFEFuncGElement: {
  10906. prototype: SVGFEFuncGElement;
  10907. new(): SVGFEFuncGElement;
  10908. };
  10909. /** Corresponds to the <feFuncR> element. */
  10910. interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {
  10911. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10912. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10913. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10914. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10915. }
  10916. declare var SVGFEFuncRElement: {
  10917. prototype: SVGFEFuncRElement;
  10918. new(): SVGFEFuncRElement;
  10919. };
  10920. /** Corresponds to the <feGaussianBlur> element. */
  10921. interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
  10922. readonly in1: SVGAnimatedString;
  10923. readonly stdDeviationX: SVGAnimatedNumber;
  10924. readonly stdDeviationY: SVGAnimatedNumber;
  10925. setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
  10926. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10927. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10928. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10929. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10930. }
  10931. declare var SVGFEGaussianBlurElement: {
  10932. prototype: SVGFEGaussianBlurElement;
  10933. new(): SVGFEGaussianBlurElement;
  10934. };
  10935. /** Corresponds to the <feImage> element. */
  10936. interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference {
  10937. readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
  10938. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10939. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10940. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10941. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10942. }
  10943. declare var SVGFEImageElement: {
  10944. prototype: SVGFEImageElement;
  10945. new(): SVGFEImageElement;
  10946. };
  10947. /** Corresponds to the <feMerge> element. */
  10948. interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
  10949. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10950. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10951. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10952. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10953. }
  10954. declare var SVGFEMergeElement: {
  10955. prototype: SVGFEMergeElement;
  10956. new(): SVGFEMergeElement;
  10957. };
  10958. /** Corresponds to the <feMergeNode> element. */
  10959. interface SVGFEMergeNodeElement extends SVGElement {
  10960. readonly in1: SVGAnimatedString;
  10961. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10962. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10963. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10964. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10965. }
  10966. declare var SVGFEMergeNodeElement: {
  10967. prototype: SVGFEMergeNodeElement;
  10968. new(): SVGFEMergeNodeElement;
  10969. };
  10970. /** Corresponds to the <feMorphology> element. */
  10971. interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
  10972. readonly in1: SVGAnimatedString;
  10973. readonly operator: SVGAnimatedEnumeration;
  10974. readonly radiusX: SVGAnimatedNumber;
  10975. readonly radiusY: SVGAnimatedNumber;
  10976. readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
  10977. readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
  10978. readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
  10979. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10980. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10981. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10982. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  10983. }
  10984. declare var SVGFEMorphologyElement: {
  10985. prototype: SVGFEMorphologyElement;
  10986. new(): SVGFEMorphologyElement;
  10987. readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
  10988. readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
  10989. readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
  10990. };
  10991. /** Corresponds to the <feOffset> element. */
  10992. interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
  10993. readonly dx: SVGAnimatedNumber;
  10994. readonly dy: SVGAnimatedNumber;
  10995. readonly in1: SVGAnimatedString;
  10996. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  10997. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  10998. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  10999. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11000. }
  11001. declare var SVGFEOffsetElement: {
  11002. prototype: SVGFEOffsetElement;
  11003. new(): SVGFEOffsetElement;
  11004. };
  11005. /** Corresponds to the <fePointLight> element. */
  11006. interface SVGFEPointLightElement extends SVGElement {
  11007. readonly x: SVGAnimatedNumber;
  11008. readonly y: SVGAnimatedNumber;
  11009. readonly z: SVGAnimatedNumber;
  11010. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11011. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11012. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11013. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11014. }
  11015. declare var SVGFEPointLightElement: {
  11016. prototype: SVGFEPointLightElement;
  11017. new(): SVGFEPointLightElement;
  11018. };
  11019. /** Corresponds to the <feSpecularLighting> element. */
  11020. interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
  11021. readonly in1: SVGAnimatedString;
  11022. readonly kernelUnitLengthX: SVGAnimatedNumber;
  11023. readonly kernelUnitLengthY: SVGAnimatedNumber;
  11024. readonly specularConstant: SVGAnimatedNumber;
  11025. readonly specularExponent: SVGAnimatedNumber;
  11026. readonly surfaceScale: SVGAnimatedNumber;
  11027. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11028. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11029. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11030. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11031. }
  11032. declare var SVGFESpecularLightingElement: {
  11033. prototype: SVGFESpecularLightingElement;
  11034. new(): SVGFESpecularLightingElement;
  11035. };
  11036. /** Corresponds to the <feSpotLight> element. */
  11037. interface SVGFESpotLightElement extends SVGElement {
  11038. readonly limitingConeAngle: SVGAnimatedNumber;
  11039. readonly pointsAtX: SVGAnimatedNumber;
  11040. readonly pointsAtY: SVGAnimatedNumber;
  11041. readonly pointsAtZ: SVGAnimatedNumber;
  11042. readonly specularExponent: SVGAnimatedNumber;
  11043. readonly x: SVGAnimatedNumber;
  11044. readonly y: SVGAnimatedNumber;
  11045. readonly z: SVGAnimatedNumber;
  11046. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11047. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11048. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11049. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11050. }
  11051. declare var SVGFESpotLightElement: {
  11052. prototype: SVGFESpotLightElement;
  11053. new(): SVGFESpotLightElement;
  11054. };
  11055. /** Corresponds to the <feTile> element. */
  11056. interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
  11057. readonly in1: SVGAnimatedString;
  11058. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11059. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11060. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11061. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11062. }
  11063. declare var SVGFETileElement: {
  11064. prototype: SVGFETileElement;
  11065. new(): SVGFETileElement;
  11066. };
  11067. /** Corresponds to the <feTurbulence> element. */
  11068. interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
  11069. readonly baseFrequencyX: SVGAnimatedNumber;
  11070. readonly baseFrequencyY: SVGAnimatedNumber;
  11071. readonly numOctaves: SVGAnimatedInteger;
  11072. readonly seed: SVGAnimatedNumber;
  11073. readonly stitchTiles: SVGAnimatedEnumeration;
  11074. readonly type: SVGAnimatedEnumeration;
  11075. readonly SVG_STITCHTYPE_NOSTITCH: number;
  11076. readonly SVG_STITCHTYPE_STITCH: number;
  11077. readonly SVG_STITCHTYPE_UNKNOWN: number;
  11078. readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
  11079. readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
  11080. readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
  11081. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11082. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11083. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11084. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11085. }
  11086. declare var SVGFETurbulenceElement: {
  11087. prototype: SVGFETurbulenceElement;
  11088. new(): SVGFETurbulenceElement;
  11089. readonly SVG_STITCHTYPE_NOSTITCH: number;
  11090. readonly SVG_STITCHTYPE_STITCH: number;
  11091. readonly SVG_STITCHTYPE_UNKNOWN: number;
  11092. readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
  11093. readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
  11094. readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
  11095. };
  11096. /** Provides access to the properties of <filter> elements, as well as methods to manipulate them. */
  11097. interface SVGFilterElement extends SVGElement, SVGURIReference {
  11098. readonly filterUnits: SVGAnimatedEnumeration;
  11099. readonly height: SVGAnimatedLength;
  11100. readonly primitiveUnits: SVGAnimatedEnumeration;
  11101. readonly width: SVGAnimatedLength;
  11102. readonly x: SVGAnimatedLength;
  11103. readonly y: SVGAnimatedLength;
  11104. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11105. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11106. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11107. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11108. }
  11109. declare var SVGFilterElement: {
  11110. prototype: SVGFilterElement;
  11111. new(): SVGFilterElement;
  11112. };
  11113. interface SVGFilterPrimitiveStandardAttributes {
  11114. readonly height: SVGAnimatedLength;
  11115. readonly result: SVGAnimatedString;
  11116. readonly width: SVGAnimatedLength;
  11117. readonly x: SVGAnimatedLength;
  11118. readonly y: SVGAnimatedLength;
  11119. }
  11120. interface SVGFitToViewBox {
  11121. readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
  11122. readonly viewBox: SVGAnimatedRect;
  11123. }
  11124. /** Provides access to the properties of <foreignObject> elements, as well as methods to manipulate them. */
  11125. interface SVGForeignObjectElement extends SVGGraphicsElement {
  11126. readonly height: SVGAnimatedLength;
  11127. readonly width: SVGAnimatedLength;
  11128. readonly x: SVGAnimatedLength;
  11129. readonly y: SVGAnimatedLength;
  11130. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11131. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11132. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11133. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11134. }
  11135. declare var SVGForeignObjectElement: {
  11136. prototype: SVGForeignObjectElement;
  11137. new(): SVGForeignObjectElement;
  11138. };
  11139. /** Corresponds to the <g> element. */
  11140. interface SVGGElement extends SVGGraphicsElement {
  11141. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11142. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11143. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11144. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11145. }
  11146. declare var SVGGElement: {
  11147. prototype: SVGGElement;
  11148. new(): SVGGElement;
  11149. };
  11150. interface SVGGeometryElement extends SVGGraphicsElement {
  11151. readonly pathLength: SVGAnimatedNumber;
  11152. getPointAtLength(distance: number): DOMPoint;
  11153. getTotalLength(): number;
  11154. isPointInFill(point?: DOMPointInit): boolean;
  11155. isPointInStroke(point?: DOMPointInit): boolean;
  11156. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11157. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11158. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11159. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11160. }
  11161. declare var SVGGeometryElement: {
  11162. prototype: SVGGeometryElement;
  11163. new(): SVGGeometryElement;
  11164. };
  11165. /** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. */
  11166. interface SVGGradientElement extends SVGElement, SVGURIReference {
  11167. readonly gradientTransform: SVGAnimatedTransformList;
  11168. readonly gradientUnits: SVGAnimatedEnumeration;
  11169. readonly spreadMethod: SVGAnimatedEnumeration;
  11170. readonly SVG_SPREADMETHOD_PAD: number;
  11171. readonly SVG_SPREADMETHOD_REFLECT: number;
  11172. readonly SVG_SPREADMETHOD_REPEAT: number;
  11173. readonly SVG_SPREADMETHOD_UNKNOWN: number;
  11174. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11175. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11176. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11177. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11178. }
  11179. declare var SVGGradientElement: {
  11180. prototype: SVGGradientElement;
  11181. new(): SVGGradientElement;
  11182. readonly SVG_SPREADMETHOD_PAD: number;
  11183. readonly SVG_SPREADMETHOD_REFLECT: number;
  11184. readonly SVG_SPREADMETHOD_REPEAT: number;
  11185. readonly SVG_SPREADMETHOD_UNKNOWN: number;
  11186. };
  11187. /** SVG elements whose primary purpose is to directly render graphics into a group. */
  11188. interface SVGGraphicsElement extends SVGElement, SVGTests {
  11189. readonly transform: SVGAnimatedTransformList;
  11190. getBBox(options?: SVGBoundingBoxOptions): DOMRect;
  11191. getCTM(): DOMMatrix | null;
  11192. getScreenCTM(): DOMMatrix | null;
  11193. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11194. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11195. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11196. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11197. }
  11198. declare var SVGGraphicsElement: {
  11199. prototype: SVGGraphicsElement;
  11200. new(): SVGGraphicsElement;
  11201. };
  11202. /** Corresponds to the <image> element. */
  11203. interface SVGImageElement extends SVGGraphicsElement, SVGURIReference {
  11204. readonly height: SVGAnimatedLength;
  11205. readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
  11206. readonly width: SVGAnimatedLength;
  11207. readonly x: SVGAnimatedLength;
  11208. readonly y: SVGAnimatedLength;
  11209. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11210. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11211. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11212. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11213. }
  11214. declare var SVGImageElement: {
  11215. prototype: SVGImageElement;
  11216. new(): SVGImageElement;
  11217. };
  11218. /** Correspond to the <length> basic data type. */
  11219. interface SVGLength {
  11220. readonly unitType: number;
  11221. value: number;
  11222. valueAsString: string;
  11223. valueInSpecifiedUnits: number;
  11224. convertToSpecifiedUnits(unitType: number): void;
  11225. newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
  11226. readonly SVG_LENGTHTYPE_CM: number;
  11227. readonly SVG_LENGTHTYPE_EMS: number;
  11228. readonly SVG_LENGTHTYPE_EXS: number;
  11229. readonly SVG_LENGTHTYPE_IN: number;
  11230. readonly SVG_LENGTHTYPE_MM: number;
  11231. readonly SVG_LENGTHTYPE_NUMBER: number;
  11232. readonly SVG_LENGTHTYPE_PC: number;
  11233. readonly SVG_LENGTHTYPE_PERCENTAGE: number;
  11234. readonly SVG_LENGTHTYPE_PT: number;
  11235. readonly SVG_LENGTHTYPE_PX: number;
  11236. readonly SVG_LENGTHTYPE_UNKNOWN: number;
  11237. }
  11238. declare var SVGLength: {
  11239. prototype: SVGLength;
  11240. new(): SVGLength;
  11241. readonly SVG_LENGTHTYPE_CM: number;
  11242. readonly SVG_LENGTHTYPE_EMS: number;
  11243. readonly SVG_LENGTHTYPE_EXS: number;
  11244. readonly SVG_LENGTHTYPE_IN: number;
  11245. readonly SVG_LENGTHTYPE_MM: number;
  11246. readonly SVG_LENGTHTYPE_NUMBER: number;
  11247. readonly SVG_LENGTHTYPE_PC: number;
  11248. readonly SVG_LENGTHTYPE_PERCENTAGE: number;
  11249. readonly SVG_LENGTHTYPE_PT: number;
  11250. readonly SVG_LENGTHTYPE_PX: number;
  11251. readonly SVG_LENGTHTYPE_UNKNOWN: number;
  11252. };
  11253. /** The SVGLengthList defines a list of SVGLength objects. */
  11254. interface SVGLengthList {
  11255. readonly length: number;
  11256. readonly numberOfItems: number;
  11257. appendItem(newItem: SVGLength): SVGLength;
  11258. clear(): void;
  11259. getItem(index: number): SVGLength;
  11260. initialize(newItem: SVGLength): SVGLength;
  11261. insertItemBefore(newItem: SVGLength, index: number): SVGLength;
  11262. removeItem(index: number): SVGLength;
  11263. replaceItem(newItem: SVGLength, index: number): SVGLength;
  11264. [index: number]: SVGLength;
  11265. }
  11266. declare var SVGLengthList: {
  11267. prototype: SVGLengthList;
  11268. new(): SVGLengthList;
  11269. };
  11270. /** Provides access to the properties of <line> elements, as well as methods to manipulate them. */
  11271. interface SVGLineElement extends SVGGeometryElement {
  11272. readonly x1: SVGAnimatedLength;
  11273. readonly x2: SVGAnimatedLength;
  11274. readonly y1: SVGAnimatedLength;
  11275. readonly y2: SVGAnimatedLength;
  11276. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11277. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11278. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11279. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11280. }
  11281. declare var SVGLineElement: {
  11282. prototype: SVGLineElement;
  11283. new(): SVGLineElement;
  11284. };
  11285. /** Corresponds to the <linearGradient> element. */
  11286. interface SVGLinearGradientElement extends SVGGradientElement {
  11287. readonly x1: SVGAnimatedLength;
  11288. readonly x2: SVGAnimatedLength;
  11289. readonly y1: SVGAnimatedLength;
  11290. readonly y2: SVGAnimatedLength;
  11291. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11292. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11293. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11294. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11295. }
  11296. declare var SVGLinearGradientElement: {
  11297. prototype: SVGLinearGradientElement;
  11298. new(): SVGLinearGradientElement;
  11299. };
  11300. interface SVGMPathElement extends SVGElement, SVGURIReference {
  11301. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11302. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11303. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11304. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11305. }
  11306. declare var SVGMPathElement: {
  11307. prototype: SVGMPathElement;
  11308. new(): SVGMPathElement;
  11309. };
  11310. interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
  11311. readonly markerHeight: SVGAnimatedLength;
  11312. readonly markerUnits: SVGAnimatedEnumeration;
  11313. readonly markerWidth: SVGAnimatedLength;
  11314. readonly orientAngle: SVGAnimatedAngle;
  11315. readonly orientType: SVGAnimatedEnumeration;
  11316. readonly refX: SVGAnimatedLength;
  11317. readonly refY: SVGAnimatedLength;
  11318. setOrientToAngle(angle: SVGAngle): void;
  11319. setOrientToAuto(): void;
  11320. readonly SVG_MARKERUNITS_STROKEWIDTH: number;
  11321. readonly SVG_MARKERUNITS_UNKNOWN: number;
  11322. readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
  11323. readonly SVG_MARKER_ORIENT_ANGLE: number;
  11324. readonly SVG_MARKER_ORIENT_AUTO: number;
  11325. readonly SVG_MARKER_ORIENT_UNKNOWN: number;
  11326. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11327. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11328. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11329. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11330. }
  11331. declare var SVGMarkerElement: {
  11332. prototype: SVGMarkerElement;
  11333. new(): SVGMarkerElement;
  11334. readonly SVG_MARKERUNITS_STROKEWIDTH: number;
  11335. readonly SVG_MARKERUNITS_UNKNOWN: number;
  11336. readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
  11337. readonly SVG_MARKER_ORIENT_ANGLE: number;
  11338. readonly SVG_MARKER_ORIENT_AUTO: number;
  11339. readonly SVG_MARKER_ORIENT_UNKNOWN: number;
  11340. };
  11341. /** Provides access to the properties of <mask> elements, as well as methods to manipulate them. */
  11342. interface SVGMaskElement extends SVGElement {
  11343. readonly height: SVGAnimatedLength;
  11344. readonly maskContentUnits: SVGAnimatedEnumeration;
  11345. readonly maskUnits: SVGAnimatedEnumeration;
  11346. readonly width: SVGAnimatedLength;
  11347. readonly x: SVGAnimatedLength;
  11348. readonly y: SVGAnimatedLength;
  11349. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11350. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11351. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11352. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11353. }
  11354. declare var SVGMaskElement: {
  11355. prototype: SVGMaskElement;
  11356. new(): SVGMaskElement;
  11357. };
  11358. /** Corresponds to the <metadata> element. */
  11359. interface SVGMetadataElement extends SVGElement {
  11360. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11361. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11362. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11363. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11364. }
  11365. declare var SVGMetadataElement: {
  11366. prototype: SVGMetadataElement;
  11367. new(): SVGMetadataElement;
  11368. };
  11369. /** Corresponds to the <number> basic data type. */
  11370. interface SVGNumber {
  11371. value: number;
  11372. }
  11373. declare var SVGNumber: {
  11374. prototype: SVGNumber;
  11375. new(): SVGNumber;
  11376. };
  11377. /** The SVGNumberList defines a list of SVGNumber objects. */
  11378. interface SVGNumberList {
  11379. readonly length: number;
  11380. readonly numberOfItems: number;
  11381. appendItem(newItem: SVGNumber): SVGNumber;
  11382. clear(): void;
  11383. getItem(index: number): SVGNumber;
  11384. initialize(newItem: SVGNumber): SVGNumber;
  11385. insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;
  11386. removeItem(index: number): SVGNumber;
  11387. replaceItem(newItem: SVGNumber, index: number): SVGNumber;
  11388. [index: number]: SVGNumber;
  11389. }
  11390. declare var SVGNumberList: {
  11391. prototype: SVGNumberList;
  11392. new(): SVGNumberList;
  11393. };
  11394. /** Corresponds to the <path> element. */
  11395. interface SVGPathElement extends SVGGeometryElement {
  11396. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11397. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11398. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11399. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11400. }
  11401. declare var SVGPathElement: {
  11402. prototype: SVGPathElement;
  11403. new(): SVGPathElement;
  11404. };
  11405. /** Corresponds to the <pattern> element. */
  11406. interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {
  11407. readonly height: SVGAnimatedLength;
  11408. readonly patternContentUnits: SVGAnimatedEnumeration;
  11409. readonly patternTransform: SVGAnimatedTransformList;
  11410. readonly patternUnits: SVGAnimatedEnumeration;
  11411. readonly width: SVGAnimatedLength;
  11412. readonly x: SVGAnimatedLength;
  11413. readonly y: SVGAnimatedLength;
  11414. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11415. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11416. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11417. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11418. }
  11419. declare var SVGPatternElement: {
  11420. prototype: SVGPatternElement;
  11421. new(): SVGPatternElement;
  11422. };
  11423. interface SVGPointList {
  11424. readonly length: number;
  11425. readonly numberOfItems: number;
  11426. appendItem(newItem: DOMPoint): DOMPoint;
  11427. clear(): void;
  11428. getItem(index: number): DOMPoint;
  11429. initialize(newItem: DOMPoint): DOMPoint;
  11430. insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;
  11431. removeItem(index: number): DOMPoint;
  11432. replaceItem(newItem: DOMPoint, index: number): DOMPoint;
  11433. [index: number]: DOMPoint;
  11434. }
  11435. declare var SVGPointList: {
  11436. prototype: SVGPointList;
  11437. new(): SVGPointList;
  11438. };
  11439. /** Provides access to the properties of <polygon> elements, as well as methods to manipulate them. */
  11440. interface SVGPolygonElement extends SVGGeometryElement, SVGAnimatedPoints {
  11441. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11442. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11443. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11444. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11445. }
  11446. declare var SVGPolygonElement: {
  11447. prototype: SVGPolygonElement;
  11448. new(): SVGPolygonElement;
  11449. };
  11450. /** Provides access to the properties of <polyline> elements, as well as methods to manipulate them. */
  11451. interface SVGPolylineElement extends SVGGeometryElement, SVGAnimatedPoints {
  11452. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11453. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11454. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11455. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11456. }
  11457. declare var SVGPolylineElement: {
  11458. prototype: SVGPolylineElement;
  11459. new(): SVGPolylineElement;
  11460. };
  11461. /** Corresponds to the preserveAspectRatio attribute, which is available for some of SVG's elements. */
  11462. interface SVGPreserveAspectRatio {
  11463. align: number;
  11464. meetOrSlice: number;
  11465. readonly SVG_MEETORSLICE_MEET: number;
  11466. readonly SVG_MEETORSLICE_SLICE: number;
  11467. readonly SVG_MEETORSLICE_UNKNOWN: number;
  11468. readonly SVG_PRESERVEASPECTRATIO_NONE: number;
  11469. readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
  11470. readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
  11471. readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
  11472. readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
  11473. readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
  11474. readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
  11475. readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
  11476. readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
  11477. readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
  11478. readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
  11479. }
  11480. declare var SVGPreserveAspectRatio: {
  11481. prototype: SVGPreserveAspectRatio;
  11482. new(): SVGPreserveAspectRatio;
  11483. readonly SVG_MEETORSLICE_MEET: number;
  11484. readonly SVG_MEETORSLICE_SLICE: number;
  11485. readonly SVG_MEETORSLICE_UNKNOWN: number;
  11486. readonly SVG_PRESERVEASPECTRATIO_NONE: number;
  11487. readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
  11488. readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
  11489. readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
  11490. readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
  11491. readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
  11492. readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
  11493. readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
  11494. readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
  11495. readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
  11496. readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
  11497. };
  11498. /** Corresponds to the <RadialGradient> element. */
  11499. interface SVGRadialGradientElement extends SVGGradientElement {
  11500. readonly cx: SVGAnimatedLength;
  11501. readonly cy: SVGAnimatedLength;
  11502. readonly fr: SVGAnimatedLength;
  11503. readonly fx: SVGAnimatedLength;
  11504. readonly fy: SVGAnimatedLength;
  11505. readonly r: SVGAnimatedLength;
  11506. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11507. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11508. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11509. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11510. }
  11511. declare var SVGRadialGradientElement: {
  11512. prototype: SVGRadialGradientElement;
  11513. new(): SVGRadialGradientElement;
  11514. };
  11515. /** Provides access to the properties of <rect> elements, as well as methods to manipulate them. */
  11516. interface SVGRectElement extends SVGGeometryElement {
  11517. readonly height: SVGAnimatedLength;
  11518. readonly rx: SVGAnimatedLength;
  11519. readonly ry: SVGAnimatedLength;
  11520. readonly width: SVGAnimatedLength;
  11521. readonly x: SVGAnimatedLength;
  11522. readonly y: SVGAnimatedLength;
  11523. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11524. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11525. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11526. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11527. }
  11528. declare var SVGRectElement: {
  11529. prototype: SVGRectElement;
  11530. new(): SVGRectElement;
  11531. };
  11532. interface SVGSVGElementEventMap extends SVGElementEventMap, WindowEventHandlersEventMap {
  11533. }
  11534. /** 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. */
  11535. interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers {
  11536. currentScale: number;
  11537. readonly currentTranslate: DOMPointReadOnly;
  11538. readonly height: SVGAnimatedLength;
  11539. readonly width: SVGAnimatedLength;
  11540. readonly x: SVGAnimatedLength;
  11541. readonly y: SVGAnimatedLength;
  11542. animationsPaused(): boolean;
  11543. checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean;
  11544. checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean;
  11545. createSVGAngle(): SVGAngle;
  11546. createSVGLength(): SVGLength;
  11547. createSVGMatrix(): DOMMatrix;
  11548. createSVGNumber(): SVGNumber;
  11549. createSVGPoint(): DOMPoint;
  11550. createSVGRect(): DOMRect;
  11551. createSVGTransform(): SVGTransform;
  11552. createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
  11553. deselectAll(): void;
  11554. /** @deprecated */
  11555. forceRedraw(): void;
  11556. getCurrentTime(): number;
  11557. getElementById(elementId: string): Element;
  11558. getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
  11559. getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
  11560. pauseAnimations(): void;
  11561. setCurrentTime(seconds: number): void;
  11562. /** @deprecated */
  11563. suspendRedraw(maxWaitMilliseconds: number): number;
  11564. unpauseAnimations(): void;
  11565. /** @deprecated */
  11566. unsuspendRedraw(suspendHandleID: number): void;
  11567. /** @deprecated */
  11568. unsuspendRedrawAll(): void;
  11569. addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11570. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11571. removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11572. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11573. }
  11574. declare var SVGSVGElement: {
  11575. prototype: SVGSVGElement;
  11576. new(): SVGSVGElement;
  11577. };
  11578. /** Corresponds to the SVG <script> element. */
  11579. interface SVGScriptElement extends SVGElement, SVGURIReference {
  11580. type: string;
  11581. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11582. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11583. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11584. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11585. }
  11586. declare var SVGScriptElement: {
  11587. prototype: SVGScriptElement;
  11588. new(): SVGScriptElement;
  11589. };
  11590. interface SVGSetElement extends SVGAnimationElement {
  11591. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11592. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11593. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11594. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11595. }
  11596. declare var SVGSetElement: {
  11597. prototype: SVGSetElement;
  11598. new(): SVGSetElement;
  11599. };
  11600. /** Corresponds to the <stop> element. */
  11601. interface SVGStopElement extends SVGElement {
  11602. readonly offset: SVGAnimatedNumber;
  11603. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11604. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11605. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11606. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11607. }
  11608. declare var SVGStopElement: {
  11609. prototype: SVGStopElement;
  11610. new(): SVGStopElement;
  11611. };
  11612. /** The SVGStringList defines a list of DOMString objects. */
  11613. interface SVGStringList {
  11614. readonly length: number;
  11615. readonly numberOfItems: number;
  11616. appendItem(newItem: string): string;
  11617. clear(): void;
  11618. getItem(index: number): string;
  11619. initialize(newItem: string): string;
  11620. insertItemBefore(newItem: string, index: number): string;
  11621. removeItem(index: number): string;
  11622. replaceItem(newItem: string, index: number): string;
  11623. [index: number]: string;
  11624. }
  11625. declare var SVGStringList: {
  11626. prototype: SVGStringList;
  11627. new(): SVGStringList;
  11628. };
  11629. /** Corresponds to the SVG <style> element. */
  11630. interface SVGStyleElement extends SVGElement, LinkStyle {
  11631. disabled: boolean;
  11632. media: string;
  11633. title: string;
  11634. type: string;
  11635. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11636. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11637. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11638. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11639. }
  11640. declare var SVGStyleElement: {
  11641. prototype: SVGStyleElement;
  11642. new(): SVGStyleElement;
  11643. };
  11644. /** Corresponds to the <switch> element. */
  11645. interface SVGSwitchElement extends SVGGraphicsElement {
  11646. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11647. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11648. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11649. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11650. }
  11651. declare var SVGSwitchElement: {
  11652. prototype: SVGSwitchElement;
  11653. new(): SVGSwitchElement;
  11654. };
  11655. /** Corresponds to the <symbol> element. */
  11656. interface SVGSymbolElement extends SVGElement, SVGFitToViewBox {
  11657. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11658. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11659. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11660. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11661. }
  11662. declare var SVGSymbolElement: {
  11663. prototype: SVGSymbolElement;
  11664. new(): SVGSymbolElement;
  11665. };
  11666. /** A <tspan> element. */
  11667. interface SVGTSpanElement extends SVGTextPositioningElement {
  11668. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11669. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11670. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11671. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11672. }
  11673. declare var SVGTSpanElement: {
  11674. prototype: SVGTSpanElement;
  11675. new(): SVGTSpanElement;
  11676. };
  11677. interface SVGTests {
  11678. readonly requiredExtensions: SVGStringList;
  11679. readonly systemLanguage: SVGStringList;
  11680. }
  11681. /** 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. */
  11682. interface SVGTextContentElement extends SVGGraphicsElement {
  11683. readonly lengthAdjust: SVGAnimatedEnumeration;
  11684. readonly textLength: SVGAnimatedLength;
  11685. getCharNumAtPosition(point?: DOMPointInit): number;
  11686. getComputedTextLength(): number;
  11687. getEndPositionOfChar(charnum: number): DOMPoint;
  11688. getExtentOfChar(charnum: number): DOMRect;
  11689. getNumberOfChars(): number;
  11690. getRotationOfChar(charnum: number): number;
  11691. getStartPositionOfChar(charnum: number): DOMPoint;
  11692. getSubStringLength(charnum: number, nchars: number): number;
  11693. /** @deprecated */
  11694. selectSubString(charnum: number, nchars: number): void;
  11695. readonly LENGTHADJUST_SPACING: number;
  11696. readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
  11697. readonly LENGTHADJUST_UNKNOWN: number;
  11698. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11699. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11700. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11701. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11702. }
  11703. declare var SVGTextContentElement: {
  11704. prototype: SVGTextContentElement;
  11705. new(): SVGTextContentElement;
  11706. readonly LENGTHADJUST_SPACING: number;
  11707. readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
  11708. readonly LENGTHADJUST_UNKNOWN: number;
  11709. };
  11710. /** Corresponds to the <text> elements. */
  11711. interface SVGTextElement extends SVGTextPositioningElement {
  11712. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11713. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11714. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11715. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11716. }
  11717. declare var SVGTextElement: {
  11718. prototype: SVGTextElement;
  11719. new(): SVGTextElement;
  11720. };
  11721. /** Corresponds to the <textPath> element. */
  11722. interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
  11723. readonly method: SVGAnimatedEnumeration;
  11724. readonly spacing: SVGAnimatedEnumeration;
  11725. readonly startOffset: SVGAnimatedLength;
  11726. readonly TEXTPATH_METHODTYPE_ALIGN: number;
  11727. readonly TEXTPATH_METHODTYPE_STRETCH: number;
  11728. readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
  11729. readonly TEXTPATH_SPACINGTYPE_AUTO: number;
  11730. readonly TEXTPATH_SPACINGTYPE_EXACT: number;
  11731. readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
  11732. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11733. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11734. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11735. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11736. }
  11737. declare var SVGTextPathElement: {
  11738. prototype: SVGTextPathElement;
  11739. new(): SVGTextPathElement;
  11740. readonly TEXTPATH_METHODTYPE_ALIGN: number;
  11741. readonly TEXTPATH_METHODTYPE_STRETCH: number;
  11742. readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
  11743. readonly TEXTPATH_SPACINGTYPE_AUTO: number;
  11744. readonly TEXTPATH_SPACINGTYPE_EXACT: number;
  11745. readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
  11746. };
  11747. /** Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement. */
  11748. interface SVGTextPositioningElement extends SVGTextContentElement {
  11749. readonly dx: SVGAnimatedLengthList;
  11750. readonly dy: SVGAnimatedLengthList;
  11751. readonly rotate: SVGAnimatedNumberList;
  11752. readonly x: SVGAnimatedLengthList;
  11753. readonly y: SVGAnimatedLengthList;
  11754. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11755. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11756. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11757. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11758. }
  11759. declare var SVGTextPositioningElement: {
  11760. prototype: SVGTextPositioningElement;
  11761. new(): SVGTextPositioningElement;
  11762. };
  11763. /** Corresponds to the <title> element. */
  11764. interface SVGTitleElement extends SVGElement {
  11765. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11766. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11767. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11768. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11769. }
  11770. declare var SVGTitleElement: {
  11771. prototype: SVGTitleElement;
  11772. new(): SVGTitleElement;
  11773. };
  11774. /** 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. */
  11775. interface SVGTransform {
  11776. readonly angle: number;
  11777. readonly matrix: DOMMatrix;
  11778. readonly type: number;
  11779. setMatrix(matrix?: DOMMatrix2DInit): void;
  11780. setRotate(angle: number, cx: number, cy: number): void;
  11781. setScale(sx: number, sy: number): void;
  11782. setSkewX(angle: number): void;
  11783. setSkewY(angle: number): void;
  11784. setTranslate(tx: number, ty: number): void;
  11785. readonly SVG_TRANSFORM_MATRIX: number;
  11786. readonly SVG_TRANSFORM_ROTATE: number;
  11787. readonly SVG_TRANSFORM_SCALE: number;
  11788. readonly SVG_TRANSFORM_SKEWX: number;
  11789. readonly SVG_TRANSFORM_SKEWY: number;
  11790. readonly SVG_TRANSFORM_TRANSLATE: number;
  11791. readonly SVG_TRANSFORM_UNKNOWN: number;
  11792. }
  11793. declare var SVGTransform: {
  11794. prototype: SVGTransform;
  11795. new(): SVGTransform;
  11796. readonly SVG_TRANSFORM_MATRIX: number;
  11797. readonly SVG_TRANSFORM_ROTATE: number;
  11798. readonly SVG_TRANSFORM_SCALE: number;
  11799. readonly SVG_TRANSFORM_SKEWX: number;
  11800. readonly SVG_TRANSFORM_SKEWY: number;
  11801. readonly SVG_TRANSFORM_TRANSLATE: number;
  11802. readonly SVG_TRANSFORM_UNKNOWN: number;
  11803. };
  11804. /** The SVGTransformList defines a list of SVGTransform objects. */
  11805. interface SVGTransformList {
  11806. readonly length: number;
  11807. readonly numberOfItems: number;
  11808. appendItem(newItem: SVGTransform): SVGTransform;
  11809. clear(): void;
  11810. consolidate(): SVGTransform | null;
  11811. createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
  11812. getItem(index: number): SVGTransform;
  11813. initialize(newItem: SVGTransform): SVGTransform;
  11814. insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
  11815. removeItem(index: number): SVGTransform;
  11816. replaceItem(newItem: SVGTransform, index: number): SVGTransform;
  11817. [index: number]: SVGTransform;
  11818. }
  11819. declare var SVGTransformList: {
  11820. prototype: SVGTransformList;
  11821. new(): SVGTransformList;
  11822. };
  11823. interface SVGURIReference {
  11824. readonly href: SVGAnimatedString;
  11825. }
  11826. /** A commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes. */
  11827. interface SVGUnitTypes {
  11828. readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
  11829. readonly SVG_UNIT_TYPE_UNKNOWN: number;
  11830. readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
  11831. }
  11832. declare var SVGUnitTypes: {
  11833. prototype: SVGUnitTypes;
  11834. new(): SVGUnitTypes;
  11835. readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
  11836. readonly SVG_UNIT_TYPE_UNKNOWN: number;
  11837. readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
  11838. };
  11839. /** Corresponds to the <use> element. */
  11840. interface SVGUseElement extends SVGGraphicsElement, SVGURIReference {
  11841. readonly height: SVGAnimatedLength;
  11842. readonly width: SVGAnimatedLength;
  11843. readonly x: SVGAnimatedLength;
  11844. readonly y: SVGAnimatedLength;
  11845. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11846. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11847. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11848. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11849. }
  11850. declare var SVGUseElement: {
  11851. prototype: SVGUseElement;
  11852. new(): SVGUseElement;
  11853. };
  11854. /** Provides access to the properties of <view> elements, as well as methods to manipulate them. */
  11855. interface SVGViewElement extends SVGElement, SVGFitToViewBox {
  11856. addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11857. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11858. removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11859. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11860. }
  11861. declare var SVGViewElement: {
  11862. prototype: SVGViewElement;
  11863. new(): SVGViewElement;
  11864. };
  11865. /** A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. */
  11866. interface Screen {
  11867. readonly availHeight: number;
  11868. readonly availWidth: number;
  11869. readonly colorDepth: number;
  11870. readonly height: number;
  11871. readonly orientation: ScreenOrientation;
  11872. readonly pixelDepth: number;
  11873. readonly width: number;
  11874. }
  11875. declare var Screen: {
  11876. prototype: Screen;
  11877. new(): Screen;
  11878. };
  11879. interface ScreenOrientationEventMap {
  11880. "change": Event;
  11881. }
  11882. interface ScreenOrientation extends EventTarget {
  11883. readonly angle: number;
  11884. onchange: ((this: ScreenOrientation, ev: Event) => any) | null;
  11885. readonly type: OrientationType;
  11886. lock(orientation: OrientationLockType): Promise<void>;
  11887. unlock(): void;
  11888. addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11889. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11890. removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11891. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11892. }
  11893. declare var ScreenOrientation: {
  11894. prototype: ScreenOrientation;
  11895. new(): ScreenOrientation;
  11896. };
  11897. interface ScriptProcessorNodeEventMap {
  11898. "audioprocess": AudioProcessingEvent;
  11899. }
  11900. /**
  11901. * Allows the generation, processing, or analyzing of audio using JavaScript.
  11902. * @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).
  11903. */
  11904. interface ScriptProcessorNode extends AudioNode {
  11905. /** @deprecated */
  11906. readonly bufferSize: number;
  11907. /** @deprecated */
  11908. onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null;
  11909. addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11910. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11911. removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11912. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11913. }
  11914. /** @deprecated */
  11915. declare var ScriptProcessorNode: {
  11916. prototype: ScriptProcessorNode;
  11917. new(): ScriptProcessorNode;
  11918. };
  11919. /** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */
  11920. interface SecurityPolicyViolationEvent extends Event {
  11921. readonly blockedURI: string;
  11922. readonly columnNumber: number;
  11923. readonly disposition: SecurityPolicyViolationEventDisposition;
  11924. readonly documentURI: string;
  11925. readonly effectiveDirective: string;
  11926. readonly lineNumber: number;
  11927. readonly originalPolicy: string;
  11928. readonly referrer: string;
  11929. readonly sample: string;
  11930. readonly sourceFile: string;
  11931. readonly statusCode: number;
  11932. readonly violatedDirective: string;
  11933. }
  11934. declare var SecurityPolicyViolationEvent: {
  11935. prototype: SecurityPolicyViolationEvent;
  11936. new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
  11937. };
  11938. /** 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(). */
  11939. interface Selection {
  11940. readonly anchorNode: Node | null;
  11941. readonly anchorOffset: number;
  11942. readonly focusNode: Node | null;
  11943. readonly focusOffset: number;
  11944. readonly isCollapsed: boolean;
  11945. readonly rangeCount: number;
  11946. readonly type: string;
  11947. addRange(range: Range): void;
  11948. collapse(node: Node | null, offset?: number): void;
  11949. collapseToEnd(): void;
  11950. collapseToStart(): void;
  11951. containsNode(node: Node, allowPartialContainment?: boolean): boolean;
  11952. deleteFromDocument(): void;
  11953. empty(): void;
  11954. extend(node: Node, offset?: number): void;
  11955. getRangeAt(index: number): Range;
  11956. removeAllRanges(): void;
  11957. removeRange(range: Range): void;
  11958. selectAllChildren(node: Node): void;
  11959. setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;
  11960. setPosition(node: Node | null, offset?: number): void;
  11961. toString(): string;
  11962. }
  11963. declare var Selection: {
  11964. prototype: Selection;
  11965. new(): Selection;
  11966. toString(): string;
  11967. };
  11968. interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
  11969. "statechange": Event;
  11970. }
  11971. /**
  11972. * 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.
  11973. * Available only in secure contexts.
  11974. */
  11975. interface ServiceWorker extends EventTarget, AbstractWorker {
  11976. onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
  11977. readonly scriptURL: string;
  11978. readonly state: ServiceWorkerState;
  11979. postMessage(message: any, transfer: Transferable[]): void;
  11980. postMessage(message: any, options?: StructuredSerializeOptions): void;
  11981. addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  11982. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  11983. removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  11984. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  11985. }
  11986. declare var ServiceWorker: {
  11987. prototype: ServiceWorker;
  11988. new(): ServiceWorker;
  11989. };
  11990. interface ServiceWorkerContainerEventMap {
  11991. "controllerchange": Event;
  11992. "message": MessageEvent;
  11993. "messageerror": MessageEvent;
  11994. }
  11995. /**
  11996. * 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.
  11997. * Available only in secure contexts.
  11998. */
  11999. interface ServiceWorkerContainer extends EventTarget {
  12000. readonly controller: ServiceWorker | null;
  12001. oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
  12002. onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
  12003. onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
  12004. readonly ready: Promise<ServiceWorkerRegistration>;
  12005. getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
  12006. getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
  12007. register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
  12008. startMessages(): void;
  12009. addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  12010. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  12011. removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  12012. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  12013. }
  12014. declare var ServiceWorkerContainer: {
  12015. prototype: ServiceWorkerContainer;
  12016. new(): ServiceWorkerContainer;
  12017. };
  12018. interface ServiceWorkerRegistrationEventMap {
  12019. "updatefound": Event;
  12020. }
  12021. /**
  12022. * 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.
  12023. * Available only in secure contexts.
  12024. */
  12025. interface ServiceWorkerRegistration extends EventTarget {
  12026. readonly active: ServiceWorker | null;
  12027. readonly installing: ServiceWorker | null;
  12028. onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
  12029. readonly pushManager: PushManager;
  12030. readonly scope: string;
  12031. readonly updateViaCache: ServiceWorkerUpdateViaCache;
  12032. readonly waiting: ServiceWorker | null;
  12033. getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
  12034. showNotification(title: string, options?: NotificationOptions): Promise<void>;
  12035. unregister(): Promise<boolean>;
  12036. update(): Promise<void>;
  12037. addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  12038. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  12039. removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  12040. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  12041. }
  12042. declare var ServiceWorkerRegistration: {
  12043. prototype: ServiceWorkerRegistration;
  12044. new(): ServiceWorkerRegistration;
  12045. };
  12046. interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
  12047. readonly delegatesFocus: boolean;
  12048. readonly host: Element;
  12049. readonly mode: ShadowRootMode;
  12050. /** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
  12051. }
  12052. declare var ShadowRoot: {
  12053. prototype: ShadowRoot;
  12054. new(): ShadowRoot;
  12055. };
  12056. interface SharedWorker extends EventTarget, AbstractWorker {
  12057. /** Returns sharedWorker's MessagePort object which can be used to communicate with the global environment. */
  12058. readonly port: MessagePort;
  12059. addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  12060. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  12061. removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  12062. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  12063. }
  12064. declare var SharedWorker: {
  12065. prototype: SharedWorker;
  12066. new(scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker;
  12067. };
  12068. interface Slottable {
  12069. readonly assignedSlot: HTMLSlotElement | null;
  12070. }
  12071. interface SourceBufferEventMap {
  12072. "abort": Event;
  12073. "error": Event;
  12074. "update": Event;
  12075. "updateend": Event;
  12076. "updatestart": Event;
  12077. }
  12078. /** 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. */
  12079. interface SourceBuffer extends EventTarget {
  12080. appendWindowEnd: number;
  12081. appendWindowStart: number;
  12082. readonly buffered: TimeRanges;
  12083. mode: AppendMode;
  12084. onabort: ((this: SourceBuffer, ev: Event) => any) | null;
  12085. onerror: ((this: SourceBuffer, ev: Event) => any) | null;
  12086. onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
  12087. onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
  12088. onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
  12089. timestampOffset: number;
  12090. readonly updating: boolean;
  12091. abort(): void;
  12092. appendBuffer(data: BufferSource): void;
  12093. changeType(type: string): void;
  12094. remove(start: number, end: number): void;
  12095. addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  12096. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  12097. removeEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  12098. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  12099. }
  12100. declare var SourceBuffer: {
  12101. prototype: SourceBuffer;
  12102. new(): SourceBuffer;
  12103. };
  12104. interface SourceBufferListEventMap {
  12105. "addsourcebuffer": Event;
  12106. "removesourcebuffer": Event;
  12107. }
  12108. /** A simple container list for multiple SourceBuffer objects. */
  12109. interface SourceBufferList extends EventTarget {
  12110. readonly length: number;
  12111. onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
  12112. onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
  12113. addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  12114. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  12115. removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  12116. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  12117. [index: number]: SourceBuffer;
  12118. }
  12119. declare var SourceBufferList: {
  12120. prototype: SourceBufferList;
  12121. new(): SourceBufferList;
  12122. };
  12123. interface SpeechRecognitionAlternative {
  12124. readonly confidence: number;
  12125. readonly transcript: string;
  12126. }
  12127. declare var SpeechRecognitionAlternative: {
  12128. prototype: SpeechRecognitionAlternative;
  12129. new(): SpeechRecognitionAlternative;
  12130. };
  12131. interface SpeechRecognitionResult {
  12132. readonly isFinal: boolean;
  12133. readonly length: number;
  12134. item(index: number): SpeechRecognitionAlternative;
  12135. [index: number]: SpeechRecognitionAlternative;
  12136. }
  12137. declare var SpeechRecognitionResult: {
  12138. prototype: SpeechRecognitionResult;
  12139. new(): SpeechRecognitionResult;
  12140. };
  12141. interface SpeechRecognitionResultList {
  12142. readonly length: number;
  12143. item(index: number): SpeechRecognitionResult;
  12144. [index: number]: SpeechRecognitionResult;
  12145. }
  12146. declare var SpeechRecognitionResultList: {
  12147. prototype: SpeechRecognitionResultList;
  12148. new(): SpeechRecognitionResultList;
  12149. };
  12150. interface SpeechSynthesisEventMap {
  12151. "voiceschanged": Event;
  12152. }
  12153. /** 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. */
  12154. interface SpeechSynthesis extends EventTarget {
  12155. onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null;
  12156. readonly paused: boolean;
  12157. readonly pending: boolean;
  12158. readonly speaking: boolean;
  12159. cancel(): void;
  12160. getVoices(): SpeechSynthesisVoice[];
  12161. pause(): void;
  12162. resume(): void;
  12163. speak(utterance: SpeechSynthesisUtterance): void;
  12164. addEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  12165. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  12166. removeEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  12167. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  12168. }
  12169. declare var SpeechSynthesis: {
  12170. prototype: SpeechSynthesis;
  12171. new(): SpeechSynthesis;
  12172. };
  12173. interface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {
  12174. readonly error: SpeechSynthesisErrorCode;
  12175. }
  12176. declare var SpeechSynthesisErrorEvent: {
  12177. prototype: SpeechSynthesisErrorEvent;
  12178. new(type: string, eventInitDict: SpeechSynthesisErrorEventInit): SpeechSynthesisErrorEvent;
  12179. };
  12180. /** This Web Speech API interface contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service. */
  12181. interface SpeechSynthesisEvent extends Event {
  12182. readonly charIndex: number;
  12183. readonly charLength: number;
  12184. readonly elapsedTime: number;
  12185. readonly name: string;
  12186. readonly utterance: SpeechSynthesisUtterance;
  12187. }
  12188. declare var SpeechSynthesisEvent: {
  12189. prototype: SpeechSynthesisEvent;
  12190. new(type: string, eventInitDict: SpeechSynthesisEventInit): SpeechSynthesisEvent;
  12191. };
  12192. interface SpeechSynthesisUtteranceEventMap {
  12193. "boundary": SpeechSynthesisEvent;
  12194. "end": SpeechSynthesisEvent;
  12195. "error": SpeechSynthesisErrorEvent;
  12196. "mark": SpeechSynthesisEvent;
  12197. "pause": SpeechSynthesisEvent;
  12198. "resume": SpeechSynthesisEvent;
  12199. "start": SpeechSynthesisEvent;
  12200. }
  12201. /** 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.) */
  12202. interface SpeechSynthesisUtterance extends EventTarget {
  12203. lang: string;
  12204. onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
  12205. onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
  12206. onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null;
  12207. onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
  12208. onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
  12209. onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
  12210. onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
  12211. pitch: number;
  12212. rate: number;
  12213. text: string;
  12214. voice: SpeechSynthesisVoice | null;
  12215. volume: number;
  12216. addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  12217. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  12218. removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  12219. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  12220. }
  12221. declare var SpeechSynthesisUtterance: {
  12222. prototype: SpeechSynthesisUtterance;
  12223. new(text?: string): SpeechSynthesisUtterance;
  12224. };
  12225. /** 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. */
  12226. interface SpeechSynthesisVoice {
  12227. readonly default: boolean;
  12228. readonly lang: string;
  12229. readonly localService: boolean;
  12230. readonly name: string;
  12231. readonly voiceURI: string;
  12232. }
  12233. declare var SpeechSynthesisVoice: {
  12234. prototype: SpeechSynthesisVoice;
  12235. new(): SpeechSynthesisVoice;
  12236. };
  12237. interface StaticRange extends AbstractRange {
  12238. }
  12239. declare var StaticRange: {
  12240. prototype: StaticRange;
  12241. new(init: StaticRangeInit): StaticRange;
  12242. };
  12243. /** 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. */
  12244. interface StereoPannerNode extends AudioNode {
  12245. readonly pan: AudioParam;
  12246. }
  12247. declare var StereoPannerNode: {
  12248. prototype: StereoPannerNode;
  12249. new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode;
  12250. };
  12251. /** 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. */
  12252. interface Storage {
  12253. /** Returns the number of key/value pairs. */
  12254. readonly length: number;
  12255. /**
  12256. * Removes all key/value pairs, if there are any.
  12257. *
  12258. * Dispatches a storage event on Window objects holding an equivalent Storage object.
  12259. */
  12260. clear(): void;
  12261. /** Returns the current value associated with the given key, or null if the given key does not exist. */
  12262. getItem(key: string): string | null;
  12263. /** Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs. */
  12264. key(index: number): string | null;
  12265. /**
  12266. * Removes the key/value pair with the given key, if a key/value pair with the given key exists.
  12267. *
  12268. * Dispatches a storage event on Window objects holding an equivalent Storage object.
  12269. */
  12270. removeItem(key: string): void;
  12271. /**
  12272. * Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.
  12273. *
  12274. * 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.)
  12275. *
  12276. * Dispatches a storage event on Window objects holding an equivalent Storage object.
  12277. */
  12278. setItem(key: string, value: string): void;
  12279. [name: string]: any;
  12280. }
  12281. declare var Storage: {
  12282. prototype: Storage;
  12283. new(): Storage;
  12284. };
  12285. /** A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document. */
  12286. interface StorageEvent extends Event {
  12287. /** Returns the key of the storage item being changed. */
  12288. readonly key: string | null;
  12289. /** Returns the new value of the key of the storage item whose value is being changed. */
  12290. readonly newValue: string | null;
  12291. /** Returns the old value of the key of the storage item whose value is being changed. */
  12292. readonly oldValue: string | null;
  12293. /** Returns the Storage object that was affected. */
  12294. readonly storageArea: Storage | null;
  12295. /** Returns the URL of the document whose storage item changed. */
  12296. readonly url: string;
  12297. initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void;
  12298. }
  12299. declare var StorageEvent: {
  12300. prototype: StorageEvent;
  12301. new(type: string, eventInitDict?: StorageEventInit): StorageEvent;
  12302. };
  12303. /** Available only in secure contexts. */
  12304. interface StorageManager {
  12305. estimate(): Promise<StorageEstimate>;
  12306. persist(): Promise<boolean>;
  12307. persisted(): Promise<boolean>;
  12308. }
  12309. declare var StorageManager: {
  12310. prototype: StorageManager;
  12311. new(): StorageManager;
  12312. };
  12313. /** @deprecated */
  12314. interface StyleMedia {
  12315. type: string;
  12316. matchMedium(mediaquery: string): boolean;
  12317. }
  12318. /** A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. */
  12319. interface StyleSheet {
  12320. disabled: boolean;
  12321. readonly href: string | null;
  12322. readonly media: MediaList;
  12323. readonly ownerNode: Element | ProcessingInstruction | null;
  12324. readonly parentStyleSheet: CSSStyleSheet | null;
  12325. readonly title: string | null;
  12326. readonly type: string;
  12327. }
  12328. declare var StyleSheet: {
  12329. prototype: StyleSheet;
  12330. new(): StyleSheet;
  12331. };
  12332. /** A list of StyleSheet. */
  12333. interface StyleSheetList {
  12334. readonly length: number;
  12335. item(index: number): CSSStyleSheet | null;
  12336. [index: number]: CSSStyleSheet;
  12337. }
  12338. declare var StyleSheetList: {
  12339. prototype: StyleSheetList;
  12340. new(): StyleSheetList;
  12341. };
  12342. interface SubmitEvent extends Event {
  12343. /** Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button. */
  12344. readonly submitter: HTMLElement | null;
  12345. }
  12346. declare var SubmitEvent: {
  12347. prototype: SubmitEvent;
  12348. new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent;
  12349. };
  12350. /**
  12351. * 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).
  12352. * Available only in secure contexts.
  12353. */
  12354. interface SubtleCrypto {
  12355. decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
  12356. deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
  12357. deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
  12358. digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
  12359. encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
  12360. exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
  12361. exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
  12362. generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
  12363. generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
  12364. generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
  12365. importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
  12366. importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
  12367. sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
  12368. 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>;
  12369. verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
  12370. wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
  12371. }
  12372. declare var SubtleCrypto: {
  12373. prototype: SubtleCrypto;
  12374. new(): SubtleCrypto;
  12375. };
  12376. /** 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. */
  12377. interface Text extends CharacterData, Slottable {
  12378. /** Returns the combined data of all direct Text node siblings. */
  12379. readonly wholeText: string;
  12380. /** Splits data at the given offset and returns the remainder as Text node. */
  12381. splitText(offset: number): Text;
  12382. }
  12383. declare var Text: {
  12384. prototype: Text;
  12385. new(data?: string): Text;
  12386. };
  12387. /** 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. */
  12388. interface TextDecoder extends TextDecoderCommon {
  12389. /**
  12390. * 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.
  12391. *
  12392. * \`\`\`
  12393. * var string = "", decoder = new TextDecoder(encoding), buffer;
  12394. * while(buffer = next_chunk()) {
  12395. * string += decoder.decode(buffer, {stream:true});
  12396. * }
  12397. * string += decoder.decode(); // end-of-queue
  12398. * \`\`\`
  12399. *
  12400. * If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
  12401. */
  12402. decode(input?: BufferSource, options?: TextDecodeOptions): string;
  12403. }
  12404. declare var TextDecoder: {
  12405. prototype: TextDecoder;
  12406. new(label?: string, options?: TextDecoderOptions): TextDecoder;
  12407. };
  12408. interface TextDecoderCommon {
  12409. /** Returns encoding's name, lowercased. */
  12410. readonly encoding: string;
  12411. /** Returns true if error mode is "fatal", otherwise false. */
  12412. readonly fatal: boolean;
  12413. /** Returns the value of ignore BOM. */
  12414. readonly ignoreBOM: boolean;
  12415. }
  12416. interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
  12417. readonly readable: ReadableStream<string>;
  12418. readonly writable: WritableStream<BufferSource>;
  12419. }
  12420. declare var TextDecoderStream: {
  12421. prototype: TextDecoderStream;
  12422. new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
  12423. };
  12424. /** 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. */
  12425. interface TextEncoder extends TextEncoderCommon {
  12426. /** Returns the result of running UTF-8's encoder. */
  12427. encode(input?: string): Uint8Array;
  12428. /** 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. */
  12429. encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
  12430. }
  12431. declare var TextEncoder: {
  12432. prototype: TextEncoder;
  12433. new(): TextEncoder;
  12434. };
  12435. interface TextEncoderCommon {
  12436. /** Returns "utf-8". */
  12437. readonly encoding: string;
  12438. }
  12439. interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
  12440. readonly readable: ReadableStream<Uint8Array>;
  12441. readonly writable: WritableStream<string>;
  12442. }
  12443. declare var TextEncoderStream: {
  12444. prototype: TextEncoderStream;
  12445. new(): TextEncoderStream;
  12446. };
  12447. /** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
  12448. interface TextMetrics {
  12449. /** Returns the measurement described below. */
  12450. readonly actualBoundingBoxAscent: number;
  12451. /** Returns the measurement described below. */
  12452. readonly actualBoundingBoxDescent: number;
  12453. /** Returns the measurement described below. */
  12454. readonly actualBoundingBoxLeft: number;
  12455. /** Returns the measurement described below. */
  12456. readonly actualBoundingBoxRight: number;
  12457. /** Returns the measurement described below. */
  12458. readonly fontBoundingBoxAscent: number;
  12459. /** Returns the measurement described below. */
  12460. readonly fontBoundingBoxDescent: number;
  12461. /** Returns the measurement described below. */
  12462. readonly width: number;
  12463. }
  12464. declare var TextMetrics: {
  12465. prototype: TextMetrics;
  12466. new(): TextMetrics;
  12467. };
  12468. interface TextTrackEventMap {
  12469. "cuechange": Event;
  12470. }
  12471. /** This interface also inherits properties from EventTarget. */
  12472. interface TextTrack extends EventTarget {
  12473. /** 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. */
  12474. readonly activeCues: TextTrackCueList | null;
  12475. /** Returns the text track list of cues, as a TextTrackCueList object. */
  12476. readonly cues: TextTrackCueList | null;
  12477. /**
  12478. * Returns the ID of the given track.
  12479. *
  12480. * 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.
  12481. *
  12482. * For TextTrack objects corresponding to track elements, this is the ID of the track element.
  12483. */
  12484. readonly id: string;
  12485. /** Returns the text track in-band metadata track dispatch type string. */
  12486. readonly inBandMetadataTrackDispatchType: string;
  12487. /** Returns the text track kind string. */
  12488. readonly kind: TextTrackKind;
  12489. /** 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). */
  12490. readonly label: string;
  12491. /** Returns the text track language string. */
  12492. readonly language: string;
  12493. /**
  12494. * Returns the text track mode, represented by a string from the following list:
  12495. *
  12496. * Can be set, to change the mode.
  12497. */
  12498. mode: TextTrackMode;
  12499. oncuechange: ((this: TextTrack, ev: Event) => any) | null;
  12500. /** Adds the given cue to textTrack's text track list of cues. */
  12501. addCue(cue: TextTrackCue): void;
  12502. /** Removes the given cue from textTrack's text track list of cues. */
  12503. removeCue(cue: TextTrackCue): void;
  12504. addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  12505. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  12506. removeEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  12507. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  12508. }
  12509. declare var TextTrack: {
  12510. prototype: TextTrack;
  12511. new(): TextTrack;
  12512. };
  12513. interface TextTrackCueEventMap {
  12514. "enter": Event;
  12515. "exit": Event;
  12516. }
  12517. /** 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. */
  12518. interface TextTrackCue extends EventTarget {
  12519. /**
  12520. * Returns the text track cue end time, in seconds.
  12521. *
  12522. * Can be set.
  12523. */
  12524. endTime: number;
  12525. /**
  12526. * Returns the text track cue identifier.
  12527. *
  12528. * Can be set.
  12529. */
  12530. id: string;
  12531. onenter: ((this: TextTrackCue, ev: Event) => any) | null;
  12532. onexit: ((this: TextTrackCue, ev: Event) => any) | null;
  12533. /**
  12534. * Returns true if the text track cue pause-on-exit flag is set, false otherwise.
  12535. *
  12536. * Can be set.
  12537. */
  12538. pauseOnExit: boolean;
  12539. /**
  12540. * Returns the text track cue start time, in seconds.
  12541. *
  12542. * Can be set.
  12543. */
  12544. startTime: number;
  12545. /** Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise. */
  12546. readonly track: TextTrack | null;
  12547. addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  12548. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  12549. removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  12550. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  12551. }
  12552. declare var TextTrackCue: {
  12553. prototype: TextTrackCue;
  12554. new(): TextTrackCue;
  12555. };
  12556. interface TextTrackCueList {
  12557. /** Returns the number of cues in the list. */
  12558. readonly length: number;
  12559. /**
  12560. * Returns the first text track cue (in text track cue order) with text track cue identifier id.
  12561. *
  12562. * Returns null if none of the cues have the given identifier or if the argument is the empty string.
  12563. */
  12564. getCueById(id: string): TextTrackCue | null;
  12565. [index: number]: TextTrackCue;
  12566. }
  12567. declare var TextTrackCueList: {
  12568. prototype: TextTrackCueList;
  12569. new(): TextTrackCueList;
  12570. };
  12571. interface TextTrackListEventMap {
  12572. "addtrack": TrackEvent;
  12573. "change": Event;
  12574. "removetrack": TrackEvent;
  12575. }
  12576. interface TextTrackList extends EventTarget {
  12577. readonly length: number;
  12578. onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
  12579. onchange: ((this: TextTrackList, ev: Event) => any) | null;
  12580. onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
  12581. getTrackById(id: string): TextTrack | null;
  12582. addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  12583. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  12584. removeEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  12585. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  12586. [index: number]: TextTrack;
  12587. }
  12588. declare var TextTrackList: {
  12589. prototype: TextTrackList;
  12590. new(): TextTrackList;
  12591. };
  12592. /** 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. */
  12593. interface TimeRanges {
  12594. /** Returns the number of ranges in the object. */
  12595. readonly length: number;
  12596. /**
  12597. * Returns the time for the end of the range with the given index.
  12598. *
  12599. * Throws an "IndexSizeError" DOMException if the index is out of range.
  12600. */
  12601. end(index: number): number;
  12602. /**
  12603. * Returns the time for the start of the range with the given index.
  12604. *
  12605. * Throws an "IndexSizeError" DOMException if the index is out of range.
  12606. */
  12607. start(index: number): number;
  12608. }
  12609. declare var TimeRanges: {
  12610. prototype: TimeRanges;
  12611. new(): TimeRanges;
  12612. };
  12613. /** 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. */
  12614. interface Touch {
  12615. readonly clientX: number;
  12616. readonly clientY: number;
  12617. readonly force: number;
  12618. readonly identifier: number;
  12619. readonly pageX: number;
  12620. readonly pageY: number;
  12621. readonly radiusX: number;
  12622. readonly radiusY: number;
  12623. readonly rotationAngle: number;
  12624. readonly screenX: number;
  12625. readonly screenY: number;
  12626. readonly target: EventTarget;
  12627. }
  12628. declare var Touch: {
  12629. prototype: Touch;
  12630. new(touchInitDict: TouchInit): Touch;
  12631. };
  12632. /** 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. */
  12633. interface TouchEvent extends UIEvent {
  12634. readonly altKey: boolean;
  12635. readonly changedTouches: TouchList;
  12636. readonly ctrlKey: boolean;
  12637. readonly metaKey: boolean;
  12638. readonly shiftKey: boolean;
  12639. readonly targetTouches: TouchList;
  12640. readonly touches: TouchList;
  12641. }
  12642. declare var TouchEvent: {
  12643. prototype: TouchEvent;
  12644. new(type: string, eventInitDict?: TouchEventInit): TouchEvent;
  12645. };
  12646. /** 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. */
  12647. interface TouchList {
  12648. readonly length: number;
  12649. item(index: number): Touch | null;
  12650. [index: number]: Touch;
  12651. }
  12652. declare var TouchList: {
  12653. prototype: TouchList;
  12654. new(): TouchList;
  12655. };
  12656. /** 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. */
  12657. interface TrackEvent extends Event {
  12658. /** Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates. */
  12659. readonly track: TextTrack | null;
  12660. }
  12661. declare var TrackEvent: {
  12662. prototype: TrackEvent;
  12663. new(type: string, eventInitDict?: TrackEventInit): TrackEvent;
  12664. };
  12665. interface TransformStream<I = any, O = any> {
  12666. readonly readable: ReadableStream<O>;
  12667. readonly writable: WritableStream<I>;
  12668. }
  12669. declare var TransformStream: {
  12670. prototype: TransformStream;
  12671. new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
  12672. };
  12673. interface TransformStreamDefaultController<O = any> {
  12674. readonly desiredSize: number | null;
  12675. enqueue(chunk?: O): void;
  12676. error(reason?: any): void;
  12677. terminate(): void;
  12678. }
  12679. declare var TransformStreamDefaultController: {
  12680. prototype: TransformStreamDefaultController;
  12681. new(): TransformStreamDefaultController;
  12682. };
  12683. /** Events providing information related to transitions. */
  12684. interface TransitionEvent extends Event {
  12685. readonly elapsedTime: number;
  12686. readonly propertyName: string;
  12687. readonly pseudoElement: string;
  12688. }
  12689. declare var TransitionEvent: {
  12690. prototype: TransitionEvent;
  12691. new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent;
  12692. };
  12693. /** The nodes of a document subtree and a position within them. */
  12694. interface TreeWalker {
  12695. currentNode: Node;
  12696. readonly filter: NodeFilter | null;
  12697. readonly root: Node;
  12698. readonly whatToShow: number;
  12699. firstChild(): Node | null;
  12700. lastChild(): Node | null;
  12701. nextNode(): Node | null;
  12702. nextSibling(): Node | null;
  12703. parentNode(): Node | null;
  12704. previousNode(): Node | null;
  12705. previousSibling(): Node | null;
  12706. }
  12707. declare var TreeWalker: {
  12708. prototype: TreeWalker;
  12709. new(): TreeWalker;
  12710. };
  12711. /** Simple user interface events. */
  12712. interface UIEvent extends Event {
  12713. readonly detail: number;
  12714. readonly view: Window | null;
  12715. /** @deprecated */
  12716. readonly which: number;
  12717. /** @deprecated */
  12718. initUIEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, detailArg?: number): void;
  12719. }
  12720. declare var UIEvent: {
  12721. prototype: UIEvent;
  12722. new(type: string, eventInitDict?: UIEventInit): UIEvent;
  12723. };
  12724. /** The URL interface represents an object providing static methods used for creating object URLs. */
  12725. interface URL {
  12726. hash: string;
  12727. host: string;
  12728. hostname: string;
  12729. href: string;
  12730. toString(): string;
  12731. readonly origin: string;
  12732. password: string;
  12733. pathname: string;
  12734. port: string;
  12735. protocol: string;
  12736. search: string;
  12737. readonly searchParams: URLSearchParams;
  12738. username: string;
  12739. toJSON(): string;
  12740. }
  12741. declare var URL: {
  12742. prototype: URL;
  12743. new(url: string | URL, base?: string | URL): URL;
  12744. createObjectURL(obj: Blob | MediaSource): string;
  12745. revokeObjectURL(url: string): void;
  12746. };
  12747. type webkitURL = URL;
  12748. declare var webkitURL: typeof URL;
  12749. interface URLSearchParams {
  12750. /** Appends a specified key/value pair as a new search parameter. */
  12751. append(name: string, value: string): void;
  12752. /** Deletes the given search parameter, and its associated value, from the list of all search parameters. */
  12753. delete(name: string): void;
  12754. /** Returns the first value associated to the given search parameter. */
  12755. get(name: string): string | null;
  12756. /** Returns all the values association with a given search parameter. */
  12757. getAll(name: string): string[];
  12758. /** Returns a Boolean indicating if such a search parameter exists. */
  12759. has(name: string): boolean;
  12760. /** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */
  12761. set(name: string, value: string): void;
  12762. sort(): void;
  12763. /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
  12764. toString(): string;
  12765. forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
  12766. }
  12767. declare var URLSearchParams: {
  12768. prototype: URLSearchParams;
  12769. new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
  12770. toString(): string;
  12771. };
  12772. interface VTTCue extends TextTrackCue {
  12773. align: AlignSetting;
  12774. line: LineAndPositionSetting;
  12775. lineAlign: LineAlignSetting;
  12776. position: LineAndPositionSetting;
  12777. positionAlign: PositionAlignSetting;
  12778. region: VTTRegion | null;
  12779. size: number;
  12780. snapToLines: boolean;
  12781. text: string;
  12782. vertical: DirectionSetting;
  12783. getCueAsHTML(): DocumentFragment;
  12784. addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  12785. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  12786. removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  12787. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  12788. }
  12789. declare var VTTCue: {
  12790. prototype: VTTCue;
  12791. new(startTime: number, endTime: number, text: string): VTTCue;
  12792. };
  12793. interface VTTRegion {
  12794. id: string;
  12795. lines: number;
  12796. regionAnchorX: number;
  12797. regionAnchorY: number;
  12798. scroll: ScrollSetting;
  12799. viewportAnchorX: number;
  12800. viewportAnchorY: number;
  12801. width: number;
  12802. }
  12803. declare var VTTRegion: {
  12804. prototype: VTTRegion;
  12805. new(): VTTRegion;
  12806. };
  12807. /** 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. */
  12808. interface ValidityState {
  12809. readonly badInput: boolean;
  12810. readonly customError: boolean;
  12811. readonly patternMismatch: boolean;
  12812. readonly rangeOverflow: boolean;
  12813. readonly rangeUnderflow: boolean;
  12814. readonly stepMismatch: boolean;
  12815. readonly tooLong: boolean;
  12816. readonly tooShort: boolean;
  12817. readonly typeMismatch: boolean;
  12818. readonly valid: boolean;
  12819. readonly valueMissing: boolean;
  12820. }
  12821. declare var ValidityState: {
  12822. prototype: ValidityState;
  12823. new(): ValidityState;
  12824. };
  12825. /** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */
  12826. interface VideoPlaybackQuality {
  12827. /** @deprecated */
  12828. readonly corruptedVideoFrames: number;
  12829. readonly creationTime: DOMHighResTimeStamp;
  12830. readonly droppedVideoFrames: number;
  12831. readonly totalVideoFrames: number;
  12832. }
  12833. declare var VideoPlaybackQuality: {
  12834. prototype: VideoPlaybackQuality;
  12835. new(): VideoPlaybackQuality;
  12836. };
  12837. interface VisualViewportEventMap {
  12838. "resize": Event;
  12839. "scroll": Event;
  12840. }
  12841. interface VisualViewport extends EventTarget {
  12842. readonly height: number;
  12843. readonly offsetLeft: number;
  12844. readonly offsetTop: number;
  12845. onresize: ((this: VisualViewport, ev: Event) => any) | null;
  12846. onscroll: ((this: VisualViewport, ev: Event) => any) | null;
  12847. readonly pageLeft: number;
  12848. readonly pageTop: number;
  12849. readonly scale: number;
  12850. readonly width: number;
  12851. addEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  12852. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  12853. removeEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  12854. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  12855. }
  12856. declare var VisualViewport: {
  12857. prototype: VisualViewport;
  12858. new(): VisualViewport;
  12859. };
  12860. interface WEBGL_color_buffer_float {
  12861. readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
  12862. readonly RGBA32F_EXT: GLenum;
  12863. readonly UNSIGNED_NORMALIZED_EXT: GLenum;
  12864. }
  12865. interface WEBGL_compressed_texture_astc {
  12866. getSupportedProfiles(): string[];
  12867. readonly COMPRESSED_RGBA_ASTC_10x10_KHR: GLenum;
  12868. readonly COMPRESSED_RGBA_ASTC_10x5_KHR: GLenum;
  12869. readonly COMPRESSED_RGBA_ASTC_10x6_KHR: GLenum;
  12870. readonly COMPRESSED_RGBA_ASTC_10x8_KHR: GLenum;
  12871. readonly COMPRESSED_RGBA_ASTC_12x10_KHR: GLenum;
  12872. readonly COMPRESSED_RGBA_ASTC_12x12_KHR: GLenum;
  12873. readonly COMPRESSED_RGBA_ASTC_4x4_KHR: GLenum;
  12874. readonly COMPRESSED_RGBA_ASTC_5x4_KHR: GLenum;
  12875. readonly COMPRESSED_RGBA_ASTC_5x5_KHR: GLenum;
  12876. readonly COMPRESSED_RGBA_ASTC_6x5_KHR: GLenum;
  12877. readonly COMPRESSED_RGBA_ASTC_6x6_KHR: GLenum;
  12878. readonly COMPRESSED_RGBA_ASTC_8x5_KHR: GLenum;
  12879. readonly COMPRESSED_RGBA_ASTC_8x6_KHR: GLenum;
  12880. readonly COMPRESSED_RGBA_ASTC_8x8_KHR: GLenum;
  12881. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: GLenum;
  12882. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: GLenum;
  12883. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: GLenum;
  12884. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: GLenum;
  12885. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: GLenum;
  12886. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: GLenum;
  12887. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: GLenum;
  12888. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: GLenum;
  12889. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: GLenum;
  12890. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: GLenum;
  12891. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: GLenum;
  12892. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: GLenum;
  12893. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: GLenum;
  12894. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum;
  12895. }
  12896. interface WEBGL_compressed_texture_etc {
  12897. readonly COMPRESSED_R11_EAC: GLenum;
  12898. readonly COMPRESSED_RG11_EAC: GLenum;
  12899. readonly COMPRESSED_RGB8_ETC2: GLenum;
  12900. readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
  12901. readonly COMPRESSED_RGBA8_ETC2_EAC: GLenum;
  12902. readonly COMPRESSED_SIGNED_R11_EAC: GLenum;
  12903. readonly COMPRESSED_SIGNED_RG11_EAC: GLenum;
  12904. readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: GLenum;
  12905. readonly COMPRESSED_SRGB8_ETC2: GLenum;
  12906. readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
  12907. }
  12908. interface WEBGL_compressed_texture_etc1 {
  12909. readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
  12910. }
  12911. interface WEBGL_compressed_texture_pvrtc {
  12912. readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
  12913. readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
  12914. readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
  12915. readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
  12916. }
  12917. /** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
  12918. interface WEBGL_compressed_texture_s3tc {
  12919. readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
  12920. readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: GLenum;
  12921. readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: GLenum;
  12922. readonly COMPRESSED_RGB_S3TC_DXT1_EXT: GLenum;
  12923. }
  12924. interface WEBGL_compressed_texture_s3tc_srgb {
  12925. readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: GLenum;
  12926. readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: GLenum;
  12927. readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: GLenum;
  12928. readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: GLenum;
  12929. }
  12930. /** 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. */
  12931. interface WEBGL_debug_renderer_info {
  12932. readonly UNMASKED_RENDERER_WEBGL: GLenum;
  12933. readonly UNMASKED_VENDOR_WEBGL: GLenum;
  12934. }
  12935. interface WEBGL_debug_shaders {
  12936. getTranslatedShaderSource(shader: WebGLShader): string;
  12937. }
  12938. /** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */
  12939. interface WEBGL_depth_texture {
  12940. readonly UNSIGNED_INT_24_8_WEBGL: GLenum;
  12941. }
  12942. interface WEBGL_draw_buffers {
  12943. drawBuffersWEBGL(buffers: GLenum[]): void;
  12944. readonly COLOR_ATTACHMENT0_WEBGL: GLenum;
  12945. readonly COLOR_ATTACHMENT10_WEBGL: GLenum;
  12946. readonly COLOR_ATTACHMENT11_WEBGL: GLenum;
  12947. readonly COLOR_ATTACHMENT12_WEBGL: GLenum;
  12948. readonly COLOR_ATTACHMENT13_WEBGL: GLenum;
  12949. readonly COLOR_ATTACHMENT14_WEBGL: GLenum;
  12950. readonly COLOR_ATTACHMENT15_WEBGL: GLenum;
  12951. readonly COLOR_ATTACHMENT1_WEBGL: GLenum;
  12952. readonly COLOR_ATTACHMENT2_WEBGL: GLenum;
  12953. readonly COLOR_ATTACHMENT3_WEBGL: GLenum;
  12954. readonly COLOR_ATTACHMENT4_WEBGL: GLenum;
  12955. readonly COLOR_ATTACHMENT5_WEBGL: GLenum;
  12956. readonly COLOR_ATTACHMENT6_WEBGL: GLenum;
  12957. readonly COLOR_ATTACHMENT7_WEBGL: GLenum;
  12958. readonly COLOR_ATTACHMENT8_WEBGL: GLenum;
  12959. readonly COLOR_ATTACHMENT9_WEBGL: GLenum;
  12960. readonly DRAW_BUFFER0_WEBGL: GLenum;
  12961. readonly DRAW_BUFFER10_WEBGL: GLenum;
  12962. readonly DRAW_BUFFER11_WEBGL: GLenum;
  12963. readonly DRAW_BUFFER12_WEBGL: GLenum;
  12964. readonly DRAW_BUFFER13_WEBGL: GLenum;
  12965. readonly DRAW_BUFFER14_WEBGL: GLenum;
  12966. readonly DRAW_BUFFER15_WEBGL: GLenum;
  12967. readonly DRAW_BUFFER1_WEBGL: GLenum;
  12968. readonly DRAW_BUFFER2_WEBGL: GLenum;
  12969. readonly DRAW_BUFFER3_WEBGL: GLenum;
  12970. readonly DRAW_BUFFER4_WEBGL: GLenum;
  12971. readonly DRAW_BUFFER5_WEBGL: GLenum;
  12972. readonly DRAW_BUFFER6_WEBGL: GLenum;
  12973. readonly DRAW_BUFFER7_WEBGL: GLenum;
  12974. readonly DRAW_BUFFER8_WEBGL: GLenum;
  12975. readonly DRAW_BUFFER9_WEBGL: GLenum;
  12976. readonly MAX_COLOR_ATTACHMENTS_WEBGL: GLenum;
  12977. readonly MAX_DRAW_BUFFERS_WEBGL: GLenum;
  12978. }
  12979. interface WEBGL_lose_context {
  12980. loseContext(): void;
  12981. restoreContext(): void;
  12982. }
  12983. /** A WaveShaperNode always has exactly one input and one output. */
  12984. interface WaveShaperNode extends AudioNode {
  12985. curve: Float32Array | null;
  12986. oversample: OverSampleType;
  12987. }
  12988. declare var WaveShaperNode: {
  12989. prototype: WaveShaperNode;
  12990. new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;
  12991. };
  12992. interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
  12993. }
  12994. declare var WebGL2RenderingContext: {
  12995. prototype: WebGL2RenderingContext;
  12996. new(): WebGL2RenderingContext;
  12997. readonly ACTIVE_UNIFORM_BLOCKS: GLenum;
  12998. readonly ALREADY_SIGNALED: GLenum;
  12999. readonly ANY_SAMPLES_PASSED: GLenum;
  13000. readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;
  13001. readonly COLOR: GLenum;
  13002. readonly COLOR_ATTACHMENT1: GLenum;
  13003. readonly COLOR_ATTACHMENT10: GLenum;
  13004. readonly COLOR_ATTACHMENT11: GLenum;
  13005. readonly COLOR_ATTACHMENT12: GLenum;
  13006. readonly COLOR_ATTACHMENT13: GLenum;
  13007. readonly COLOR_ATTACHMENT14: GLenum;
  13008. readonly COLOR_ATTACHMENT15: GLenum;
  13009. readonly COLOR_ATTACHMENT2: GLenum;
  13010. readonly COLOR_ATTACHMENT3: GLenum;
  13011. readonly COLOR_ATTACHMENT4: GLenum;
  13012. readonly COLOR_ATTACHMENT5: GLenum;
  13013. readonly COLOR_ATTACHMENT6: GLenum;
  13014. readonly COLOR_ATTACHMENT7: GLenum;
  13015. readonly COLOR_ATTACHMENT8: GLenum;
  13016. readonly COLOR_ATTACHMENT9: GLenum;
  13017. readonly COMPARE_REF_TO_TEXTURE: GLenum;
  13018. readonly CONDITION_SATISFIED: GLenum;
  13019. readonly COPY_READ_BUFFER: GLenum;
  13020. readonly COPY_READ_BUFFER_BINDING: GLenum;
  13021. readonly COPY_WRITE_BUFFER: GLenum;
  13022. readonly COPY_WRITE_BUFFER_BINDING: GLenum;
  13023. readonly CURRENT_QUERY: GLenum;
  13024. readonly DEPTH: GLenum;
  13025. readonly DEPTH24_STENCIL8: GLenum;
  13026. readonly DEPTH32F_STENCIL8: GLenum;
  13027. readonly DEPTH_COMPONENT24: GLenum;
  13028. readonly DEPTH_COMPONENT32F: GLenum;
  13029. readonly DRAW_BUFFER0: GLenum;
  13030. readonly DRAW_BUFFER1: GLenum;
  13031. readonly DRAW_BUFFER10: GLenum;
  13032. readonly DRAW_BUFFER11: GLenum;
  13033. readonly DRAW_BUFFER12: GLenum;
  13034. readonly DRAW_BUFFER13: GLenum;
  13035. readonly DRAW_BUFFER14: GLenum;
  13036. readonly DRAW_BUFFER15: GLenum;
  13037. readonly DRAW_BUFFER2: GLenum;
  13038. readonly DRAW_BUFFER3: GLenum;
  13039. readonly DRAW_BUFFER4: GLenum;
  13040. readonly DRAW_BUFFER5: GLenum;
  13041. readonly DRAW_BUFFER6: GLenum;
  13042. readonly DRAW_BUFFER7: GLenum;
  13043. readonly DRAW_BUFFER8: GLenum;
  13044. readonly DRAW_BUFFER9: GLenum;
  13045. readonly DRAW_FRAMEBUFFER: GLenum;
  13046. readonly DRAW_FRAMEBUFFER_BINDING: GLenum;
  13047. readonly DYNAMIC_COPY: GLenum;
  13048. readonly DYNAMIC_READ: GLenum;
  13049. readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;
  13050. readonly FLOAT_MAT2x3: GLenum;
  13051. readonly FLOAT_MAT2x4: GLenum;
  13052. readonly FLOAT_MAT3x2: GLenum;
  13053. readonly FLOAT_MAT3x4: GLenum;
  13054. readonly FLOAT_MAT4x2: GLenum;
  13055. readonly FLOAT_MAT4x3: GLenum;
  13056. readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;
  13057. readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;
  13058. readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;
  13059. readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;
  13060. readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;
  13061. readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;
  13062. readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;
  13063. readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;
  13064. readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;
  13065. readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;
  13066. readonly FRAMEBUFFER_DEFAULT: GLenum;
  13067. readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;
  13068. readonly HALF_FLOAT: GLenum;
  13069. readonly INTERLEAVED_ATTRIBS: GLenum;
  13070. readonly INT_2_10_10_10_REV: GLenum;
  13071. readonly INT_SAMPLER_2D: GLenum;
  13072. readonly INT_SAMPLER_2D_ARRAY: GLenum;
  13073. readonly INT_SAMPLER_3D: GLenum;
  13074. readonly INT_SAMPLER_CUBE: GLenum;
  13075. readonly INVALID_INDEX: GLenum;
  13076. readonly MAX: GLenum;
  13077. readonly MAX_3D_TEXTURE_SIZE: GLenum;
  13078. readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;
  13079. readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;
  13080. readonly MAX_COLOR_ATTACHMENTS: GLenum;
  13081. readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
  13082. readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;
  13083. readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;
  13084. readonly MAX_DRAW_BUFFERS: GLenum;
  13085. readonly MAX_ELEMENTS_INDICES: GLenum;
  13086. readonly MAX_ELEMENTS_VERTICES: GLenum;
  13087. readonly MAX_ELEMENT_INDEX: GLenum;
  13088. readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;
  13089. readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;
  13090. readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
  13091. readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;
  13092. readonly MAX_SAMPLES: GLenum;
  13093. readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;
  13094. readonly MAX_TEXTURE_LOD_BIAS: GLenum;
  13095. readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;
  13096. readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;
  13097. readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;
  13098. readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;
  13099. readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;
  13100. readonly MAX_VARYING_COMPONENTS: GLenum;
  13101. readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;
  13102. readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;
  13103. readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;
  13104. readonly MIN: GLenum;
  13105. readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;
  13106. readonly OBJECT_TYPE: GLenum;
  13107. readonly PACK_ROW_LENGTH: GLenum;
  13108. readonly PACK_SKIP_PIXELS: GLenum;
  13109. readonly PACK_SKIP_ROWS: GLenum;
  13110. readonly PIXEL_PACK_BUFFER: GLenum;
  13111. readonly PIXEL_PACK_BUFFER_BINDING: GLenum;
  13112. readonly PIXEL_UNPACK_BUFFER: GLenum;
  13113. readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;
  13114. readonly QUERY_RESULT: GLenum;
  13115. readonly QUERY_RESULT_AVAILABLE: GLenum;
  13116. readonly R11F_G11F_B10F: GLenum;
  13117. readonly R16F: GLenum;
  13118. readonly R16I: GLenum;
  13119. readonly R16UI: GLenum;
  13120. readonly R32F: GLenum;
  13121. readonly R32I: GLenum;
  13122. readonly R32UI: GLenum;
  13123. readonly R8: GLenum;
  13124. readonly R8I: GLenum;
  13125. readonly R8UI: GLenum;
  13126. readonly R8_SNORM: GLenum;
  13127. readonly RASTERIZER_DISCARD: GLenum;
  13128. readonly READ_BUFFER: GLenum;
  13129. readonly READ_FRAMEBUFFER: GLenum;
  13130. readonly READ_FRAMEBUFFER_BINDING: GLenum;
  13131. readonly RED: GLenum;
  13132. readonly RED_INTEGER: GLenum;
  13133. readonly RENDERBUFFER_SAMPLES: GLenum;
  13134. readonly RG: GLenum;
  13135. readonly RG16F: GLenum;
  13136. readonly RG16I: GLenum;
  13137. readonly RG16UI: GLenum;
  13138. readonly RG32F: GLenum;
  13139. readonly RG32I: GLenum;
  13140. readonly RG32UI: GLenum;
  13141. readonly RG8: GLenum;
  13142. readonly RG8I: GLenum;
  13143. readonly RG8UI: GLenum;
  13144. readonly RG8_SNORM: GLenum;
  13145. readonly RGB10_A2: GLenum;
  13146. readonly RGB10_A2UI: GLenum;
  13147. readonly RGB16F: GLenum;
  13148. readonly RGB16I: GLenum;
  13149. readonly RGB16UI: GLenum;
  13150. readonly RGB32F: GLenum;
  13151. readonly RGB32I: GLenum;
  13152. readonly RGB32UI: GLenum;
  13153. readonly RGB8: GLenum;
  13154. readonly RGB8I: GLenum;
  13155. readonly RGB8UI: GLenum;
  13156. readonly RGB8_SNORM: GLenum;
  13157. readonly RGB9_E5: GLenum;
  13158. readonly RGBA16F: GLenum;
  13159. readonly RGBA16I: GLenum;
  13160. readonly RGBA16UI: GLenum;
  13161. readonly RGBA32F: GLenum;
  13162. readonly RGBA32I: GLenum;
  13163. readonly RGBA32UI: GLenum;
  13164. readonly RGBA8: GLenum;
  13165. readonly RGBA8I: GLenum;
  13166. readonly RGBA8UI: GLenum;
  13167. readonly RGBA8_SNORM: GLenum;
  13168. readonly RGBA_INTEGER: GLenum;
  13169. readonly RGB_INTEGER: GLenum;
  13170. readonly RG_INTEGER: GLenum;
  13171. readonly SAMPLER_2D_ARRAY: GLenum;
  13172. readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;
  13173. readonly SAMPLER_2D_SHADOW: GLenum;
  13174. readonly SAMPLER_3D: GLenum;
  13175. readonly SAMPLER_BINDING: GLenum;
  13176. readonly SAMPLER_CUBE_SHADOW: GLenum;
  13177. readonly SEPARATE_ATTRIBS: GLenum;
  13178. readonly SIGNALED: GLenum;
  13179. readonly SIGNED_NORMALIZED: GLenum;
  13180. readonly SRGB: GLenum;
  13181. readonly SRGB8: GLenum;
  13182. readonly SRGB8_ALPHA8: GLenum;
  13183. readonly STATIC_COPY: GLenum;
  13184. readonly STATIC_READ: GLenum;
  13185. readonly STENCIL: GLenum;
  13186. readonly STREAM_COPY: GLenum;
  13187. readonly STREAM_READ: GLenum;
  13188. readonly SYNC_CONDITION: GLenum;
  13189. readonly SYNC_FENCE: GLenum;
  13190. readonly SYNC_FLAGS: GLenum;
  13191. readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;
  13192. readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;
  13193. readonly SYNC_STATUS: GLenum;
  13194. readonly TEXTURE_2D_ARRAY: GLenum;
  13195. readonly TEXTURE_3D: GLenum;
  13196. readonly TEXTURE_BASE_LEVEL: GLenum;
  13197. readonly TEXTURE_BINDING_2D_ARRAY: GLenum;
  13198. readonly TEXTURE_BINDING_3D: GLenum;
  13199. readonly TEXTURE_COMPARE_FUNC: GLenum;
  13200. readonly TEXTURE_COMPARE_MODE: GLenum;
  13201. readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;
  13202. readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;
  13203. readonly TEXTURE_MAX_LEVEL: GLenum;
  13204. readonly TEXTURE_MAX_LOD: GLenum;
  13205. readonly TEXTURE_MIN_LOD: GLenum;
  13206. readonly TEXTURE_WRAP_R: GLenum;
  13207. readonly TIMEOUT_EXPIRED: GLenum;
  13208. readonly TIMEOUT_IGNORED: GLint64;
  13209. readonly TRANSFORM_FEEDBACK: GLenum;
  13210. readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;
  13211. readonly TRANSFORM_FEEDBACK_BINDING: GLenum;
  13212. readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;
  13213. readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;
  13214. readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;
  13215. readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;
  13216. readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;
  13217. readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;
  13218. readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;
  13219. readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;
  13220. readonly UNIFORM_ARRAY_STRIDE: GLenum;
  13221. readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;
  13222. readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;
  13223. readonly UNIFORM_BLOCK_BINDING: GLenum;
  13224. readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;
  13225. readonly UNIFORM_BLOCK_INDEX: GLenum;
  13226. readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;
  13227. readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;
  13228. readonly UNIFORM_BUFFER: GLenum;
  13229. readonly UNIFORM_BUFFER_BINDING: GLenum;
  13230. readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;
  13231. readonly UNIFORM_BUFFER_SIZE: GLenum;
  13232. readonly UNIFORM_BUFFER_START: GLenum;
  13233. readonly UNIFORM_IS_ROW_MAJOR: GLenum;
  13234. readonly UNIFORM_MATRIX_STRIDE: GLenum;
  13235. readonly UNIFORM_OFFSET: GLenum;
  13236. readonly UNIFORM_SIZE: GLenum;
  13237. readonly UNIFORM_TYPE: GLenum;
  13238. readonly UNPACK_IMAGE_HEIGHT: GLenum;
  13239. readonly UNPACK_ROW_LENGTH: GLenum;
  13240. readonly UNPACK_SKIP_IMAGES: GLenum;
  13241. readonly UNPACK_SKIP_PIXELS: GLenum;
  13242. readonly UNPACK_SKIP_ROWS: GLenum;
  13243. readonly UNSIGNALED: GLenum;
  13244. readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;
  13245. readonly UNSIGNED_INT_24_8: GLenum;
  13246. readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;
  13247. readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;
  13248. readonly UNSIGNED_INT_SAMPLER_2D: GLenum;
  13249. readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;
  13250. readonly UNSIGNED_INT_SAMPLER_3D: GLenum;
  13251. readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;
  13252. readonly UNSIGNED_INT_VEC2: GLenum;
  13253. readonly UNSIGNED_INT_VEC3: GLenum;
  13254. readonly UNSIGNED_INT_VEC4: GLenum;
  13255. readonly UNSIGNED_NORMALIZED: GLenum;
  13256. readonly VERTEX_ARRAY_BINDING: GLenum;
  13257. readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;
  13258. readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;
  13259. readonly WAIT_FAILED: GLenum;
  13260. readonly ACTIVE_ATTRIBUTES: GLenum;
  13261. readonly ACTIVE_TEXTURE: GLenum;
  13262. readonly ACTIVE_UNIFORMS: GLenum;
  13263. readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
  13264. readonly ALIASED_POINT_SIZE_RANGE: GLenum;
  13265. readonly ALPHA: GLenum;
  13266. readonly ALPHA_BITS: GLenum;
  13267. readonly ALWAYS: GLenum;
  13268. readonly ARRAY_BUFFER: GLenum;
  13269. readonly ARRAY_BUFFER_BINDING: GLenum;
  13270. readonly ATTACHED_SHADERS: GLenum;
  13271. readonly BACK: GLenum;
  13272. readonly BLEND: GLenum;
  13273. readonly BLEND_COLOR: GLenum;
  13274. readonly BLEND_DST_ALPHA: GLenum;
  13275. readonly BLEND_DST_RGB: GLenum;
  13276. readonly BLEND_EQUATION: GLenum;
  13277. readonly BLEND_EQUATION_ALPHA: GLenum;
  13278. readonly BLEND_EQUATION_RGB: GLenum;
  13279. readonly BLEND_SRC_ALPHA: GLenum;
  13280. readonly BLEND_SRC_RGB: GLenum;
  13281. readonly BLUE_BITS: GLenum;
  13282. readonly BOOL: GLenum;
  13283. readonly BOOL_VEC2: GLenum;
  13284. readonly BOOL_VEC3: GLenum;
  13285. readonly BOOL_VEC4: GLenum;
  13286. readonly BROWSER_DEFAULT_WEBGL: GLenum;
  13287. readonly BUFFER_SIZE: GLenum;
  13288. readonly BUFFER_USAGE: GLenum;
  13289. readonly BYTE: GLenum;
  13290. readonly CCW: GLenum;
  13291. readonly CLAMP_TO_EDGE: GLenum;
  13292. readonly COLOR_ATTACHMENT0: GLenum;
  13293. readonly COLOR_BUFFER_BIT: GLenum;
  13294. readonly COLOR_CLEAR_VALUE: GLenum;
  13295. readonly COLOR_WRITEMASK: GLenum;
  13296. readonly COMPILE_STATUS: GLenum;
  13297. readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
  13298. readonly CONSTANT_ALPHA: GLenum;
  13299. readonly CONSTANT_COLOR: GLenum;
  13300. readonly CONTEXT_LOST_WEBGL: GLenum;
  13301. readonly CULL_FACE: GLenum;
  13302. readonly CULL_FACE_MODE: GLenum;
  13303. readonly CURRENT_PROGRAM: GLenum;
  13304. readonly CURRENT_VERTEX_ATTRIB: GLenum;
  13305. readonly CW: GLenum;
  13306. readonly DECR: GLenum;
  13307. readonly DECR_WRAP: GLenum;
  13308. readonly DELETE_STATUS: GLenum;
  13309. readonly DEPTH_ATTACHMENT: GLenum;
  13310. readonly DEPTH_BITS: GLenum;
  13311. readonly DEPTH_BUFFER_BIT: GLenum;
  13312. readonly DEPTH_CLEAR_VALUE: GLenum;
  13313. readonly DEPTH_COMPONENT: GLenum;
  13314. readonly DEPTH_COMPONENT16: GLenum;
  13315. readonly DEPTH_FUNC: GLenum;
  13316. readonly DEPTH_RANGE: GLenum;
  13317. readonly DEPTH_STENCIL: GLenum;
  13318. readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
  13319. readonly DEPTH_TEST: GLenum;
  13320. readonly DEPTH_WRITEMASK: GLenum;
  13321. readonly DITHER: GLenum;
  13322. readonly DONT_CARE: GLenum;
  13323. readonly DST_ALPHA: GLenum;
  13324. readonly DST_COLOR: GLenum;
  13325. readonly DYNAMIC_DRAW: GLenum;
  13326. readonly ELEMENT_ARRAY_BUFFER: GLenum;
  13327. readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
  13328. readonly EQUAL: GLenum;
  13329. readonly FASTEST: GLenum;
  13330. readonly FLOAT: GLenum;
  13331. readonly FLOAT_MAT2: GLenum;
  13332. readonly FLOAT_MAT3: GLenum;
  13333. readonly FLOAT_MAT4: GLenum;
  13334. readonly FLOAT_VEC2: GLenum;
  13335. readonly FLOAT_VEC3: GLenum;
  13336. readonly FLOAT_VEC4: GLenum;
  13337. readonly FRAGMENT_SHADER: GLenum;
  13338. readonly FRAMEBUFFER: GLenum;
  13339. readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
  13340. readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
  13341. readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
  13342. readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
  13343. readonly FRAMEBUFFER_BINDING: GLenum;
  13344. readonly FRAMEBUFFER_COMPLETE: GLenum;
  13345. readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
  13346. readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
  13347. readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
  13348. readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
  13349. readonly FRONT: GLenum;
  13350. readonly FRONT_AND_BACK: GLenum;
  13351. readonly FRONT_FACE: GLenum;
  13352. readonly FUNC_ADD: GLenum;
  13353. readonly FUNC_REVERSE_SUBTRACT: GLenum;
  13354. readonly FUNC_SUBTRACT: GLenum;
  13355. readonly GENERATE_MIPMAP_HINT: GLenum;
  13356. readonly GEQUAL: GLenum;
  13357. readonly GREATER: GLenum;
  13358. readonly GREEN_BITS: GLenum;
  13359. readonly HIGH_FLOAT: GLenum;
  13360. readonly HIGH_INT: GLenum;
  13361. readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
  13362. readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
  13363. readonly INCR: GLenum;
  13364. readonly INCR_WRAP: GLenum;
  13365. readonly INT: GLenum;
  13366. readonly INT_VEC2: GLenum;
  13367. readonly INT_VEC3: GLenum;
  13368. readonly INT_VEC4: GLenum;
  13369. readonly INVALID_ENUM: GLenum;
  13370. readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
  13371. readonly INVALID_OPERATION: GLenum;
  13372. readonly INVALID_VALUE: GLenum;
  13373. readonly INVERT: GLenum;
  13374. readonly KEEP: GLenum;
  13375. readonly LEQUAL: GLenum;
  13376. readonly LESS: GLenum;
  13377. readonly LINEAR: GLenum;
  13378. readonly LINEAR_MIPMAP_LINEAR: GLenum;
  13379. readonly LINEAR_MIPMAP_NEAREST: GLenum;
  13380. readonly LINES: GLenum;
  13381. readonly LINE_LOOP: GLenum;
  13382. readonly LINE_STRIP: GLenum;
  13383. readonly LINE_WIDTH: GLenum;
  13384. readonly LINK_STATUS: GLenum;
  13385. readonly LOW_FLOAT: GLenum;
  13386. readonly LOW_INT: GLenum;
  13387. readonly LUMINANCE: GLenum;
  13388. readonly LUMINANCE_ALPHA: GLenum;
  13389. readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
  13390. readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
  13391. readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
  13392. readonly MAX_RENDERBUFFER_SIZE: GLenum;
  13393. readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
  13394. readonly MAX_TEXTURE_SIZE: GLenum;
  13395. readonly MAX_VARYING_VECTORS: GLenum;
  13396. readonly MAX_VERTEX_ATTRIBS: GLenum;
  13397. readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
  13398. readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
  13399. readonly MAX_VIEWPORT_DIMS: GLenum;
  13400. readonly MEDIUM_FLOAT: GLenum;
  13401. readonly MEDIUM_INT: GLenum;
  13402. readonly MIRRORED_REPEAT: GLenum;
  13403. readonly NEAREST: GLenum;
  13404. readonly NEAREST_MIPMAP_LINEAR: GLenum;
  13405. readonly NEAREST_MIPMAP_NEAREST: GLenum;
  13406. readonly NEVER: GLenum;
  13407. readonly NICEST: GLenum;
  13408. readonly NONE: GLenum;
  13409. readonly NOTEQUAL: GLenum;
  13410. readonly NO_ERROR: GLenum;
  13411. readonly ONE: GLenum;
  13412. readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
  13413. readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
  13414. readonly ONE_MINUS_DST_ALPHA: GLenum;
  13415. readonly ONE_MINUS_DST_COLOR: GLenum;
  13416. readonly ONE_MINUS_SRC_ALPHA: GLenum;
  13417. readonly ONE_MINUS_SRC_COLOR: GLenum;
  13418. readonly OUT_OF_MEMORY: GLenum;
  13419. readonly PACK_ALIGNMENT: GLenum;
  13420. readonly POINTS: GLenum;
  13421. readonly POLYGON_OFFSET_FACTOR: GLenum;
  13422. readonly POLYGON_OFFSET_FILL: GLenum;
  13423. readonly POLYGON_OFFSET_UNITS: GLenum;
  13424. readonly RED_BITS: GLenum;
  13425. readonly RENDERBUFFER: GLenum;
  13426. readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
  13427. readonly RENDERBUFFER_BINDING: GLenum;
  13428. readonly RENDERBUFFER_BLUE_SIZE: GLenum;
  13429. readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
  13430. readonly RENDERBUFFER_GREEN_SIZE: GLenum;
  13431. readonly RENDERBUFFER_HEIGHT: GLenum;
  13432. readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
  13433. readonly RENDERBUFFER_RED_SIZE: GLenum;
  13434. readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
  13435. readonly RENDERBUFFER_WIDTH: GLenum;
  13436. readonly RENDERER: GLenum;
  13437. readonly REPEAT: GLenum;
  13438. readonly REPLACE: GLenum;
  13439. readonly RGB: GLenum;
  13440. readonly RGB565: GLenum;
  13441. readonly RGB5_A1: GLenum;
  13442. readonly RGBA: GLenum;
  13443. readonly RGBA4: GLenum;
  13444. readonly SAMPLER_2D: GLenum;
  13445. readonly SAMPLER_CUBE: GLenum;
  13446. readonly SAMPLES: GLenum;
  13447. readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
  13448. readonly SAMPLE_BUFFERS: GLenum;
  13449. readonly SAMPLE_COVERAGE: GLenum;
  13450. readonly SAMPLE_COVERAGE_INVERT: GLenum;
  13451. readonly SAMPLE_COVERAGE_VALUE: GLenum;
  13452. readonly SCISSOR_BOX: GLenum;
  13453. readonly SCISSOR_TEST: GLenum;
  13454. readonly SHADER_TYPE: GLenum;
  13455. readonly SHADING_LANGUAGE_VERSION: GLenum;
  13456. readonly SHORT: GLenum;
  13457. readonly SRC_ALPHA: GLenum;
  13458. readonly SRC_ALPHA_SATURATE: GLenum;
  13459. readonly SRC_COLOR: GLenum;
  13460. readonly STATIC_DRAW: GLenum;
  13461. readonly STENCIL_ATTACHMENT: GLenum;
  13462. readonly STENCIL_BACK_FAIL: GLenum;
  13463. readonly STENCIL_BACK_FUNC: GLenum;
  13464. readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
  13465. readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
  13466. readonly STENCIL_BACK_REF: GLenum;
  13467. readonly STENCIL_BACK_VALUE_MASK: GLenum;
  13468. readonly STENCIL_BACK_WRITEMASK: GLenum;
  13469. readonly STENCIL_BITS: GLenum;
  13470. readonly STENCIL_BUFFER_BIT: GLenum;
  13471. readonly STENCIL_CLEAR_VALUE: GLenum;
  13472. readonly STENCIL_FAIL: GLenum;
  13473. readonly STENCIL_FUNC: GLenum;
  13474. readonly STENCIL_INDEX8: GLenum;
  13475. readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
  13476. readonly STENCIL_PASS_DEPTH_PASS: GLenum;
  13477. readonly STENCIL_REF: GLenum;
  13478. readonly STENCIL_TEST: GLenum;
  13479. readonly STENCIL_VALUE_MASK: GLenum;
  13480. readonly STENCIL_WRITEMASK: GLenum;
  13481. readonly STREAM_DRAW: GLenum;
  13482. readonly SUBPIXEL_BITS: GLenum;
  13483. readonly TEXTURE: GLenum;
  13484. readonly TEXTURE0: GLenum;
  13485. readonly TEXTURE1: GLenum;
  13486. readonly TEXTURE10: GLenum;
  13487. readonly TEXTURE11: GLenum;
  13488. readonly TEXTURE12: GLenum;
  13489. readonly TEXTURE13: GLenum;
  13490. readonly TEXTURE14: GLenum;
  13491. readonly TEXTURE15: GLenum;
  13492. readonly TEXTURE16: GLenum;
  13493. readonly TEXTURE17: GLenum;
  13494. readonly TEXTURE18: GLenum;
  13495. readonly TEXTURE19: GLenum;
  13496. readonly TEXTURE2: GLenum;
  13497. readonly TEXTURE20: GLenum;
  13498. readonly TEXTURE21: GLenum;
  13499. readonly TEXTURE22: GLenum;
  13500. readonly TEXTURE23: GLenum;
  13501. readonly TEXTURE24: GLenum;
  13502. readonly TEXTURE25: GLenum;
  13503. readonly TEXTURE26: GLenum;
  13504. readonly TEXTURE27: GLenum;
  13505. readonly TEXTURE28: GLenum;
  13506. readonly TEXTURE29: GLenum;
  13507. readonly TEXTURE3: GLenum;
  13508. readonly TEXTURE30: GLenum;
  13509. readonly TEXTURE31: GLenum;
  13510. readonly TEXTURE4: GLenum;
  13511. readonly TEXTURE5: GLenum;
  13512. readonly TEXTURE6: GLenum;
  13513. readonly TEXTURE7: GLenum;
  13514. readonly TEXTURE8: GLenum;
  13515. readonly TEXTURE9: GLenum;
  13516. readonly TEXTURE_2D: GLenum;
  13517. readonly TEXTURE_BINDING_2D: GLenum;
  13518. readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
  13519. readonly TEXTURE_CUBE_MAP: GLenum;
  13520. readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
  13521. readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
  13522. readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
  13523. readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
  13524. readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
  13525. readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
  13526. readonly TEXTURE_MAG_FILTER: GLenum;
  13527. readonly TEXTURE_MIN_FILTER: GLenum;
  13528. readonly TEXTURE_WRAP_S: GLenum;
  13529. readonly TEXTURE_WRAP_T: GLenum;
  13530. readonly TRIANGLES: GLenum;
  13531. readonly TRIANGLE_FAN: GLenum;
  13532. readonly TRIANGLE_STRIP: GLenum;
  13533. readonly UNPACK_ALIGNMENT: GLenum;
  13534. readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
  13535. readonly UNPACK_FLIP_Y_WEBGL: GLenum;
  13536. readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
  13537. readonly UNSIGNED_BYTE: GLenum;
  13538. readonly UNSIGNED_INT: GLenum;
  13539. readonly UNSIGNED_SHORT: GLenum;
  13540. readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
  13541. readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
  13542. readonly UNSIGNED_SHORT_5_6_5: GLenum;
  13543. readonly VALIDATE_STATUS: GLenum;
  13544. readonly VENDOR: GLenum;
  13545. readonly VERSION: GLenum;
  13546. readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
  13547. readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
  13548. readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
  13549. readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
  13550. readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
  13551. readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
  13552. readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
  13553. readonly VERTEX_SHADER: GLenum;
  13554. readonly VIEWPORT: GLenum;
  13555. readonly ZERO: GLenum;
  13556. };
  13557. interface WebGL2RenderingContextBase {
  13558. beginQuery(target: GLenum, query: WebGLQuery): void;
  13559. beginTransformFeedback(primitiveMode: GLenum): void;
  13560. bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
  13561. bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
  13562. bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
  13563. bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
  13564. bindVertexArray(array: WebGLVertexArrayObject | null): void;
  13565. blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
  13566. clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
  13567. clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;
  13568. clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;
  13569. clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;
  13570. clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
  13571. compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
  13572. compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
  13573. compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
  13574. 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;
  13575. copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
  13576. copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
  13577. createQuery(): WebGLQuery | null;
  13578. createSampler(): WebGLSampler | null;
  13579. createTransformFeedback(): WebGLTransformFeedback | null;
  13580. createVertexArray(): WebGLVertexArrayObject | null;
  13581. deleteQuery(query: WebGLQuery | null): void;
  13582. deleteSampler(sampler: WebGLSampler | null): void;
  13583. deleteSync(sync: WebGLSync | null): void;
  13584. deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
  13585. deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
  13586. drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
  13587. drawBuffers(buffers: GLenum[]): void;
  13588. drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
  13589. drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
  13590. endQuery(target: GLenum): void;
  13591. endTransformFeedback(): void;
  13592. fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
  13593. framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
  13594. getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
  13595. getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
  13596. getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
  13597. getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;
  13598. getFragDataLocation(program: WebGLProgram, name: string): GLint;
  13599. getIndexedParameter(target: GLenum, index: GLuint): any;
  13600. getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
  13601. getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
  13602. getQueryParameter(query: WebGLQuery, pname: GLenum): any;
  13603. getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
  13604. getSyncParameter(sync: WebGLSync, pname: GLenum): any;
  13605. getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
  13606. getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
  13607. getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
  13608. invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
  13609. invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
  13610. isQuery(query: WebGLQuery | null): GLboolean;
  13611. isSampler(sampler: WebGLSampler | null): GLboolean;
  13612. isSync(sync: WebGLSync | null): GLboolean;
  13613. isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
  13614. isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
  13615. pauseTransformFeedback(): void;
  13616. readBuffer(src: GLenum): void;
  13617. renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
  13618. resumeTransformFeedback(): void;
  13619. samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
  13620. samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
  13621. texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
  13622. texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
  13623. texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
  13624. texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
  13625. texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
  13626. texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
  13627. texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
  13628. texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
  13629. 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;
  13630. transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
  13631. uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
  13632. uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  13633. uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
  13634. uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  13635. uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
  13636. uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  13637. uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
  13638. uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  13639. uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
  13640. uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  13641. uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  13642. uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  13643. uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  13644. uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  13645. uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  13646. vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
  13647. vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
  13648. vertexAttribI4iv(index: GLuint, values: Int32List): void;
  13649. vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
  13650. vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
  13651. vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
  13652. waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
  13653. readonly ACTIVE_UNIFORM_BLOCKS: GLenum;
  13654. readonly ALREADY_SIGNALED: GLenum;
  13655. readonly ANY_SAMPLES_PASSED: GLenum;
  13656. readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;
  13657. readonly COLOR: GLenum;
  13658. readonly COLOR_ATTACHMENT1: GLenum;
  13659. readonly COLOR_ATTACHMENT10: GLenum;
  13660. readonly COLOR_ATTACHMENT11: GLenum;
  13661. readonly COLOR_ATTACHMENT12: GLenum;
  13662. readonly COLOR_ATTACHMENT13: GLenum;
  13663. readonly COLOR_ATTACHMENT14: GLenum;
  13664. readonly COLOR_ATTACHMENT15: GLenum;
  13665. readonly COLOR_ATTACHMENT2: GLenum;
  13666. readonly COLOR_ATTACHMENT3: GLenum;
  13667. readonly COLOR_ATTACHMENT4: GLenum;
  13668. readonly COLOR_ATTACHMENT5: GLenum;
  13669. readonly COLOR_ATTACHMENT6: GLenum;
  13670. readonly COLOR_ATTACHMENT7: GLenum;
  13671. readonly COLOR_ATTACHMENT8: GLenum;
  13672. readonly COLOR_ATTACHMENT9: GLenum;
  13673. readonly COMPARE_REF_TO_TEXTURE: GLenum;
  13674. readonly CONDITION_SATISFIED: GLenum;
  13675. readonly COPY_READ_BUFFER: GLenum;
  13676. readonly COPY_READ_BUFFER_BINDING: GLenum;
  13677. readonly COPY_WRITE_BUFFER: GLenum;
  13678. readonly COPY_WRITE_BUFFER_BINDING: GLenum;
  13679. readonly CURRENT_QUERY: GLenum;
  13680. readonly DEPTH: GLenum;
  13681. readonly DEPTH24_STENCIL8: GLenum;
  13682. readonly DEPTH32F_STENCIL8: GLenum;
  13683. readonly DEPTH_COMPONENT24: GLenum;
  13684. readonly DEPTH_COMPONENT32F: GLenum;
  13685. readonly DRAW_BUFFER0: GLenum;
  13686. readonly DRAW_BUFFER1: GLenum;
  13687. readonly DRAW_BUFFER10: GLenum;
  13688. readonly DRAW_BUFFER11: GLenum;
  13689. readonly DRAW_BUFFER12: GLenum;
  13690. readonly DRAW_BUFFER13: GLenum;
  13691. readonly DRAW_BUFFER14: GLenum;
  13692. readonly DRAW_BUFFER15: GLenum;
  13693. readonly DRAW_BUFFER2: GLenum;
  13694. readonly DRAW_BUFFER3: GLenum;
  13695. readonly DRAW_BUFFER4: GLenum;
  13696. readonly DRAW_BUFFER5: GLenum;
  13697. readonly DRAW_BUFFER6: GLenum;
  13698. readonly DRAW_BUFFER7: GLenum;
  13699. readonly DRAW_BUFFER8: GLenum;
  13700. readonly DRAW_BUFFER9: GLenum;
  13701. readonly DRAW_FRAMEBUFFER: GLenum;
  13702. readonly DRAW_FRAMEBUFFER_BINDING: GLenum;
  13703. readonly DYNAMIC_COPY: GLenum;
  13704. readonly DYNAMIC_READ: GLenum;
  13705. readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;
  13706. readonly FLOAT_MAT2x3: GLenum;
  13707. readonly FLOAT_MAT2x4: GLenum;
  13708. readonly FLOAT_MAT3x2: GLenum;
  13709. readonly FLOAT_MAT3x4: GLenum;
  13710. readonly FLOAT_MAT4x2: GLenum;
  13711. readonly FLOAT_MAT4x3: GLenum;
  13712. readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;
  13713. readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;
  13714. readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;
  13715. readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;
  13716. readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;
  13717. readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;
  13718. readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;
  13719. readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;
  13720. readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;
  13721. readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;
  13722. readonly FRAMEBUFFER_DEFAULT: GLenum;
  13723. readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;
  13724. readonly HALF_FLOAT: GLenum;
  13725. readonly INTERLEAVED_ATTRIBS: GLenum;
  13726. readonly INT_2_10_10_10_REV: GLenum;
  13727. readonly INT_SAMPLER_2D: GLenum;
  13728. readonly INT_SAMPLER_2D_ARRAY: GLenum;
  13729. readonly INT_SAMPLER_3D: GLenum;
  13730. readonly INT_SAMPLER_CUBE: GLenum;
  13731. readonly INVALID_INDEX: GLenum;
  13732. readonly MAX: GLenum;
  13733. readonly MAX_3D_TEXTURE_SIZE: GLenum;
  13734. readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;
  13735. readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;
  13736. readonly MAX_COLOR_ATTACHMENTS: GLenum;
  13737. readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
  13738. readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;
  13739. readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;
  13740. readonly MAX_DRAW_BUFFERS: GLenum;
  13741. readonly MAX_ELEMENTS_INDICES: GLenum;
  13742. readonly MAX_ELEMENTS_VERTICES: GLenum;
  13743. readonly MAX_ELEMENT_INDEX: GLenum;
  13744. readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;
  13745. readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;
  13746. readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
  13747. readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;
  13748. readonly MAX_SAMPLES: GLenum;
  13749. readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;
  13750. readonly MAX_TEXTURE_LOD_BIAS: GLenum;
  13751. readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;
  13752. readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;
  13753. readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;
  13754. readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;
  13755. readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;
  13756. readonly MAX_VARYING_COMPONENTS: GLenum;
  13757. readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;
  13758. readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;
  13759. readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;
  13760. readonly MIN: GLenum;
  13761. readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;
  13762. readonly OBJECT_TYPE: GLenum;
  13763. readonly PACK_ROW_LENGTH: GLenum;
  13764. readonly PACK_SKIP_PIXELS: GLenum;
  13765. readonly PACK_SKIP_ROWS: GLenum;
  13766. readonly PIXEL_PACK_BUFFER: GLenum;
  13767. readonly PIXEL_PACK_BUFFER_BINDING: GLenum;
  13768. readonly PIXEL_UNPACK_BUFFER: GLenum;
  13769. readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;
  13770. readonly QUERY_RESULT: GLenum;
  13771. readonly QUERY_RESULT_AVAILABLE: GLenum;
  13772. readonly R11F_G11F_B10F: GLenum;
  13773. readonly R16F: GLenum;
  13774. readonly R16I: GLenum;
  13775. readonly R16UI: GLenum;
  13776. readonly R32F: GLenum;
  13777. readonly R32I: GLenum;
  13778. readonly R32UI: GLenum;
  13779. readonly R8: GLenum;
  13780. readonly R8I: GLenum;
  13781. readonly R8UI: GLenum;
  13782. readonly R8_SNORM: GLenum;
  13783. readonly RASTERIZER_DISCARD: GLenum;
  13784. readonly READ_BUFFER: GLenum;
  13785. readonly READ_FRAMEBUFFER: GLenum;
  13786. readonly READ_FRAMEBUFFER_BINDING: GLenum;
  13787. readonly RED: GLenum;
  13788. readonly RED_INTEGER: GLenum;
  13789. readonly RENDERBUFFER_SAMPLES: GLenum;
  13790. readonly RG: GLenum;
  13791. readonly RG16F: GLenum;
  13792. readonly RG16I: GLenum;
  13793. readonly RG16UI: GLenum;
  13794. readonly RG32F: GLenum;
  13795. readonly RG32I: GLenum;
  13796. readonly RG32UI: GLenum;
  13797. readonly RG8: GLenum;
  13798. readonly RG8I: GLenum;
  13799. readonly RG8UI: GLenum;
  13800. readonly RG8_SNORM: GLenum;
  13801. readonly RGB10_A2: GLenum;
  13802. readonly RGB10_A2UI: GLenum;
  13803. readonly RGB16F: GLenum;
  13804. readonly RGB16I: GLenum;
  13805. readonly RGB16UI: GLenum;
  13806. readonly RGB32F: GLenum;
  13807. readonly RGB32I: GLenum;
  13808. readonly RGB32UI: GLenum;
  13809. readonly RGB8: GLenum;
  13810. readonly RGB8I: GLenum;
  13811. readonly RGB8UI: GLenum;
  13812. readonly RGB8_SNORM: GLenum;
  13813. readonly RGB9_E5: GLenum;
  13814. readonly RGBA16F: GLenum;
  13815. readonly RGBA16I: GLenum;
  13816. readonly RGBA16UI: GLenum;
  13817. readonly RGBA32F: GLenum;
  13818. readonly RGBA32I: GLenum;
  13819. readonly RGBA32UI: GLenum;
  13820. readonly RGBA8: GLenum;
  13821. readonly RGBA8I: GLenum;
  13822. readonly RGBA8UI: GLenum;
  13823. readonly RGBA8_SNORM: GLenum;
  13824. readonly RGBA_INTEGER: GLenum;
  13825. readonly RGB_INTEGER: GLenum;
  13826. readonly RG_INTEGER: GLenum;
  13827. readonly SAMPLER_2D_ARRAY: GLenum;
  13828. readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;
  13829. readonly SAMPLER_2D_SHADOW: GLenum;
  13830. readonly SAMPLER_3D: GLenum;
  13831. readonly SAMPLER_BINDING: GLenum;
  13832. readonly SAMPLER_CUBE_SHADOW: GLenum;
  13833. readonly SEPARATE_ATTRIBS: GLenum;
  13834. readonly SIGNALED: GLenum;
  13835. readonly SIGNED_NORMALIZED: GLenum;
  13836. readonly SRGB: GLenum;
  13837. readonly SRGB8: GLenum;
  13838. readonly SRGB8_ALPHA8: GLenum;
  13839. readonly STATIC_COPY: GLenum;
  13840. readonly STATIC_READ: GLenum;
  13841. readonly STENCIL: GLenum;
  13842. readonly STREAM_COPY: GLenum;
  13843. readonly STREAM_READ: GLenum;
  13844. readonly SYNC_CONDITION: GLenum;
  13845. readonly SYNC_FENCE: GLenum;
  13846. readonly SYNC_FLAGS: GLenum;
  13847. readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;
  13848. readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;
  13849. readonly SYNC_STATUS: GLenum;
  13850. readonly TEXTURE_2D_ARRAY: GLenum;
  13851. readonly TEXTURE_3D: GLenum;
  13852. readonly TEXTURE_BASE_LEVEL: GLenum;
  13853. readonly TEXTURE_BINDING_2D_ARRAY: GLenum;
  13854. readonly TEXTURE_BINDING_3D: GLenum;
  13855. readonly TEXTURE_COMPARE_FUNC: GLenum;
  13856. readonly TEXTURE_COMPARE_MODE: GLenum;
  13857. readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;
  13858. readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;
  13859. readonly TEXTURE_MAX_LEVEL: GLenum;
  13860. readonly TEXTURE_MAX_LOD: GLenum;
  13861. readonly TEXTURE_MIN_LOD: GLenum;
  13862. readonly TEXTURE_WRAP_R: GLenum;
  13863. readonly TIMEOUT_EXPIRED: GLenum;
  13864. readonly TIMEOUT_IGNORED: GLint64;
  13865. readonly TRANSFORM_FEEDBACK: GLenum;
  13866. readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;
  13867. readonly TRANSFORM_FEEDBACK_BINDING: GLenum;
  13868. readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;
  13869. readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;
  13870. readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;
  13871. readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;
  13872. readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;
  13873. readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;
  13874. readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;
  13875. readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;
  13876. readonly UNIFORM_ARRAY_STRIDE: GLenum;
  13877. readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;
  13878. readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;
  13879. readonly UNIFORM_BLOCK_BINDING: GLenum;
  13880. readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;
  13881. readonly UNIFORM_BLOCK_INDEX: GLenum;
  13882. readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;
  13883. readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;
  13884. readonly UNIFORM_BUFFER: GLenum;
  13885. readonly UNIFORM_BUFFER_BINDING: GLenum;
  13886. readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;
  13887. readonly UNIFORM_BUFFER_SIZE: GLenum;
  13888. readonly UNIFORM_BUFFER_START: GLenum;
  13889. readonly UNIFORM_IS_ROW_MAJOR: GLenum;
  13890. readonly UNIFORM_MATRIX_STRIDE: GLenum;
  13891. readonly UNIFORM_OFFSET: GLenum;
  13892. readonly UNIFORM_SIZE: GLenum;
  13893. readonly UNIFORM_TYPE: GLenum;
  13894. readonly UNPACK_IMAGE_HEIGHT: GLenum;
  13895. readonly UNPACK_ROW_LENGTH: GLenum;
  13896. readonly UNPACK_SKIP_IMAGES: GLenum;
  13897. readonly UNPACK_SKIP_PIXELS: GLenum;
  13898. readonly UNPACK_SKIP_ROWS: GLenum;
  13899. readonly UNSIGNALED: GLenum;
  13900. readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;
  13901. readonly UNSIGNED_INT_24_8: GLenum;
  13902. readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;
  13903. readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;
  13904. readonly UNSIGNED_INT_SAMPLER_2D: GLenum;
  13905. readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;
  13906. readonly UNSIGNED_INT_SAMPLER_3D: GLenum;
  13907. readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;
  13908. readonly UNSIGNED_INT_VEC2: GLenum;
  13909. readonly UNSIGNED_INT_VEC3: GLenum;
  13910. readonly UNSIGNED_INT_VEC4: GLenum;
  13911. readonly UNSIGNED_NORMALIZED: GLenum;
  13912. readonly VERTEX_ARRAY_BINDING: GLenum;
  13913. readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;
  13914. readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;
  13915. readonly WAIT_FAILED: GLenum;
  13916. }
  13917. interface WebGL2RenderingContextOverloads {
  13918. bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
  13919. bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;
  13920. bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;
  13921. bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;
  13922. bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;
  13923. compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
  13924. compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
  13925. compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
  13926. compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
  13927. readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
  13928. readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
  13929. readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;
  13930. texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
  13931. texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
  13932. texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
  13933. texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
  13934. texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
  13935. texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
  13936. texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
  13937. texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
  13938. texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
  13939. texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
  13940. uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  13941. uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  13942. uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  13943. uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  13944. uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  13945. uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  13946. uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  13947. uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  13948. uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  13949. uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  13950. uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  13951. }
  13952. /** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */
  13953. interface WebGLActiveInfo {
  13954. readonly name: string;
  13955. readonly size: GLint;
  13956. readonly type: GLenum;
  13957. }
  13958. declare var WebGLActiveInfo: {
  13959. prototype: WebGLActiveInfo;
  13960. new(): WebGLActiveInfo;
  13961. };
  13962. /** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
  13963. interface WebGLBuffer {
  13964. }
  13965. declare var WebGLBuffer: {
  13966. prototype: WebGLBuffer;
  13967. new(): WebGLBuffer;
  13968. };
  13969. /** 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. */
  13970. interface WebGLContextEvent extends Event {
  13971. readonly statusMessage: string;
  13972. }
  13973. declare var WebGLContextEvent: {
  13974. prototype: WebGLContextEvent;
  13975. new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
  13976. };
  13977. /** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
  13978. interface WebGLFramebuffer {
  13979. }
  13980. declare var WebGLFramebuffer: {
  13981. prototype: WebGLFramebuffer;
  13982. new(): WebGLFramebuffer;
  13983. };
  13984. /** 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). */
  13985. interface WebGLProgram {
  13986. }
  13987. declare var WebGLProgram: {
  13988. prototype: WebGLProgram;
  13989. new(): WebGLProgram;
  13990. };
  13991. interface WebGLQuery {
  13992. }
  13993. declare var WebGLQuery: {
  13994. prototype: WebGLQuery;
  13995. new(): WebGLQuery;
  13996. };
  13997. /** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
  13998. interface WebGLRenderbuffer {
  13999. }
  14000. declare var WebGLRenderbuffer: {
  14001. prototype: WebGLRenderbuffer;
  14002. new(): WebGLRenderbuffer;
  14003. };
  14004. /** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */
  14005. interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
  14006. }
  14007. declare var WebGLRenderingContext: {
  14008. prototype: WebGLRenderingContext;
  14009. new(): WebGLRenderingContext;
  14010. readonly ACTIVE_ATTRIBUTES: GLenum;
  14011. readonly ACTIVE_TEXTURE: GLenum;
  14012. readonly ACTIVE_UNIFORMS: GLenum;
  14013. readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
  14014. readonly ALIASED_POINT_SIZE_RANGE: GLenum;
  14015. readonly ALPHA: GLenum;
  14016. readonly ALPHA_BITS: GLenum;
  14017. readonly ALWAYS: GLenum;
  14018. readonly ARRAY_BUFFER: GLenum;
  14019. readonly ARRAY_BUFFER_BINDING: GLenum;
  14020. readonly ATTACHED_SHADERS: GLenum;
  14021. readonly BACK: GLenum;
  14022. readonly BLEND: GLenum;
  14023. readonly BLEND_COLOR: GLenum;
  14024. readonly BLEND_DST_ALPHA: GLenum;
  14025. readonly BLEND_DST_RGB: GLenum;
  14026. readonly BLEND_EQUATION: GLenum;
  14027. readonly BLEND_EQUATION_ALPHA: GLenum;
  14028. readonly BLEND_EQUATION_RGB: GLenum;
  14029. readonly BLEND_SRC_ALPHA: GLenum;
  14030. readonly BLEND_SRC_RGB: GLenum;
  14031. readonly BLUE_BITS: GLenum;
  14032. readonly BOOL: GLenum;
  14033. readonly BOOL_VEC2: GLenum;
  14034. readonly BOOL_VEC3: GLenum;
  14035. readonly BOOL_VEC4: GLenum;
  14036. readonly BROWSER_DEFAULT_WEBGL: GLenum;
  14037. readonly BUFFER_SIZE: GLenum;
  14038. readonly BUFFER_USAGE: GLenum;
  14039. readonly BYTE: GLenum;
  14040. readonly CCW: GLenum;
  14041. readonly CLAMP_TO_EDGE: GLenum;
  14042. readonly COLOR_ATTACHMENT0: GLenum;
  14043. readonly COLOR_BUFFER_BIT: GLenum;
  14044. readonly COLOR_CLEAR_VALUE: GLenum;
  14045. readonly COLOR_WRITEMASK: GLenum;
  14046. readonly COMPILE_STATUS: GLenum;
  14047. readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
  14048. readonly CONSTANT_ALPHA: GLenum;
  14049. readonly CONSTANT_COLOR: GLenum;
  14050. readonly CONTEXT_LOST_WEBGL: GLenum;
  14051. readonly CULL_FACE: GLenum;
  14052. readonly CULL_FACE_MODE: GLenum;
  14053. readonly CURRENT_PROGRAM: GLenum;
  14054. readonly CURRENT_VERTEX_ATTRIB: GLenum;
  14055. readonly CW: GLenum;
  14056. readonly DECR: GLenum;
  14057. readonly DECR_WRAP: GLenum;
  14058. readonly DELETE_STATUS: GLenum;
  14059. readonly DEPTH_ATTACHMENT: GLenum;
  14060. readonly DEPTH_BITS: GLenum;
  14061. readonly DEPTH_BUFFER_BIT: GLenum;
  14062. readonly DEPTH_CLEAR_VALUE: GLenum;
  14063. readonly DEPTH_COMPONENT: GLenum;
  14064. readonly DEPTH_COMPONENT16: GLenum;
  14065. readonly DEPTH_FUNC: GLenum;
  14066. readonly DEPTH_RANGE: GLenum;
  14067. readonly DEPTH_STENCIL: GLenum;
  14068. readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
  14069. readonly DEPTH_TEST: GLenum;
  14070. readonly DEPTH_WRITEMASK: GLenum;
  14071. readonly DITHER: GLenum;
  14072. readonly DONT_CARE: GLenum;
  14073. readonly DST_ALPHA: GLenum;
  14074. readonly DST_COLOR: GLenum;
  14075. readonly DYNAMIC_DRAW: GLenum;
  14076. readonly ELEMENT_ARRAY_BUFFER: GLenum;
  14077. readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
  14078. readonly EQUAL: GLenum;
  14079. readonly FASTEST: GLenum;
  14080. readonly FLOAT: GLenum;
  14081. readonly FLOAT_MAT2: GLenum;
  14082. readonly FLOAT_MAT3: GLenum;
  14083. readonly FLOAT_MAT4: GLenum;
  14084. readonly FLOAT_VEC2: GLenum;
  14085. readonly FLOAT_VEC3: GLenum;
  14086. readonly FLOAT_VEC4: GLenum;
  14087. readonly FRAGMENT_SHADER: GLenum;
  14088. readonly FRAMEBUFFER: GLenum;
  14089. readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
  14090. readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
  14091. readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
  14092. readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
  14093. readonly FRAMEBUFFER_BINDING: GLenum;
  14094. readonly FRAMEBUFFER_COMPLETE: GLenum;
  14095. readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
  14096. readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
  14097. readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
  14098. readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
  14099. readonly FRONT: GLenum;
  14100. readonly FRONT_AND_BACK: GLenum;
  14101. readonly FRONT_FACE: GLenum;
  14102. readonly FUNC_ADD: GLenum;
  14103. readonly FUNC_REVERSE_SUBTRACT: GLenum;
  14104. readonly FUNC_SUBTRACT: GLenum;
  14105. readonly GENERATE_MIPMAP_HINT: GLenum;
  14106. readonly GEQUAL: GLenum;
  14107. readonly GREATER: GLenum;
  14108. readonly GREEN_BITS: GLenum;
  14109. readonly HIGH_FLOAT: GLenum;
  14110. readonly HIGH_INT: GLenum;
  14111. readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
  14112. readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
  14113. readonly INCR: GLenum;
  14114. readonly INCR_WRAP: GLenum;
  14115. readonly INT: GLenum;
  14116. readonly INT_VEC2: GLenum;
  14117. readonly INT_VEC3: GLenum;
  14118. readonly INT_VEC4: GLenum;
  14119. readonly INVALID_ENUM: GLenum;
  14120. readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
  14121. readonly INVALID_OPERATION: GLenum;
  14122. readonly INVALID_VALUE: GLenum;
  14123. readonly INVERT: GLenum;
  14124. readonly KEEP: GLenum;
  14125. readonly LEQUAL: GLenum;
  14126. readonly LESS: GLenum;
  14127. readonly LINEAR: GLenum;
  14128. readonly LINEAR_MIPMAP_LINEAR: GLenum;
  14129. readonly LINEAR_MIPMAP_NEAREST: GLenum;
  14130. readonly LINES: GLenum;
  14131. readonly LINE_LOOP: GLenum;
  14132. readonly LINE_STRIP: GLenum;
  14133. readonly LINE_WIDTH: GLenum;
  14134. readonly LINK_STATUS: GLenum;
  14135. readonly LOW_FLOAT: GLenum;
  14136. readonly LOW_INT: GLenum;
  14137. readonly LUMINANCE: GLenum;
  14138. readonly LUMINANCE_ALPHA: GLenum;
  14139. readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
  14140. readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
  14141. readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
  14142. readonly MAX_RENDERBUFFER_SIZE: GLenum;
  14143. readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
  14144. readonly MAX_TEXTURE_SIZE: GLenum;
  14145. readonly MAX_VARYING_VECTORS: GLenum;
  14146. readonly MAX_VERTEX_ATTRIBS: GLenum;
  14147. readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
  14148. readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
  14149. readonly MAX_VIEWPORT_DIMS: GLenum;
  14150. readonly MEDIUM_FLOAT: GLenum;
  14151. readonly MEDIUM_INT: GLenum;
  14152. readonly MIRRORED_REPEAT: GLenum;
  14153. readonly NEAREST: GLenum;
  14154. readonly NEAREST_MIPMAP_LINEAR: GLenum;
  14155. readonly NEAREST_MIPMAP_NEAREST: GLenum;
  14156. readonly NEVER: GLenum;
  14157. readonly NICEST: GLenum;
  14158. readonly NONE: GLenum;
  14159. readonly NOTEQUAL: GLenum;
  14160. readonly NO_ERROR: GLenum;
  14161. readonly ONE: GLenum;
  14162. readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
  14163. readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
  14164. readonly ONE_MINUS_DST_ALPHA: GLenum;
  14165. readonly ONE_MINUS_DST_COLOR: GLenum;
  14166. readonly ONE_MINUS_SRC_ALPHA: GLenum;
  14167. readonly ONE_MINUS_SRC_COLOR: GLenum;
  14168. readonly OUT_OF_MEMORY: GLenum;
  14169. readonly PACK_ALIGNMENT: GLenum;
  14170. readonly POINTS: GLenum;
  14171. readonly POLYGON_OFFSET_FACTOR: GLenum;
  14172. readonly POLYGON_OFFSET_FILL: GLenum;
  14173. readonly POLYGON_OFFSET_UNITS: GLenum;
  14174. readonly RED_BITS: GLenum;
  14175. readonly RENDERBUFFER: GLenum;
  14176. readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
  14177. readonly RENDERBUFFER_BINDING: GLenum;
  14178. readonly RENDERBUFFER_BLUE_SIZE: GLenum;
  14179. readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
  14180. readonly RENDERBUFFER_GREEN_SIZE: GLenum;
  14181. readonly RENDERBUFFER_HEIGHT: GLenum;
  14182. readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
  14183. readonly RENDERBUFFER_RED_SIZE: GLenum;
  14184. readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
  14185. readonly RENDERBUFFER_WIDTH: GLenum;
  14186. readonly RENDERER: GLenum;
  14187. readonly REPEAT: GLenum;
  14188. readonly REPLACE: GLenum;
  14189. readonly RGB: GLenum;
  14190. readonly RGB565: GLenum;
  14191. readonly RGB5_A1: GLenum;
  14192. readonly RGBA: GLenum;
  14193. readonly RGBA4: GLenum;
  14194. readonly SAMPLER_2D: GLenum;
  14195. readonly SAMPLER_CUBE: GLenum;
  14196. readonly SAMPLES: GLenum;
  14197. readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
  14198. readonly SAMPLE_BUFFERS: GLenum;
  14199. readonly SAMPLE_COVERAGE: GLenum;
  14200. readonly SAMPLE_COVERAGE_INVERT: GLenum;
  14201. readonly SAMPLE_COVERAGE_VALUE: GLenum;
  14202. readonly SCISSOR_BOX: GLenum;
  14203. readonly SCISSOR_TEST: GLenum;
  14204. readonly SHADER_TYPE: GLenum;
  14205. readonly SHADING_LANGUAGE_VERSION: GLenum;
  14206. readonly SHORT: GLenum;
  14207. readonly SRC_ALPHA: GLenum;
  14208. readonly SRC_ALPHA_SATURATE: GLenum;
  14209. readonly SRC_COLOR: GLenum;
  14210. readonly STATIC_DRAW: GLenum;
  14211. readonly STENCIL_ATTACHMENT: GLenum;
  14212. readonly STENCIL_BACK_FAIL: GLenum;
  14213. readonly STENCIL_BACK_FUNC: GLenum;
  14214. readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
  14215. readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
  14216. readonly STENCIL_BACK_REF: GLenum;
  14217. readonly STENCIL_BACK_VALUE_MASK: GLenum;
  14218. readonly STENCIL_BACK_WRITEMASK: GLenum;
  14219. readonly STENCIL_BITS: GLenum;
  14220. readonly STENCIL_BUFFER_BIT: GLenum;
  14221. readonly STENCIL_CLEAR_VALUE: GLenum;
  14222. readonly STENCIL_FAIL: GLenum;
  14223. readonly STENCIL_FUNC: GLenum;
  14224. readonly STENCIL_INDEX8: GLenum;
  14225. readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
  14226. readonly STENCIL_PASS_DEPTH_PASS: GLenum;
  14227. readonly STENCIL_REF: GLenum;
  14228. readonly STENCIL_TEST: GLenum;
  14229. readonly STENCIL_VALUE_MASK: GLenum;
  14230. readonly STENCIL_WRITEMASK: GLenum;
  14231. readonly STREAM_DRAW: GLenum;
  14232. readonly SUBPIXEL_BITS: GLenum;
  14233. readonly TEXTURE: GLenum;
  14234. readonly TEXTURE0: GLenum;
  14235. readonly TEXTURE1: GLenum;
  14236. readonly TEXTURE10: GLenum;
  14237. readonly TEXTURE11: GLenum;
  14238. readonly TEXTURE12: GLenum;
  14239. readonly TEXTURE13: GLenum;
  14240. readonly TEXTURE14: GLenum;
  14241. readonly TEXTURE15: GLenum;
  14242. readonly TEXTURE16: GLenum;
  14243. readonly TEXTURE17: GLenum;
  14244. readonly TEXTURE18: GLenum;
  14245. readonly TEXTURE19: GLenum;
  14246. readonly TEXTURE2: GLenum;
  14247. readonly TEXTURE20: GLenum;
  14248. readonly TEXTURE21: GLenum;
  14249. readonly TEXTURE22: GLenum;
  14250. readonly TEXTURE23: GLenum;
  14251. readonly TEXTURE24: GLenum;
  14252. readonly TEXTURE25: GLenum;
  14253. readonly TEXTURE26: GLenum;
  14254. readonly TEXTURE27: GLenum;
  14255. readonly TEXTURE28: GLenum;
  14256. readonly TEXTURE29: GLenum;
  14257. readonly TEXTURE3: GLenum;
  14258. readonly TEXTURE30: GLenum;
  14259. readonly TEXTURE31: GLenum;
  14260. readonly TEXTURE4: GLenum;
  14261. readonly TEXTURE5: GLenum;
  14262. readonly TEXTURE6: GLenum;
  14263. readonly TEXTURE7: GLenum;
  14264. readonly TEXTURE8: GLenum;
  14265. readonly TEXTURE9: GLenum;
  14266. readonly TEXTURE_2D: GLenum;
  14267. readonly TEXTURE_BINDING_2D: GLenum;
  14268. readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
  14269. readonly TEXTURE_CUBE_MAP: GLenum;
  14270. readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
  14271. readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
  14272. readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
  14273. readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
  14274. readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
  14275. readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
  14276. readonly TEXTURE_MAG_FILTER: GLenum;
  14277. readonly TEXTURE_MIN_FILTER: GLenum;
  14278. readonly TEXTURE_WRAP_S: GLenum;
  14279. readonly TEXTURE_WRAP_T: GLenum;
  14280. readonly TRIANGLES: GLenum;
  14281. readonly TRIANGLE_FAN: GLenum;
  14282. readonly TRIANGLE_STRIP: GLenum;
  14283. readonly UNPACK_ALIGNMENT: GLenum;
  14284. readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
  14285. readonly UNPACK_FLIP_Y_WEBGL: GLenum;
  14286. readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
  14287. readonly UNSIGNED_BYTE: GLenum;
  14288. readonly UNSIGNED_INT: GLenum;
  14289. readonly UNSIGNED_SHORT: GLenum;
  14290. readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
  14291. readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
  14292. readonly UNSIGNED_SHORT_5_6_5: GLenum;
  14293. readonly VALIDATE_STATUS: GLenum;
  14294. readonly VENDOR: GLenum;
  14295. readonly VERSION: GLenum;
  14296. readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
  14297. readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
  14298. readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
  14299. readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
  14300. readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
  14301. readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
  14302. readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
  14303. readonly VERTEX_SHADER: GLenum;
  14304. readonly VIEWPORT: GLenum;
  14305. readonly ZERO: GLenum;
  14306. };
  14307. interface WebGLRenderingContextBase {
  14308. readonly canvas: HTMLCanvasElement;
  14309. readonly drawingBufferHeight: GLsizei;
  14310. readonly drawingBufferWidth: GLsizei;
  14311. activeTexture(texture: GLenum): void;
  14312. attachShader(program: WebGLProgram, shader: WebGLShader): void;
  14313. bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
  14314. bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
  14315. bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
  14316. bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
  14317. bindTexture(target: GLenum, texture: WebGLTexture | null): void;
  14318. blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
  14319. blendEquation(mode: GLenum): void;
  14320. blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
  14321. blendFunc(sfactor: GLenum, dfactor: GLenum): void;
  14322. blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
  14323. checkFramebufferStatus(target: GLenum): GLenum;
  14324. clear(mask: GLbitfield): void;
  14325. clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
  14326. clearDepth(depth: GLclampf): void;
  14327. clearStencil(s: GLint): void;
  14328. colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
  14329. compileShader(shader: WebGLShader): void;
  14330. copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
  14331. copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
  14332. createBuffer(): WebGLBuffer | null;
  14333. createFramebuffer(): WebGLFramebuffer | null;
  14334. createProgram(): WebGLProgram | null;
  14335. createRenderbuffer(): WebGLRenderbuffer | null;
  14336. createShader(type: GLenum): WebGLShader | null;
  14337. createTexture(): WebGLTexture | null;
  14338. cullFace(mode: GLenum): void;
  14339. deleteBuffer(buffer: WebGLBuffer | null): void;
  14340. deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
  14341. deleteProgram(program: WebGLProgram | null): void;
  14342. deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
  14343. deleteShader(shader: WebGLShader | null): void;
  14344. deleteTexture(texture: WebGLTexture | null): void;
  14345. depthFunc(func: GLenum): void;
  14346. depthMask(flag: GLboolean): void;
  14347. depthRange(zNear: GLclampf, zFar: GLclampf): void;
  14348. detachShader(program: WebGLProgram, shader: WebGLShader): void;
  14349. disable(cap: GLenum): void;
  14350. disableVertexAttribArray(index: GLuint): void;
  14351. drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
  14352. drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
  14353. enable(cap: GLenum): void;
  14354. enableVertexAttribArray(index: GLuint): void;
  14355. finish(): void;
  14356. flush(): void;
  14357. framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
  14358. framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
  14359. frontFace(mode: GLenum): void;
  14360. generateMipmap(target: GLenum): void;
  14361. getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
  14362. getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
  14363. getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
  14364. getAttribLocation(program: WebGLProgram, name: string): GLint;
  14365. getBufferParameter(target: GLenum, pname: GLenum): any;
  14366. getContextAttributes(): WebGLContextAttributes | null;
  14367. getError(): GLenum;
  14368. getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
  14369. getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
  14370. getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
  14371. getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
  14372. getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
  14373. getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
  14374. getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
  14375. getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
  14376. getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
  14377. getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
  14378. getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
  14379. getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
  14380. getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
  14381. getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
  14382. getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
  14383. getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
  14384. getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
  14385. getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
  14386. getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
  14387. getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
  14388. getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
  14389. getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
  14390. getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
  14391. getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
  14392. getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
  14393. getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
  14394. getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
  14395. getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
  14396. getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
  14397. getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
  14398. getExtension(name: string): any;
  14399. getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
  14400. getParameter(pname: GLenum): any;
  14401. getProgramInfoLog(program: WebGLProgram): string | null;
  14402. getProgramParameter(program: WebGLProgram, pname: GLenum): any;
  14403. getRenderbufferParameter(target: GLenum, pname: GLenum): any;
  14404. getShaderInfoLog(shader: WebGLShader): string | null;
  14405. getShaderParameter(shader: WebGLShader, pname: GLenum): any;
  14406. getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
  14407. getShaderSource(shader: WebGLShader): string | null;
  14408. getSupportedExtensions(): string[] | null;
  14409. getTexParameter(target: GLenum, pname: GLenum): any;
  14410. getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
  14411. getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
  14412. getVertexAttrib(index: GLuint, pname: GLenum): any;
  14413. getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
  14414. hint(target: GLenum, mode: GLenum): void;
  14415. isBuffer(buffer: WebGLBuffer | null): GLboolean;
  14416. isContextLost(): boolean;
  14417. isEnabled(cap: GLenum): GLboolean;
  14418. isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
  14419. isProgram(program: WebGLProgram | null): GLboolean;
  14420. isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
  14421. isShader(shader: WebGLShader | null): GLboolean;
  14422. isTexture(texture: WebGLTexture | null): GLboolean;
  14423. lineWidth(width: GLfloat): void;
  14424. linkProgram(program: WebGLProgram): void;
  14425. pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
  14426. polygonOffset(factor: GLfloat, units: GLfloat): void;
  14427. renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
  14428. sampleCoverage(value: GLclampf, invert: GLboolean): void;
  14429. scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
  14430. shaderSource(shader: WebGLShader, source: string): void;
  14431. stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
  14432. stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
  14433. stencilMask(mask: GLuint): void;
  14434. stencilMaskSeparate(face: GLenum, mask: GLuint): void;
  14435. stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
  14436. stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
  14437. texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
  14438. texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
  14439. uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
  14440. uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
  14441. uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
  14442. uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
  14443. uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
  14444. uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
  14445. uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
  14446. uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
  14447. useProgram(program: WebGLProgram | null): void;
  14448. validateProgram(program: WebGLProgram): void;
  14449. vertexAttrib1f(index: GLuint, x: GLfloat): void;
  14450. vertexAttrib1fv(index: GLuint, values: Float32List): void;
  14451. vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
  14452. vertexAttrib2fv(index: GLuint, values: Float32List): void;
  14453. vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
  14454. vertexAttrib3fv(index: GLuint, values: Float32List): void;
  14455. vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
  14456. vertexAttrib4fv(index: GLuint, values: Float32List): void;
  14457. vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
  14458. viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
  14459. readonly ACTIVE_ATTRIBUTES: GLenum;
  14460. readonly ACTIVE_TEXTURE: GLenum;
  14461. readonly ACTIVE_UNIFORMS: GLenum;
  14462. readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
  14463. readonly ALIASED_POINT_SIZE_RANGE: GLenum;
  14464. readonly ALPHA: GLenum;
  14465. readonly ALPHA_BITS: GLenum;
  14466. readonly ALWAYS: GLenum;
  14467. readonly ARRAY_BUFFER: GLenum;
  14468. readonly ARRAY_BUFFER_BINDING: GLenum;
  14469. readonly ATTACHED_SHADERS: GLenum;
  14470. readonly BACK: GLenum;
  14471. readonly BLEND: GLenum;
  14472. readonly BLEND_COLOR: GLenum;
  14473. readonly BLEND_DST_ALPHA: GLenum;
  14474. readonly BLEND_DST_RGB: GLenum;
  14475. readonly BLEND_EQUATION: GLenum;
  14476. readonly BLEND_EQUATION_ALPHA: GLenum;
  14477. readonly BLEND_EQUATION_RGB: GLenum;
  14478. readonly BLEND_SRC_ALPHA: GLenum;
  14479. readonly BLEND_SRC_RGB: GLenum;
  14480. readonly BLUE_BITS: GLenum;
  14481. readonly BOOL: GLenum;
  14482. readonly BOOL_VEC2: GLenum;
  14483. readonly BOOL_VEC3: GLenum;
  14484. readonly BOOL_VEC4: GLenum;
  14485. readonly BROWSER_DEFAULT_WEBGL: GLenum;
  14486. readonly BUFFER_SIZE: GLenum;
  14487. readonly BUFFER_USAGE: GLenum;
  14488. readonly BYTE: GLenum;
  14489. readonly CCW: GLenum;
  14490. readonly CLAMP_TO_EDGE: GLenum;
  14491. readonly COLOR_ATTACHMENT0: GLenum;
  14492. readonly COLOR_BUFFER_BIT: GLenum;
  14493. readonly COLOR_CLEAR_VALUE: GLenum;
  14494. readonly COLOR_WRITEMASK: GLenum;
  14495. readonly COMPILE_STATUS: GLenum;
  14496. readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
  14497. readonly CONSTANT_ALPHA: GLenum;
  14498. readonly CONSTANT_COLOR: GLenum;
  14499. readonly CONTEXT_LOST_WEBGL: GLenum;
  14500. readonly CULL_FACE: GLenum;
  14501. readonly CULL_FACE_MODE: GLenum;
  14502. readonly CURRENT_PROGRAM: GLenum;
  14503. readonly CURRENT_VERTEX_ATTRIB: GLenum;
  14504. readonly CW: GLenum;
  14505. readonly DECR: GLenum;
  14506. readonly DECR_WRAP: GLenum;
  14507. readonly DELETE_STATUS: GLenum;
  14508. readonly DEPTH_ATTACHMENT: GLenum;
  14509. readonly DEPTH_BITS: GLenum;
  14510. readonly DEPTH_BUFFER_BIT: GLenum;
  14511. readonly DEPTH_CLEAR_VALUE: GLenum;
  14512. readonly DEPTH_COMPONENT: GLenum;
  14513. readonly DEPTH_COMPONENT16: GLenum;
  14514. readonly DEPTH_FUNC: GLenum;
  14515. readonly DEPTH_RANGE: GLenum;
  14516. readonly DEPTH_STENCIL: GLenum;
  14517. readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
  14518. readonly DEPTH_TEST: GLenum;
  14519. readonly DEPTH_WRITEMASK: GLenum;
  14520. readonly DITHER: GLenum;
  14521. readonly DONT_CARE: GLenum;
  14522. readonly DST_ALPHA: GLenum;
  14523. readonly DST_COLOR: GLenum;
  14524. readonly DYNAMIC_DRAW: GLenum;
  14525. readonly ELEMENT_ARRAY_BUFFER: GLenum;
  14526. readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
  14527. readonly EQUAL: GLenum;
  14528. readonly FASTEST: GLenum;
  14529. readonly FLOAT: GLenum;
  14530. readonly FLOAT_MAT2: GLenum;
  14531. readonly FLOAT_MAT3: GLenum;
  14532. readonly FLOAT_MAT4: GLenum;
  14533. readonly FLOAT_VEC2: GLenum;
  14534. readonly FLOAT_VEC3: GLenum;
  14535. readonly FLOAT_VEC4: GLenum;
  14536. readonly FRAGMENT_SHADER: GLenum;
  14537. readonly FRAMEBUFFER: GLenum;
  14538. readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
  14539. readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
  14540. readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
  14541. readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
  14542. readonly FRAMEBUFFER_BINDING: GLenum;
  14543. readonly FRAMEBUFFER_COMPLETE: GLenum;
  14544. readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
  14545. readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
  14546. readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
  14547. readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
  14548. readonly FRONT: GLenum;
  14549. readonly FRONT_AND_BACK: GLenum;
  14550. readonly FRONT_FACE: GLenum;
  14551. readonly FUNC_ADD: GLenum;
  14552. readonly FUNC_REVERSE_SUBTRACT: GLenum;
  14553. readonly FUNC_SUBTRACT: GLenum;
  14554. readonly GENERATE_MIPMAP_HINT: GLenum;
  14555. readonly GEQUAL: GLenum;
  14556. readonly GREATER: GLenum;
  14557. readonly GREEN_BITS: GLenum;
  14558. readonly HIGH_FLOAT: GLenum;
  14559. readonly HIGH_INT: GLenum;
  14560. readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
  14561. readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
  14562. readonly INCR: GLenum;
  14563. readonly INCR_WRAP: GLenum;
  14564. readonly INT: GLenum;
  14565. readonly INT_VEC2: GLenum;
  14566. readonly INT_VEC3: GLenum;
  14567. readonly INT_VEC4: GLenum;
  14568. readonly INVALID_ENUM: GLenum;
  14569. readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
  14570. readonly INVALID_OPERATION: GLenum;
  14571. readonly INVALID_VALUE: GLenum;
  14572. readonly INVERT: GLenum;
  14573. readonly KEEP: GLenum;
  14574. readonly LEQUAL: GLenum;
  14575. readonly LESS: GLenum;
  14576. readonly LINEAR: GLenum;
  14577. readonly LINEAR_MIPMAP_LINEAR: GLenum;
  14578. readonly LINEAR_MIPMAP_NEAREST: GLenum;
  14579. readonly LINES: GLenum;
  14580. readonly LINE_LOOP: GLenum;
  14581. readonly LINE_STRIP: GLenum;
  14582. readonly LINE_WIDTH: GLenum;
  14583. readonly LINK_STATUS: GLenum;
  14584. readonly LOW_FLOAT: GLenum;
  14585. readonly LOW_INT: GLenum;
  14586. readonly LUMINANCE: GLenum;
  14587. readonly LUMINANCE_ALPHA: GLenum;
  14588. readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
  14589. readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
  14590. readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
  14591. readonly MAX_RENDERBUFFER_SIZE: GLenum;
  14592. readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
  14593. readonly MAX_TEXTURE_SIZE: GLenum;
  14594. readonly MAX_VARYING_VECTORS: GLenum;
  14595. readonly MAX_VERTEX_ATTRIBS: GLenum;
  14596. readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
  14597. readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
  14598. readonly MAX_VIEWPORT_DIMS: GLenum;
  14599. readonly MEDIUM_FLOAT: GLenum;
  14600. readonly MEDIUM_INT: GLenum;
  14601. readonly MIRRORED_REPEAT: GLenum;
  14602. readonly NEAREST: GLenum;
  14603. readonly NEAREST_MIPMAP_LINEAR: GLenum;
  14604. readonly NEAREST_MIPMAP_NEAREST: GLenum;
  14605. readonly NEVER: GLenum;
  14606. readonly NICEST: GLenum;
  14607. readonly NONE: GLenum;
  14608. readonly NOTEQUAL: GLenum;
  14609. readonly NO_ERROR: GLenum;
  14610. readonly ONE: GLenum;
  14611. readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
  14612. readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
  14613. readonly ONE_MINUS_DST_ALPHA: GLenum;
  14614. readonly ONE_MINUS_DST_COLOR: GLenum;
  14615. readonly ONE_MINUS_SRC_ALPHA: GLenum;
  14616. readonly ONE_MINUS_SRC_COLOR: GLenum;
  14617. readonly OUT_OF_MEMORY: GLenum;
  14618. readonly PACK_ALIGNMENT: GLenum;
  14619. readonly POINTS: GLenum;
  14620. readonly POLYGON_OFFSET_FACTOR: GLenum;
  14621. readonly POLYGON_OFFSET_FILL: GLenum;
  14622. readonly POLYGON_OFFSET_UNITS: GLenum;
  14623. readonly RED_BITS: GLenum;
  14624. readonly RENDERBUFFER: GLenum;
  14625. readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
  14626. readonly RENDERBUFFER_BINDING: GLenum;
  14627. readonly RENDERBUFFER_BLUE_SIZE: GLenum;
  14628. readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
  14629. readonly RENDERBUFFER_GREEN_SIZE: GLenum;
  14630. readonly RENDERBUFFER_HEIGHT: GLenum;
  14631. readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
  14632. readonly RENDERBUFFER_RED_SIZE: GLenum;
  14633. readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
  14634. readonly RENDERBUFFER_WIDTH: GLenum;
  14635. readonly RENDERER: GLenum;
  14636. readonly REPEAT: GLenum;
  14637. readonly REPLACE: GLenum;
  14638. readonly RGB: GLenum;
  14639. readonly RGB565: GLenum;
  14640. readonly RGB5_A1: GLenum;
  14641. readonly RGBA: GLenum;
  14642. readonly RGBA4: GLenum;
  14643. readonly SAMPLER_2D: GLenum;
  14644. readonly SAMPLER_CUBE: GLenum;
  14645. readonly SAMPLES: GLenum;
  14646. readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
  14647. readonly SAMPLE_BUFFERS: GLenum;
  14648. readonly SAMPLE_COVERAGE: GLenum;
  14649. readonly SAMPLE_COVERAGE_INVERT: GLenum;
  14650. readonly SAMPLE_COVERAGE_VALUE: GLenum;
  14651. readonly SCISSOR_BOX: GLenum;
  14652. readonly SCISSOR_TEST: GLenum;
  14653. readonly SHADER_TYPE: GLenum;
  14654. readonly SHADING_LANGUAGE_VERSION: GLenum;
  14655. readonly SHORT: GLenum;
  14656. readonly SRC_ALPHA: GLenum;
  14657. readonly SRC_ALPHA_SATURATE: GLenum;
  14658. readonly SRC_COLOR: GLenum;
  14659. readonly STATIC_DRAW: GLenum;
  14660. readonly STENCIL_ATTACHMENT: GLenum;
  14661. readonly STENCIL_BACK_FAIL: GLenum;
  14662. readonly STENCIL_BACK_FUNC: GLenum;
  14663. readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
  14664. readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
  14665. readonly STENCIL_BACK_REF: GLenum;
  14666. readonly STENCIL_BACK_VALUE_MASK: GLenum;
  14667. readonly STENCIL_BACK_WRITEMASK: GLenum;
  14668. readonly STENCIL_BITS: GLenum;
  14669. readonly STENCIL_BUFFER_BIT: GLenum;
  14670. readonly STENCIL_CLEAR_VALUE: GLenum;
  14671. readonly STENCIL_FAIL: GLenum;
  14672. readonly STENCIL_FUNC: GLenum;
  14673. readonly STENCIL_INDEX8: GLenum;
  14674. readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
  14675. readonly STENCIL_PASS_DEPTH_PASS: GLenum;
  14676. readonly STENCIL_REF: GLenum;
  14677. readonly STENCIL_TEST: GLenum;
  14678. readonly STENCIL_VALUE_MASK: GLenum;
  14679. readonly STENCIL_WRITEMASK: GLenum;
  14680. readonly STREAM_DRAW: GLenum;
  14681. readonly SUBPIXEL_BITS: GLenum;
  14682. readonly TEXTURE: GLenum;
  14683. readonly TEXTURE0: GLenum;
  14684. readonly TEXTURE1: GLenum;
  14685. readonly TEXTURE10: GLenum;
  14686. readonly TEXTURE11: GLenum;
  14687. readonly TEXTURE12: GLenum;
  14688. readonly TEXTURE13: GLenum;
  14689. readonly TEXTURE14: GLenum;
  14690. readonly TEXTURE15: GLenum;
  14691. readonly TEXTURE16: GLenum;
  14692. readonly TEXTURE17: GLenum;
  14693. readonly TEXTURE18: GLenum;
  14694. readonly TEXTURE19: GLenum;
  14695. readonly TEXTURE2: GLenum;
  14696. readonly TEXTURE20: GLenum;
  14697. readonly TEXTURE21: GLenum;
  14698. readonly TEXTURE22: GLenum;
  14699. readonly TEXTURE23: GLenum;
  14700. readonly TEXTURE24: GLenum;
  14701. readonly TEXTURE25: GLenum;
  14702. readonly TEXTURE26: GLenum;
  14703. readonly TEXTURE27: GLenum;
  14704. readonly TEXTURE28: GLenum;
  14705. readonly TEXTURE29: GLenum;
  14706. readonly TEXTURE3: GLenum;
  14707. readonly TEXTURE30: GLenum;
  14708. readonly TEXTURE31: GLenum;
  14709. readonly TEXTURE4: GLenum;
  14710. readonly TEXTURE5: GLenum;
  14711. readonly TEXTURE6: GLenum;
  14712. readonly TEXTURE7: GLenum;
  14713. readonly TEXTURE8: GLenum;
  14714. readonly TEXTURE9: GLenum;
  14715. readonly TEXTURE_2D: GLenum;
  14716. readonly TEXTURE_BINDING_2D: GLenum;
  14717. readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
  14718. readonly TEXTURE_CUBE_MAP: GLenum;
  14719. readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
  14720. readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
  14721. readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
  14722. readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
  14723. readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
  14724. readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
  14725. readonly TEXTURE_MAG_FILTER: GLenum;
  14726. readonly TEXTURE_MIN_FILTER: GLenum;
  14727. readonly TEXTURE_WRAP_S: GLenum;
  14728. readonly TEXTURE_WRAP_T: GLenum;
  14729. readonly TRIANGLES: GLenum;
  14730. readonly TRIANGLE_FAN: GLenum;
  14731. readonly TRIANGLE_STRIP: GLenum;
  14732. readonly UNPACK_ALIGNMENT: GLenum;
  14733. readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
  14734. readonly UNPACK_FLIP_Y_WEBGL: GLenum;
  14735. readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
  14736. readonly UNSIGNED_BYTE: GLenum;
  14737. readonly UNSIGNED_INT: GLenum;
  14738. readonly UNSIGNED_SHORT: GLenum;
  14739. readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
  14740. readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
  14741. readonly UNSIGNED_SHORT_5_6_5: GLenum;
  14742. readonly VALIDATE_STATUS: GLenum;
  14743. readonly VENDOR: GLenum;
  14744. readonly VERSION: GLenum;
  14745. readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
  14746. readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
  14747. readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
  14748. readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
  14749. readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
  14750. readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
  14751. readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
  14752. readonly VERTEX_SHADER: GLenum;
  14753. readonly VIEWPORT: GLenum;
  14754. readonly ZERO: GLenum;
  14755. }
  14756. interface WebGLRenderingContextOverloads {
  14757. bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
  14758. bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;
  14759. bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;
  14760. compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
  14761. compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
  14762. readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
  14763. texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
  14764. texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
  14765. texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
  14766. texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
  14767. uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
  14768. uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
  14769. uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
  14770. uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
  14771. uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
  14772. uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
  14773. uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
  14774. uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
  14775. uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
  14776. uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
  14777. uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
  14778. }
  14779. interface WebGLSampler {
  14780. }
  14781. declare var WebGLSampler: {
  14782. prototype: WebGLSampler;
  14783. new(): WebGLSampler;
  14784. };
  14785. /** 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. */
  14786. interface WebGLShader {
  14787. }
  14788. declare var WebGLShader: {
  14789. prototype: WebGLShader;
  14790. new(): WebGLShader;
  14791. };
  14792. /** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */
  14793. interface WebGLShaderPrecisionFormat {
  14794. readonly precision: GLint;
  14795. readonly rangeMax: GLint;
  14796. readonly rangeMin: GLint;
  14797. }
  14798. declare var WebGLShaderPrecisionFormat: {
  14799. prototype: WebGLShaderPrecisionFormat;
  14800. new(): WebGLShaderPrecisionFormat;
  14801. };
  14802. interface WebGLSync {
  14803. }
  14804. declare var WebGLSync: {
  14805. prototype: WebGLSync;
  14806. new(): WebGLSync;
  14807. };
  14808. /** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
  14809. interface WebGLTexture {
  14810. }
  14811. declare var WebGLTexture: {
  14812. prototype: WebGLTexture;
  14813. new(): WebGLTexture;
  14814. };
  14815. interface WebGLTransformFeedback {
  14816. }
  14817. declare var WebGLTransformFeedback: {
  14818. prototype: WebGLTransformFeedback;
  14819. new(): WebGLTransformFeedback;
  14820. };
  14821. /** Part of the WebGL API and represents the location of a uniform variable in a shader program. */
  14822. interface WebGLUniformLocation {
  14823. }
  14824. declare var WebGLUniformLocation: {
  14825. prototype: WebGLUniformLocation;
  14826. new(): WebGLUniformLocation;
  14827. };
  14828. interface WebGLVertexArrayObject {
  14829. }
  14830. declare var WebGLVertexArrayObject: {
  14831. prototype: WebGLVertexArrayObject;
  14832. new(): WebGLVertexArrayObject;
  14833. };
  14834. interface WebGLVertexArrayObjectOES {
  14835. }
  14836. interface WebSocketEventMap {
  14837. "close": CloseEvent;
  14838. "error": Event;
  14839. "message": MessageEvent;
  14840. "open": Event;
  14841. }
  14842. /** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */
  14843. interface WebSocket extends EventTarget {
  14844. /**
  14845. * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
  14846. *
  14847. * Can be set, to change how binary data is returned. The default is "blob".
  14848. */
  14849. binaryType: BinaryType;
  14850. /**
  14851. * 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.
  14852. *
  14853. * 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.)
  14854. */
  14855. readonly bufferedAmount: number;
  14856. /** Returns the extensions selected by the server, if any. */
  14857. readonly extensions: string;
  14858. onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
  14859. onerror: ((this: WebSocket, ev: Event) => any) | null;
  14860. onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
  14861. onopen: ((this: WebSocket, ev: Event) => any) | null;
  14862. /** 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. */
  14863. readonly protocol: string;
  14864. /** Returns the state of the WebSocket object's connection. It can have the values described below. */
  14865. readonly readyState: number;
  14866. /** Returns the URL that was used to establish the WebSocket connection. */
  14867. readonly url: string;
  14868. /** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */
  14869. close(code?: number, reason?: string): void;
  14870. /** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */
  14871. send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
  14872. readonly CLOSED: number;
  14873. readonly CLOSING: number;
  14874. readonly CONNECTING: number;
  14875. readonly OPEN: number;
  14876. addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  14877. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  14878. removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  14879. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  14880. }
  14881. declare var WebSocket: {
  14882. prototype: WebSocket;
  14883. new(url: string | URL, protocols?: string | string[]): WebSocket;
  14884. readonly CLOSED: number;
  14885. readonly CLOSING: number;
  14886. readonly CONNECTING: number;
  14887. readonly OPEN: number;
  14888. };
  14889. /** Events that occur due to the user moving a mouse wheel or similar input device. */
  14890. interface WheelEvent extends MouseEvent {
  14891. readonly deltaMode: number;
  14892. readonly deltaX: number;
  14893. readonly deltaY: number;
  14894. readonly deltaZ: number;
  14895. readonly DOM_DELTA_LINE: number;
  14896. readonly DOM_DELTA_PAGE: number;
  14897. readonly DOM_DELTA_PIXEL: number;
  14898. }
  14899. declare var WheelEvent: {
  14900. prototype: WheelEvent;
  14901. new(type: string, eventInitDict?: WheelEventInit): WheelEvent;
  14902. readonly DOM_DELTA_LINE: number;
  14903. readonly DOM_DELTA_PAGE: number;
  14904. readonly DOM_DELTA_PIXEL: number;
  14905. };
  14906. interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {
  14907. "devicemotion": DeviceMotionEvent;
  14908. "deviceorientation": DeviceOrientationEvent;
  14909. "gamepadconnected": GamepadEvent;
  14910. "gamepaddisconnected": GamepadEvent;
  14911. "orientationchange": Event;
  14912. }
  14913. /** A window containing a DOM document; the document property points to the DOM document loaded in that window. */
  14914. interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {
  14915. /** @deprecated This is a legacy alias of \`navigator\`. */
  14916. readonly clientInformation: Navigator;
  14917. /** Returns true if the window has been closed, false otherwise. */
  14918. readonly closed: boolean;
  14919. /** Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. */
  14920. readonly customElements: CustomElementRegistry;
  14921. readonly devicePixelRatio: number;
  14922. readonly document: Document;
  14923. /** @deprecated */
  14924. readonly event: Event | undefined;
  14925. /** @deprecated */
  14926. readonly external: External;
  14927. readonly frameElement: Element | null;
  14928. readonly frames: WindowProxy;
  14929. readonly history: History;
  14930. readonly innerHeight: number;
  14931. readonly innerWidth: number;
  14932. readonly length: number;
  14933. get location(): Location;
  14934. set location(href: string | Location);
  14935. /** Returns true if the location bar is visible; otherwise, returns false. */
  14936. readonly locationbar: BarProp;
  14937. /** Returns true if the menu bar is visible; otherwise, returns false. */
  14938. readonly menubar: BarProp;
  14939. name: string;
  14940. readonly navigator: Navigator;
  14941. /** Available only in secure contexts. */
  14942. ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
  14943. /** Available only in secure contexts. */
  14944. ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
  14945. /** @deprecated */
  14946. onorientationchange: ((this: Window, ev: Event) => any) | null;
  14947. opener: any;
  14948. /** @deprecated */
  14949. readonly orientation: number;
  14950. readonly outerHeight: number;
  14951. readonly outerWidth: number;
  14952. /** @deprecated This is a legacy alias of \`scrollX\`. */
  14953. readonly pageXOffset: number;
  14954. /** @deprecated This is a legacy alias of \`scrollY\`. */
  14955. readonly pageYOffset: number;
  14956. /**
  14957. * Refers to either the parent WindowProxy, or itself.
  14958. *
  14959. * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
  14960. */
  14961. readonly parent: WindowProxy;
  14962. /** Returns true if the personal bar is visible; otherwise, returns false. */
  14963. readonly personalbar: BarProp;
  14964. readonly screen: Screen;
  14965. readonly screenLeft: number;
  14966. readonly screenTop: number;
  14967. readonly screenX: number;
  14968. readonly screenY: number;
  14969. readonly scrollX: number;
  14970. readonly scrollY: number;
  14971. /** Returns true if the scrollbars are visible; otherwise, returns false. */
  14972. readonly scrollbars: BarProp;
  14973. readonly self: Window & typeof globalThis;
  14974. readonly speechSynthesis: SpeechSynthesis;
  14975. /** @deprecated */
  14976. status: string;
  14977. /** Returns true if the status bar is visible; otherwise, returns false. */
  14978. readonly statusbar: BarProp;
  14979. /** Returns true if the toolbar is visible; otherwise, returns false. */
  14980. readonly toolbar: BarProp;
  14981. readonly top: WindowProxy | null;
  14982. readonly visualViewport: VisualViewport;
  14983. readonly window: Window & typeof globalThis;
  14984. alert(message?: any): void;
  14985. blur(): void;
  14986. cancelIdleCallback(handle: number): void;
  14987. /** @deprecated */
  14988. captureEvents(): void;
  14989. /** Closes the window. */
  14990. close(): void;
  14991. confirm(message?: string): boolean;
  14992. /** Moves the focus to the window's browsing context, if any. */
  14993. focus(): void;
  14994. getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
  14995. getSelection(): Selection | null;
  14996. matchMedia(query: string): MediaQueryList;
  14997. moveBy(x: number, y: number): void;
  14998. moveTo(x: number, y: number): void;
  14999. open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
  15000. /**
  15001. * 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.
  15002. *
  15003. * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
  15004. *
  15005. * 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.
  15006. *
  15007. * 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 "*".
  15008. *
  15009. * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
  15010. */
  15011. postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
  15012. postMessage(message: any, options?: WindowPostMessageOptions): void;
  15013. print(): void;
  15014. prompt(message?: string, _default?: string): string | null;
  15015. /** @deprecated */
  15016. releaseEvents(): void;
  15017. requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
  15018. resizeBy(x: number, y: number): void;
  15019. resizeTo(width: number, height: number): void;
  15020. scroll(options?: ScrollToOptions): void;
  15021. scroll(x: number, y: number): void;
  15022. scrollBy(options?: ScrollToOptions): void;
  15023. scrollBy(x: number, y: number): void;
  15024. scrollTo(options?: ScrollToOptions): void;
  15025. scrollTo(x: number, y: number): void;
  15026. /** Cancels the document load. */
  15027. stop(): void;
  15028. addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  15029. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  15030. removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  15031. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  15032. [index: number]: Window;
  15033. }
  15034. declare var Window: {
  15035. prototype: Window;
  15036. new(): Window;
  15037. };
  15038. interface WindowEventHandlersEventMap {
  15039. "afterprint": Event;
  15040. "beforeprint": Event;
  15041. "beforeunload": BeforeUnloadEvent;
  15042. "gamepadconnected": GamepadEvent;
  15043. "gamepaddisconnected": GamepadEvent;
  15044. "hashchange": HashChangeEvent;
  15045. "languagechange": Event;
  15046. "message": MessageEvent;
  15047. "messageerror": MessageEvent;
  15048. "offline": Event;
  15049. "online": Event;
  15050. "pagehide": PageTransitionEvent;
  15051. "pageshow": PageTransitionEvent;
  15052. "popstate": PopStateEvent;
  15053. "rejectionhandled": PromiseRejectionEvent;
  15054. "storage": StorageEvent;
  15055. "unhandledrejection": PromiseRejectionEvent;
  15056. "unload": Event;
  15057. }
  15058. interface WindowEventHandlers {
  15059. onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
  15060. onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
  15061. onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;
  15062. ongamepadconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
  15063. ongamepaddisconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
  15064. onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;
  15065. onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;
  15066. onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
  15067. onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
  15068. onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null;
  15069. ononline: ((this: WindowEventHandlers, ev: Event) => any) | null;
  15070. onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
  15071. onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
  15072. onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;
  15073. onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
  15074. onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;
  15075. onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
  15076. onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;
  15077. addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  15078. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  15079. removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  15080. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  15081. }
  15082. interface WindowLocalStorage {
  15083. readonly localStorage: Storage;
  15084. }
  15085. interface WindowOrWorkerGlobalScope {
  15086. /** Available only in secure contexts. */
  15087. readonly caches: CacheStorage;
  15088. readonly crossOriginIsolated: boolean;
  15089. readonly crypto: Crypto;
  15090. readonly indexedDB: IDBFactory;
  15091. readonly isSecureContext: boolean;
  15092. readonly origin: string;
  15093. readonly performance: Performance;
  15094. atob(data: string): string;
  15095. btoa(data: string): string;
  15096. clearInterval(handle?: number): void;
  15097. clearTimeout(handle?: number): void;
  15098. createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
  15099. createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
  15100. fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
  15101. queueMicrotask(callback: VoidFunction): void;
  15102. setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
  15103. setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
  15104. }
  15105. interface WindowSessionStorage {
  15106. readonly sessionStorage: Storage;
  15107. }
  15108. interface WorkerEventMap extends AbstractWorkerEventMap {
  15109. "message": MessageEvent;
  15110. "messageerror": MessageEvent;
  15111. }
  15112. /** 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. */
  15113. interface Worker extends EventTarget, AbstractWorker {
  15114. onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
  15115. onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
  15116. /** 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. */
  15117. postMessage(message: any, transfer: Transferable[]): void;
  15118. postMessage(message: any, options?: StructuredSerializeOptions): void;
  15119. /** Aborts worker's associated global environment. */
  15120. terminate(): void;
  15121. addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  15122. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  15123. removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  15124. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  15125. }
  15126. declare var Worker: {
  15127. prototype: Worker;
  15128. new(scriptURL: string | URL, options?: WorkerOptions): Worker;
  15129. };
  15130. /** Available only in secure contexts. */
  15131. interface Worklet {
  15132. /**
  15133. * 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.
  15134. *
  15135. * The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to "same-origin".
  15136. *
  15137. * 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.
  15138. */
  15139. addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>;
  15140. }
  15141. declare var Worklet: {
  15142. prototype: Worklet;
  15143. new(): Worklet;
  15144. };
  15145. /** 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. */
  15146. interface WritableStream<W = any> {
  15147. readonly locked: boolean;
  15148. abort(reason?: any): Promise<void>;
  15149. close(): Promise<void>;
  15150. getWriter(): WritableStreamDefaultWriter<W>;
  15151. }
  15152. declare var WritableStream: {
  15153. prototype: WritableStream;
  15154. new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
  15155. };
  15156. /** 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. */
  15157. interface WritableStreamDefaultController {
  15158. error(e?: any): void;
  15159. }
  15160. declare var WritableStreamDefaultController: {
  15161. prototype: WritableStreamDefaultController;
  15162. new(): WritableStreamDefaultController;
  15163. };
  15164. /** 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. */
  15165. interface WritableStreamDefaultWriter<W = any> {
  15166. readonly closed: Promise<undefined>;
  15167. readonly desiredSize: number | null;
  15168. readonly ready: Promise<undefined>;
  15169. abort(reason?: any): Promise<void>;
  15170. close(): Promise<void>;
  15171. releaseLock(): void;
  15172. write(chunk?: W): Promise<void>;
  15173. }
  15174. declare var WritableStreamDefaultWriter: {
  15175. prototype: WritableStreamDefaultWriter;
  15176. new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
  15177. };
  15178. /** 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. */
  15179. interface XMLDocument extends Document {
  15180. addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  15181. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  15182. removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  15183. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  15184. }
  15185. declare var XMLDocument: {
  15186. prototype: XMLDocument;
  15187. new(): XMLDocument;
  15188. };
  15189. interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
  15190. "readystatechange": Event;
  15191. }
  15192. /** 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. */
  15193. interface XMLHttpRequest extends XMLHttpRequestEventTarget {
  15194. onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
  15195. /** Returns client's state. */
  15196. readonly readyState: number;
  15197. /** Returns the response body. */
  15198. readonly response: any;
  15199. /**
  15200. * Returns response as text.
  15201. *
  15202. * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
  15203. */
  15204. readonly responseText: string;
  15205. /**
  15206. * Returns the response type.
  15207. *
  15208. * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
  15209. *
  15210. * When set: setting to "document" is ignored if current global object is not a Window object.
  15211. *
  15212. * When set: throws an "InvalidStateError" DOMException if state is loading or done.
  15213. *
  15214. * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
  15215. */
  15216. responseType: XMLHttpRequestResponseType;
  15217. readonly responseURL: string;
  15218. /**
  15219. * Returns the response as document.
  15220. *
  15221. * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document".
  15222. */
  15223. readonly responseXML: Document | null;
  15224. readonly status: number;
  15225. readonly statusText: string;
  15226. /**
  15227. * 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).
  15228. *
  15229. * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
  15230. */
  15231. timeout: number;
  15232. /** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */
  15233. readonly upload: XMLHttpRequestUpload;
  15234. /**
  15235. * 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.
  15236. *
  15237. * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
  15238. */
  15239. withCredentials: boolean;
  15240. /** Cancels any network activity. */
  15241. abort(): void;
  15242. getAllResponseHeaders(): string;
  15243. getResponseHeader(name: string): string | null;
  15244. /**
  15245. * Sets the request method, request URL, and synchronous flag.
  15246. *
  15247. * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
  15248. *
  15249. * Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
  15250. *
  15251. * 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.
  15252. */
  15253. open(method: string, url: string | URL): void;
  15254. open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
  15255. /**
  15256. * Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.)
  15257. *
  15258. * Throws an "InvalidStateError" DOMException if state is loading or done.
  15259. */
  15260. overrideMimeType(mime: string): void;
  15261. /**
  15262. * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
  15263. *
  15264. * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
  15265. */
  15266. send(body?: Document | XMLHttpRequestBodyInit | null): void;
  15267. /**
  15268. * Combines a header in author request headers.
  15269. *
  15270. * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
  15271. *
  15272. * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
  15273. */
  15274. setRequestHeader(name: string, value: string): void;
  15275. readonly DONE: number;
  15276. readonly HEADERS_RECEIVED: number;
  15277. readonly LOADING: number;
  15278. readonly OPENED: number;
  15279. readonly UNSENT: number;
  15280. addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  15281. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  15282. removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  15283. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  15284. }
  15285. declare var XMLHttpRequest: {
  15286. prototype: XMLHttpRequest;
  15287. new(): XMLHttpRequest;
  15288. readonly DONE: number;
  15289. readonly HEADERS_RECEIVED: number;
  15290. readonly LOADING: number;
  15291. readonly OPENED: number;
  15292. readonly UNSENT: number;
  15293. };
  15294. interface XMLHttpRequestEventTargetEventMap {
  15295. "abort": ProgressEvent<XMLHttpRequestEventTarget>;
  15296. "error": ProgressEvent<XMLHttpRequestEventTarget>;
  15297. "load": ProgressEvent<XMLHttpRequestEventTarget>;
  15298. "loadend": ProgressEvent<XMLHttpRequestEventTarget>;
  15299. "loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
  15300. "progress": ProgressEvent<XMLHttpRequestEventTarget>;
  15301. "timeout": ProgressEvent<XMLHttpRequestEventTarget>;
  15302. }
  15303. interface XMLHttpRequestEventTarget extends EventTarget {
  15304. onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
  15305. onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
  15306. onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
  15307. onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
  15308. onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
  15309. onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
  15310. ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
  15311. addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  15312. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  15313. removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  15314. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  15315. }
  15316. declare var XMLHttpRequestEventTarget: {
  15317. prototype: XMLHttpRequestEventTarget;
  15318. new(): XMLHttpRequestEventTarget;
  15319. };
  15320. interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
  15321. addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  15322. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  15323. removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  15324. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  15325. }
  15326. declare var XMLHttpRequestUpload: {
  15327. prototype: XMLHttpRequestUpload;
  15328. new(): XMLHttpRequestUpload;
  15329. };
  15330. /** Provides the serializeToString() method to construct an XML string representing a DOM tree. */
  15331. interface XMLSerializer {
  15332. serializeToString(root: Node): string;
  15333. }
  15334. declare var XMLSerializer: {
  15335. prototype: XMLSerializer;
  15336. new(): XMLSerializer;
  15337. };
  15338. /** The XPathEvaluator interface allows to compile and evaluate XPath expressions. */
  15339. interface XPathEvaluator extends XPathEvaluatorBase {
  15340. }
  15341. declare var XPathEvaluator: {
  15342. prototype: XPathEvaluator;
  15343. new(): XPathEvaluator;
  15344. };
  15345. interface XPathEvaluatorBase {
  15346. createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;
  15347. createNSResolver(nodeResolver: Node): XPathNSResolver;
  15348. evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;
  15349. }
  15350. /** This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree. */
  15351. interface XPathExpression {
  15352. evaluate(contextNode: Node, type?: number, result?: XPathResult | null): XPathResult;
  15353. }
  15354. declare var XPathExpression: {
  15355. prototype: XPathExpression;
  15356. new(): XPathExpression;
  15357. };
  15358. /** The results generated by evaluating an XPath expression within the context of a given node. */
  15359. interface XPathResult {
  15360. readonly booleanValue: boolean;
  15361. readonly invalidIteratorState: boolean;
  15362. readonly numberValue: number;
  15363. readonly resultType: number;
  15364. readonly singleNodeValue: Node | null;
  15365. readonly snapshotLength: number;
  15366. readonly stringValue: string;
  15367. iterateNext(): Node | null;
  15368. snapshotItem(index: number): Node | null;
  15369. readonly ANY_TYPE: number;
  15370. readonly ANY_UNORDERED_NODE_TYPE: number;
  15371. readonly BOOLEAN_TYPE: number;
  15372. readonly FIRST_ORDERED_NODE_TYPE: number;
  15373. readonly NUMBER_TYPE: number;
  15374. readonly ORDERED_NODE_ITERATOR_TYPE: number;
  15375. readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
  15376. readonly STRING_TYPE: number;
  15377. readonly UNORDERED_NODE_ITERATOR_TYPE: number;
  15378. readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
  15379. }
  15380. declare var XPathResult: {
  15381. prototype: XPathResult;
  15382. new(): XPathResult;
  15383. readonly ANY_TYPE: number;
  15384. readonly ANY_UNORDERED_NODE_TYPE: number;
  15385. readonly BOOLEAN_TYPE: number;
  15386. readonly FIRST_ORDERED_NODE_TYPE: number;
  15387. readonly NUMBER_TYPE: number;
  15388. readonly ORDERED_NODE_ITERATOR_TYPE: number;
  15389. readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
  15390. readonly STRING_TYPE: number;
  15391. readonly UNORDERED_NODE_ITERATOR_TYPE: number;
  15392. readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
  15393. };
  15394. /** 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. */
  15395. interface XSLTProcessor {
  15396. clearParameters(): void;
  15397. getParameter(namespaceURI: string | null, localName: string): any;
  15398. importStylesheet(style: Node): void;
  15399. removeParameter(namespaceURI: string | null, localName: string): void;
  15400. reset(): void;
  15401. setParameter(namespaceURI: string | null, localName: string, value: any): void;
  15402. transformToDocument(source: Node): Document;
  15403. transformToFragment(source: Node, output: Document): DocumentFragment;
  15404. }
  15405. declare var XSLTProcessor: {
  15406. prototype: XSLTProcessor;
  15407. new(): XSLTProcessor;
  15408. };
  15409. interface Console {
  15410. assert(condition?: boolean, ...data: any[]): void;
  15411. clear(): void;
  15412. count(label?: string): void;
  15413. countReset(label?: string): void;
  15414. debug(...data: any[]): void;
  15415. dir(item?: any, options?: any): void;
  15416. dirxml(...data: any[]): void;
  15417. error(...data: any[]): void;
  15418. group(...data: any[]): void;
  15419. groupCollapsed(...data: any[]): void;
  15420. groupEnd(): void;
  15421. info(...data: any[]): void;
  15422. log(...data: any[]): void;
  15423. table(tabularData?: any, properties?: string[]): void;
  15424. time(label?: string): void;
  15425. timeEnd(label?: string): void;
  15426. timeLog(label?: string, ...data: any[]): void;
  15427. timeStamp(label?: string): void;
  15428. trace(...data: any[]): void;
  15429. warn(...data: any[]): void;
  15430. }
  15431. declare var console: Console;
  15432. /** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */
  15433. declare namespace CSS {
  15434. function escape(ident: string): string;
  15435. function supports(property: string, value: string): boolean;
  15436. function supports(conditionText: string): boolean;
  15437. }
  15438. declare namespace WebAssembly {
  15439. interface CompileError extends Error {
  15440. }
  15441. var CompileError: {
  15442. prototype: CompileError;
  15443. new(message?: string): CompileError;
  15444. (message?: string): CompileError;
  15445. };
  15446. interface Global {
  15447. value: any;
  15448. valueOf(): any;
  15449. }
  15450. var Global: {
  15451. prototype: Global;
  15452. new(descriptor: GlobalDescriptor, v?: any): Global;
  15453. };
  15454. interface Instance {
  15455. readonly exports: Exports;
  15456. }
  15457. var Instance: {
  15458. prototype: Instance;
  15459. new(module: Module, importObject?: Imports): Instance;
  15460. };
  15461. interface LinkError extends Error {
  15462. }
  15463. var LinkError: {
  15464. prototype: LinkError;
  15465. new(message?: string): LinkError;
  15466. (message?: string): LinkError;
  15467. };
  15468. interface Memory {
  15469. readonly buffer: ArrayBuffer;
  15470. grow(delta: number): number;
  15471. }
  15472. var Memory: {
  15473. prototype: Memory;
  15474. new(descriptor: MemoryDescriptor): Memory;
  15475. };
  15476. interface Module {
  15477. }
  15478. var Module: {
  15479. prototype: Module;
  15480. new(bytes: BufferSource): Module;
  15481. customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
  15482. exports(moduleObject: Module): ModuleExportDescriptor[];
  15483. imports(moduleObject: Module): ModuleImportDescriptor[];
  15484. };
  15485. interface RuntimeError extends Error {
  15486. }
  15487. var RuntimeError: {
  15488. prototype: RuntimeError;
  15489. new(message?: string): RuntimeError;
  15490. (message?: string): RuntimeError;
  15491. };
  15492. interface Table {
  15493. readonly length: number;
  15494. get(index: number): any;
  15495. grow(delta: number, value?: any): number;
  15496. set(index: number, value?: any): void;
  15497. }
  15498. var Table: {
  15499. prototype: Table;
  15500. new(descriptor: TableDescriptor, value?: any): Table;
  15501. };
  15502. interface GlobalDescriptor {
  15503. mutable?: boolean;
  15504. value: ValueType;
  15505. }
  15506. interface MemoryDescriptor {
  15507. initial: number;
  15508. maximum?: number;
  15509. shared?: boolean;
  15510. }
  15511. interface ModuleExportDescriptor {
  15512. kind: ImportExportKind;
  15513. name: string;
  15514. }
  15515. interface ModuleImportDescriptor {
  15516. kind: ImportExportKind;
  15517. module: string;
  15518. name: string;
  15519. }
  15520. interface TableDescriptor {
  15521. element: TableKind;
  15522. initial: number;
  15523. maximum?: number;
  15524. }
  15525. interface WebAssemblyInstantiatedSource {
  15526. instance: Instance;
  15527. module: Module;
  15528. }
  15529. type ImportExportKind = "function" | "global" | "memory" | "table";
  15530. type TableKind = "anyfunc" | "externref";
  15531. type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
  15532. type ExportValue = Function | Global | Memory | Table;
  15533. type Exports = Record<string, ExportValue>;
  15534. type ImportValue = ExportValue | number;
  15535. type Imports = Record<string, ModuleImports>;
  15536. type ModuleImports = Record<string, ImportValue>;
  15537. function compile(bytes: BufferSource): Promise<Module>;
  15538. function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
  15539. function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
  15540. function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
  15541. function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
  15542. function validate(bytes: BufferSource): boolean;
  15543. }
  15544. interface BlobCallback {
  15545. (blob: Blob | null): void;
  15546. }
  15547. interface CustomElementConstructor {
  15548. new (...params: any[]): HTMLElement;
  15549. }
  15550. interface DecodeErrorCallback {
  15551. (error: DOMException): void;
  15552. }
  15553. interface DecodeSuccessCallback {
  15554. (decodedData: AudioBuffer): void;
  15555. }
  15556. interface ErrorCallback {
  15557. (err: DOMException): void;
  15558. }
  15559. interface FileCallback {
  15560. (file: File): void;
  15561. }
  15562. interface FileSystemEntriesCallback {
  15563. (entries: FileSystemEntry[]): void;
  15564. }
  15565. interface FileSystemEntryCallback {
  15566. (entry: FileSystemEntry): void;
  15567. }
  15568. interface FrameRequestCallback {
  15569. (time: DOMHighResTimeStamp): void;
  15570. }
  15571. interface FunctionStringCallback {
  15572. (data: string): void;
  15573. }
  15574. interface IdleRequestCallback {
  15575. (deadline: IdleDeadline): void;
  15576. }
  15577. interface IntersectionObserverCallback {
  15578. (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
  15579. }
  15580. interface MediaSessionActionHandler {
  15581. (details: MediaSessionActionDetails): void;
  15582. }
  15583. interface MutationCallback {
  15584. (mutations: MutationRecord[], observer: MutationObserver): void;
  15585. }
  15586. interface NotificationPermissionCallback {
  15587. (permission: NotificationPermission): void;
  15588. }
  15589. interface OnBeforeUnloadEventHandlerNonNull {
  15590. (event: Event): string | null;
  15591. }
  15592. interface OnErrorEventHandlerNonNull {
  15593. (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
  15594. }
  15595. interface PerformanceObserverCallback {
  15596. (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
  15597. }
  15598. interface PositionCallback {
  15599. (position: GeolocationPosition): void;
  15600. }
  15601. interface PositionErrorCallback {
  15602. (positionError: GeolocationPositionError): void;
  15603. }
  15604. interface QueuingStrategySize<T = any> {
  15605. (chunk: T): number;
  15606. }
  15607. interface RTCPeerConnectionErrorCallback {
  15608. (error: DOMException): void;
  15609. }
  15610. interface RTCSessionDescriptionCallback {
  15611. (description: RTCSessionDescriptionInit): void;
  15612. }
  15613. interface RemotePlaybackAvailabilityCallback {
  15614. (available: boolean): void;
  15615. }
  15616. interface ResizeObserverCallback {
  15617. (entries: ResizeObserverEntry[], observer: ResizeObserver): void;
  15618. }
  15619. interface TransformerFlushCallback<O> {
  15620. (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
  15621. }
  15622. interface TransformerStartCallback<O> {
  15623. (controller: TransformStreamDefaultController<O>): any;
  15624. }
  15625. interface TransformerTransformCallback<I, O> {
  15626. (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
  15627. }
  15628. interface UnderlyingSinkAbortCallback {
  15629. (reason?: any): void | PromiseLike<void>;
  15630. }
  15631. interface UnderlyingSinkCloseCallback {
  15632. (): void | PromiseLike<void>;
  15633. }
  15634. interface UnderlyingSinkStartCallback {
  15635. (controller: WritableStreamDefaultController): any;
  15636. }
  15637. interface UnderlyingSinkWriteCallback<W> {
  15638. (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
  15639. }
  15640. interface UnderlyingSourceCancelCallback {
  15641. (reason?: any): void | PromiseLike<void>;
  15642. }
  15643. interface UnderlyingSourcePullCallback<R> {
  15644. (controller: ReadableStreamController<R>): void | PromiseLike<void>;
  15645. }
  15646. interface UnderlyingSourceStartCallback<R> {
  15647. (controller: ReadableStreamController<R>): any;
  15648. }
  15649. interface VoidFunction {
  15650. (): void;
  15651. }
  15652. interface HTMLElementTagNameMap {
  15653. "a": HTMLAnchorElement;
  15654. "abbr": HTMLElement;
  15655. "address": HTMLElement;
  15656. "area": HTMLAreaElement;
  15657. "article": HTMLElement;
  15658. "aside": HTMLElement;
  15659. "audio": HTMLAudioElement;
  15660. "b": HTMLElement;
  15661. "base": HTMLBaseElement;
  15662. "bdi": HTMLElement;
  15663. "bdo": HTMLElement;
  15664. "blockquote": HTMLQuoteElement;
  15665. "body": HTMLBodyElement;
  15666. "br": HTMLBRElement;
  15667. "button": HTMLButtonElement;
  15668. "canvas": HTMLCanvasElement;
  15669. "caption": HTMLTableCaptionElement;
  15670. "cite": HTMLElement;
  15671. "code": HTMLElement;
  15672. "col": HTMLTableColElement;
  15673. "colgroup": HTMLTableColElement;
  15674. "data": HTMLDataElement;
  15675. "datalist": HTMLDataListElement;
  15676. "dd": HTMLElement;
  15677. "del": HTMLModElement;
  15678. "details": HTMLDetailsElement;
  15679. "dfn": HTMLElement;
  15680. "dialog": HTMLDialogElement;
  15681. "dir": HTMLDirectoryElement;
  15682. "div": HTMLDivElement;
  15683. "dl": HTMLDListElement;
  15684. "dt": HTMLElement;
  15685. "em": HTMLElement;
  15686. "embed": HTMLEmbedElement;
  15687. "fieldset": HTMLFieldSetElement;
  15688. "figcaption": HTMLElement;
  15689. "figure": HTMLElement;
  15690. "font": HTMLFontElement;
  15691. "footer": HTMLElement;
  15692. "form": HTMLFormElement;
  15693. "frame": HTMLFrameElement;
  15694. "frameset": HTMLFrameSetElement;
  15695. "h1": HTMLHeadingElement;
  15696. "h2": HTMLHeadingElement;
  15697. "h3": HTMLHeadingElement;
  15698. "h4": HTMLHeadingElement;
  15699. "h5": HTMLHeadingElement;
  15700. "h6": HTMLHeadingElement;
  15701. "head": HTMLHeadElement;
  15702. "header": HTMLElement;
  15703. "hgroup": HTMLElement;
  15704. "hr": HTMLHRElement;
  15705. "html": HTMLHtmlElement;
  15706. "i": HTMLElement;
  15707. "iframe": HTMLIFrameElement;
  15708. "img": HTMLImageElement;
  15709. "input": HTMLInputElement;
  15710. "ins": HTMLModElement;
  15711. "kbd": HTMLElement;
  15712. "label": HTMLLabelElement;
  15713. "legend": HTMLLegendElement;
  15714. "li": HTMLLIElement;
  15715. "link": HTMLLinkElement;
  15716. "main": HTMLElement;
  15717. "map": HTMLMapElement;
  15718. "mark": HTMLElement;
  15719. "marquee": HTMLMarqueeElement;
  15720. "menu": HTMLMenuElement;
  15721. "meta": HTMLMetaElement;
  15722. "meter": HTMLMeterElement;
  15723. "nav": HTMLElement;
  15724. "noscript": HTMLElement;
  15725. "object": HTMLObjectElement;
  15726. "ol": HTMLOListElement;
  15727. "optgroup": HTMLOptGroupElement;
  15728. "option": HTMLOptionElement;
  15729. "output": HTMLOutputElement;
  15730. "p": HTMLParagraphElement;
  15731. "param": HTMLParamElement;
  15732. "picture": HTMLPictureElement;
  15733. "pre": HTMLPreElement;
  15734. "progress": HTMLProgressElement;
  15735. "q": HTMLQuoteElement;
  15736. "rp": HTMLElement;
  15737. "rt": HTMLElement;
  15738. "ruby": HTMLElement;
  15739. "s": HTMLElement;
  15740. "samp": HTMLElement;
  15741. "script": HTMLScriptElement;
  15742. "section": HTMLElement;
  15743. "select": HTMLSelectElement;
  15744. "slot": HTMLSlotElement;
  15745. "small": HTMLElement;
  15746. "source": HTMLSourceElement;
  15747. "span": HTMLSpanElement;
  15748. "strong": HTMLElement;
  15749. "style": HTMLStyleElement;
  15750. "sub": HTMLElement;
  15751. "summary": HTMLElement;
  15752. "sup": HTMLElement;
  15753. "table": HTMLTableElement;
  15754. "tbody": HTMLTableSectionElement;
  15755. "td": HTMLTableCellElement;
  15756. "template": HTMLTemplateElement;
  15757. "textarea": HTMLTextAreaElement;
  15758. "tfoot": HTMLTableSectionElement;
  15759. "th": HTMLTableCellElement;
  15760. "thead": HTMLTableSectionElement;
  15761. "time": HTMLTimeElement;
  15762. "title": HTMLTitleElement;
  15763. "tr": HTMLTableRowElement;
  15764. "track": HTMLTrackElement;
  15765. "u": HTMLElement;
  15766. "ul": HTMLUListElement;
  15767. "var": HTMLElement;
  15768. "video": HTMLVideoElement;
  15769. "wbr": HTMLElement;
  15770. }
  15771. interface HTMLElementDeprecatedTagNameMap {
  15772. "listing": HTMLPreElement;
  15773. "xmp": HTMLPreElement;
  15774. }
  15775. interface SVGElementTagNameMap {
  15776. "a": SVGAElement;
  15777. "animate": SVGAnimateElement;
  15778. "animateMotion": SVGAnimateMotionElement;
  15779. "animateTransform": SVGAnimateTransformElement;
  15780. "circle": SVGCircleElement;
  15781. "clipPath": SVGClipPathElement;
  15782. "defs": SVGDefsElement;
  15783. "desc": SVGDescElement;
  15784. "ellipse": SVGEllipseElement;
  15785. "feBlend": SVGFEBlendElement;
  15786. "feColorMatrix": SVGFEColorMatrixElement;
  15787. "feComponentTransfer": SVGFEComponentTransferElement;
  15788. "feComposite": SVGFECompositeElement;
  15789. "feConvolveMatrix": SVGFEConvolveMatrixElement;
  15790. "feDiffuseLighting": SVGFEDiffuseLightingElement;
  15791. "feDisplacementMap": SVGFEDisplacementMapElement;
  15792. "feDistantLight": SVGFEDistantLightElement;
  15793. "feDropShadow": SVGFEDropShadowElement;
  15794. "feFlood": SVGFEFloodElement;
  15795. "feFuncA": SVGFEFuncAElement;
  15796. "feFuncB": SVGFEFuncBElement;
  15797. "feFuncG": SVGFEFuncGElement;
  15798. "feFuncR": SVGFEFuncRElement;
  15799. "feGaussianBlur": SVGFEGaussianBlurElement;
  15800. "feImage": SVGFEImageElement;
  15801. "feMerge": SVGFEMergeElement;
  15802. "feMergeNode": SVGFEMergeNodeElement;
  15803. "feMorphology": SVGFEMorphologyElement;
  15804. "feOffset": SVGFEOffsetElement;
  15805. "fePointLight": SVGFEPointLightElement;
  15806. "feSpecularLighting": SVGFESpecularLightingElement;
  15807. "feSpotLight": SVGFESpotLightElement;
  15808. "feTile": SVGFETileElement;
  15809. "feTurbulence": SVGFETurbulenceElement;
  15810. "filter": SVGFilterElement;
  15811. "foreignObject": SVGForeignObjectElement;
  15812. "g": SVGGElement;
  15813. "image": SVGImageElement;
  15814. "line": SVGLineElement;
  15815. "linearGradient": SVGLinearGradientElement;
  15816. "marker": SVGMarkerElement;
  15817. "mask": SVGMaskElement;
  15818. "metadata": SVGMetadataElement;
  15819. "mpath": SVGMPathElement;
  15820. "path": SVGPathElement;
  15821. "pattern": SVGPatternElement;
  15822. "polygon": SVGPolygonElement;
  15823. "polyline": SVGPolylineElement;
  15824. "radialGradient": SVGRadialGradientElement;
  15825. "rect": SVGRectElement;
  15826. "script": SVGScriptElement;
  15827. "set": SVGSetElement;
  15828. "stop": SVGStopElement;
  15829. "style": SVGStyleElement;
  15830. "svg": SVGSVGElement;
  15831. "switch": SVGSwitchElement;
  15832. "symbol": SVGSymbolElement;
  15833. "text": SVGTextElement;
  15834. "textPath": SVGTextPathElement;
  15835. "title": SVGTitleElement;
  15836. "tspan": SVGTSpanElement;
  15837. "use": SVGUseElement;
  15838. "view": SVGViewElement;
  15839. }
  15840. /** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */
  15841. type ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>;
  15842. declare var Audio: {
  15843. new(src?: string): HTMLAudioElement;
  15844. };
  15845. declare var Image: {
  15846. new(width?: number, height?: number): HTMLImageElement;
  15847. };
  15848. declare var Option: {
  15849. new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;
  15850. };
  15851. /** @deprecated This is a legacy alias of \`navigator\`. */
  15852. declare var clientInformation: Navigator;
  15853. /** Returns true if the window has been closed, false otherwise. */
  15854. declare var closed: boolean;
  15855. /** Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. */
  15856. declare var customElements: CustomElementRegistry;
  15857. declare var devicePixelRatio: number;
  15858. declare var document: Document;
  15859. /** @deprecated */
  15860. declare var event: Event | undefined;
  15861. /** @deprecated */
  15862. declare var external: External;
  15863. declare var frameElement: Element | null;
  15864. declare var frames: WindowProxy;
  15865. declare var history: History;
  15866. declare var innerHeight: number;
  15867. declare var innerWidth: number;
  15868. declare var length: number;
  15869. declare var location: Location;
  15870. /** Returns true if the location bar is visible; otherwise, returns false. */
  15871. declare var locationbar: BarProp;
  15872. /** Returns true if the menu bar is visible; otherwise, returns false. */
  15873. declare var menubar: BarProp;
  15874. /** @deprecated */
  15875. declare const name: void;
  15876. declare var navigator: Navigator;
  15877. /** Available only in secure contexts. */
  15878. declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
  15879. /** Available only in secure contexts. */
  15880. declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
  15881. /** @deprecated */
  15882. declare var onorientationchange: ((this: Window, ev: Event) => any) | null;
  15883. declare var opener: any;
  15884. /** @deprecated */
  15885. declare var orientation: number;
  15886. declare var outerHeight: number;
  15887. declare var outerWidth: number;
  15888. /** @deprecated This is a legacy alias of \`scrollX\`. */
  15889. declare var pageXOffset: number;
  15890. /** @deprecated This is a legacy alias of \`scrollY\`. */
  15891. declare var pageYOffset: number;
  15892. /**
  15893. * Refers to either the parent WindowProxy, or itself.
  15894. *
  15895. * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
  15896. */
  15897. declare var parent: WindowProxy;
  15898. /** Returns true if the personal bar is visible; otherwise, returns false. */
  15899. declare var personalbar: BarProp;
  15900. declare var screen: Screen;
  15901. declare var screenLeft: number;
  15902. declare var screenTop: number;
  15903. declare var screenX: number;
  15904. declare var screenY: number;
  15905. declare var scrollX: number;
  15906. declare var scrollY: number;
  15907. /** Returns true if the scrollbars are visible; otherwise, returns false. */
  15908. declare var scrollbars: BarProp;
  15909. declare var self: Window & typeof globalThis;
  15910. declare var speechSynthesis: SpeechSynthesis;
  15911. /** @deprecated */
  15912. declare var status: string;
  15913. /** Returns true if the status bar is visible; otherwise, returns false. */
  15914. declare var statusbar: BarProp;
  15915. /** Returns true if the toolbar is visible; otherwise, returns false. */
  15916. declare var toolbar: BarProp;
  15917. declare var top: WindowProxy | null;
  15918. declare var visualViewport: VisualViewport;
  15919. declare var window: Window & typeof globalThis;
  15920. declare function alert(message?: any): void;
  15921. declare function blur(): void;
  15922. declare function cancelIdleCallback(handle: number): void;
  15923. /** @deprecated */
  15924. declare function captureEvents(): void;
  15925. /** Closes the window. */
  15926. declare function close(): void;
  15927. declare function confirm(message?: string): boolean;
  15928. /** Moves the focus to the window's browsing context, if any. */
  15929. declare function focus(): void;
  15930. declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
  15931. declare function getSelection(): Selection | null;
  15932. declare function matchMedia(query: string): MediaQueryList;
  15933. declare function moveBy(x: number, y: number): void;
  15934. declare function moveTo(x: number, y: number): void;
  15935. declare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
  15936. /**
  15937. * 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.
  15938. *
  15939. * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
  15940. *
  15941. * 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.
  15942. *
  15943. * 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 "*".
  15944. *
  15945. * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
  15946. */
  15947. declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
  15948. declare function postMessage(message: any, options?: WindowPostMessageOptions): void;
  15949. declare function print(): void;
  15950. declare function prompt(message?: string, _default?: string): string | null;
  15951. /** @deprecated */
  15952. declare function releaseEvents(): void;
  15953. declare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
  15954. declare function resizeBy(x: number, y: number): void;
  15955. declare function resizeTo(width: number, height: number): void;
  15956. declare function scroll(options?: ScrollToOptions): void;
  15957. declare function scroll(x: number, y: number): void;
  15958. declare function scrollBy(options?: ScrollToOptions): void;
  15959. declare function scrollBy(x: number, y: number): void;
  15960. declare function scrollTo(options?: ScrollToOptions): void;
  15961. declare function scrollTo(x: number, y: number): void;
  15962. /** Cancels the document load. */
  15963. declare function stop(): void;
  15964. declare function toString(): string;
  15965. /** 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. */
  15966. declare function dispatchEvent(event: Event): boolean;
  15967. declare function cancelAnimationFrame(handle: number): void;
  15968. declare function requestAnimationFrame(callback: FrameRequestCallback): number;
  15969. /**
  15970. * Fires when the user aborts the download.
  15971. * @param ev The event.
  15972. */
  15973. declare var onabort: ((this: Window, ev: UIEvent) => any) | null;
  15974. declare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null;
  15975. declare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;
  15976. declare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;
  15977. declare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;
  15978. declare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null;
  15979. /**
  15980. * Fires when the object loses the input focus.
  15981. * @param ev The focus event.
  15982. */
  15983. declare var onblur: ((this: Window, ev: FocusEvent) => any) | null;
  15984. /**
  15985. * Occurs when playback is possible, but would require further buffering.
  15986. * @param ev The event.
  15987. */
  15988. declare var oncanplay: ((this: Window, ev: Event) => any) | null;
  15989. declare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;
  15990. /**
  15991. * Fires when the contents of the object or selection have changed.
  15992. * @param ev The event.
  15993. */
  15994. declare var onchange: ((this: Window, ev: Event) => any) | null;
  15995. /**
  15996. * Fires when the user clicks the left mouse button on the object
  15997. * @param ev The mouse event.
  15998. */
  15999. declare var onclick: ((this: Window, ev: MouseEvent) => any) | null;
  16000. declare var onclose: ((this: Window, ev: Event) => any) | null;
  16001. /**
  16002. * Fires when the user clicks the right mouse button in the client area, opening the context menu.
  16003. * @param ev The mouse event.
  16004. */
  16005. declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
  16006. declare var oncuechange: ((this: Window, ev: Event) => any) | null;
  16007. /**
  16008. * Fires when the user double-clicks the object.
  16009. * @param ev The mouse event.
  16010. */
  16011. declare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;
  16012. /**
  16013. * Fires on the source object continuously during a drag operation.
  16014. * @param ev The event.
  16015. */
  16016. declare var ondrag: ((this: Window, ev: DragEvent) => any) | null;
  16017. /**
  16018. * Fires on the source object when the user releases the mouse at the close of a drag operation.
  16019. * @param ev The event.
  16020. */
  16021. declare var ondragend: ((this: Window, ev: DragEvent) => any) | null;
  16022. /**
  16023. * Fires on the target element when the user drags the object to a valid drop target.
  16024. * @param ev The drag event.
  16025. */
  16026. declare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;
  16027. /**
  16028. * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
  16029. * @param ev The drag event.
  16030. */
  16031. declare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;
  16032. /**
  16033. * Fires on the target element continuously while the user drags the object over a valid drop target.
  16034. * @param ev The event.
  16035. */
  16036. declare var ondragover: ((this: Window, ev: DragEvent) => any) | null;
  16037. /**
  16038. * Fires on the source object when the user starts to drag a text selection or selected object.
  16039. * @param ev The event.
  16040. */
  16041. declare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;
  16042. declare var ondrop: ((this: Window, ev: DragEvent) => any) | null;
  16043. /**
  16044. * Occurs when the duration attribute is updated.
  16045. * @param ev The event.
  16046. */
  16047. declare var ondurationchange: ((this: Window, ev: Event) => any) | null;
  16048. /**
  16049. * Occurs when the media element is reset to its initial state.
  16050. * @param ev The event.
  16051. */
  16052. declare var onemptied: ((this: Window, ev: Event) => any) | null;
  16053. /**
  16054. * Occurs when the end of playback is reached.
  16055. * @param ev The event
  16056. */
  16057. declare var onended: ((this: Window, ev: Event) => any) | null;
  16058. /**
  16059. * Fires when an error occurs during object loading.
  16060. * @param ev The event.
  16061. */
  16062. declare var onerror: OnErrorEventHandler;
  16063. /**
  16064. * Fires when the object receives focus.
  16065. * @param ev The event.
  16066. */
  16067. declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;
  16068. declare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null;
  16069. declare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
  16070. declare var oninput: ((this: Window, ev: Event) => any) | null;
  16071. declare var oninvalid: ((this: Window, ev: Event) => any) | null;
  16072. /**
  16073. * Fires when the user presses a key.
  16074. * @param ev The keyboard event
  16075. */
  16076. declare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;
  16077. /**
  16078. * Fires when the user presses an alphanumeric key.
  16079. * @param ev The event.
  16080. * @deprecated
  16081. */
  16082. declare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;
  16083. /**
  16084. * Fires when the user releases a key.
  16085. * @param ev The keyboard event
  16086. */
  16087. declare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;
  16088. /**
  16089. * Fires immediately after the browser loads the object.
  16090. * @param ev The event.
  16091. */
  16092. declare var onload: ((this: Window, ev: Event) => any) | null;
  16093. /**
  16094. * Occurs when media data is loaded at the current playback position.
  16095. * @param ev The event.
  16096. */
  16097. declare var onloadeddata: ((this: Window, ev: Event) => any) | null;
  16098. /**
  16099. * Occurs when the duration and dimensions of the media have been determined.
  16100. * @param ev The event.
  16101. */
  16102. declare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;
  16103. /**
  16104. * Occurs when Internet Explorer begins looking for media data.
  16105. * @param ev The event.
  16106. */
  16107. declare var onloadstart: ((this: Window, ev: Event) => any) | null;
  16108. declare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
  16109. /**
  16110. * Fires when the user clicks the object with either mouse button.
  16111. * @param ev The mouse event.
  16112. */
  16113. declare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null;
  16114. declare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;
  16115. declare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;
  16116. /**
  16117. * Fires when the user moves the mouse over the object.
  16118. * @param ev The mouse event.
  16119. */
  16120. declare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;
  16121. /**
  16122. * Fires when the user moves the mouse pointer outside the boundaries of the object.
  16123. * @param ev The mouse event.
  16124. */
  16125. declare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;
  16126. /**
  16127. * Fires when the user moves the mouse pointer into the object.
  16128. * @param ev The mouse event.
  16129. */
  16130. declare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;
  16131. /**
  16132. * Fires when the user releases a mouse button while the mouse is over the object.
  16133. * @param ev The mouse event.
  16134. */
  16135. declare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;
  16136. /**
  16137. * Occurs when playback is paused.
  16138. * @param ev The event.
  16139. */
  16140. declare var onpause: ((this: Window, ev: Event) => any) | null;
  16141. /**
  16142. * Occurs when the play method is requested.
  16143. * @param ev The event.
  16144. */
  16145. declare var onplay: ((this: Window, ev: Event) => any) | null;
  16146. /**
  16147. * Occurs when the audio or video has started playing.
  16148. * @param ev The event.
  16149. */
  16150. declare var onplaying: ((this: Window, ev: Event) => any) | null;
  16151. declare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null;
  16152. declare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null;
  16153. declare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null;
  16154. declare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null;
  16155. declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;
  16156. declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;
  16157. declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;
  16158. declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;
  16159. /**
  16160. * Occurs to indicate progress while downloading media data.
  16161. * @param ev The event.
  16162. */
  16163. declare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;
  16164. /**
  16165. * Occurs when the playback rate is increased or decreased.
  16166. * @param ev The event.
  16167. */
  16168. declare var onratechange: ((this: Window, ev: Event) => any) | null;
  16169. /**
  16170. * Fires when the user resets a form.
  16171. * @param ev The event.
  16172. */
  16173. declare var onreset: ((this: Window, ev: Event) => any) | null;
  16174. declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
  16175. /**
  16176. * Fires when the user repositions the scroll box in the scroll bar on the object.
  16177. * @param ev The event.
  16178. */
  16179. declare var onscroll: ((this: Window, ev: Event) => any) | null;
  16180. /**
  16181. * Occurs when the seek operation ends.
  16182. * @param ev The event.
  16183. */
  16184. declare var onseeked: ((this: Window, ev: Event) => any) | null;
  16185. /**
  16186. * Occurs when the current playback position is moved.
  16187. * @param ev The event.
  16188. */
  16189. declare var onseeking: ((this: Window, ev: Event) => any) | null;
  16190. /**
  16191. * Fires when the current selection changes.
  16192. * @param ev The event.
  16193. */
  16194. declare var onselect: ((this: Window, ev: Event) => any) | null;
  16195. declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
  16196. declare var onselectstart: ((this: Window, ev: Event) => any) | null;
  16197. /**
  16198. * Occurs when the download has stopped.
  16199. * @param ev The event.
  16200. */
  16201. declare var onstalled: ((this: Window, ev: Event) => any) | null;
  16202. declare var onsubmit: ((this: Window, ev: SubmitEvent) => any) | null;
  16203. /**
  16204. * Occurs if the load operation has been intentionally halted.
  16205. * @param ev The event.
  16206. */
  16207. declare var onsuspend: ((this: Window, ev: Event) => any) | null;
  16208. /**
  16209. * Occurs to indicate the current playback position.
  16210. * @param ev The event.
  16211. */
  16212. declare var ontimeupdate: ((this: Window, ev: Event) => any) | null;
  16213. declare var ontoggle: ((this: Window, ev: Event) => any) | null;
  16214. declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;
  16215. declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined;
  16216. declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined;
  16217. declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined;
  16218. declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;
  16219. declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;
  16220. declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;
  16221. declare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null;
  16222. /**
  16223. * Occurs when the volume is changed, or playback is muted or unmuted.
  16224. * @param ev The event.
  16225. */
  16226. declare var onvolumechange: ((this: Window, ev: Event) => any) | null;
  16227. /**
  16228. * Occurs when playback stops because the next frame of a video resource is not available.
  16229. * @param ev The event.
  16230. */
  16231. declare var onwaiting: ((this: Window, ev: Event) => any) | null;
  16232. /** @deprecated This is a legacy alias of \`onanimationend\`. */
  16233. declare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;
  16234. /** @deprecated This is a legacy alias of \`onanimationiteration\`. */
  16235. declare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;
  16236. /** @deprecated This is a legacy alias of \`onanimationstart\`. */
  16237. declare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;
  16238. /** @deprecated This is a legacy alias of \`ontransitionend\`. */
  16239. declare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;
  16240. declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;
  16241. declare var onafterprint: ((this: Window, ev: Event) => any) | null;
  16242. declare var onbeforeprint: ((this: Window, ev: Event) => any) | null;
  16243. declare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;
  16244. declare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null;
  16245. declare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null;
  16246. declare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;
  16247. declare var onlanguagechange: ((this: Window, ev: Event) => any) | null;
  16248. declare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;
  16249. declare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;
  16250. declare var onoffline: ((this: Window, ev: Event) => any) | null;
  16251. declare var ononline: ((this: Window, ev: Event) => any) | null;
  16252. declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
  16253. declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
  16254. declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;
  16255. declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
  16256. declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
  16257. declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
  16258. declare var onunload: ((this: Window, ev: Event) => any) | null;
  16259. declare var localStorage: Storage;
  16260. /** Available only in secure contexts. */
  16261. declare var caches: CacheStorage;
  16262. declare var crossOriginIsolated: boolean;
  16263. declare var crypto: Crypto;
  16264. declare var indexedDB: IDBFactory;
  16265. declare var isSecureContext: boolean;
  16266. declare var origin: string;
  16267. declare var performance: Performance;
  16268. declare function atob(data: string): string;
  16269. declare function btoa(data: string): string;
  16270. declare function clearInterval(handle?: number): void;
  16271. declare function clearTimeout(handle?: number): void;
  16272. declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
  16273. declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
  16274. declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
  16275. declare function queueMicrotask(callback: VoidFunction): void;
  16276. declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
  16277. declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
  16278. declare var sessionStorage: Storage;
  16279. declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  16280. declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  16281. declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  16282. declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  16283. type AlgorithmIdentifier = Algorithm | string;
  16284. type BigInteger = Uint8Array;
  16285. type BinaryData = ArrayBuffer | ArrayBufferView;
  16286. type BlobPart = BufferSource | Blob | string;
  16287. type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
  16288. type BufferSource = ArrayBufferView | ArrayBuffer;
  16289. type COSEAlgorithmIdentifier = number;
  16290. type CSSNumberish = number;
  16291. type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap;
  16292. type ClipboardItemData = Promise<ClipboardItemDataType>;
  16293. type ClipboardItemDataType = string | Blob;
  16294. type ClipboardItems = ClipboardItem[];
  16295. type ConstrainBoolean = boolean | ConstrainBooleanParameters;
  16296. type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
  16297. type ConstrainDouble = number | ConstrainDoubleRange;
  16298. type ConstrainULong = number | ConstrainULongRange;
  16299. type DOMHighResTimeStamp = number;
  16300. type DOMTimeStamp = number;
  16301. type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
  16302. type Float32List = Float32Array | GLfloat[];
  16303. type FormDataEntryValue = File | string;
  16304. type GLbitfield = number;
  16305. type GLboolean = boolean;
  16306. type GLclampf = number;
  16307. type GLenum = number;
  16308. type GLfloat = number;
  16309. type GLint = number;
  16310. type GLint64 = number;
  16311. type GLintptr = number;
  16312. type GLsizei = number;
  16313. type GLsizeiptr = number;
  16314. type GLuint = number;
  16315. type GLuint64 = number;
  16316. type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
  16317. type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
  16318. type HashAlgorithmIdentifier = AlgorithmIdentifier;
  16319. type HeadersInit = string[][] | Record<string, string> | Headers;
  16320. type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
  16321. type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
  16322. type InsertPosition = "beforebegin" | "afterbegin" | "beforeend" | "afterend";
  16323. type Int32List = Int32Array | GLint[];
  16324. type LineAndPositionSetting = number | AutoKeyword;
  16325. type MediaProvider = MediaStream | MediaSource | Blob;
  16326. type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
  16327. type MutationRecordType = "attributes" | "characterData" | "childList";
  16328. type NamedCurve = string;
  16329. type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
  16330. type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
  16331. type PerformanceEntryList = PerformanceEntry[];
  16332. type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
  16333. type ReadableStreamDefaultReadResult<T> = ReadableStreamDefaultReadValueResult<T> | ReadableStreamDefaultReadDoneResult;
  16334. type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
  16335. type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
  16336. type RequestInfo = Request | string;
  16337. type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;
  16338. type TimerHandler = string | Function;
  16339. type Transferable = ArrayBuffer | MessagePort | ImageBitmap;
  16340. type Uint32List = Uint32Array | GLuint[];
  16341. type UvmEntries = UvmEntry[];
  16342. type UvmEntry = number[];
  16343. type VibratePattern = number | number[];
  16344. type WindowProxy = Window;
  16345. type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
  16346. type AlignSetting = "center" | "end" | "left" | "right" | "start";
  16347. type AnimationPlayState = "finished" | "idle" | "paused" | "running";
  16348. type AnimationReplaceState = "active" | "persisted" | "removed";
  16349. type AppendMode = "segments" | "sequence";
  16350. type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";
  16351. type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
  16352. type AudioContextState = "closed" | "running" | "suspended";
  16353. type AuthenticatorAttachment = "cross-platform" | "platform";
  16354. type AuthenticatorTransport = "ble" | "internal" | "nfc" | "usb";
  16355. type AutoKeyword = "auto";
  16356. type AutomationRate = "a-rate" | "k-rate";
  16357. type BinaryType = "arraybuffer" | "blob";
  16358. type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";
  16359. type CanPlayTypeResult = "" | "maybe" | "probably";
  16360. type CanvasDirection = "inherit" | "ltr" | "rtl";
  16361. type CanvasFillRule = "evenodd" | "nonzero";
  16362. type CanvasFontKerning = "auto" | "none" | "normal";
  16363. type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";
  16364. type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";
  16365. type CanvasLineCap = "butt" | "round" | "square";
  16366. type CanvasLineJoin = "bevel" | "miter" | "round";
  16367. type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
  16368. type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
  16369. type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
  16370. type ChannelCountMode = "clamped-max" | "explicit" | "max";
  16371. type ChannelInterpretation = "discrete" | "speakers";
  16372. type ClientTypes = "all" | "sharedworker" | "window" | "worker";
  16373. type ColorGamut = "p3" | "rec2020" | "srgb";
  16374. type ColorSpaceConversion = "default" | "none";
  16375. type CompositeOperation = "accumulate" | "add" | "replace";
  16376. type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";
  16377. type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
  16378. type CredentialMediationRequirement = "optional" | "required" | "silent";
  16379. type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml";
  16380. type DirectionSetting = "" | "lr" | "rl";
  16381. type DisplayCaptureSurfaceType = "application" | "browser" | "monitor" | "window";
  16382. type DistanceModelType = "exponential" | "inverse" | "linear";
  16383. type DocumentReadyState = "complete" | "interactive" | "loading";
  16384. type EndOfStreamError = "decode" | "network";
  16385. type EndingType = "native" | "transparent";
  16386. type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
  16387. type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
  16388. type FontFaceSetLoadStatus = "loaded" | "loading";
  16389. type FullscreenNavigationUI = "auto" | "hide" | "show";
  16390. type GamepadHapticActuatorType = "vibration";
  16391. type GamepadMappingType = "" | "standard" | "xr-standard";
  16392. type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
  16393. type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
  16394. type IDBRequestReadyState = "done" | "pending";
  16395. type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
  16396. type ImageOrientation = "flipY" | "none";
  16397. type ImageSmoothingQuality = "high" | "low" | "medium";
  16398. type IterationCompositeOperation = "accumulate" | "replace";
  16399. type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
  16400. type KeyType = "private" | "public" | "secret";
  16401. type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
  16402. type LineAlignSetting = "center" | "end" | "start";
  16403. type MediaDecodingType = "file" | "media-source" | "webrtc";
  16404. type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
  16405. type MediaEncodingType = "record" | "webrtc";
  16406. type MediaKeyMessageType = "individualization-request" | "license-release" | "license-renewal" | "license-request";
  16407. type MediaKeySessionClosedReason = "closed-by-application" | "hardware-context-reset" | "internal-error" | "release-acknowledged" | "resource-evicted";
  16408. type MediaKeySessionType = "persistent-license" | "temporary";
  16409. type MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future";
  16410. type MediaKeysRequirement = "not-allowed" | "optional" | "required";
  16411. type MediaSessionAction = "hangup" | "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop" | "togglecamera" | "togglemicrophone";
  16412. type MediaSessionPlaybackState = "none" | "paused" | "playing";
  16413. type MediaStreamTrackState = "ended" | "live";
  16414. type NavigationType = "back_forward" | "navigate" | "prerender" | "reload";
  16415. type NotificationDirection = "auto" | "ltr" | "rtl";
  16416. type NotificationPermission = "default" | "denied" | "granted";
  16417. type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
  16418. type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
  16419. type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
  16420. type OverSampleType = "2x" | "4x" | "none";
  16421. type PanningModelType = "HRTF" | "equalpower";
  16422. type PaymentComplete = "fail" | "success" | "unknown";
  16423. type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
  16424. type PermissionState = "denied" | "granted" | "prompt";
  16425. type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
  16426. type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";
  16427. type PredefinedColorSpace = "display-p3" | "srgb";
  16428. type PremultiplyAlpha = "default" | "none" | "premultiply";
  16429. type PresentationStyle = "attachment" | "inline" | "unspecified";
  16430. type PublicKeyCredentialType = "public-key";
  16431. type PushEncryptionKeyName = "auth" | "p256dh";
  16432. type PushPermissionState = "denied" | "granted" | "prompt";
  16433. type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";
  16434. type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
  16435. type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";
  16436. type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";
  16437. type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";
  16438. type RTCIceComponent = "rtcp" | "rtp";
  16439. type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
  16440. type RTCIceCredentialType = "password";
  16441. type RTCIceGathererState = "complete" | "gathering" | "new";
  16442. type RTCIceGatheringState = "complete" | "gathering" | "new";
  16443. type RTCIceProtocol = "tcp" | "udp";
  16444. type RTCIceTcpCandidateType = "active" | "passive" | "so";
  16445. type RTCIceTransportPolicy = "all" | "relay";
  16446. type RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
  16447. type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new";
  16448. type RTCPriorityType = "high" | "low" | "medium" | "very-low";
  16449. type RTCRtcpMuxPolicy = "require";
  16450. type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped";
  16451. type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
  16452. type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";
  16453. type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";
  16454. type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "csrc" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "track" | "transport";
  16455. type ReadyState = "closed" | "ended" | "open";
  16456. type RecordingState = "inactive" | "paused" | "recording";
  16457. type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
  16458. type RemotePlaybackState = "connected" | "connecting" | "disconnected";
  16459. type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
  16460. type RequestCredentials = "include" | "omit" | "same-origin";
  16461. type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
  16462. type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
  16463. type RequestRedirect = "error" | "follow" | "manual";
  16464. type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
  16465. type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box";
  16466. type ResizeQuality = "high" | "low" | "medium" | "pixelated";
  16467. type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
  16468. type ScrollBehavior = "auto" | "smooth";
  16469. type ScrollLogicalPosition = "center" | "end" | "nearest" | "start";
  16470. type ScrollRestoration = "auto" | "manual";
  16471. type ScrollSetting = "" | "up";
  16472. type SecurityPolicyViolationEventDisposition = "enforce" | "report";
  16473. type SelectionMode = "end" | "preserve" | "select" | "start";
  16474. type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
  16475. type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
  16476. type ShadowRootMode = "closed" | "open";
  16477. type SlotAssignmentMode = "manual" | "named";
  16478. type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable";
  16479. type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";
  16480. type TextTrackMode = "disabled" | "hidden" | "showing";
  16481. type TouchType = "direct" | "stylus";
  16482. type TransferFunction = "hlg" | "pq" | "srgb";
  16483. type UserVerificationRequirement = "discouraged" | "preferred" | "required";
  16484. type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
  16485. type VisibilityState = "hidden" | "visible";
  16486. type WebGLPowerPreference = "default" | "high-performance" | "low-power";
  16487. type WorkerType = "classic" | "module";
  16488. type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
  16489. `,Oi["lib.dom.iterable.d.ts"]=`/*! *****************************************************************************
  16490. Copyright (c) Microsoft Corporation. All rights reserved.
  16491. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  16492. this file except in compliance with the License. You may obtain a copy of the
  16493. License at http://www.apache.org/licenses/LICENSE-2.0
  16494. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16495. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  16496. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  16497. MERCHANTABLITY OR NON-INFRINGEMENT.
  16498. See the Apache Version 2.0 License for specific language governing permissions
  16499. and limitations under the License.
  16500. ***************************************************************************** */
  16501. /// <reference no-default-lib="true"/>
  16502. /////////////////////////////
  16503. /// Window Iterable APIs
  16504. /////////////////////////////
  16505. interface AudioParam {
  16506. setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
  16507. }
  16508. interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
  16509. }
  16510. interface BaseAudioContext {
  16511. createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
  16512. createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
  16513. }
  16514. interface CSSRuleList {
  16515. [Symbol.iterator](): IterableIterator<CSSRule>;
  16516. }
  16517. interface CSSStyleDeclaration {
  16518. [Symbol.iterator](): IterableIterator<string>;
  16519. }
  16520. interface Cache {
  16521. addAll(requests: Iterable<RequestInfo>): Promise<void>;
  16522. }
  16523. interface CanvasPathDrawingStyles {
  16524. setLineDash(segments: Iterable<number>): void;
  16525. }
  16526. interface DOMRectList {
  16527. [Symbol.iterator](): IterableIterator<DOMRect>;
  16528. }
  16529. interface DOMStringList {
  16530. [Symbol.iterator](): IterableIterator<string>;
  16531. }
  16532. interface DOMTokenList {
  16533. [Symbol.iterator](): IterableIterator<string>;
  16534. entries(): IterableIterator<[number, string]>;
  16535. keys(): IterableIterator<number>;
  16536. values(): IterableIterator<string>;
  16537. }
  16538. interface DataTransferItemList {
  16539. [Symbol.iterator](): IterableIterator<DataTransferItem>;
  16540. }
  16541. interface FileList {
  16542. [Symbol.iterator](): IterableIterator<File>;
  16543. }
  16544. interface FontFaceSet extends Set<FontFace> {
  16545. }
  16546. interface FormData {
  16547. [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
  16548. /** Returns an array of key, value pairs for every entry in the list. */
  16549. entries(): IterableIterator<[string, FormDataEntryValue]>;
  16550. /** Returns a list of keys in the list. */
  16551. keys(): IterableIterator<string>;
  16552. /** Returns a list of values in the list. */
  16553. values(): IterableIterator<FormDataEntryValue>;
  16554. }
  16555. interface HTMLAllCollection {
  16556. [Symbol.iterator](): IterableIterator<Element>;
  16557. }
  16558. interface HTMLCollectionBase {
  16559. [Symbol.iterator](): IterableIterator<Element>;
  16560. }
  16561. interface HTMLCollectionOf<T extends Element> {
  16562. [Symbol.iterator](): IterableIterator<T>;
  16563. }
  16564. interface HTMLFormElement {
  16565. [Symbol.iterator](): IterableIterator<Element>;
  16566. }
  16567. interface HTMLSelectElement {
  16568. [Symbol.iterator](): IterableIterator<HTMLOptionElement>;
  16569. }
  16570. interface Headers {
  16571. [Symbol.iterator](): IterableIterator<[string, string]>;
  16572. /** Returns an iterator allowing to go through all key/value pairs contained in this object. */
  16573. entries(): IterableIterator<[string, string]>;
  16574. /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
  16575. keys(): IterableIterator<string>;
  16576. /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
  16577. values(): IterableIterator<string>;
  16578. }
  16579. interface IDBDatabase {
  16580. /** 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. */
  16581. transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
  16582. }
  16583. interface IDBObjectStore {
  16584. /**
  16585. * 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.
  16586. *
  16587. * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
  16588. */
  16589. createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
  16590. }
  16591. interface MediaKeyStatusMap {
  16592. [Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;
  16593. entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;
  16594. keys(): IterableIterator<BufferSource>;
  16595. values(): IterableIterator<MediaKeyStatus>;
  16596. }
  16597. interface MediaList {
  16598. [Symbol.iterator](): IterableIterator<string>;
  16599. }
  16600. interface MessageEvent<T = any> {
  16601. /** @deprecated */
  16602. initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
  16603. }
  16604. interface MimeTypeArray {
  16605. [Symbol.iterator](): IterableIterator<MimeType>;
  16606. }
  16607. interface NamedNodeMap {
  16608. [Symbol.iterator](): IterableIterator<Attr>;
  16609. }
  16610. interface Navigator {
  16611. /** Available only in secure contexts. */
  16612. requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
  16613. vibrate(pattern: Iterable<number>): boolean;
  16614. }
  16615. interface NodeList {
  16616. [Symbol.iterator](): IterableIterator<Node>;
  16617. /** Returns an array of key, value pairs for every entry in the list. */
  16618. entries(): IterableIterator<[number, Node]>;
  16619. /** Returns an list of keys in the list. */
  16620. keys(): IterableIterator<number>;
  16621. /** Returns an list of values in the list. */
  16622. values(): IterableIterator<Node>;
  16623. }
  16624. interface NodeListOf<TNode extends Node> {
  16625. [Symbol.iterator](): IterableIterator<TNode>;
  16626. /** Returns an array of key, value pairs for every entry in the list. */
  16627. entries(): IterableIterator<[number, TNode]>;
  16628. /** Returns an list of keys in the list. */
  16629. keys(): IterableIterator<number>;
  16630. /** Returns an list of values in the list. */
  16631. values(): IterableIterator<TNode>;
  16632. }
  16633. interface Plugin {
  16634. [Symbol.iterator](): IterableIterator<MimeType>;
  16635. }
  16636. interface PluginArray {
  16637. [Symbol.iterator](): IterableIterator<Plugin>;
  16638. }
  16639. interface RTCStatsReport extends ReadonlyMap<string, any> {
  16640. }
  16641. interface SVGLengthList {
  16642. [Symbol.iterator](): IterableIterator<SVGLength>;
  16643. }
  16644. interface SVGNumberList {
  16645. [Symbol.iterator](): IterableIterator<SVGNumber>;
  16646. }
  16647. interface SVGPointList {
  16648. [Symbol.iterator](): IterableIterator<DOMPoint>;
  16649. }
  16650. interface SVGStringList {
  16651. [Symbol.iterator](): IterableIterator<string>;
  16652. }
  16653. interface SVGTransformList {
  16654. [Symbol.iterator](): IterableIterator<SVGTransform>;
  16655. }
  16656. interface SourceBufferList {
  16657. [Symbol.iterator](): IterableIterator<SourceBuffer>;
  16658. }
  16659. interface SpeechRecognitionResult {
  16660. [Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;
  16661. }
  16662. interface SpeechRecognitionResultList {
  16663. [Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;
  16664. }
  16665. interface StyleSheetList {
  16666. [Symbol.iterator](): IterableIterator<CSSStyleSheet>;
  16667. }
  16668. interface SubtleCrypto {
  16669. deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
  16670. generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
  16671. generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
  16672. generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
  16673. importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
  16674. importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
  16675. 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>;
  16676. }
  16677. interface TextTrackCueList {
  16678. [Symbol.iterator](): IterableIterator<TextTrackCue>;
  16679. }
  16680. interface TextTrackList {
  16681. [Symbol.iterator](): IterableIterator<TextTrack>;
  16682. }
  16683. interface TouchList {
  16684. [Symbol.iterator](): IterableIterator<Touch>;
  16685. }
  16686. interface URLSearchParams {
  16687. [Symbol.iterator](): IterableIterator<[string, string]>;
  16688. /** Returns an array of key, value pairs for every entry in the search params. */
  16689. entries(): IterableIterator<[string, string]>;
  16690. /** Returns a list of keys in the search params. */
  16691. keys(): IterableIterator<string>;
  16692. /** Returns a list of values in the search params. */
  16693. values(): IterableIterator<string>;
  16694. }
  16695. interface WEBGL_draw_buffers {
  16696. drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
  16697. }
  16698. interface WebGL2RenderingContextBase {
  16699. clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
  16700. clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
  16701. clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
  16702. drawBuffers(buffers: Iterable<GLenum>): void;
  16703. getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
  16704. getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
  16705. invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
  16706. invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
  16707. transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
  16708. uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
  16709. uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
  16710. uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
  16711. uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
  16712. uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  16713. uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  16714. uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  16715. uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  16716. uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  16717. uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  16718. vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
  16719. vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
  16720. }
  16721. interface WebGL2RenderingContextOverloads {
  16722. uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  16723. uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
  16724. uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  16725. uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
  16726. uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  16727. uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
  16728. uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  16729. uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
  16730. uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  16731. uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  16732. uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  16733. }
  16734. interface WebGLRenderingContextBase {
  16735. vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
  16736. vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
  16737. vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
  16738. vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
  16739. }
  16740. interface WebGLRenderingContextOverloads {
  16741. uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
  16742. uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
  16743. uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
  16744. uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
  16745. uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
  16746. uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
  16747. uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
  16748. uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
  16749. uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
  16750. uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
  16751. uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
  16752. }
  16753. `,Oi["lib.es2015.collection.d.ts"]=`/*! *****************************************************************************
  16754. Copyright (c) Microsoft Corporation. All rights reserved.
  16755. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  16756. this file except in compliance with the License. You may obtain a copy of the
  16757. License at http://www.apache.org/licenses/LICENSE-2.0
  16758. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16759. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  16760. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  16761. MERCHANTABLITY OR NON-INFRINGEMENT.
  16762. See the Apache Version 2.0 License for specific language governing permissions
  16763. and limitations under the License.
  16764. ***************************************************************************** */
  16765. /// <reference no-default-lib="true"/>
  16766. interface Map<K, V> {
  16767. clear(): void;
  16768. delete(key: K): boolean;
  16769. forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;
  16770. get(key: K): V | undefined;
  16771. has(key: K): boolean;
  16772. set(key: K, value: V): this;
  16773. readonly size: number;
  16774. }
  16775. interface MapConstructor {
  16776. new(): Map<any, any>;
  16777. new<K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
  16778. readonly prototype: Map<any, any>;
  16779. }
  16780. declare var Map: MapConstructor;
  16781. interface ReadonlyMap<K, V> {
  16782. forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;
  16783. get(key: K): V | undefined;
  16784. has(key: K): boolean;
  16785. readonly size: number;
  16786. }
  16787. interface WeakMap<K extends object, V> {
  16788. delete(key: K): boolean;
  16789. get(key: K): V | undefined;
  16790. has(key: K): boolean;
  16791. set(key: K, value: V): this;
  16792. }
  16793. interface WeakMapConstructor {
  16794. new <K extends object = object, V = any>(entries?: readonly [K, V][] | null): WeakMap<K, V>;
  16795. readonly prototype: WeakMap<object, any>;
  16796. }
  16797. declare var WeakMap: WeakMapConstructor;
  16798. interface Set<T> {
  16799. add(value: T): this;
  16800. clear(): void;
  16801. delete(value: T): boolean;
  16802. forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;
  16803. has(value: T): boolean;
  16804. readonly size: number;
  16805. }
  16806. interface SetConstructor {
  16807. new <T = any>(values?: readonly T[] | null): Set<T>;
  16808. readonly prototype: Set<any>;
  16809. }
  16810. declare var Set: SetConstructor;
  16811. interface ReadonlySet<T> {
  16812. forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
  16813. has(value: T): boolean;
  16814. readonly size: number;
  16815. }
  16816. interface WeakSet<T extends object> {
  16817. add(value: T): this;
  16818. delete(value: T): boolean;
  16819. has(value: T): boolean;
  16820. }
  16821. interface WeakSetConstructor {
  16822. new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>;
  16823. readonly prototype: WeakSet<object>;
  16824. }
  16825. declare var WeakSet: WeakSetConstructor;
  16826. `,Oi["lib.es2015.core.d.ts"]=`/*! *****************************************************************************
  16827. Copyright (c) Microsoft Corporation. All rights reserved.
  16828. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  16829. this file except in compliance with the License. You may obtain a copy of the
  16830. License at http://www.apache.org/licenses/LICENSE-2.0
  16831. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16832. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  16833. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  16834. MERCHANTABLITY OR NON-INFRINGEMENT.
  16835. See the Apache Version 2.0 License for specific language governing permissions
  16836. and limitations under the License.
  16837. ***************************************************************************** */
  16838. /// <reference no-default-lib="true"/>
  16839. interface Array<T> {
  16840. /**
  16841. * Returns the value of the first element in the array where predicate is true, and undefined
  16842. * otherwise.
  16843. * @param predicate find calls predicate once for each element of the array, in ascending
  16844. * order, until it finds one where predicate returns true. If such an element is found, find
  16845. * immediately returns that element value. Otherwise, find returns undefined.
  16846. * @param thisArg If provided, it will be used as the this value for each invocation of
  16847. * predicate. If it is not provided, undefined is used instead.
  16848. */
  16849. find<S extends T>(predicate: (this: void, value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined;
  16850. find(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined;
  16851. /**
  16852. * Returns the index of the first element in the array where predicate is true, and -1
  16853. * otherwise.
  16854. * @param predicate find calls predicate once for each element of the array, in ascending
  16855. * order, until it finds one where predicate returns true. If such an element is found,
  16856. * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
  16857. * @param thisArg If provided, it will be used as the this value for each invocation of
  16858. * predicate. If it is not provided, undefined is used instead.
  16859. */
  16860. findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;
  16861. /**
  16862. * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
  16863. * @param value value to fill array section with
  16864. * @param start index to start filling the array at. If start is negative, it is treated as
  16865. * length+start where length is the length of the array.
  16866. * @param end index to stop filling the array at. If end is negative, it is treated as
  16867. * length+end.
  16868. */
  16869. fill(value: T, start?: number, end?: number): this;
  16870. /**
  16871. * Returns the this object after copying a section of the array identified by start and end
  16872. * to the same array starting at position target
  16873. * @param target If target is negative, it is treated as length+target where length is the
  16874. * length of the array.
  16875. * @param start If start is negative, it is treated as length+start. If end is negative, it
  16876. * is treated as length+end.
  16877. * @param end If not specified, length of the this object is used as its default value.
  16878. */
  16879. copyWithin(target: number, start: number, end?: number): this;
  16880. }
  16881. interface ArrayConstructor {
  16882. /**
  16883. * Creates an array from an array-like object.
  16884. * @param arrayLike An array-like object to convert to an array.
  16885. */
  16886. from<T>(arrayLike: ArrayLike<T>): T[];
  16887. /**
  16888. * Creates an array from an iterable object.
  16889. * @param arrayLike An array-like object to convert to an array.
  16890. * @param mapfn A mapping function to call on every element of the array.
  16891. * @param thisArg Value of 'this' used to invoke the mapfn.
  16892. */
  16893. from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
  16894. /**
  16895. * Returns a new array from a set of elements.
  16896. * @param items A set of elements to include in the new array object.
  16897. */
  16898. of<T>(...items: T[]): T[];
  16899. }
  16900. interface DateConstructor {
  16901. new (value: number | string | Date): Date;
  16902. }
  16903. interface Function {
  16904. /**
  16905. * Returns the name of the function. Function names are read-only and can not be changed.
  16906. */
  16907. readonly name: string;
  16908. }
  16909. interface Math {
  16910. /**
  16911. * Returns the number of leading zero bits in the 32-bit binary representation of a number.
  16912. * @param x A numeric expression.
  16913. */
  16914. clz32(x: number): number;
  16915. /**
  16916. * Returns the result of 32-bit multiplication of two numbers.
  16917. * @param x First number
  16918. * @param y Second number
  16919. */
  16920. imul(x: number, y: number): number;
  16921. /**
  16922. * Returns the sign of the x, indicating whether x is positive, negative or zero.
  16923. * @param x The numeric expression to test
  16924. */
  16925. sign(x: number): number;
  16926. /**
  16927. * Returns the base 10 logarithm of a number.
  16928. * @param x A numeric expression.
  16929. */
  16930. log10(x: number): number;
  16931. /**
  16932. * Returns the base 2 logarithm of a number.
  16933. * @param x A numeric expression.
  16934. */
  16935. log2(x: number): number;
  16936. /**
  16937. * Returns the natural logarithm of 1 + x.
  16938. * @param x A numeric expression.
  16939. */
  16940. log1p(x: number): number;
  16941. /**
  16942. * Returns the result of (e^x - 1), which is an implementation-dependent approximation to
  16943. * subtracting 1 from the exponential function of x (e raised to the power of x, where e
  16944. * is the base of the natural logarithms).
  16945. * @param x A numeric expression.
  16946. */
  16947. expm1(x: number): number;
  16948. /**
  16949. * Returns the hyperbolic cosine of a number.
  16950. * @param x A numeric expression that contains an angle measured in radians.
  16951. */
  16952. cosh(x: number): number;
  16953. /**
  16954. * Returns the hyperbolic sine of a number.
  16955. * @param x A numeric expression that contains an angle measured in radians.
  16956. */
  16957. sinh(x: number): number;
  16958. /**
  16959. * Returns the hyperbolic tangent of a number.
  16960. * @param x A numeric expression that contains an angle measured in radians.
  16961. */
  16962. tanh(x: number): number;
  16963. /**
  16964. * Returns the inverse hyperbolic cosine of a number.
  16965. * @param x A numeric expression that contains an angle measured in radians.
  16966. */
  16967. acosh(x: number): number;
  16968. /**
  16969. * Returns the inverse hyperbolic sine of a number.
  16970. * @param x A numeric expression that contains an angle measured in radians.
  16971. */
  16972. asinh(x: number): number;
  16973. /**
  16974. * Returns the inverse hyperbolic tangent of a number.
  16975. * @param x A numeric expression that contains an angle measured in radians.
  16976. */
  16977. atanh(x: number): number;
  16978. /**
  16979. * Returns the square root of the sum of squares of its arguments.
  16980. * @param values Values to compute the square root for.
  16981. * If no arguments are passed, the result is +0.
  16982. * If there is only one argument, the result is the absolute value.
  16983. * If any argument is +Infinity or -Infinity, the result is +Infinity.
  16984. * If any argument is NaN, the result is NaN.
  16985. * If all arguments are either +0 or −0, the result is +0.
  16986. */
  16987. hypot(...values: number[]): number;
  16988. /**
  16989. * Returns the integral part of the a numeric expression, x, removing any fractional digits.
  16990. * If x is already an integer, the result is x.
  16991. * @param x A numeric expression.
  16992. */
  16993. trunc(x: number): number;
  16994. /**
  16995. * Returns the nearest single precision float representation of a number.
  16996. * @param x A numeric expression.
  16997. */
  16998. fround(x: number): number;
  16999. /**
  17000. * Returns an implementation-dependent approximation to the cube root of number.
  17001. * @param x A numeric expression.
  17002. */
  17003. cbrt(x: number): number;
  17004. }
  17005. interface NumberConstructor {
  17006. /**
  17007. * The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1
  17008. * that is representable as a Number value, which is approximately:
  17009. * 2.2204460492503130808472633361816 x 10‍−‍16.
  17010. */
  17011. readonly EPSILON: number;
  17012. /**
  17013. * Returns true if passed value is finite.
  17014. * Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a
  17015. * number. Only finite values of the type number, result in true.
  17016. * @param number A numeric value.
  17017. */
  17018. isFinite(number: unknown): boolean;
  17019. /**
  17020. * Returns true if the value passed is an integer, false otherwise.
  17021. * @param number A numeric value.
  17022. */
  17023. isInteger(number: unknown): boolean;
  17024. /**
  17025. * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a
  17026. * number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter
  17027. * to a number. Only values of the type number, that are also NaN, result in true.
  17028. * @param number A numeric value.
  17029. */
  17030. isNaN(number: unknown): boolean;
  17031. /**
  17032. * Returns true if the value passed is a safe integer.
  17033. * @param number A numeric value.
  17034. */
  17035. isSafeInteger(number: unknown): boolean;
  17036. /**
  17037. * The value of the largest integer n such that n and n + 1 are both exactly representable as
  17038. * a Number value.
  17039. * The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 − 1.
  17040. */
  17041. readonly MAX_SAFE_INTEGER: number;
  17042. /**
  17043. * The value of the smallest integer n such that n and n − 1 are both exactly representable as
  17044. * a Number value.
  17045. * The value of Number.MIN_SAFE_INTEGER is −9007199254740991 (−(2^53 − 1)).
  17046. */
  17047. readonly MIN_SAFE_INTEGER: number;
  17048. /**
  17049. * Converts a string to a floating-point number.
  17050. * @param string A string that contains a floating-point number.
  17051. */
  17052. parseFloat(string: string): number;
  17053. /**
  17054. * Converts A string to an integer.
  17055. * @param string A string to convert into a number.
  17056. * @param radix A value between 2 and 36 that specifies the base of the number in \`string\`.
  17057. * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
  17058. * All other strings are considered decimal.
  17059. */
  17060. parseInt(string: string, radix?: number): number;
  17061. }
  17062. interface ObjectConstructor {
  17063. /**
  17064. * Copy the values of all of the enumerable own properties from one or more source objects to a
  17065. * target object. Returns the target object.
  17066. * @param target The target object to copy to.
  17067. * @param source The source object from which to copy properties.
  17068. */
  17069. assign<T, U>(target: T, source: U): T & U;
  17070. /**
  17071. * Copy the values of all of the enumerable own properties from one or more source objects to a
  17072. * target object. Returns the target object.
  17073. * @param target The target object to copy to.
  17074. * @param source1 The first source object from which to copy properties.
  17075. * @param source2 The second source object from which to copy properties.
  17076. */
  17077. assign<T, U, V>(target: T, source1: U, source2: V): T & U & V;
  17078. /**
  17079. * Copy the values of all of the enumerable own properties from one or more source objects to a
  17080. * target object. Returns the target object.
  17081. * @param target The target object to copy to.
  17082. * @param source1 The first source object from which to copy properties.
  17083. * @param source2 The second source object from which to copy properties.
  17084. * @param source3 The third source object from which to copy properties.
  17085. */
  17086. assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
  17087. /**
  17088. * Copy the values of all of the enumerable own properties from one or more source objects to a
  17089. * target object. Returns the target object.
  17090. * @param target The target object to copy to.
  17091. * @param sources One or more source objects from which to copy properties
  17092. */
  17093. assign(target: object, ...sources: any[]): any;
  17094. /**
  17095. * Returns an array of all symbol properties found directly on object o.
  17096. * @param o Object to retrieve the symbols from.
  17097. */
  17098. getOwnPropertySymbols(o: any): symbol[];
  17099. /**
  17100. * Returns the names of the enumerable string properties and methods of an object.
  17101. * @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.
  17102. */
  17103. keys(o: {}): string[];
  17104. /**
  17105. * Returns true if the values are the same value, false otherwise.
  17106. * @param value1 The first value.
  17107. * @param value2 The second value.
  17108. */
  17109. is(value1: any, value2: any): boolean;
  17110. /**
  17111. * Sets the prototype of a specified object o to object proto or null. Returns the object o.
  17112. * @param o The object to change its prototype.
  17113. * @param proto The value of the new prototype or null.
  17114. */
  17115. setPrototypeOf(o: any, proto: object | null): any;
  17116. }
  17117. interface ReadonlyArray<T> {
  17118. /**
  17119. * Returns the value of the first element in the array where predicate is true, and undefined
  17120. * otherwise.
  17121. * @param predicate find calls predicate once for each element of the array, in ascending
  17122. * order, until it finds one where predicate returns true. If such an element is found, find
  17123. * immediately returns that element value. Otherwise, find returns undefined.
  17124. * @param thisArg If provided, it will be used as the this value for each invocation of
  17125. * predicate. If it is not provided, undefined is used instead.
  17126. */
  17127. find<S extends T>(predicate: (this: void, value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined;
  17128. find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined;
  17129. /**
  17130. * Returns the index of the first element in the array where predicate is true, and -1
  17131. * otherwise.
  17132. * @param predicate find calls predicate once for each element of the array, in ascending
  17133. * order, until it finds one where predicate returns true. If such an element is found,
  17134. * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
  17135. * @param thisArg If provided, it will be used as the this value for each invocation of
  17136. * predicate. If it is not provided, undefined is used instead.
  17137. */
  17138. findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;
  17139. }
  17140. interface RegExp {
  17141. /**
  17142. * Returns a string indicating the flags of the regular expression in question. This field is read-only.
  17143. * The characters in this string are sequenced and concatenated in the following order:
  17144. *
  17145. * - "g" for global
  17146. * - "i" for ignoreCase
  17147. * - "m" for multiline
  17148. * - "u" for unicode
  17149. * - "y" for sticky
  17150. *
  17151. * If no flags are set, the value is the empty string.
  17152. */
  17153. readonly flags: string;
  17154. /**
  17155. * Returns a Boolean value indicating the state of the sticky flag (y) used with a regular
  17156. * expression. Default is false. Read-only.
  17157. */
  17158. readonly sticky: boolean;
  17159. /**
  17160. * Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular
  17161. * expression. Default is false. Read-only.
  17162. */
  17163. readonly unicode: boolean;
  17164. }
  17165. interface RegExpConstructor {
  17166. new (pattern: RegExp | string, flags?: string): RegExp;
  17167. (pattern: RegExp | string, flags?: string): RegExp;
  17168. }
  17169. interface String {
  17170. /**
  17171. * Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
  17172. * value of the UTF-16 encoded code point starting at the string element at position pos in
  17173. * the String resulting from converting this object to a String.
  17174. * If there is no element at that position, the result is undefined.
  17175. * If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
  17176. */
  17177. codePointAt(pos: number): number | undefined;
  17178. /**
  17179. * Returns true if searchString appears as a substring of the result of converting this
  17180. * object to a String, at one or more positions that are
  17181. * greater than or equal to position; otherwise, returns false.
  17182. * @param searchString search string
  17183. * @param position If position is undefined, 0 is assumed, so as to search all of the String.
  17184. */
  17185. includes(searchString: string, position?: number): boolean;
  17186. /**
  17187. * Returns true if the sequence of elements of searchString converted to a String is the
  17188. * same as the corresponding elements of this object (converted to a String) starting at
  17189. * endPosition – length(this). Otherwise returns false.
  17190. */
  17191. endsWith(searchString: string, endPosition?: number): boolean;
  17192. /**
  17193. * Returns the String value result of normalizing the string into the normalization form
  17194. * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
  17195. * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
  17196. * is "NFC"
  17197. */
  17198. normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
  17199. /**
  17200. * Returns the String value result of normalizing the string into the normalization form
  17201. * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
  17202. * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
  17203. * is "NFC"
  17204. */
  17205. normalize(form?: string): string;
  17206. /**
  17207. * Returns a String value that is made from count copies appended together. If count is 0,
  17208. * the empty string is returned.
  17209. * @param count number of copies to append
  17210. */
  17211. repeat(count: number): string;
  17212. /**
  17213. * Returns true if the sequence of elements of searchString converted to a String is the
  17214. * same as the corresponding elements of this object (converted to a String) starting at
  17215. * position. Otherwise returns false.
  17216. */
  17217. startsWith(searchString: string, position?: number): boolean;
  17218. /**
  17219. * Returns an \`<a>\` HTML anchor element and sets the name attribute to the text value
  17220. * @deprecated A legacy feature for browser compatibility
  17221. * @param name
  17222. */
  17223. anchor(name: string): string;
  17224. /**
  17225. * Returns a \`<big>\` HTML element
  17226. * @deprecated A legacy feature for browser compatibility
  17227. */
  17228. big(): string;
  17229. /**
  17230. * Returns a \`<blink>\` HTML element
  17231. * @deprecated A legacy feature for browser compatibility
  17232. */
  17233. blink(): string;
  17234. /**
  17235. * Returns a \`<b>\` HTML element
  17236. * @deprecated A legacy feature for browser compatibility
  17237. */
  17238. bold(): string;
  17239. /**
  17240. * Returns a \`<tt>\` HTML element
  17241. * @deprecated A legacy feature for browser compatibility
  17242. */
  17243. fixed(): string;
  17244. /**
  17245. * Returns a \`<font>\` HTML element and sets the color attribute value
  17246. * @deprecated A legacy feature for browser compatibility
  17247. */
  17248. fontcolor(color: string): string;
  17249. /**
  17250. * Returns a \`<font>\` HTML element and sets the size attribute value
  17251. * @deprecated A legacy feature for browser compatibility
  17252. */
  17253. fontsize(size: number): string;
  17254. /**
  17255. * Returns a \`<font>\` HTML element and sets the size attribute value
  17256. * @deprecated A legacy feature for browser compatibility
  17257. */
  17258. fontsize(size: string): string;
  17259. /**
  17260. * Returns an \`<i>\` HTML element
  17261. * @deprecated A legacy feature for browser compatibility
  17262. */
  17263. italics(): string;
  17264. /**
  17265. * Returns an \`<a>\` HTML element and sets the href attribute value
  17266. * @deprecated A legacy feature for browser compatibility
  17267. */
  17268. link(url: string): string;
  17269. /**
  17270. * Returns a \`<small>\` HTML element
  17271. * @deprecated A legacy feature for browser compatibility
  17272. */
  17273. small(): string;
  17274. /**
  17275. * Returns a \`<strike>\` HTML element
  17276. * @deprecated A legacy feature for browser compatibility
  17277. */
  17278. strike(): string;
  17279. /**
  17280. * Returns a \`<sub>\` HTML element
  17281. * @deprecated A legacy feature for browser compatibility
  17282. */
  17283. sub(): string;
  17284. /**
  17285. * Returns a \`<sup>\` HTML element
  17286. * @deprecated A legacy feature for browser compatibility
  17287. */
  17288. sup(): string;
  17289. }
  17290. interface StringConstructor {
  17291. /**
  17292. * Return the String value whose elements are, in order, the elements in the List elements.
  17293. * If length is 0, the empty string is returned.
  17294. */
  17295. fromCodePoint(...codePoints: number[]): string;
  17296. /**
  17297. * String.raw is usually used as a tag function of a Tagged Template String. When called as
  17298. * such, the first argument will be a well formed template call site object and the rest
  17299. * parameter will contain the substitution values. It can also be called directly, for example,
  17300. * to interleave strings and values from your own tag function, and in this case the only thing
  17301. * it needs from the first argument is the raw property.
  17302. * @param template A well-formed template string call site representation.
  17303. * @param substitutions A set of substitution values.
  17304. */
  17305. raw(template: { raw: readonly string[] | ArrayLike<string>}, ...substitutions: any[]): string;
  17306. }
  17307. `,Oi["lib.es2015.d.ts"]=`/*! *****************************************************************************
  17308. Copyright (c) Microsoft Corporation. All rights reserved.
  17309. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  17310. this file except in compliance with the License. You may obtain a copy of the
  17311. License at http://www.apache.org/licenses/LICENSE-2.0
  17312. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  17313. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  17314. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  17315. MERCHANTABLITY OR NON-INFRINGEMENT.
  17316. See the Apache Version 2.0 License for specific language governing permissions
  17317. and limitations under the License.
  17318. ***************************************************************************** */
  17319. /// <reference no-default-lib="true"/>
  17320. /// <reference lib="es5" />
  17321. /// <reference lib="es2015.core" />
  17322. /// <reference lib="es2015.collection" />
  17323. /// <reference lib="es2015.iterable" />
  17324. /// <reference lib="es2015.generator" />
  17325. /// <reference lib="es2015.promise" />
  17326. /// <reference lib="es2015.proxy" />
  17327. /// <reference lib="es2015.reflect" />
  17328. /// <reference lib="es2015.symbol" />
  17329. /// <reference lib="es2015.symbol.wellknown" />
  17330. `,Oi["lib.es2015.generator.d.ts"]=`/*! *****************************************************************************
  17331. Copyright (c) Microsoft Corporation. All rights reserved.
  17332. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  17333. this file except in compliance with the License. You may obtain a copy of the
  17334. License at http://www.apache.org/licenses/LICENSE-2.0
  17335. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  17336. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  17337. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  17338. MERCHANTABLITY OR NON-INFRINGEMENT.
  17339. See the Apache Version 2.0 License for specific language governing permissions
  17340. and limitations under the License.
  17341. ***************************************************************************** */
  17342. /// <reference no-default-lib="true"/>
  17343. /// <reference lib="es2015.iterable" />
  17344. interface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<T, TReturn, TNext> {
  17345. // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
  17346. next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
  17347. return(value: TReturn): IteratorResult<T, TReturn>;
  17348. throw(e: any): IteratorResult<T, TReturn>;
  17349. [Symbol.iterator](): Generator<T, TReturn, TNext>;
  17350. }
  17351. interface GeneratorFunction {
  17352. /**
  17353. * Creates a new Generator object.
  17354. * @param args A list of arguments the function accepts.
  17355. */
  17356. new (...args: any[]): Generator;
  17357. /**
  17358. * Creates a new Generator object.
  17359. * @param args A list of arguments the function accepts.
  17360. */
  17361. (...args: any[]): Generator;
  17362. /**
  17363. * The length of the arguments.
  17364. */
  17365. readonly length: number;
  17366. /**
  17367. * Returns the name of the function.
  17368. */
  17369. readonly name: string;
  17370. /**
  17371. * A reference to the prototype.
  17372. */
  17373. readonly prototype: Generator;
  17374. }
  17375. interface GeneratorFunctionConstructor {
  17376. /**
  17377. * Creates a new Generator function.
  17378. * @param args A list of arguments the function accepts.
  17379. */
  17380. new (...args: string[]): GeneratorFunction;
  17381. /**
  17382. * Creates a new Generator function.
  17383. * @param args A list of arguments the function accepts.
  17384. */
  17385. (...args: string[]): GeneratorFunction;
  17386. /**
  17387. * The length of the arguments.
  17388. */
  17389. readonly length: number;
  17390. /**
  17391. * Returns the name of the function.
  17392. */
  17393. readonly name: string;
  17394. /**
  17395. * A reference to the prototype.
  17396. */
  17397. readonly prototype: GeneratorFunction;
  17398. }
  17399. `,Oi["lib.es2015.iterable.d.ts"]=`/*! *****************************************************************************
  17400. Copyright (c) Microsoft Corporation. All rights reserved.
  17401. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  17402. this file except in compliance with the License. You may obtain a copy of the
  17403. License at http://www.apache.org/licenses/LICENSE-2.0
  17404. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  17405. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  17406. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  17407. MERCHANTABLITY OR NON-INFRINGEMENT.
  17408. See the Apache Version 2.0 License for specific language governing permissions
  17409. and limitations under the License.
  17410. ***************************************************************************** */
  17411. /// <reference no-default-lib="true"/>
  17412. /// <reference lib="es2015.symbol" />
  17413. interface SymbolConstructor {
  17414. /**
  17415. * A method that returns the default iterator for an object. Called by the semantics of the
  17416. * for-of statement.
  17417. */
  17418. readonly iterator: unique symbol;
  17419. }
  17420. interface IteratorYieldResult<TYield> {
  17421. done?: false;
  17422. value: TYield;
  17423. }
  17424. interface IteratorReturnResult<TReturn> {
  17425. done: true;
  17426. value: TReturn;
  17427. }
  17428. type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
  17429. interface Iterator<T, TReturn = any, TNext = undefined> {
  17430. // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
  17431. next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
  17432. return?(value?: TReturn): IteratorResult<T, TReturn>;
  17433. throw?(e?: any): IteratorResult<T, TReturn>;
  17434. }
  17435. interface Iterable<T> {
  17436. [Symbol.iterator](): Iterator<T>;
  17437. }
  17438. interface IterableIterator<T> extends Iterator<T> {
  17439. [Symbol.iterator](): IterableIterator<T>;
  17440. }
  17441. interface Array<T> {
  17442. /** Iterator */
  17443. [Symbol.iterator](): IterableIterator<T>;
  17444. /**
  17445. * Returns an iterable of key, value pairs for every entry in the array
  17446. */
  17447. entries(): IterableIterator<[number, T]>;
  17448. /**
  17449. * Returns an iterable of keys in the array
  17450. */
  17451. keys(): IterableIterator<number>;
  17452. /**
  17453. * Returns an iterable of values in the array
  17454. */
  17455. values(): IterableIterator<T>;
  17456. }
  17457. interface ArrayConstructor {
  17458. /**
  17459. * Creates an array from an iterable object.
  17460. * @param iterable An iterable object to convert to an array.
  17461. */
  17462. from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
  17463. /**
  17464. * Creates an array from an iterable object.
  17465. * @param iterable An iterable object to convert to an array.
  17466. * @param mapfn A mapping function to call on every element of the array.
  17467. * @param thisArg Value of 'this' used to invoke the mapfn.
  17468. */
  17469. from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
  17470. }
  17471. interface ReadonlyArray<T> {
  17472. /** Iterator of values in the array. */
  17473. [Symbol.iterator](): IterableIterator<T>;
  17474. /**
  17475. * Returns an iterable of key, value pairs for every entry in the array
  17476. */
  17477. entries(): IterableIterator<[number, T]>;
  17478. /**
  17479. * Returns an iterable of keys in the array
  17480. */
  17481. keys(): IterableIterator<number>;
  17482. /**
  17483. * Returns an iterable of values in the array
  17484. */
  17485. values(): IterableIterator<T>;
  17486. }
  17487. interface IArguments {
  17488. /** Iterator */
  17489. [Symbol.iterator](): IterableIterator<any>;
  17490. }
  17491. interface Map<K, V> {
  17492. /** Returns an iterable of entries in the map. */
  17493. [Symbol.iterator](): IterableIterator<[K, V]>;
  17494. /**
  17495. * Returns an iterable of key, value pairs for every entry in the map.
  17496. */
  17497. entries(): IterableIterator<[K, V]>;
  17498. /**
  17499. * Returns an iterable of keys in the map
  17500. */
  17501. keys(): IterableIterator<K>;
  17502. /**
  17503. * Returns an iterable of values in the map
  17504. */
  17505. values(): IterableIterator<V>;
  17506. }
  17507. interface ReadonlyMap<K, V> {
  17508. /** Returns an iterable of entries in the map. */
  17509. [Symbol.iterator](): IterableIterator<[K, V]>;
  17510. /**
  17511. * Returns an iterable of key, value pairs for every entry in the map.
  17512. */
  17513. entries(): IterableIterator<[K, V]>;
  17514. /**
  17515. * Returns an iterable of keys in the map
  17516. */
  17517. keys(): IterableIterator<K>;
  17518. /**
  17519. * Returns an iterable of values in the map
  17520. */
  17521. values(): IterableIterator<V>;
  17522. }
  17523. interface MapConstructor {
  17524. new <K, V>(iterable: Iterable<readonly [K, V]>): Map<K, V>;
  17525. }
  17526. interface WeakMap<K extends object, V> { }
  17527. interface WeakMapConstructor {
  17528. new <K extends object, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;
  17529. }
  17530. interface Set<T> {
  17531. /** Iterates over values in the set. */
  17532. [Symbol.iterator](): IterableIterator<T>;
  17533. /**
  17534. * Returns an iterable of [v,v] pairs for every value \`v\` in the set.
  17535. */
  17536. entries(): IterableIterator<[T, T]>;
  17537. /**
  17538. * Despite its name, returns an iterable of the values in the set.
  17539. */
  17540. keys(): IterableIterator<T>;
  17541. /**
  17542. * Returns an iterable of values in the set.
  17543. */
  17544. values(): IterableIterator<T>;
  17545. }
  17546. interface ReadonlySet<T> {
  17547. /** Iterates over values in the set. */
  17548. [Symbol.iterator](): IterableIterator<T>;
  17549. /**
  17550. * Returns an iterable of [v,v] pairs for every value \`v\` in the set.
  17551. */
  17552. entries(): IterableIterator<[T, T]>;
  17553. /**
  17554. * Despite its name, returns an iterable of the values in the set.
  17555. */
  17556. keys(): IterableIterator<T>;
  17557. /**
  17558. * Returns an iterable of values in the set.
  17559. */
  17560. values(): IterableIterator<T>;
  17561. }
  17562. interface SetConstructor {
  17563. new <T>(iterable?: Iterable<T> | null): Set<T>;
  17564. }
  17565. interface WeakSet<T extends object> { }
  17566. interface WeakSetConstructor {
  17567. new <T extends object = object>(iterable: Iterable<T>): WeakSet<T>;
  17568. }
  17569. interface Promise<T> { }
  17570. interface PromiseConstructor {
  17571. /**
  17572. * Creates a Promise that is resolved with an array of results when all of the provided Promises
  17573. * resolve, or rejected when any Promise is rejected.
  17574. * @param values An iterable of Promises.
  17575. * @returns A new Promise.
  17576. */
  17577. all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
  17578. /**
  17579. * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
  17580. * or rejected.
  17581. * @param values An iterable of Promises.
  17582. * @returns A new Promise.
  17583. */
  17584. race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
  17585. }
  17586. interface String {
  17587. /** Iterator */
  17588. [Symbol.iterator](): IterableIterator<string>;
  17589. }
  17590. interface Int8Array {
  17591. [Symbol.iterator](): IterableIterator<number>;
  17592. /**
  17593. * Returns an array of key, value pairs for every entry in the array
  17594. */
  17595. entries(): IterableIterator<[number, number]>;
  17596. /**
  17597. * Returns an list of keys in the array
  17598. */
  17599. keys(): IterableIterator<number>;
  17600. /**
  17601. * Returns an list of values in the array
  17602. */
  17603. values(): IterableIterator<number>;
  17604. }
  17605. interface Int8ArrayConstructor {
  17606. new (elements: Iterable<number>): Int8Array;
  17607. /**
  17608. * Creates an array from an array-like or iterable object.
  17609. * @param arrayLike An array-like or iterable object to convert to an array.
  17610. * @param mapfn A mapping function to call on every element of the array.
  17611. * @param thisArg Value of 'this' used to invoke the mapfn.
  17612. */
  17613. from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
  17614. }
  17615. interface Uint8Array {
  17616. [Symbol.iterator](): IterableIterator<number>;
  17617. /**
  17618. * Returns an array of key, value pairs for every entry in the array
  17619. */
  17620. entries(): IterableIterator<[number, number]>;
  17621. /**
  17622. * Returns an list of keys in the array
  17623. */
  17624. keys(): IterableIterator<number>;
  17625. /**
  17626. * Returns an list of values in the array
  17627. */
  17628. values(): IterableIterator<number>;
  17629. }
  17630. interface Uint8ArrayConstructor {
  17631. new (elements: Iterable<number>): Uint8Array;
  17632. /**
  17633. * Creates an array from an array-like or iterable object.
  17634. * @param arrayLike An array-like or iterable object to convert to an array.
  17635. * @param mapfn A mapping function to call on every element of the array.
  17636. * @param thisArg Value of 'this' used to invoke the mapfn.
  17637. */
  17638. from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
  17639. }
  17640. interface Uint8ClampedArray {
  17641. [Symbol.iterator](): IterableIterator<number>;
  17642. /**
  17643. * Returns an array of key, value pairs for every entry in the array
  17644. */
  17645. entries(): IterableIterator<[number, number]>;
  17646. /**
  17647. * Returns an list of keys in the array
  17648. */
  17649. keys(): IterableIterator<number>;
  17650. /**
  17651. * Returns an list of values in the array
  17652. */
  17653. values(): IterableIterator<number>;
  17654. }
  17655. interface Uint8ClampedArrayConstructor {
  17656. new (elements: Iterable<number>): Uint8ClampedArray;
  17657. /**
  17658. * Creates an array from an array-like or iterable object.
  17659. * @param arrayLike An array-like or iterable object to convert to an array.
  17660. * @param mapfn A mapping function to call on every element of the array.
  17661. * @param thisArg Value of 'this' used to invoke the mapfn.
  17662. */
  17663. from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
  17664. }
  17665. interface Int16Array {
  17666. [Symbol.iterator](): IterableIterator<number>;
  17667. /**
  17668. * Returns an array of key, value pairs for every entry in the array
  17669. */
  17670. entries(): IterableIterator<[number, number]>;
  17671. /**
  17672. * Returns an list of keys in the array
  17673. */
  17674. keys(): IterableIterator<number>;
  17675. /**
  17676. * Returns an list of values in the array
  17677. */
  17678. values(): IterableIterator<number>;
  17679. }
  17680. interface Int16ArrayConstructor {
  17681. new (elements: Iterable<number>): Int16Array;
  17682. /**
  17683. * Creates an array from an array-like or iterable object.
  17684. * @param arrayLike An array-like or iterable object to convert to an array.
  17685. * @param mapfn A mapping function to call on every element of the array.
  17686. * @param thisArg Value of 'this' used to invoke the mapfn.
  17687. */
  17688. from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
  17689. }
  17690. interface Uint16Array {
  17691. [Symbol.iterator](): IterableIterator<number>;
  17692. /**
  17693. * Returns an array of key, value pairs for every entry in the array
  17694. */
  17695. entries(): IterableIterator<[number, number]>;
  17696. /**
  17697. * Returns an list of keys in the array
  17698. */
  17699. keys(): IterableIterator<number>;
  17700. /**
  17701. * Returns an list of values in the array
  17702. */
  17703. values(): IterableIterator<number>;
  17704. }
  17705. interface Uint16ArrayConstructor {
  17706. new (elements: Iterable<number>): Uint16Array;
  17707. /**
  17708. * Creates an array from an array-like or iterable object.
  17709. * @param arrayLike An array-like or iterable object to convert to an array.
  17710. * @param mapfn A mapping function to call on every element of the array.
  17711. * @param thisArg Value of 'this' used to invoke the mapfn.
  17712. */
  17713. from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
  17714. }
  17715. interface Int32Array {
  17716. [Symbol.iterator](): IterableIterator<number>;
  17717. /**
  17718. * Returns an array of key, value pairs for every entry in the array
  17719. */
  17720. entries(): IterableIterator<[number, number]>;
  17721. /**
  17722. * Returns an list of keys in the array
  17723. */
  17724. keys(): IterableIterator<number>;
  17725. /**
  17726. * Returns an list of values in the array
  17727. */
  17728. values(): IterableIterator<number>;
  17729. }
  17730. interface Int32ArrayConstructor {
  17731. new (elements: Iterable<number>): Int32Array;
  17732. /**
  17733. * Creates an array from an array-like or iterable object.
  17734. * @param arrayLike An array-like or iterable object to convert to an array.
  17735. * @param mapfn A mapping function to call on every element of the array.
  17736. * @param thisArg Value of 'this' used to invoke the mapfn.
  17737. */
  17738. from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
  17739. }
  17740. interface Uint32Array {
  17741. [Symbol.iterator](): IterableIterator<number>;
  17742. /**
  17743. * Returns an array of key, value pairs for every entry in the array
  17744. */
  17745. entries(): IterableIterator<[number, number]>;
  17746. /**
  17747. * Returns an list of keys in the array
  17748. */
  17749. keys(): IterableIterator<number>;
  17750. /**
  17751. * Returns an list of values in the array
  17752. */
  17753. values(): IterableIterator<number>;
  17754. }
  17755. interface Uint32ArrayConstructor {
  17756. new (elements: Iterable<number>): Uint32Array;
  17757. /**
  17758. * Creates an array from an array-like or iterable object.
  17759. * @param arrayLike An array-like or iterable object to convert to an array.
  17760. * @param mapfn A mapping function to call on every element of the array.
  17761. * @param thisArg Value of 'this' used to invoke the mapfn.
  17762. */
  17763. from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
  17764. }
  17765. interface Float32Array {
  17766. [Symbol.iterator](): IterableIterator<number>;
  17767. /**
  17768. * Returns an array of key, value pairs for every entry in the array
  17769. */
  17770. entries(): IterableIterator<[number, number]>;
  17771. /**
  17772. * Returns an list of keys in the array
  17773. */
  17774. keys(): IterableIterator<number>;
  17775. /**
  17776. * Returns an list of values in the array
  17777. */
  17778. values(): IterableIterator<number>;
  17779. }
  17780. interface Float32ArrayConstructor {
  17781. new (elements: Iterable<number>): Float32Array;
  17782. /**
  17783. * Creates an array from an array-like or iterable object.
  17784. * @param arrayLike An array-like or iterable object to convert to an array.
  17785. * @param mapfn A mapping function to call on every element of the array.
  17786. * @param thisArg Value of 'this' used to invoke the mapfn.
  17787. */
  17788. from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
  17789. }
  17790. interface Float64Array {
  17791. [Symbol.iterator](): IterableIterator<number>;
  17792. /**
  17793. * Returns an array of key, value pairs for every entry in the array
  17794. */
  17795. entries(): IterableIterator<[number, number]>;
  17796. /**
  17797. * Returns an list of keys in the array
  17798. */
  17799. keys(): IterableIterator<number>;
  17800. /**
  17801. * Returns an list of values in the array
  17802. */
  17803. values(): IterableIterator<number>;
  17804. }
  17805. interface Float64ArrayConstructor {
  17806. new (elements: Iterable<number>): Float64Array;
  17807. /**
  17808. * Creates an array from an array-like or iterable object.
  17809. * @param arrayLike An array-like or iterable object to convert to an array.
  17810. * @param mapfn A mapping function to call on every element of the array.
  17811. * @param thisArg Value of 'this' used to invoke the mapfn.
  17812. */
  17813. from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
  17814. }
  17815. `,Oi["lib.es2015.promise.d.ts"]=`/*! *****************************************************************************
  17816. Copyright (c) Microsoft Corporation. All rights reserved.
  17817. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  17818. this file except in compliance with the License. You may obtain a copy of the
  17819. License at http://www.apache.org/licenses/LICENSE-2.0
  17820. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  17821. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  17822. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  17823. MERCHANTABLITY OR NON-INFRINGEMENT.
  17824. See the Apache Version 2.0 License for specific language governing permissions
  17825. and limitations under the License.
  17826. ***************************************************************************** */
  17827. /// <reference no-default-lib="true"/>
  17828. interface PromiseConstructor {
  17829. /**
  17830. * A reference to the prototype.
  17831. */
  17832. readonly prototype: Promise<any>;
  17833. /**
  17834. * Creates a new Promise.
  17835. * @param executor A callback used to initialize the promise. This callback is passed two arguments:
  17836. * a resolve callback used to resolve the promise with a value or the result of another promise,
  17837. * and a reject callback used to reject the promise with a provided reason or error.
  17838. */
  17839. new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
  17840. /**
  17841. * Creates a Promise that is resolved with an array of results when all of the provided Promises
  17842. * resolve, or rejected when any Promise is rejected.
  17843. * @param values An array of Promises.
  17844. * @returns A new Promise.
  17845. */
  17846. all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]> }>;
  17847. // see: lib.es2015.iterable.d.ts
  17848. // all<T>(values: Iterable<T | PromiseLike<T>>): Promise<T[]>;
  17849. /**
  17850. * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
  17851. * or rejected.
  17852. * @param values An array of Promises.
  17853. * @returns A new Promise.
  17854. */
  17855. race<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
  17856. // see: lib.es2015.iterable.d.ts
  17857. // race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : T>;
  17858. /**
  17859. * Creates a new rejected promise for the provided reason.
  17860. * @param reason The reason the promise was rejected.
  17861. * @returns A new rejected Promise.
  17862. */
  17863. reject<T = never>(reason?: any): Promise<T>;
  17864. /**
  17865. * Creates a new resolved promise.
  17866. * @returns A resolved promise.
  17867. */
  17868. resolve(): Promise<void>;
  17869. /**
  17870. * Creates a new resolved promise for the provided value.
  17871. * @param value A promise.
  17872. * @returns A promise whose internal state matches the provided promise.
  17873. */
  17874. resolve<T>(value: T | PromiseLike<T>): Promise<T>;
  17875. }
  17876. declare var Promise: PromiseConstructor;
  17877. `,Oi["lib.es2015.proxy.d.ts"]=`/*! *****************************************************************************
  17878. Copyright (c) Microsoft Corporation. All rights reserved.
  17879. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  17880. this file except in compliance with the License. You may obtain a copy of the
  17881. License at http://www.apache.org/licenses/LICENSE-2.0
  17882. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  17883. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  17884. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  17885. MERCHANTABLITY OR NON-INFRINGEMENT.
  17886. See the Apache Version 2.0 License for specific language governing permissions
  17887. and limitations under the License.
  17888. ***************************************************************************** */
  17889. /// <reference no-default-lib="true"/>
  17890. interface ProxyHandler<T extends object> {
  17891. apply?(target: T, thisArg: any, argArray: any[]): any;
  17892. construct?(target: T, argArray: any[], newTarget: Function): object;
  17893. defineProperty?(target: T, p: string | symbol, attributes: PropertyDescriptor): boolean;
  17894. deleteProperty?(target: T, p: string | symbol): boolean;
  17895. get?(target: T, p: string | symbol, receiver: any): any;
  17896. getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined;
  17897. getPrototypeOf?(target: T): object | null;
  17898. has?(target: T, p: string | symbol): boolean;
  17899. isExtensible?(target: T): boolean;
  17900. ownKeys?(target: T): ArrayLike<string | symbol>;
  17901. preventExtensions?(target: T): boolean;
  17902. set?(target: T, p: string | symbol, value: any, receiver: any): boolean;
  17903. setPrototypeOf?(target: T, v: object | null): boolean;
  17904. }
  17905. interface ProxyConstructor {
  17906. revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };
  17907. new <T extends object>(target: T, handler: ProxyHandler<T>): T;
  17908. }
  17909. declare var Proxy: ProxyConstructor;
  17910. `,Oi["lib.es2015.reflect.d.ts"]=`/*! *****************************************************************************
  17911. Copyright (c) Microsoft Corporation. All rights reserved.
  17912. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  17913. this file except in compliance with the License. You may obtain a copy of the
  17914. License at http://www.apache.org/licenses/LICENSE-2.0
  17915. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  17916. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  17917. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  17918. MERCHANTABLITY OR NON-INFRINGEMENT.
  17919. See the Apache Version 2.0 License for specific language governing permissions
  17920. and limitations under the License.
  17921. ***************************************************************************** */
  17922. /// <reference no-default-lib="true"/>
  17923. declare namespace Reflect {
  17924. /**
  17925. * Calls the function with the specified object as the this value
  17926. * and the elements of specified array as the arguments.
  17927. * @param target The function to call.
  17928. * @param thisArgument The object to be used as the this object.
  17929. * @param argumentsList An array of argument values to be passed to the function.
  17930. */
  17931. function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;
  17932. /**
  17933. * Constructs the target with the elements of specified array as the arguments
  17934. * and the specified constructor as the \`new.target\` value.
  17935. * @param target The constructor to invoke.
  17936. * @param argumentsList An array of argument values to be passed to the constructor.
  17937. * @param newTarget The constructor to be used as the \`new.target\` object.
  17938. */
  17939. function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any;
  17940. /**
  17941. * Adds a property to an object, or modifies attributes of an existing property.
  17942. * @param target Object on which to add or modify the property. This can be a native JavaScript object
  17943. * (that is, a user-defined object or a built in object) or a DOM object.
  17944. * @param propertyKey The property name.
  17945. * @param attributes Descriptor for the property. It can be for a data property or an accessor property.
  17946. */
  17947. function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean;
  17948. /**
  17949. * Removes a property from an object, equivalent to \`delete target[propertyKey]\`,
  17950. * except it won't throw if \`target[propertyKey]\` is non-configurable.
  17951. * @param target Object from which to remove the own property.
  17952. * @param propertyKey The property name.
  17953. */
  17954. function deleteProperty(target: object, propertyKey: PropertyKey): boolean;
  17955. /**
  17956. * Gets the property of target, equivalent to \`target[propertyKey]\` when \`receiver === target\`.
  17957. * @param target Object that contains the property on itself or in its prototype chain.
  17958. * @param propertyKey The property name.
  17959. * @param receiver The reference to use as the \`this\` value in the getter function,
  17960. * if \`target[propertyKey]\` is an accessor property.
  17961. */
  17962. function get(target: object, propertyKey: PropertyKey, receiver?: any): any;
  17963. /**
  17964. * Gets the own property descriptor of the specified object.
  17965. * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
  17966. * @param target Object that contains the property.
  17967. * @param propertyKey The property name.
  17968. */
  17969. function getOwnPropertyDescriptor(target: object, propertyKey: PropertyKey): PropertyDescriptor | undefined;
  17970. /**
  17971. * Returns the prototype of an object.
  17972. * @param target The object that references the prototype.
  17973. */
  17974. function getPrototypeOf(target: object): object | null;
  17975. /**
  17976. * Equivalent to \`propertyKey in target\`.
  17977. * @param target Object that contains the property on itself or in its prototype chain.
  17978. * @param propertyKey Name of the property.
  17979. */
  17980. function has(target: object, propertyKey: PropertyKey): boolean;
  17981. /**
  17982. * Returns a value that indicates whether new properties can be added to an object.
  17983. * @param target Object to test.
  17984. */
  17985. function isExtensible(target: object): boolean;
  17986. /**
  17987. * Returns the string and symbol keys of the own properties of an object. The own properties of an object
  17988. * are those that are defined directly on that object, and are not inherited from the object's prototype.
  17989. * @param target Object that contains the own properties.
  17990. */
  17991. function ownKeys(target: object): (string | symbol)[];
  17992. /**
  17993. * Prevents the addition of new properties to an object.
  17994. * @param target Object to make non-extensible.
  17995. * @return Whether the object has been made non-extensible.
  17996. */
  17997. function preventExtensions(target: object): boolean;
  17998. /**
  17999. * Sets the property of target, equivalent to \`target[propertyKey] = value\` when \`receiver === target\`.
  18000. * @param target Object that contains the property on itself or in its prototype chain.
  18001. * @param propertyKey Name of the property.
  18002. * @param receiver The reference to use as the \`this\` value in the setter function,
  18003. * if \`target[propertyKey]\` is an accessor property.
  18004. */
  18005. function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;
  18006. /**
  18007. * Sets the prototype of a specified object o to object proto or null.
  18008. * @param target The object to change its prototype.
  18009. * @param proto The value of the new prototype or null.
  18010. * @return Whether setting the prototype was successful.
  18011. */
  18012. function setPrototypeOf(target: object, proto: object | null): boolean;
  18013. }
  18014. `,Oi["lib.es2015.symbol.d.ts"]=`/*! *****************************************************************************
  18015. Copyright (c) Microsoft Corporation. All rights reserved.
  18016. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  18017. this file except in compliance with the License. You may obtain a copy of the
  18018. License at http://www.apache.org/licenses/LICENSE-2.0
  18019. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18020. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  18021. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  18022. MERCHANTABLITY OR NON-INFRINGEMENT.
  18023. See the Apache Version 2.0 License for specific language governing permissions
  18024. and limitations under the License.
  18025. ***************************************************************************** */
  18026. /// <reference no-default-lib="true"/>
  18027. interface SymbolConstructor {
  18028. /**
  18029. * A reference to the prototype.
  18030. */
  18031. readonly prototype: Symbol;
  18032. /**
  18033. * Returns a new unique Symbol value.
  18034. * @param description Description of the new Symbol object.
  18035. */
  18036. (description?: string | number): symbol;
  18037. /**
  18038. * Returns a Symbol object from the global symbol registry matching the given key if found.
  18039. * Otherwise, returns a new symbol with this key.
  18040. * @param key key to search for.
  18041. */
  18042. for(key: string): symbol;
  18043. /**
  18044. * Returns a key from the global symbol registry matching the given Symbol if found.
  18045. * Otherwise, returns a undefined.
  18046. * @param sym Symbol to find the key for.
  18047. */
  18048. keyFor(sym: symbol): string | undefined;
  18049. }
  18050. declare var Symbol: SymbolConstructor;`,Oi["lib.es2015.symbol.wellknown.d.ts"]=`/*! *****************************************************************************
  18051. Copyright (c) Microsoft Corporation. All rights reserved.
  18052. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  18053. this file except in compliance with the License. You may obtain a copy of the
  18054. License at http://www.apache.org/licenses/LICENSE-2.0
  18055. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18056. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  18057. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  18058. MERCHANTABLITY OR NON-INFRINGEMENT.
  18059. See the Apache Version 2.0 License for specific language governing permissions
  18060. and limitations under the License.
  18061. ***************************************************************************** */
  18062. /// <reference no-default-lib="true"/>
  18063. /// <reference lib="es2015.symbol" />
  18064. interface SymbolConstructor {
  18065. /**
  18066. * A method that determines if a constructor object recognizes an object as one of the
  18067. * constructor’s instances. Called by the semantics of the instanceof operator.
  18068. */
  18069. readonly hasInstance: unique symbol;
  18070. /**
  18071. * A Boolean value that if true indicates that an object should flatten to its array elements
  18072. * by Array.prototype.concat.
  18073. */
  18074. readonly isConcatSpreadable: unique symbol;
  18075. /**
  18076. * A regular expression method that matches the regular expression against a string. Called
  18077. * by the String.prototype.match method.
  18078. */
  18079. readonly match: unique symbol;
  18080. /**
  18081. * A regular expression method that replaces matched substrings of a string. Called by the
  18082. * String.prototype.replace method.
  18083. */
  18084. readonly replace: unique symbol;
  18085. /**
  18086. * A regular expression method that returns the index within a string that matches the
  18087. * regular expression. Called by the String.prototype.search method.
  18088. */
  18089. readonly search: unique symbol;
  18090. /**
  18091. * A function valued property that is the constructor function that is used to create
  18092. * derived objects.
  18093. */
  18094. readonly species: unique symbol;
  18095. /**
  18096. * A regular expression method that splits a string at the indices that match the regular
  18097. * expression. Called by the String.prototype.split method.
  18098. */
  18099. readonly split: unique symbol;
  18100. /**
  18101. * A method that converts an object to a corresponding primitive value.
  18102. * Called by the ToPrimitive abstract operation.
  18103. */
  18104. readonly toPrimitive: unique symbol;
  18105. /**
  18106. * A String value that is used in the creation of the default string description of an object.
  18107. * Called by the built-in method Object.prototype.toString.
  18108. */
  18109. readonly toStringTag: unique symbol;
  18110. /**
  18111. * An Object whose own property names are property names that are excluded from the 'with'
  18112. * environment bindings of the associated objects.
  18113. */
  18114. readonly unscopables: unique symbol;
  18115. }
  18116. interface Symbol {
  18117. /**
  18118. * Converts a Symbol object to a symbol.
  18119. */
  18120. [Symbol.toPrimitive](hint: string): symbol;
  18121. readonly [Symbol.toStringTag]: string;
  18122. }
  18123. interface Array<T> {
  18124. /**
  18125. * Returns an object whose properties have the value 'true'
  18126. * when they will be absent when used in a 'with' statement.
  18127. */
  18128. [Symbol.unscopables](): {
  18129. copyWithin: boolean;
  18130. entries: boolean;
  18131. fill: boolean;
  18132. find: boolean;
  18133. findIndex: boolean;
  18134. keys: boolean;
  18135. values: boolean;
  18136. };
  18137. }
  18138. interface Date {
  18139. /**
  18140. * Converts a Date object to a string.
  18141. */
  18142. [Symbol.toPrimitive](hint: "default"): string;
  18143. /**
  18144. * Converts a Date object to a string.
  18145. */
  18146. [Symbol.toPrimitive](hint: "string"): string;
  18147. /**
  18148. * Converts a Date object to a number.
  18149. */
  18150. [Symbol.toPrimitive](hint: "number"): number;
  18151. /**
  18152. * Converts a Date object to a string or number.
  18153. *
  18154. * @param hint The strings "number", "string", or "default" to specify what primitive to return.
  18155. *
  18156. * @throws {TypeError} If 'hint' was given something other than "number", "string", or "default".
  18157. * @returns A number if 'hint' was "number", a string if 'hint' was "string" or "default".
  18158. */
  18159. [Symbol.toPrimitive](hint: string): string | number;
  18160. }
  18161. interface Map<K, V> {
  18162. readonly [Symbol.toStringTag]: string;
  18163. }
  18164. interface WeakMap<K extends object, V> {
  18165. readonly [Symbol.toStringTag]: string;
  18166. }
  18167. interface Set<T> {
  18168. readonly [Symbol.toStringTag]: string;
  18169. }
  18170. interface WeakSet<T extends object> {
  18171. readonly [Symbol.toStringTag]: string;
  18172. }
  18173. interface JSON {
  18174. readonly [Symbol.toStringTag]: string;
  18175. }
  18176. interface Function {
  18177. /**
  18178. * Determines whether the given value inherits from this function if this function was used
  18179. * as a constructor function.
  18180. *
  18181. * A constructor function can control which objects are recognized as its instances by
  18182. * 'instanceof' by overriding this method.
  18183. */
  18184. [Symbol.hasInstance](value: any): boolean;
  18185. }
  18186. interface GeneratorFunction {
  18187. readonly [Symbol.toStringTag]: string;
  18188. }
  18189. interface Math {
  18190. readonly [Symbol.toStringTag]: string;
  18191. }
  18192. interface Promise<T> {
  18193. readonly [Symbol.toStringTag]: string;
  18194. }
  18195. interface PromiseConstructor {
  18196. readonly [Symbol.species]: PromiseConstructor;
  18197. }
  18198. interface RegExp {
  18199. /**
  18200. * Matches a string with this regular expression, and returns an array containing the results of
  18201. * that search.
  18202. * @param string A string to search within.
  18203. */
  18204. [Symbol.match](string: string): RegExpMatchArray | null;
  18205. /**
  18206. * Replaces text in a string, using this regular expression.
  18207. * @param string A String object or string literal whose contents matching against
  18208. * this regular expression will be replaced
  18209. * @param replaceValue A String object or string literal containing the text to replace for every
  18210. * successful match of this regular expression.
  18211. */
  18212. [Symbol.replace](string: string, replaceValue: string): string;
  18213. /**
  18214. * Replaces text in a string, using this regular expression.
  18215. * @param string A String object or string literal whose contents matching against
  18216. * this regular expression will be replaced
  18217. * @param replacer A function that returns the replacement text.
  18218. */
  18219. [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
  18220. /**
  18221. * Finds the position beginning first substring match in a regular expression search
  18222. * using this regular expression.
  18223. *
  18224. * @param string The string to search within.
  18225. */
  18226. [Symbol.search](string: string): number;
  18227. /**
  18228. * Returns an array of substrings that were delimited by strings in the original input that
  18229. * match against this regular expression.
  18230. *
  18231. * If the regular expression contains capturing parentheses, then each time this
  18232. * regular expression matches, the results (including any undefined results) of the
  18233. * capturing parentheses are spliced.
  18234. *
  18235. * @param string string value to split
  18236. * @param limit if not undefined, the output array is truncated so that it contains no more
  18237. * than 'limit' elements.
  18238. */
  18239. [Symbol.split](string: string, limit?: number): string[];
  18240. }
  18241. interface RegExpConstructor {
  18242. readonly [Symbol.species]: RegExpConstructor;
  18243. }
  18244. interface String {
  18245. /**
  18246. * Matches a string or an object that supports being matched against, and returns an array
  18247. * containing the results of that search, or null if no matches are found.
  18248. * @param matcher An object that supports being matched against.
  18249. */
  18250. match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;
  18251. /**
  18252. * Replaces first match with string or all matches with RegExp.
  18253. * @param searchValue A string or RegExp search value.
  18254. * @param replaceValue A string containing the text to replace for match.
  18255. */
  18256. replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;
  18257. /**
  18258. * Replaces text in a string, using an object that supports replacement within a string.
  18259. * @param searchValue A object can search for and replace matches within a string.
  18260. * @param replacer A function that returns the replacement text.
  18261. */
  18262. replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;
  18263. /**
  18264. * Finds the first substring match in a regular expression search.
  18265. * @param searcher An object which supports searching within a string.
  18266. */
  18267. search(searcher: { [Symbol.search](string: string): number; }): number;
  18268. /**
  18269. * Split a string into substrings using the specified separator and return them as an array.
  18270. * @param splitter An object that can split a string.
  18271. * @param limit A value used to limit the number of elements returned in the array.
  18272. */
  18273. split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[];
  18274. }
  18275. interface ArrayBuffer {
  18276. readonly [Symbol.toStringTag]: string;
  18277. }
  18278. interface DataView {
  18279. readonly [Symbol.toStringTag]: string;
  18280. }
  18281. interface Int8Array {
  18282. readonly [Symbol.toStringTag]: "Int8Array";
  18283. }
  18284. interface Uint8Array {
  18285. readonly [Symbol.toStringTag]: "Uint8Array";
  18286. }
  18287. interface Uint8ClampedArray {
  18288. readonly [Symbol.toStringTag]: "Uint8ClampedArray";
  18289. }
  18290. interface Int16Array {
  18291. readonly [Symbol.toStringTag]: "Int16Array";
  18292. }
  18293. interface Uint16Array {
  18294. readonly [Symbol.toStringTag]: "Uint16Array";
  18295. }
  18296. interface Int32Array {
  18297. readonly [Symbol.toStringTag]: "Int32Array";
  18298. }
  18299. interface Uint32Array {
  18300. readonly [Symbol.toStringTag]: "Uint32Array";
  18301. }
  18302. interface Float32Array {
  18303. readonly [Symbol.toStringTag]: "Float32Array";
  18304. }
  18305. interface Float64Array {
  18306. readonly [Symbol.toStringTag]: "Float64Array";
  18307. }
  18308. interface ArrayConstructor {
  18309. readonly [Symbol.species]: ArrayConstructor;
  18310. }
  18311. interface MapConstructor {
  18312. readonly [Symbol.species]: MapConstructor;
  18313. }
  18314. interface SetConstructor {
  18315. readonly [Symbol.species]: SetConstructor;
  18316. }
  18317. interface ArrayBufferConstructor {
  18318. readonly [Symbol.species]: ArrayBufferConstructor;
  18319. }
  18320. `,Oi["lib.es2016.array.include.d.ts"]=`/*! *****************************************************************************
  18321. Copyright (c) Microsoft Corporation. All rights reserved.
  18322. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  18323. this file except in compliance with the License. You may obtain a copy of the
  18324. License at http://www.apache.org/licenses/LICENSE-2.0
  18325. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18326. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  18327. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  18328. MERCHANTABLITY OR NON-INFRINGEMENT.
  18329. See the Apache Version 2.0 License for specific language governing permissions
  18330. and limitations under the License.
  18331. ***************************************************************************** */
  18332. /// <reference no-default-lib="true"/>
  18333. interface Array<T> {
  18334. /**
  18335. * Determines whether an array includes a certain element, returning true or false as appropriate.
  18336. * @param searchElement The element to search for.
  18337. * @param fromIndex The position in this array at which to begin searching for searchElement.
  18338. */
  18339. includes(searchElement: T, fromIndex?: number): boolean;
  18340. }
  18341. interface ReadonlyArray<T> {
  18342. /**
  18343. * Determines whether an array includes a certain element, returning true or false as appropriate.
  18344. * @param searchElement The element to search for.
  18345. * @param fromIndex The position in this array at which to begin searching for searchElement.
  18346. */
  18347. includes(searchElement: T, fromIndex?: number): boolean;
  18348. }
  18349. interface Int8Array {
  18350. /**
  18351. * Determines whether an array includes a certain element, returning true or false as appropriate.
  18352. * @param searchElement The element to search for.
  18353. * @param fromIndex The position in this array at which to begin searching for searchElement.
  18354. */
  18355. includes(searchElement: number, fromIndex?: number): boolean;
  18356. }
  18357. interface Uint8Array {
  18358. /**
  18359. * Determines whether an array includes a certain element, returning true or false as appropriate.
  18360. * @param searchElement The element to search for.
  18361. * @param fromIndex The position in this array at which to begin searching for searchElement.
  18362. */
  18363. includes(searchElement: number, fromIndex?: number): boolean;
  18364. }
  18365. interface Uint8ClampedArray {
  18366. /**
  18367. * Determines whether an array includes a certain element, returning true or false as appropriate.
  18368. * @param searchElement The element to search for.
  18369. * @param fromIndex The position in this array at which to begin searching for searchElement.
  18370. */
  18371. includes(searchElement: number, fromIndex?: number): boolean;
  18372. }
  18373. interface Int16Array {
  18374. /**
  18375. * Determines whether an array includes a certain element, returning true or false as appropriate.
  18376. * @param searchElement The element to search for.
  18377. * @param fromIndex The position in this array at which to begin searching for searchElement.
  18378. */
  18379. includes(searchElement: number, fromIndex?: number): boolean;
  18380. }
  18381. interface Uint16Array {
  18382. /**
  18383. * Determines whether an array includes a certain element, returning true or false as appropriate.
  18384. * @param searchElement The element to search for.
  18385. * @param fromIndex The position in this array at which to begin searching for searchElement.
  18386. */
  18387. includes(searchElement: number, fromIndex?: number): boolean;
  18388. }
  18389. interface Int32Array {
  18390. /**
  18391. * Determines whether an array includes a certain element, returning true or false as appropriate.
  18392. * @param searchElement The element to search for.
  18393. * @param fromIndex The position in this array at which to begin searching for searchElement.
  18394. */
  18395. includes(searchElement: number, fromIndex?: number): boolean;
  18396. }
  18397. interface Uint32Array {
  18398. /**
  18399. * Determines whether an array includes a certain element, returning true or false as appropriate.
  18400. * @param searchElement The element to search for.
  18401. * @param fromIndex The position in this array at which to begin searching for searchElement.
  18402. */
  18403. includes(searchElement: number, fromIndex?: number): boolean;
  18404. }
  18405. interface Float32Array {
  18406. /**
  18407. * Determines whether an array includes a certain element, returning true or false as appropriate.
  18408. * @param searchElement The element to search for.
  18409. * @param fromIndex The position in this array at which to begin searching for searchElement.
  18410. */
  18411. includes(searchElement: number, fromIndex?: number): boolean;
  18412. }
  18413. interface Float64Array {
  18414. /**
  18415. * Determines whether an array includes a certain element, returning true or false as appropriate.
  18416. * @param searchElement The element to search for.
  18417. * @param fromIndex The position in this array at which to begin searching for searchElement.
  18418. */
  18419. includes(searchElement: number, fromIndex?: number): boolean;
  18420. }`,Oi["lib.es2016.d.ts"]=`/*! *****************************************************************************
  18421. Copyright (c) Microsoft Corporation. All rights reserved.
  18422. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  18423. this file except in compliance with the License. You may obtain a copy of the
  18424. License at http://www.apache.org/licenses/LICENSE-2.0
  18425. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18426. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  18427. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  18428. MERCHANTABLITY OR NON-INFRINGEMENT.
  18429. See the Apache Version 2.0 License for specific language governing permissions
  18430. and limitations under the License.
  18431. ***************************************************************************** */
  18432. /// <reference no-default-lib="true"/>
  18433. /// <reference lib="es2015" />
  18434. /// <reference lib="es2016.array.include" />`,Oi["lib.es2016.full.d.ts"]=`/*! *****************************************************************************
  18435. Copyright (c) Microsoft Corporation. All rights reserved.
  18436. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  18437. this file except in compliance with the License. You may obtain a copy of the
  18438. License at http://www.apache.org/licenses/LICENSE-2.0
  18439. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18440. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  18441. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  18442. MERCHANTABLITY OR NON-INFRINGEMENT.
  18443. See the Apache Version 2.0 License for specific language governing permissions
  18444. and limitations under the License.
  18445. ***************************************************************************** */
  18446. /// <reference no-default-lib="true"/>
  18447. /// <reference lib="es2016" />
  18448. /// <reference lib="dom" />
  18449. /// <reference lib="webworker.importscripts" />
  18450. /// <reference lib="scripthost" />
  18451. /// <reference lib="dom.iterable" />`,Oi["lib.es2017.d.ts"]=`/*! *****************************************************************************
  18452. Copyright (c) Microsoft Corporation. All rights reserved.
  18453. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  18454. this file except in compliance with the License. You may obtain a copy of the
  18455. License at http://www.apache.org/licenses/LICENSE-2.0
  18456. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18457. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  18458. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  18459. MERCHANTABLITY OR NON-INFRINGEMENT.
  18460. See the Apache Version 2.0 License for specific language governing permissions
  18461. and limitations under the License.
  18462. ***************************************************************************** */
  18463. /// <reference no-default-lib="true"/>
  18464. /// <reference lib="es2016" />
  18465. /// <reference lib="es2017.object" />
  18466. /// <reference lib="es2017.sharedmemory" />
  18467. /// <reference lib="es2017.string" />
  18468. /// <reference lib="es2017.intl" />
  18469. /// <reference lib="es2017.typedarrays" />
  18470. `,Oi["lib.es2017.full.d.ts"]=`/*! *****************************************************************************
  18471. Copyright (c) Microsoft Corporation. All rights reserved.
  18472. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  18473. this file except in compliance with the License. You may obtain a copy of the
  18474. License at http://www.apache.org/licenses/LICENSE-2.0
  18475. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18476. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  18477. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  18478. MERCHANTABLITY OR NON-INFRINGEMENT.
  18479. See the Apache Version 2.0 License for specific language governing permissions
  18480. and limitations under the License.
  18481. ***************************************************************************** */
  18482. /// <reference no-default-lib="true"/>
  18483. /// <reference lib="es2017" />
  18484. /// <reference lib="dom" />
  18485. /// <reference lib="webworker.importscripts" />
  18486. /// <reference lib="scripthost" />
  18487. /// <reference lib="dom.iterable" />`,Oi["lib.es2017.intl.d.ts"]=`/*! *****************************************************************************
  18488. Copyright (c) Microsoft Corporation. All rights reserved.
  18489. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  18490. this file except in compliance with the License. You may obtain a copy of the
  18491. License at http://www.apache.org/licenses/LICENSE-2.0
  18492. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18493. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  18494. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  18495. MERCHANTABLITY OR NON-INFRINGEMENT.
  18496. See the Apache Version 2.0 License for specific language governing permissions
  18497. and limitations under the License.
  18498. ***************************************************************************** */
  18499. /// <reference no-default-lib="true"/>
  18500. declare namespace Intl {
  18501. type DateTimeFormatPartTypes = "day" | "dayPeriod" | "era" | "hour" | "literal" | "minute" | "month" | "second" | "timeZoneName" | "weekday" | "year";
  18502. interface DateTimeFormatPart {
  18503. type: DateTimeFormatPartTypes;
  18504. value: string;
  18505. }
  18506. interface DateTimeFormat {
  18507. formatToParts(date?: Date | number): DateTimeFormatPart[];
  18508. }
  18509. }
  18510. `,Oi["lib.es2017.object.d.ts"]=`/*! *****************************************************************************
  18511. Copyright (c) Microsoft Corporation. All rights reserved.
  18512. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  18513. this file except in compliance with the License. You may obtain a copy of the
  18514. License at http://www.apache.org/licenses/LICENSE-2.0
  18515. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18516. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  18517. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  18518. MERCHANTABLITY OR NON-INFRINGEMENT.
  18519. See the Apache Version 2.0 License for specific language governing permissions
  18520. and limitations under the License.
  18521. ***************************************************************************** */
  18522. /// <reference no-default-lib="true"/>
  18523. interface ObjectConstructor {
  18524. /**
  18525. * Returns an array of values of the enumerable properties of an object
  18526. * @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.
  18527. */
  18528. values<T>(o: { [s: string]: T } | ArrayLike<T>): T[];
  18529. /**
  18530. * Returns an array of values of the enumerable properties of an object
  18531. * @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.
  18532. */
  18533. values(o: {}): any[];
  18534. /**
  18535. * Returns an array of key/values of the enumerable properties of an object
  18536. * @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.
  18537. */
  18538. entries<T>(o: { [s: string]: T } | ArrayLike<T>): [string, T][];
  18539. /**
  18540. * Returns an array of key/values of the enumerable properties of an object
  18541. * @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.
  18542. */
  18543. entries(o: {}): [string, any][];
  18544. /**
  18545. * Returns an object containing all own property descriptors of an object
  18546. * @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.
  18547. */
  18548. getOwnPropertyDescriptors<T>(o: T): {[P in keyof T]: TypedPropertyDescriptor<T[P]>} & { [x: string]: PropertyDescriptor };
  18549. }
  18550. `,Oi["lib.es2017.sharedmemory.d.ts"]=`/*! *****************************************************************************
  18551. Copyright (c) Microsoft Corporation. All rights reserved.
  18552. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  18553. this file except in compliance with the License. You may obtain a copy of the
  18554. License at http://www.apache.org/licenses/LICENSE-2.0
  18555. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18556. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  18557. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  18558. MERCHANTABLITY OR NON-INFRINGEMENT.
  18559. See the Apache Version 2.0 License for specific language governing permissions
  18560. and limitations under the License.
  18561. ***************************************************************************** */
  18562. /// <reference no-default-lib="true"/>
  18563. /// <reference lib="es2015.symbol" />
  18564. /// <reference lib="es2015.symbol.wellknown" />
  18565. interface SharedArrayBuffer {
  18566. /**
  18567. * Read-only. The length of the ArrayBuffer (in bytes).
  18568. */
  18569. readonly byteLength: number;
  18570. /**
  18571. * Returns a section of an SharedArrayBuffer.
  18572. */
  18573. slice(begin: number, end?: number): SharedArrayBuffer;
  18574. readonly [Symbol.species]: SharedArrayBuffer;
  18575. readonly [Symbol.toStringTag]: "SharedArrayBuffer";
  18576. }
  18577. interface SharedArrayBufferConstructor {
  18578. readonly prototype: SharedArrayBuffer;
  18579. new (byteLength: number): SharedArrayBuffer;
  18580. }
  18581. declare var SharedArrayBuffer: SharedArrayBufferConstructor;
  18582. interface ArrayBufferTypes {
  18583. SharedArrayBuffer: SharedArrayBuffer;
  18584. }
  18585. interface Atomics {
  18586. /**
  18587. * Adds a value to the value at the given position in the array, returning the original value.
  18588. * Until this atomic operation completes, any other read or write operation against the array
  18589. * will block.
  18590. */
  18591. add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
  18592. /**
  18593. * Stores the bitwise AND of a value with the value at the given position in the array,
  18594. * returning the original value. Until this atomic operation completes, any other read or
  18595. * write operation against the array will block.
  18596. */
  18597. and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
  18598. /**
  18599. * Replaces the value at the given position in the array if the original value equals the given
  18600. * expected value, returning the original value. Until this atomic operation completes, any
  18601. * other read or write operation against the array will block.
  18602. */
  18603. compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number): number;
  18604. /**
  18605. * Replaces the value at the given position in the array, returning the original value. Until
  18606. * this atomic operation completes, any other read or write operation against the array will
  18607. * block.
  18608. */
  18609. exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
  18610. /**
  18611. * Returns a value indicating whether high-performance algorithms can use atomic operations
  18612. * (\`true\`) or must use locks (\`false\`) for the given number of bytes-per-element of a typed
  18613. * array.
  18614. */
  18615. isLockFree(size: number): boolean;
  18616. /**
  18617. * Returns the value at the given position in the array. Until this atomic operation completes,
  18618. * any other read or write operation against the array will block.
  18619. */
  18620. load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number): number;
  18621. /**
  18622. * Stores the bitwise OR of a value with the value at the given position in the array,
  18623. * returning the original value. Until this atomic operation completes, any other read or write
  18624. * operation against the array will block.
  18625. */
  18626. or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
  18627. /**
  18628. * Stores a value at the given position in the array, returning the new value. Until this
  18629. * atomic operation completes, any other read or write operation against the array will block.
  18630. */
  18631. store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
  18632. /**
  18633. * Subtracts a value from the value at the given position in the array, returning the original
  18634. * value. Until this atomic operation completes, any other read or write operation against the
  18635. * array will block.
  18636. */
  18637. sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
  18638. /**
  18639. * If the value at the given position in the array is equal to the provided value, the current
  18640. * agent is put to sleep causing execution to suspend until the timeout expires (returning
  18641. * \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns
  18642. * \`"not-equal"\`.
  18643. */
  18644. wait(typedArray: Int32Array, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out";
  18645. /**
  18646. * Wakes up sleeping agents that are waiting on the given index of the array, returning the
  18647. * number of agents that were awoken.
  18648. * @param typedArray A shared Int32Array.
  18649. * @param index The position in the typedArray to wake up on.
  18650. * @param count The number of sleeping agents to notify. Defaults to +Infinity.
  18651. */
  18652. notify(typedArray: Int32Array, index: number, count?: number): number;
  18653. /**
  18654. * Stores the bitwise XOR of a value with the value at the given position in the array,
  18655. * returning the original value. Until this atomic operation completes, any other read or write
  18656. * operation against the array will block.
  18657. */
  18658. xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
  18659. readonly [Symbol.toStringTag]: "Atomics";
  18660. }
  18661. declare var Atomics: Atomics;
  18662. `,Oi["lib.es2017.string.d.ts"]=`/*! *****************************************************************************
  18663. Copyright (c) Microsoft Corporation. All rights reserved.
  18664. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  18665. this file except in compliance with the License. You may obtain a copy of the
  18666. License at http://www.apache.org/licenses/LICENSE-2.0
  18667. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18668. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  18669. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  18670. MERCHANTABLITY OR NON-INFRINGEMENT.
  18671. See the Apache Version 2.0 License for specific language governing permissions
  18672. and limitations under the License.
  18673. ***************************************************************************** */
  18674. /// <reference no-default-lib="true"/>
  18675. interface String {
  18676. /**
  18677. * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
  18678. * The padding is applied from the start (left) of the current string.
  18679. *
  18680. * @param maxLength The length of the resulting string once the current string has been padded.
  18681. * If this parameter is smaller than the current string's length, the current string will be returned as it is.
  18682. *
  18683. * @param fillString The string to pad the current string with.
  18684. * If this string is too long, it will be truncated and the left-most part will be applied.
  18685. * The default value for this parameter is " " (U+0020).
  18686. */
  18687. padStart(maxLength: number, fillString?: string): string;
  18688. /**
  18689. * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
  18690. * The padding is applied from the end (right) of the current string.
  18691. *
  18692. * @param maxLength The length of the resulting string once the current string has been padded.
  18693. * If this parameter is smaller than the current string's length, the current string will be returned as it is.
  18694. *
  18695. * @param fillString The string to pad the current string with.
  18696. * If this string is too long, it will be truncated and the left-most part will be applied.
  18697. * The default value for this parameter is " " (U+0020).
  18698. */
  18699. padEnd(maxLength: number, fillString?: string): string;
  18700. }
  18701. `,Oi["lib.es2017.typedarrays.d.ts"]=`/*! *****************************************************************************
  18702. Copyright (c) Microsoft Corporation. All rights reserved.
  18703. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  18704. this file except in compliance with the License. You may obtain a copy of the
  18705. License at http://www.apache.org/licenses/LICENSE-2.0
  18706. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18707. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  18708. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  18709. MERCHANTABLITY OR NON-INFRINGEMENT.
  18710. See the Apache Version 2.0 License for specific language governing permissions
  18711. and limitations under the License.
  18712. ***************************************************************************** */
  18713. /// <reference no-default-lib="true"/>
  18714. interface Int8ArrayConstructor {
  18715. new (): Int8Array;
  18716. }
  18717. interface Uint8ArrayConstructor {
  18718. new (): Uint8Array;
  18719. }
  18720. interface Uint8ClampedArrayConstructor {
  18721. new (): Uint8ClampedArray;
  18722. }
  18723. interface Int16ArrayConstructor {
  18724. new (): Int16Array;
  18725. }
  18726. interface Uint16ArrayConstructor {
  18727. new (): Uint16Array;
  18728. }
  18729. interface Int32ArrayConstructor {
  18730. new (): Int32Array;
  18731. }
  18732. interface Uint32ArrayConstructor {
  18733. new (): Uint32Array;
  18734. }
  18735. interface Float32ArrayConstructor {
  18736. new (): Float32Array;
  18737. }
  18738. interface Float64ArrayConstructor {
  18739. new (): Float64Array;
  18740. }
  18741. `,Oi["lib.es2018.asyncgenerator.d.ts"]=`/*! *****************************************************************************
  18742. Copyright (c) Microsoft Corporation. All rights reserved.
  18743. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  18744. this file except in compliance with the License. You may obtain a copy of the
  18745. License at http://www.apache.org/licenses/LICENSE-2.0
  18746. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18747. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  18748. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  18749. MERCHANTABLITY OR NON-INFRINGEMENT.
  18750. See the Apache Version 2.0 License for specific language governing permissions
  18751. and limitations under the License.
  18752. ***************************************************************************** */
  18753. /// <reference no-default-lib="true"/>
  18754. /// <reference lib="es2018.asynciterable" />
  18755. interface AsyncGenerator<T = unknown, TReturn = any, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {
  18756. // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
  18757. next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
  18758. return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
  18759. throw(e: any): Promise<IteratorResult<T, TReturn>>;
  18760. [Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;
  18761. }
  18762. interface AsyncGeneratorFunction {
  18763. /**
  18764. * Creates a new AsyncGenerator object.
  18765. * @param args A list of arguments the function accepts.
  18766. */
  18767. new (...args: any[]): AsyncGenerator;
  18768. /**
  18769. * Creates a new AsyncGenerator object.
  18770. * @param args A list of arguments the function accepts.
  18771. */
  18772. (...args: any[]): AsyncGenerator;
  18773. /**
  18774. * The length of the arguments.
  18775. */
  18776. readonly length: number;
  18777. /**
  18778. * Returns the name of the function.
  18779. */
  18780. readonly name: string;
  18781. /**
  18782. * A reference to the prototype.
  18783. */
  18784. readonly prototype: AsyncGenerator;
  18785. }
  18786. interface AsyncGeneratorFunctionConstructor {
  18787. /**
  18788. * Creates a new AsyncGenerator function.
  18789. * @param args A list of arguments the function accepts.
  18790. */
  18791. new (...args: string[]): AsyncGeneratorFunction;
  18792. /**
  18793. * Creates a new AsyncGenerator function.
  18794. * @param args A list of arguments the function accepts.
  18795. */
  18796. (...args: string[]): AsyncGeneratorFunction;
  18797. /**
  18798. * The length of the arguments.
  18799. */
  18800. readonly length: number;
  18801. /**
  18802. * Returns the name of the function.
  18803. */
  18804. readonly name: string;
  18805. /**
  18806. * A reference to the prototype.
  18807. */
  18808. readonly prototype: AsyncGeneratorFunction;
  18809. }
  18810. `,Oi["lib.es2018.asynciterable.d.ts"]=`/*! *****************************************************************************
  18811. Copyright (c) Microsoft Corporation. All rights reserved.
  18812. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  18813. this file except in compliance with the License. You may obtain a copy of the
  18814. License at http://www.apache.org/licenses/LICENSE-2.0
  18815. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18816. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  18817. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  18818. MERCHANTABLITY OR NON-INFRINGEMENT.
  18819. See the Apache Version 2.0 License for specific language governing permissions
  18820. and limitations under the License.
  18821. ***************************************************************************** */
  18822. /// <reference no-default-lib="true"/>
  18823. /// <reference lib="es2015.symbol" />
  18824. /// <reference lib="es2015.iterable" />
  18825. interface SymbolConstructor {
  18826. /**
  18827. * A method that returns the default async iterator for an object. Called by the semantics of
  18828. * the for-await-of statement.
  18829. */
  18830. readonly asyncIterator: unique symbol;
  18831. }
  18832. interface AsyncIterator<T, TReturn = any, TNext = undefined> {
  18833. // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
  18834. next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
  18835. return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
  18836. throw?(e?: any): Promise<IteratorResult<T, TReturn>>;
  18837. }
  18838. interface AsyncIterable<T> {
  18839. [Symbol.asyncIterator](): AsyncIterator<T>;
  18840. }
  18841. interface AsyncIterableIterator<T> extends AsyncIterator<T> {
  18842. [Symbol.asyncIterator](): AsyncIterableIterator<T>;
  18843. }`,Oi["lib.es2018.d.ts"]=`/*! *****************************************************************************
  18844. Copyright (c) Microsoft Corporation. All rights reserved.
  18845. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  18846. this file except in compliance with the License. You may obtain a copy of the
  18847. License at http://www.apache.org/licenses/LICENSE-2.0
  18848. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18849. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  18850. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  18851. MERCHANTABLITY OR NON-INFRINGEMENT.
  18852. See the Apache Version 2.0 License for specific language governing permissions
  18853. and limitations under the License.
  18854. ***************************************************************************** */
  18855. /// <reference no-default-lib="true"/>
  18856. /// <reference lib="es2017" />
  18857. /// <reference lib="es2018.asynciterable" />
  18858. /// <reference lib="es2018.asyncgenerator" />
  18859. /// <reference lib="es2018.promise" />
  18860. /// <reference lib="es2018.regexp" />
  18861. /// <reference lib="es2018.intl" />
  18862. `,Oi["lib.es2018.full.d.ts"]=`/*! *****************************************************************************
  18863. Copyright (c) Microsoft Corporation. All rights reserved.
  18864. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  18865. this file except in compliance with the License. You may obtain a copy of the
  18866. License at http://www.apache.org/licenses/LICENSE-2.0
  18867. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18868. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  18869. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  18870. MERCHANTABLITY OR NON-INFRINGEMENT.
  18871. See the Apache Version 2.0 License for specific language governing permissions
  18872. and limitations under the License.
  18873. ***************************************************************************** */
  18874. /// <reference no-default-lib="true"/>
  18875. /// <reference lib="es2018" />
  18876. /// <reference lib="dom" />
  18877. /// <reference lib="webworker.importscripts" />
  18878. /// <reference lib="scripthost" />
  18879. /// <reference lib="dom.iterable" />`,Oi["lib.es2018.intl.d.ts"]=`/*! *****************************************************************************
  18880. Copyright (c) Microsoft Corporation. All rights reserved.
  18881. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  18882. this file except in compliance with the License. You may obtain a copy of the
  18883. License at http://www.apache.org/licenses/LICENSE-2.0
  18884. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18885. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  18886. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  18887. MERCHANTABLITY OR NON-INFRINGEMENT.
  18888. See the Apache Version 2.0 License for specific language governing permissions
  18889. and limitations under the License.
  18890. ***************************************************************************** */
  18891. /// <reference no-default-lib="true"/>
  18892. declare namespace Intl {
  18893. // http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories
  18894. type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other";
  18895. type PluralRuleType = "cardinal" | "ordinal";
  18896. interface PluralRulesOptions {
  18897. localeMatcher?: "lookup" | "best fit" | undefined;
  18898. type?: PluralRuleType | undefined;
  18899. minimumIntegerDigits?: number | undefined;
  18900. minimumFractionDigits?: number | undefined;
  18901. maximumFractionDigits?: number | undefined;
  18902. minimumSignificantDigits?: number | undefined;
  18903. maximumSignificantDigits?: number | undefined;
  18904. }
  18905. interface ResolvedPluralRulesOptions {
  18906. locale: string;
  18907. pluralCategories: LDMLPluralRule[];
  18908. type: PluralRuleType;
  18909. minimumIntegerDigits: number;
  18910. minimumFractionDigits: number;
  18911. maximumFractionDigits: number;
  18912. minimumSignificantDigits?: number;
  18913. maximumSignificantDigits?: number;
  18914. }
  18915. interface PluralRules {
  18916. resolvedOptions(): ResolvedPluralRulesOptions;
  18917. select(n: number): LDMLPluralRule;
  18918. }
  18919. const PluralRules: {
  18920. new (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
  18921. (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
  18922. supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit" }): string[];
  18923. };
  18924. // We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
  18925. type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";
  18926. type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";
  18927. type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;
  18928. interface NumberFormatPart {
  18929. type: NumberFormatPartTypes;
  18930. value: string;
  18931. }
  18932. interface NumberFormat {
  18933. formatToParts(number?: number | bigint): NumberFormatPart[];
  18934. }
  18935. }
  18936. `,Oi["lib.es2018.promise.d.ts"]=`/*! *****************************************************************************
  18937. Copyright (c) Microsoft Corporation. All rights reserved.
  18938. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  18939. this file except in compliance with the License. You may obtain a copy of the
  18940. License at http://www.apache.org/licenses/LICENSE-2.0
  18941. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18942. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  18943. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  18944. MERCHANTABLITY OR NON-INFRINGEMENT.
  18945. See the Apache Version 2.0 License for specific language governing permissions
  18946. and limitations under the License.
  18947. ***************************************************************************** */
  18948. /// <reference no-default-lib="true"/>
  18949. /**
  18950. * Represents the completion of an asynchronous operation
  18951. */
  18952. interface Promise<T> {
  18953. /**
  18954. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  18955. * resolved value cannot be modified from the callback.
  18956. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  18957. * @returns A Promise for the completion of the callback.
  18958. */
  18959. finally(onfinally?: (() => void) | undefined | null): Promise<T>
  18960. }
  18961. `,Oi["lib.es2018.regexp.d.ts"]=`/*! *****************************************************************************
  18962. Copyright (c) Microsoft Corporation. All rights reserved.
  18963. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  18964. this file except in compliance with the License. You may obtain a copy of the
  18965. License at http://www.apache.org/licenses/LICENSE-2.0
  18966. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18967. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  18968. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  18969. MERCHANTABLITY OR NON-INFRINGEMENT.
  18970. See the Apache Version 2.0 License for specific language governing permissions
  18971. and limitations under the License.
  18972. ***************************************************************************** */
  18973. /// <reference no-default-lib="true"/>
  18974. interface RegExpMatchArray {
  18975. groups?: {
  18976. [key: string]: string
  18977. }
  18978. }
  18979. interface RegExpExecArray {
  18980. groups?: {
  18981. [key: string]: string
  18982. }
  18983. }
  18984. interface RegExp {
  18985. /**
  18986. * Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression.
  18987. * Default is false. Read-only.
  18988. */
  18989. readonly dotAll: boolean;
  18990. }`,Oi["lib.es2019.array.d.ts"]=`/*! *****************************************************************************
  18991. Copyright (c) Microsoft Corporation. All rights reserved.
  18992. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  18993. this file except in compliance with the License. You may obtain a copy of the
  18994. License at http://www.apache.org/licenses/LICENSE-2.0
  18995. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18996. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  18997. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  18998. MERCHANTABLITY OR NON-INFRINGEMENT.
  18999. See the Apache Version 2.0 License for specific language governing permissions
  19000. and limitations under the License.
  19001. ***************************************************************************** */
  19002. /// <reference no-default-lib="true"/>
  19003. type FlatArray<Arr, Depth extends number> = {
  19004. "done": Arr,
  19005. "recur": Arr extends ReadonlyArray<infer InnerArr>
  19006. ? 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]>
  19007. : Arr
  19008. }[Depth extends -1 ? "done" : "recur"];
  19009. interface ReadonlyArray<T> {
  19010. /**
  19011. * Calls a defined callback function on each element of an array. Then, flattens the result into
  19012. * a new array.
  19013. * This is identical to a map followed by flat with depth 1.
  19014. *
  19015. * @param callback A function that accepts up to three arguments. The flatMap method calls the
  19016. * callback function one time for each element in the array.
  19017. * @param thisArg An object to which the this keyword can refer in the callback function. If
  19018. * thisArg is omitted, undefined is used as the this value.
  19019. */
  19020. flatMap<U, This = undefined> (
  19021. callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
  19022. thisArg?: This
  19023. ): U[]
  19024. /**
  19025. * Returns a new array with all sub-array elements concatenated into it recursively up to the
  19026. * specified depth.
  19027. *
  19028. * @param depth The maximum recursion depth
  19029. */
  19030. flat<A, D extends number = 1>(
  19031. this: A,
  19032. depth?: D
  19033. ): FlatArray<A, D>[]
  19034. }
  19035. interface Array<T> {
  19036. /**
  19037. * Calls a defined callback function on each element of an array. Then, flattens the result into
  19038. * a new array.
  19039. * This is identical to a map followed by flat with depth 1.
  19040. *
  19041. * @param callback A function that accepts up to three arguments. The flatMap method calls the
  19042. * callback function one time for each element in the array.
  19043. * @param thisArg An object to which the this keyword can refer in the callback function. If
  19044. * thisArg is omitted, undefined is used as the this value.
  19045. */
  19046. flatMap<U, This = undefined> (
  19047. callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
  19048. thisArg?: This
  19049. ): U[]
  19050. /**
  19051. * Returns a new array with all sub-array elements concatenated into it recursively up to the
  19052. * specified depth.
  19053. *
  19054. * @param depth The maximum recursion depth
  19055. */
  19056. flat<A, D extends number = 1>(
  19057. this: A,
  19058. depth?: D
  19059. ): FlatArray<A, D>[]
  19060. }
  19061. `,Oi["lib.es2019.d.ts"]=`/*! *****************************************************************************
  19062. Copyright (c) Microsoft Corporation. All rights reserved.
  19063. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  19064. this file except in compliance with the License. You may obtain a copy of the
  19065. License at http://www.apache.org/licenses/LICENSE-2.0
  19066. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  19067. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  19068. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  19069. MERCHANTABLITY OR NON-INFRINGEMENT.
  19070. See the Apache Version 2.0 License for specific language governing permissions
  19071. and limitations under the License.
  19072. ***************************************************************************** */
  19073. /// <reference no-default-lib="true"/>
  19074. /// <reference lib="es2018" />
  19075. /// <reference lib="es2019.array" />
  19076. /// <reference lib="es2019.object" />
  19077. /// <reference lib="es2019.string" />
  19078. /// <reference lib="es2019.symbol" />
  19079. `,Oi["lib.es2019.full.d.ts"]=`/*! *****************************************************************************
  19080. Copyright (c) Microsoft Corporation. All rights reserved.
  19081. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  19082. this file except in compliance with the License. You may obtain a copy of the
  19083. License at http://www.apache.org/licenses/LICENSE-2.0
  19084. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  19085. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  19086. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  19087. MERCHANTABLITY OR NON-INFRINGEMENT.
  19088. See the Apache Version 2.0 License for specific language governing permissions
  19089. and limitations under the License.
  19090. ***************************************************************************** */
  19091. /// <reference no-default-lib="true"/>
  19092. /// <reference lib="es2019" />
  19093. /// <reference lib="dom" />
  19094. /// <reference lib="webworker.importscripts" />
  19095. /// <reference lib="scripthost" />
  19096. /// <reference lib="dom.iterable" />
  19097. `,Oi["lib.es2019.object.d.ts"]=`/*! *****************************************************************************
  19098. Copyright (c) Microsoft Corporation. All rights reserved.
  19099. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  19100. this file except in compliance with the License. You may obtain a copy of the
  19101. License at http://www.apache.org/licenses/LICENSE-2.0
  19102. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  19103. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  19104. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  19105. MERCHANTABLITY OR NON-INFRINGEMENT.
  19106. See the Apache Version 2.0 License for specific language governing permissions
  19107. and limitations under the License.
  19108. ***************************************************************************** */
  19109. /// <reference no-default-lib="true"/>
  19110. /// <reference lib="es2015.iterable" />
  19111. interface ObjectConstructor {
  19112. /**
  19113. * Returns an object created by key-value entries for properties and methods
  19114. * @param entries An iterable object that contains key-value entries for properties and methods.
  19115. */
  19116. fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T };
  19117. /**
  19118. * Returns an object created by key-value entries for properties and methods
  19119. * @param entries An iterable object that contains key-value entries for properties and methods.
  19120. */
  19121. fromEntries(entries: Iterable<readonly any[]>): any;
  19122. }
  19123. `,Oi["lib.es2019.string.d.ts"]=`/*! *****************************************************************************
  19124. Copyright (c) Microsoft Corporation. All rights reserved.
  19125. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  19126. this file except in compliance with the License. You may obtain a copy of the
  19127. License at http://www.apache.org/licenses/LICENSE-2.0
  19128. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  19129. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  19130. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  19131. MERCHANTABLITY OR NON-INFRINGEMENT.
  19132. See the Apache Version 2.0 License for specific language governing permissions
  19133. and limitations under the License.
  19134. ***************************************************************************** */
  19135. /// <reference no-default-lib="true"/>
  19136. interface String {
  19137. /** Removes the trailing white space and line terminator characters from a string. */
  19138. trimEnd(): string;
  19139. /** Removes the leading white space and line terminator characters from a string. */
  19140. trimStart(): string;
  19141. /**
  19142. * Removes the leading white space and line terminator characters from a string.
  19143. * @deprecated A legacy feature for browser compatibility. Use \`trimStart\` instead
  19144. */
  19145. trimLeft(): string;
  19146. /**
  19147. * Removes the trailing white space and line terminator characters from a string.
  19148. * @deprecated A legacy feature for browser compatibility. Use \`trimEnd\` instead
  19149. */
  19150. trimRight(): string;
  19151. }
  19152. `,Oi["lib.es2019.symbol.d.ts"]=`/*! *****************************************************************************
  19153. Copyright (c) Microsoft Corporation. All rights reserved.
  19154. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  19155. this file except in compliance with the License. You may obtain a copy of the
  19156. License at http://www.apache.org/licenses/LICENSE-2.0
  19157. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  19158. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  19159. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  19160. MERCHANTABLITY OR NON-INFRINGEMENT.
  19161. See the Apache Version 2.0 License for specific language governing permissions
  19162. and limitations under the License.
  19163. ***************************************************************************** */
  19164. /// <reference no-default-lib="true"/>
  19165. interface Symbol {
  19166. /**
  19167. * Expose the [[Description]] internal slot of a symbol directly.
  19168. */
  19169. readonly description: string | undefined;
  19170. }
  19171. `,Oi["lib.es2020.bigint.d.ts"]=`/*! *****************************************************************************
  19172. Copyright (c) Microsoft Corporation. All rights reserved.
  19173. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  19174. this file except in compliance with the License. You may obtain a copy of the
  19175. License at http://www.apache.org/licenses/LICENSE-2.0
  19176. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  19177. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  19178. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  19179. MERCHANTABLITY OR NON-INFRINGEMENT.
  19180. See the Apache Version 2.0 License for specific language governing permissions
  19181. and limitations under the License.
  19182. ***************************************************************************** */
  19183. /// <reference no-default-lib="true"/>
  19184. interface BigIntToLocaleStringOptions {
  19185. /**
  19186. * 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}.
  19187. */
  19188. localeMatcher?: string;
  19189. /**
  19190. * The formatting style to use , the default is "decimal".
  19191. */
  19192. style?: string;
  19193. numberingSystem?: string;
  19194. /**
  19195. * 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.
  19196. */
  19197. unit?: string;
  19198. /**
  19199. * The unit formatting style to use in unit formatting, the defaults is "short".
  19200. */
  19201. unitDisplay?: string;
  19202. /**
  19203. * 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".
  19204. */
  19205. currency?: string;
  19206. /**
  19207. * How to display the currency in currency formatting. It is only used when [[Style]] has the value "currency". The default is "symbol".
  19208. *
  19209. * "symbol" to use a localized currency symbol such as €,
  19210. *
  19211. * "code" to use the ISO currency code,
  19212. *
  19213. * "name" to use a localized currency name such as "dollar"
  19214. */
  19215. currencyDisplay?: string;
  19216. /**
  19217. * Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true.
  19218. */
  19219. useGrouping?: boolean;
  19220. /**
  19221. * The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.
  19222. */
  19223. minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
  19224. /**
  19225. * 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).
  19226. */
  19227. minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
  19228. /**
  19229. * 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.
  19230. */
  19231. maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
  19232. /**
  19233. * The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.
  19234. */
  19235. minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
  19236. /**
  19237. * The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.
  19238. */
  19239. maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
  19240. /**
  19241. * The formatting that should be displayed for the number, the defaults is "standard"
  19242. *
  19243. * "standard" plain number formatting
  19244. *
  19245. * "scientific" return the order-of-magnitude for formatted number.
  19246. *
  19247. * "engineering" return the exponent of ten when divisible by three
  19248. *
  19249. * "compact" string representing exponent, defaults is using the "short" form
  19250. */
  19251. notation?: string;
  19252. /**
  19253. * used only when notation is "compact"
  19254. */
  19255. compactDisplay?: string;
  19256. }
  19257. interface BigInt {
  19258. /**
  19259. * Returns a string representation of an object.
  19260. * @param radix Specifies a radix for converting numeric values to strings.
  19261. */
  19262. toString(radix?: number): string;
  19263. /** Returns a string representation appropriate to the host environment's current locale. */
  19264. toLocaleString(locales?: string, options?: BigIntToLocaleStringOptions): string;
  19265. /** Returns the primitive value of the specified object. */
  19266. valueOf(): bigint;
  19267. readonly [Symbol.toStringTag]: "BigInt";
  19268. }
  19269. interface BigIntConstructor {
  19270. (value: bigint | boolean | number | string): bigint;
  19271. readonly prototype: BigInt;
  19272. /**
  19273. * Interprets the low bits of a BigInt as a 2's-complement signed integer.
  19274. * All higher bits are discarded.
  19275. * @param bits The number of low bits to use
  19276. * @param int The BigInt whose bits to extract
  19277. */
  19278. asIntN(bits: number, int: bigint): bigint;
  19279. /**
  19280. * Interprets the low bits of a BigInt as an unsigned integer.
  19281. * All higher bits are discarded.
  19282. * @param bits The number of low bits to use
  19283. * @param int The BigInt whose bits to extract
  19284. */
  19285. asUintN(bits: number, int: bigint): bigint;
  19286. }
  19287. declare var BigInt: BigIntConstructor;
  19288. /**
  19289. * A typed array of 64-bit signed integer values. The contents are initialized to 0. If the
  19290. * requested number of bytes could not be allocated, an exception is raised.
  19291. */
  19292. interface BigInt64Array {
  19293. /** The size in bytes of each element in the array. */
  19294. readonly BYTES_PER_ELEMENT: number;
  19295. /** The ArrayBuffer instance referenced by the array. */
  19296. readonly buffer: ArrayBufferLike;
  19297. /** The length in bytes of the array. */
  19298. readonly byteLength: number;
  19299. /** The offset in bytes of the array. */
  19300. readonly byteOffset: number;
  19301. /**
  19302. * Returns the this object after copying a section of the array identified by start and end
  19303. * to the same array starting at position target
  19304. * @param target If target is negative, it is treated as length+target where length is the
  19305. * length of the array.
  19306. * @param start If start is negative, it is treated as length+start. If end is negative, it
  19307. * is treated as length+end.
  19308. * @param end If not specified, length of the this object is used as its default value.
  19309. */
  19310. copyWithin(target: number, start: number, end?: number): this;
  19311. /** Yields index, value pairs for every entry in the array. */
  19312. entries(): IterableIterator<[number, bigint]>;
  19313. /**
  19314. * Determines whether all the members of an array satisfy the specified test.
  19315. * @param predicate A function that accepts up to three arguments. The every method calls
  19316. * the predicate function for each element in the array until the predicate returns false,
  19317. * or until the end of the array.
  19318. * @param thisArg An object to which the this keyword can refer in the predicate function.
  19319. * If thisArg is omitted, undefined is used as the this value.
  19320. */
  19321. every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
  19322. /**
  19323. * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
  19324. * @param value value to fill array section with
  19325. * @param start index to start filling the array at. If start is negative, it is treated as
  19326. * length+start where length is the length of the array.
  19327. * @param end index to stop filling the array at. If end is negative, it is treated as
  19328. * length+end.
  19329. */
  19330. fill(value: bigint, start?: number, end?: number): this;
  19331. /**
  19332. * Returns the elements of an array that meet the condition specified in a callback function.
  19333. * @param predicate A function that accepts up to three arguments. The filter method calls
  19334. * the predicate function one time for each element in the array.
  19335. * @param thisArg An object to which the this keyword can refer in the predicate function.
  19336. * If thisArg is omitted, undefined is used as the this value.
  19337. */
  19338. filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;
  19339. /**
  19340. * Returns the value of the first element in the array where predicate is true, and undefined
  19341. * otherwise.
  19342. * @param predicate find calls predicate once for each element of the array, in ascending
  19343. * order, until it finds one where predicate returns true. If such an element is found, find
  19344. * immediately returns that element value. Otherwise, find returns undefined.
  19345. * @param thisArg If provided, it will be used as the this value for each invocation of
  19346. * predicate. If it is not provided, undefined is used instead.
  19347. */
  19348. find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined;
  19349. /**
  19350. * Returns the index of the first element in the array where predicate is true, and -1
  19351. * otherwise.
  19352. * @param predicate find calls predicate once for each element of the array, in ascending
  19353. * order, until it finds one where predicate returns true. If such an element is found,
  19354. * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
  19355. * @param thisArg If provided, it will be used as the this value for each invocation of
  19356. * predicate. If it is not provided, undefined is used instead.
  19357. */
  19358. findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number;
  19359. /**
  19360. * Performs the specified action for each element in an array.
  19361. * @param callbackfn A function that accepts up to three arguments. forEach calls the
  19362. * callbackfn function one time for each element in the array.
  19363. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  19364. * If thisArg is omitted, undefined is used as the this value.
  19365. */
  19366. forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void;
  19367. /**
  19368. * Determines whether an array includes a certain element, returning true or false as appropriate.
  19369. * @param searchElement The element to search for.
  19370. * @param fromIndex The position in this array at which to begin searching for searchElement.
  19371. */
  19372. includes(searchElement: bigint, fromIndex?: number): boolean;
  19373. /**
  19374. * Returns the index of the first occurrence of a value in an array.
  19375. * @param searchElement The value to locate in the array.
  19376. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  19377. * search starts at index 0.
  19378. */
  19379. indexOf(searchElement: bigint, fromIndex?: number): number;
  19380. /**
  19381. * Adds all the elements of an array separated by the specified separator string.
  19382. * @param separator A string used to separate one element of an array from the next in the
  19383. * resulting String. If omitted, the array elements are separated with a comma.
  19384. */
  19385. join(separator?: string): string;
  19386. /** Yields each index in the array. */
  19387. keys(): IterableIterator<number>;
  19388. /**
  19389. * Returns the index of the last occurrence of a value in an array.
  19390. * @param searchElement The value to locate in the array.
  19391. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  19392. * search starts at index 0.
  19393. */
  19394. lastIndexOf(searchElement: bigint, fromIndex?: number): number;
  19395. /** The length of the array. */
  19396. readonly length: number;
  19397. /**
  19398. * Calls a defined callback function on each element of an array, and returns an array that
  19399. * contains the results.
  19400. * @param callbackfn A function that accepts up to three arguments. The map method calls the
  19401. * callbackfn function one time for each element in the array.
  19402. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  19403. * If thisArg is omitted, undefined is used as the this value.
  19404. */
  19405. map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array;
  19406. /**
  19407. * Calls the specified callback function for all the elements in an array. The return value of
  19408. * the callback function is the accumulated result, and is provided as an argument in the next
  19409. * call to the callback function.
  19410. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  19411. * callbackfn function one time for each element in the array.
  19412. * @param initialValue If initialValue is specified, it is used as the initial value to start
  19413. * the accumulation. The first call to the callbackfn function provides this value as an argument
  19414. * instead of an array value.
  19415. */
  19416. reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
  19417. /**
  19418. * Calls the specified callback function for all the elements in an array. The return value of
  19419. * the callback function is the accumulated result, and is provided as an argument in the next
  19420. * call to the callback function.
  19421. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  19422. * callbackfn function one time for each element in the array.
  19423. * @param initialValue If initialValue is specified, it is used as the initial value to start
  19424. * the accumulation. The first call to the callbackfn function provides this value as an argument
  19425. * instead of an array value.
  19426. */
  19427. reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
  19428. /**
  19429. * Calls the specified callback function for all the elements in an array, in descending order.
  19430. * The return value of the callback function is the accumulated result, and is provided as an
  19431. * argument in the next call to the callback function.
  19432. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  19433. * the callbackfn function one time for each element in the array.
  19434. * @param initialValue If initialValue is specified, it is used as the initial value to start
  19435. * the accumulation. The first call to the callbackfn function provides this value as an
  19436. * argument instead of an array value.
  19437. */
  19438. reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
  19439. /**
  19440. * Calls the specified callback function for all the elements in an array, in descending order.
  19441. * The return value of the callback function is the accumulated result, and is provided as an
  19442. * argument in the next call to the callback function.
  19443. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  19444. * the callbackfn function one time for each element in the array.
  19445. * @param initialValue If initialValue is specified, it is used as the initial value to start
  19446. * the accumulation. The first call to the callbackfn function provides this value as an argument
  19447. * instead of an array value.
  19448. */
  19449. reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
  19450. /** Reverses the elements in the array. */
  19451. reverse(): this;
  19452. /**
  19453. * Sets a value or an array of values.
  19454. * @param array A typed or untyped array of values to set.
  19455. * @param offset The index in the current array at which the values are to be written.
  19456. */
  19457. set(array: ArrayLike<bigint>, offset?: number): void;
  19458. /**
  19459. * Returns a section of an array.
  19460. * @param start The beginning of the specified portion of the array.
  19461. * @param end The end of the specified portion of the array.
  19462. */
  19463. slice(start?: number, end?: number): BigInt64Array;
  19464. /**
  19465. * Determines whether the specified callback function returns true for any element of an array.
  19466. * @param predicate A function that accepts up to three arguments. The some method calls the
  19467. * predicate function for each element in the array until the predicate returns true, or until
  19468. * the end of the array.
  19469. * @param thisArg An object to which the this keyword can refer in the predicate function.
  19470. * If thisArg is omitted, undefined is used as the this value.
  19471. */
  19472. some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
  19473. /**
  19474. * Sorts the array.
  19475. * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
  19476. */
  19477. sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
  19478. /**
  19479. * Gets a new BigInt64Array view of the ArrayBuffer store for this array, referencing the elements
  19480. * at begin, inclusive, up to end, exclusive.
  19481. * @param begin The index of the beginning of the array.
  19482. * @param end The index of the end of the array.
  19483. */
  19484. subarray(begin?: number, end?: number): BigInt64Array;
  19485. /** Converts the array to a string by using the current locale. */
  19486. toLocaleString(): string;
  19487. /** Returns a string representation of the array. */
  19488. toString(): string;
  19489. /** Returns the primitive value of the specified object. */
  19490. valueOf(): BigInt64Array;
  19491. /** Yields each value in the array. */
  19492. values(): IterableIterator<bigint>;
  19493. [Symbol.iterator](): IterableIterator<bigint>;
  19494. readonly [Symbol.toStringTag]: "BigInt64Array";
  19495. [index: number]: bigint;
  19496. }
  19497. interface BigInt64ArrayConstructor {
  19498. readonly prototype: BigInt64Array;
  19499. new(length?: number): BigInt64Array;
  19500. new(array: Iterable<bigint>): BigInt64Array;
  19501. new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;
  19502. /** The size in bytes of each element in the array. */
  19503. readonly BYTES_PER_ELEMENT: number;
  19504. /**
  19505. * Returns a new array from a set of elements.
  19506. * @param items A set of elements to include in the new array object.
  19507. */
  19508. of(...items: bigint[]): BigInt64Array;
  19509. /**
  19510. * Creates an array from an array-like or iterable object.
  19511. * @param arrayLike An array-like or iterable object to convert to an array.
  19512. * @param mapfn A mapping function to call on every element of the array.
  19513. * @param thisArg Value of 'this' used to invoke the mapfn.
  19514. */
  19515. from(arrayLike: ArrayLike<bigint>): BigInt64Array;
  19516. from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;
  19517. }
  19518. declare var BigInt64Array: BigInt64ArrayConstructor;
  19519. /**
  19520. * A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the
  19521. * requested number of bytes could not be allocated, an exception is raised.
  19522. */
  19523. interface BigUint64Array {
  19524. /** The size in bytes of each element in the array. */
  19525. readonly BYTES_PER_ELEMENT: number;
  19526. /** The ArrayBuffer instance referenced by the array. */
  19527. readonly buffer: ArrayBufferLike;
  19528. /** The length in bytes of the array. */
  19529. readonly byteLength: number;
  19530. /** The offset in bytes of the array. */
  19531. readonly byteOffset: number;
  19532. /**
  19533. * Returns the this object after copying a section of the array identified by start and end
  19534. * to the same array starting at position target
  19535. * @param target If target is negative, it is treated as length+target where length is the
  19536. * length of the array.
  19537. * @param start If start is negative, it is treated as length+start. If end is negative, it
  19538. * is treated as length+end.
  19539. * @param end If not specified, length of the this object is used as its default value.
  19540. */
  19541. copyWithin(target: number, start: number, end?: number): this;
  19542. /** Yields index, value pairs for every entry in the array. */
  19543. entries(): IterableIterator<[number, bigint]>;
  19544. /**
  19545. * Determines whether all the members of an array satisfy the specified test.
  19546. * @param predicate A function that accepts up to three arguments. The every method calls
  19547. * the predicate function for each element in the array until the predicate returns false,
  19548. * or until the end of the array.
  19549. * @param thisArg An object to which the this keyword can refer in the predicate function.
  19550. * If thisArg is omitted, undefined is used as the this value.
  19551. */
  19552. every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
  19553. /**
  19554. * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
  19555. * @param value value to fill array section with
  19556. * @param start index to start filling the array at. If start is negative, it is treated as
  19557. * length+start where length is the length of the array.
  19558. * @param end index to stop filling the array at. If end is negative, it is treated as
  19559. * length+end.
  19560. */
  19561. fill(value: bigint, start?: number, end?: number): this;
  19562. /**
  19563. * Returns the elements of an array that meet the condition specified in a callback function.
  19564. * @param predicate A function that accepts up to three arguments. The filter method calls
  19565. * the predicate function one time for each element in the array.
  19566. * @param thisArg An object to which the this keyword can refer in the predicate function.
  19567. * If thisArg is omitted, undefined is used as the this value.
  19568. */
  19569. filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;
  19570. /**
  19571. * Returns the value of the first element in the array where predicate is true, and undefined
  19572. * otherwise.
  19573. * @param predicate find calls predicate once for each element of the array, in ascending
  19574. * order, until it finds one where predicate returns true. If such an element is found, find
  19575. * immediately returns that element value. Otherwise, find returns undefined.
  19576. * @param thisArg If provided, it will be used as the this value for each invocation of
  19577. * predicate. If it is not provided, undefined is used instead.
  19578. */
  19579. find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined;
  19580. /**
  19581. * Returns the index of the first element in the array where predicate is true, and -1
  19582. * otherwise.
  19583. * @param predicate find calls predicate once for each element of the array, in ascending
  19584. * order, until it finds one where predicate returns true. If such an element is found,
  19585. * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
  19586. * @param thisArg If provided, it will be used as the this value for each invocation of
  19587. * predicate. If it is not provided, undefined is used instead.
  19588. */
  19589. findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number;
  19590. /**
  19591. * Performs the specified action for each element in an array.
  19592. * @param callbackfn A function that accepts up to three arguments. forEach calls the
  19593. * callbackfn function one time for each element in the array.
  19594. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  19595. * If thisArg is omitted, undefined is used as the this value.
  19596. */
  19597. forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void;
  19598. /**
  19599. * Determines whether an array includes a certain element, returning true or false as appropriate.
  19600. * @param searchElement The element to search for.
  19601. * @param fromIndex The position in this array at which to begin searching for searchElement.
  19602. */
  19603. includes(searchElement: bigint, fromIndex?: number): boolean;
  19604. /**
  19605. * Returns the index of the first occurrence of a value in an array.
  19606. * @param searchElement The value to locate in the array.
  19607. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  19608. * search starts at index 0.
  19609. */
  19610. indexOf(searchElement: bigint, fromIndex?: number): number;
  19611. /**
  19612. * Adds all the elements of an array separated by the specified separator string.
  19613. * @param separator A string used to separate one element of an array from the next in the
  19614. * resulting String. If omitted, the array elements are separated with a comma.
  19615. */
  19616. join(separator?: string): string;
  19617. /** Yields each index in the array. */
  19618. keys(): IterableIterator<number>;
  19619. /**
  19620. * Returns the index of the last occurrence of a value in an array.
  19621. * @param searchElement The value to locate in the array.
  19622. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  19623. * search starts at index 0.
  19624. */
  19625. lastIndexOf(searchElement: bigint, fromIndex?: number): number;
  19626. /** The length of the array. */
  19627. readonly length: number;
  19628. /**
  19629. * Calls a defined callback function on each element of an array, and returns an array that
  19630. * contains the results.
  19631. * @param callbackfn A function that accepts up to three arguments. The map method calls the
  19632. * callbackfn function one time for each element in the array.
  19633. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  19634. * If thisArg is omitted, undefined is used as the this value.
  19635. */
  19636. map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array;
  19637. /**
  19638. * Calls the specified callback function for all the elements in an array. The return value of
  19639. * the callback function is the accumulated result, and is provided as an argument in the next
  19640. * call to the callback function.
  19641. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  19642. * callbackfn function one time for each element in the array.
  19643. * @param initialValue If initialValue is specified, it is used as the initial value to start
  19644. * the accumulation. The first call to the callbackfn function provides this value as an argument
  19645. * instead of an array value.
  19646. */
  19647. reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
  19648. /**
  19649. * Calls the specified callback function for all the elements in an array. The return value of
  19650. * the callback function is the accumulated result, and is provided as an argument in the next
  19651. * call to the callback function.
  19652. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  19653. * callbackfn function one time for each element in the array.
  19654. * @param initialValue If initialValue is specified, it is used as the initial value to start
  19655. * the accumulation. The first call to the callbackfn function provides this value as an argument
  19656. * instead of an array value.
  19657. */
  19658. reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
  19659. /**
  19660. * Calls the specified callback function for all the elements in an array, in descending order.
  19661. * The return value of the callback function is the accumulated result, and is provided as an
  19662. * argument in the next call to the callback function.
  19663. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  19664. * the callbackfn function one time for each element in the array.
  19665. * @param initialValue If initialValue is specified, it is used as the initial value to start
  19666. * the accumulation. The first call to the callbackfn function provides this value as an
  19667. * argument instead of an array value.
  19668. */
  19669. reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
  19670. /**
  19671. * Calls the specified callback function for all the elements in an array, in descending order.
  19672. * The return value of the callback function is the accumulated result, and is provided as an
  19673. * argument in the next call to the callback function.
  19674. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  19675. * the callbackfn function one time for each element in the array.
  19676. * @param initialValue If initialValue is specified, it is used as the initial value to start
  19677. * the accumulation. The first call to the callbackfn function provides this value as an argument
  19678. * instead of an array value.
  19679. */
  19680. reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
  19681. /** Reverses the elements in the array. */
  19682. reverse(): this;
  19683. /**
  19684. * Sets a value or an array of values.
  19685. * @param array A typed or untyped array of values to set.
  19686. * @param offset The index in the current array at which the values are to be written.
  19687. */
  19688. set(array: ArrayLike<bigint>, offset?: number): void;
  19689. /**
  19690. * Returns a section of an array.
  19691. * @param start The beginning of the specified portion of the array.
  19692. * @param end The end of the specified portion of the array.
  19693. */
  19694. slice(start?: number, end?: number): BigUint64Array;
  19695. /**
  19696. * Determines whether the specified callback function returns true for any element of an array.
  19697. * @param predicate A function that accepts up to three arguments. The some method calls the
  19698. * predicate function for each element in the array until the predicate returns true, or until
  19699. * the end of the array.
  19700. * @param thisArg An object to which the this keyword can refer in the predicate function.
  19701. * If thisArg is omitted, undefined is used as the this value.
  19702. */
  19703. some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
  19704. /**
  19705. * Sorts the array.
  19706. * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
  19707. */
  19708. sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
  19709. /**
  19710. * Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements
  19711. * at begin, inclusive, up to end, exclusive.
  19712. * @param begin The index of the beginning of the array.
  19713. * @param end The index of the end of the array.
  19714. */
  19715. subarray(begin?: number, end?: number): BigUint64Array;
  19716. /** Converts the array to a string by using the current locale. */
  19717. toLocaleString(): string;
  19718. /** Returns a string representation of the array. */
  19719. toString(): string;
  19720. /** Returns the primitive value of the specified object. */
  19721. valueOf(): BigUint64Array;
  19722. /** Yields each value in the array. */
  19723. values(): IterableIterator<bigint>;
  19724. [Symbol.iterator](): IterableIterator<bigint>;
  19725. readonly [Symbol.toStringTag]: "BigUint64Array";
  19726. [index: number]: bigint;
  19727. }
  19728. interface BigUint64ArrayConstructor {
  19729. readonly prototype: BigUint64Array;
  19730. new(length?: number): BigUint64Array;
  19731. new(array: Iterable<bigint>): BigUint64Array;
  19732. new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;
  19733. /** The size in bytes of each element in the array. */
  19734. readonly BYTES_PER_ELEMENT: number;
  19735. /**
  19736. * Returns a new array from a set of elements.
  19737. * @param items A set of elements to include in the new array object.
  19738. */
  19739. of(...items: bigint[]): BigUint64Array;
  19740. /**
  19741. * Creates an array from an array-like or iterable object.
  19742. * @param arrayLike An array-like or iterable object to convert to an array.
  19743. * @param mapfn A mapping function to call on every element of the array.
  19744. * @param thisArg Value of 'this' used to invoke the mapfn.
  19745. */
  19746. from(arrayLike: ArrayLike<bigint>): BigUint64Array;
  19747. from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;
  19748. }
  19749. declare var BigUint64Array: BigUint64ArrayConstructor;
  19750. interface DataView {
  19751. /**
  19752. * Gets the BigInt64 value at the specified byte offset from the start of the view. There is
  19753. * no alignment constraint; multi-byte values may be fetched from any offset.
  19754. * @param byteOffset The place in the buffer at which the value should be retrieved.
  19755. */
  19756. getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;
  19757. /**
  19758. * Gets the BigUint64 value at the specified byte offset from the start of the view. There is
  19759. * no alignment constraint; multi-byte values may be fetched from any offset.
  19760. * @param byteOffset The place in the buffer at which the value should be retrieved.
  19761. */
  19762. getBigUint64(byteOffset: number, littleEndian?: boolean): bigint;
  19763. /**
  19764. * Stores a BigInt64 value at the specified byte offset from the start of the view.
  19765. * @param byteOffset The place in the buffer at which the value should be set.
  19766. * @param value The value to set.
  19767. * @param littleEndian If false or undefined, a big-endian value should be written,
  19768. * otherwise a little-endian value should be written.
  19769. */
  19770. setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
  19771. /**
  19772. * Stores a BigUint64 value at the specified byte offset from the start of the view.
  19773. * @param byteOffset The place in the buffer at which the value should be set.
  19774. * @param value The value to set.
  19775. * @param littleEndian If false or undefined, a big-endian value should be written,
  19776. * otherwise a little-endian value should be written.
  19777. */
  19778. setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
  19779. }
  19780. declare namespace Intl{
  19781. interface NumberFormat {
  19782. format(value: number | bigint): string;
  19783. resolvedOptions(): ResolvedNumberFormatOptions;
  19784. }
  19785. }
  19786. `,Oi["lib.es2020.d.ts"]=`/*! *****************************************************************************
  19787. Copyright (c) Microsoft Corporation. All rights reserved.
  19788. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  19789. this file except in compliance with the License. You may obtain a copy of the
  19790. License at http://www.apache.org/licenses/LICENSE-2.0
  19791. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  19792. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  19793. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  19794. MERCHANTABLITY OR NON-INFRINGEMENT.
  19795. See the Apache Version 2.0 License for specific language governing permissions
  19796. and limitations under the License.
  19797. ***************************************************************************** */
  19798. /// <reference no-default-lib="true"/>
  19799. /// <reference lib="es2019" />
  19800. /// <reference lib="es2020.bigint" />
  19801. /// <reference lib="es2020.promise" />
  19802. /// <reference lib="es2020.sharedmemory" />
  19803. /// <reference lib="es2020.string" />
  19804. /// <reference lib="es2020.symbol.wellknown" />
  19805. /// <reference lib="es2020.intl" />
  19806. `,Oi["lib.es2020.full.d.ts"]=`/*! *****************************************************************************
  19807. Copyright (c) Microsoft Corporation. All rights reserved.
  19808. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  19809. this file except in compliance with the License. You may obtain a copy of the
  19810. License at http://www.apache.org/licenses/LICENSE-2.0
  19811. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  19812. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  19813. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  19814. MERCHANTABLITY OR NON-INFRINGEMENT.
  19815. See the Apache Version 2.0 License for specific language governing permissions
  19816. and limitations under the License.
  19817. ***************************************************************************** */
  19818. /// <reference no-default-lib="true"/>
  19819. /// <reference lib="es2020" />
  19820. /// <reference lib="dom" />
  19821. /// <reference lib="webworker.importscripts" />
  19822. /// <reference lib="scripthost" />
  19823. /// <reference lib="dom.iterable" />
  19824. `,Oi["lib.es2020.intl.d.ts"]=`/*! *****************************************************************************
  19825. Copyright (c) Microsoft Corporation. All rights reserved.
  19826. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  19827. this file except in compliance with the License. You may obtain a copy of the
  19828. License at http://www.apache.org/licenses/LICENSE-2.0
  19829. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  19830. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  19831. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  19832. MERCHANTABLITY OR NON-INFRINGEMENT.
  19833. See the Apache Version 2.0 License for specific language governing permissions
  19834. and limitations under the License.
  19835. ***************************************************************************** */
  19836. /// <reference no-default-lib="true"/>
  19837. declare namespace Intl {
  19838. /**
  19839. * [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition.
  19840. *
  19841. * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
  19842. */
  19843. type UnicodeBCP47LocaleIdentifier = string;
  19844. /**
  19845. * Unit to use in the relative time internationalized message.
  19846. *
  19847. * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).
  19848. */
  19849. type RelativeTimeFormatUnit =
  19850. | "year"
  19851. | "years"
  19852. | "quarter"
  19853. | "quarters"
  19854. | "month"
  19855. | "months"
  19856. | "week"
  19857. | "weeks"
  19858. | "day"
  19859. | "days"
  19860. | "hour"
  19861. | "hours"
  19862. | "minute"
  19863. | "minutes"
  19864. | "second"
  19865. | "seconds";
  19866. /**
  19867. * The locale matching algorithm to use.
  19868. *
  19869. * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).
  19870. */
  19871. type RelativeTimeFormatLocaleMatcher = "lookup" | "best fit";
  19872. /**
  19873. * The format of output message.
  19874. *
  19875. * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
  19876. */
  19877. type RelativeTimeFormatNumeric = "always" | "auto";
  19878. /**
  19879. * The length of the internationalized message.
  19880. *
  19881. * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
  19882. */
  19883. type RelativeTimeFormatStyle = "long" | "short" | "narrow";
  19884. /**
  19885. * [BCP 47 language tag](http://tools.ietf.org/html/rfc5646) definition.
  19886. *
  19887. * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
  19888. */
  19889. type BCP47LanguageTag = string;
  19890. /**
  19891. * An object with some or all of properties of \`options\` parameter
  19892. * of \`Intl.RelativeTimeFormat\` constructor.
  19893. *
  19894. * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
  19895. */
  19896. interface RelativeTimeFormatOptions {
  19897. /** 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). */
  19898. localeMatcher?: RelativeTimeFormatLocaleMatcher;
  19899. /** The format of output message. */
  19900. numeric?: RelativeTimeFormatNumeric;
  19901. /** The length of the internationalized message. */
  19902. style?: RelativeTimeFormatStyle;
  19903. }
  19904. /**
  19905. * An object with properties reflecting the locale
  19906. * and formatting options computed during initialization
  19907. * of the \`Intl.RelativeTimeFormat\` object
  19908. *
  19909. * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).
  19910. */
  19911. interface ResolvedRelativeTimeFormatOptions {
  19912. locale: UnicodeBCP47LocaleIdentifier;
  19913. style: RelativeTimeFormatStyle;
  19914. numeric: RelativeTimeFormatNumeric;
  19915. numberingSystem: string;
  19916. }
  19917. /**
  19918. * An object representing the relative time format in parts
  19919. * that can be used for custom locale-aware formatting.
  19920. *
  19921. * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
  19922. */
  19923. interface RelativeTimeFormatPart {
  19924. type: string;
  19925. value: string;
  19926. unit?: RelativeTimeFormatUnit;
  19927. }
  19928. interface RelativeTimeFormat {
  19929. /**
  19930. * Formats a value and a unit according to the locale
  19931. * and formatting options of the given
  19932. * [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
  19933. * object.
  19934. *
  19935. * While this method automatically provides the correct plural forms,
  19936. * the grammatical form is otherwise as neutral as possible.
  19937. *
  19938. * It is the caller's responsibility to handle cut-off logic
  19939. * such as deciding between displaying "in 7 days" or "in 1 week".
  19940. * This API does not support relative dates involving compound units.
  19941. * e.g "in 5 days and 4 hours".
  19942. *
  19943. * @param value - Numeric value to use in the internationalized relative time message
  19944. *
  19945. * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
  19946. *
  19947. * @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
  19948. *
  19949. * @returns {string} Internationalized relative time message as string
  19950. *
  19951. * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).
  19952. */
  19953. format(value: number, unit: RelativeTimeFormatUnit): string;
  19954. /**
  19955. * Returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting.
  19956. *
  19957. * @param value - Numeric value to use in the internationalized relative time message
  19958. *
  19959. * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
  19960. *
  19961. * @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
  19962. *
  19963. * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).
  19964. */
  19965. formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[];
  19966. /**
  19967. * Provides access to the locale and options computed during initialization of this \`Intl.RelativeTimeFormat\` object.
  19968. *
  19969. * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).
  19970. */
  19971. resolvedOptions(): ResolvedRelativeTimeFormatOptions;
  19972. }
  19973. /**
  19974. * The [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
  19975. * object is a constructor for objects that enable language-sensitive relative time formatting.
  19976. *
  19977. * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).
  19978. */
  19979. const RelativeTimeFormat: {
  19980. /**
  19981. * Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects
  19982. *
  19983. * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
  19984. * For the general form and interpretation of the locales argument,
  19985. * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
  19986. *
  19987. * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
  19988. * with some or all of options of \`RelativeTimeFormatOptions\`.
  19989. *
  19990. * @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.
  19991. *
  19992. * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).
  19993. */
  19994. new(
  19995. locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
  19996. options?: RelativeTimeFormatOptions,
  19997. ): RelativeTimeFormat;
  19998. /**
  19999. * Returns an array containing those of the provided locales
  20000. * that are supported in date and time formatting
  20001. * without having to fall back to the runtime's default locale.
  20002. *
  20003. * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
  20004. * For the general form and interpretation of the locales argument,
  20005. * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
  20006. *
  20007. * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
  20008. * with some or all of options of the formatting.
  20009. *
  20010. * @returns An array containing those of the provided locales
  20011. * that are supported in date and time formatting
  20012. * without having to fall back to the runtime's default locale.
  20013. *
  20014. * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).
  20015. */
  20016. supportedLocalesOf(
  20017. locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
  20018. options?: RelativeTimeFormatOptions,
  20019. ): UnicodeBCP47LocaleIdentifier[];
  20020. };
  20021. interface NumberFormatOptions {
  20022. compactDisplay?: "short" | "long" | undefined;
  20023. notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
  20024. signDisplay?: "auto" | "never" | "always" | undefined;
  20025. unit?: string | undefined;
  20026. unitDisplay?: "short" | "long" | "narrow" | undefined;
  20027. }
  20028. interface ResolvedNumberFormatOptions {
  20029. compactDisplay?: "short" | "long";
  20030. notation?: "standard" | "scientific" | "engineering" | "compact";
  20031. signDisplay?: "auto" | "never" | "always";
  20032. unit?: string;
  20033. unitDisplay?: "short" | "long" | "narrow";
  20034. }
  20035. interface DateTimeFormatOptions {
  20036. calendar?: string | undefined;
  20037. dayPeriod?: "narrow" | "short" | "long" | undefined;
  20038. numberingSystem?: string | undefined;
  20039. dateStyle?: "full" | "long" | "medium" | "short" | undefined;
  20040. timeStyle?: "full" | "long" | "medium" | "short" | undefined;
  20041. hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
  20042. }
  20043. type LocaleHourCycleKey = "h12" | "h23" | "h11" | "h24";
  20044. type LocaleCollationCaseFirst = "upper" | "lower" | "false";
  20045. interface LocaleOptions {
  20046. /** A string containing the language, and the script and region if available. */
  20047. baseName?: string;
  20048. /** The part of the Locale that indicates the locale's calendar era. */
  20049. calendar?: string;
  20050. /** Flag that defines whether case is taken into account for the locale's collation rules. */
  20051. caseFirst?: LocaleCollationCaseFirst;
  20052. /** The collation type used for sorting */
  20053. collation?: string;
  20054. /** The time keeping format convention used by the locale. */
  20055. hourCycle?: LocaleHourCycleKey;
  20056. /** The primary language subtag associated with the locale. */
  20057. language?: string;
  20058. /** The numeral system used by the locale. */
  20059. numberingSystem?: string;
  20060. /** Flag that defines whether the locale has special collation handling for numeric characters. */
  20061. numeric?: boolean;
  20062. /** The region of the world (usually a country) associated with the locale. Possible values are region codes as defined by ISO 3166-1. */
  20063. region?: string;
  20064. /** The script used for writing the particular language used in the locale. Possible values are script codes as defined by ISO 15924. */
  20065. script?: string;
  20066. }
  20067. interface Locale extends LocaleOptions {
  20068. /** Gets the most likely values for the language, script, and region of the locale based on existing values. */
  20069. maximize(): Locale;
  20070. /** Attempts to remove information about the locale that would be added by calling \`Locale.maximize()\`. */
  20071. minimize(): Locale;
  20072. /** Returns the locale's full locale identifier string. */
  20073. toString(): BCP47LanguageTag;
  20074. }
  20075. /**
  20076. * Constructor creates [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)
  20077. * objects
  20078. *
  20079. * @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646).
  20080. * For the general form and interpretation of the locales argument,
  20081. * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
  20082. *
  20083. * @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.
  20084. *
  20085. * @returns [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.
  20086. *
  20087. * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).
  20088. */
  20089. const Locale: {
  20090. new (tag?: BCP47LanguageTag, options?: LocaleOptions): Locale;
  20091. };
  20092. interface DisplayNamesOptions {
  20093. localeMatcher: RelativeTimeFormatLocaleMatcher;
  20094. style: RelativeTimeFormatStyle;
  20095. type: "language" | "region" | "script" | "currency";
  20096. fallback: "code" | "none";
  20097. }
  20098. interface DisplayNames {
  20099. /**
  20100. * Receives a code and returns a string based on the locale and options provided when instantiating
  20101. * [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
  20102. *
  20103. * @param code The \`code\` to provide depends on the \`type\` passed to display name during creation:
  20104. * - 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),
  20105. * or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/).
  20106. * - If the type is \`"script"\`, code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html).
  20107. * - If the type is \`"language"\`, code should be a \`languageCode\` ["-" \`scriptCode\`] ["-" \`regionCode\` ] *("-" \`variant\` )
  20108. * 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).
  20109. * \`languageCode\` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.
  20110. * - If the type is \`"currency"\`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).
  20111. *
  20112. * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).
  20113. */
  20114. of(code: string): string;
  20115. /**
  20116. * Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current
  20117. * [\`Intl/DisplayNames\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
  20118. *
  20119. * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).
  20120. */
  20121. resolvedOptions(): DisplayNamesOptions;
  20122. }
  20123. /**
  20124. * The [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
  20125. * object enables the consistent translation of language, region and script display names.
  20126. *
  20127. * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).
  20128. */
  20129. const DisplayNames: {
  20130. prototype: DisplayNames;
  20131. /**
  20132. * @param locales A string with a BCP 47 language tag, or an array of such strings.
  20133. * 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)
  20134. * page.
  20135. *
  20136. * @param options An object for setting up a display name.
  20137. *
  20138. * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).
  20139. */
  20140. new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: Partial<DisplayNamesOptions>): DisplayNames;
  20141. /**
  20142. * 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.
  20143. *
  20144. * @param locales A string with a BCP 47 language tag, or an array of such strings.
  20145. * 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)
  20146. * page.
  20147. *
  20148. * @param options An object with a locale matcher.
  20149. *
  20150. * @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.
  20151. *
  20152. * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
  20153. */
  20154. supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: {localeMatcher: RelativeTimeFormatLocaleMatcher}): BCP47LanguageTag[];
  20155. };
  20156. }
  20157. `,Oi["lib.es2020.promise.d.ts"]=`/*! *****************************************************************************
  20158. Copyright (c) Microsoft Corporation. All rights reserved.
  20159. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  20160. this file except in compliance with the License. You may obtain a copy of the
  20161. License at http://www.apache.org/licenses/LICENSE-2.0
  20162. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  20163. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  20164. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  20165. MERCHANTABLITY OR NON-INFRINGEMENT.
  20166. See the Apache Version 2.0 License for specific language governing permissions
  20167. and limitations under the License.
  20168. ***************************************************************************** */
  20169. /// <reference no-default-lib="true"/>
  20170. interface PromiseFulfilledResult<T> {
  20171. status: "fulfilled";
  20172. value: T;
  20173. }
  20174. interface PromiseRejectedResult {
  20175. status: "rejected";
  20176. reason: any;
  20177. }
  20178. type PromiseSettledResult<T> = PromiseFulfilledResult<T> | PromiseRejectedResult;
  20179. interface PromiseConstructor {
  20180. /**
  20181. * Creates a Promise that is resolved with an array of results when all
  20182. * of the provided Promises resolve or reject.
  20183. * @param values An array of Promises.
  20184. * @returns A new Promise.
  20185. */
  20186. allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>> }>;
  20187. /**
  20188. * Creates a Promise that is resolved with an array of results when all
  20189. * of the provided Promises resolve or reject.
  20190. * @param values An array of Promises.
  20191. * @returns A new Promise.
  20192. */
  20193. allSettled<T>(values: Iterable<T | PromiseLike<T>>): Promise<PromiseSettledResult<Awaited<T>>[]>;
  20194. }
  20195. `,Oi["lib.es2020.sharedmemory.d.ts"]=`/*! *****************************************************************************
  20196. Copyright (c) Microsoft Corporation. All rights reserved.
  20197. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  20198. this file except in compliance with the License. You may obtain a copy of the
  20199. License at http://www.apache.org/licenses/LICENSE-2.0
  20200. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  20201. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  20202. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  20203. MERCHANTABLITY OR NON-INFRINGEMENT.
  20204. See the Apache Version 2.0 License for specific language governing permissions
  20205. and limitations under the License.
  20206. ***************************************************************************** */
  20207. /// <reference no-default-lib="true"/>
  20208. interface Atomics {
  20209. /**
  20210. * Adds a value to the value at the given position in the array, returning the original value.
  20211. * Until this atomic operation completes, any other read or write operation against the array
  20212. * will block.
  20213. */
  20214. add(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
  20215. /**
  20216. * Stores the bitwise AND of a value with the value at the given position in the array,
  20217. * returning the original value. Until this atomic operation completes, any other read or
  20218. * write operation against the array will block.
  20219. */
  20220. and(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
  20221. /**
  20222. * Replaces the value at the given position in the array if the original value equals the given
  20223. * expected value, returning the original value. Until this atomic operation completes, any
  20224. * other read or write operation against the array will block.
  20225. */
  20226. compareExchange(typedArray: BigInt64Array | BigUint64Array, index: number, expectedValue: bigint, replacementValue: bigint): bigint;
  20227. /**
  20228. * Replaces the value at the given position in the array, returning the original value. Until
  20229. * this atomic operation completes, any other read or write operation against the array will
  20230. * block.
  20231. */
  20232. exchange(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
  20233. /**
  20234. * Returns the value at the given position in the array. Until this atomic operation completes,
  20235. * any other read or write operation against the array will block.
  20236. */
  20237. load(typedArray: BigInt64Array | BigUint64Array, index: number): bigint;
  20238. /**
  20239. * Stores the bitwise OR of a value with the value at the given position in the array,
  20240. * returning the original value. Until this atomic operation completes, any other read or write
  20241. * operation against the array will block.
  20242. */
  20243. or(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
  20244. /**
  20245. * Stores a value at the given position in the array, returning the new value. Until this
  20246. * atomic operation completes, any other read or write operation against the array will block.
  20247. */
  20248. store(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
  20249. /**
  20250. * Subtracts a value from the value at the given position in the array, returning the original
  20251. * value. Until this atomic operation completes, any other read or write operation against the
  20252. * array will block.
  20253. */
  20254. sub(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
  20255. /**
  20256. * If the value at the given position in the array is equal to the provided value, the current
  20257. * agent is put to sleep causing execution to suspend until the timeout expires (returning
  20258. * \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns
  20259. * \`"not-equal"\`.
  20260. */
  20261. wait(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out";
  20262. /**
  20263. * Wakes up sleeping agents that are waiting on the given index of the array, returning the
  20264. * number of agents that were awoken.
  20265. * @param typedArray A shared BigInt64Array.
  20266. * @param index The position in the typedArray to wake up on.
  20267. * @param count The number of sleeping agents to notify. Defaults to +Infinity.
  20268. */
  20269. notify(typedArray: BigInt64Array, index: number, count?: number): number;
  20270. /**
  20271. * Stores the bitwise XOR of a value with the value at the given position in the array,
  20272. * returning the original value. Until this atomic operation completes, any other read or write
  20273. * operation against the array will block.
  20274. */
  20275. xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
  20276. }
  20277. `,Oi["lib.es2020.string.d.ts"]=`/*! *****************************************************************************
  20278. Copyright (c) Microsoft Corporation. All rights reserved.
  20279. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  20280. this file except in compliance with the License. You may obtain a copy of the
  20281. License at http://www.apache.org/licenses/LICENSE-2.0
  20282. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  20283. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  20284. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  20285. MERCHANTABLITY OR NON-INFRINGEMENT.
  20286. See the Apache Version 2.0 License for specific language governing permissions
  20287. and limitations under the License.
  20288. ***************************************************************************** */
  20289. /// <reference no-default-lib="true"/>
  20290. /// <reference lib="es2015.iterable" />
  20291. interface String {
  20292. /**
  20293. * Matches a string with a regular expression, and returns an iterable of matches
  20294. * containing the results of that search.
  20295. * @param regexp A variable name or string literal containing the regular expression pattern and flags.
  20296. */
  20297. matchAll(regexp: RegExp): IterableIterator<RegExpMatchArray>;
  20298. }
  20299. `,Oi["lib.es2020.symbol.wellknown.d.ts"]=`/*! *****************************************************************************
  20300. Copyright (c) Microsoft Corporation. All rights reserved.
  20301. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  20302. this file except in compliance with the License. You may obtain a copy of the
  20303. License at http://www.apache.org/licenses/LICENSE-2.0
  20304. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  20305. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  20306. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  20307. MERCHANTABLITY OR NON-INFRINGEMENT.
  20308. See the Apache Version 2.0 License for specific language governing permissions
  20309. and limitations under the License.
  20310. ***************************************************************************** */
  20311. /// <reference no-default-lib="true"/>
  20312. /// <reference lib="es2015.iterable" />
  20313. /// <reference lib="es2015.symbol" />
  20314. interface SymbolConstructor {
  20315. /**
  20316. * A regular expression method that matches the regular expression against a string. Called
  20317. * by the String.prototype.matchAll method.
  20318. */
  20319. readonly matchAll: unique symbol;
  20320. }
  20321. interface RegExp {
  20322. /**
  20323. * Matches a string with this regular expression, and returns an iterable of matches
  20324. * containing the results of that search.
  20325. * @param string A string to search within.
  20326. */
  20327. [Symbol.matchAll](str: string): IterableIterator<RegExpMatchArray>;
  20328. }
  20329. `,Oi["lib.es2021.d.ts"]=`/*! *****************************************************************************
  20330. Copyright (c) Microsoft Corporation. All rights reserved.
  20331. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  20332. this file except in compliance with the License. You may obtain a copy of the
  20333. License at http://www.apache.org/licenses/LICENSE-2.0
  20334. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  20335. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  20336. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  20337. MERCHANTABLITY OR NON-INFRINGEMENT.
  20338. See the Apache Version 2.0 License for specific language governing permissions
  20339. and limitations under the License.
  20340. ***************************************************************************** */
  20341. /// <reference no-default-lib="true"/>
  20342. /// <reference lib="es2020" />
  20343. /// <reference lib="es2021.promise" />
  20344. /// <reference lib="es2021.string" />
  20345. /// <reference lib="es2021.weakref" />
  20346. /// <reference lib="es2021.intl" />
  20347. `,Oi["lib.es2021.full.d.ts"]=`/*! *****************************************************************************
  20348. Copyright (c) Microsoft Corporation. All rights reserved.
  20349. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  20350. this file except in compliance with the License. You may obtain a copy of the
  20351. License at http://www.apache.org/licenses/LICENSE-2.0
  20352. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  20353. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  20354. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  20355. MERCHANTABLITY OR NON-INFRINGEMENT.
  20356. See the Apache Version 2.0 License for specific language governing permissions
  20357. and limitations under the License.
  20358. ***************************************************************************** */
  20359. /// <reference no-default-lib="true"/>
  20360. /// <reference lib="es2021" />
  20361. /// <reference lib="dom" />
  20362. /// <reference lib="webworker.importscripts" />
  20363. /// <reference lib="scripthost" />
  20364. /// <reference lib="dom.iterable" />
  20365. `,Oi["lib.es2021.intl.d.ts"]=`/*! *****************************************************************************
  20366. Copyright (c) Microsoft Corporation. All rights reserved.
  20367. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  20368. this file except in compliance with the License. You may obtain a copy of the
  20369. License at http://www.apache.org/licenses/LICENSE-2.0
  20370. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  20371. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  20372. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  20373. MERCHANTABLITY OR NON-INFRINGEMENT.
  20374. See the Apache Version 2.0 License for specific language governing permissions
  20375. and limitations under the License.
  20376. ***************************************************************************** */
  20377. /// <reference no-default-lib="true"/>
  20378. declare namespace Intl {
  20379. interface DateTimeFormatOptions {
  20380. formatMatcher?: "basic" | "best fit" | "best fit" | undefined;
  20381. dateStyle?: "full" | "long" | "medium" | "short" | undefined;
  20382. timeStyle?: "full" | "long" | "medium" | "short" | undefined;
  20383. dayPeriod?: "narrow" | "short" | "long" | undefined;
  20384. fractionalSecondDigits?: 0 | 1 | 2 | 3 | undefined;
  20385. }
  20386. interface ResolvedDateTimeFormatOptions {
  20387. formatMatcher?: "basic" | "best fit" | "best fit";
  20388. dateStyle?: "full" | "long" | "medium" | "short";
  20389. timeStyle?: "full" | "long" | "medium" | "short";
  20390. hourCycle?: "h11" | "h12" | "h23" | "h24";
  20391. dayPeriod?: "narrow" | "short" | "long";
  20392. fractionalSecondDigits?: 0 | 1 | 2 | 3;
  20393. }
  20394. interface NumberFormat {
  20395. formatRange(startDate: number | bigint, endDate: number | bigint): string;
  20396. formatRangeToParts(startDate: number | bigint, endDate: number | bigint): NumberFormatPart[];
  20397. }
  20398. }`,Oi["lib.es2021.promise.d.ts"]=`/*! *****************************************************************************
  20399. Copyright (c) Microsoft Corporation. All rights reserved.
  20400. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  20401. this file except in compliance with the License. You may obtain a copy of the
  20402. License at http://www.apache.org/licenses/LICENSE-2.0
  20403. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  20404. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  20405. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  20406. MERCHANTABLITY OR NON-INFRINGEMENT.
  20407. See the Apache Version 2.0 License for specific language governing permissions
  20408. and limitations under the License.
  20409. ***************************************************************************** */
  20410. /// <reference no-default-lib="true"/>
  20411. interface AggregateError extends Error {
  20412. errors: any[]
  20413. }
  20414. interface AggregateErrorConstructor {
  20415. new(errors: Iterable<any>, message?: string): AggregateError;
  20416. (errors: Iterable<any>, message?: string): AggregateError;
  20417. readonly prototype: AggregateError;
  20418. }
  20419. declare var AggregateError: AggregateErrorConstructor;
  20420. /**
  20421. * Represents the completion of an asynchronous operation
  20422. */
  20423. interface PromiseConstructor {
  20424. /**
  20425. * 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.
  20426. * @param values An array or iterable of Promises.
  20427. * @returns A new Promise.
  20428. */
  20429. any<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
  20430. /**
  20431. * 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.
  20432. * @param values An array or iterable of Promises.
  20433. * @returns A new Promise.
  20434. */
  20435. any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>
  20436. }
  20437. `,Oi["lib.es2021.string.d.ts"]=`/*! *****************************************************************************
  20438. Copyright (c) Microsoft Corporation. All rights reserved.
  20439. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  20440. this file except in compliance with the License. You may obtain a copy of the
  20441. License at http://www.apache.org/licenses/LICENSE-2.0
  20442. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  20443. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  20444. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  20445. MERCHANTABLITY OR NON-INFRINGEMENT.
  20446. See the Apache Version 2.0 License for specific language governing permissions
  20447. and limitations under the License.
  20448. ***************************************************************************** */
  20449. /// <reference no-default-lib="true"/>
  20450. interface String {
  20451. /**
  20452. * Replace all instances of a substring in a string, using a regular expression or search string.
  20453. * @param searchValue A string to search for.
  20454. * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
  20455. */
  20456. replaceAll(searchValue: string | RegExp, replaceValue: string): string;
  20457. /**
  20458. * Replace all instances of a substring in a string, using a regular expression or search string.
  20459. * @param searchValue A string to search for.
  20460. * @param replacer A function that returns the replacement text.
  20461. */
  20462. replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
  20463. }
  20464. `,Oi["lib.es2021.weakref.d.ts"]=`/*! *****************************************************************************
  20465. Copyright (c) Microsoft Corporation. All rights reserved.
  20466. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  20467. this file except in compliance with the License. You may obtain a copy of the
  20468. License at http://www.apache.org/licenses/LICENSE-2.0
  20469. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  20470. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  20471. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  20472. MERCHANTABLITY OR NON-INFRINGEMENT.
  20473. See the Apache Version 2.0 License for specific language governing permissions
  20474. and limitations under the License.
  20475. ***************************************************************************** */
  20476. /// <reference no-default-lib="true"/>
  20477. interface WeakRef<T extends object> {
  20478. readonly [Symbol.toStringTag]: "WeakRef";
  20479. /**
  20480. * Returns the WeakRef instance's target object, or undefined if the target object has been
  20481. * reclaimed.
  20482. */
  20483. deref(): T | undefined;
  20484. }
  20485. interface WeakRefConstructor {
  20486. readonly prototype: WeakRef<any>;
  20487. /**
  20488. * Creates a WeakRef instance for the given target object.
  20489. * @param target The target object for the WeakRef instance.
  20490. */
  20491. new<T extends object>(target: T): WeakRef<T>;
  20492. }
  20493. declare var WeakRef: WeakRefConstructor;
  20494. interface FinalizationRegistry<T> {
  20495. readonly [Symbol.toStringTag]: "FinalizationRegistry";
  20496. /**
  20497. * Registers an object with the registry.
  20498. * @param target The target object to register.
  20499. * @param heldValue The value to pass to the finalizer for this object. This cannot be the
  20500. * target object.
  20501. * @param unregisterToken The token to pass to the unregister method to unregister the target
  20502. * object. If provided (and not undefined), this must be an object. If not provided, the target
  20503. * cannot be unregistered.
  20504. */
  20505. register(target: object, heldValue: T, unregisterToken?: object): void;
  20506. /**
  20507. * Unregisters an object from the registry.
  20508. * @param unregisterToken The token that was used as the unregisterToken argument when calling
  20509. * register to register the target object.
  20510. */
  20511. unregister(unregisterToken: object): void;
  20512. }
  20513. interface FinalizationRegistryConstructor {
  20514. readonly prototype: FinalizationRegistry<any>;
  20515. /**
  20516. * Creates a finalization registry with an associated cleanup callback
  20517. * @param cleanupCallback The callback to call after an object in the registry has been reclaimed.
  20518. */
  20519. new<T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;
  20520. }
  20521. declare var FinalizationRegistry: FinalizationRegistryConstructor;
  20522. `,Oi["lib.es5.d.ts"]=`/*! *****************************************************************************
  20523. Copyright (c) Microsoft Corporation. All rights reserved.
  20524. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  20525. this file except in compliance with the License. You may obtain a copy of the
  20526. License at http://www.apache.org/licenses/LICENSE-2.0
  20527. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  20528. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  20529. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  20530. MERCHANTABLITY OR NON-INFRINGEMENT.
  20531. See the Apache Version 2.0 License for specific language governing permissions
  20532. and limitations under the License.
  20533. ***************************************************************************** */
  20534. /// <reference no-default-lib="true"/>
  20535. /////////////////////////////
  20536. /// ECMAScript APIs
  20537. /////////////////////////////
  20538. declare var NaN: number;
  20539. declare var Infinity: number;
  20540. /**
  20541. * Evaluates JavaScript code and executes it.
  20542. * @param x A String value that contains valid JavaScript code.
  20543. */
  20544. declare function eval(x: string): any;
  20545. /**
  20546. * Converts a string to an integer.
  20547. * @param string A string to convert into a number.
  20548. * @param radix A value between 2 and 36 that specifies the base of the number in \`string\`.
  20549. * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
  20550. * All other strings are considered decimal.
  20551. */
  20552. declare function parseInt(string: string, radix?: number): number;
  20553. /**
  20554. * Converts a string to a floating-point number.
  20555. * @param string A string that contains a floating-point number.
  20556. */
  20557. declare function parseFloat(string: string): number;
  20558. /**
  20559. * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
  20560. * @param number A numeric value.
  20561. */
  20562. declare function isNaN(number: number): boolean;
  20563. /**
  20564. * Determines whether a supplied number is finite.
  20565. * @param number Any numeric value.
  20566. */
  20567. declare function isFinite(number: number): boolean;
  20568. /**
  20569. * Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
  20570. * @param encodedURI A value representing an encoded URI.
  20571. */
  20572. declare function decodeURI(encodedURI: string): string;
  20573. /**
  20574. * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
  20575. * @param encodedURIComponent A value representing an encoded URI component.
  20576. */
  20577. declare function decodeURIComponent(encodedURIComponent: string): string;
  20578. /**
  20579. * Encodes a text string as a valid Uniform Resource Identifier (URI)
  20580. * @param uri A value representing an encoded URI.
  20581. */
  20582. declare function encodeURI(uri: string): string;
  20583. /**
  20584. * Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
  20585. * @param uriComponent A value representing an encoded URI component.
  20586. */
  20587. declare function encodeURIComponent(uriComponent: string | number | boolean): string;
  20588. /**
  20589. * Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.
  20590. * @deprecated A legacy feature for browser compatibility
  20591. * @param string A string value
  20592. */
  20593. declare function escape(string: string): string;
  20594. /**
  20595. * Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.
  20596. * @deprecated A legacy feature for browser compatibility
  20597. * @param string A string value
  20598. */
  20599. declare function unescape(string: string): string;
  20600. interface Symbol {
  20601. /** Returns a string representation of an object. */
  20602. toString(): string;
  20603. /** Returns the primitive value of the specified object. */
  20604. valueOf(): symbol;
  20605. }
  20606. declare type PropertyKey = string | number | symbol;
  20607. interface PropertyDescriptor {
  20608. configurable?: boolean;
  20609. enumerable?: boolean;
  20610. value?: any;
  20611. writable?: boolean;
  20612. get?(): any;
  20613. set?(v: any): void;
  20614. }
  20615. interface PropertyDescriptorMap {
  20616. [s: string]: PropertyDescriptor;
  20617. }
  20618. interface Object {
  20619. /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
  20620. constructor: Function;
  20621. /** Returns a string representation of an object. */
  20622. toString(): string;
  20623. /** Returns a date converted to a string using the current locale. */
  20624. toLocaleString(): string;
  20625. /** Returns the primitive value of the specified object. */
  20626. valueOf(): Object;
  20627. /**
  20628. * Determines whether an object has a property with the specified name.
  20629. * @param v A property name.
  20630. */
  20631. hasOwnProperty(v: PropertyKey): boolean;
  20632. /**
  20633. * Determines whether an object exists in another object's prototype chain.
  20634. * @param v Another object whose prototype chain is to be checked.
  20635. */
  20636. isPrototypeOf(v: Object): boolean;
  20637. /**
  20638. * Determines whether a specified property is enumerable.
  20639. * @param v A property name.
  20640. */
  20641. propertyIsEnumerable(v: PropertyKey): boolean;
  20642. }
  20643. interface ObjectConstructor {
  20644. new(value?: any): Object;
  20645. (): any;
  20646. (value: any): any;
  20647. /** A reference to the prototype for a class of objects. */
  20648. readonly prototype: Object;
  20649. /**
  20650. * Returns the prototype of an object.
  20651. * @param o The object that references the prototype.
  20652. */
  20653. getPrototypeOf(o: any): any;
  20654. /**
  20655. * Gets the own property descriptor of the specified object.
  20656. * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
  20657. * @param o Object that contains the property.
  20658. * @param p Name of the property.
  20659. */
  20660. getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined;
  20661. /**
  20662. * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
  20663. * on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
  20664. * @param o Object that contains the own properties.
  20665. */
  20666. getOwnPropertyNames(o: any): string[];
  20667. /**
  20668. * Creates an object that has the specified prototype or that has null prototype.
  20669. * @param o Object to use as a prototype. May be null.
  20670. */
  20671. create(o: object | null): any;
  20672. /**
  20673. * Creates an object that has the specified prototype, and that optionally contains specified properties.
  20674. * @param o Object to use as a prototype. May be null
  20675. * @param properties JavaScript object that contains one or more property descriptors.
  20676. */
  20677. create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
  20678. /**
  20679. * Adds a property to an object, or modifies attributes of an existing property.
  20680. * @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.
  20681. * @param p The property name.
  20682. * @param attributes Descriptor for the property. It can be for a data property or an accessor property.
  20683. */
  20684. defineProperty<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T;
  20685. /**
  20686. * Adds one or more properties to an object, and/or modifies attributes of existing properties.
  20687. * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
  20688. * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
  20689. */
  20690. defineProperties<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T;
  20691. /**
  20692. * Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
  20693. * @param o Object on which to lock the attributes.
  20694. */
  20695. seal<T>(o: T): T;
  20696. /**
  20697. * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
  20698. * @param a Object on which to lock the attributes.
  20699. */
  20700. freeze<T>(a: T[]): readonly T[];
  20701. /**
  20702. * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
  20703. * @param f Object on which to lock the attributes.
  20704. */
  20705. freeze<T extends Function>(f: T): T;
  20706. /**
  20707. * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
  20708. * @param o Object on which to lock the attributes.
  20709. */
  20710. freeze<T>(o: T): Readonly<T>;
  20711. /**
  20712. * Prevents the addition of new properties to an object.
  20713. * @param o Object to make non-extensible.
  20714. */
  20715. preventExtensions<T>(o: T): T;
  20716. /**
  20717. * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
  20718. * @param o Object to test.
  20719. */
  20720. isSealed(o: any): boolean;
  20721. /**
  20722. * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
  20723. * @param o Object to test.
  20724. */
  20725. isFrozen(o: any): boolean;
  20726. /**
  20727. * Returns a value that indicates whether new properties can be added to an object.
  20728. * @param o Object to test.
  20729. */
  20730. isExtensible(o: any): boolean;
  20731. /**
  20732. * Returns the names of the enumerable string properties and methods of an object.
  20733. * @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.
  20734. */
  20735. keys(o: object): string[];
  20736. }
  20737. /**
  20738. * Provides functionality common to all JavaScript objects.
  20739. */
  20740. declare var Object: ObjectConstructor;
  20741. /**
  20742. * Creates a new function.
  20743. */
  20744. interface Function {
  20745. /**
  20746. * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
  20747. * @param thisArg The object to be used as the this object.
  20748. * @param argArray A set of arguments to be passed to the function.
  20749. */
  20750. apply(this: Function, thisArg: any, argArray?: any): any;
  20751. /**
  20752. * Calls a method of an object, substituting another object for the current object.
  20753. * @param thisArg The object to be used as the current object.
  20754. * @param argArray A list of arguments to be passed to the method.
  20755. */
  20756. call(this: Function, thisArg: any, ...argArray: any[]): any;
  20757. /**
  20758. * For a given function, creates a bound function that has the same body as the original function.
  20759. * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
  20760. * @param thisArg An object to which the this keyword can refer inside the new function.
  20761. * @param argArray A list of arguments to be passed to the new function.
  20762. */
  20763. bind(this: Function, thisArg: any, ...argArray: any[]): any;
  20764. /** Returns a string representation of a function. */
  20765. toString(): string;
  20766. prototype: any;
  20767. readonly length: number;
  20768. // Non-standard extensions
  20769. arguments: any;
  20770. caller: Function;
  20771. }
  20772. interface FunctionConstructor {
  20773. /**
  20774. * Creates a new function.
  20775. * @param args A list of arguments the function accepts.
  20776. */
  20777. new(...args: string[]): Function;
  20778. (...args: string[]): Function;
  20779. readonly prototype: Function;
  20780. }
  20781. declare var Function: FunctionConstructor;
  20782. /**
  20783. * Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.
  20784. */
  20785. type ThisParameterType<T> = T extends (this: infer U, ...args: any[]) => any ? U : unknown;
  20786. /**
  20787. * Removes the 'this' parameter from a function type.
  20788. */
  20789. type OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;
  20790. interface CallableFunction extends Function {
  20791. /**
  20792. * Calls the function with the specified object as the this value and the elements of specified array as the arguments.
  20793. * @param thisArg The object to be used as the this object.
  20794. * @param args An array of argument values to be passed to the function.
  20795. */
  20796. apply<T, R>(this: (this: T) => R, thisArg: T): R;
  20797. apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;
  20798. /**
  20799. * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
  20800. * @param thisArg The object to be used as the this object.
  20801. * @param args Argument values to be passed to the function.
  20802. */
  20803. call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;
  20804. /**
  20805. * For a given function, creates a bound function that has the same body as the original function.
  20806. * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
  20807. * @param thisArg The object to be used as the this object.
  20808. * @param args Arguments to bind to the parameters of the function.
  20809. */
  20810. bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;
  20811. bind<T, A0, A extends any[], R>(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R;
  20812. 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;
  20813. 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;
  20814. 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;
  20815. bind<T, AX, R>(this: (this: T, ...args: AX[]) => R, thisArg: T, ...args: AX[]): (...args: AX[]) => R;
  20816. }
  20817. interface NewableFunction extends Function {
  20818. /**
  20819. * Calls the function with the specified object as the this value and the elements of specified array as the arguments.
  20820. * @param thisArg The object to be used as the this object.
  20821. * @param args An array of argument values to be passed to the function.
  20822. */
  20823. apply<T>(this: new () => T, thisArg: T): void;
  20824. apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void;
  20825. /**
  20826. * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
  20827. * @param thisArg The object to be used as the this object.
  20828. * @param args Argument values to be passed to the function.
  20829. */
  20830. call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void;
  20831. /**
  20832. * For a given function, creates a bound function that has the same body as the original function.
  20833. * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
  20834. * @param thisArg The object to be used as the this object.
  20835. * @param args Arguments to bind to the parameters of the function.
  20836. */
  20837. bind<T>(this: T, thisArg: any): T;
  20838. bind<A0, A extends any[], R>(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R;
  20839. 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;
  20840. 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;
  20841. 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;
  20842. bind<AX, R>(this: new (...args: AX[]) => R, thisArg: any, ...args: AX[]): new (...args: AX[]) => R;
  20843. }
  20844. interface IArguments {
  20845. [index: number]: any;
  20846. length: number;
  20847. callee: Function;
  20848. }
  20849. interface String {
  20850. /** Returns a string representation of a string. */
  20851. toString(): string;
  20852. /**
  20853. * Returns the character at the specified index.
  20854. * @param pos The zero-based index of the desired character.
  20855. */
  20856. charAt(pos: number): string;
  20857. /**
  20858. * Returns the Unicode value of the character at the specified location.
  20859. * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
  20860. */
  20861. charCodeAt(index: number): number;
  20862. /**
  20863. * Returns a string that contains the concatenation of two or more strings.
  20864. * @param strings The strings to append to the end of the string.
  20865. */
  20866. concat(...strings: string[]): string;
  20867. /**
  20868. * Returns the position of the first occurrence of a substring.
  20869. * @param searchString The substring to search for in the string
  20870. * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
  20871. */
  20872. indexOf(searchString: string, position?: number): number;
  20873. /**
  20874. * Returns the last occurrence of a substring in the string.
  20875. * @param searchString The substring to search for.
  20876. * @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
  20877. */
  20878. lastIndexOf(searchString: string, position?: number): number;
  20879. /**
  20880. * Determines whether two strings are equivalent in the current locale.
  20881. * @param that String to compare to target string
  20882. */
  20883. localeCompare(that: string): number;
  20884. /**
  20885. * Matches a string with a regular expression, and returns an array containing the results of that search.
  20886. * @param regexp A variable name or string literal containing the regular expression pattern and flags.
  20887. */
  20888. match(regexp: string | RegExp): RegExpMatchArray | null;
  20889. /**
  20890. * Replaces text in a string, using a regular expression or search string.
  20891. * @param searchValue A string to search for.
  20892. * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
  20893. */
  20894. replace(searchValue: string | RegExp, replaceValue: string): string;
  20895. /**
  20896. * Replaces text in a string, using a regular expression or search string.
  20897. * @param searchValue A string to search for.
  20898. * @param replacer A function that returns the replacement text.
  20899. */
  20900. replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
  20901. /**
  20902. * Finds the first substring match in a regular expression search.
  20903. * @param regexp The regular expression pattern and applicable flags.
  20904. */
  20905. search(regexp: string | RegExp): number;
  20906. /**
  20907. * Returns a section of a string.
  20908. * @param start The index to the beginning of the specified portion of stringObj.
  20909. * @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.
  20910. * If this value is not specified, the substring continues to the end of stringObj.
  20911. */
  20912. slice(start?: number, end?: number): string;
  20913. /**
  20914. * Split a string into substrings using the specified separator and return them as an array.
  20915. * @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.
  20916. * @param limit A value used to limit the number of elements returned in the array.
  20917. */
  20918. split(separator: string | RegExp, limit?: number): string[];
  20919. /**
  20920. * Returns the substring at the specified location within a String object.
  20921. * @param start The zero-based index number indicating the beginning of the substring.
  20922. * @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.
  20923. * If end is omitted, the characters from start through the end of the original string are returned.
  20924. */
  20925. substring(start: number, end?: number): string;
  20926. /** Converts all the alphabetic characters in a string to lowercase. */
  20927. toLowerCase(): string;
  20928. /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
  20929. toLocaleLowerCase(locales?: string | string[]): string;
  20930. /** Converts all the alphabetic characters in a string to uppercase. */
  20931. toUpperCase(): string;
  20932. /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
  20933. toLocaleUpperCase(locales?: string | string[]): string;
  20934. /** Removes the leading and trailing white space and line terminator characters from a string. */
  20935. trim(): string;
  20936. /** Returns the length of a String object. */
  20937. readonly length: number;
  20938. // IE extensions
  20939. /**
  20940. * Gets a substring beginning at the specified location and having the specified length.
  20941. * @deprecated A legacy feature for browser compatibility
  20942. * @param from The starting position of the desired substring. The index of the first character in the string is zero.
  20943. * @param length The number of characters to include in the returned substring.
  20944. */
  20945. substr(from: number, length?: number): string;
  20946. /** Returns the primitive value of the specified object. */
  20947. valueOf(): string;
  20948. readonly [index: number]: string;
  20949. }
  20950. interface StringConstructor {
  20951. new(value?: any): String;
  20952. (value?: any): string;
  20953. readonly prototype: String;
  20954. fromCharCode(...codes: number[]): string;
  20955. }
  20956. /**
  20957. * Allows manipulation and formatting of text strings and determination and location of substrings within strings.
  20958. */
  20959. declare var String: StringConstructor;
  20960. interface Boolean {
  20961. /** Returns the primitive value of the specified object. */
  20962. valueOf(): boolean;
  20963. }
  20964. interface BooleanConstructor {
  20965. new(value?: any): Boolean;
  20966. <T>(value?: T): boolean;
  20967. readonly prototype: Boolean;
  20968. }
  20969. declare var Boolean: BooleanConstructor;
  20970. interface Number {
  20971. /**
  20972. * Returns a string representation of an object.
  20973. * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
  20974. */
  20975. toString(radix?: number): string;
  20976. /**
  20977. * Returns a string representing a number in fixed-point notation.
  20978. * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
  20979. */
  20980. toFixed(fractionDigits?: number): string;
  20981. /**
  20982. * Returns a string containing a number represented in exponential notation.
  20983. * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
  20984. */
  20985. toExponential(fractionDigits?: number): string;
  20986. /**
  20987. * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
  20988. * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
  20989. */
  20990. toPrecision(precision?: number): string;
  20991. /** Returns the primitive value of the specified object. */
  20992. valueOf(): number;
  20993. }
  20994. interface NumberConstructor {
  20995. new(value?: any): Number;
  20996. (value?: any): number;
  20997. readonly prototype: Number;
  20998. /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
  20999. readonly MAX_VALUE: number;
  21000. /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
  21001. readonly MIN_VALUE: number;
  21002. /**
  21003. * A value that is not a number.
  21004. * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
  21005. */
  21006. readonly NaN: number;
  21007. /**
  21008. * A value that is less than the largest negative number that can be represented in JavaScript.
  21009. * JavaScript displays NEGATIVE_INFINITY values as -infinity.
  21010. */
  21011. readonly NEGATIVE_INFINITY: number;
  21012. /**
  21013. * A value greater than the largest number that can be represented in JavaScript.
  21014. * JavaScript displays POSITIVE_INFINITY values as infinity.
  21015. */
  21016. readonly POSITIVE_INFINITY: number;
  21017. }
  21018. /** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
  21019. declare var Number: NumberConstructor;
  21020. interface TemplateStringsArray extends ReadonlyArray<string> {
  21021. readonly raw: readonly string[];
  21022. }
  21023. /**
  21024. * The type of \`import.meta\`.
  21025. *
  21026. * If you need to declare that a given property exists on \`import.meta\`,
  21027. * this type may be augmented via interface merging.
  21028. */
  21029. interface ImportMeta {
  21030. }
  21031. /**
  21032. * The type for the optional second argument to \`import()\`.
  21033. *
  21034. * If your host environment supports additional options, this type may be
  21035. * augmented via interface merging.
  21036. */
  21037. interface ImportCallOptions {
  21038. assert?: ImportAssertions;
  21039. }
  21040. /**
  21041. * The type for the \`assert\` property of the optional second argument to \`import()\`.
  21042. */
  21043. interface ImportAssertions {
  21044. [key: string]: string;
  21045. }
  21046. interface Math {
  21047. /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
  21048. readonly E: number;
  21049. /** The natural logarithm of 10. */
  21050. readonly LN10: number;
  21051. /** The natural logarithm of 2. */
  21052. readonly LN2: number;
  21053. /** The base-2 logarithm of e. */
  21054. readonly LOG2E: number;
  21055. /** The base-10 logarithm of e. */
  21056. readonly LOG10E: number;
  21057. /** Pi. This is the ratio of the circumference of a circle to its diameter. */
  21058. readonly PI: number;
  21059. /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
  21060. readonly SQRT1_2: number;
  21061. /** The square root of 2. */
  21062. readonly SQRT2: number;
  21063. /**
  21064. * Returns the absolute value of a number (the value without regard to whether it is positive or negative).
  21065. * For example, the absolute value of -5 is the same as the absolute value of 5.
  21066. * @param x A numeric expression for which the absolute value is needed.
  21067. */
  21068. abs(x: number): number;
  21069. /**
  21070. * Returns the arc cosine (or inverse cosine) of a number.
  21071. * @param x A numeric expression.
  21072. */
  21073. acos(x: number): number;
  21074. /**
  21075. * Returns the arcsine of a number.
  21076. * @param x A numeric expression.
  21077. */
  21078. asin(x: number): number;
  21079. /**
  21080. * Returns the arctangent of a number.
  21081. * @param x A numeric expression for which the arctangent is needed.
  21082. */
  21083. atan(x: number): number;
  21084. /**
  21085. * Returns the angle (in radians) from the X axis to a point.
  21086. * @param y A numeric expression representing the cartesian y-coordinate.
  21087. * @param x A numeric expression representing the cartesian x-coordinate.
  21088. */
  21089. atan2(y: number, x: number): number;
  21090. /**
  21091. * Returns the smallest integer greater than or equal to its numeric argument.
  21092. * @param x A numeric expression.
  21093. */
  21094. ceil(x: number): number;
  21095. /**
  21096. * Returns the cosine of a number.
  21097. * @param x A numeric expression that contains an angle measured in radians.
  21098. */
  21099. cos(x: number): number;
  21100. /**
  21101. * Returns e (the base of natural logarithms) raised to a power.
  21102. * @param x A numeric expression representing the power of e.
  21103. */
  21104. exp(x: number): number;
  21105. /**
  21106. * Returns the greatest integer less than or equal to its numeric argument.
  21107. * @param x A numeric expression.
  21108. */
  21109. floor(x: number): number;
  21110. /**
  21111. * Returns the natural logarithm (base e) of a number.
  21112. * @param x A numeric expression.
  21113. */
  21114. log(x: number): number;
  21115. /**
  21116. * Returns the larger of a set of supplied numeric expressions.
  21117. * @param values Numeric expressions to be evaluated.
  21118. */
  21119. max(...values: number[]): number;
  21120. /**
  21121. * Returns the smaller of a set of supplied numeric expressions.
  21122. * @param values Numeric expressions to be evaluated.
  21123. */
  21124. min(...values: number[]): number;
  21125. /**
  21126. * Returns the value of a base expression taken to a specified power.
  21127. * @param x The base value of the expression.
  21128. * @param y The exponent value of the expression.
  21129. */
  21130. pow(x: number, y: number): number;
  21131. /** Returns a pseudorandom number between 0 and 1. */
  21132. random(): number;
  21133. /**
  21134. * Returns a supplied numeric expression rounded to the nearest integer.
  21135. * @param x The value to be rounded to the nearest integer.
  21136. */
  21137. round(x: number): number;
  21138. /**
  21139. * Returns the sine of a number.
  21140. * @param x A numeric expression that contains an angle measured in radians.
  21141. */
  21142. sin(x: number): number;
  21143. /**
  21144. * Returns the square root of a number.
  21145. * @param x A numeric expression.
  21146. */
  21147. sqrt(x: number): number;
  21148. /**
  21149. * Returns the tangent of a number.
  21150. * @param x A numeric expression that contains an angle measured in radians.
  21151. */
  21152. tan(x: number): number;
  21153. }
  21154. /** An intrinsic object that provides basic mathematics functionality and constants. */
  21155. declare var Math: Math;
  21156. /** Enables basic storage and retrieval of dates and times. */
  21157. interface Date {
  21158. /** Returns a string representation of a date. The format of the string depends on the locale. */
  21159. toString(): string;
  21160. /** Returns a date as a string value. */
  21161. toDateString(): string;
  21162. /** Returns a time as a string value. */
  21163. toTimeString(): string;
  21164. /** Returns a value as a string value appropriate to the host environment's current locale. */
  21165. toLocaleString(): string;
  21166. /** Returns a date as a string value appropriate to the host environment's current locale. */
  21167. toLocaleDateString(): string;
  21168. /** Returns a time as a string value appropriate to the host environment's current locale. */
  21169. toLocaleTimeString(): string;
  21170. /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
  21171. valueOf(): number;
  21172. /** Gets the time value in milliseconds. */
  21173. getTime(): number;
  21174. /** Gets the year, using local time. */
  21175. getFullYear(): number;
  21176. /** Gets the year using Universal Coordinated Time (UTC). */
  21177. getUTCFullYear(): number;
  21178. /** Gets the month, using local time. */
  21179. getMonth(): number;
  21180. /** Gets the month of a Date object using Universal Coordinated Time (UTC). */
  21181. getUTCMonth(): number;
  21182. /** Gets the day-of-the-month, using local time. */
  21183. getDate(): number;
  21184. /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */
  21185. getUTCDate(): number;
  21186. /** Gets the day of the week, using local time. */
  21187. getDay(): number;
  21188. /** Gets the day of the week using Universal Coordinated Time (UTC). */
  21189. getUTCDay(): number;
  21190. /** Gets the hours in a date, using local time. */
  21191. getHours(): number;
  21192. /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */
  21193. getUTCHours(): number;
  21194. /** Gets the minutes of a Date object, using local time. */
  21195. getMinutes(): number;
  21196. /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */
  21197. getUTCMinutes(): number;
  21198. /** Gets the seconds of a Date object, using local time. */
  21199. getSeconds(): number;
  21200. /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */
  21201. getUTCSeconds(): number;
  21202. /** Gets the milliseconds of a Date, using local time. */
  21203. getMilliseconds(): number;
  21204. /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
  21205. getUTCMilliseconds(): number;
  21206. /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
  21207. getTimezoneOffset(): number;
  21208. /**
  21209. * Sets the date and time value in the Date object.
  21210. * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
  21211. */
  21212. setTime(time: number): number;
  21213. /**
  21214. * Sets the milliseconds value in the Date object using local time.
  21215. * @param ms A numeric value equal to the millisecond value.
  21216. */
  21217. setMilliseconds(ms: number): number;
  21218. /**
  21219. * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
  21220. * @param ms A numeric value equal to the millisecond value.
  21221. */
  21222. setUTCMilliseconds(ms: number): number;
  21223. /**
  21224. * Sets the seconds value in the Date object using local time.
  21225. * @param sec A numeric value equal to the seconds value.
  21226. * @param ms A numeric value equal to the milliseconds value.
  21227. */
  21228. setSeconds(sec: number, ms?: number): number;
  21229. /**
  21230. * Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
  21231. * @param sec A numeric value equal to the seconds value.
  21232. * @param ms A numeric value equal to the milliseconds value.
  21233. */
  21234. setUTCSeconds(sec: number, ms?: number): number;
  21235. /**
  21236. * Sets the minutes value in the Date object using local time.
  21237. * @param min A numeric value equal to the minutes value.
  21238. * @param sec A numeric value equal to the seconds value.
  21239. * @param ms A numeric value equal to the milliseconds value.
  21240. */
  21241. setMinutes(min: number, sec?: number, ms?: number): number;
  21242. /**
  21243. * Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
  21244. * @param min A numeric value equal to the minutes value.
  21245. * @param sec A numeric value equal to the seconds value.
  21246. * @param ms A numeric value equal to the milliseconds value.
  21247. */
  21248. setUTCMinutes(min: number, sec?: number, ms?: number): number;
  21249. /**
  21250. * Sets the hour value in the Date object using local time.
  21251. * @param hours A numeric value equal to the hours value.
  21252. * @param min A numeric value equal to the minutes value.
  21253. * @param sec A numeric value equal to the seconds value.
  21254. * @param ms A numeric value equal to the milliseconds value.
  21255. */
  21256. setHours(hours: number, min?: number, sec?: number, ms?: number): number;
  21257. /**
  21258. * Sets the hours value in the Date object using Universal Coordinated Time (UTC).
  21259. * @param hours A numeric value equal to the hours value.
  21260. * @param min A numeric value equal to the minutes value.
  21261. * @param sec A numeric value equal to the seconds value.
  21262. * @param ms A numeric value equal to the milliseconds value.
  21263. */
  21264. setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
  21265. /**
  21266. * Sets the numeric day-of-the-month value of the Date object using local time.
  21267. * @param date A numeric value equal to the day of the month.
  21268. */
  21269. setDate(date: number): number;
  21270. /**
  21271. * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
  21272. * @param date A numeric value equal to the day of the month.
  21273. */
  21274. setUTCDate(date: number): number;
  21275. /**
  21276. * Sets the month value in the Date object using local time.
  21277. * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
  21278. * @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.
  21279. */
  21280. setMonth(month: number, date?: number): number;
  21281. /**
  21282. * Sets the month value in the Date object using Universal Coordinated Time (UTC).
  21283. * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
  21284. * @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.
  21285. */
  21286. setUTCMonth(month: number, date?: number): number;
  21287. /**
  21288. * Sets the year of the Date object using local time.
  21289. * @param year A numeric value for the year.
  21290. * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
  21291. * @param date A numeric value equal for the day of the month.
  21292. */
  21293. setFullYear(year: number, month?: number, date?: number): number;
  21294. /**
  21295. * Sets the year value in the Date object using Universal Coordinated Time (UTC).
  21296. * @param year A numeric value equal to the year.
  21297. * @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.
  21298. * @param date A numeric value equal to the day of the month.
  21299. */
  21300. setUTCFullYear(year: number, month?: number, date?: number): number;
  21301. /** Returns a date converted to a string using Universal Coordinated Time (UTC). */
  21302. toUTCString(): string;
  21303. /** Returns a date as a string value in ISO format. */
  21304. toISOString(): string;
  21305. /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */
  21306. toJSON(key?: any): string;
  21307. }
  21308. interface DateConstructor {
  21309. new(): Date;
  21310. new(value: number | string): Date;
  21311. new(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
  21312. (): string;
  21313. readonly prototype: Date;
  21314. /**
  21315. * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
  21316. * @param s A date string
  21317. */
  21318. parse(s: string): number;
  21319. /**
  21320. * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
  21321. * @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.
  21322. * @param month The month as a number between 0 and 11 (January to December).
  21323. * @param date The date as a number between 1 and 31.
  21324. * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
  21325. * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
  21326. * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
  21327. * @param ms A number from 0 to 999 that specifies the milliseconds.
  21328. */
  21329. UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
  21330. now(): number;
  21331. }
  21332. declare var Date: DateConstructor;
  21333. interface RegExpMatchArray extends Array<string> {
  21334. index?: number;
  21335. input?: string;
  21336. }
  21337. interface RegExpExecArray extends Array<string> {
  21338. index: number;
  21339. input: string;
  21340. }
  21341. interface RegExp {
  21342. /**
  21343. * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
  21344. * @param string The String object or string literal on which to perform the search.
  21345. */
  21346. exec(string: string): RegExpExecArray | null;
  21347. /**
  21348. * Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
  21349. * @param string String on which to perform the search.
  21350. */
  21351. test(string: string): boolean;
  21352. /** 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. */
  21353. readonly source: string;
  21354. /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
  21355. readonly global: boolean;
  21356. /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
  21357. readonly ignoreCase: boolean;
  21358. /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
  21359. readonly multiline: boolean;
  21360. lastIndex: number;
  21361. // Non-standard extensions
  21362. /** @deprecated A legacy feature for browser compatibility */
  21363. compile(pattern: string, flags?: string): this;
  21364. }
  21365. interface RegExpConstructor {
  21366. new(pattern: RegExp | string): RegExp;
  21367. new(pattern: string, flags?: string): RegExp;
  21368. (pattern: RegExp | string): RegExp;
  21369. (pattern: string, flags?: string): RegExp;
  21370. readonly prototype: RegExp;
  21371. // Non-standard extensions
  21372. /** @deprecated A legacy feature for browser compatibility */
  21373. $1: string;
  21374. /** @deprecated A legacy feature for browser compatibility */
  21375. $2: string;
  21376. /** @deprecated A legacy feature for browser compatibility */
  21377. $3: string;
  21378. /** @deprecated A legacy feature for browser compatibility */
  21379. $4: string;
  21380. /** @deprecated A legacy feature for browser compatibility */
  21381. $5: string;
  21382. /** @deprecated A legacy feature for browser compatibility */
  21383. $6: string;
  21384. /** @deprecated A legacy feature for browser compatibility */
  21385. $7: string;
  21386. /** @deprecated A legacy feature for browser compatibility */
  21387. $8: string;
  21388. /** @deprecated A legacy feature for browser compatibility */
  21389. $9: string;
  21390. /** @deprecated A legacy feature for browser compatibility */
  21391. input: string;
  21392. /** @deprecated A legacy feature for browser compatibility */
  21393. $_: string;
  21394. /** @deprecated A legacy feature for browser compatibility */
  21395. lastMatch: string;
  21396. /** @deprecated A legacy feature for browser compatibility */
  21397. "$&": string;
  21398. /** @deprecated A legacy feature for browser compatibility */
  21399. lastParen: string;
  21400. /** @deprecated A legacy feature for browser compatibility */
  21401. "$+": string;
  21402. /** @deprecated A legacy feature for browser compatibility */
  21403. leftContext: string;
  21404. /** @deprecated A legacy feature for browser compatibility */
  21405. "$\`": string;
  21406. /** @deprecated A legacy feature for browser compatibility */
  21407. rightContext: string;
  21408. /** @deprecated A legacy feature for browser compatibility */
  21409. "$'": string;
  21410. }
  21411. declare var RegExp: RegExpConstructor;
  21412. interface Error {
  21413. name: string;
  21414. message: string;
  21415. stack?: string;
  21416. }
  21417. interface ErrorConstructor {
  21418. new(message?: string): Error;
  21419. (message?: string): Error;
  21420. readonly prototype: Error;
  21421. }
  21422. declare var Error: ErrorConstructor;
  21423. interface EvalError extends Error {
  21424. }
  21425. interface EvalErrorConstructor extends ErrorConstructor {
  21426. new(message?: string): EvalError;
  21427. (message?: string): EvalError;
  21428. readonly prototype: EvalError;
  21429. }
  21430. declare var EvalError: EvalErrorConstructor;
  21431. interface RangeError extends Error {
  21432. }
  21433. interface RangeErrorConstructor extends ErrorConstructor {
  21434. new(message?: string): RangeError;
  21435. (message?: string): RangeError;
  21436. readonly prototype: RangeError;
  21437. }
  21438. declare var RangeError: RangeErrorConstructor;
  21439. interface ReferenceError extends Error {
  21440. }
  21441. interface ReferenceErrorConstructor extends ErrorConstructor {
  21442. new(message?: string): ReferenceError;
  21443. (message?: string): ReferenceError;
  21444. readonly prototype: ReferenceError;
  21445. }
  21446. declare var ReferenceError: ReferenceErrorConstructor;
  21447. interface SyntaxError extends Error {
  21448. }
  21449. interface SyntaxErrorConstructor extends ErrorConstructor {
  21450. new(message?: string): SyntaxError;
  21451. (message?: string): SyntaxError;
  21452. readonly prototype: SyntaxError;
  21453. }
  21454. declare var SyntaxError: SyntaxErrorConstructor;
  21455. interface TypeError extends Error {
  21456. }
  21457. interface TypeErrorConstructor extends ErrorConstructor {
  21458. new(message?: string): TypeError;
  21459. (message?: string): TypeError;
  21460. readonly prototype: TypeError;
  21461. }
  21462. declare var TypeError: TypeErrorConstructor;
  21463. interface URIError extends Error {
  21464. }
  21465. interface URIErrorConstructor extends ErrorConstructor {
  21466. new(message?: string): URIError;
  21467. (message?: string): URIError;
  21468. readonly prototype: URIError;
  21469. }
  21470. declare var URIError: URIErrorConstructor;
  21471. interface JSON {
  21472. /**
  21473. * Converts a JavaScript Object Notation (JSON) string into an object.
  21474. * @param text A valid JSON string.
  21475. * @param reviver A function that transforms the results. This function is called for each member of the object.
  21476. * If a member contains nested objects, the nested objects are transformed before the parent object is.
  21477. */
  21478. parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
  21479. /**
  21480. * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
  21481. * @param value A JavaScript value, usually an object or array, to be converted.
  21482. * @param replacer A function that transforms the results.
  21483. * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
  21484. */
  21485. stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
  21486. /**
  21487. * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
  21488. * @param value A JavaScript value, usually an object or array, to be converted.
  21489. * @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
  21490. * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
  21491. */
  21492. stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
  21493. }
  21494. /**
  21495. * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
  21496. */
  21497. declare var JSON: JSON;
  21498. /////////////////////////////
  21499. /// ECMAScript Array API (specially handled by compiler)
  21500. /////////////////////////////
  21501. interface ReadonlyArray<T> {
  21502. /**
  21503. * Gets the length of the array. This is a number one higher than the highest element defined in an array.
  21504. */
  21505. readonly length: number;
  21506. /**
  21507. * Returns a string representation of an array.
  21508. */
  21509. toString(): string;
  21510. /**
  21511. * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
  21512. */
  21513. toLocaleString(): string;
  21514. /**
  21515. * Combines two or more arrays.
  21516. * @param items Additional items to add to the end of array1.
  21517. */
  21518. concat(...items: ConcatArray<T>[]): T[];
  21519. /**
  21520. * Combines two or more arrays.
  21521. * @param items Additional items to add to the end of array1.
  21522. */
  21523. concat(...items: (T | ConcatArray<T>)[]): T[];
  21524. /**
  21525. * Adds all the elements of an array separated by the specified separator string.
  21526. * @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.
  21527. */
  21528. join(separator?: string): string;
  21529. /**
  21530. * Returns a section of an array.
  21531. * @param start The beginning of the specified portion of the array.
  21532. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
  21533. */
  21534. slice(start?: number, end?: number): T[];
  21535. /**
  21536. * Returns the index of the first occurrence of a value in an array.
  21537. * @param searchElement The value to locate in the array.
  21538. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
  21539. */
  21540. indexOf(searchElement: T, fromIndex?: number): number;
  21541. /**
  21542. * Returns the index of the last occurrence of a specified value in an array.
  21543. * @param searchElement The value to locate in the array.
  21544. * @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.
  21545. */
  21546. lastIndexOf(searchElement: T, fromIndex?: number): number;
  21547. /**
  21548. * Determines whether all the members of an array satisfy the specified test.
  21549. * @param predicate A function that accepts up to three arguments. The every method calls
  21550. * the predicate function for each element in the array until the predicate returns a value
  21551. * which is coercible to the Boolean value false, or until the end of the array.
  21552. * @param thisArg An object to which the this keyword can refer in the predicate function.
  21553. * If thisArg is omitted, undefined is used as the this value.
  21554. */
  21555. every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[];
  21556. /**
  21557. * Determines whether all the members of an array satisfy the specified test.
  21558. * @param predicate A function that accepts up to three arguments. The every method calls
  21559. * the predicate function for each element in the array until the predicate returns a value
  21560. * which is coercible to the Boolean value false, or until the end of the array.
  21561. * @param thisArg An object to which the this keyword can refer in the predicate function.
  21562. * If thisArg is omitted, undefined is used as the this value.
  21563. */
  21564. every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
  21565. /**
  21566. * Determines whether the specified callback function returns true for any element of an array.
  21567. * @param predicate A function that accepts up to three arguments. The some method calls
  21568. * the predicate function for each element in the array until the predicate returns a value
  21569. * which is coercible to the Boolean value true, or until the end of the array.
  21570. * @param thisArg An object to which the this keyword can refer in the predicate function.
  21571. * If thisArg is omitted, undefined is used as the this value.
  21572. */
  21573. some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
  21574. /**
  21575. * Performs the specified action for each element in an array.
  21576. * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
  21577. * @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.
  21578. */
  21579. forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void;
  21580. /**
  21581. * Calls a defined callback function on each element of an array, and returns an array that contains the results.
  21582. * @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.
  21583. * @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.
  21584. */
  21585. map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[];
  21586. /**
  21587. * Returns the elements of an array that meet the condition specified in a callback function.
  21588. * @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.
  21589. * @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.
  21590. */
  21591. filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];
  21592. /**
  21593. * Returns the elements of an array that meet the condition specified in a callback function.
  21594. * @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.
  21595. * @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.
  21596. */
  21597. filter(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[];
  21598. /**
  21599. * 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.
  21600. * @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.
  21601. * @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.
  21602. */
  21603. reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
  21604. reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
  21605. /**
  21606. * 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.
  21607. * @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.
  21608. * @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.
  21609. */
  21610. reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
  21611. /**
  21612. * 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.
  21613. * @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.
  21614. * @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.
  21615. */
  21616. reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
  21617. reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
  21618. /**
  21619. * 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.
  21620. * @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.
  21621. * @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.
  21622. */
  21623. reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
  21624. readonly [n: number]: T;
  21625. }
  21626. interface ConcatArray<T> {
  21627. readonly length: number;
  21628. readonly [n: number]: T;
  21629. join(separator?: string): string;
  21630. slice(start?: number, end?: number): T[];
  21631. }
  21632. interface Array<T> {
  21633. /**
  21634. * Gets or sets the length of the array. This is a number one higher than the highest index in the array.
  21635. */
  21636. length: number;
  21637. /**
  21638. * Returns a string representation of an array.
  21639. */
  21640. toString(): string;
  21641. /**
  21642. * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
  21643. */
  21644. toLocaleString(): string;
  21645. /**
  21646. * Removes the last element from an array and returns it.
  21647. * If the array is empty, undefined is returned and the array is not modified.
  21648. */
  21649. pop(): T | undefined;
  21650. /**
  21651. * Appends new elements to the end of an array, and returns the new length of the array.
  21652. * @param items New elements to add to the array.
  21653. */
  21654. push(...items: T[]): number;
  21655. /**
  21656. * Combines two or more arrays.
  21657. * This method returns a new array without modifying any existing arrays.
  21658. * @param items Additional arrays and/or items to add to the end of the array.
  21659. */
  21660. concat(...items: ConcatArray<T>[]): T[];
  21661. /**
  21662. * Combines two or more arrays.
  21663. * This method returns a new array without modifying any existing arrays.
  21664. * @param items Additional arrays and/or items to add to the end of the array.
  21665. */
  21666. concat(...items: (T | ConcatArray<T>)[]): T[];
  21667. /**
  21668. * Adds all the elements of an array into a string, separated by the specified separator string.
  21669. * @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.
  21670. */
  21671. join(separator?: string): string;
  21672. /**
  21673. * Reverses the elements in an array in place.
  21674. * This method mutates the array and returns a reference to the same array.
  21675. */
  21676. reverse(): T[];
  21677. /**
  21678. * Removes the first element from an array and returns it.
  21679. * If the array is empty, undefined is returned and the array is not modified.
  21680. */
  21681. shift(): T | undefined;
  21682. /**
  21683. * Returns a copy of a section of an array.
  21684. * For both start and end, a negative index can be used to indicate an offset from the end of the array.
  21685. * For example, -2 refers to the second to last element of the array.
  21686. * @param start The beginning index of the specified portion of the array.
  21687. * If start is undefined, then the slice begins at index 0.
  21688. * @param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.
  21689. * If end is undefined, then the slice extends to the end of the array.
  21690. */
  21691. slice(start?: number, end?: number): T[];
  21692. /**
  21693. * Sorts an array in place.
  21694. * This method mutates the array and returns a reference to the same array.
  21695. * @param compareFn Function used to determine the order of the elements. It is expected to return
  21696. * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
  21697. * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
  21698. * \`\`\`ts
  21699. * [11,2,22,1].sort((a, b) => a - b)
  21700. * \`\`\`
  21701. */
  21702. sort(compareFn?: (a: T, b: T) => number): this;
  21703. /**
  21704. * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
  21705. * @param start The zero-based location in the array from which to start removing elements.
  21706. * @param deleteCount The number of elements to remove.
  21707. * @returns An array containing the elements that were deleted.
  21708. */
  21709. splice(start: number, deleteCount?: number): T[];
  21710. /**
  21711. * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
  21712. * @param start The zero-based location in the array from which to start removing elements.
  21713. * @param deleteCount The number of elements to remove.
  21714. * @param items Elements to insert into the array in place of the deleted elements.
  21715. * @returns An array containing the elements that were deleted.
  21716. */
  21717. splice(start: number, deleteCount: number, ...items: T[]): T[];
  21718. /**
  21719. * Inserts new elements at the start of an array, and returns the new length of the array.
  21720. * @param items Elements to insert at the start of the array.
  21721. */
  21722. unshift(...items: T[]): number;
  21723. /**
  21724. * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
  21725. * @param searchElement The value to locate in the array.
  21726. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
  21727. */
  21728. indexOf(searchElement: T, fromIndex?: number): number;
  21729. /**
  21730. * Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.
  21731. * @param searchElement The value to locate in the array.
  21732. * @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.
  21733. */
  21734. lastIndexOf(searchElement: T, fromIndex?: number): number;
  21735. /**
  21736. * Determines whether all the members of an array satisfy the specified test.
  21737. * @param predicate A function that accepts up to three arguments. The every method calls
  21738. * the predicate function for each element in the array until the predicate returns a value
  21739. * which is coercible to the Boolean value false, or until the end of the array.
  21740. * @param thisArg An object to which the this keyword can refer in the predicate function.
  21741. * If thisArg is omitted, undefined is used as the this value.
  21742. */
  21743. every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[];
  21744. /**
  21745. * Determines whether all the members of an array satisfy the specified test.
  21746. * @param predicate A function that accepts up to three arguments. The every method calls
  21747. * the predicate function for each element in the array until the predicate returns a value
  21748. * which is coercible to the Boolean value false, or until the end of the array.
  21749. * @param thisArg An object to which the this keyword can refer in the predicate function.
  21750. * If thisArg is omitted, undefined is used as the this value.
  21751. */
  21752. every(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
  21753. /**
  21754. * Determines whether the specified callback function returns true for any element of an array.
  21755. * @param predicate A function that accepts up to three arguments. The some method calls
  21756. * the predicate function for each element in the array until the predicate returns a value
  21757. * which is coercible to the Boolean value true, or until the end of the array.
  21758. * @param thisArg An object to which the this keyword can refer in the predicate function.
  21759. * If thisArg is omitted, undefined is used as the this value.
  21760. */
  21761. some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
  21762. /**
  21763. * Performs the specified action for each element in an array.
  21764. * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
  21765. * @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.
  21766. */
  21767. forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
  21768. /**
  21769. * Calls a defined callback function on each element of an array, and returns an array that contains the results.
  21770. * @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.
  21771. * @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.
  21772. */
  21773. map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
  21774. /**
  21775. * Returns the elements of an array that meet the condition specified in a callback function.
  21776. * @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.
  21777. * @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.
  21778. */
  21779. filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];
  21780. /**
  21781. * Returns the elements of an array that meet the condition specified in a callback function.
  21782. * @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.
  21783. * @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.
  21784. */
  21785. filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];
  21786. /**
  21787. * 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.
  21788. * @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.
  21789. * @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.
  21790. */
  21791. reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
  21792. reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
  21793. /**
  21794. * 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.
  21795. * @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.
  21796. * @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.
  21797. */
  21798. reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
  21799. /**
  21800. * 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.
  21801. * @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.
  21802. * @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.
  21803. */
  21804. reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
  21805. reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
  21806. /**
  21807. * 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.
  21808. * @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.
  21809. * @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.
  21810. */
  21811. reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
  21812. [n: number]: T;
  21813. }
  21814. interface ArrayConstructor {
  21815. new(arrayLength?: number): any[];
  21816. new <T>(arrayLength: number): T[];
  21817. new <T>(...items: T[]): T[];
  21818. (arrayLength?: number): any[];
  21819. <T>(arrayLength: number): T[];
  21820. <T>(...items: T[]): T[];
  21821. isArray(arg: any): arg is any[];
  21822. readonly prototype: any[];
  21823. }
  21824. declare var Array: ArrayConstructor;
  21825. interface TypedPropertyDescriptor<T> {
  21826. enumerable?: boolean;
  21827. configurable?: boolean;
  21828. writable?: boolean;
  21829. value?: T;
  21830. get?: () => T;
  21831. set?: (value: T) => void;
  21832. }
  21833. declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
  21834. declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
  21835. declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
  21836. declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
  21837. declare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;
  21838. interface PromiseLike<T> {
  21839. /**
  21840. * Attaches callbacks for the resolution and/or rejection of the Promise.
  21841. * @param onfulfilled The callback to execute when the Promise is resolved.
  21842. * @param onrejected The callback to execute when the Promise is rejected.
  21843. * @returns A Promise for the completion of which ever callback is executed.
  21844. */
  21845. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;
  21846. }
  21847. /**
  21848. * Represents the completion of an asynchronous operation
  21849. */
  21850. interface Promise<T> {
  21851. /**
  21852. * Attaches callbacks for the resolution and/or rejection of the Promise.
  21853. * @param onfulfilled The callback to execute when the Promise is resolved.
  21854. * @param onrejected The callback to execute when the Promise is rejected.
  21855. * @returns A Promise for the completion of which ever callback is executed.
  21856. */
  21857. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
  21858. /**
  21859. * Attaches a callback for only the rejection of the Promise.
  21860. * @param onrejected The callback to execute when the Promise is rejected.
  21861. * @returns A Promise for the completion of the callback.
  21862. */
  21863. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
  21864. }
  21865. /**
  21866. * Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to \`never\`. This emulates the behavior of \`await\`.
  21867. */
  21868. type Awaited<T> =
  21869. T extends null | undefined ? T : // special case for \`null | undefined\` when not in \`--strictNullChecks\` mode
  21870. T extends object & { then(onfulfilled: infer F): any } ? // \`await\` only unwraps object types with a callable \`then\`. Non-object types are not unwrapped
  21871. F extends ((value: infer V, ...args: any) => any) ? // if the argument to \`then\` is callable, extracts the first argument
  21872. Awaited<V> : // recursively unwrap the value
  21873. never : // the argument to \`then\` was not callable
  21874. T; // non-object or non-thenable
  21875. interface ArrayLike<T> {
  21876. readonly length: number;
  21877. readonly [n: number]: T;
  21878. }
  21879. /**
  21880. * Make all properties in T optional
  21881. */
  21882. type Partial<T> = {
  21883. [P in keyof T]?: T[P];
  21884. };
  21885. /**
  21886. * Make all properties in T required
  21887. */
  21888. type Required<T> = {
  21889. [P in keyof T]-?: T[P];
  21890. };
  21891. /**
  21892. * Make all properties in T readonly
  21893. */
  21894. type Readonly<T> = {
  21895. readonly [P in keyof T]: T[P];
  21896. };
  21897. /**
  21898. * From T, pick a set of properties whose keys are in the union K
  21899. */
  21900. type Pick<T, K extends keyof T> = {
  21901. [P in K]: T[P];
  21902. };
  21903. /**
  21904. * Construct a type with a set of properties K of type T
  21905. */
  21906. type Record<K extends keyof any, T> = {
  21907. [P in K]: T;
  21908. };
  21909. /**
  21910. * Exclude from T those types that are assignable to U
  21911. */
  21912. type Exclude<T, U> = T extends U ? never : T;
  21913. /**
  21914. * Extract from T those types that are assignable to U
  21915. */
  21916. type Extract<T, U> = T extends U ? T : never;
  21917. /**
  21918. * Construct a type with the properties of T except for those in type K.
  21919. */
  21920. type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
  21921. /**
  21922. * Exclude null and undefined from T
  21923. */
  21924. type NonNullable<T> = T extends null | undefined ? never : T;
  21925. /**
  21926. * Obtain the parameters of a function type in a tuple
  21927. */
  21928. type Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;
  21929. /**
  21930. * Obtain the parameters of a constructor function type in a tuple
  21931. */
  21932. type ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never;
  21933. /**
  21934. * Obtain the return type of a function type
  21935. */
  21936. type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;
  21937. /**
  21938. * Obtain the return type of a constructor function type
  21939. */
  21940. type InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;
  21941. /**
  21942. * Convert string literal type to uppercase
  21943. */
  21944. type Uppercase<S extends string> = intrinsic;
  21945. /**
  21946. * Convert string literal type to lowercase
  21947. */
  21948. type Lowercase<S extends string> = intrinsic;
  21949. /**
  21950. * Convert first character of string literal type to uppercase
  21951. */
  21952. type Capitalize<S extends string> = intrinsic;
  21953. /**
  21954. * Convert first character of string literal type to lowercase
  21955. */
  21956. type Uncapitalize<S extends string> = intrinsic;
  21957. /**
  21958. * Marker for contextual 'this' type
  21959. */
  21960. interface ThisType<T> { }
  21961. /**
  21962. * Represents a raw buffer of binary data, which is used to store data for the
  21963. * different typed arrays. ArrayBuffers cannot be read from or written to directly,
  21964. * but can be passed to a typed array or DataView Object to interpret the raw
  21965. * buffer as needed.
  21966. */
  21967. interface ArrayBuffer {
  21968. /**
  21969. * Read-only. The length of the ArrayBuffer (in bytes).
  21970. */
  21971. readonly byteLength: number;
  21972. /**
  21973. * Returns a section of an ArrayBuffer.
  21974. */
  21975. slice(begin: number, end?: number): ArrayBuffer;
  21976. }
  21977. /**
  21978. * Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.
  21979. */
  21980. interface ArrayBufferTypes {
  21981. ArrayBuffer: ArrayBuffer;
  21982. }
  21983. type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];
  21984. interface ArrayBufferConstructor {
  21985. readonly prototype: ArrayBuffer;
  21986. new(byteLength: number): ArrayBuffer;
  21987. isView(arg: any): arg is ArrayBufferView;
  21988. }
  21989. declare var ArrayBuffer: ArrayBufferConstructor;
  21990. interface ArrayBufferView {
  21991. /**
  21992. * The ArrayBuffer instance referenced by the array.
  21993. */
  21994. buffer: ArrayBufferLike;
  21995. /**
  21996. * The length in bytes of the array.
  21997. */
  21998. byteLength: number;
  21999. /**
  22000. * The offset in bytes of the array.
  22001. */
  22002. byteOffset: number;
  22003. }
  22004. interface DataView {
  22005. readonly buffer: ArrayBuffer;
  22006. readonly byteLength: number;
  22007. readonly byteOffset: number;
  22008. /**
  22009. * Gets the Float32 value at the specified byte offset from the start of the view. There is
  22010. * no alignment constraint; multi-byte values may be fetched from any offset.
  22011. * @param byteOffset The place in the buffer at which the value should be retrieved.
  22012. */
  22013. getFloat32(byteOffset: number, littleEndian?: boolean): number;
  22014. /**
  22015. * Gets the Float64 value at the specified byte offset from the start of the view. There is
  22016. * no alignment constraint; multi-byte values may be fetched from any offset.
  22017. * @param byteOffset The place in the buffer at which the value should be retrieved.
  22018. */
  22019. getFloat64(byteOffset: number, littleEndian?: boolean): number;
  22020. /**
  22021. * Gets the Int8 value at the specified byte offset from the start of the view. There is
  22022. * no alignment constraint; multi-byte values may be fetched from any offset.
  22023. * @param byteOffset The place in the buffer at which the value should be retrieved.
  22024. */
  22025. getInt8(byteOffset: number): number;
  22026. /**
  22027. * Gets the Int16 value at the specified byte offset from the start of the view. There is
  22028. * no alignment constraint; multi-byte values may be fetched from any offset.
  22029. * @param byteOffset The place in the buffer at which the value should be retrieved.
  22030. */
  22031. getInt16(byteOffset: number, littleEndian?: boolean): number;
  22032. /**
  22033. * Gets the Int32 value at the specified byte offset from the start of the view. There is
  22034. * no alignment constraint; multi-byte values may be fetched from any offset.
  22035. * @param byteOffset The place in the buffer at which the value should be retrieved.
  22036. */
  22037. getInt32(byteOffset: number, littleEndian?: boolean): number;
  22038. /**
  22039. * Gets the Uint8 value at the specified byte offset from the start of the view. There is
  22040. * no alignment constraint; multi-byte values may be fetched from any offset.
  22041. * @param byteOffset The place in the buffer at which the value should be retrieved.
  22042. */
  22043. getUint8(byteOffset: number): number;
  22044. /**
  22045. * Gets the Uint16 value at the specified byte offset from the start of the view. There is
  22046. * no alignment constraint; multi-byte values may be fetched from any offset.
  22047. * @param byteOffset The place in the buffer at which the value should be retrieved.
  22048. */
  22049. getUint16(byteOffset: number, littleEndian?: boolean): number;
  22050. /**
  22051. * Gets the Uint32 value at the specified byte offset from the start of the view. There is
  22052. * no alignment constraint; multi-byte values may be fetched from any offset.
  22053. * @param byteOffset The place in the buffer at which the value should be retrieved.
  22054. */
  22055. getUint32(byteOffset: number, littleEndian?: boolean): number;
  22056. /**
  22057. * Stores an Float32 value at the specified byte offset from the start of the view.
  22058. * @param byteOffset The place in the buffer at which the value should be set.
  22059. * @param value The value to set.
  22060. * @param littleEndian If false or undefined, a big-endian value should be written,
  22061. * otherwise a little-endian value should be written.
  22062. */
  22063. setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
  22064. /**
  22065. * Stores an Float64 value at the specified byte offset from the start of the view.
  22066. * @param byteOffset The place in the buffer at which the value should be set.
  22067. * @param value The value to set.
  22068. * @param littleEndian If false or undefined, a big-endian value should be written,
  22069. * otherwise a little-endian value should be written.
  22070. */
  22071. setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
  22072. /**
  22073. * Stores an Int8 value at the specified byte offset from the start of the view.
  22074. * @param byteOffset The place in the buffer at which the value should be set.
  22075. * @param value The value to set.
  22076. */
  22077. setInt8(byteOffset: number, value: number): void;
  22078. /**
  22079. * Stores an Int16 value at the specified byte offset from the start of the view.
  22080. * @param byteOffset The place in the buffer at which the value should be set.
  22081. * @param value The value to set.
  22082. * @param littleEndian If false or undefined, a big-endian value should be written,
  22083. * otherwise a little-endian value should be written.
  22084. */
  22085. setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
  22086. /**
  22087. * Stores an Int32 value at the specified byte offset from the start of the view.
  22088. * @param byteOffset The place in the buffer at which the value should be set.
  22089. * @param value The value to set.
  22090. * @param littleEndian If false or undefined, a big-endian value should be written,
  22091. * otherwise a little-endian value should be written.
  22092. */
  22093. setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
  22094. /**
  22095. * Stores an Uint8 value at the specified byte offset from the start of the view.
  22096. * @param byteOffset The place in the buffer at which the value should be set.
  22097. * @param value The value to set.
  22098. */
  22099. setUint8(byteOffset: number, value: number): void;
  22100. /**
  22101. * Stores an Uint16 value at the specified byte offset from the start of the view.
  22102. * @param byteOffset The place in the buffer at which the value should be set.
  22103. * @param value The value to set.
  22104. * @param littleEndian If false or undefined, a big-endian value should be written,
  22105. * otherwise a little-endian value should be written.
  22106. */
  22107. setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
  22108. /**
  22109. * Stores an Uint32 value at the specified byte offset from the start of the view.
  22110. * @param byteOffset The place in the buffer at which the value should be set.
  22111. * @param value The value to set.
  22112. * @param littleEndian If false or undefined, a big-endian value should be written,
  22113. * otherwise a little-endian value should be written.
  22114. */
  22115. setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
  22116. }
  22117. interface DataViewConstructor {
  22118. readonly prototype: DataView;
  22119. new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;
  22120. }
  22121. declare var DataView: DataViewConstructor;
  22122. /**
  22123. * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
  22124. * number of bytes could not be allocated an exception is raised.
  22125. */
  22126. interface Int8Array {
  22127. /**
  22128. * The size in bytes of each element in the array.
  22129. */
  22130. readonly BYTES_PER_ELEMENT: number;
  22131. /**
  22132. * The ArrayBuffer instance referenced by the array.
  22133. */
  22134. readonly buffer: ArrayBufferLike;
  22135. /**
  22136. * The length in bytes of the array.
  22137. */
  22138. readonly byteLength: number;
  22139. /**
  22140. * The offset in bytes of the array.
  22141. */
  22142. readonly byteOffset: number;
  22143. /**
  22144. * Returns the this object after copying a section of the array identified by start and end
  22145. * to the same array starting at position target
  22146. * @param target If target is negative, it is treated as length+target where length is the
  22147. * length of the array.
  22148. * @param start If start is negative, it is treated as length+start. If end is negative, it
  22149. * is treated as length+end.
  22150. * @param end If not specified, length of the this object is used as its default value.
  22151. */
  22152. copyWithin(target: number, start: number, end?: number): this;
  22153. /**
  22154. * Determines whether all the members of an array satisfy the specified test.
  22155. * @param predicate A function that accepts up to three arguments. The every method calls
  22156. * the predicate function for each element in the array until the predicate returns a value
  22157. * which is coercible to the Boolean value false, or until the end of the array.
  22158. * @param thisArg An object to which the this keyword can refer in the predicate function.
  22159. * If thisArg is omitted, undefined is used as the this value.
  22160. */
  22161. every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
  22162. /**
  22163. * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
  22164. * @param value value to fill array section with
  22165. * @param start index to start filling the array at. If start is negative, it is treated as
  22166. * length+start where length is the length of the array.
  22167. * @param end index to stop filling the array at. If end is negative, it is treated as
  22168. * length+end.
  22169. */
  22170. fill(value: number, start?: number, end?: number): this;
  22171. /**
  22172. * Returns the elements of an array that meet the condition specified in a callback function.
  22173. * @param predicate A function that accepts up to three arguments. The filter method calls
  22174. * the predicate function one time for each element in the array.
  22175. * @param thisArg An object to which the this keyword can refer in the predicate function.
  22176. * If thisArg is omitted, undefined is used as the this value.
  22177. */
  22178. filter(predicate: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;
  22179. /**
  22180. * Returns the value of the first element in the array where predicate is true, and undefined
  22181. * otherwise.
  22182. * @param predicate find calls predicate once for each element of the array, in ascending
  22183. * order, until it finds one where predicate returns true. If such an element is found, find
  22184. * immediately returns that element value. Otherwise, find returns undefined.
  22185. * @param thisArg If provided, it will be used as the this value for each invocation of
  22186. * predicate. If it is not provided, undefined is used instead.
  22187. */
  22188. find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;
  22189. /**
  22190. * Returns the index of the first element in the array where predicate is true, and -1
  22191. * otherwise.
  22192. * @param predicate find calls predicate once for each element of the array, in ascending
  22193. * order, until it finds one where predicate returns true. If such an element is found,
  22194. * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
  22195. * @param thisArg If provided, it will be used as the this value for each invocation of
  22196. * predicate. If it is not provided, undefined is used instead.
  22197. */
  22198. findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;
  22199. /**
  22200. * Performs the specified action for each element in an array.
  22201. * @param callbackfn A function that accepts up to three arguments. forEach calls the
  22202. * callbackfn function one time for each element in the array.
  22203. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  22204. * If thisArg is omitted, undefined is used as the this value.
  22205. */
  22206. forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;
  22207. /**
  22208. * Returns the index of the first occurrence of a value in an array.
  22209. * @param searchElement The value to locate in the array.
  22210. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  22211. * search starts at index 0.
  22212. */
  22213. indexOf(searchElement: number, fromIndex?: number): number;
  22214. /**
  22215. * Adds all the elements of an array separated by the specified separator string.
  22216. * @param separator A string used to separate one element of an array from the next in the
  22217. * resulting String. If omitted, the array elements are separated with a comma.
  22218. */
  22219. join(separator?: string): string;
  22220. /**
  22221. * Returns the index of the last occurrence of a value in an array.
  22222. * @param searchElement The value to locate in the array.
  22223. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  22224. * search starts at index 0.
  22225. */
  22226. lastIndexOf(searchElement: number, fromIndex?: number): number;
  22227. /**
  22228. * The length of the array.
  22229. */
  22230. readonly length: number;
  22231. /**
  22232. * Calls a defined callback function on each element of an array, and returns an array that
  22233. * contains the results.
  22234. * @param callbackfn A function that accepts up to three arguments. The map method calls the
  22235. * callbackfn function one time for each element in the array.
  22236. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  22237. * If thisArg is omitted, undefined is used as the this value.
  22238. */
  22239. map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;
  22240. /**
  22241. * Calls the specified callback function for all the elements in an array. The return value of
  22242. * the callback function is the accumulated result, and is provided as an argument in the next
  22243. * call to the callback function.
  22244. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  22245. * callbackfn function one time for each element in the array.
  22246. * @param initialValue If initialValue is specified, it is used as the initial value to start
  22247. * the accumulation. The first call to the callbackfn function provides this value as an argument
  22248. * instead of an array value.
  22249. */
  22250. reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
  22251. reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
  22252. /**
  22253. * Calls the specified callback function for all the elements in an array. The return value of
  22254. * the callback function is the accumulated result, and is provided as an argument in the next
  22255. * call to the callback function.
  22256. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  22257. * callbackfn function one time for each element in the array.
  22258. * @param initialValue If initialValue is specified, it is used as the initial value to start
  22259. * the accumulation. The first call to the callbackfn function provides this value as an argument
  22260. * instead of an array value.
  22261. */
  22262. reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
  22263. /**
  22264. * Calls the specified callback function for all the elements in an array, in descending order.
  22265. * The return value of the callback function is the accumulated result, and is provided as an
  22266. * argument in the next call to the callback function.
  22267. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  22268. * the callbackfn function one time for each element in the array.
  22269. * @param initialValue If initialValue is specified, it is used as the initial value to start
  22270. * the accumulation. The first call to the callbackfn function provides this value as an
  22271. * argument instead of an array value.
  22272. */
  22273. reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
  22274. reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
  22275. /**
  22276. * Calls the specified callback function for all the elements in an array, in descending order.
  22277. * The return value of the callback function is the accumulated result, and is provided as an
  22278. * argument in the next call to the callback function.
  22279. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  22280. * the callbackfn function one time for each element in the array.
  22281. * @param initialValue If initialValue is specified, it is used as the initial value to start
  22282. * the accumulation. The first call to the callbackfn function provides this value as an argument
  22283. * instead of an array value.
  22284. */
  22285. reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
  22286. /**
  22287. * Reverses the elements in an Array.
  22288. */
  22289. reverse(): Int8Array;
  22290. /**
  22291. * Sets a value or an array of values.
  22292. * @param array A typed or untyped array of values to set.
  22293. * @param offset The index in the current array at which the values are to be written.
  22294. */
  22295. set(array: ArrayLike<number>, offset?: number): void;
  22296. /**
  22297. * Returns a section of an array.
  22298. * @param start The beginning of the specified portion of the array.
  22299. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
  22300. */
  22301. slice(start?: number, end?: number): Int8Array;
  22302. /**
  22303. * Determines whether the specified callback function returns true for any element of an array.
  22304. * @param predicate A function that accepts up to three arguments. The some method calls
  22305. * the predicate function for each element in the array until the predicate returns a value
  22306. * which is coercible to the Boolean value true, or until the end of the array.
  22307. * @param thisArg An object to which the this keyword can refer in the predicate function.
  22308. * If thisArg is omitted, undefined is used as the this value.
  22309. */
  22310. some(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
  22311. /**
  22312. * Sorts an array.
  22313. * @param compareFn Function used to determine the order of the elements. It is expected to return
  22314. * a negative value if first argument is less than second argument, zero if they're equal and a positive
  22315. * value otherwise. If omitted, the elements are sorted in ascending order.
  22316. * \`\`\`ts
  22317. * [11,2,22,1].sort((a, b) => a - b)
  22318. * \`\`\`
  22319. */
  22320. sort(compareFn?: (a: number, b: number) => number): this;
  22321. /**
  22322. * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements
  22323. * at begin, inclusive, up to end, exclusive.
  22324. * @param begin The index of the beginning of the array.
  22325. * @param end The index of the end of the array.
  22326. */
  22327. subarray(begin?: number, end?: number): Int8Array;
  22328. /**
  22329. * Converts a number to a string by using the current locale.
  22330. */
  22331. toLocaleString(): string;
  22332. /**
  22333. * Returns a string representation of an array.
  22334. */
  22335. toString(): string;
  22336. /** Returns the primitive value of the specified object. */
  22337. valueOf(): Int8Array;
  22338. [index: number]: number;
  22339. }
  22340. interface Int8ArrayConstructor {
  22341. readonly prototype: Int8Array;
  22342. new(length: number): Int8Array;
  22343. new(array: ArrayLike<number> | ArrayBufferLike): Int8Array;
  22344. new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;
  22345. /**
  22346. * The size in bytes of each element in the array.
  22347. */
  22348. readonly BYTES_PER_ELEMENT: number;
  22349. /**
  22350. * Returns a new array from a set of elements.
  22351. * @param items A set of elements to include in the new array object.
  22352. */
  22353. of(...items: number[]): Int8Array;
  22354. /**
  22355. * Creates an array from an array-like or iterable object.
  22356. * @param arrayLike An array-like or iterable object to convert to an array.
  22357. */
  22358. from(arrayLike: ArrayLike<number>): Int8Array;
  22359. /**
  22360. * Creates an array from an array-like or iterable object.
  22361. * @param arrayLike An array-like or iterable object to convert to an array.
  22362. * @param mapfn A mapping function to call on every element of the array.
  22363. * @param thisArg Value of 'this' used to invoke the mapfn.
  22364. */
  22365. from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;
  22366. }
  22367. declare var Int8Array: Int8ArrayConstructor;
  22368. /**
  22369. * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
  22370. * requested number of bytes could not be allocated an exception is raised.
  22371. */
  22372. interface Uint8Array {
  22373. /**
  22374. * The size in bytes of each element in the array.
  22375. */
  22376. readonly BYTES_PER_ELEMENT: number;
  22377. /**
  22378. * The ArrayBuffer instance referenced by the array.
  22379. */
  22380. readonly buffer: ArrayBufferLike;
  22381. /**
  22382. * The length in bytes of the array.
  22383. */
  22384. readonly byteLength: number;
  22385. /**
  22386. * The offset in bytes of the array.
  22387. */
  22388. readonly byteOffset: number;
  22389. /**
  22390. * Returns the this object after copying a section of the array identified by start and end
  22391. * to the same array starting at position target
  22392. * @param target If target is negative, it is treated as length+target where length is the
  22393. * length of the array.
  22394. * @param start If start is negative, it is treated as length+start. If end is negative, it
  22395. * is treated as length+end.
  22396. * @param end If not specified, length of the this object is used as its default value.
  22397. */
  22398. copyWithin(target: number, start: number, end?: number): this;
  22399. /**
  22400. * Determines whether all the members of an array satisfy the specified test.
  22401. * @param predicate A function that accepts up to three arguments. The every method calls
  22402. * the predicate function for each element in the array until the predicate returns a value
  22403. * which is coercible to the Boolean value false, or until the end of the array.
  22404. * @param thisArg An object to which the this keyword can refer in the predicate function.
  22405. * If thisArg is omitted, undefined is used as the this value.
  22406. */
  22407. every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
  22408. /**
  22409. * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
  22410. * @param value value to fill array section with
  22411. * @param start index to start filling the array at. If start is negative, it is treated as
  22412. * length+start where length is the length of the array.
  22413. * @param end index to stop filling the array at. If end is negative, it is treated as
  22414. * length+end.
  22415. */
  22416. fill(value: number, start?: number, end?: number): this;
  22417. /**
  22418. * Returns the elements of an array that meet the condition specified in a callback function.
  22419. * @param predicate A function that accepts up to three arguments. The filter method calls
  22420. * the predicate function one time for each element in the array.
  22421. * @param thisArg An object to which the this keyword can refer in the predicate function.
  22422. * If thisArg is omitted, undefined is used as the this value.
  22423. */
  22424. filter(predicate: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;
  22425. /**
  22426. * Returns the value of the first element in the array where predicate is true, and undefined
  22427. * otherwise.
  22428. * @param predicate find calls predicate once for each element of the array, in ascending
  22429. * order, until it finds one where predicate returns true. If such an element is found, find
  22430. * immediately returns that element value. Otherwise, find returns undefined.
  22431. * @param thisArg If provided, it will be used as the this value for each invocation of
  22432. * predicate. If it is not provided, undefined is used instead.
  22433. */
  22434. find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;
  22435. /**
  22436. * Returns the index of the first element in the array where predicate is true, and -1
  22437. * otherwise.
  22438. * @param predicate find calls predicate once for each element of the array, in ascending
  22439. * order, until it finds one where predicate returns true. If such an element is found,
  22440. * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
  22441. * @param thisArg If provided, it will be used as the this value for each invocation of
  22442. * predicate. If it is not provided, undefined is used instead.
  22443. */
  22444. findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;
  22445. /**
  22446. * Performs the specified action for each element in an array.
  22447. * @param callbackfn A function that accepts up to three arguments. forEach calls the
  22448. * callbackfn function one time for each element in the array.
  22449. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  22450. * If thisArg is omitted, undefined is used as the this value.
  22451. */
  22452. forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;
  22453. /**
  22454. * Returns the index of the first occurrence of a value in an array.
  22455. * @param searchElement The value to locate in the array.
  22456. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  22457. * search starts at index 0.
  22458. */
  22459. indexOf(searchElement: number, fromIndex?: number): number;
  22460. /**
  22461. * Adds all the elements of an array separated by the specified separator string.
  22462. * @param separator A string used to separate one element of an array from the next in the
  22463. * resulting String. If omitted, the array elements are separated with a comma.
  22464. */
  22465. join(separator?: string): string;
  22466. /**
  22467. * Returns the index of the last occurrence of a value in an array.
  22468. * @param searchElement The value to locate in the array.
  22469. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  22470. * search starts at index 0.
  22471. */
  22472. lastIndexOf(searchElement: number, fromIndex?: number): number;
  22473. /**
  22474. * The length of the array.
  22475. */
  22476. readonly length: number;
  22477. /**
  22478. * Calls a defined callback function on each element of an array, and returns an array that
  22479. * contains the results.
  22480. * @param callbackfn A function that accepts up to three arguments. The map method calls the
  22481. * callbackfn function one time for each element in the array.
  22482. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  22483. * If thisArg is omitted, undefined is used as the this value.
  22484. */
  22485. map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;
  22486. /**
  22487. * Calls the specified callback function for all the elements in an array. The return value of
  22488. * the callback function is the accumulated result, and is provided as an argument in the next
  22489. * call to the callback function.
  22490. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  22491. * callbackfn function one time for each element in the array.
  22492. * @param initialValue If initialValue is specified, it is used as the initial value to start
  22493. * the accumulation. The first call to the callbackfn function provides this value as an argument
  22494. * instead of an array value.
  22495. */
  22496. reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
  22497. reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
  22498. /**
  22499. * Calls the specified callback function for all the elements in an array. The return value of
  22500. * the callback function is the accumulated result, and is provided as an argument in the next
  22501. * call to the callback function.
  22502. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  22503. * callbackfn function one time for each element in the array.
  22504. * @param initialValue If initialValue is specified, it is used as the initial value to start
  22505. * the accumulation. The first call to the callbackfn function provides this value as an argument
  22506. * instead of an array value.
  22507. */
  22508. reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
  22509. /**
  22510. * Calls the specified callback function for all the elements in an array, in descending order.
  22511. * The return value of the callback function is the accumulated result, and is provided as an
  22512. * argument in the next call to the callback function.
  22513. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  22514. * the callbackfn function one time for each element in the array.
  22515. * @param initialValue If initialValue is specified, it is used as the initial value to start
  22516. * the accumulation. The first call to the callbackfn function provides this value as an
  22517. * argument instead of an array value.
  22518. */
  22519. reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
  22520. reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
  22521. /**
  22522. * Calls the specified callback function for all the elements in an array, in descending order.
  22523. * The return value of the callback function is the accumulated result, and is provided as an
  22524. * argument in the next call to the callback function.
  22525. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  22526. * the callbackfn function one time for each element in the array.
  22527. * @param initialValue If initialValue is specified, it is used as the initial value to start
  22528. * the accumulation. The first call to the callbackfn function provides this value as an argument
  22529. * instead of an array value.
  22530. */
  22531. reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
  22532. /**
  22533. * Reverses the elements in an Array.
  22534. */
  22535. reverse(): Uint8Array;
  22536. /**
  22537. * Sets a value or an array of values.
  22538. * @param array A typed or untyped array of values to set.
  22539. * @param offset The index in the current array at which the values are to be written.
  22540. */
  22541. set(array: ArrayLike<number>, offset?: number): void;
  22542. /**
  22543. * Returns a section of an array.
  22544. * @param start The beginning of the specified portion of the array.
  22545. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
  22546. */
  22547. slice(start?: number, end?: number): Uint8Array;
  22548. /**
  22549. * Determines whether the specified callback function returns true for any element of an array.
  22550. * @param predicate A function that accepts up to three arguments. The some method calls
  22551. * the predicate function for each element in the array until the predicate returns a value
  22552. * which is coercible to the Boolean value true, or until the end of the array.
  22553. * @param thisArg An object to which the this keyword can refer in the predicate function.
  22554. * If thisArg is omitted, undefined is used as the this value.
  22555. */
  22556. some(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
  22557. /**
  22558. * Sorts an array.
  22559. * @param compareFn Function used to determine the order of the elements. It is expected to return
  22560. * a negative value if first argument is less than second argument, zero if they're equal and a positive
  22561. * value otherwise. If omitted, the elements are sorted in ascending order.
  22562. * \`\`\`ts
  22563. * [11,2,22,1].sort((a, b) => a - b)
  22564. * \`\`\`
  22565. */
  22566. sort(compareFn?: (a: number, b: number) => number): this;
  22567. /**
  22568. * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
  22569. * at begin, inclusive, up to end, exclusive.
  22570. * @param begin The index of the beginning of the array.
  22571. * @param end The index of the end of the array.
  22572. */
  22573. subarray(begin?: number, end?: number): Uint8Array;
  22574. /**
  22575. * Converts a number to a string by using the current locale.
  22576. */
  22577. toLocaleString(): string;
  22578. /**
  22579. * Returns a string representation of an array.
  22580. */
  22581. toString(): string;
  22582. /** Returns the primitive value of the specified object. */
  22583. valueOf(): Uint8Array;
  22584. [index: number]: number;
  22585. }
  22586. interface Uint8ArrayConstructor {
  22587. readonly prototype: Uint8Array;
  22588. new(length: number): Uint8Array;
  22589. new(array: ArrayLike<number> | ArrayBufferLike): Uint8Array;
  22590. new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;
  22591. /**
  22592. * The size in bytes of each element in the array.
  22593. */
  22594. readonly BYTES_PER_ELEMENT: number;
  22595. /**
  22596. * Returns a new array from a set of elements.
  22597. * @param items A set of elements to include in the new array object.
  22598. */
  22599. of(...items: number[]): Uint8Array;
  22600. /**
  22601. * Creates an array from an array-like or iterable object.
  22602. * @param arrayLike An array-like or iterable object to convert to an array.
  22603. */
  22604. from(arrayLike: ArrayLike<number>): Uint8Array;
  22605. /**
  22606. * Creates an array from an array-like or iterable object.
  22607. * @param arrayLike An array-like or iterable object to convert to an array.
  22608. * @param mapfn A mapping function to call on every element of the array.
  22609. * @param thisArg Value of 'this' used to invoke the mapfn.
  22610. */
  22611. from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;
  22612. }
  22613. declare var Uint8Array: Uint8ArrayConstructor;
  22614. /**
  22615. * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
  22616. * If the requested number of bytes could not be allocated an exception is raised.
  22617. */
  22618. interface Uint8ClampedArray {
  22619. /**
  22620. * The size in bytes of each element in the array.
  22621. */
  22622. readonly BYTES_PER_ELEMENT: number;
  22623. /**
  22624. * The ArrayBuffer instance referenced by the array.
  22625. */
  22626. readonly buffer: ArrayBufferLike;
  22627. /**
  22628. * The length in bytes of the array.
  22629. */
  22630. readonly byteLength: number;
  22631. /**
  22632. * The offset in bytes of the array.
  22633. */
  22634. readonly byteOffset: number;
  22635. /**
  22636. * Returns the this object after copying a section of the array identified by start and end
  22637. * to the same array starting at position target
  22638. * @param target If target is negative, it is treated as length+target where length is the
  22639. * length of the array.
  22640. * @param start If start is negative, it is treated as length+start. If end is negative, it
  22641. * is treated as length+end.
  22642. * @param end If not specified, length of the this object is used as its default value.
  22643. */
  22644. copyWithin(target: number, start: number, end?: number): this;
  22645. /**
  22646. * Determines whether all the members of an array satisfy the specified test.
  22647. * @param predicate A function that accepts up to three arguments. The every method calls
  22648. * the predicate function for each element in the array until the predicate returns a value
  22649. * which is coercible to the Boolean value false, or until the end of the array.
  22650. * @param thisArg An object to which the this keyword can refer in the predicate function.
  22651. * If thisArg is omitted, undefined is used as the this value.
  22652. */
  22653. every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
  22654. /**
  22655. * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
  22656. * @param value value to fill array section with
  22657. * @param start index to start filling the array at. If start is negative, it is treated as
  22658. * length+start where length is the length of the array.
  22659. * @param end index to stop filling the array at. If end is negative, it is treated as
  22660. * length+end.
  22661. */
  22662. fill(value: number, start?: number, end?: number): this;
  22663. /**
  22664. * Returns the elements of an array that meet the condition specified in a callback function.
  22665. * @param predicate A function that accepts up to three arguments. The filter method calls
  22666. * the predicate function one time for each element in the array.
  22667. * @param thisArg An object to which the this keyword can refer in the predicate function.
  22668. * If thisArg is omitted, undefined is used as the this value.
  22669. */
  22670. filter(predicate: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;
  22671. /**
  22672. * Returns the value of the first element in the array where predicate is true, and undefined
  22673. * otherwise.
  22674. * @param predicate find calls predicate once for each element of the array, in ascending
  22675. * order, until it finds one where predicate returns true. If such an element is found, find
  22676. * immediately returns that element value. Otherwise, find returns undefined.
  22677. * @param thisArg If provided, it will be used as the this value for each invocation of
  22678. * predicate. If it is not provided, undefined is used instead.
  22679. */
  22680. find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;
  22681. /**
  22682. * Returns the index of the first element in the array where predicate is true, and -1
  22683. * otherwise.
  22684. * @param predicate find calls predicate once for each element of the array, in ascending
  22685. * order, until it finds one where predicate returns true. If such an element is found,
  22686. * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
  22687. * @param thisArg If provided, it will be used as the this value for each invocation of
  22688. * predicate. If it is not provided, undefined is used instead.
  22689. */
  22690. findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;
  22691. /**
  22692. * Performs the specified action for each element in an array.
  22693. * @param callbackfn A function that accepts up to three arguments. forEach calls the
  22694. * callbackfn function one time for each element in the array.
  22695. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  22696. * If thisArg is omitted, undefined is used as the this value.
  22697. */
  22698. forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;
  22699. /**
  22700. * Returns the index of the first occurrence of a value in an array.
  22701. * @param searchElement The value to locate in the array.
  22702. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  22703. * search starts at index 0.
  22704. */
  22705. indexOf(searchElement: number, fromIndex?: number): number;
  22706. /**
  22707. * Adds all the elements of an array separated by the specified separator string.
  22708. * @param separator A string used to separate one element of an array from the next in the
  22709. * resulting String. If omitted, the array elements are separated with a comma.
  22710. */
  22711. join(separator?: string): string;
  22712. /**
  22713. * Returns the index of the last occurrence of a value in an array.
  22714. * @param searchElement The value to locate in the array.
  22715. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  22716. * search starts at index 0.
  22717. */
  22718. lastIndexOf(searchElement: number, fromIndex?: number): number;
  22719. /**
  22720. * The length of the array.
  22721. */
  22722. readonly length: number;
  22723. /**
  22724. * Calls a defined callback function on each element of an array, and returns an array that
  22725. * contains the results.
  22726. * @param callbackfn A function that accepts up to three arguments. The map method calls the
  22727. * callbackfn function one time for each element in the array.
  22728. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  22729. * If thisArg is omitted, undefined is used as the this value.
  22730. */
  22731. map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;
  22732. /**
  22733. * Calls the specified callback function for all the elements in an array. The return value of
  22734. * the callback function is the accumulated result, and is provided as an argument in the next
  22735. * call to the callback function.
  22736. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  22737. * callbackfn function one time for each element in the array.
  22738. * @param initialValue If initialValue is specified, it is used as the initial value to start
  22739. * the accumulation. The first call to the callbackfn function provides this value as an argument
  22740. * instead of an array value.
  22741. */
  22742. reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
  22743. reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
  22744. /**
  22745. * Calls the specified callback function for all the elements in an array. The return value of
  22746. * the callback function is the accumulated result, and is provided as an argument in the next
  22747. * call to the callback function.
  22748. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  22749. * callbackfn function one time for each element in the array.
  22750. * @param initialValue If initialValue is specified, it is used as the initial value to start
  22751. * the accumulation. The first call to the callbackfn function provides this value as an argument
  22752. * instead of an array value.
  22753. */
  22754. reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
  22755. /**
  22756. * Calls the specified callback function for all the elements in an array, in descending order.
  22757. * The return value of the callback function is the accumulated result, and is provided as an
  22758. * argument in the next call to the callback function.
  22759. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  22760. * the callbackfn function one time for each element in the array.
  22761. * @param initialValue If initialValue is specified, it is used as the initial value to start
  22762. * the accumulation. The first call to the callbackfn function provides this value as an
  22763. * argument instead of an array value.
  22764. */
  22765. reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
  22766. reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
  22767. /**
  22768. * Calls the specified callback function for all the elements in an array, in descending order.
  22769. * The return value of the callback function is the accumulated result, and is provided as an
  22770. * argument in the next call to the callback function.
  22771. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  22772. * the callbackfn function one time for each element in the array.
  22773. * @param initialValue If initialValue is specified, it is used as the initial value to start
  22774. * the accumulation. The first call to the callbackfn function provides this value as an argument
  22775. * instead of an array value.
  22776. */
  22777. reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
  22778. /**
  22779. * Reverses the elements in an Array.
  22780. */
  22781. reverse(): Uint8ClampedArray;
  22782. /**
  22783. * Sets a value or an array of values.
  22784. * @param array A typed or untyped array of values to set.
  22785. * @param offset The index in the current array at which the values are to be written.
  22786. */
  22787. set(array: ArrayLike<number>, offset?: number): void;
  22788. /**
  22789. * Returns a section of an array.
  22790. * @param start The beginning of the specified portion of the array.
  22791. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
  22792. */
  22793. slice(start?: number, end?: number): Uint8ClampedArray;
  22794. /**
  22795. * Determines whether the specified callback function returns true for any element of an array.
  22796. * @param predicate A function that accepts up to three arguments. The some method calls
  22797. * the predicate function for each element in the array until the predicate returns a value
  22798. * which is coercible to the Boolean value true, or until the end of the array.
  22799. * @param thisArg An object to which the this keyword can refer in the predicate function.
  22800. * If thisArg is omitted, undefined is used as the this value.
  22801. */
  22802. some(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
  22803. /**
  22804. * Sorts an array.
  22805. * @param compareFn Function used to determine the order of the elements. It is expected to return
  22806. * a negative value if first argument is less than second argument, zero if they're equal and a positive
  22807. * value otherwise. If omitted, the elements are sorted in ascending order.
  22808. * \`\`\`ts
  22809. * [11,2,22,1].sort((a, b) => a - b)
  22810. * \`\`\`
  22811. */
  22812. sort(compareFn?: (a: number, b: number) => number): this;
  22813. /**
  22814. * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
  22815. * at begin, inclusive, up to end, exclusive.
  22816. * @param begin The index of the beginning of the array.
  22817. * @param end The index of the end of the array.
  22818. */
  22819. subarray(begin?: number, end?: number): Uint8ClampedArray;
  22820. /**
  22821. * Converts a number to a string by using the current locale.
  22822. */
  22823. toLocaleString(): string;
  22824. /**
  22825. * Returns a string representation of an array.
  22826. */
  22827. toString(): string;
  22828. /** Returns the primitive value of the specified object. */
  22829. valueOf(): Uint8ClampedArray;
  22830. [index: number]: number;
  22831. }
  22832. interface Uint8ClampedArrayConstructor {
  22833. readonly prototype: Uint8ClampedArray;
  22834. new(length: number): Uint8ClampedArray;
  22835. new(array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;
  22836. new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;
  22837. /**
  22838. * The size in bytes of each element in the array.
  22839. */
  22840. readonly BYTES_PER_ELEMENT: number;
  22841. /**
  22842. * Returns a new array from a set of elements.
  22843. * @param items A set of elements to include in the new array object.
  22844. */
  22845. of(...items: number[]): Uint8ClampedArray;
  22846. /**
  22847. * Creates an array from an array-like or iterable object.
  22848. * @param arrayLike An array-like or iterable object to convert to an array.
  22849. */
  22850. from(arrayLike: ArrayLike<number>): Uint8ClampedArray;
  22851. /**
  22852. * Creates an array from an array-like or iterable object.
  22853. * @param arrayLike An array-like or iterable object to convert to an array.
  22854. * @param mapfn A mapping function to call on every element of the array.
  22855. * @param thisArg Value of 'this' used to invoke the mapfn.
  22856. */
  22857. from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;
  22858. }
  22859. declare var Uint8ClampedArray: Uint8ClampedArrayConstructor;
  22860. /**
  22861. * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
  22862. * requested number of bytes could not be allocated an exception is raised.
  22863. */
  22864. interface Int16Array {
  22865. /**
  22866. * The size in bytes of each element in the array.
  22867. */
  22868. readonly BYTES_PER_ELEMENT: number;
  22869. /**
  22870. * The ArrayBuffer instance referenced by the array.
  22871. */
  22872. readonly buffer: ArrayBufferLike;
  22873. /**
  22874. * The length in bytes of the array.
  22875. */
  22876. readonly byteLength: number;
  22877. /**
  22878. * The offset in bytes of the array.
  22879. */
  22880. readonly byteOffset: number;
  22881. /**
  22882. * Returns the this object after copying a section of the array identified by start and end
  22883. * to the same array starting at position target
  22884. * @param target If target is negative, it is treated as length+target where length is the
  22885. * length of the array.
  22886. * @param start If start is negative, it is treated as length+start. If end is negative, it
  22887. * is treated as length+end.
  22888. * @param end If not specified, length of the this object is used as its default value.
  22889. */
  22890. copyWithin(target: number, start: number, end?: number): this;
  22891. /**
  22892. * Determines whether all the members of an array satisfy the specified test.
  22893. * @param predicate A function that accepts up to three arguments. The every method calls
  22894. * the predicate function for each element in the array until the predicate returns a value
  22895. * which is coercible to the Boolean value false, or until the end of the array.
  22896. * @param thisArg An object to which the this keyword can refer in the predicate function.
  22897. * If thisArg is omitted, undefined is used as the this value.
  22898. */
  22899. every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
  22900. /**
  22901. * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
  22902. * @param value value to fill array section with
  22903. * @param start index to start filling the array at. If start is negative, it is treated as
  22904. * length+start where length is the length of the array.
  22905. * @param end index to stop filling the array at. If end is negative, it is treated as
  22906. * length+end.
  22907. */
  22908. fill(value: number, start?: number, end?: number): this;
  22909. /**
  22910. * Returns the elements of an array that meet the condition specified in a callback function.
  22911. * @param predicate A function that accepts up to three arguments. The filter method calls
  22912. * the predicate function one time for each element in the array.
  22913. * @param thisArg An object to which the this keyword can refer in the predicate function.
  22914. * If thisArg is omitted, undefined is used as the this value.
  22915. */
  22916. filter(predicate: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;
  22917. /**
  22918. * Returns the value of the first element in the array where predicate is true, and undefined
  22919. * otherwise.
  22920. * @param predicate find calls predicate once for each element of the array, in ascending
  22921. * order, until it finds one where predicate returns true. If such an element is found, find
  22922. * immediately returns that element value. Otherwise, find returns undefined.
  22923. * @param thisArg If provided, it will be used as the this value for each invocation of
  22924. * predicate. If it is not provided, undefined is used instead.
  22925. */
  22926. find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;
  22927. /**
  22928. * Returns the index of the first element in the array where predicate is true, and -1
  22929. * otherwise.
  22930. * @param predicate find calls predicate once for each element of the array, in ascending
  22931. * order, until it finds one where predicate returns true. If such an element is found,
  22932. * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
  22933. * @param thisArg If provided, it will be used as the this value for each invocation of
  22934. * predicate. If it is not provided, undefined is used instead.
  22935. */
  22936. findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;
  22937. /**
  22938. * Performs the specified action for each element in an array.
  22939. * @param callbackfn A function that accepts up to three arguments. forEach calls the
  22940. * callbackfn function one time for each element in the array.
  22941. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  22942. * If thisArg is omitted, undefined is used as the this value.
  22943. */
  22944. forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;
  22945. /**
  22946. * Returns the index of the first occurrence of a value in an array.
  22947. * @param searchElement The value to locate in the array.
  22948. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  22949. * search starts at index 0.
  22950. */
  22951. indexOf(searchElement: number, fromIndex?: number): number;
  22952. /**
  22953. * Adds all the elements of an array separated by the specified separator string.
  22954. * @param separator A string used to separate one element of an array from the next in the
  22955. * resulting String. If omitted, the array elements are separated with a comma.
  22956. */
  22957. join(separator?: string): string;
  22958. /**
  22959. * Returns the index of the last occurrence of a value in an array.
  22960. * @param searchElement The value to locate in the array.
  22961. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  22962. * search starts at index 0.
  22963. */
  22964. lastIndexOf(searchElement: number, fromIndex?: number): number;
  22965. /**
  22966. * The length of the array.
  22967. */
  22968. readonly length: number;
  22969. /**
  22970. * Calls a defined callback function on each element of an array, and returns an array that
  22971. * contains the results.
  22972. * @param callbackfn A function that accepts up to three arguments. The map method calls the
  22973. * callbackfn function one time for each element in the array.
  22974. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  22975. * If thisArg is omitted, undefined is used as the this value.
  22976. */
  22977. map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;
  22978. /**
  22979. * Calls the specified callback function for all the elements in an array. The return value of
  22980. * the callback function is the accumulated result, and is provided as an argument in the next
  22981. * call to the callback function.
  22982. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  22983. * callbackfn function one time for each element in the array.
  22984. * @param initialValue If initialValue is specified, it is used as the initial value to start
  22985. * the accumulation. The first call to the callbackfn function provides this value as an argument
  22986. * instead of an array value.
  22987. */
  22988. reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
  22989. reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
  22990. /**
  22991. * Calls the specified callback function for all the elements in an array. The return value of
  22992. * the callback function is the accumulated result, and is provided as an argument in the next
  22993. * call to the callback function.
  22994. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  22995. * callbackfn function one time for each element in the array.
  22996. * @param initialValue If initialValue is specified, it is used as the initial value to start
  22997. * the accumulation. The first call to the callbackfn function provides this value as an argument
  22998. * instead of an array value.
  22999. */
  23000. reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
  23001. /**
  23002. * Calls the specified callback function for all the elements in an array, in descending order.
  23003. * The return value of the callback function is the accumulated result, and is provided as an
  23004. * argument in the next call to the callback function.
  23005. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  23006. * the callbackfn function one time for each element in the array.
  23007. * @param initialValue If initialValue is specified, it is used as the initial value to start
  23008. * the accumulation. The first call to the callbackfn function provides this value as an
  23009. * argument instead of an array value.
  23010. */
  23011. reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
  23012. reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
  23013. /**
  23014. * Calls the specified callback function for all the elements in an array, in descending order.
  23015. * The return value of the callback function is the accumulated result, and is provided as an
  23016. * argument in the next call to the callback function.
  23017. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  23018. * the callbackfn function one time for each element in the array.
  23019. * @param initialValue If initialValue is specified, it is used as the initial value to start
  23020. * the accumulation. The first call to the callbackfn function provides this value as an argument
  23021. * instead of an array value.
  23022. */
  23023. reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
  23024. /**
  23025. * Reverses the elements in an Array.
  23026. */
  23027. reverse(): Int16Array;
  23028. /**
  23029. * Sets a value or an array of values.
  23030. * @param array A typed or untyped array of values to set.
  23031. * @param offset The index in the current array at which the values are to be written.
  23032. */
  23033. set(array: ArrayLike<number>, offset?: number): void;
  23034. /**
  23035. * Returns a section of an array.
  23036. * @param start The beginning of the specified portion of the array.
  23037. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
  23038. */
  23039. slice(start?: number, end?: number): Int16Array;
  23040. /**
  23041. * Determines whether the specified callback function returns true for any element of an array.
  23042. * @param predicate A function that accepts up to three arguments. The some method calls
  23043. * the predicate function for each element in the array until the predicate returns a value
  23044. * which is coercible to the Boolean value true, or until the end of the array.
  23045. * @param thisArg An object to which the this keyword can refer in the predicate function.
  23046. * If thisArg is omitted, undefined is used as the this value.
  23047. */
  23048. some(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
  23049. /**
  23050. * Sorts an array.
  23051. * @param compareFn Function used to determine the order of the elements. It is expected to return
  23052. * a negative value if first argument is less than second argument, zero if they're equal and a positive
  23053. * value otherwise. If omitted, the elements are sorted in ascending order.
  23054. * \`\`\`ts
  23055. * [11,2,22,1].sort((a, b) => a - b)
  23056. * \`\`\`
  23057. */
  23058. sort(compareFn?: (a: number, b: number) => number): this;
  23059. /**
  23060. * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements
  23061. * at begin, inclusive, up to end, exclusive.
  23062. * @param begin The index of the beginning of the array.
  23063. * @param end The index of the end of the array.
  23064. */
  23065. subarray(begin?: number, end?: number): Int16Array;
  23066. /**
  23067. * Converts a number to a string by using the current locale.
  23068. */
  23069. toLocaleString(): string;
  23070. /**
  23071. * Returns a string representation of an array.
  23072. */
  23073. toString(): string;
  23074. /** Returns the primitive value of the specified object. */
  23075. valueOf(): Int16Array;
  23076. [index: number]: number;
  23077. }
  23078. interface Int16ArrayConstructor {
  23079. readonly prototype: Int16Array;
  23080. new(length: number): Int16Array;
  23081. new(array: ArrayLike<number> | ArrayBufferLike): Int16Array;
  23082. new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;
  23083. /**
  23084. * The size in bytes of each element in the array.
  23085. */
  23086. readonly BYTES_PER_ELEMENT: number;
  23087. /**
  23088. * Returns a new array from a set of elements.
  23089. * @param items A set of elements to include in the new array object.
  23090. */
  23091. of(...items: number[]): Int16Array;
  23092. /**
  23093. * Creates an array from an array-like or iterable object.
  23094. * @param arrayLike An array-like or iterable object to convert to an array.
  23095. */
  23096. from(arrayLike: ArrayLike<number>): Int16Array;
  23097. /**
  23098. * Creates an array from an array-like or iterable object.
  23099. * @param arrayLike An array-like or iterable object to convert to an array.
  23100. * @param mapfn A mapping function to call on every element of the array.
  23101. * @param thisArg Value of 'this' used to invoke the mapfn.
  23102. */
  23103. from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;
  23104. }
  23105. declare var Int16Array: Int16ArrayConstructor;
  23106. /**
  23107. * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
  23108. * requested number of bytes could not be allocated an exception is raised.
  23109. */
  23110. interface Uint16Array {
  23111. /**
  23112. * The size in bytes of each element in the array.
  23113. */
  23114. readonly BYTES_PER_ELEMENT: number;
  23115. /**
  23116. * The ArrayBuffer instance referenced by the array.
  23117. */
  23118. readonly buffer: ArrayBufferLike;
  23119. /**
  23120. * The length in bytes of the array.
  23121. */
  23122. readonly byteLength: number;
  23123. /**
  23124. * The offset in bytes of the array.
  23125. */
  23126. readonly byteOffset: number;
  23127. /**
  23128. * Returns the this object after copying a section of the array identified by start and end
  23129. * to the same array starting at position target
  23130. * @param target If target is negative, it is treated as length+target where length is the
  23131. * length of the array.
  23132. * @param start If start is negative, it is treated as length+start. If end is negative, it
  23133. * is treated as length+end.
  23134. * @param end If not specified, length of the this object is used as its default value.
  23135. */
  23136. copyWithin(target: number, start: number, end?: number): this;
  23137. /**
  23138. * Determines whether all the members of an array satisfy the specified test.
  23139. * @param predicate A function that accepts up to three arguments. The every method calls
  23140. * the predicate function for each element in the array until the predicate returns a value
  23141. * which is coercible to the Boolean value false, or until the end of the array.
  23142. * @param thisArg An object to which the this keyword can refer in the predicate function.
  23143. * If thisArg is omitted, undefined is used as the this value.
  23144. */
  23145. every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
  23146. /**
  23147. * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
  23148. * @param value value to fill array section with
  23149. * @param start index to start filling the array at. If start is negative, it is treated as
  23150. * length+start where length is the length of the array.
  23151. * @param end index to stop filling the array at. If end is negative, it is treated as
  23152. * length+end.
  23153. */
  23154. fill(value: number, start?: number, end?: number): this;
  23155. /**
  23156. * Returns the elements of an array that meet the condition specified in a callback function.
  23157. * @param predicate A function that accepts up to three arguments. The filter method calls
  23158. * the predicate function one time for each element in the array.
  23159. * @param thisArg An object to which the this keyword can refer in the predicate function.
  23160. * If thisArg is omitted, undefined is used as the this value.
  23161. */
  23162. filter(predicate: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;
  23163. /**
  23164. * Returns the value of the first element in the array where predicate is true, and undefined
  23165. * otherwise.
  23166. * @param predicate find calls predicate once for each element of the array, in ascending
  23167. * order, until it finds one where predicate returns true. If such an element is found, find
  23168. * immediately returns that element value. Otherwise, find returns undefined.
  23169. * @param thisArg If provided, it will be used as the this value for each invocation of
  23170. * predicate. If it is not provided, undefined is used instead.
  23171. */
  23172. find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;
  23173. /**
  23174. * Returns the index of the first element in the array where predicate is true, and -1
  23175. * otherwise.
  23176. * @param predicate find calls predicate once for each element of the array, in ascending
  23177. * order, until it finds one where predicate returns true. If such an element is found,
  23178. * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
  23179. * @param thisArg If provided, it will be used as the this value for each invocation of
  23180. * predicate. If it is not provided, undefined is used instead.
  23181. */
  23182. findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;
  23183. /**
  23184. * Performs the specified action for each element in an array.
  23185. * @param callbackfn A function that accepts up to three arguments. forEach calls the
  23186. * callbackfn function one time for each element in the array.
  23187. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  23188. * If thisArg is omitted, undefined is used as the this value.
  23189. */
  23190. forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;
  23191. /**
  23192. * Returns the index of the first occurrence of a value in an array.
  23193. * @param searchElement The value to locate in the array.
  23194. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  23195. * search starts at index 0.
  23196. */
  23197. indexOf(searchElement: number, fromIndex?: number): number;
  23198. /**
  23199. * Adds all the elements of an array separated by the specified separator string.
  23200. * @param separator A string used to separate one element of an array from the next in the
  23201. * resulting String. If omitted, the array elements are separated with a comma.
  23202. */
  23203. join(separator?: string): string;
  23204. /**
  23205. * Returns the index of the last occurrence of a value in an array.
  23206. * @param searchElement The value to locate in the array.
  23207. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  23208. * search starts at index 0.
  23209. */
  23210. lastIndexOf(searchElement: number, fromIndex?: number): number;
  23211. /**
  23212. * The length of the array.
  23213. */
  23214. readonly length: number;
  23215. /**
  23216. * Calls a defined callback function on each element of an array, and returns an array that
  23217. * contains the results.
  23218. * @param callbackfn A function that accepts up to three arguments. The map method calls the
  23219. * callbackfn function one time for each element in the array.
  23220. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  23221. * If thisArg is omitted, undefined is used as the this value.
  23222. */
  23223. map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;
  23224. /**
  23225. * Calls the specified callback function for all the elements in an array. The return value of
  23226. * the callback function is the accumulated result, and is provided as an argument in the next
  23227. * call to the callback function.
  23228. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  23229. * callbackfn function one time for each element in the array.
  23230. * @param initialValue If initialValue is specified, it is used as the initial value to start
  23231. * the accumulation. The first call to the callbackfn function provides this value as an argument
  23232. * instead of an array value.
  23233. */
  23234. reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
  23235. reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
  23236. /**
  23237. * Calls the specified callback function for all the elements in an array. The return value of
  23238. * the callback function is the accumulated result, and is provided as an argument in the next
  23239. * call to the callback function.
  23240. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  23241. * callbackfn function one time for each element in the array.
  23242. * @param initialValue If initialValue is specified, it is used as the initial value to start
  23243. * the accumulation. The first call to the callbackfn function provides this value as an argument
  23244. * instead of an array value.
  23245. */
  23246. reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
  23247. /**
  23248. * Calls the specified callback function for all the elements in an array, in descending order.
  23249. * The return value of the callback function is the accumulated result, and is provided as an
  23250. * argument in the next call to the callback function.
  23251. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  23252. * the callbackfn function one time for each element in the array.
  23253. * @param initialValue If initialValue is specified, it is used as the initial value to start
  23254. * the accumulation. The first call to the callbackfn function provides this value as an
  23255. * argument instead of an array value.
  23256. */
  23257. reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
  23258. reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
  23259. /**
  23260. * Calls the specified callback function for all the elements in an array, in descending order.
  23261. * The return value of the callback function is the accumulated result, and is provided as an
  23262. * argument in the next call to the callback function.
  23263. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  23264. * the callbackfn function one time for each element in the array.
  23265. * @param initialValue If initialValue is specified, it is used as the initial value to start
  23266. * the accumulation. The first call to the callbackfn function provides this value as an argument
  23267. * instead of an array value.
  23268. */
  23269. reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
  23270. /**
  23271. * Reverses the elements in an Array.
  23272. */
  23273. reverse(): Uint16Array;
  23274. /**
  23275. * Sets a value or an array of values.
  23276. * @param array A typed or untyped array of values to set.
  23277. * @param offset The index in the current array at which the values are to be written.
  23278. */
  23279. set(array: ArrayLike<number>, offset?: number): void;
  23280. /**
  23281. * Returns a section of an array.
  23282. * @param start The beginning of the specified portion of the array.
  23283. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
  23284. */
  23285. slice(start?: number, end?: number): Uint16Array;
  23286. /**
  23287. * Determines whether the specified callback function returns true for any element of an array.
  23288. * @param predicate A function that accepts up to three arguments. The some method calls
  23289. * the predicate function for each element in the array until the predicate returns a value
  23290. * which is coercible to the Boolean value true, or until the end of the array.
  23291. * @param thisArg An object to which the this keyword can refer in the predicate function.
  23292. * If thisArg is omitted, undefined is used as the this value.
  23293. */
  23294. some(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
  23295. /**
  23296. * Sorts an array.
  23297. * @param compareFn Function used to determine the order of the elements. It is expected to return
  23298. * a negative value if first argument is less than second argument, zero if they're equal and a positive
  23299. * value otherwise. If omitted, the elements are sorted in ascending order.
  23300. * \`\`\`ts
  23301. * [11,2,22,1].sort((a, b) => a - b)
  23302. * \`\`\`
  23303. */
  23304. sort(compareFn?: (a: number, b: number) => number): this;
  23305. /**
  23306. * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
  23307. * at begin, inclusive, up to end, exclusive.
  23308. * @param begin The index of the beginning of the array.
  23309. * @param end The index of the end of the array.
  23310. */
  23311. subarray(begin?: number, end?: number): Uint16Array;
  23312. /**
  23313. * Converts a number to a string by using the current locale.
  23314. */
  23315. toLocaleString(): string;
  23316. /**
  23317. * Returns a string representation of an array.
  23318. */
  23319. toString(): string;
  23320. /** Returns the primitive value of the specified object. */
  23321. valueOf(): Uint16Array;
  23322. [index: number]: number;
  23323. }
  23324. interface Uint16ArrayConstructor {
  23325. readonly prototype: Uint16Array;
  23326. new(length: number): Uint16Array;
  23327. new(array: ArrayLike<number> | ArrayBufferLike): Uint16Array;
  23328. new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;
  23329. /**
  23330. * The size in bytes of each element in the array.
  23331. */
  23332. readonly BYTES_PER_ELEMENT: number;
  23333. /**
  23334. * Returns a new array from a set of elements.
  23335. * @param items A set of elements to include in the new array object.
  23336. */
  23337. of(...items: number[]): Uint16Array;
  23338. /**
  23339. * Creates an array from an array-like or iterable object.
  23340. * @param arrayLike An array-like or iterable object to convert to an array.
  23341. */
  23342. from(arrayLike: ArrayLike<number>): Uint16Array;
  23343. /**
  23344. * Creates an array from an array-like or iterable object.
  23345. * @param arrayLike An array-like or iterable object to convert to an array.
  23346. * @param mapfn A mapping function to call on every element of the array.
  23347. * @param thisArg Value of 'this' used to invoke the mapfn.
  23348. */
  23349. from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;
  23350. }
  23351. declare var Uint16Array: Uint16ArrayConstructor;
  23352. /**
  23353. * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
  23354. * requested number of bytes could not be allocated an exception is raised.
  23355. */
  23356. interface Int32Array {
  23357. /**
  23358. * The size in bytes of each element in the array.
  23359. */
  23360. readonly BYTES_PER_ELEMENT: number;
  23361. /**
  23362. * The ArrayBuffer instance referenced by the array.
  23363. */
  23364. readonly buffer: ArrayBufferLike;
  23365. /**
  23366. * The length in bytes of the array.
  23367. */
  23368. readonly byteLength: number;
  23369. /**
  23370. * The offset in bytes of the array.
  23371. */
  23372. readonly byteOffset: number;
  23373. /**
  23374. * Returns the this object after copying a section of the array identified by start and end
  23375. * to the same array starting at position target
  23376. * @param target If target is negative, it is treated as length+target where length is the
  23377. * length of the array.
  23378. * @param start If start is negative, it is treated as length+start. If end is negative, it
  23379. * is treated as length+end.
  23380. * @param end If not specified, length of the this object is used as its default value.
  23381. */
  23382. copyWithin(target: number, start: number, end?: number): this;
  23383. /**
  23384. * Determines whether all the members of an array satisfy the specified test.
  23385. * @param predicate A function that accepts up to three arguments. The every method calls
  23386. * the predicate function for each element in the array until the predicate returns a value
  23387. * which is coercible to the Boolean value false, or until the end of the array.
  23388. * @param thisArg An object to which the this keyword can refer in the predicate function.
  23389. * If thisArg is omitted, undefined is used as the this value.
  23390. */
  23391. every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
  23392. /**
  23393. * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
  23394. * @param value value to fill array section with
  23395. * @param start index to start filling the array at. If start is negative, it is treated as
  23396. * length+start where length is the length of the array.
  23397. * @param end index to stop filling the array at. If end is negative, it is treated as
  23398. * length+end.
  23399. */
  23400. fill(value: number, start?: number, end?: number): this;
  23401. /**
  23402. * Returns the elements of an array that meet the condition specified in a callback function.
  23403. * @param predicate A function that accepts up to three arguments. The filter method calls
  23404. * the predicate function one time for each element in the array.
  23405. * @param thisArg An object to which the this keyword can refer in the predicate function.
  23406. * If thisArg is omitted, undefined is used as the this value.
  23407. */
  23408. filter(predicate: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;
  23409. /**
  23410. * Returns the value of the first element in the array where predicate is true, and undefined
  23411. * otherwise.
  23412. * @param predicate find calls predicate once for each element of the array, in ascending
  23413. * order, until it finds one where predicate returns true. If such an element is found, find
  23414. * immediately returns that element value. Otherwise, find returns undefined.
  23415. * @param thisArg If provided, it will be used as the this value for each invocation of
  23416. * predicate. If it is not provided, undefined is used instead.
  23417. */
  23418. find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;
  23419. /**
  23420. * Returns the index of the first element in the array where predicate is true, and -1
  23421. * otherwise.
  23422. * @param predicate find calls predicate once for each element of the array, in ascending
  23423. * order, until it finds one where predicate returns true. If such an element is found,
  23424. * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
  23425. * @param thisArg If provided, it will be used as the this value for each invocation of
  23426. * predicate. If it is not provided, undefined is used instead.
  23427. */
  23428. findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;
  23429. /**
  23430. * Performs the specified action for each element in an array.
  23431. * @param callbackfn A function that accepts up to three arguments. forEach calls the
  23432. * callbackfn function one time for each element in the array.
  23433. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  23434. * If thisArg is omitted, undefined is used as the this value.
  23435. */
  23436. forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;
  23437. /**
  23438. * Returns the index of the first occurrence of a value in an array.
  23439. * @param searchElement The value to locate in the array.
  23440. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  23441. * search starts at index 0.
  23442. */
  23443. indexOf(searchElement: number, fromIndex?: number): number;
  23444. /**
  23445. * Adds all the elements of an array separated by the specified separator string.
  23446. * @param separator A string used to separate one element of an array from the next in the
  23447. * resulting String. If omitted, the array elements are separated with a comma.
  23448. */
  23449. join(separator?: string): string;
  23450. /**
  23451. * Returns the index of the last occurrence of a value in an array.
  23452. * @param searchElement The value to locate in the array.
  23453. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  23454. * search starts at index 0.
  23455. */
  23456. lastIndexOf(searchElement: number, fromIndex?: number): number;
  23457. /**
  23458. * The length of the array.
  23459. */
  23460. readonly length: number;
  23461. /**
  23462. * Calls a defined callback function on each element of an array, and returns an array that
  23463. * contains the results.
  23464. * @param callbackfn A function that accepts up to three arguments. The map method calls the
  23465. * callbackfn function one time for each element in the array.
  23466. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  23467. * If thisArg is omitted, undefined is used as the this value.
  23468. */
  23469. map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;
  23470. /**
  23471. * Calls the specified callback function for all the elements in an array. The return value of
  23472. * the callback function is the accumulated result, and is provided as an argument in the next
  23473. * call to the callback function.
  23474. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  23475. * callbackfn function one time for each element in the array.
  23476. * @param initialValue If initialValue is specified, it is used as the initial value to start
  23477. * the accumulation. The first call to the callbackfn function provides this value as an argument
  23478. * instead of an array value.
  23479. */
  23480. reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
  23481. reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
  23482. /**
  23483. * Calls the specified callback function for all the elements in an array. The return value of
  23484. * the callback function is the accumulated result, and is provided as an argument in the next
  23485. * call to the callback function.
  23486. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  23487. * callbackfn function one time for each element in the array.
  23488. * @param initialValue If initialValue is specified, it is used as the initial value to start
  23489. * the accumulation. The first call to the callbackfn function provides this value as an argument
  23490. * instead of an array value.
  23491. */
  23492. reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
  23493. /**
  23494. * Calls the specified callback function for all the elements in an array, in descending order.
  23495. * The return value of the callback function is the accumulated result, and is provided as an
  23496. * argument in the next call to the callback function.
  23497. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  23498. * the callbackfn function one time for each element in the array.
  23499. * @param initialValue If initialValue is specified, it is used as the initial value to start
  23500. * the accumulation. The first call to the callbackfn function provides this value as an
  23501. * argument instead of an array value.
  23502. */
  23503. reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
  23504. reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
  23505. /**
  23506. * Calls the specified callback function for all the elements in an array, in descending order.
  23507. * The return value of the callback function is the accumulated result, and is provided as an
  23508. * argument in the next call to the callback function.
  23509. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  23510. * the callbackfn function one time for each element in the array.
  23511. * @param initialValue If initialValue is specified, it is used as the initial value to start
  23512. * the accumulation. The first call to the callbackfn function provides this value as an argument
  23513. * instead of an array value.
  23514. */
  23515. reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
  23516. /**
  23517. * Reverses the elements in an Array.
  23518. */
  23519. reverse(): Int32Array;
  23520. /**
  23521. * Sets a value or an array of values.
  23522. * @param array A typed or untyped array of values to set.
  23523. * @param offset The index in the current array at which the values are to be written.
  23524. */
  23525. set(array: ArrayLike<number>, offset?: number): void;
  23526. /**
  23527. * Returns a section of an array.
  23528. * @param start The beginning of the specified portion of the array.
  23529. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
  23530. */
  23531. slice(start?: number, end?: number): Int32Array;
  23532. /**
  23533. * Determines whether the specified callback function returns true for any element of an array.
  23534. * @param predicate A function that accepts up to three arguments. The some method calls
  23535. * the predicate function for each element in the array until the predicate returns a value
  23536. * which is coercible to the Boolean value true, or until the end of the array.
  23537. * @param thisArg An object to which the this keyword can refer in the predicate function.
  23538. * If thisArg is omitted, undefined is used as the this value.
  23539. */
  23540. some(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
  23541. /**
  23542. * Sorts an array.
  23543. * @param compareFn Function used to determine the order of the elements. It is expected to return
  23544. * a negative value if first argument is less than second argument, zero if they're equal and a positive
  23545. * value otherwise. If omitted, the elements are sorted in ascending order.
  23546. * \`\`\`ts
  23547. * [11,2,22,1].sort((a, b) => a - b)
  23548. * \`\`\`
  23549. */
  23550. sort(compareFn?: (a: number, b: number) => number): this;
  23551. /**
  23552. * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
  23553. * at begin, inclusive, up to end, exclusive.
  23554. * @param begin The index of the beginning of the array.
  23555. * @param end The index of the end of the array.
  23556. */
  23557. subarray(begin?: number, end?: number): Int32Array;
  23558. /**
  23559. * Converts a number to a string by using the current locale.
  23560. */
  23561. toLocaleString(): string;
  23562. /**
  23563. * Returns a string representation of an array.
  23564. */
  23565. toString(): string;
  23566. /** Returns the primitive value of the specified object. */
  23567. valueOf(): Int32Array;
  23568. [index: number]: number;
  23569. }
  23570. interface Int32ArrayConstructor {
  23571. readonly prototype: Int32Array;
  23572. new(length: number): Int32Array;
  23573. new(array: ArrayLike<number> | ArrayBufferLike): Int32Array;
  23574. new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;
  23575. /**
  23576. * The size in bytes of each element in the array.
  23577. */
  23578. readonly BYTES_PER_ELEMENT: number;
  23579. /**
  23580. * Returns a new array from a set of elements.
  23581. * @param items A set of elements to include in the new array object.
  23582. */
  23583. of(...items: number[]): Int32Array;
  23584. /**
  23585. * Creates an array from an array-like or iterable object.
  23586. * @param arrayLike An array-like or iterable object to convert to an array.
  23587. */
  23588. from(arrayLike: ArrayLike<number>): Int32Array;
  23589. /**
  23590. * Creates an array from an array-like or iterable object.
  23591. * @param arrayLike An array-like or iterable object to convert to an array.
  23592. * @param mapfn A mapping function to call on every element of the array.
  23593. * @param thisArg Value of 'this' used to invoke the mapfn.
  23594. */
  23595. from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;
  23596. }
  23597. declare var Int32Array: Int32ArrayConstructor;
  23598. /**
  23599. * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
  23600. * requested number of bytes could not be allocated an exception is raised.
  23601. */
  23602. interface Uint32Array {
  23603. /**
  23604. * The size in bytes of each element in the array.
  23605. */
  23606. readonly BYTES_PER_ELEMENT: number;
  23607. /**
  23608. * The ArrayBuffer instance referenced by the array.
  23609. */
  23610. readonly buffer: ArrayBufferLike;
  23611. /**
  23612. * The length in bytes of the array.
  23613. */
  23614. readonly byteLength: number;
  23615. /**
  23616. * The offset in bytes of the array.
  23617. */
  23618. readonly byteOffset: number;
  23619. /**
  23620. * Returns the this object after copying a section of the array identified by start and end
  23621. * to the same array starting at position target
  23622. * @param target If target is negative, it is treated as length+target where length is the
  23623. * length of the array.
  23624. * @param start If start is negative, it is treated as length+start. If end is negative, it
  23625. * is treated as length+end.
  23626. * @param end If not specified, length of the this object is used as its default value.
  23627. */
  23628. copyWithin(target: number, start: number, end?: number): this;
  23629. /**
  23630. * Determines whether all the members of an array satisfy the specified test.
  23631. * @param predicate A function that accepts up to three arguments. The every method calls
  23632. * the predicate function for each element in the array until the predicate returns a value
  23633. * which is coercible to the Boolean value false, or until the end of the array.
  23634. * @param thisArg An object to which the this keyword can refer in the predicate function.
  23635. * If thisArg is omitted, undefined is used as the this value.
  23636. */
  23637. every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
  23638. /**
  23639. * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
  23640. * @param value value to fill array section with
  23641. * @param start index to start filling the array at. If start is negative, it is treated as
  23642. * length+start where length is the length of the array.
  23643. * @param end index to stop filling the array at. If end is negative, it is treated as
  23644. * length+end.
  23645. */
  23646. fill(value: number, start?: number, end?: number): this;
  23647. /**
  23648. * Returns the elements of an array that meet the condition specified in a callback function.
  23649. * @param predicate A function that accepts up to three arguments. The filter method calls
  23650. * the predicate function one time for each element in the array.
  23651. * @param thisArg An object to which the this keyword can refer in the predicate function.
  23652. * If thisArg is omitted, undefined is used as the this value.
  23653. */
  23654. filter(predicate: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;
  23655. /**
  23656. * Returns the value of the first element in the array where predicate is true, and undefined
  23657. * otherwise.
  23658. * @param predicate find calls predicate once for each element of the array, in ascending
  23659. * order, until it finds one where predicate returns true. If such an element is found, find
  23660. * immediately returns that element value. Otherwise, find returns undefined.
  23661. * @param thisArg If provided, it will be used as the this value for each invocation of
  23662. * predicate. If it is not provided, undefined is used instead.
  23663. */
  23664. find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;
  23665. /**
  23666. * Returns the index of the first element in the array where predicate is true, and -1
  23667. * otherwise.
  23668. * @param predicate find calls predicate once for each element of the array, in ascending
  23669. * order, until it finds one where predicate returns true. If such an element is found,
  23670. * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
  23671. * @param thisArg If provided, it will be used as the this value for each invocation of
  23672. * predicate. If it is not provided, undefined is used instead.
  23673. */
  23674. findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;
  23675. /**
  23676. * Performs the specified action for each element in an array.
  23677. * @param callbackfn A function that accepts up to three arguments. forEach calls the
  23678. * callbackfn function one time for each element in the array.
  23679. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  23680. * If thisArg is omitted, undefined is used as the this value.
  23681. */
  23682. forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;
  23683. /**
  23684. * Returns the index of the first occurrence of a value in an array.
  23685. * @param searchElement The value to locate in the array.
  23686. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  23687. * search starts at index 0.
  23688. */
  23689. indexOf(searchElement: number, fromIndex?: number): number;
  23690. /**
  23691. * Adds all the elements of an array separated by the specified separator string.
  23692. * @param separator A string used to separate one element of an array from the next in the
  23693. * resulting String. If omitted, the array elements are separated with a comma.
  23694. */
  23695. join(separator?: string): string;
  23696. /**
  23697. * Returns the index of the last occurrence of a value in an array.
  23698. * @param searchElement The value to locate in the array.
  23699. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  23700. * search starts at index 0.
  23701. */
  23702. lastIndexOf(searchElement: number, fromIndex?: number): number;
  23703. /**
  23704. * The length of the array.
  23705. */
  23706. readonly length: number;
  23707. /**
  23708. * Calls a defined callback function on each element of an array, and returns an array that
  23709. * contains the results.
  23710. * @param callbackfn A function that accepts up to three arguments. The map method calls the
  23711. * callbackfn function one time for each element in the array.
  23712. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  23713. * If thisArg is omitted, undefined is used as the this value.
  23714. */
  23715. map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;
  23716. /**
  23717. * Calls the specified callback function for all the elements in an array. The return value of
  23718. * the callback function is the accumulated result, and is provided as an argument in the next
  23719. * call to the callback function.
  23720. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  23721. * callbackfn function one time for each element in the array.
  23722. * @param initialValue If initialValue is specified, it is used as the initial value to start
  23723. * the accumulation. The first call to the callbackfn function provides this value as an argument
  23724. * instead of an array value.
  23725. */
  23726. reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
  23727. reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
  23728. /**
  23729. * Calls the specified callback function for all the elements in an array. The return value of
  23730. * the callback function is the accumulated result, and is provided as an argument in the next
  23731. * call to the callback function.
  23732. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  23733. * callbackfn function one time for each element in the array.
  23734. * @param initialValue If initialValue is specified, it is used as the initial value to start
  23735. * the accumulation. The first call to the callbackfn function provides this value as an argument
  23736. * instead of an array value.
  23737. */
  23738. reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
  23739. /**
  23740. * Calls the specified callback function for all the elements in an array, in descending order.
  23741. * The return value of the callback function is the accumulated result, and is provided as an
  23742. * argument in the next call to the callback function.
  23743. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  23744. * the callbackfn function one time for each element in the array.
  23745. * @param initialValue If initialValue is specified, it is used as the initial value to start
  23746. * the accumulation. The first call to the callbackfn function provides this value as an
  23747. * argument instead of an array value.
  23748. */
  23749. reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
  23750. reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
  23751. /**
  23752. * Calls the specified callback function for all the elements in an array, in descending order.
  23753. * The return value of the callback function is the accumulated result, and is provided as an
  23754. * argument in the next call to the callback function.
  23755. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  23756. * the callbackfn function one time for each element in the array.
  23757. * @param initialValue If initialValue is specified, it is used as the initial value to start
  23758. * the accumulation. The first call to the callbackfn function provides this value as an argument
  23759. * instead of an array value.
  23760. */
  23761. reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
  23762. /**
  23763. * Reverses the elements in an Array.
  23764. */
  23765. reverse(): Uint32Array;
  23766. /**
  23767. * Sets a value or an array of values.
  23768. * @param array A typed or untyped array of values to set.
  23769. * @param offset The index in the current array at which the values are to be written.
  23770. */
  23771. set(array: ArrayLike<number>, offset?: number): void;
  23772. /**
  23773. * Returns a section of an array.
  23774. * @param start The beginning of the specified portion of the array.
  23775. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
  23776. */
  23777. slice(start?: number, end?: number): Uint32Array;
  23778. /**
  23779. * Determines whether the specified callback function returns true for any element of an array.
  23780. * @param predicate A function that accepts up to three arguments. The some method calls
  23781. * the predicate function for each element in the array until the predicate returns a value
  23782. * which is coercible to the Boolean value true, or until the end of the array.
  23783. * @param thisArg An object to which the this keyword can refer in the predicate function.
  23784. * If thisArg is omitted, undefined is used as the this value.
  23785. */
  23786. some(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
  23787. /**
  23788. * Sorts an array.
  23789. * @param compareFn Function used to determine the order of the elements. It is expected to return
  23790. * a negative value if first argument is less than second argument, zero if they're equal and a positive
  23791. * value otherwise. If omitted, the elements are sorted in ascending order.
  23792. * \`\`\`ts
  23793. * [11,2,22,1].sort((a, b) => a - b)
  23794. * \`\`\`
  23795. */
  23796. sort(compareFn?: (a: number, b: number) => number): this;
  23797. /**
  23798. * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
  23799. * at begin, inclusive, up to end, exclusive.
  23800. * @param begin The index of the beginning of the array.
  23801. * @param end The index of the end of the array.
  23802. */
  23803. subarray(begin?: number, end?: number): Uint32Array;
  23804. /**
  23805. * Converts a number to a string by using the current locale.
  23806. */
  23807. toLocaleString(): string;
  23808. /**
  23809. * Returns a string representation of an array.
  23810. */
  23811. toString(): string;
  23812. /** Returns the primitive value of the specified object. */
  23813. valueOf(): Uint32Array;
  23814. [index: number]: number;
  23815. }
  23816. interface Uint32ArrayConstructor {
  23817. readonly prototype: Uint32Array;
  23818. new(length: number): Uint32Array;
  23819. new(array: ArrayLike<number> | ArrayBufferLike): Uint32Array;
  23820. new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;
  23821. /**
  23822. * The size in bytes of each element in the array.
  23823. */
  23824. readonly BYTES_PER_ELEMENT: number;
  23825. /**
  23826. * Returns a new array from a set of elements.
  23827. * @param items A set of elements to include in the new array object.
  23828. */
  23829. of(...items: number[]): Uint32Array;
  23830. /**
  23831. * Creates an array from an array-like or iterable object.
  23832. * @param arrayLike An array-like or iterable object to convert to an array.
  23833. */
  23834. from(arrayLike: ArrayLike<number>): Uint32Array;
  23835. /**
  23836. * Creates an array from an array-like or iterable object.
  23837. * @param arrayLike An array-like or iterable object to convert to an array.
  23838. * @param mapfn A mapping function to call on every element of the array.
  23839. * @param thisArg Value of 'this' used to invoke the mapfn.
  23840. */
  23841. from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;
  23842. }
  23843. declare var Uint32Array: Uint32ArrayConstructor;
  23844. /**
  23845. * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
  23846. * of bytes could not be allocated an exception is raised.
  23847. */
  23848. interface Float32Array {
  23849. /**
  23850. * The size in bytes of each element in the array.
  23851. */
  23852. readonly BYTES_PER_ELEMENT: number;
  23853. /**
  23854. * The ArrayBuffer instance referenced by the array.
  23855. */
  23856. readonly buffer: ArrayBufferLike;
  23857. /**
  23858. * The length in bytes of the array.
  23859. */
  23860. readonly byteLength: number;
  23861. /**
  23862. * The offset in bytes of the array.
  23863. */
  23864. readonly byteOffset: number;
  23865. /**
  23866. * Returns the this object after copying a section of the array identified by start and end
  23867. * to the same array starting at position target
  23868. * @param target If target is negative, it is treated as length+target where length is the
  23869. * length of the array.
  23870. * @param start If start is negative, it is treated as length+start. If end is negative, it
  23871. * is treated as length+end.
  23872. * @param end If not specified, length of the this object is used as its default value.
  23873. */
  23874. copyWithin(target: number, start: number, end?: number): this;
  23875. /**
  23876. * Determines whether all the members of an array satisfy the specified test.
  23877. * @param predicate A function that accepts up to three arguments. The every method calls
  23878. * the predicate function for each element in the array until the predicate returns a value
  23879. * which is coercible to the Boolean value false, or until the end of the array.
  23880. * @param thisArg An object to which the this keyword can refer in the predicate function.
  23881. * If thisArg is omitted, undefined is used as the this value.
  23882. */
  23883. every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
  23884. /**
  23885. * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
  23886. * @param value value to fill array section with
  23887. * @param start index to start filling the array at. If start is negative, it is treated as
  23888. * length+start where length is the length of the array.
  23889. * @param end index to stop filling the array at. If end is negative, it is treated as
  23890. * length+end.
  23891. */
  23892. fill(value: number, start?: number, end?: number): this;
  23893. /**
  23894. * Returns the elements of an array that meet the condition specified in a callback function.
  23895. * @param predicate A function that accepts up to three arguments. The filter method calls
  23896. * the predicate function one time for each element in the array.
  23897. * @param thisArg An object to which the this keyword can refer in the predicate function.
  23898. * If thisArg is omitted, undefined is used as the this value.
  23899. */
  23900. filter(predicate: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;
  23901. /**
  23902. * Returns the value of the first element in the array where predicate is true, and undefined
  23903. * otherwise.
  23904. * @param predicate find calls predicate once for each element of the array, in ascending
  23905. * order, until it finds one where predicate returns true. If such an element is found, find
  23906. * immediately returns that element value. Otherwise, find returns undefined.
  23907. * @param thisArg If provided, it will be used as the this value for each invocation of
  23908. * predicate. If it is not provided, undefined is used instead.
  23909. */
  23910. find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;
  23911. /**
  23912. * Returns the index of the first element in the array where predicate is true, and -1
  23913. * otherwise.
  23914. * @param predicate find calls predicate once for each element of the array, in ascending
  23915. * order, until it finds one where predicate returns true. If such an element is found,
  23916. * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
  23917. * @param thisArg If provided, it will be used as the this value for each invocation of
  23918. * predicate. If it is not provided, undefined is used instead.
  23919. */
  23920. findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;
  23921. /**
  23922. * Performs the specified action for each element in an array.
  23923. * @param callbackfn A function that accepts up to three arguments. forEach calls the
  23924. * callbackfn function one time for each element in the array.
  23925. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  23926. * If thisArg is omitted, undefined is used as the this value.
  23927. */
  23928. forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;
  23929. /**
  23930. * Returns the index of the first occurrence of a value in an array.
  23931. * @param searchElement The value to locate in the array.
  23932. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  23933. * search starts at index 0.
  23934. */
  23935. indexOf(searchElement: number, fromIndex?: number): number;
  23936. /**
  23937. * Adds all the elements of an array separated by the specified separator string.
  23938. * @param separator A string used to separate one element of an array from the next in the
  23939. * resulting String. If omitted, the array elements are separated with a comma.
  23940. */
  23941. join(separator?: string): string;
  23942. /**
  23943. * Returns the index of the last occurrence of a value in an array.
  23944. * @param searchElement The value to locate in the array.
  23945. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  23946. * search starts at index 0.
  23947. */
  23948. lastIndexOf(searchElement: number, fromIndex?: number): number;
  23949. /**
  23950. * The length of the array.
  23951. */
  23952. readonly length: number;
  23953. /**
  23954. * Calls a defined callback function on each element of an array, and returns an array that
  23955. * contains the results.
  23956. * @param callbackfn A function that accepts up to three arguments. The map method calls the
  23957. * callbackfn function one time for each element in the array.
  23958. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  23959. * If thisArg is omitted, undefined is used as the this value.
  23960. */
  23961. map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;
  23962. /**
  23963. * Calls the specified callback function for all the elements in an array. The return value of
  23964. * the callback function is the accumulated result, and is provided as an argument in the next
  23965. * call to the callback function.
  23966. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  23967. * callbackfn function one time for each element in the array.
  23968. * @param initialValue If initialValue is specified, it is used as the initial value to start
  23969. * the accumulation. The first call to the callbackfn function provides this value as an argument
  23970. * instead of an array value.
  23971. */
  23972. reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
  23973. reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
  23974. /**
  23975. * Calls the specified callback function for all the elements in an array. The return value of
  23976. * the callback function is the accumulated result, and is provided as an argument in the next
  23977. * call to the callback function.
  23978. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  23979. * callbackfn function one time for each element in the array.
  23980. * @param initialValue If initialValue is specified, it is used as the initial value to start
  23981. * the accumulation. The first call to the callbackfn function provides this value as an argument
  23982. * instead of an array value.
  23983. */
  23984. reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
  23985. /**
  23986. * Calls the specified callback function for all the elements in an array, in descending order.
  23987. * The return value of the callback function is the accumulated result, and is provided as an
  23988. * argument in the next call to the callback function.
  23989. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  23990. * the callbackfn function one time for each element in the array.
  23991. * @param initialValue If initialValue is specified, it is used as the initial value to start
  23992. * the accumulation. The first call to the callbackfn function provides this value as an
  23993. * argument instead of an array value.
  23994. */
  23995. reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
  23996. reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
  23997. /**
  23998. * Calls the specified callback function for all the elements in an array, in descending order.
  23999. * The return value of the callback function is the accumulated result, and is provided as an
  24000. * argument in the next call to the callback function.
  24001. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  24002. * the callbackfn function one time for each element in the array.
  24003. * @param initialValue If initialValue is specified, it is used as the initial value to start
  24004. * the accumulation. The first call to the callbackfn function provides this value as an argument
  24005. * instead of an array value.
  24006. */
  24007. reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
  24008. /**
  24009. * Reverses the elements in an Array.
  24010. */
  24011. reverse(): Float32Array;
  24012. /**
  24013. * Sets a value or an array of values.
  24014. * @param array A typed or untyped array of values to set.
  24015. * @param offset The index in the current array at which the values are to be written.
  24016. */
  24017. set(array: ArrayLike<number>, offset?: number): void;
  24018. /**
  24019. * Returns a section of an array.
  24020. * @param start The beginning of the specified portion of the array.
  24021. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
  24022. */
  24023. slice(start?: number, end?: number): Float32Array;
  24024. /**
  24025. * Determines whether the specified callback function returns true for any element of an array.
  24026. * @param predicate A function that accepts up to three arguments. The some method calls
  24027. * the predicate function for each element in the array until the predicate returns a value
  24028. * which is coercible to the Boolean value true, or until the end of the array.
  24029. * @param thisArg An object to which the this keyword can refer in the predicate function.
  24030. * If thisArg is omitted, undefined is used as the this value.
  24031. */
  24032. some(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
  24033. /**
  24034. * Sorts an array.
  24035. * @param compareFn Function used to determine the order of the elements. It is expected to return
  24036. * a negative value if first argument is less than second argument, zero if they're equal and a positive
  24037. * value otherwise. If omitted, the elements are sorted in ascending order.
  24038. * \`\`\`ts
  24039. * [11,2,22,1].sort((a, b) => a - b)
  24040. * \`\`\`
  24041. */
  24042. sort(compareFn?: (a: number, b: number) => number): this;
  24043. /**
  24044. * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
  24045. * at begin, inclusive, up to end, exclusive.
  24046. * @param begin The index of the beginning of the array.
  24047. * @param end The index of the end of the array.
  24048. */
  24049. subarray(begin?: number, end?: number): Float32Array;
  24050. /**
  24051. * Converts a number to a string by using the current locale.
  24052. */
  24053. toLocaleString(): string;
  24054. /**
  24055. * Returns a string representation of an array.
  24056. */
  24057. toString(): string;
  24058. /** Returns the primitive value of the specified object. */
  24059. valueOf(): Float32Array;
  24060. [index: number]: number;
  24061. }
  24062. interface Float32ArrayConstructor {
  24063. readonly prototype: Float32Array;
  24064. new(length: number): Float32Array;
  24065. new(array: ArrayLike<number> | ArrayBufferLike): Float32Array;
  24066. new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;
  24067. /**
  24068. * The size in bytes of each element in the array.
  24069. */
  24070. readonly BYTES_PER_ELEMENT: number;
  24071. /**
  24072. * Returns a new array from a set of elements.
  24073. * @param items A set of elements to include in the new array object.
  24074. */
  24075. of(...items: number[]): Float32Array;
  24076. /**
  24077. * Creates an array from an array-like or iterable object.
  24078. * @param arrayLike An array-like or iterable object to convert to an array.
  24079. */
  24080. from(arrayLike: ArrayLike<number>): Float32Array;
  24081. /**
  24082. * Creates an array from an array-like or iterable object.
  24083. * @param arrayLike An array-like or iterable object to convert to an array.
  24084. * @param mapfn A mapping function to call on every element of the array.
  24085. * @param thisArg Value of 'this' used to invoke the mapfn.
  24086. */
  24087. from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;
  24088. }
  24089. declare var Float32Array: Float32ArrayConstructor;
  24090. /**
  24091. * A typed array of 64-bit float values. The contents are initialized to 0. If the requested
  24092. * number of bytes could not be allocated an exception is raised.
  24093. */
  24094. interface Float64Array {
  24095. /**
  24096. * The size in bytes of each element in the array.
  24097. */
  24098. readonly BYTES_PER_ELEMENT: number;
  24099. /**
  24100. * The ArrayBuffer instance referenced by the array.
  24101. */
  24102. readonly buffer: ArrayBufferLike;
  24103. /**
  24104. * The length in bytes of the array.
  24105. */
  24106. readonly byteLength: number;
  24107. /**
  24108. * The offset in bytes of the array.
  24109. */
  24110. readonly byteOffset: number;
  24111. /**
  24112. * Returns the this object after copying a section of the array identified by start and end
  24113. * to the same array starting at position target
  24114. * @param target If target is negative, it is treated as length+target where length is the
  24115. * length of the array.
  24116. * @param start If start is negative, it is treated as length+start. If end is negative, it
  24117. * is treated as length+end.
  24118. * @param end If not specified, length of the this object is used as its default value.
  24119. */
  24120. copyWithin(target: number, start: number, end?: number): this;
  24121. /**
  24122. * Determines whether all the members of an array satisfy the specified test.
  24123. * @param predicate A function that accepts up to three arguments. The every method calls
  24124. * the predicate function for each element in the array until the predicate returns a value
  24125. * which is coercible to the Boolean value false, or until the end of the array.
  24126. * @param thisArg An object to which the this keyword can refer in the predicate function.
  24127. * If thisArg is omitted, undefined is used as the this value.
  24128. */
  24129. every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
  24130. /**
  24131. * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
  24132. * @param value value to fill array section with
  24133. * @param start index to start filling the array at. If start is negative, it is treated as
  24134. * length+start where length is the length of the array.
  24135. * @param end index to stop filling the array at. If end is negative, it is treated as
  24136. * length+end.
  24137. */
  24138. fill(value: number, start?: number, end?: number): this;
  24139. /**
  24140. * Returns the elements of an array that meet the condition specified in a callback function.
  24141. * @param predicate A function that accepts up to three arguments. The filter method calls
  24142. * the predicate function one time for each element in the array.
  24143. * @param thisArg An object to which the this keyword can refer in the predicate function.
  24144. * If thisArg is omitted, undefined is used as the this value.
  24145. */
  24146. filter(predicate: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;
  24147. /**
  24148. * Returns the value of the first element in the array where predicate is true, and undefined
  24149. * otherwise.
  24150. * @param predicate find calls predicate once for each element of the array, in ascending
  24151. * order, until it finds one where predicate returns true. If such an element is found, find
  24152. * immediately returns that element value. Otherwise, find returns undefined.
  24153. * @param thisArg If provided, it will be used as the this value for each invocation of
  24154. * predicate. If it is not provided, undefined is used instead.
  24155. */
  24156. find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;
  24157. /**
  24158. * Returns the index of the first element in the array where predicate is true, and -1
  24159. * otherwise.
  24160. * @param predicate find calls predicate once for each element of the array, in ascending
  24161. * order, until it finds one where predicate returns true. If such an element is found,
  24162. * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
  24163. * @param thisArg If provided, it will be used as the this value for each invocation of
  24164. * predicate. If it is not provided, undefined is used instead.
  24165. */
  24166. findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;
  24167. /**
  24168. * Performs the specified action for each element in an array.
  24169. * @param callbackfn A function that accepts up to three arguments. forEach calls the
  24170. * callbackfn function one time for each element in the array.
  24171. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  24172. * If thisArg is omitted, undefined is used as the this value.
  24173. */
  24174. forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;
  24175. /**
  24176. * Returns the index of the first occurrence of a value in an array.
  24177. * @param searchElement The value to locate in the array.
  24178. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  24179. * search starts at index 0.
  24180. */
  24181. indexOf(searchElement: number, fromIndex?: number): number;
  24182. /**
  24183. * Adds all the elements of an array separated by the specified separator string.
  24184. * @param separator A string used to separate one element of an array from the next in the
  24185. * resulting String. If omitted, the array elements are separated with a comma.
  24186. */
  24187. join(separator?: string): string;
  24188. /**
  24189. * Returns the index of the last occurrence of a value in an array.
  24190. * @param searchElement The value to locate in the array.
  24191. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
  24192. * search starts at index 0.
  24193. */
  24194. lastIndexOf(searchElement: number, fromIndex?: number): number;
  24195. /**
  24196. * The length of the array.
  24197. */
  24198. readonly length: number;
  24199. /**
  24200. * Calls a defined callback function on each element of an array, and returns an array that
  24201. * contains the results.
  24202. * @param callbackfn A function that accepts up to three arguments. The map method calls the
  24203. * callbackfn function one time for each element in the array.
  24204. * @param thisArg An object to which the this keyword can refer in the callbackfn function.
  24205. * If thisArg is omitted, undefined is used as the this value.
  24206. */
  24207. map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;
  24208. /**
  24209. * Calls the specified callback function for all the elements in an array. The return value of
  24210. * the callback function is the accumulated result, and is provided as an argument in the next
  24211. * call to the callback function.
  24212. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  24213. * callbackfn function one time for each element in the array.
  24214. * @param initialValue If initialValue is specified, it is used as the initial value to start
  24215. * the accumulation. The first call to the callbackfn function provides this value as an argument
  24216. * instead of an array value.
  24217. */
  24218. reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
  24219. reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
  24220. /**
  24221. * Calls the specified callback function for all the elements in an array. The return value of
  24222. * the callback function is the accumulated result, and is provided as an argument in the next
  24223. * call to the callback function.
  24224. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
  24225. * callbackfn function one time for each element in the array.
  24226. * @param initialValue If initialValue is specified, it is used as the initial value to start
  24227. * the accumulation. The first call to the callbackfn function provides this value as an argument
  24228. * instead of an array value.
  24229. */
  24230. reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
  24231. /**
  24232. * Calls the specified callback function for all the elements in an array, in descending order.
  24233. * The return value of the callback function is the accumulated result, and is provided as an
  24234. * argument in the next call to the callback function.
  24235. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  24236. * the callbackfn function one time for each element in the array.
  24237. * @param initialValue If initialValue is specified, it is used as the initial value to start
  24238. * the accumulation. The first call to the callbackfn function provides this value as an
  24239. * argument instead of an array value.
  24240. */
  24241. reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
  24242. reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
  24243. /**
  24244. * Calls the specified callback function for all the elements in an array, in descending order.
  24245. * The return value of the callback function is the accumulated result, and is provided as an
  24246. * argument in the next call to the callback function.
  24247. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
  24248. * the callbackfn function one time for each element in the array.
  24249. * @param initialValue If initialValue is specified, it is used as the initial value to start
  24250. * the accumulation. The first call to the callbackfn function provides this value as an argument
  24251. * instead of an array value.
  24252. */
  24253. reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
  24254. /**
  24255. * Reverses the elements in an Array.
  24256. */
  24257. reverse(): Float64Array;
  24258. /**
  24259. * Sets a value or an array of values.
  24260. * @param array A typed or untyped array of values to set.
  24261. * @param offset The index in the current array at which the values are to be written.
  24262. */
  24263. set(array: ArrayLike<number>, offset?: number): void;
  24264. /**
  24265. * Returns a section of an array.
  24266. * @param start The beginning of the specified portion of the array.
  24267. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
  24268. */
  24269. slice(start?: number, end?: number): Float64Array;
  24270. /**
  24271. * Determines whether the specified callback function returns true for any element of an array.
  24272. * @param predicate A function that accepts up to three arguments. The some method calls
  24273. * the predicate function for each element in the array until the predicate returns a value
  24274. * which is coercible to the Boolean value true, or until the end of the array.
  24275. * @param thisArg An object to which the this keyword can refer in the predicate function.
  24276. * If thisArg is omitted, undefined is used as the this value.
  24277. */
  24278. some(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
  24279. /**
  24280. * Sorts an array.
  24281. * @param compareFn Function used to determine the order of the elements. It is expected to return
  24282. * a negative value if first argument is less than second argument, zero if they're equal and a positive
  24283. * value otherwise. If omitted, the elements are sorted in ascending order.
  24284. * \`\`\`ts
  24285. * [11,2,22,1].sort((a, b) => a - b)
  24286. * \`\`\`
  24287. */
  24288. sort(compareFn?: (a: number, b: number) => number): this;
  24289. /**
  24290. * at begin, inclusive, up to end, exclusive.
  24291. * @param begin The index of the beginning of the array.
  24292. * @param end The index of the end of the array.
  24293. */
  24294. subarray(begin?: number, end?: number): Float64Array;
  24295. toString(): string;
  24296. /** Returns the primitive value of the specified object. */
  24297. valueOf(): Float64Array;
  24298. [index: number]: number;
  24299. }
  24300. interface Float64ArrayConstructor {
  24301. readonly prototype: Float64Array;
  24302. new(length: number): Float64Array;
  24303. new(array: ArrayLike<number> | ArrayBufferLike): Float64Array;
  24304. new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;
  24305. /**
  24306. * The size in bytes of each element in the array.
  24307. */
  24308. readonly BYTES_PER_ELEMENT: number;
  24309. /**
  24310. * Returns a new array from a set of elements.
  24311. * @param items A set of elements to include in the new array object.
  24312. */
  24313. of(...items: number[]): Float64Array;
  24314. /**
  24315. * Creates an array from an array-like or iterable object.
  24316. * @param arrayLike An array-like or iterable object to convert to an array.
  24317. */
  24318. from(arrayLike: ArrayLike<number>): Float64Array;
  24319. /**
  24320. * Creates an array from an array-like or iterable object.
  24321. * @param arrayLike An array-like or iterable object to convert to an array.
  24322. * @param mapfn A mapping function to call on every element of the array.
  24323. * @param thisArg Value of 'this' used to invoke the mapfn.
  24324. */
  24325. from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;
  24326. }
  24327. declare var Float64Array: Float64ArrayConstructor;
  24328. /////////////////////////////
  24329. /// ECMAScript Internationalization API
  24330. /////////////////////////////
  24331. declare namespace Intl {
  24332. interface CollatorOptions {
  24333. usage?: string | undefined;
  24334. localeMatcher?: string | undefined;
  24335. numeric?: boolean | undefined;
  24336. caseFirst?: string | undefined;
  24337. sensitivity?: string | undefined;
  24338. ignorePunctuation?: boolean | undefined;
  24339. }
  24340. interface ResolvedCollatorOptions {
  24341. locale: string;
  24342. usage: string;
  24343. sensitivity: string;
  24344. ignorePunctuation: boolean;
  24345. collation: string;
  24346. caseFirst: string;
  24347. numeric: boolean;
  24348. }
  24349. interface Collator {
  24350. compare(x: string, y: string): number;
  24351. resolvedOptions(): ResolvedCollatorOptions;
  24352. }
  24353. var Collator: {
  24354. new(locales?: string | string[], options?: CollatorOptions): Collator;
  24355. (locales?: string | string[], options?: CollatorOptions): Collator;
  24356. supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
  24357. };
  24358. interface NumberFormatOptions {
  24359. localeMatcher?: string | undefined;
  24360. style?: string | undefined;
  24361. currency?: string | undefined;
  24362. currencyDisplay?: string | undefined;
  24363. currencySign?: string | undefined;
  24364. useGrouping?: boolean | undefined;
  24365. minimumIntegerDigits?: number | undefined;
  24366. minimumFractionDigits?: number | undefined;
  24367. maximumFractionDigits?: number | undefined;
  24368. minimumSignificantDigits?: number | undefined;
  24369. maximumSignificantDigits?: number | undefined;
  24370. }
  24371. interface ResolvedNumberFormatOptions {
  24372. locale: string;
  24373. numberingSystem: string;
  24374. style: string;
  24375. currency?: string;
  24376. currencyDisplay?: string;
  24377. minimumIntegerDigits: number;
  24378. minimumFractionDigits: number;
  24379. maximumFractionDigits: number;
  24380. minimumSignificantDigits?: number;
  24381. maximumSignificantDigits?: number;
  24382. useGrouping: boolean;
  24383. }
  24384. interface NumberFormat {
  24385. format(value: number): string;
  24386. resolvedOptions(): ResolvedNumberFormatOptions;
  24387. }
  24388. var NumberFormat: {
  24389. new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
  24390. (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
  24391. supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
  24392. };
  24393. interface DateTimeFormatOptions {
  24394. localeMatcher?: "best fit" | "lookup" | undefined;
  24395. weekday?: "long" | "short" | "narrow" | undefined;
  24396. era?: "long" | "short" | "narrow" | undefined;
  24397. year?: "numeric" | "2-digit" | undefined;
  24398. month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined;
  24399. day?: "numeric" | "2-digit" | undefined;
  24400. hour?: "numeric" | "2-digit" | undefined;
  24401. minute?: "numeric" | "2-digit" | undefined;
  24402. second?: "numeric" | "2-digit" | undefined;
  24403. timeZoneName?: "long" | "short" | undefined;
  24404. formatMatcher?: "best fit" | "basic" | undefined;
  24405. hour12?: boolean | undefined;
  24406. timeZone?: string | undefined;
  24407. }
  24408. interface ResolvedDateTimeFormatOptions {
  24409. locale: string;
  24410. calendar: string;
  24411. numberingSystem: string;
  24412. timeZone: string;
  24413. hour12?: boolean;
  24414. weekday?: string;
  24415. era?: string;
  24416. year?: string;
  24417. month?: string;
  24418. day?: string;
  24419. hour?: string;
  24420. minute?: string;
  24421. second?: string;
  24422. timeZoneName?: string;
  24423. }
  24424. interface DateTimeFormat {
  24425. format(date?: Date | number): string;
  24426. resolvedOptions(): ResolvedDateTimeFormatOptions;
  24427. }
  24428. var DateTimeFormat: {
  24429. new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
  24430. (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
  24431. supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
  24432. };
  24433. }
  24434. interface String {
  24435. /**
  24436. * Determines whether two strings are equivalent in the current or specified locale.
  24437. * @param that String to compare to target string
  24438. * @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.
  24439. * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
  24440. */
  24441. localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
  24442. }
  24443. interface Number {
  24444. /**
  24445. * Converts a number to a string by using the current or specified locale.
  24446. * @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.
  24447. * @param options An object that contains one or more properties that specify comparison options.
  24448. */
  24449. toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
  24450. }
  24451. interface Date {
  24452. /**
  24453. * Converts a date and time to a string by using the current or specified locale.
  24454. * @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.
  24455. * @param options An object that contains one or more properties that specify comparison options.
  24456. */
  24457. toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
  24458. /**
  24459. * Converts a date to a string by using the current or specified locale.
  24460. * @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.
  24461. * @param options An object that contains one or more properties that specify comparison options.
  24462. */
  24463. toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
  24464. /**
  24465. * Converts a time to a string by using the current or specified locale.
  24466. * @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.
  24467. * @param options An object that contains one or more properties that specify comparison options.
  24468. */
  24469. toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
  24470. }
  24471. `,Oi["lib.es6.d.ts"]=`/*! *****************************************************************************
  24472. Copyright (c) Microsoft Corporation. All rights reserved.
  24473. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  24474. this file except in compliance with the License. You may obtain a copy of the
  24475. License at http://www.apache.org/licenses/LICENSE-2.0
  24476. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  24477. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  24478. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  24479. MERCHANTABLITY OR NON-INFRINGEMENT.
  24480. See the Apache Version 2.0 License for specific language governing permissions
  24481. and limitations under the License.
  24482. ***************************************************************************** */
  24483. /// <reference no-default-lib="true"/>
  24484. /// <reference lib="es2015" />
  24485. /// <reference lib="dom" />
  24486. /// <reference lib="dom.iterable" />
  24487. /// <reference lib="webworker.importscripts" />
  24488. /// <reference lib="scripthost" />
  24489. `,Oi["lib.esnext.d.ts"]=`/*! *****************************************************************************
  24490. Copyright (c) Microsoft Corporation. All rights reserved.
  24491. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  24492. this file except in compliance with the License. You may obtain a copy of the
  24493. License at http://www.apache.org/licenses/LICENSE-2.0
  24494. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  24495. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  24496. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  24497. MERCHANTABLITY OR NON-INFRINGEMENT.
  24498. See the Apache Version 2.0 License for specific language governing permissions
  24499. and limitations under the License.
  24500. ***************************************************************************** */
  24501. /// <reference no-default-lib="true"/>
  24502. /// <reference lib="es2021" />
  24503. /// <reference lib="esnext.intl" />
  24504. `,Oi["lib.esnext.full.d.ts"]=`/*! *****************************************************************************
  24505. Copyright (c) Microsoft Corporation. All rights reserved.
  24506. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  24507. this file except in compliance with the License. You may obtain a copy of the
  24508. License at http://www.apache.org/licenses/LICENSE-2.0
  24509. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  24510. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  24511. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  24512. MERCHANTABLITY OR NON-INFRINGEMENT.
  24513. See the Apache Version 2.0 License for specific language governing permissions
  24514. and limitations under the License.
  24515. ***************************************************************************** */
  24516. /// <reference no-default-lib="true"/>
  24517. /// <reference lib="esnext" />
  24518. /// <reference lib="dom" />
  24519. /// <reference lib="webworker.importscripts" />
  24520. /// <reference lib="scripthost" />
  24521. /// <reference lib="dom.iterable" />`,Oi["lib.esnext.intl.d.ts"]=`/*! *****************************************************************************
  24522. Copyright (c) Microsoft Corporation. All rights reserved.
  24523. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  24524. this file except in compliance with the License. You may obtain a copy of the
  24525. License at http://www.apache.org/licenses/LICENSE-2.0
  24526. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  24527. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  24528. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  24529. MERCHANTABLITY OR NON-INFRINGEMENT.
  24530. See the Apache Version 2.0 License for specific language governing permissions
  24531. and limitations under the License.
  24532. ***************************************************************************** */
  24533. /// <reference no-default-lib="true"/>
  24534. declare namespace Intl {
  24535. // Empty for now
  24536. }
  24537. `,Oi["lib.esnext.promise.d.ts"]=`/*! *****************************************************************************
  24538. Copyright (c) Microsoft Corporation. All rights reserved.
  24539. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  24540. this file except in compliance with the License. You may obtain a copy of the
  24541. License at http://www.apache.org/licenses/LICENSE-2.0
  24542. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  24543. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  24544. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  24545. MERCHANTABLITY OR NON-INFRINGEMENT.
  24546. See the Apache Version 2.0 License for specific language governing permissions
  24547. and limitations under the License.
  24548. ***************************************************************************** */
  24549. /// <reference no-default-lib="true"/>
  24550. interface AggregateError extends Error {
  24551. errors: any[]
  24552. }
  24553. interface AggregateErrorConstructor {
  24554. new(errors: Iterable<any>, message?: string): AggregateError;
  24555. (errors: Iterable<any>, message?: string): AggregateError;
  24556. readonly prototype: AggregateError;
  24557. }
  24558. declare var AggregateError: AggregateErrorConstructor;
  24559. /**
  24560. * Represents the completion of an asynchronous operation
  24561. */
  24562. interface PromiseConstructor {
  24563. /**
  24564. * 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.
  24565. * @param values An array or iterable of Promises.
  24566. * @returns A new Promise.
  24567. */
  24568. any<T>(values: (T | PromiseLike<T>)[] | Iterable<T | PromiseLike<T>>): Promise<T>
  24569. }
  24570. `,Oi["lib.esnext.string.d.ts"]=`/*! *****************************************************************************
  24571. Copyright (c) Microsoft Corporation. All rights reserved.
  24572. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  24573. this file except in compliance with the License. You may obtain a copy of the
  24574. License at http://www.apache.org/licenses/LICENSE-2.0
  24575. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  24576. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  24577. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  24578. MERCHANTABLITY OR NON-INFRINGEMENT.
  24579. See the Apache Version 2.0 License for specific language governing permissions
  24580. and limitations under the License.
  24581. ***************************************************************************** */
  24582. /// <reference no-default-lib="true"/>
  24583. interface String {
  24584. /**
  24585. * Replace all instances of a substring in a string, using a regular expression or search string.
  24586. * @param searchValue A string to search for.
  24587. * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
  24588. */
  24589. replaceAll(searchValue: string | RegExp, replaceValue: string): string;
  24590. /**
  24591. * Replace all instances of a substring in a string, using a regular expression or search string.
  24592. * @param searchValue A string to search for.
  24593. * @param replacer A function that returns the replacement text.
  24594. */
  24595. replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
  24596. }
  24597. `,Oi["lib.esnext.weakref.d.ts"]=`/*! *****************************************************************************
  24598. Copyright (c) Microsoft Corporation. All rights reserved.
  24599. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  24600. this file except in compliance with the License. You may obtain a copy of the
  24601. License at http://www.apache.org/licenses/LICENSE-2.0
  24602. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  24603. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  24604. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  24605. MERCHANTABLITY OR NON-INFRINGEMENT.
  24606. See the Apache Version 2.0 License for specific language governing permissions
  24607. and limitations under the License.
  24608. ***************************************************************************** */
  24609. /// <reference no-default-lib="true"/>
  24610. interface WeakRef<T extends object> {
  24611. readonly [Symbol.toStringTag]: "WeakRef";
  24612. /**
  24613. * Returns the WeakRef instance's target object, or undefined if the target object has been
  24614. * reclaimed.
  24615. */
  24616. deref(): T | undefined;
  24617. }
  24618. interface WeakRefConstructor {
  24619. readonly prototype: WeakRef<any>;
  24620. /**
  24621. * Creates a WeakRef instance for the given target object.
  24622. * @param target The target object for the WeakRef instance.
  24623. */
  24624. new<T extends object>(target?: T): WeakRef<T>;
  24625. }
  24626. declare var WeakRef: WeakRefConstructor;
  24627. interface FinalizationRegistry {
  24628. readonly [Symbol.toStringTag]: "FinalizationRegistry";
  24629. /**
  24630. * Registers an object with the registry.
  24631. * @param target The target object to register.
  24632. * @param heldValue The value to pass to the finalizer for this object. This cannot be the
  24633. * target object.
  24634. * @param unregisterToken The token to pass to the unregister method to unregister the target
  24635. * object. If provided (and not undefined), this must be an object. If not provided, the target
  24636. * cannot be unregistered.
  24637. */
  24638. register(target: object, heldValue: any, unregisterToken?: object): void;
  24639. /**
  24640. * Unregisters an object from the registry.
  24641. * @param unregisterToken The token that was used as the unregisterToken argument when calling
  24642. * register to register the target object.
  24643. */
  24644. unregister(unregisterToken: object): void;
  24645. }
  24646. interface FinalizationRegistryConstructor {
  24647. readonly prototype: FinalizationRegistry;
  24648. /**
  24649. * Creates a finalization registry with an associated cleanup callback
  24650. * @param cleanupCallback The callback to call after an object in the registry has been reclaimed.
  24651. */
  24652. new(cleanupCallback: (heldValue: any) => void): FinalizationRegistry;
  24653. }
  24654. declare var FinalizationRegistry: FinalizationRegistryConstructor;
  24655. `,Oi["lib.scripthost.d.ts"]=`/*! *****************************************************************************
  24656. Copyright (c) Microsoft Corporation. All rights reserved.
  24657. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  24658. this file except in compliance with the License. You may obtain a copy of the
  24659. License at http://www.apache.org/licenses/LICENSE-2.0
  24660. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  24661. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  24662. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  24663. MERCHANTABLITY OR NON-INFRINGEMENT.
  24664. See the Apache Version 2.0 License for specific language governing permissions
  24665. and limitations under the License.
  24666. ***************************************************************************** */
  24667. /// <reference no-default-lib="true"/>
  24668. /////////////////////////////
  24669. /// Windows Script Host APIS
  24670. /////////////////////////////
  24671. interface ActiveXObject {
  24672. new (s: string): any;
  24673. }
  24674. declare var ActiveXObject: ActiveXObject;
  24675. interface ITextWriter {
  24676. Write(s: string): void;
  24677. WriteLine(s: string): void;
  24678. Close(): void;
  24679. }
  24680. interface TextStreamBase {
  24681. /**
  24682. * The column number of the current character position in an input stream.
  24683. */
  24684. Column: number;
  24685. /**
  24686. * The current line number in an input stream.
  24687. */
  24688. Line: number;
  24689. /**
  24690. * Closes a text stream.
  24691. * It is not necessary to close standard streams; they close automatically when the process ends. If
  24692. * you close a standard stream, be aware that any other pointers to that standard stream become invalid.
  24693. */
  24694. Close(): void;
  24695. }
  24696. interface TextStreamWriter extends TextStreamBase {
  24697. /**
  24698. * Sends a string to an output stream.
  24699. */
  24700. Write(s: string): void;
  24701. /**
  24702. * Sends a specified number of blank lines (newline characters) to an output stream.
  24703. */
  24704. WriteBlankLines(intLines: number): void;
  24705. /**
  24706. * Sends a string followed by a newline character to an output stream.
  24707. */
  24708. WriteLine(s: string): void;
  24709. }
  24710. interface TextStreamReader extends TextStreamBase {
  24711. /**
  24712. * Returns a specified number of characters from an input stream, starting at the current pointer position.
  24713. * Does not return until the ENTER key is pressed.
  24714. * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
  24715. */
  24716. Read(characters: number): string;
  24717. /**
  24718. * Returns all characters from an input stream.
  24719. * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
  24720. */
  24721. ReadAll(): string;
  24722. /**
  24723. * Returns an entire line from an input stream.
  24724. * Although this method extracts the newline character, it does not add it to the returned string.
  24725. * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
  24726. */
  24727. ReadLine(): string;
  24728. /**
  24729. * Skips a specified number of characters when reading from an input text stream.
  24730. * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
  24731. * @param characters Positive number of characters to skip forward. (Backward skipping is not supported.)
  24732. */
  24733. Skip(characters: number): void;
  24734. /**
  24735. * Skips the next line when reading from an input text stream.
  24736. * Can only be used on a stream in reading mode, not writing or appending mode.
  24737. */
  24738. SkipLine(): void;
  24739. /**
  24740. * Indicates whether the stream pointer position is at the end of a line.
  24741. */
  24742. AtEndOfLine: boolean;
  24743. /**
  24744. * Indicates whether the stream pointer position is at the end of a stream.
  24745. */
  24746. AtEndOfStream: boolean;
  24747. }
  24748. declare var WScript: {
  24749. /**
  24750. * Outputs text to either a message box (under WScript.exe) or the command console window followed by
  24751. * a newline (under CScript.exe).
  24752. */
  24753. Echo(s: any): void;
  24754. /**
  24755. * Exposes the write-only error output stream for the current script.
  24756. * Can be accessed only while using CScript.exe.
  24757. */
  24758. StdErr: TextStreamWriter;
  24759. /**
  24760. * Exposes the write-only output stream for the current script.
  24761. * Can be accessed only while using CScript.exe.
  24762. */
  24763. StdOut: TextStreamWriter;
  24764. Arguments: { length: number; Item(n: number): string; };
  24765. /**
  24766. * The full path of the currently running script.
  24767. */
  24768. ScriptFullName: string;
  24769. /**
  24770. * Forces the script to stop immediately, with an optional exit code.
  24771. */
  24772. Quit(exitCode?: number): number;
  24773. /**
  24774. * The Windows Script Host build version number.
  24775. */
  24776. BuildVersion: number;
  24777. /**
  24778. * Fully qualified path of the host executable.
  24779. */
  24780. FullName: string;
  24781. /**
  24782. * Gets/sets the script mode - interactive(true) or batch(false).
  24783. */
  24784. Interactive: boolean;
  24785. /**
  24786. * The name of the host executable (WScript.exe or CScript.exe).
  24787. */
  24788. Name: string;
  24789. /**
  24790. * Path of the directory containing the host executable.
  24791. */
  24792. Path: string;
  24793. /**
  24794. * The filename of the currently running script.
  24795. */
  24796. ScriptName: string;
  24797. /**
  24798. * Exposes the read-only input stream for the current script.
  24799. * Can be accessed only while using CScript.exe.
  24800. */
  24801. StdIn: TextStreamReader;
  24802. /**
  24803. * Windows Script Host version
  24804. */
  24805. Version: string;
  24806. /**
  24807. * Connects a COM object's event sources to functions named with a given prefix, in the form prefix_event.
  24808. */
  24809. ConnectObject(objEventSource: any, strPrefix: string): void;
  24810. /**
  24811. * Creates a COM object.
  24812. * @param strProgiID
  24813. * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
  24814. */
  24815. CreateObject(strProgID: string, strPrefix?: string): any;
  24816. /**
  24817. * Disconnects a COM object from its event sources.
  24818. */
  24819. DisconnectObject(obj: any): void;
  24820. /**
  24821. * Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file.
  24822. * @param strPathname Fully qualified path to the file containing the object persisted to disk.
  24823. * For objects in memory, pass a zero-length string.
  24824. * @param strProgID
  24825. * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
  24826. */
  24827. GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any;
  24828. /**
  24829. * Suspends script execution for a specified length of time, then continues execution.
  24830. * @param intTime Interval (in milliseconds) to suspend script execution.
  24831. */
  24832. Sleep(intTime: number): void;
  24833. };
  24834. /**
  24835. * WSH is an alias for WScript under Windows Script Host
  24836. */
  24837. declare var WSH: typeof WScript;
  24838. /**
  24839. * Represents an Automation SAFEARRAY
  24840. */
  24841. declare class SafeArray<T = any> {
  24842. private constructor();
  24843. private SafeArray_typekey: SafeArray<T>;
  24844. }
  24845. /**
  24846. * Allows enumerating over a COM collection, which may not have indexed item access.
  24847. */
  24848. interface Enumerator<T = any> {
  24849. /**
  24850. * Returns true if the current item is the last one in the collection, or the collection is empty,
  24851. * or the current item is undefined.
  24852. */
  24853. atEnd(): boolean;
  24854. /**
  24855. * Returns the current item in the collection
  24856. */
  24857. item(): T;
  24858. /**
  24859. * Resets the current item in the collection to the first item. If there are no items in the collection,
  24860. * the current item is set to undefined.
  24861. */
  24862. moveFirst(): void;
  24863. /**
  24864. * Moves the current item to the next item in the collection. If the enumerator is at the end of
  24865. * the collection or the collection is empty, the current item is set to undefined.
  24866. */
  24867. moveNext(): void;
  24868. }
  24869. interface EnumeratorConstructor {
  24870. new <T = any>(safearray: SafeArray<T>): Enumerator<T>;
  24871. new <T = any>(collection: { Item(index: any): T }): Enumerator<T>;
  24872. new <T = any>(collection: any): Enumerator<T>;
  24873. }
  24874. declare var Enumerator: EnumeratorConstructor;
  24875. /**
  24876. * Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions.
  24877. */
  24878. interface VBArray<T = any> {
  24879. /**
  24880. * Returns the number of dimensions (1-based).
  24881. */
  24882. dimensions(): number;
  24883. /**
  24884. * Takes an index for each dimension in the array, and returns the item at the corresponding location.
  24885. */
  24886. getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T;
  24887. /**
  24888. * Returns the smallest available index for a given dimension.
  24889. * @param dimension 1-based dimension (defaults to 1)
  24890. */
  24891. lbound(dimension?: number): number;
  24892. /**
  24893. * Returns the largest available index for a given dimension.
  24894. * @param dimension 1-based dimension (defaults to 1)
  24895. */
  24896. ubound(dimension?: number): number;
  24897. /**
  24898. * Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions,
  24899. * each successive dimension is appended to the end of the array.
  24900. * Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6]
  24901. */
  24902. toArray(): T[];
  24903. }
  24904. interface VBArrayConstructor {
  24905. new <T = any>(safeArray: SafeArray<T>): VBArray<T>;
  24906. }
  24907. declare var VBArray: VBArrayConstructor;
  24908. /**
  24909. * Automation date (VT_DATE)
  24910. */
  24911. declare class VarDate {
  24912. private constructor();
  24913. private VarDate_typekey: VarDate;
  24914. }
  24915. interface DateConstructor {
  24916. new (vd: VarDate): Date;
  24917. }
  24918. interface Date {
  24919. getVarDate: () => VarDate;
  24920. }
  24921. `,Oi["lib.webworker.d.ts"]=`/*! *****************************************************************************
  24922. Copyright (c) Microsoft Corporation. All rights reserved.
  24923. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  24924. this file except in compliance with the License. You may obtain a copy of the
  24925. License at http://www.apache.org/licenses/LICENSE-2.0
  24926. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  24927. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  24928. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  24929. MERCHANTABLITY OR NON-INFRINGEMENT.
  24930. See the Apache Version 2.0 License for specific language governing permissions
  24931. and limitations under the License.
  24932. ***************************************************************************** */
  24933. /// <reference no-default-lib="true"/>
  24934. /////////////////////////////
  24935. /// Worker APIs
  24936. /////////////////////////////
  24937. interface AddEventListenerOptions extends EventListenerOptions {
  24938. once?: boolean;
  24939. passive?: boolean;
  24940. signal?: AbortSignal;
  24941. }
  24942. interface AesCbcParams extends Algorithm {
  24943. iv: BufferSource;
  24944. }
  24945. interface AesCtrParams extends Algorithm {
  24946. counter: BufferSource;
  24947. length: number;
  24948. }
  24949. interface AesDerivedKeyParams extends Algorithm {
  24950. length: number;
  24951. }
  24952. interface AesGcmParams extends Algorithm {
  24953. additionalData?: BufferSource;
  24954. iv: BufferSource;
  24955. tagLength?: number;
  24956. }
  24957. interface AesKeyAlgorithm extends KeyAlgorithm {
  24958. length: number;
  24959. }
  24960. interface AesKeyGenParams extends Algorithm {
  24961. length: number;
  24962. }
  24963. interface Algorithm {
  24964. name: string;
  24965. }
  24966. interface AudioConfiguration {
  24967. bitrate?: number;
  24968. channels?: string;
  24969. contentType: string;
  24970. samplerate?: number;
  24971. spatialRendering?: boolean;
  24972. }
  24973. interface BlobPropertyBag {
  24974. endings?: EndingType;
  24975. type?: string;
  24976. }
  24977. interface CacheQueryOptions {
  24978. ignoreMethod?: boolean;
  24979. ignoreSearch?: boolean;
  24980. ignoreVary?: boolean;
  24981. }
  24982. interface ClientQueryOptions {
  24983. includeUncontrolled?: boolean;
  24984. type?: ClientTypes;
  24985. }
  24986. interface CloseEventInit extends EventInit {
  24987. code?: number;
  24988. reason?: string;
  24989. wasClean?: boolean;
  24990. }
  24991. interface CryptoKeyPair {
  24992. privateKey?: CryptoKey;
  24993. publicKey?: CryptoKey;
  24994. }
  24995. interface CustomEventInit<T = any> extends EventInit {
  24996. detail?: T;
  24997. }
  24998. interface DOMMatrix2DInit {
  24999. a?: number;
  25000. b?: number;
  25001. c?: number;
  25002. d?: number;
  25003. e?: number;
  25004. f?: number;
  25005. m11?: number;
  25006. m12?: number;
  25007. m21?: number;
  25008. m22?: number;
  25009. m41?: number;
  25010. m42?: number;
  25011. }
  25012. interface DOMMatrixInit extends DOMMatrix2DInit {
  25013. is2D?: boolean;
  25014. m13?: number;
  25015. m14?: number;
  25016. m23?: number;
  25017. m24?: number;
  25018. m31?: number;
  25019. m32?: number;
  25020. m33?: number;
  25021. m34?: number;
  25022. m43?: number;
  25023. m44?: number;
  25024. }
  25025. interface DOMPointInit {
  25026. w?: number;
  25027. x?: number;
  25028. y?: number;
  25029. z?: number;
  25030. }
  25031. interface DOMQuadInit {
  25032. p1?: DOMPointInit;
  25033. p2?: DOMPointInit;
  25034. p3?: DOMPointInit;
  25035. p4?: DOMPointInit;
  25036. }
  25037. interface DOMRectInit {
  25038. height?: number;
  25039. width?: number;
  25040. x?: number;
  25041. y?: number;
  25042. }
  25043. interface EcKeyGenParams extends Algorithm {
  25044. namedCurve: NamedCurve;
  25045. }
  25046. interface EcKeyImportParams extends Algorithm {
  25047. namedCurve: NamedCurve;
  25048. }
  25049. interface EcdhKeyDeriveParams extends Algorithm {
  25050. public: CryptoKey;
  25051. }
  25052. interface EcdsaParams extends Algorithm {
  25053. hash: HashAlgorithmIdentifier;
  25054. }
  25055. interface ErrorEventInit extends EventInit {
  25056. colno?: number;
  25057. error?: any;
  25058. filename?: string;
  25059. lineno?: number;
  25060. message?: string;
  25061. }
  25062. interface EventInit {
  25063. bubbles?: boolean;
  25064. cancelable?: boolean;
  25065. composed?: boolean;
  25066. }
  25067. interface EventListenerOptions {
  25068. capture?: boolean;
  25069. }
  25070. interface EventSourceInit {
  25071. withCredentials?: boolean;
  25072. }
  25073. interface ExtendableEventInit extends EventInit {
  25074. }
  25075. interface ExtendableMessageEventInit extends ExtendableEventInit {
  25076. data?: any;
  25077. lastEventId?: string;
  25078. origin?: string;
  25079. ports?: MessagePort[];
  25080. source?: Client | ServiceWorker | MessagePort | null;
  25081. }
  25082. interface FetchEventInit extends ExtendableEventInit {
  25083. clientId?: string;
  25084. handled?: Promise<undefined>;
  25085. preloadResponse?: Promise<any>;
  25086. replacesClientId?: string;
  25087. request: Request;
  25088. resultingClientId?: string;
  25089. }
  25090. interface FilePropertyBag extends BlobPropertyBag {
  25091. lastModified?: number;
  25092. }
  25093. interface FontFaceDescriptors {
  25094. display?: string;
  25095. featureSettings?: string;
  25096. stretch?: string;
  25097. style?: string;
  25098. unicodeRange?: string;
  25099. variant?: string;
  25100. weight?: string;
  25101. }
  25102. interface FontFaceSetLoadEventInit extends EventInit {
  25103. fontfaces?: FontFace[];
  25104. }
  25105. interface GetNotificationOptions {
  25106. tag?: string;
  25107. }
  25108. interface HkdfParams extends Algorithm {
  25109. hash: HashAlgorithmIdentifier;
  25110. info: BufferSource;
  25111. salt: BufferSource;
  25112. }
  25113. interface HmacImportParams extends Algorithm {
  25114. hash: HashAlgorithmIdentifier;
  25115. length?: number;
  25116. }
  25117. interface HmacKeyGenParams extends Algorithm {
  25118. hash: HashAlgorithmIdentifier;
  25119. length?: number;
  25120. }
  25121. interface IDBDatabaseInfo {
  25122. name?: string;
  25123. version?: number;
  25124. }
  25125. interface IDBIndexParameters {
  25126. multiEntry?: boolean;
  25127. unique?: boolean;
  25128. }
  25129. interface IDBObjectStoreParameters {
  25130. autoIncrement?: boolean;
  25131. keyPath?: string | string[] | null;
  25132. }
  25133. interface IDBVersionChangeEventInit extends EventInit {
  25134. newVersion?: number | null;
  25135. oldVersion?: number;
  25136. }
  25137. interface ImageBitmapOptions {
  25138. colorSpaceConversion?: ColorSpaceConversion;
  25139. imageOrientation?: ImageOrientation;
  25140. premultiplyAlpha?: PremultiplyAlpha;
  25141. resizeHeight?: number;
  25142. resizeQuality?: ResizeQuality;
  25143. resizeWidth?: number;
  25144. }
  25145. interface ImageBitmapRenderingContextSettings {
  25146. alpha?: boolean;
  25147. }
  25148. interface ImageDataSettings {
  25149. colorSpace?: PredefinedColorSpace;
  25150. }
  25151. interface ImportMeta {
  25152. url: string;
  25153. }
  25154. interface JsonWebKey {
  25155. alg?: string;
  25156. crv?: string;
  25157. d?: string;
  25158. dp?: string;
  25159. dq?: string;
  25160. e?: string;
  25161. ext?: boolean;
  25162. k?: string;
  25163. key_ops?: string[];
  25164. kty?: string;
  25165. n?: string;
  25166. oth?: RsaOtherPrimesInfo[];
  25167. p?: string;
  25168. q?: string;
  25169. qi?: string;
  25170. use?: string;
  25171. x?: string;
  25172. y?: string;
  25173. }
  25174. interface KeyAlgorithm {
  25175. name: string;
  25176. }
  25177. interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
  25178. configuration?: MediaDecodingConfiguration;
  25179. }
  25180. interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
  25181. configuration?: MediaEncodingConfiguration;
  25182. }
  25183. interface MediaCapabilitiesInfo {
  25184. powerEfficient: boolean;
  25185. smooth: boolean;
  25186. supported: boolean;
  25187. }
  25188. interface MediaConfiguration {
  25189. audio?: AudioConfiguration;
  25190. video?: VideoConfiguration;
  25191. }
  25192. interface MediaDecodingConfiguration extends MediaConfiguration {
  25193. type: MediaDecodingType;
  25194. }
  25195. interface MediaEncodingConfiguration extends MediaConfiguration {
  25196. type: MediaEncodingType;
  25197. }
  25198. interface MessageEventInit<T = any> extends EventInit {
  25199. data?: T;
  25200. lastEventId?: string;
  25201. origin?: string;
  25202. ports?: MessagePort[];
  25203. source?: MessageEventSource | null;
  25204. }
  25205. interface MultiCacheQueryOptions extends CacheQueryOptions {
  25206. cacheName?: string;
  25207. }
  25208. interface NotificationAction {
  25209. action: string;
  25210. icon?: string;
  25211. title: string;
  25212. }
  25213. interface NotificationEventInit extends ExtendableEventInit {
  25214. action?: string;
  25215. notification: Notification;
  25216. }
  25217. interface NotificationOptions {
  25218. actions?: NotificationAction[];
  25219. badge?: string;
  25220. body?: string;
  25221. data?: any;
  25222. dir?: NotificationDirection;
  25223. icon?: string;
  25224. image?: string;
  25225. lang?: string;
  25226. renotify?: boolean;
  25227. requireInteraction?: boolean;
  25228. silent?: boolean;
  25229. tag?: string;
  25230. timestamp?: DOMTimeStamp;
  25231. vibrate?: VibratePattern;
  25232. }
  25233. interface Pbkdf2Params extends Algorithm {
  25234. hash: HashAlgorithmIdentifier;
  25235. iterations: number;
  25236. salt: BufferSource;
  25237. }
  25238. interface PerformanceMarkOptions {
  25239. detail?: any;
  25240. startTime?: DOMHighResTimeStamp;
  25241. }
  25242. interface PerformanceMeasureOptions {
  25243. detail?: any;
  25244. duration?: DOMHighResTimeStamp;
  25245. end?: string | DOMHighResTimeStamp;
  25246. start?: string | DOMHighResTimeStamp;
  25247. }
  25248. interface PerformanceObserverInit {
  25249. buffered?: boolean;
  25250. entryTypes?: string[];
  25251. type?: string;
  25252. }
  25253. interface PermissionDescriptor {
  25254. name: PermissionName;
  25255. }
  25256. interface ProgressEventInit extends EventInit {
  25257. lengthComputable?: boolean;
  25258. loaded?: number;
  25259. total?: number;
  25260. }
  25261. interface PromiseRejectionEventInit extends EventInit {
  25262. promise: Promise<any>;
  25263. reason?: any;
  25264. }
  25265. interface PushEventInit extends ExtendableEventInit {
  25266. data?: PushMessageDataInit;
  25267. }
  25268. interface PushSubscriptionJSON {
  25269. endpoint?: string;
  25270. expirationTime?: DOMTimeStamp | null;
  25271. keys?: Record<string, string>;
  25272. }
  25273. interface PushSubscriptionOptionsInit {
  25274. applicationServerKey?: BufferSource | string | null;
  25275. userVisibleOnly?: boolean;
  25276. }
  25277. interface QueuingStrategy<T = any> {
  25278. highWaterMark?: number;
  25279. size?: QueuingStrategySize<T>;
  25280. }
  25281. interface QueuingStrategyInit {
  25282. /**
  25283. * Creates a new ByteLengthQueuingStrategy with the provided high water mark.
  25284. *
  25285. * 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.
  25286. */
  25287. highWaterMark: number;
  25288. }
  25289. interface ReadableStreamDefaultReadDoneResult {
  25290. done: true;
  25291. value?: undefined;
  25292. }
  25293. interface ReadableStreamDefaultReadValueResult<T> {
  25294. done: false;
  25295. value: T;
  25296. }
  25297. interface ReadableWritablePair<R = any, W = any> {
  25298. readable: ReadableStream<R>;
  25299. /**
  25300. * 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.
  25301. *
  25302. * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
  25303. */
  25304. writable: WritableStream<W>;
  25305. }
  25306. interface RegistrationOptions {
  25307. scope?: string;
  25308. type?: WorkerType;
  25309. updateViaCache?: ServiceWorkerUpdateViaCache;
  25310. }
  25311. interface RequestInit {
  25312. /** A BodyInit object or null to set request's body. */
  25313. body?: BodyInit | null;
  25314. /** A string indicating how the request will interact with the browser's cache to set request's cache. */
  25315. cache?: RequestCache;
  25316. /** 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. */
  25317. credentials?: RequestCredentials;
  25318. /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */
  25319. headers?: HeadersInit;
  25320. /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
  25321. integrity?: string;
  25322. /** A boolean to set request's keepalive. */
  25323. keepalive?: boolean;
  25324. /** A string to set request's method. */
  25325. method?: string;
  25326. /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
  25327. mode?: RequestMode;
  25328. /** 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. */
  25329. redirect?: RequestRedirect;
  25330. /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
  25331. referrer?: string;
  25332. /** A referrer policy to set request's referrerPolicy. */
  25333. referrerPolicy?: ReferrerPolicy;
  25334. /** An AbortSignal to set request's signal. */
  25335. signal?: AbortSignal | null;
  25336. /** Can only be null. Used to disassociate request from any Window. */
  25337. window?: null;
  25338. }
  25339. interface ResponseInit {
  25340. headers?: HeadersInit;
  25341. status?: number;
  25342. statusText?: string;
  25343. }
  25344. interface RsaHashedImportParams extends Algorithm {
  25345. hash: HashAlgorithmIdentifier;
  25346. }
  25347. interface RsaHashedKeyGenParams extends RsaKeyGenParams {
  25348. hash: HashAlgorithmIdentifier;
  25349. }
  25350. interface RsaKeyGenParams extends Algorithm {
  25351. modulusLength: number;
  25352. publicExponent: BigInteger;
  25353. }
  25354. interface RsaOaepParams extends Algorithm {
  25355. label?: BufferSource;
  25356. }
  25357. interface RsaOtherPrimesInfo {
  25358. d?: string;
  25359. r?: string;
  25360. t?: string;
  25361. }
  25362. interface RsaPssParams extends Algorithm {
  25363. saltLength: number;
  25364. }
  25365. interface SecurityPolicyViolationEventInit extends EventInit {
  25366. blockedURI?: string;
  25367. columnNumber?: number;
  25368. disposition: SecurityPolicyViolationEventDisposition;
  25369. documentURI: string;
  25370. effectiveDirective: string;
  25371. lineNumber?: number;
  25372. originalPolicy: string;
  25373. referrer?: string;
  25374. sample?: string;
  25375. sourceFile?: string;
  25376. statusCode: number;
  25377. violatedDirective: string;
  25378. }
  25379. interface StorageEstimate {
  25380. quota?: number;
  25381. usage?: number;
  25382. }
  25383. interface StreamPipeOptions {
  25384. preventAbort?: boolean;
  25385. preventCancel?: boolean;
  25386. /**
  25387. * 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.
  25388. *
  25389. * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
  25390. *
  25391. * Errors and closures of the source and destination streams propagate as follows:
  25392. *
  25393. * 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.
  25394. *
  25395. * 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.
  25396. *
  25397. * 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.
  25398. *
  25399. * 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.
  25400. *
  25401. * 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.
  25402. */
  25403. preventClose?: boolean;
  25404. signal?: AbortSignal;
  25405. }
  25406. interface StructuredSerializeOptions {
  25407. transfer?: any[];
  25408. }
  25409. interface TextDecodeOptions {
  25410. stream?: boolean;
  25411. }
  25412. interface TextDecoderOptions {
  25413. fatal?: boolean;
  25414. ignoreBOM?: boolean;
  25415. }
  25416. interface TextEncoderEncodeIntoResult {
  25417. read?: number;
  25418. written?: number;
  25419. }
  25420. interface Transformer<I = any, O = any> {
  25421. flush?: TransformerFlushCallback<O>;
  25422. readableType?: undefined;
  25423. start?: TransformerStartCallback<O>;
  25424. transform?: TransformerTransformCallback<I, O>;
  25425. writableType?: undefined;
  25426. }
  25427. interface UnderlyingSink<W = any> {
  25428. abort?: UnderlyingSinkAbortCallback;
  25429. close?: UnderlyingSinkCloseCallback;
  25430. start?: UnderlyingSinkStartCallback;
  25431. type?: undefined;
  25432. write?: UnderlyingSinkWriteCallback<W>;
  25433. }
  25434. interface UnderlyingSource<R = any> {
  25435. cancel?: UnderlyingSourceCancelCallback;
  25436. pull?: UnderlyingSourcePullCallback<R>;
  25437. start?: UnderlyingSourceStartCallback<R>;
  25438. type?: undefined;
  25439. }
  25440. interface VideoConfiguration {
  25441. bitrate: number;
  25442. colorGamut?: ColorGamut;
  25443. contentType: string;
  25444. framerate: number;
  25445. hdrMetadataType?: HdrMetadataType;
  25446. height: number;
  25447. scalabilityMode?: string;
  25448. transferFunction?: TransferFunction;
  25449. width: number;
  25450. }
  25451. interface WebGLContextAttributes {
  25452. alpha?: boolean;
  25453. antialias?: boolean;
  25454. depth?: boolean;
  25455. desynchronized?: boolean;
  25456. failIfMajorPerformanceCaveat?: boolean;
  25457. powerPreference?: WebGLPowerPreference;
  25458. premultipliedAlpha?: boolean;
  25459. preserveDrawingBuffer?: boolean;
  25460. stencil?: boolean;
  25461. }
  25462. interface WebGLContextEventInit extends EventInit {
  25463. statusMessage?: string;
  25464. }
  25465. interface WorkerOptions {
  25466. credentials?: RequestCredentials;
  25467. name?: string;
  25468. type?: WorkerType;
  25469. }
  25470. /** 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. */
  25471. interface ANGLE_instanced_arrays {
  25472. drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
  25473. drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
  25474. vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
  25475. readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;
  25476. }
  25477. /** A controller object that allows you to abort one or more DOM requests as and when desired. */
  25478. interface AbortController {
  25479. /** Returns the AbortSignal object associated with this object. */
  25480. readonly signal: AbortSignal;
  25481. /** 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. */
  25482. abort(): void;
  25483. }
  25484. declare var AbortController: {
  25485. prototype: AbortController;
  25486. new(): AbortController;
  25487. };
  25488. interface AbortSignalEventMap {
  25489. "abort": Event;
  25490. }
  25491. /** 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. */
  25492. interface AbortSignal extends EventTarget {
  25493. /** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
  25494. readonly aborted: boolean;
  25495. onabort: ((this: AbortSignal, ev: Event) => any) | null;
  25496. addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  25497. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  25498. removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  25499. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  25500. }
  25501. declare var AbortSignal: {
  25502. prototype: AbortSignal;
  25503. new(): AbortSignal;
  25504. // abort(): AbortSignal; - To be re-added in the future
  25505. };
  25506. interface AbstractWorkerEventMap {
  25507. "error": ErrorEvent;
  25508. }
  25509. interface AbstractWorker {
  25510. onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
  25511. addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  25512. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  25513. removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  25514. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  25515. }
  25516. interface AnimationFrameProvider {
  25517. cancelAnimationFrame(handle: number): void;
  25518. requestAnimationFrame(callback: FrameRequestCallback): number;
  25519. }
  25520. /** 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. */
  25521. interface Blob {
  25522. readonly size: number;
  25523. readonly type: string;
  25524. arrayBuffer(): Promise<ArrayBuffer>;
  25525. slice(start?: number, end?: number, contentType?: string): Blob;
  25526. stream(): ReadableStream;
  25527. text(): Promise<string>;
  25528. }
  25529. declare var Blob: {
  25530. prototype: Blob;
  25531. new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
  25532. };
  25533. interface Body {
  25534. readonly body: ReadableStream<Uint8Array> | null;
  25535. readonly bodyUsed: boolean;
  25536. arrayBuffer(): Promise<ArrayBuffer>;
  25537. blob(): Promise<Blob>;
  25538. formData(): Promise<FormData>;
  25539. json(): Promise<any>;
  25540. text(): Promise<string>;
  25541. }
  25542. interface BroadcastChannelEventMap {
  25543. "message": MessageEvent;
  25544. "messageerror": MessageEvent;
  25545. }
  25546. interface BroadcastChannel extends EventTarget {
  25547. /** Returns the channel name (as passed to the constructor). */
  25548. readonly name: string;
  25549. onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
  25550. onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
  25551. /** Closes the BroadcastChannel object, opening it up to garbage collection. */
  25552. close(): void;
  25553. /** Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. */
  25554. postMessage(message: any): void;
  25555. addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  25556. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  25557. removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  25558. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  25559. }
  25560. declare var BroadcastChannel: {
  25561. prototype: BroadcastChannel;
  25562. new(name: string): BroadcastChannel;
  25563. };
  25564. /** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
  25565. interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
  25566. readonly highWaterMark: number;
  25567. readonly size: QueuingStrategySize<ArrayBufferView>;
  25568. }
  25569. declare var ByteLengthQueuingStrategy: {
  25570. prototype: ByteLengthQueuingStrategy;
  25571. new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
  25572. };
  25573. /**
  25574. * 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.
  25575. * Available only in secure contexts.
  25576. */
  25577. interface Cache {
  25578. add(request: RequestInfo): Promise<void>;
  25579. addAll(requests: RequestInfo[]): Promise<void>;
  25580. delete(request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>;
  25581. keys(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
  25582. match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;
  25583. matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
  25584. put(request: RequestInfo, response: Response): Promise<void>;
  25585. }
  25586. declare var Cache: {
  25587. prototype: Cache;
  25588. new(): Cache;
  25589. };
  25590. /**
  25591. * The storage for Cache objects.
  25592. * Available only in secure contexts.
  25593. */
  25594. interface CacheStorage {
  25595. delete(cacheName: string): Promise<boolean>;
  25596. has(cacheName: string): Promise<boolean>;
  25597. keys(): Promise<string[]>;
  25598. match(request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
  25599. open(cacheName: string): Promise<Cache>;
  25600. }
  25601. declare var CacheStorage: {
  25602. prototype: CacheStorage;
  25603. new(): CacheStorage;
  25604. };
  25605. /** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
  25606. interface CanvasGradient {
  25607. /**
  25608. * 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.
  25609. *
  25610. * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
  25611. */
  25612. addColorStop(offset: number, color: string): void;
  25613. }
  25614. declare var CanvasGradient: {
  25615. prototype: CanvasGradient;
  25616. new(): CanvasGradient;
  25617. };
  25618. interface CanvasPath {
  25619. arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
  25620. arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
  25621. bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
  25622. closePath(): void;
  25623. ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
  25624. lineTo(x: number, y: number): void;
  25625. moveTo(x: number, y: number): void;
  25626. quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
  25627. rect(x: number, y: number, w: number, h: number): void;
  25628. }
  25629. /** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
  25630. interface CanvasPattern {
  25631. /** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */
  25632. setTransform(transform?: DOMMatrix2DInit): void;
  25633. }
  25634. declare var CanvasPattern: {
  25635. prototype: CanvasPattern;
  25636. new(): CanvasPattern;
  25637. };
  25638. /** 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(). */
  25639. interface Client {
  25640. readonly frameType: FrameType;
  25641. readonly id: string;
  25642. readonly type: ClientTypes;
  25643. readonly url: string;
  25644. postMessage(message: any, transfer: Transferable[]): void;
  25645. postMessage(message: any, options?: StructuredSerializeOptions): void;
  25646. }
  25647. declare var Client: {
  25648. prototype: Client;
  25649. new(): Client;
  25650. };
  25651. /** Provides access to Client objects. Access it via self.clients within a service worker. */
  25652. interface Clients {
  25653. claim(): Promise<void>;
  25654. get(id: string): Promise<Client | undefined>;
  25655. matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>;
  25656. openWindow(url: string | URL): Promise<WindowClient | null>;
  25657. }
  25658. declare var Clients: {
  25659. prototype: Clients;
  25660. new(): Clients;
  25661. };
  25662. /** 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. */
  25663. interface CloseEvent extends Event {
  25664. /** Returns the WebSocket connection close code provided by the server. */
  25665. readonly code: number;
  25666. /** Returns the WebSocket connection close reason provided by the server. */
  25667. readonly reason: string;
  25668. /** Returns true if the connection closed cleanly; false otherwise. */
  25669. readonly wasClean: boolean;
  25670. }
  25671. declare var CloseEvent: {
  25672. prototype: CloseEvent;
  25673. new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
  25674. };
  25675. /** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
  25676. interface CountQueuingStrategy extends QueuingStrategy {
  25677. readonly highWaterMark: number;
  25678. readonly size: QueuingStrategySize;
  25679. }
  25680. declare var CountQueuingStrategy: {
  25681. prototype: CountQueuingStrategy;
  25682. new(init: QueuingStrategyInit): CountQueuingStrategy;
  25683. };
  25684. /** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
  25685. interface Crypto {
  25686. /** Available only in secure contexts. */
  25687. readonly subtle: SubtleCrypto;
  25688. getRandomValues<T extends ArrayBufferView | null>(array: T): T;
  25689. }
  25690. declare var Crypto: {
  25691. prototype: Crypto;
  25692. new(): Crypto;
  25693. };
  25694. /**
  25695. * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
  25696. * Available only in secure contexts.
  25697. */
  25698. interface CryptoKey {
  25699. readonly algorithm: KeyAlgorithm;
  25700. readonly extractable: boolean;
  25701. readonly type: KeyType;
  25702. readonly usages: KeyUsage[];
  25703. }
  25704. declare var CryptoKey: {
  25705. prototype: CryptoKey;
  25706. new(): CryptoKey;
  25707. };
  25708. interface CustomEvent<T = any> extends Event {
  25709. /** Returns any custom data event was created with. Typically used for synthetic events. */
  25710. readonly detail: T;
  25711. /** @deprecated */
  25712. initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
  25713. }
  25714. declare var CustomEvent: {
  25715. prototype: CustomEvent;
  25716. new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
  25717. };
  25718. /** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
  25719. interface DOMException extends Error {
  25720. readonly code: number;
  25721. readonly message: string;
  25722. readonly name: string;
  25723. readonly ABORT_ERR: number;
  25724. readonly DATA_CLONE_ERR: number;
  25725. readonly DOMSTRING_SIZE_ERR: number;
  25726. readonly HIERARCHY_REQUEST_ERR: number;
  25727. readonly INDEX_SIZE_ERR: number;
  25728. readonly INUSE_ATTRIBUTE_ERR: number;
  25729. readonly INVALID_ACCESS_ERR: number;
  25730. readonly INVALID_CHARACTER_ERR: number;
  25731. readonly INVALID_MODIFICATION_ERR: number;
  25732. readonly INVALID_NODE_TYPE_ERR: number;
  25733. readonly INVALID_STATE_ERR: number;
  25734. readonly NAMESPACE_ERR: number;
  25735. readonly NETWORK_ERR: number;
  25736. readonly NOT_FOUND_ERR: number;
  25737. readonly NOT_SUPPORTED_ERR: number;
  25738. readonly NO_DATA_ALLOWED_ERR: number;
  25739. readonly NO_MODIFICATION_ALLOWED_ERR: number;
  25740. readonly QUOTA_EXCEEDED_ERR: number;
  25741. readonly SECURITY_ERR: number;
  25742. readonly SYNTAX_ERR: number;
  25743. readonly TIMEOUT_ERR: number;
  25744. readonly TYPE_MISMATCH_ERR: number;
  25745. readonly URL_MISMATCH_ERR: number;
  25746. readonly VALIDATION_ERR: number;
  25747. readonly WRONG_DOCUMENT_ERR: number;
  25748. }
  25749. declare var DOMException: {
  25750. prototype: DOMException;
  25751. new(message?: string, name?: string): DOMException;
  25752. readonly ABORT_ERR: number;
  25753. readonly DATA_CLONE_ERR: number;
  25754. readonly DOMSTRING_SIZE_ERR: number;
  25755. readonly HIERARCHY_REQUEST_ERR: number;
  25756. readonly INDEX_SIZE_ERR: number;
  25757. readonly INUSE_ATTRIBUTE_ERR: number;
  25758. readonly INVALID_ACCESS_ERR: number;
  25759. readonly INVALID_CHARACTER_ERR: number;
  25760. readonly INVALID_MODIFICATION_ERR: number;
  25761. readonly INVALID_NODE_TYPE_ERR: number;
  25762. readonly INVALID_STATE_ERR: number;
  25763. readonly NAMESPACE_ERR: number;
  25764. readonly NETWORK_ERR: number;
  25765. readonly NOT_FOUND_ERR: number;
  25766. readonly NOT_SUPPORTED_ERR: number;
  25767. readonly NO_DATA_ALLOWED_ERR: number;
  25768. readonly NO_MODIFICATION_ALLOWED_ERR: number;
  25769. readonly QUOTA_EXCEEDED_ERR: number;
  25770. readonly SECURITY_ERR: number;
  25771. readonly SYNTAX_ERR: number;
  25772. readonly TIMEOUT_ERR: number;
  25773. readonly TYPE_MISMATCH_ERR: number;
  25774. readonly URL_MISMATCH_ERR: number;
  25775. readonly VALIDATION_ERR: number;
  25776. readonly WRONG_DOCUMENT_ERR: number;
  25777. };
  25778. interface DOMMatrix extends DOMMatrixReadOnly {
  25779. a: number;
  25780. b: number;
  25781. c: number;
  25782. d: number;
  25783. e: number;
  25784. f: number;
  25785. m11: number;
  25786. m12: number;
  25787. m13: number;
  25788. m14: number;
  25789. m21: number;
  25790. m22: number;
  25791. m23: number;
  25792. m24: number;
  25793. m31: number;
  25794. m32: number;
  25795. m33: number;
  25796. m34: number;
  25797. m41: number;
  25798. m42: number;
  25799. m43: number;
  25800. m44: number;
  25801. invertSelf(): DOMMatrix;
  25802. multiplySelf(other?: DOMMatrixInit): DOMMatrix;
  25803. preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
  25804. rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
  25805. rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
  25806. rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
  25807. scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
  25808. scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
  25809. skewXSelf(sx?: number): DOMMatrix;
  25810. skewYSelf(sy?: number): DOMMatrix;
  25811. translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
  25812. }
  25813. declare var DOMMatrix: {
  25814. prototype: DOMMatrix;
  25815. new(init?: string | number[]): DOMMatrix;
  25816. fromFloat32Array(array32: Float32Array): DOMMatrix;
  25817. fromFloat64Array(array64: Float64Array): DOMMatrix;
  25818. fromMatrix(other?: DOMMatrixInit): DOMMatrix;
  25819. };
  25820. interface DOMMatrixReadOnly {
  25821. readonly a: number;
  25822. readonly b: number;
  25823. readonly c: number;
  25824. readonly d: number;
  25825. readonly e: number;
  25826. readonly f: number;
  25827. readonly is2D: boolean;
  25828. readonly isIdentity: boolean;
  25829. readonly m11: number;
  25830. readonly m12: number;
  25831. readonly m13: number;
  25832. readonly m14: number;
  25833. readonly m21: number;
  25834. readonly m22: number;
  25835. readonly m23: number;
  25836. readonly m24: number;
  25837. readonly m31: number;
  25838. readonly m32: number;
  25839. readonly m33: number;
  25840. readonly m34: number;
  25841. readonly m41: number;
  25842. readonly m42: number;
  25843. readonly m43: number;
  25844. readonly m44: number;
  25845. flipX(): DOMMatrix;
  25846. flipY(): DOMMatrix;
  25847. inverse(): DOMMatrix;
  25848. multiply(other?: DOMMatrixInit): DOMMatrix;
  25849. rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
  25850. rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
  25851. rotateFromVector(x?: number, y?: number): DOMMatrix;
  25852. scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
  25853. scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
  25854. /** @deprecated */
  25855. scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
  25856. skewX(sx?: number): DOMMatrix;
  25857. skewY(sy?: number): DOMMatrix;
  25858. toFloat32Array(): Float32Array;
  25859. toFloat64Array(): Float64Array;
  25860. toJSON(): any;
  25861. transformPoint(point?: DOMPointInit): DOMPoint;
  25862. translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
  25863. }
  25864. declare var DOMMatrixReadOnly: {
  25865. prototype: DOMMatrixReadOnly;
  25866. new(init?: string | number[]): DOMMatrixReadOnly;
  25867. fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
  25868. fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
  25869. fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
  25870. };
  25871. interface DOMPoint extends DOMPointReadOnly {
  25872. w: number;
  25873. x: number;
  25874. y: number;
  25875. z: number;
  25876. }
  25877. declare var DOMPoint: {
  25878. prototype: DOMPoint;
  25879. new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
  25880. fromPoint(other?: DOMPointInit): DOMPoint;
  25881. };
  25882. interface DOMPointReadOnly {
  25883. readonly w: number;
  25884. readonly x: number;
  25885. readonly y: number;
  25886. readonly z: number;
  25887. matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
  25888. toJSON(): any;
  25889. }
  25890. declare var DOMPointReadOnly: {
  25891. prototype: DOMPointReadOnly;
  25892. new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
  25893. fromPoint(other?: DOMPointInit): DOMPointReadOnly;
  25894. };
  25895. interface DOMQuad {
  25896. readonly p1: DOMPoint;
  25897. readonly p2: DOMPoint;
  25898. readonly p3: DOMPoint;
  25899. readonly p4: DOMPoint;
  25900. getBounds(): DOMRect;
  25901. toJSON(): any;
  25902. }
  25903. declare var DOMQuad: {
  25904. prototype: DOMQuad;
  25905. new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
  25906. fromQuad(other?: DOMQuadInit): DOMQuad;
  25907. fromRect(other?: DOMRectInit): DOMQuad;
  25908. };
  25909. interface DOMRect extends DOMRectReadOnly {
  25910. height: number;
  25911. width: number;
  25912. x: number;
  25913. y: number;
  25914. }
  25915. declare var DOMRect: {
  25916. prototype: DOMRect;
  25917. new(x?: number, y?: number, width?: number, height?: number): DOMRect;
  25918. fromRect(other?: DOMRectInit): DOMRect;
  25919. };
  25920. interface DOMRectReadOnly {
  25921. readonly bottom: number;
  25922. readonly height: number;
  25923. readonly left: number;
  25924. readonly right: number;
  25925. readonly top: number;
  25926. readonly width: number;
  25927. readonly x: number;
  25928. readonly y: number;
  25929. toJSON(): any;
  25930. }
  25931. declare var DOMRectReadOnly: {
  25932. prototype: DOMRectReadOnly;
  25933. new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
  25934. fromRect(other?: DOMRectInit): DOMRectReadOnly;
  25935. };
  25936. /** A type returned by some APIs which contains a list of DOMString (strings). */
  25937. interface DOMStringList {
  25938. /** Returns the number of strings in strings. */
  25939. readonly length: number;
  25940. /** Returns true if strings contains string, and false otherwise. */
  25941. contains(string: string): boolean;
  25942. /** Returns the string with index index from strings. */
  25943. item(index: number): string | null;
  25944. [index: number]: string;
  25945. }
  25946. declare var DOMStringList: {
  25947. prototype: DOMStringList;
  25948. new(): DOMStringList;
  25949. };
  25950. interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
  25951. "message": MessageEvent;
  25952. "messageerror": MessageEvent;
  25953. }
  25954. /** (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. */
  25955. interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider {
  25956. /** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */
  25957. readonly name: string;
  25958. onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
  25959. onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
  25960. /** Aborts dedicatedWorkerGlobal. */
  25961. close(): void;
  25962. /** 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. */
  25963. postMessage(message: any, transfer: Transferable[]): void;
  25964. postMessage(message: any, options?: StructuredSerializeOptions): void;
  25965. addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  25966. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  25967. removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  25968. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  25969. }
  25970. declare var DedicatedWorkerGlobalScope: {
  25971. prototype: DedicatedWorkerGlobalScope;
  25972. new(): DedicatedWorkerGlobalScope;
  25973. };
  25974. interface EXT_blend_minmax {
  25975. readonly MAX_EXT: GLenum;
  25976. readonly MIN_EXT: GLenum;
  25977. }
  25978. interface EXT_color_buffer_float {
  25979. }
  25980. interface EXT_color_buffer_half_float {
  25981. readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
  25982. readonly RGB16F_EXT: GLenum;
  25983. readonly RGBA16F_EXT: GLenum;
  25984. readonly UNSIGNED_NORMALIZED_EXT: GLenum;
  25985. }
  25986. interface EXT_float_blend {
  25987. }
  25988. /** 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. */
  25989. interface EXT_frag_depth {
  25990. }
  25991. interface EXT_sRGB {
  25992. readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum;
  25993. readonly SRGB8_ALPHA8_EXT: GLenum;
  25994. readonly SRGB_ALPHA_EXT: GLenum;
  25995. readonly SRGB_EXT: GLenum;
  25996. }
  25997. interface EXT_shader_texture_lod {
  25998. }
  25999. interface EXT_texture_compression_rgtc {
  26000. readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
  26001. readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
  26002. readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum;
  26003. readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum;
  26004. }
  26005. /** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
  26006. interface EXT_texture_filter_anisotropic {
  26007. readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
  26008. readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
  26009. }
  26010. /** Events providing information related to errors in scripts or in files. */
  26011. interface ErrorEvent extends Event {
  26012. readonly colno: number;
  26013. readonly error: any;
  26014. readonly filename: string;
  26015. readonly lineno: number;
  26016. readonly message: string;
  26017. }
  26018. declare var ErrorEvent: {
  26019. prototype: ErrorEvent;
  26020. new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
  26021. };
  26022. /** An event which takes place in the DOM. */
  26023. interface Event {
  26024. /** 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. */
  26025. readonly bubbles: boolean;
  26026. cancelBubble: boolean;
  26027. /** 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. */
  26028. readonly cancelable: boolean;
  26029. /** 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. */
  26030. readonly composed: boolean;
  26031. /** Returns the object whose event listener's callback is currently being invoked. */
  26032. readonly currentTarget: EventTarget | null;
  26033. /** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */
  26034. readonly defaultPrevented: boolean;
  26035. /** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */
  26036. readonly eventPhase: number;
  26037. /** Returns true if event was dispatched by the user agent, and false otherwise. */
  26038. readonly isTrusted: boolean;
  26039. /** @deprecated */
  26040. returnValue: boolean;
  26041. /** @deprecated */
  26042. readonly srcElement: EventTarget | null;
  26043. /** Returns the object to which event is dispatched (its target). */
  26044. readonly target: EventTarget | null;
  26045. /** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */
  26046. readonly timeStamp: DOMHighResTimeStamp;
  26047. /** Returns the type of event, e.g. "click", "hashchange", or "submit". */
  26048. readonly type: string;
  26049. /** 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. */
  26050. composedPath(): EventTarget[];
  26051. /** @deprecated */
  26052. initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
  26053. /** 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. */
  26054. preventDefault(): void;
  26055. /** 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. */
  26056. stopImmediatePropagation(): void;
  26057. /** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */
  26058. stopPropagation(): void;
  26059. readonly AT_TARGET: number;
  26060. readonly BUBBLING_PHASE: number;
  26061. readonly CAPTURING_PHASE: number;
  26062. readonly NONE: number;
  26063. }
  26064. declare var Event: {
  26065. prototype: Event;
  26066. new(type: string, eventInitDict?: EventInit): Event;
  26067. readonly AT_TARGET: number;
  26068. readonly BUBBLING_PHASE: number;
  26069. readonly CAPTURING_PHASE: number;
  26070. readonly NONE: number;
  26071. };
  26072. interface EventListener {
  26073. (evt: Event): void;
  26074. }
  26075. interface EventListenerObject {
  26076. handleEvent(object: Event): void;
  26077. }
  26078. interface EventSourceEventMap {
  26079. "error": Event;
  26080. "message": MessageEvent;
  26081. "open": Event;
  26082. }
  26083. interface EventSource extends EventTarget {
  26084. onerror: ((this: EventSource, ev: Event) => any) | null;
  26085. onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
  26086. onopen: ((this: EventSource, ev: Event) => any) | null;
  26087. /** Returns the state of this EventSource object's connection. It can have the values described below. */
  26088. readonly readyState: number;
  26089. /** Returns the URL providing the event stream. */
  26090. readonly url: string;
  26091. /** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. */
  26092. readonly withCredentials: boolean;
  26093. /** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */
  26094. close(): void;
  26095. readonly CLOSED: number;
  26096. readonly CONNECTING: number;
  26097. readonly OPEN: number;
  26098. addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  26099. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  26100. removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  26101. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  26102. }
  26103. declare var EventSource: {
  26104. prototype: EventSource;
  26105. new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
  26106. readonly CLOSED: number;
  26107. readonly CONNECTING: number;
  26108. readonly OPEN: number;
  26109. };
  26110. /** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
  26111. interface EventTarget {
  26112. /**
  26113. * 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.
  26114. *
  26115. * 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.
  26116. *
  26117. * 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.
  26118. *
  26119. * 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.
  26120. *
  26121. * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
  26122. *
  26123. * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
  26124. *
  26125. * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
  26126. */
  26127. addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
  26128. /** 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. */
  26129. dispatchEvent(event: Event): boolean;
  26130. /** Removes the event listener in target's event listener list with the same type, callback, and options. */
  26131. removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
  26132. }
  26133. declare var EventTarget: {
  26134. prototype: EventTarget;
  26135. new(): EventTarget;
  26136. };
  26137. /** 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. */
  26138. interface ExtendableEvent extends Event {
  26139. waitUntil(f: any): void;
  26140. }
  26141. declare var ExtendableEvent: {
  26142. prototype: ExtendableEvent;
  26143. new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent;
  26144. };
  26145. /** 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. */
  26146. interface ExtendableMessageEvent extends ExtendableEvent {
  26147. readonly data: any;
  26148. readonly lastEventId: string;
  26149. readonly origin: string;
  26150. readonly ports: ReadonlyArray<MessagePort>;
  26151. readonly source: Client | ServiceWorker | MessagePort | null;
  26152. }
  26153. declare var ExtendableMessageEvent: {
  26154. prototype: ExtendableMessageEvent;
  26155. new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent;
  26156. };
  26157. /** 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. */
  26158. interface FetchEvent extends ExtendableEvent {
  26159. readonly clientId: string;
  26160. readonly handled: Promise<undefined>;
  26161. readonly request: Request;
  26162. readonly resultingClientId: string;
  26163. respondWith(r: Response | PromiseLike<Response>): void;
  26164. }
  26165. declare var FetchEvent: {
  26166. prototype: FetchEvent;
  26167. new(type: string, eventInitDict: FetchEventInit): FetchEvent;
  26168. };
  26169. /** Provides information about files and allows JavaScript in a web page to access their content. */
  26170. interface File extends Blob {
  26171. readonly lastModified: number;
  26172. readonly name: string;
  26173. readonly webkitRelativePath: string;
  26174. }
  26175. declare var File: {
  26176. prototype: File;
  26177. new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
  26178. };
  26179. /** 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. */
  26180. interface FileList {
  26181. readonly length: number;
  26182. item(index: number): File | null;
  26183. [index: number]: File;
  26184. }
  26185. declare var FileList: {
  26186. prototype: FileList;
  26187. new(): FileList;
  26188. };
  26189. interface FileReaderEventMap {
  26190. "abort": ProgressEvent<FileReader>;
  26191. "error": ProgressEvent<FileReader>;
  26192. "load": ProgressEvent<FileReader>;
  26193. "loadend": ProgressEvent<FileReader>;
  26194. "loadstart": ProgressEvent<FileReader>;
  26195. "progress": ProgressEvent<FileReader>;
  26196. }
  26197. /** 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. */
  26198. interface FileReader extends EventTarget {
  26199. readonly error: DOMException | null;
  26200. onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
  26201. onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
  26202. onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
  26203. onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
  26204. onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
  26205. onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
  26206. readonly readyState: number;
  26207. readonly result: string | ArrayBuffer | null;
  26208. abort(): void;
  26209. readAsArrayBuffer(blob: Blob): void;
  26210. readAsBinaryString(blob: Blob): void;
  26211. readAsDataURL(blob: Blob): void;
  26212. readAsText(blob: Blob, encoding?: string): void;
  26213. readonly DONE: number;
  26214. readonly EMPTY: number;
  26215. readonly LOADING: number;
  26216. addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  26217. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  26218. removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  26219. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  26220. }
  26221. declare var FileReader: {
  26222. prototype: FileReader;
  26223. new(): FileReader;
  26224. readonly DONE: number;
  26225. readonly EMPTY: number;
  26226. readonly LOADING: number;
  26227. };
  26228. /** Allows to read File or Blob objects in a synchronous way. */
  26229. interface FileReaderSync {
  26230. readAsArrayBuffer(blob: Blob): ArrayBuffer;
  26231. /** @deprecated */
  26232. readAsBinaryString(blob: Blob): string;
  26233. readAsDataURL(blob: Blob): string;
  26234. readAsText(blob: Blob, encoding?: string): string;
  26235. }
  26236. declare var FileReaderSync: {
  26237. prototype: FileReaderSync;
  26238. new(): FileReaderSync;
  26239. };
  26240. interface FontFace {
  26241. ascentOverride: string;
  26242. descentOverride: string;
  26243. display: string;
  26244. family: string;
  26245. featureSettings: string;
  26246. lineGapOverride: string;
  26247. readonly loaded: Promise<FontFace>;
  26248. readonly status: FontFaceLoadStatus;
  26249. stretch: string;
  26250. style: string;
  26251. unicodeRange: string;
  26252. variant: string;
  26253. variationSettings: string;
  26254. weight: string;
  26255. load(): Promise<FontFace>;
  26256. }
  26257. declare var FontFace: {
  26258. prototype: FontFace;
  26259. new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
  26260. };
  26261. interface FontFaceSetEventMap {
  26262. "loading": Event;
  26263. "loadingdone": Event;
  26264. "loadingerror": Event;
  26265. }
  26266. interface FontFaceSet extends EventTarget {
  26267. onloading: ((this: FontFaceSet, ev: Event) => any) | null;
  26268. onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
  26269. onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
  26270. readonly ready: Promise<FontFaceSet>;
  26271. readonly status: FontFaceSetLoadStatus;
  26272. check(font: string, text?: string): boolean;
  26273. load(font: string, text?: string): Promise<FontFace[]>;
  26274. forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
  26275. addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  26276. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  26277. removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  26278. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  26279. }
  26280. declare var FontFaceSet: {
  26281. prototype: FontFaceSet;
  26282. new(initialFaces: FontFace[]): FontFaceSet;
  26283. };
  26284. interface FontFaceSetLoadEvent extends Event {
  26285. readonly fontfaces: ReadonlyArray<FontFace>;
  26286. }
  26287. declare var FontFaceSetLoadEvent: {
  26288. prototype: FontFaceSetLoadEvent;
  26289. new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
  26290. };
  26291. interface FontFaceSource {
  26292. readonly fonts: FontFaceSet;
  26293. }
  26294. /** 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". */
  26295. interface FormData {
  26296. append(name: string, value: string | Blob, fileName?: string): void;
  26297. delete(name: string): void;
  26298. get(name: string): FormDataEntryValue | null;
  26299. getAll(name: string): FormDataEntryValue[];
  26300. has(name: string): boolean;
  26301. set(name: string, value: string | Blob, fileName?: string): void;
  26302. forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
  26303. }
  26304. declare var FormData: {
  26305. prototype: FormData;
  26306. new(): FormData;
  26307. };
  26308. interface GenericTransformStream {
  26309. readonly readable: ReadableStream;
  26310. readonly writable: WritableStream;
  26311. }
  26312. /** 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. */
  26313. interface Headers {
  26314. append(name: string, value: string): void;
  26315. delete(name: string): void;
  26316. get(name: string): string | null;
  26317. has(name: string): boolean;
  26318. set(name: string, value: string): void;
  26319. forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
  26320. }
  26321. declare var Headers: {
  26322. prototype: Headers;
  26323. new(init?: HeadersInit): Headers;
  26324. };
  26325. /** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
  26326. interface IDBCursor {
  26327. /** Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. */
  26328. readonly direction: IDBCursorDirection;
  26329. /** Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
  26330. readonly key: IDBValidKey;
  26331. /** Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
  26332. readonly primaryKey: IDBValidKey;
  26333. readonly request: IDBRequest;
  26334. /** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */
  26335. readonly source: IDBObjectStore | IDBIndex;
  26336. /** Advances the cursor through the next count records in range. */
  26337. advance(count: number): void;
  26338. /** Advances the cursor to the next record in range. */
  26339. continue(key?: IDBValidKey): void;
  26340. /** 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. */
  26341. continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
  26342. /**
  26343. * Delete the record pointed at by the cursor with a new value.
  26344. *
  26345. * If successful, request's result will be undefined.
  26346. */
  26347. delete(): IDBRequest<undefined>;
  26348. /**
  26349. * Updated the record pointed at by the cursor with a new value.
  26350. *
  26351. * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
  26352. *
  26353. * If successful, request's result will be the record's key.
  26354. */
  26355. update(value: any): IDBRequest<IDBValidKey>;
  26356. }
  26357. declare var IDBCursor: {
  26358. prototype: IDBCursor;
  26359. new(): IDBCursor;
  26360. };
  26361. /** 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. */
  26362. interface IDBCursorWithValue extends IDBCursor {
  26363. /** Returns the cursor's current value. */
  26364. readonly value: any;
  26365. }
  26366. declare var IDBCursorWithValue: {
  26367. prototype: IDBCursorWithValue;
  26368. new(): IDBCursorWithValue;
  26369. };
  26370. interface IDBDatabaseEventMap {
  26371. "abort": Event;
  26372. "close": Event;
  26373. "error": Event;
  26374. "versionchange": IDBVersionChangeEvent;
  26375. }
  26376. /** 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. */
  26377. interface IDBDatabase extends EventTarget {
  26378. /** Returns the name of the database. */
  26379. readonly name: string;
  26380. /** Returns a list of the names of object stores in the database. */
  26381. readonly objectStoreNames: DOMStringList;
  26382. onabort: ((this: IDBDatabase, ev: Event) => any) | null;
  26383. onclose: ((this: IDBDatabase, ev: Event) => any) | null;
  26384. onerror: ((this: IDBDatabase, ev: Event) => any) | null;
  26385. onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
  26386. /** Returns the version of the database. */
  26387. readonly version: number;
  26388. /** Closes the connection once all running transactions have finished. */
  26389. close(): void;
  26390. /**
  26391. * Creates a new object store with the given name and options and returns a new IDBObjectStore.
  26392. *
  26393. * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
  26394. */
  26395. createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
  26396. /**
  26397. * Deletes the object store with the given name.
  26398. *
  26399. * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
  26400. */
  26401. deleteObjectStore(name: string): void;
  26402. /** 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. */
  26403. transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
  26404. addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  26405. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  26406. removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  26407. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  26408. }
  26409. declare var IDBDatabase: {
  26410. prototype: IDBDatabase;
  26411. new(): IDBDatabase;
  26412. };
  26413. /** 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.) */
  26414. interface IDBFactory {
  26415. /**
  26416. * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
  26417. *
  26418. * Throws a "DataError" DOMException if either input is not a valid key.
  26419. */
  26420. cmp(first: any, second: any): number;
  26421. databases(): Promise<IDBDatabaseInfo[]>;
  26422. /** 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. */
  26423. deleteDatabase(name: string): IDBOpenDBRequest;
  26424. /** 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. */
  26425. open(name: string, version?: number): IDBOpenDBRequest;
  26426. }
  26427. declare var IDBFactory: {
  26428. prototype: IDBFactory;
  26429. new(): IDBFactory;
  26430. };
  26431. /** 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. */
  26432. interface IDBIndex {
  26433. readonly keyPath: string | string[];
  26434. readonly multiEntry: boolean;
  26435. /** Returns the name of the index. */
  26436. name: string;
  26437. /** Returns the IDBObjectStore the index belongs to. */
  26438. readonly objectStore: IDBObjectStore;
  26439. readonly unique: boolean;
  26440. /**
  26441. * Retrieves the number of records matching the given key or key range in query.
  26442. *
  26443. * If successful, request's result will be the count.
  26444. */
  26445. count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
  26446. /**
  26447. * Retrieves the value of the first record matching the given key or key range in query.
  26448. *
  26449. * If successful, request's result will be the value, or undefined if there was no matching record.
  26450. */
  26451. get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
  26452. /**
  26453. * Retrieves the values of the records matching the given key or key range in query (up to count if given).
  26454. *
  26455. * If successful, request's result will be an Array of the values.
  26456. */
  26457. getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
  26458. /**
  26459. * Retrieves the keys of records matching the given key or key range in query (up to count if given).
  26460. *
  26461. * If successful, request's result will be an Array of the keys.
  26462. */
  26463. getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
  26464. /**
  26465. * Retrieves the key of the first record matching the given key or key range in query.
  26466. *
  26467. * If successful, request's result will be the key, or undefined if there was no matching record.
  26468. */
  26469. getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
  26470. /**
  26471. * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
  26472. *
  26473. * If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
  26474. */
  26475. openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
  26476. /**
  26477. * 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.
  26478. *
  26479. * If successful, request's result will be an IDBCursor, or null if there were no matching records.
  26480. */
  26481. openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
  26482. }
  26483. declare var IDBIndex: {
  26484. prototype: IDBIndex;
  26485. new(): IDBIndex;
  26486. };
  26487. /** 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: */
  26488. interface IDBKeyRange {
  26489. /** Returns lower bound, or undefined if none. */
  26490. readonly lower: any;
  26491. /** Returns true if the lower open flag is set, and false otherwise. */
  26492. readonly lowerOpen: boolean;
  26493. /** Returns upper bound, or undefined if none. */
  26494. readonly upper: any;
  26495. /** Returns true if the upper open flag is set, and false otherwise. */
  26496. readonly upperOpen: boolean;
  26497. /** Returns true if key is included in the range, and false otherwise. */
  26498. includes(key: any): boolean;
  26499. }
  26500. declare var IDBKeyRange: {
  26501. prototype: IDBKeyRange;
  26502. new(): IDBKeyRange;
  26503. /** 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. */
  26504. bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
  26505. /** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */
  26506. lowerBound(lower: any, open?: boolean): IDBKeyRange;
  26507. /** Returns a new IDBKeyRange spanning only key. */
  26508. only(value: any): IDBKeyRange;
  26509. /** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */
  26510. upperBound(upper: any, open?: boolean): IDBKeyRange;
  26511. };
  26512. /** 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.) */
  26513. interface IDBObjectStore {
  26514. /** Returns true if the store has a key generator, and false otherwise. */
  26515. readonly autoIncrement: boolean;
  26516. /** Returns a list of the names of indexes in the store. */
  26517. readonly indexNames: DOMStringList;
  26518. /** Returns the key path of the store, or null if none. */
  26519. readonly keyPath: string | string[];
  26520. /** Returns the name of the store. */
  26521. name: string;
  26522. /** Returns the associated transaction. */
  26523. readonly transaction: IDBTransaction;
  26524. /**
  26525. * Adds or updates a record in store with the given value and key.
  26526. *
  26527. * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
  26528. *
  26529. * 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.
  26530. *
  26531. * If successful, request's result will be the record's key.
  26532. */
  26533. add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
  26534. /**
  26535. * Deletes all records in store.
  26536. *
  26537. * If successful, request's result will be undefined.
  26538. */
  26539. clear(): IDBRequest<undefined>;
  26540. /**
  26541. * Retrieves the number of records matching the given key or key range in query.
  26542. *
  26543. * If successful, request's result will be the count.
  26544. */
  26545. count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
  26546. /**
  26547. * 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.
  26548. *
  26549. * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
  26550. */
  26551. createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
  26552. /**
  26553. * Deletes records in store with the given key or in the given key range in query.
  26554. *
  26555. * If successful, request's result will be undefined.
  26556. */
  26557. delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
  26558. /**
  26559. * Deletes the index in store with the given name.
  26560. *
  26561. * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
  26562. */
  26563. deleteIndex(name: string): void;
  26564. /**
  26565. * Retrieves the value of the first record matching the given key or key range in query.
  26566. *
  26567. * If successful, request's result will be the value, or undefined if there was no matching record.
  26568. */
  26569. get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
  26570. /**
  26571. * Retrieves the values of the records matching the given key or key range in query (up to count if given).
  26572. *
  26573. * If successful, request's result will be an Array of the values.
  26574. */
  26575. getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
  26576. /**
  26577. * Retrieves the keys of records matching the given key or key range in query (up to count if given).
  26578. *
  26579. * If successful, request's result will be an Array of the keys.
  26580. */
  26581. getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
  26582. /**
  26583. * Retrieves the key of the first record matching the given key or key range in query.
  26584. *
  26585. * If successful, request's result will be the key, or undefined if there was no matching record.
  26586. */
  26587. getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
  26588. index(name: string): IDBIndex;
  26589. /**
  26590. * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
  26591. *
  26592. * If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
  26593. */
  26594. openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
  26595. /**
  26596. * 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.
  26597. *
  26598. * If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
  26599. */
  26600. openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
  26601. /**
  26602. * Adds or updates a record in store with the given value and key.
  26603. *
  26604. * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
  26605. *
  26606. * 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.
  26607. *
  26608. * If successful, request's result will be the record's key.
  26609. */
  26610. put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
  26611. }
  26612. declare var IDBObjectStore: {
  26613. prototype: IDBObjectStore;
  26614. new(): IDBObjectStore;
  26615. };
  26616. interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
  26617. "blocked": Event;
  26618. "upgradeneeded": IDBVersionChangeEvent;
  26619. }
  26620. /** Also inherits methods from its parents IDBRequest and EventTarget. */
  26621. interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
  26622. onblocked: ((this: IDBOpenDBRequest, ev: Event) => any) | null;
  26623. onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
  26624. addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  26625. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  26626. removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  26627. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  26628. }
  26629. declare var IDBOpenDBRequest: {
  26630. prototype: IDBOpenDBRequest;
  26631. new(): IDBOpenDBRequest;
  26632. };
  26633. interface IDBRequestEventMap {
  26634. "error": Event;
  26635. "success": Event;
  26636. }
  26637. /** 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. */
  26638. interface IDBRequest<T = any> extends EventTarget {
  26639. /** 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. */
  26640. readonly error: DOMException | null;
  26641. onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
  26642. onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
  26643. /** Returns "pending" until a request is complete, then returns "done". */
  26644. readonly readyState: IDBRequestReadyState;
  26645. /** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. */
  26646. readonly result: T;
  26647. /** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */
  26648. readonly source: IDBObjectStore | IDBIndex | IDBCursor;
  26649. /** 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. */
  26650. readonly transaction: IDBTransaction | null;
  26651. addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  26652. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  26653. removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  26654. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  26655. }
  26656. declare var IDBRequest: {
  26657. prototype: IDBRequest;
  26658. new(): IDBRequest;
  26659. };
  26660. interface IDBTransactionEventMap {
  26661. "abort": Event;
  26662. "complete": Event;
  26663. "error": Event;
  26664. }
  26665. interface IDBTransaction extends EventTarget {
  26666. /** Returns the transaction's connection. */
  26667. readonly db: IDBDatabase;
  26668. /** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
  26669. readonly error: DOMException | null;
  26670. /** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
  26671. readonly mode: IDBTransactionMode;
  26672. /** 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. */
  26673. readonly objectStoreNames: DOMStringList;
  26674. onabort: ((this: IDBTransaction, ev: Event) => any) | null;
  26675. oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
  26676. onerror: ((this: IDBTransaction, ev: Event) => any) | null;
  26677. /** Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. */
  26678. abort(): void;
  26679. commit(): void;
  26680. /** Returns an IDBObjectStore in the transaction's scope. */
  26681. objectStore(name: string): IDBObjectStore;
  26682. addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  26683. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  26684. removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  26685. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  26686. }
  26687. declare var IDBTransaction: {
  26688. prototype: IDBTransaction;
  26689. new(): IDBTransaction;
  26690. };
  26691. /** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */
  26692. interface IDBVersionChangeEvent extends Event {
  26693. readonly newVersion: number | null;
  26694. readonly oldVersion: number;
  26695. }
  26696. declare var IDBVersionChangeEvent: {
  26697. prototype: IDBVersionChangeEvent;
  26698. new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
  26699. };
  26700. interface ImageBitmap {
  26701. /** Returns the intrinsic height of the image, in CSS pixels. */
  26702. readonly height: number;
  26703. /** Returns the intrinsic width of the image, in CSS pixels. */
  26704. readonly width: number;
  26705. /** Releases imageBitmap's underlying bitmap data. */
  26706. close(): void;
  26707. }
  26708. declare var ImageBitmap: {
  26709. prototype: ImageBitmap;
  26710. new(): ImageBitmap;
  26711. };
  26712. interface ImageBitmapRenderingContext {
  26713. /** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */
  26714. transferFromImageBitmap(bitmap: ImageBitmap | null): void;
  26715. }
  26716. declare var ImageBitmapRenderingContext: {
  26717. prototype: ImageBitmapRenderingContext;
  26718. new(): ImageBitmapRenderingContext;
  26719. };
  26720. /** 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(). */
  26721. interface ImageData {
  26722. /** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
  26723. readonly data: Uint8ClampedArray;
  26724. /** Returns the actual dimensions of the data in the ImageData object, in pixels. */
  26725. readonly height: number;
  26726. /** Returns the actual dimensions of the data in the ImageData object, in pixels. */
  26727. readonly width: number;
  26728. }
  26729. declare var ImageData: {
  26730. prototype: ImageData;
  26731. new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
  26732. new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
  26733. };
  26734. interface KHR_parallel_shader_compile {
  26735. readonly COMPLETION_STATUS_KHR: GLenum;
  26736. }
  26737. interface MediaCapabilities {
  26738. decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
  26739. encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
  26740. }
  26741. declare var MediaCapabilities: {
  26742. prototype: MediaCapabilities;
  26743. new(): MediaCapabilities;
  26744. };
  26745. /** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */
  26746. interface MessageChannel {
  26747. /** Returns the first MessagePort object. */
  26748. readonly port1: MessagePort;
  26749. /** Returns the second MessagePort object. */
  26750. readonly port2: MessagePort;
  26751. }
  26752. declare var MessageChannel: {
  26753. prototype: MessageChannel;
  26754. new(): MessageChannel;
  26755. };
  26756. /** A message received by a target object. */
  26757. interface MessageEvent<T = any> extends Event {
  26758. /** Returns the data of the message. */
  26759. readonly data: T;
  26760. /** Returns the last event ID string, for server-sent events. */
  26761. readonly lastEventId: string;
  26762. /** Returns the origin of the message, for server-sent events and cross-document messaging. */
  26763. readonly origin: string;
  26764. /** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */
  26765. readonly ports: ReadonlyArray<MessagePort>;
  26766. /** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */
  26767. readonly source: MessageEventSource | null;
  26768. /** @deprecated */
  26769. initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
  26770. }
  26771. declare var MessageEvent: {
  26772. prototype: MessageEvent;
  26773. new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
  26774. };
  26775. interface MessagePortEventMap {
  26776. "message": MessageEvent;
  26777. "messageerror": MessageEvent;
  26778. }
  26779. /** 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. */
  26780. interface MessagePort extends EventTarget {
  26781. onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
  26782. onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
  26783. /** Disconnects the port, so that it is no longer active. */
  26784. close(): void;
  26785. /**
  26786. * 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.
  26787. *
  26788. * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
  26789. */
  26790. postMessage(message: any, transfer: Transferable[]): void;
  26791. postMessage(message: any, options?: StructuredSerializeOptions): void;
  26792. /** Begins dispatching messages received on the port. */
  26793. start(): void;
  26794. addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  26795. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  26796. removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  26797. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  26798. }
  26799. declare var MessagePort: {
  26800. prototype: MessagePort;
  26801. new(): MessagePort;
  26802. };
  26803. interface NavigatorConcurrentHardware {
  26804. readonly hardwareConcurrency: number;
  26805. }
  26806. interface NavigatorID {
  26807. /** @deprecated */
  26808. readonly appCodeName: string;
  26809. /** @deprecated */
  26810. readonly appName: string;
  26811. /** @deprecated */
  26812. readonly appVersion: string;
  26813. /** @deprecated */
  26814. readonly platform: string;
  26815. /** @deprecated */
  26816. readonly product: string;
  26817. readonly userAgent: string;
  26818. }
  26819. interface NavigatorLanguage {
  26820. readonly language: string;
  26821. readonly languages: ReadonlyArray<string>;
  26822. }
  26823. interface NavigatorNetworkInformation {
  26824. readonly connection: NetworkInformation;
  26825. }
  26826. interface NavigatorOnLine {
  26827. readonly onLine: boolean;
  26828. }
  26829. /** Available only in secure contexts. */
  26830. interface NavigatorStorage {
  26831. readonly storage: StorageManager;
  26832. }
  26833. interface NetworkInformation extends EventTarget {
  26834. readonly type: ConnectionType;
  26835. }
  26836. declare var NetworkInformation: {
  26837. prototype: NetworkInformation;
  26838. new(): NetworkInformation;
  26839. };
  26840. interface NotificationEventMap {
  26841. "click": Event;
  26842. "close": Event;
  26843. "error": Event;
  26844. "show": Event;
  26845. }
  26846. /** This Notifications API interface is used to configure and display desktop notifications to the user. */
  26847. interface Notification extends EventTarget {
  26848. readonly body: string;
  26849. readonly data: any;
  26850. readonly dir: NotificationDirection;
  26851. readonly icon: string;
  26852. readonly lang: string;
  26853. onclick: ((this: Notification, ev: Event) => any) | null;
  26854. onclose: ((this: Notification, ev: Event) => any) | null;
  26855. onerror: ((this: Notification, ev: Event) => any) | null;
  26856. onshow: ((this: Notification, ev: Event) => any) | null;
  26857. readonly tag: string;
  26858. readonly title: string;
  26859. close(): void;
  26860. addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  26861. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  26862. removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  26863. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  26864. }
  26865. declare var Notification: {
  26866. prototype: Notification;
  26867. new(title: string, options?: NotificationOptions): Notification;
  26868. readonly permission: NotificationPermission;
  26869. };
  26870. /** The parameter passed into the onnotificationclick handler, the NotificationEvent interface represents a notification click event that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. */
  26871. interface NotificationEvent extends ExtendableEvent {
  26872. readonly action: string;
  26873. readonly notification: Notification;
  26874. }
  26875. declare var NotificationEvent: {
  26876. prototype: NotificationEvent;
  26877. new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;
  26878. };
  26879. /** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
  26880. interface OES_element_index_uint {
  26881. }
  26882. interface OES_fbo_render_mipmap {
  26883. }
  26884. /** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
  26885. interface OES_standard_derivatives {
  26886. readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;
  26887. }
  26888. /** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */
  26889. interface OES_texture_float {
  26890. }
  26891. /** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */
  26892. interface OES_texture_float_linear {
  26893. }
  26894. /** 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. */
  26895. interface OES_texture_half_float {
  26896. readonly HALF_FLOAT_OES: GLenum;
  26897. }
  26898. /** 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. */
  26899. interface OES_texture_half_float_linear {
  26900. }
  26901. interface OES_vertex_array_object {
  26902. bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
  26903. createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
  26904. deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
  26905. isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
  26906. readonly VERTEX_ARRAY_BINDING_OES: GLenum;
  26907. }
  26908. interface OVR_multiview2 {
  26909. framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
  26910. readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: GLenum;
  26911. readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: GLenum;
  26912. readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: GLenum;
  26913. readonly MAX_VIEWS_OVR: GLenum;
  26914. }
  26915. /** @deprecated this is not available in most browsers */
  26916. interface OffscreenCanvas extends EventTarget {
  26917. }
  26918. /** 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. */
  26919. interface Path2D extends CanvasPath {
  26920. /** Adds to the path the path given by the argument. */
  26921. addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
  26922. }
  26923. declare var Path2D: {
  26924. prototype: Path2D;
  26925. new(path?: Path2D | string): Path2D;
  26926. };
  26927. interface PerformanceEventMap {
  26928. "resourcetimingbufferfull": Event;
  26929. }
  26930. /** 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. */
  26931. interface Performance extends EventTarget {
  26932. onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
  26933. readonly timeOrigin: DOMHighResTimeStamp;
  26934. clearMarks(markName?: string): void;
  26935. clearMeasures(measureName?: string): void;
  26936. clearResourceTimings(): void;
  26937. getEntries(): PerformanceEntryList;
  26938. getEntriesByName(name: string, type?: string): PerformanceEntryList;
  26939. getEntriesByType(type: string): PerformanceEntryList;
  26940. mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
  26941. measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
  26942. now(): DOMHighResTimeStamp;
  26943. setResourceTimingBufferSize(maxSize: number): void;
  26944. toJSON(): any;
  26945. addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  26946. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  26947. removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  26948. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  26949. }
  26950. declare var Performance: {
  26951. prototype: Performance;
  26952. new(): Performance;
  26953. };
  26954. /** 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). */
  26955. interface PerformanceEntry {
  26956. readonly duration: DOMHighResTimeStamp;
  26957. readonly entryType: string;
  26958. readonly name: string;
  26959. readonly startTime: DOMHighResTimeStamp;
  26960. toJSON(): any;
  26961. }
  26962. declare var PerformanceEntry: {
  26963. prototype: PerformanceEntry;
  26964. new(): PerformanceEntry;
  26965. };
  26966. /** 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. */
  26967. interface PerformanceMark extends PerformanceEntry {
  26968. readonly detail: any;
  26969. }
  26970. declare var PerformanceMark: {
  26971. prototype: PerformanceMark;
  26972. new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
  26973. };
  26974. /** 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. */
  26975. interface PerformanceMeasure extends PerformanceEntry {
  26976. readonly detail: any;
  26977. }
  26978. declare var PerformanceMeasure: {
  26979. prototype: PerformanceMeasure;
  26980. new(): PerformanceMeasure;
  26981. };
  26982. interface PerformanceObserver {
  26983. disconnect(): void;
  26984. observe(options?: PerformanceObserverInit): void;
  26985. takeRecords(): PerformanceEntryList;
  26986. }
  26987. declare var PerformanceObserver: {
  26988. prototype: PerformanceObserver;
  26989. new(callback: PerformanceObserverCallback): PerformanceObserver;
  26990. readonly supportedEntryTypes: ReadonlyArray<string>;
  26991. };
  26992. interface PerformanceObserverEntryList {
  26993. getEntries(): PerformanceEntryList;
  26994. getEntriesByName(name: string, type?: string): PerformanceEntryList;
  26995. getEntriesByType(type: string): PerformanceEntryList;
  26996. }
  26997. declare var PerformanceObserverEntryList: {
  26998. prototype: PerformanceObserverEntryList;
  26999. new(): PerformanceObserverEntryList;
  27000. };
  27001. /** 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. */
  27002. interface PerformanceResourceTiming extends PerformanceEntry {
  27003. readonly connectEnd: DOMHighResTimeStamp;
  27004. readonly connectStart: DOMHighResTimeStamp;
  27005. readonly decodedBodySize: number;
  27006. readonly domainLookupEnd: DOMHighResTimeStamp;
  27007. readonly domainLookupStart: DOMHighResTimeStamp;
  27008. readonly encodedBodySize: number;
  27009. readonly fetchStart: DOMHighResTimeStamp;
  27010. readonly initiatorType: string;
  27011. readonly nextHopProtocol: string;
  27012. readonly redirectEnd: DOMHighResTimeStamp;
  27013. readonly redirectStart: DOMHighResTimeStamp;
  27014. readonly requestStart: DOMHighResTimeStamp;
  27015. readonly responseEnd: DOMHighResTimeStamp;
  27016. readonly responseStart: DOMHighResTimeStamp;
  27017. readonly secureConnectionStart: DOMHighResTimeStamp;
  27018. readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
  27019. readonly transferSize: number;
  27020. readonly workerStart: DOMHighResTimeStamp;
  27021. toJSON(): any;
  27022. }
  27023. declare var PerformanceResourceTiming: {
  27024. prototype: PerformanceResourceTiming;
  27025. new(): PerformanceResourceTiming;
  27026. };
  27027. interface PerformanceServerTiming {
  27028. readonly description: string;
  27029. readonly duration: DOMHighResTimeStamp;
  27030. readonly name: string;
  27031. toJSON(): any;
  27032. }
  27033. declare var PerformanceServerTiming: {
  27034. prototype: PerformanceServerTiming;
  27035. new(): PerformanceServerTiming;
  27036. };
  27037. interface PermissionStatusEventMap {
  27038. "change": Event;
  27039. }
  27040. interface PermissionStatus extends EventTarget {
  27041. onchange: ((this: PermissionStatus, ev: Event) => any) | null;
  27042. readonly state: PermissionState;
  27043. addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  27044. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  27045. removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  27046. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  27047. }
  27048. declare var PermissionStatus: {
  27049. prototype: PermissionStatus;
  27050. new(): PermissionStatus;
  27051. };
  27052. interface Permissions {
  27053. query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
  27054. }
  27055. declare var Permissions: {
  27056. prototype: Permissions;
  27057. new(): Permissions;
  27058. };
  27059. /** 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>). */
  27060. interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
  27061. readonly lengthComputable: boolean;
  27062. readonly loaded: number;
  27063. readonly target: T | null;
  27064. readonly total: number;
  27065. }
  27066. declare var ProgressEvent: {
  27067. prototype: ProgressEvent;
  27068. new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
  27069. };
  27070. interface PromiseRejectionEvent extends Event {
  27071. readonly promise: Promise<any>;
  27072. readonly reason: any;
  27073. }
  27074. declare var PromiseRejectionEvent: {
  27075. prototype: PromiseRejectionEvent;
  27076. new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
  27077. };
  27078. /**
  27079. * 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.
  27080. * Available only in secure contexts.
  27081. */
  27082. interface PushEvent extends ExtendableEvent {
  27083. readonly data: PushMessageData | null;
  27084. }
  27085. declare var PushEvent: {
  27086. prototype: PushEvent;
  27087. new(type: string, eventInitDict?: PushEventInit): PushEvent;
  27088. };
  27089. /**
  27090. * This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
  27091. * Available only in secure contexts.
  27092. */
  27093. interface PushManager {
  27094. getSubscription(): Promise<PushSubscription | null>;
  27095. permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;
  27096. subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
  27097. }
  27098. declare var PushManager: {
  27099. prototype: PushManager;
  27100. new(): PushManager;
  27101. readonly supportedContentEncodings: ReadonlyArray<string>;
  27102. };
  27103. /**
  27104. * This Push API interface provides methods which let you retrieve the push data sent by a server in various formats.
  27105. * Available only in secure contexts.
  27106. */
  27107. interface PushMessageData {
  27108. arrayBuffer(): ArrayBuffer;
  27109. blob(): Blob;
  27110. json(): any;
  27111. text(): string;
  27112. }
  27113. declare var PushMessageData: {
  27114. prototype: PushMessageData;
  27115. new(): PushMessageData;
  27116. };
  27117. /**
  27118. * This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
  27119. * Available only in secure contexts.
  27120. */
  27121. interface PushSubscription {
  27122. readonly endpoint: string;
  27123. readonly options: PushSubscriptionOptions;
  27124. getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
  27125. toJSON(): PushSubscriptionJSON;
  27126. unsubscribe(): Promise<boolean>;
  27127. }
  27128. declare var PushSubscription: {
  27129. prototype: PushSubscription;
  27130. new(): PushSubscription;
  27131. };
  27132. /** Available only in secure contexts. */
  27133. interface PushSubscriptionOptions {
  27134. readonly applicationServerKey: ArrayBuffer | null;
  27135. }
  27136. declare var PushSubscriptionOptions: {
  27137. prototype: PushSubscriptionOptions;
  27138. new(): PushSubscriptionOptions;
  27139. };
  27140. /** 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. */
  27141. interface ReadableStream<R = any> {
  27142. readonly locked: boolean;
  27143. cancel(reason?: any): Promise<void>;
  27144. getReader(): ReadableStreamDefaultReader<R>;
  27145. pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
  27146. pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
  27147. tee(): [ReadableStream<R>, ReadableStream<R>];
  27148. }
  27149. declare var ReadableStream: {
  27150. prototype: ReadableStream;
  27151. new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
  27152. };
  27153. interface ReadableStreamDefaultController<R = any> {
  27154. readonly desiredSize: number | null;
  27155. close(): void;
  27156. enqueue(chunk?: R): void;
  27157. error(e?: any): void;
  27158. }
  27159. declare var ReadableStreamDefaultController: {
  27160. prototype: ReadableStreamDefaultController;
  27161. new(): ReadableStreamDefaultController;
  27162. };
  27163. interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
  27164. read(): Promise<ReadableStreamDefaultReadResult<R>>;
  27165. releaseLock(): void;
  27166. }
  27167. declare var ReadableStreamDefaultReader: {
  27168. prototype: ReadableStreamDefaultReader;
  27169. new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
  27170. };
  27171. interface ReadableStreamGenericReader {
  27172. readonly closed: Promise<undefined>;
  27173. cancel(reason?: any): Promise<void>;
  27174. }
  27175. /** This Fetch API interface represents a resource request. */
  27176. interface Request extends Body {
  27177. /** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */
  27178. readonly cache: RequestCache;
  27179. /** 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. */
  27180. readonly credentials: RequestCredentials;
  27181. /** Returns the kind of resource requested by request, e.g., "document" or "script". */
  27182. readonly destination: RequestDestination;
  27183. /** 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. */
  27184. readonly headers: Headers;
  27185. /** 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] */
  27186. readonly integrity: string;
  27187. /** Returns a boolean indicating whether or not request can outlive the global in which it was created. */
  27188. readonly keepalive: boolean;
  27189. /** Returns request's HTTP method, which is "GET" by default. */
  27190. readonly method: string;
  27191. /** 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. */
  27192. readonly mode: RequestMode;
  27193. /** 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. */
  27194. readonly redirect: RequestRedirect;
  27195. /** 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. */
  27196. readonly referrer: string;
  27197. /** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. */
  27198. readonly referrerPolicy: ReferrerPolicy;
  27199. /** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */
  27200. readonly signal: AbortSignal;
  27201. /** Returns the URL of request as a string. */
  27202. readonly url: string;
  27203. clone(): Request;
  27204. }
  27205. declare var Request: {
  27206. prototype: Request;
  27207. new(input: RequestInfo, init?: RequestInit): Request;
  27208. };
  27209. /** This Fetch API interface represents the response to a request. */
  27210. interface Response extends Body {
  27211. readonly headers: Headers;
  27212. readonly ok: boolean;
  27213. readonly redirected: boolean;
  27214. readonly status: number;
  27215. readonly statusText: string;
  27216. readonly type: ResponseType;
  27217. readonly url: string;
  27218. clone(): Response;
  27219. }
  27220. declare var Response: {
  27221. prototype: Response;
  27222. new(body?: BodyInit | null, init?: ResponseInit): Response;
  27223. error(): Response;
  27224. redirect(url: string | URL, status?: number): Response;
  27225. };
  27226. /** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */
  27227. interface SecurityPolicyViolationEvent extends Event {
  27228. readonly blockedURI: string;
  27229. readonly columnNumber: number;
  27230. readonly disposition: SecurityPolicyViolationEventDisposition;
  27231. readonly documentURI: string;
  27232. readonly effectiveDirective: string;
  27233. readonly lineNumber: number;
  27234. readonly originalPolicy: string;
  27235. readonly referrer: string;
  27236. readonly sample: string;
  27237. readonly sourceFile: string;
  27238. readonly statusCode: number;
  27239. readonly violatedDirective: string;
  27240. }
  27241. declare var SecurityPolicyViolationEvent: {
  27242. prototype: SecurityPolicyViolationEvent;
  27243. new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
  27244. };
  27245. interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
  27246. "statechange": Event;
  27247. }
  27248. /**
  27249. * 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.
  27250. * Available only in secure contexts.
  27251. */
  27252. interface ServiceWorker extends EventTarget, AbstractWorker {
  27253. onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
  27254. readonly scriptURL: string;
  27255. readonly state: ServiceWorkerState;
  27256. postMessage(message: any, transfer: Transferable[]): void;
  27257. postMessage(message: any, options?: StructuredSerializeOptions): void;
  27258. addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  27259. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  27260. removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  27261. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  27262. }
  27263. declare var ServiceWorker: {
  27264. prototype: ServiceWorker;
  27265. new(): ServiceWorker;
  27266. };
  27267. interface ServiceWorkerContainerEventMap {
  27268. "controllerchange": Event;
  27269. "message": MessageEvent;
  27270. "messageerror": MessageEvent;
  27271. }
  27272. /**
  27273. * 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.
  27274. * Available only in secure contexts.
  27275. */
  27276. interface ServiceWorkerContainer extends EventTarget {
  27277. readonly controller: ServiceWorker | null;
  27278. oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
  27279. onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
  27280. onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
  27281. readonly ready: Promise<ServiceWorkerRegistration>;
  27282. getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
  27283. getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
  27284. register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
  27285. startMessages(): void;
  27286. addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  27287. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  27288. removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  27289. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  27290. }
  27291. declare var ServiceWorkerContainer: {
  27292. prototype: ServiceWorkerContainer;
  27293. new(): ServiceWorkerContainer;
  27294. };
  27295. interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
  27296. "activate": ExtendableEvent;
  27297. "fetch": FetchEvent;
  27298. "install": ExtendableEvent;
  27299. "message": ExtendableMessageEvent;
  27300. "messageerror": MessageEvent;
  27301. "notificationclick": NotificationEvent;
  27302. "notificationclose": NotificationEvent;
  27303. "push": PushEvent;
  27304. }
  27305. /** This ServiceWorker API interface represents the global execution context of a service worker. */
  27306. interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
  27307. readonly clients: Clients;
  27308. onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
  27309. onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
  27310. oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
  27311. onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
  27312. onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
  27313. onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
  27314. onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
  27315. onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
  27316. readonly registration: ServiceWorkerRegistration;
  27317. skipWaiting(): Promise<void>;
  27318. addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  27319. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  27320. removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  27321. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  27322. }
  27323. declare var ServiceWorkerGlobalScope: {
  27324. prototype: ServiceWorkerGlobalScope;
  27325. new(): ServiceWorkerGlobalScope;
  27326. };
  27327. interface ServiceWorkerRegistrationEventMap {
  27328. "updatefound": Event;
  27329. }
  27330. /**
  27331. * 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.
  27332. * Available only in secure contexts.
  27333. */
  27334. interface ServiceWorkerRegistration extends EventTarget {
  27335. readonly active: ServiceWorker | null;
  27336. readonly installing: ServiceWorker | null;
  27337. onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
  27338. readonly pushManager: PushManager;
  27339. readonly scope: string;
  27340. readonly updateViaCache: ServiceWorkerUpdateViaCache;
  27341. readonly waiting: ServiceWorker | null;
  27342. getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
  27343. showNotification(title: string, options?: NotificationOptions): Promise<void>;
  27344. unregister(): Promise<boolean>;
  27345. update(): Promise<void>;
  27346. addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  27347. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  27348. removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  27349. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  27350. }
  27351. declare var ServiceWorkerRegistration: {
  27352. prototype: ServiceWorkerRegistration;
  27353. new(): ServiceWorkerRegistration;
  27354. };
  27355. interface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
  27356. "connect": MessageEvent;
  27357. }
  27358. interface SharedWorkerGlobalScope extends WorkerGlobalScope {
  27359. /** 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. */
  27360. readonly name: string;
  27361. onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null;
  27362. /** Aborts sharedWorkerGlobal. */
  27363. close(): void;
  27364. addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  27365. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  27366. removeEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  27367. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  27368. }
  27369. declare var SharedWorkerGlobalScope: {
  27370. prototype: SharedWorkerGlobalScope;
  27371. new(): SharedWorkerGlobalScope;
  27372. };
  27373. /** Available only in secure contexts. */
  27374. interface StorageManager {
  27375. estimate(): Promise<StorageEstimate>;
  27376. persisted(): Promise<boolean>;
  27377. }
  27378. declare var StorageManager: {
  27379. prototype: StorageManager;
  27380. new(): StorageManager;
  27381. };
  27382. /**
  27383. * 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).
  27384. * Available only in secure contexts.
  27385. */
  27386. interface SubtleCrypto {
  27387. decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
  27388. deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
  27389. deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
  27390. digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
  27391. encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
  27392. exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
  27393. exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
  27394. generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
  27395. generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
  27396. generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
  27397. importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
  27398. importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
  27399. sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
  27400. 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>;
  27401. verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
  27402. wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
  27403. }
  27404. declare var SubtleCrypto: {
  27405. prototype: SubtleCrypto;
  27406. new(): SubtleCrypto;
  27407. };
  27408. /** 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. */
  27409. interface TextDecoder extends TextDecoderCommon {
  27410. /**
  27411. * 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.
  27412. *
  27413. * \`\`\`
  27414. * var string = "", decoder = new TextDecoder(encoding), buffer;
  27415. * while(buffer = next_chunk()) {
  27416. * string += decoder.decode(buffer, {stream:true});
  27417. * }
  27418. * string += decoder.decode(); // end-of-queue
  27419. * \`\`\`
  27420. *
  27421. * If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
  27422. */
  27423. decode(input?: BufferSource, options?: TextDecodeOptions): string;
  27424. }
  27425. declare var TextDecoder: {
  27426. prototype: TextDecoder;
  27427. new(label?: string, options?: TextDecoderOptions): TextDecoder;
  27428. };
  27429. interface TextDecoderCommon {
  27430. /** Returns encoding's name, lowercased. */
  27431. readonly encoding: string;
  27432. /** Returns true if error mode is "fatal", otherwise false. */
  27433. readonly fatal: boolean;
  27434. /** Returns the value of ignore BOM. */
  27435. readonly ignoreBOM: boolean;
  27436. }
  27437. interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
  27438. readonly readable: ReadableStream<string>;
  27439. readonly writable: WritableStream<BufferSource>;
  27440. }
  27441. declare var TextDecoderStream: {
  27442. prototype: TextDecoderStream;
  27443. new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
  27444. };
  27445. /** 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. */
  27446. interface TextEncoder extends TextEncoderCommon {
  27447. /** Returns the result of running UTF-8's encoder. */
  27448. encode(input?: string): Uint8Array;
  27449. /** 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. */
  27450. encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
  27451. }
  27452. declare var TextEncoder: {
  27453. prototype: TextEncoder;
  27454. new(): TextEncoder;
  27455. };
  27456. interface TextEncoderCommon {
  27457. /** Returns "utf-8". */
  27458. readonly encoding: string;
  27459. }
  27460. interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
  27461. readonly readable: ReadableStream<Uint8Array>;
  27462. readonly writable: WritableStream<string>;
  27463. }
  27464. declare var TextEncoderStream: {
  27465. prototype: TextEncoderStream;
  27466. new(): TextEncoderStream;
  27467. };
  27468. /** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
  27469. interface TextMetrics {
  27470. /** Returns the measurement described below. */
  27471. readonly actualBoundingBoxAscent: number;
  27472. /** Returns the measurement described below. */
  27473. readonly actualBoundingBoxDescent: number;
  27474. /** Returns the measurement described below. */
  27475. readonly actualBoundingBoxLeft: number;
  27476. /** Returns the measurement described below. */
  27477. readonly actualBoundingBoxRight: number;
  27478. /** Returns the measurement described below. */
  27479. readonly fontBoundingBoxAscent: number;
  27480. /** Returns the measurement described below. */
  27481. readonly fontBoundingBoxDescent: number;
  27482. /** Returns the measurement described below. */
  27483. readonly width: number;
  27484. }
  27485. declare var TextMetrics: {
  27486. prototype: TextMetrics;
  27487. new(): TextMetrics;
  27488. };
  27489. interface TransformStream<I = any, O = any> {
  27490. readonly readable: ReadableStream<O>;
  27491. readonly writable: WritableStream<I>;
  27492. }
  27493. declare var TransformStream: {
  27494. prototype: TransformStream;
  27495. new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
  27496. };
  27497. interface TransformStreamDefaultController<O = any> {
  27498. readonly desiredSize: number | null;
  27499. enqueue(chunk?: O): void;
  27500. error(reason?: any): void;
  27501. terminate(): void;
  27502. }
  27503. declare var TransformStreamDefaultController: {
  27504. prototype: TransformStreamDefaultController;
  27505. new(): TransformStreamDefaultController;
  27506. };
  27507. /** The URL interface represents an object providing static methods used for creating object URLs. */
  27508. interface URL {
  27509. hash: string;
  27510. host: string;
  27511. hostname: string;
  27512. href: string;
  27513. toString(): string;
  27514. readonly origin: string;
  27515. password: string;
  27516. pathname: string;
  27517. port: string;
  27518. protocol: string;
  27519. search: string;
  27520. readonly searchParams: URLSearchParams;
  27521. username: string;
  27522. toJSON(): string;
  27523. }
  27524. declare var URL: {
  27525. prototype: URL;
  27526. new(url: string | URL, base?: string | URL): URL;
  27527. createObjectURL(obj: Blob): string;
  27528. revokeObjectURL(url: string): void;
  27529. };
  27530. interface URLSearchParams {
  27531. /** Appends a specified key/value pair as a new search parameter. */
  27532. append(name: string, value: string): void;
  27533. /** Deletes the given search parameter, and its associated value, from the list of all search parameters. */
  27534. delete(name: string): void;
  27535. /** Returns the first value associated to the given search parameter. */
  27536. get(name: string): string | null;
  27537. /** Returns all the values association with a given search parameter. */
  27538. getAll(name: string): string[];
  27539. /** Returns a Boolean indicating if such a search parameter exists. */
  27540. has(name: string): boolean;
  27541. /** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */
  27542. set(name: string, value: string): void;
  27543. sort(): void;
  27544. /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
  27545. toString(): string;
  27546. forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
  27547. }
  27548. declare var URLSearchParams: {
  27549. prototype: URLSearchParams;
  27550. new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
  27551. toString(): string;
  27552. };
  27553. interface WEBGL_color_buffer_float {
  27554. readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
  27555. readonly RGBA32F_EXT: GLenum;
  27556. readonly UNSIGNED_NORMALIZED_EXT: GLenum;
  27557. }
  27558. interface WEBGL_compressed_texture_astc {
  27559. getSupportedProfiles(): string[];
  27560. readonly COMPRESSED_RGBA_ASTC_10x10_KHR: GLenum;
  27561. readonly COMPRESSED_RGBA_ASTC_10x5_KHR: GLenum;
  27562. readonly COMPRESSED_RGBA_ASTC_10x6_KHR: GLenum;
  27563. readonly COMPRESSED_RGBA_ASTC_10x8_KHR: GLenum;
  27564. readonly COMPRESSED_RGBA_ASTC_12x10_KHR: GLenum;
  27565. readonly COMPRESSED_RGBA_ASTC_12x12_KHR: GLenum;
  27566. readonly COMPRESSED_RGBA_ASTC_4x4_KHR: GLenum;
  27567. readonly COMPRESSED_RGBA_ASTC_5x4_KHR: GLenum;
  27568. readonly COMPRESSED_RGBA_ASTC_5x5_KHR: GLenum;
  27569. readonly COMPRESSED_RGBA_ASTC_6x5_KHR: GLenum;
  27570. readonly COMPRESSED_RGBA_ASTC_6x6_KHR: GLenum;
  27571. readonly COMPRESSED_RGBA_ASTC_8x5_KHR: GLenum;
  27572. readonly COMPRESSED_RGBA_ASTC_8x6_KHR: GLenum;
  27573. readonly COMPRESSED_RGBA_ASTC_8x8_KHR: GLenum;
  27574. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: GLenum;
  27575. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: GLenum;
  27576. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: GLenum;
  27577. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: GLenum;
  27578. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: GLenum;
  27579. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: GLenum;
  27580. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: GLenum;
  27581. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: GLenum;
  27582. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: GLenum;
  27583. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: GLenum;
  27584. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: GLenum;
  27585. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: GLenum;
  27586. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: GLenum;
  27587. readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum;
  27588. }
  27589. interface WEBGL_compressed_texture_etc {
  27590. readonly COMPRESSED_R11_EAC: GLenum;
  27591. readonly COMPRESSED_RG11_EAC: GLenum;
  27592. readonly COMPRESSED_RGB8_ETC2: GLenum;
  27593. readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
  27594. readonly COMPRESSED_RGBA8_ETC2_EAC: GLenum;
  27595. readonly COMPRESSED_SIGNED_R11_EAC: GLenum;
  27596. readonly COMPRESSED_SIGNED_RG11_EAC: GLenum;
  27597. readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: GLenum;
  27598. readonly COMPRESSED_SRGB8_ETC2: GLenum;
  27599. readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
  27600. }
  27601. interface WEBGL_compressed_texture_etc1 {
  27602. readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
  27603. }
  27604. interface WEBGL_compressed_texture_pvrtc {
  27605. readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
  27606. readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
  27607. readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
  27608. readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
  27609. }
  27610. /** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
  27611. interface WEBGL_compressed_texture_s3tc {
  27612. readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
  27613. readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: GLenum;
  27614. readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: GLenum;
  27615. readonly COMPRESSED_RGB_S3TC_DXT1_EXT: GLenum;
  27616. }
  27617. interface WEBGL_compressed_texture_s3tc_srgb {
  27618. readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: GLenum;
  27619. readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: GLenum;
  27620. readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: GLenum;
  27621. readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: GLenum;
  27622. }
  27623. /** 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. */
  27624. interface WEBGL_debug_renderer_info {
  27625. readonly UNMASKED_RENDERER_WEBGL: GLenum;
  27626. readonly UNMASKED_VENDOR_WEBGL: GLenum;
  27627. }
  27628. interface WEBGL_debug_shaders {
  27629. getTranslatedShaderSource(shader: WebGLShader): string;
  27630. }
  27631. /** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */
  27632. interface WEBGL_depth_texture {
  27633. readonly UNSIGNED_INT_24_8_WEBGL: GLenum;
  27634. }
  27635. interface WEBGL_draw_buffers {
  27636. drawBuffersWEBGL(buffers: GLenum[]): void;
  27637. readonly COLOR_ATTACHMENT0_WEBGL: GLenum;
  27638. readonly COLOR_ATTACHMENT10_WEBGL: GLenum;
  27639. readonly COLOR_ATTACHMENT11_WEBGL: GLenum;
  27640. readonly COLOR_ATTACHMENT12_WEBGL: GLenum;
  27641. readonly COLOR_ATTACHMENT13_WEBGL: GLenum;
  27642. readonly COLOR_ATTACHMENT14_WEBGL: GLenum;
  27643. readonly COLOR_ATTACHMENT15_WEBGL: GLenum;
  27644. readonly COLOR_ATTACHMENT1_WEBGL: GLenum;
  27645. readonly COLOR_ATTACHMENT2_WEBGL: GLenum;
  27646. readonly COLOR_ATTACHMENT3_WEBGL: GLenum;
  27647. readonly COLOR_ATTACHMENT4_WEBGL: GLenum;
  27648. readonly COLOR_ATTACHMENT5_WEBGL: GLenum;
  27649. readonly COLOR_ATTACHMENT6_WEBGL: GLenum;
  27650. readonly COLOR_ATTACHMENT7_WEBGL: GLenum;
  27651. readonly COLOR_ATTACHMENT8_WEBGL: GLenum;
  27652. readonly COLOR_ATTACHMENT9_WEBGL: GLenum;
  27653. readonly DRAW_BUFFER0_WEBGL: GLenum;
  27654. readonly DRAW_BUFFER10_WEBGL: GLenum;
  27655. readonly DRAW_BUFFER11_WEBGL: GLenum;
  27656. readonly DRAW_BUFFER12_WEBGL: GLenum;
  27657. readonly DRAW_BUFFER13_WEBGL: GLenum;
  27658. readonly DRAW_BUFFER14_WEBGL: GLenum;
  27659. readonly DRAW_BUFFER15_WEBGL: GLenum;
  27660. readonly DRAW_BUFFER1_WEBGL: GLenum;
  27661. readonly DRAW_BUFFER2_WEBGL: GLenum;
  27662. readonly DRAW_BUFFER3_WEBGL: GLenum;
  27663. readonly DRAW_BUFFER4_WEBGL: GLenum;
  27664. readonly DRAW_BUFFER5_WEBGL: GLenum;
  27665. readonly DRAW_BUFFER6_WEBGL: GLenum;
  27666. readonly DRAW_BUFFER7_WEBGL: GLenum;
  27667. readonly DRAW_BUFFER8_WEBGL: GLenum;
  27668. readonly DRAW_BUFFER9_WEBGL: GLenum;
  27669. readonly MAX_COLOR_ATTACHMENTS_WEBGL: GLenum;
  27670. readonly MAX_DRAW_BUFFERS_WEBGL: GLenum;
  27671. }
  27672. interface WEBGL_lose_context {
  27673. loseContext(): void;
  27674. restoreContext(): void;
  27675. }
  27676. interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
  27677. }
  27678. declare var WebGL2RenderingContext: {
  27679. prototype: WebGL2RenderingContext;
  27680. new(): WebGL2RenderingContext;
  27681. readonly ACTIVE_UNIFORM_BLOCKS: GLenum;
  27682. readonly ALREADY_SIGNALED: GLenum;
  27683. readonly ANY_SAMPLES_PASSED: GLenum;
  27684. readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;
  27685. readonly COLOR: GLenum;
  27686. readonly COLOR_ATTACHMENT1: GLenum;
  27687. readonly COLOR_ATTACHMENT10: GLenum;
  27688. readonly COLOR_ATTACHMENT11: GLenum;
  27689. readonly COLOR_ATTACHMENT12: GLenum;
  27690. readonly COLOR_ATTACHMENT13: GLenum;
  27691. readonly COLOR_ATTACHMENT14: GLenum;
  27692. readonly COLOR_ATTACHMENT15: GLenum;
  27693. readonly COLOR_ATTACHMENT2: GLenum;
  27694. readonly COLOR_ATTACHMENT3: GLenum;
  27695. readonly COLOR_ATTACHMENT4: GLenum;
  27696. readonly COLOR_ATTACHMENT5: GLenum;
  27697. readonly COLOR_ATTACHMENT6: GLenum;
  27698. readonly COLOR_ATTACHMENT7: GLenum;
  27699. readonly COLOR_ATTACHMENT8: GLenum;
  27700. readonly COLOR_ATTACHMENT9: GLenum;
  27701. readonly COMPARE_REF_TO_TEXTURE: GLenum;
  27702. readonly CONDITION_SATISFIED: GLenum;
  27703. readonly COPY_READ_BUFFER: GLenum;
  27704. readonly COPY_READ_BUFFER_BINDING: GLenum;
  27705. readonly COPY_WRITE_BUFFER: GLenum;
  27706. readonly COPY_WRITE_BUFFER_BINDING: GLenum;
  27707. readonly CURRENT_QUERY: GLenum;
  27708. readonly DEPTH: GLenum;
  27709. readonly DEPTH24_STENCIL8: GLenum;
  27710. readonly DEPTH32F_STENCIL8: GLenum;
  27711. readonly DEPTH_COMPONENT24: GLenum;
  27712. readonly DEPTH_COMPONENT32F: GLenum;
  27713. readonly DRAW_BUFFER0: GLenum;
  27714. readonly DRAW_BUFFER1: GLenum;
  27715. readonly DRAW_BUFFER10: GLenum;
  27716. readonly DRAW_BUFFER11: GLenum;
  27717. readonly DRAW_BUFFER12: GLenum;
  27718. readonly DRAW_BUFFER13: GLenum;
  27719. readonly DRAW_BUFFER14: GLenum;
  27720. readonly DRAW_BUFFER15: GLenum;
  27721. readonly DRAW_BUFFER2: GLenum;
  27722. readonly DRAW_BUFFER3: GLenum;
  27723. readonly DRAW_BUFFER4: GLenum;
  27724. readonly DRAW_BUFFER5: GLenum;
  27725. readonly DRAW_BUFFER6: GLenum;
  27726. readonly DRAW_BUFFER7: GLenum;
  27727. readonly DRAW_BUFFER8: GLenum;
  27728. readonly DRAW_BUFFER9: GLenum;
  27729. readonly DRAW_FRAMEBUFFER: GLenum;
  27730. readonly DRAW_FRAMEBUFFER_BINDING: GLenum;
  27731. readonly DYNAMIC_COPY: GLenum;
  27732. readonly DYNAMIC_READ: GLenum;
  27733. readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;
  27734. readonly FLOAT_MAT2x3: GLenum;
  27735. readonly FLOAT_MAT2x4: GLenum;
  27736. readonly FLOAT_MAT3x2: GLenum;
  27737. readonly FLOAT_MAT3x4: GLenum;
  27738. readonly FLOAT_MAT4x2: GLenum;
  27739. readonly FLOAT_MAT4x3: GLenum;
  27740. readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;
  27741. readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;
  27742. readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;
  27743. readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;
  27744. readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;
  27745. readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;
  27746. readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;
  27747. readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;
  27748. readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;
  27749. readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;
  27750. readonly FRAMEBUFFER_DEFAULT: GLenum;
  27751. readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;
  27752. readonly HALF_FLOAT: GLenum;
  27753. readonly INTERLEAVED_ATTRIBS: GLenum;
  27754. readonly INT_2_10_10_10_REV: GLenum;
  27755. readonly INT_SAMPLER_2D: GLenum;
  27756. readonly INT_SAMPLER_2D_ARRAY: GLenum;
  27757. readonly INT_SAMPLER_3D: GLenum;
  27758. readonly INT_SAMPLER_CUBE: GLenum;
  27759. readonly INVALID_INDEX: GLenum;
  27760. readonly MAX: GLenum;
  27761. readonly MAX_3D_TEXTURE_SIZE: GLenum;
  27762. readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;
  27763. readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;
  27764. readonly MAX_COLOR_ATTACHMENTS: GLenum;
  27765. readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
  27766. readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;
  27767. readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;
  27768. readonly MAX_DRAW_BUFFERS: GLenum;
  27769. readonly MAX_ELEMENTS_INDICES: GLenum;
  27770. readonly MAX_ELEMENTS_VERTICES: GLenum;
  27771. readonly MAX_ELEMENT_INDEX: GLenum;
  27772. readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;
  27773. readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;
  27774. readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
  27775. readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;
  27776. readonly MAX_SAMPLES: GLenum;
  27777. readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;
  27778. readonly MAX_TEXTURE_LOD_BIAS: GLenum;
  27779. readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;
  27780. readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;
  27781. readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;
  27782. readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;
  27783. readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;
  27784. readonly MAX_VARYING_COMPONENTS: GLenum;
  27785. readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;
  27786. readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;
  27787. readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;
  27788. readonly MIN: GLenum;
  27789. readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;
  27790. readonly OBJECT_TYPE: GLenum;
  27791. readonly PACK_ROW_LENGTH: GLenum;
  27792. readonly PACK_SKIP_PIXELS: GLenum;
  27793. readonly PACK_SKIP_ROWS: GLenum;
  27794. readonly PIXEL_PACK_BUFFER: GLenum;
  27795. readonly PIXEL_PACK_BUFFER_BINDING: GLenum;
  27796. readonly PIXEL_UNPACK_BUFFER: GLenum;
  27797. readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;
  27798. readonly QUERY_RESULT: GLenum;
  27799. readonly QUERY_RESULT_AVAILABLE: GLenum;
  27800. readonly R11F_G11F_B10F: GLenum;
  27801. readonly R16F: GLenum;
  27802. readonly R16I: GLenum;
  27803. readonly R16UI: GLenum;
  27804. readonly R32F: GLenum;
  27805. readonly R32I: GLenum;
  27806. readonly R32UI: GLenum;
  27807. readonly R8: GLenum;
  27808. readonly R8I: GLenum;
  27809. readonly R8UI: GLenum;
  27810. readonly R8_SNORM: GLenum;
  27811. readonly RASTERIZER_DISCARD: GLenum;
  27812. readonly READ_BUFFER: GLenum;
  27813. readonly READ_FRAMEBUFFER: GLenum;
  27814. readonly READ_FRAMEBUFFER_BINDING: GLenum;
  27815. readonly RED: GLenum;
  27816. readonly RED_INTEGER: GLenum;
  27817. readonly RENDERBUFFER_SAMPLES: GLenum;
  27818. readonly RG: GLenum;
  27819. readonly RG16F: GLenum;
  27820. readonly RG16I: GLenum;
  27821. readonly RG16UI: GLenum;
  27822. readonly RG32F: GLenum;
  27823. readonly RG32I: GLenum;
  27824. readonly RG32UI: GLenum;
  27825. readonly RG8: GLenum;
  27826. readonly RG8I: GLenum;
  27827. readonly RG8UI: GLenum;
  27828. readonly RG8_SNORM: GLenum;
  27829. readonly RGB10_A2: GLenum;
  27830. readonly RGB10_A2UI: GLenum;
  27831. readonly RGB16F: GLenum;
  27832. readonly RGB16I: GLenum;
  27833. readonly RGB16UI: GLenum;
  27834. readonly RGB32F: GLenum;
  27835. readonly RGB32I: GLenum;
  27836. readonly RGB32UI: GLenum;
  27837. readonly RGB8: GLenum;
  27838. readonly RGB8I: GLenum;
  27839. readonly RGB8UI: GLenum;
  27840. readonly RGB8_SNORM: GLenum;
  27841. readonly RGB9_E5: GLenum;
  27842. readonly RGBA16F: GLenum;
  27843. readonly RGBA16I: GLenum;
  27844. readonly RGBA16UI: GLenum;
  27845. readonly RGBA32F: GLenum;
  27846. readonly RGBA32I: GLenum;
  27847. readonly RGBA32UI: GLenum;
  27848. readonly RGBA8: GLenum;
  27849. readonly RGBA8I: GLenum;
  27850. readonly RGBA8UI: GLenum;
  27851. readonly RGBA8_SNORM: GLenum;
  27852. readonly RGBA_INTEGER: GLenum;
  27853. readonly RGB_INTEGER: GLenum;
  27854. readonly RG_INTEGER: GLenum;
  27855. readonly SAMPLER_2D_ARRAY: GLenum;
  27856. readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;
  27857. readonly SAMPLER_2D_SHADOW: GLenum;
  27858. readonly SAMPLER_3D: GLenum;
  27859. readonly SAMPLER_BINDING: GLenum;
  27860. readonly SAMPLER_CUBE_SHADOW: GLenum;
  27861. readonly SEPARATE_ATTRIBS: GLenum;
  27862. readonly SIGNALED: GLenum;
  27863. readonly SIGNED_NORMALIZED: GLenum;
  27864. readonly SRGB: GLenum;
  27865. readonly SRGB8: GLenum;
  27866. readonly SRGB8_ALPHA8: GLenum;
  27867. readonly STATIC_COPY: GLenum;
  27868. readonly STATIC_READ: GLenum;
  27869. readonly STENCIL: GLenum;
  27870. readonly STREAM_COPY: GLenum;
  27871. readonly STREAM_READ: GLenum;
  27872. readonly SYNC_CONDITION: GLenum;
  27873. readonly SYNC_FENCE: GLenum;
  27874. readonly SYNC_FLAGS: GLenum;
  27875. readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;
  27876. readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;
  27877. readonly SYNC_STATUS: GLenum;
  27878. readonly TEXTURE_2D_ARRAY: GLenum;
  27879. readonly TEXTURE_3D: GLenum;
  27880. readonly TEXTURE_BASE_LEVEL: GLenum;
  27881. readonly TEXTURE_BINDING_2D_ARRAY: GLenum;
  27882. readonly TEXTURE_BINDING_3D: GLenum;
  27883. readonly TEXTURE_COMPARE_FUNC: GLenum;
  27884. readonly TEXTURE_COMPARE_MODE: GLenum;
  27885. readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;
  27886. readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;
  27887. readonly TEXTURE_MAX_LEVEL: GLenum;
  27888. readonly TEXTURE_MAX_LOD: GLenum;
  27889. readonly TEXTURE_MIN_LOD: GLenum;
  27890. readonly TEXTURE_WRAP_R: GLenum;
  27891. readonly TIMEOUT_EXPIRED: GLenum;
  27892. readonly TIMEOUT_IGNORED: GLint64;
  27893. readonly TRANSFORM_FEEDBACK: GLenum;
  27894. readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;
  27895. readonly TRANSFORM_FEEDBACK_BINDING: GLenum;
  27896. readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;
  27897. readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;
  27898. readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;
  27899. readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;
  27900. readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;
  27901. readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;
  27902. readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;
  27903. readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;
  27904. readonly UNIFORM_ARRAY_STRIDE: GLenum;
  27905. readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;
  27906. readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;
  27907. readonly UNIFORM_BLOCK_BINDING: GLenum;
  27908. readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;
  27909. readonly UNIFORM_BLOCK_INDEX: GLenum;
  27910. readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;
  27911. readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;
  27912. readonly UNIFORM_BUFFER: GLenum;
  27913. readonly UNIFORM_BUFFER_BINDING: GLenum;
  27914. readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;
  27915. readonly UNIFORM_BUFFER_SIZE: GLenum;
  27916. readonly UNIFORM_BUFFER_START: GLenum;
  27917. readonly UNIFORM_IS_ROW_MAJOR: GLenum;
  27918. readonly UNIFORM_MATRIX_STRIDE: GLenum;
  27919. readonly UNIFORM_OFFSET: GLenum;
  27920. readonly UNIFORM_SIZE: GLenum;
  27921. readonly UNIFORM_TYPE: GLenum;
  27922. readonly UNPACK_IMAGE_HEIGHT: GLenum;
  27923. readonly UNPACK_ROW_LENGTH: GLenum;
  27924. readonly UNPACK_SKIP_IMAGES: GLenum;
  27925. readonly UNPACK_SKIP_PIXELS: GLenum;
  27926. readonly UNPACK_SKIP_ROWS: GLenum;
  27927. readonly UNSIGNALED: GLenum;
  27928. readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;
  27929. readonly UNSIGNED_INT_24_8: GLenum;
  27930. readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;
  27931. readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;
  27932. readonly UNSIGNED_INT_SAMPLER_2D: GLenum;
  27933. readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;
  27934. readonly UNSIGNED_INT_SAMPLER_3D: GLenum;
  27935. readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;
  27936. readonly UNSIGNED_INT_VEC2: GLenum;
  27937. readonly UNSIGNED_INT_VEC3: GLenum;
  27938. readonly UNSIGNED_INT_VEC4: GLenum;
  27939. readonly UNSIGNED_NORMALIZED: GLenum;
  27940. readonly VERTEX_ARRAY_BINDING: GLenum;
  27941. readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;
  27942. readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;
  27943. readonly WAIT_FAILED: GLenum;
  27944. readonly ACTIVE_ATTRIBUTES: GLenum;
  27945. readonly ACTIVE_TEXTURE: GLenum;
  27946. readonly ACTIVE_UNIFORMS: GLenum;
  27947. readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
  27948. readonly ALIASED_POINT_SIZE_RANGE: GLenum;
  27949. readonly ALPHA: GLenum;
  27950. readonly ALPHA_BITS: GLenum;
  27951. readonly ALWAYS: GLenum;
  27952. readonly ARRAY_BUFFER: GLenum;
  27953. readonly ARRAY_BUFFER_BINDING: GLenum;
  27954. readonly ATTACHED_SHADERS: GLenum;
  27955. readonly BACK: GLenum;
  27956. readonly BLEND: GLenum;
  27957. readonly BLEND_COLOR: GLenum;
  27958. readonly BLEND_DST_ALPHA: GLenum;
  27959. readonly BLEND_DST_RGB: GLenum;
  27960. readonly BLEND_EQUATION: GLenum;
  27961. readonly BLEND_EQUATION_ALPHA: GLenum;
  27962. readonly BLEND_EQUATION_RGB: GLenum;
  27963. readonly BLEND_SRC_ALPHA: GLenum;
  27964. readonly BLEND_SRC_RGB: GLenum;
  27965. readonly BLUE_BITS: GLenum;
  27966. readonly BOOL: GLenum;
  27967. readonly BOOL_VEC2: GLenum;
  27968. readonly BOOL_VEC3: GLenum;
  27969. readonly BOOL_VEC4: GLenum;
  27970. readonly BROWSER_DEFAULT_WEBGL: GLenum;
  27971. readonly BUFFER_SIZE: GLenum;
  27972. readonly BUFFER_USAGE: GLenum;
  27973. readonly BYTE: GLenum;
  27974. readonly CCW: GLenum;
  27975. readonly CLAMP_TO_EDGE: GLenum;
  27976. readonly COLOR_ATTACHMENT0: GLenum;
  27977. readonly COLOR_BUFFER_BIT: GLenum;
  27978. readonly COLOR_CLEAR_VALUE: GLenum;
  27979. readonly COLOR_WRITEMASK: GLenum;
  27980. readonly COMPILE_STATUS: GLenum;
  27981. readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
  27982. readonly CONSTANT_ALPHA: GLenum;
  27983. readonly CONSTANT_COLOR: GLenum;
  27984. readonly CONTEXT_LOST_WEBGL: GLenum;
  27985. readonly CULL_FACE: GLenum;
  27986. readonly CULL_FACE_MODE: GLenum;
  27987. readonly CURRENT_PROGRAM: GLenum;
  27988. readonly CURRENT_VERTEX_ATTRIB: GLenum;
  27989. readonly CW: GLenum;
  27990. readonly DECR: GLenum;
  27991. readonly DECR_WRAP: GLenum;
  27992. readonly DELETE_STATUS: GLenum;
  27993. readonly DEPTH_ATTACHMENT: GLenum;
  27994. readonly DEPTH_BITS: GLenum;
  27995. readonly DEPTH_BUFFER_BIT: GLenum;
  27996. readonly DEPTH_CLEAR_VALUE: GLenum;
  27997. readonly DEPTH_COMPONENT: GLenum;
  27998. readonly DEPTH_COMPONENT16: GLenum;
  27999. readonly DEPTH_FUNC: GLenum;
  28000. readonly DEPTH_RANGE: GLenum;
  28001. readonly DEPTH_STENCIL: GLenum;
  28002. readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
  28003. readonly DEPTH_TEST: GLenum;
  28004. readonly DEPTH_WRITEMASK: GLenum;
  28005. readonly DITHER: GLenum;
  28006. readonly DONT_CARE: GLenum;
  28007. readonly DST_ALPHA: GLenum;
  28008. readonly DST_COLOR: GLenum;
  28009. readonly DYNAMIC_DRAW: GLenum;
  28010. readonly ELEMENT_ARRAY_BUFFER: GLenum;
  28011. readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
  28012. readonly EQUAL: GLenum;
  28013. readonly FASTEST: GLenum;
  28014. readonly FLOAT: GLenum;
  28015. readonly FLOAT_MAT2: GLenum;
  28016. readonly FLOAT_MAT3: GLenum;
  28017. readonly FLOAT_MAT4: GLenum;
  28018. readonly FLOAT_VEC2: GLenum;
  28019. readonly FLOAT_VEC3: GLenum;
  28020. readonly FLOAT_VEC4: GLenum;
  28021. readonly FRAGMENT_SHADER: GLenum;
  28022. readonly FRAMEBUFFER: GLenum;
  28023. readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
  28024. readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
  28025. readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
  28026. readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
  28027. readonly FRAMEBUFFER_BINDING: GLenum;
  28028. readonly FRAMEBUFFER_COMPLETE: GLenum;
  28029. readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
  28030. readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
  28031. readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
  28032. readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
  28033. readonly FRONT: GLenum;
  28034. readonly FRONT_AND_BACK: GLenum;
  28035. readonly FRONT_FACE: GLenum;
  28036. readonly FUNC_ADD: GLenum;
  28037. readonly FUNC_REVERSE_SUBTRACT: GLenum;
  28038. readonly FUNC_SUBTRACT: GLenum;
  28039. readonly GENERATE_MIPMAP_HINT: GLenum;
  28040. readonly GEQUAL: GLenum;
  28041. readonly GREATER: GLenum;
  28042. readonly GREEN_BITS: GLenum;
  28043. readonly HIGH_FLOAT: GLenum;
  28044. readonly HIGH_INT: GLenum;
  28045. readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
  28046. readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
  28047. readonly INCR: GLenum;
  28048. readonly INCR_WRAP: GLenum;
  28049. readonly INT: GLenum;
  28050. readonly INT_VEC2: GLenum;
  28051. readonly INT_VEC3: GLenum;
  28052. readonly INT_VEC4: GLenum;
  28053. readonly INVALID_ENUM: GLenum;
  28054. readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
  28055. readonly INVALID_OPERATION: GLenum;
  28056. readonly INVALID_VALUE: GLenum;
  28057. readonly INVERT: GLenum;
  28058. readonly KEEP: GLenum;
  28059. readonly LEQUAL: GLenum;
  28060. readonly LESS: GLenum;
  28061. readonly LINEAR: GLenum;
  28062. readonly LINEAR_MIPMAP_LINEAR: GLenum;
  28063. readonly LINEAR_MIPMAP_NEAREST: GLenum;
  28064. readonly LINES: GLenum;
  28065. readonly LINE_LOOP: GLenum;
  28066. readonly LINE_STRIP: GLenum;
  28067. readonly LINE_WIDTH: GLenum;
  28068. readonly LINK_STATUS: GLenum;
  28069. readonly LOW_FLOAT: GLenum;
  28070. readonly LOW_INT: GLenum;
  28071. readonly LUMINANCE: GLenum;
  28072. readonly LUMINANCE_ALPHA: GLenum;
  28073. readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
  28074. readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
  28075. readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
  28076. readonly MAX_RENDERBUFFER_SIZE: GLenum;
  28077. readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
  28078. readonly MAX_TEXTURE_SIZE: GLenum;
  28079. readonly MAX_VARYING_VECTORS: GLenum;
  28080. readonly MAX_VERTEX_ATTRIBS: GLenum;
  28081. readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
  28082. readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
  28083. readonly MAX_VIEWPORT_DIMS: GLenum;
  28084. readonly MEDIUM_FLOAT: GLenum;
  28085. readonly MEDIUM_INT: GLenum;
  28086. readonly MIRRORED_REPEAT: GLenum;
  28087. readonly NEAREST: GLenum;
  28088. readonly NEAREST_MIPMAP_LINEAR: GLenum;
  28089. readonly NEAREST_MIPMAP_NEAREST: GLenum;
  28090. readonly NEVER: GLenum;
  28091. readonly NICEST: GLenum;
  28092. readonly NONE: GLenum;
  28093. readonly NOTEQUAL: GLenum;
  28094. readonly NO_ERROR: GLenum;
  28095. readonly ONE: GLenum;
  28096. readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
  28097. readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
  28098. readonly ONE_MINUS_DST_ALPHA: GLenum;
  28099. readonly ONE_MINUS_DST_COLOR: GLenum;
  28100. readonly ONE_MINUS_SRC_ALPHA: GLenum;
  28101. readonly ONE_MINUS_SRC_COLOR: GLenum;
  28102. readonly OUT_OF_MEMORY: GLenum;
  28103. readonly PACK_ALIGNMENT: GLenum;
  28104. readonly POINTS: GLenum;
  28105. readonly POLYGON_OFFSET_FACTOR: GLenum;
  28106. readonly POLYGON_OFFSET_FILL: GLenum;
  28107. readonly POLYGON_OFFSET_UNITS: GLenum;
  28108. readonly RED_BITS: GLenum;
  28109. readonly RENDERBUFFER: GLenum;
  28110. readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
  28111. readonly RENDERBUFFER_BINDING: GLenum;
  28112. readonly RENDERBUFFER_BLUE_SIZE: GLenum;
  28113. readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
  28114. readonly RENDERBUFFER_GREEN_SIZE: GLenum;
  28115. readonly RENDERBUFFER_HEIGHT: GLenum;
  28116. readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
  28117. readonly RENDERBUFFER_RED_SIZE: GLenum;
  28118. readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
  28119. readonly RENDERBUFFER_WIDTH: GLenum;
  28120. readonly RENDERER: GLenum;
  28121. readonly REPEAT: GLenum;
  28122. readonly REPLACE: GLenum;
  28123. readonly RGB: GLenum;
  28124. readonly RGB565: GLenum;
  28125. readonly RGB5_A1: GLenum;
  28126. readonly RGBA: GLenum;
  28127. readonly RGBA4: GLenum;
  28128. readonly SAMPLER_2D: GLenum;
  28129. readonly SAMPLER_CUBE: GLenum;
  28130. readonly SAMPLES: GLenum;
  28131. readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
  28132. readonly SAMPLE_BUFFERS: GLenum;
  28133. readonly SAMPLE_COVERAGE: GLenum;
  28134. readonly SAMPLE_COVERAGE_INVERT: GLenum;
  28135. readonly SAMPLE_COVERAGE_VALUE: GLenum;
  28136. readonly SCISSOR_BOX: GLenum;
  28137. readonly SCISSOR_TEST: GLenum;
  28138. readonly SHADER_TYPE: GLenum;
  28139. readonly SHADING_LANGUAGE_VERSION: GLenum;
  28140. readonly SHORT: GLenum;
  28141. readonly SRC_ALPHA: GLenum;
  28142. readonly SRC_ALPHA_SATURATE: GLenum;
  28143. readonly SRC_COLOR: GLenum;
  28144. readonly STATIC_DRAW: GLenum;
  28145. readonly STENCIL_ATTACHMENT: GLenum;
  28146. readonly STENCIL_BACK_FAIL: GLenum;
  28147. readonly STENCIL_BACK_FUNC: GLenum;
  28148. readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
  28149. readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
  28150. readonly STENCIL_BACK_REF: GLenum;
  28151. readonly STENCIL_BACK_VALUE_MASK: GLenum;
  28152. readonly STENCIL_BACK_WRITEMASK: GLenum;
  28153. readonly STENCIL_BITS: GLenum;
  28154. readonly STENCIL_BUFFER_BIT: GLenum;
  28155. readonly STENCIL_CLEAR_VALUE: GLenum;
  28156. readonly STENCIL_FAIL: GLenum;
  28157. readonly STENCIL_FUNC: GLenum;
  28158. readonly STENCIL_INDEX8: GLenum;
  28159. readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
  28160. readonly STENCIL_PASS_DEPTH_PASS: GLenum;
  28161. readonly STENCIL_REF: GLenum;
  28162. readonly STENCIL_TEST: GLenum;
  28163. readonly STENCIL_VALUE_MASK: GLenum;
  28164. readonly STENCIL_WRITEMASK: GLenum;
  28165. readonly STREAM_DRAW: GLenum;
  28166. readonly SUBPIXEL_BITS: GLenum;
  28167. readonly TEXTURE: GLenum;
  28168. readonly TEXTURE0: GLenum;
  28169. readonly TEXTURE1: GLenum;
  28170. readonly TEXTURE10: GLenum;
  28171. readonly TEXTURE11: GLenum;
  28172. readonly TEXTURE12: GLenum;
  28173. readonly TEXTURE13: GLenum;
  28174. readonly TEXTURE14: GLenum;
  28175. readonly TEXTURE15: GLenum;
  28176. readonly TEXTURE16: GLenum;
  28177. readonly TEXTURE17: GLenum;
  28178. readonly TEXTURE18: GLenum;
  28179. readonly TEXTURE19: GLenum;
  28180. readonly TEXTURE2: GLenum;
  28181. readonly TEXTURE20: GLenum;
  28182. readonly TEXTURE21: GLenum;
  28183. readonly TEXTURE22: GLenum;
  28184. readonly TEXTURE23: GLenum;
  28185. readonly TEXTURE24: GLenum;
  28186. readonly TEXTURE25: GLenum;
  28187. readonly TEXTURE26: GLenum;
  28188. readonly TEXTURE27: GLenum;
  28189. readonly TEXTURE28: GLenum;
  28190. readonly TEXTURE29: GLenum;
  28191. readonly TEXTURE3: GLenum;
  28192. readonly TEXTURE30: GLenum;
  28193. readonly TEXTURE31: GLenum;
  28194. readonly TEXTURE4: GLenum;
  28195. readonly TEXTURE5: GLenum;
  28196. readonly TEXTURE6: GLenum;
  28197. readonly TEXTURE7: GLenum;
  28198. readonly TEXTURE8: GLenum;
  28199. readonly TEXTURE9: GLenum;
  28200. readonly TEXTURE_2D: GLenum;
  28201. readonly TEXTURE_BINDING_2D: GLenum;
  28202. readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
  28203. readonly TEXTURE_CUBE_MAP: GLenum;
  28204. readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
  28205. readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
  28206. readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
  28207. readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
  28208. readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
  28209. readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
  28210. readonly TEXTURE_MAG_FILTER: GLenum;
  28211. readonly TEXTURE_MIN_FILTER: GLenum;
  28212. readonly TEXTURE_WRAP_S: GLenum;
  28213. readonly TEXTURE_WRAP_T: GLenum;
  28214. readonly TRIANGLES: GLenum;
  28215. readonly TRIANGLE_FAN: GLenum;
  28216. readonly TRIANGLE_STRIP: GLenum;
  28217. readonly UNPACK_ALIGNMENT: GLenum;
  28218. readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
  28219. readonly UNPACK_FLIP_Y_WEBGL: GLenum;
  28220. readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
  28221. readonly UNSIGNED_BYTE: GLenum;
  28222. readonly UNSIGNED_INT: GLenum;
  28223. readonly UNSIGNED_SHORT: GLenum;
  28224. readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
  28225. readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
  28226. readonly UNSIGNED_SHORT_5_6_5: GLenum;
  28227. readonly VALIDATE_STATUS: GLenum;
  28228. readonly VENDOR: GLenum;
  28229. readonly VERSION: GLenum;
  28230. readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
  28231. readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
  28232. readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
  28233. readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
  28234. readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
  28235. readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
  28236. readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
  28237. readonly VERTEX_SHADER: GLenum;
  28238. readonly VIEWPORT: GLenum;
  28239. readonly ZERO: GLenum;
  28240. };
  28241. interface WebGL2RenderingContextBase {
  28242. beginQuery(target: GLenum, query: WebGLQuery): void;
  28243. beginTransformFeedback(primitiveMode: GLenum): void;
  28244. bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
  28245. bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
  28246. bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
  28247. bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
  28248. bindVertexArray(array: WebGLVertexArrayObject | null): void;
  28249. blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
  28250. clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
  28251. clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;
  28252. clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;
  28253. clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;
  28254. clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
  28255. compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
  28256. compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
  28257. compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
  28258. 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;
  28259. copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
  28260. copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
  28261. createQuery(): WebGLQuery | null;
  28262. createSampler(): WebGLSampler | null;
  28263. createTransformFeedback(): WebGLTransformFeedback | null;
  28264. createVertexArray(): WebGLVertexArrayObject | null;
  28265. deleteQuery(query: WebGLQuery | null): void;
  28266. deleteSampler(sampler: WebGLSampler | null): void;
  28267. deleteSync(sync: WebGLSync | null): void;
  28268. deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
  28269. deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
  28270. drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
  28271. drawBuffers(buffers: GLenum[]): void;
  28272. drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
  28273. drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
  28274. endQuery(target: GLenum): void;
  28275. endTransformFeedback(): void;
  28276. fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
  28277. framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
  28278. getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
  28279. getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
  28280. getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
  28281. getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;
  28282. getFragDataLocation(program: WebGLProgram, name: string): GLint;
  28283. getIndexedParameter(target: GLenum, index: GLuint): any;
  28284. getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
  28285. getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
  28286. getQueryParameter(query: WebGLQuery, pname: GLenum): any;
  28287. getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
  28288. getSyncParameter(sync: WebGLSync, pname: GLenum): any;
  28289. getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
  28290. getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
  28291. getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
  28292. invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
  28293. invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
  28294. isQuery(query: WebGLQuery | null): GLboolean;
  28295. isSampler(sampler: WebGLSampler | null): GLboolean;
  28296. isSync(sync: WebGLSync | null): GLboolean;
  28297. isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
  28298. isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
  28299. pauseTransformFeedback(): void;
  28300. readBuffer(src: GLenum): void;
  28301. renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
  28302. resumeTransformFeedback(): void;
  28303. samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
  28304. samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
  28305. texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
  28306. texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
  28307. texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
  28308. texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
  28309. texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
  28310. texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
  28311. texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
  28312. texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
  28313. 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;
  28314. transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
  28315. uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
  28316. uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  28317. uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
  28318. uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  28319. uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
  28320. uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  28321. uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
  28322. uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  28323. uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
  28324. uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  28325. uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  28326. uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  28327. uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  28328. uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  28329. uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  28330. vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
  28331. vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
  28332. vertexAttribI4iv(index: GLuint, values: Int32List): void;
  28333. vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
  28334. vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
  28335. vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
  28336. waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
  28337. readonly ACTIVE_UNIFORM_BLOCKS: GLenum;
  28338. readonly ALREADY_SIGNALED: GLenum;
  28339. readonly ANY_SAMPLES_PASSED: GLenum;
  28340. readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;
  28341. readonly COLOR: GLenum;
  28342. readonly COLOR_ATTACHMENT1: GLenum;
  28343. readonly COLOR_ATTACHMENT10: GLenum;
  28344. readonly COLOR_ATTACHMENT11: GLenum;
  28345. readonly COLOR_ATTACHMENT12: GLenum;
  28346. readonly COLOR_ATTACHMENT13: GLenum;
  28347. readonly COLOR_ATTACHMENT14: GLenum;
  28348. readonly COLOR_ATTACHMENT15: GLenum;
  28349. readonly COLOR_ATTACHMENT2: GLenum;
  28350. readonly COLOR_ATTACHMENT3: GLenum;
  28351. readonly COLOR_ATTACHMENT4: GLenum;
  28352. readonly COLOR_ATTACHMENT5: GLenum;
  28353. readonly COLOR_ATTACHMENT6: GLenum;
  28354. readonly COLOR_ATTACHMENT7: GLenum;
  28355. readonly COLOR_ATTACHMENT8: GLenum;
  28356. readonly COLOR_ATTACHMENT9: GLenum;
  28357. readonly COMPARE_REF_TO_TEXTURE: GLenum;
  28358. readonly CONDITION_SATISFIED: GLenum;
  28359. readonly COPY_READ_BUFFER: GLenum;
  28360. readonly COPY_READ_BUFFER_BINDING: GLenum;
  28361. readonly COPY_WRITE_BUFFER: GLenum;
  28362. readonly COPY_WRITE_BUFFER_BINDING: GLenum;
  28363. readonly CURRENT_QUERY: GLenum;
  28364. readonly DEPTH: GLenum;
  28365. readonly DEPTH24_STENCIL8: GLenum;
  28366. readonly DEPTH32F_STENCIL8: GLenum;
  28367. readonly DEPTH_COMPONENT24: GLenum;
  28368. readonly DEPTH_COMPONENT32F: GLenum;
  28369. readonly DRAW_BUFFER0: GLenum;
  28370. readonly DRAW_BUFFER1: GLenum;
  28371. readonly DRAW_BUFFER10: GLenum;
  28372. readonly DRAW_BUFFER11: GLenum;
  28373. readonly DRAW_BUFFER12: GLenum;
  28374. readonly DRAW_BUFFER13: GLenum;
  28375. readonly DRAW_BUFFER14: GLenum;
  28376. readonly DRAW_BUFFER15: GLenum;
  28377. readonly DRAW_BUFFER2: GLenum;
  28378. readonly DRAW_BUFFER3: GLenum;
  28379. readonly DRAW_BUFFER4: GLenum;
  28380. readonly DRAW_BUFFER5: GLenum;
  28381. readonly DRAW_BUFFER6: GLenum;
  28382. readonly DRAW_BUFFER7: GLenum;
  28383. readonly DRAW_BUFFER8: GLenum;
  28384. readonly DRAW_BUFFER9: GLenum;
  28385. readonly DRAW_FRAMEBUFFER: GLenum;
  28386. readonly DRAW_FRAMEBUFFER_BINDING: GLenum;
  28387. readonly DYNAMIC_COPY: GLenum;
  28388. readonly DYNAMIC_READ: GLenum;
  28389. readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;
  28390. readonly FLOAT_MAT2x3: GLenum;
  28391. readonly FLOAT_MAT2x4: GLenum;
  28392. readonly FLOAT_MAT3x2: GLenum;
  28393. readonly FLOAT_MAT3x4: GLenum;
  28394. readonly FLOAT_MAT4x2: GLenum;
  28395. readonly FLOAT_MAT4x3: GLenum;
  28396. readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;
  28397. readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;
  28398. readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;
  28399. readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;
  28400. readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;
  28401. readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;
  28402. readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;
  28403. readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;
  28404. readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;
  28405. readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;
  28406. readonly FRAMEBUFFER_DEFAULT: GLenum;
  28407. readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;
  28408. readonly HALF_FLOAT: GLenum;
  28409. readonly INTERLEAVED_ATTRIBS: GLenum;
  28410. readonly INT_2_10_10_10_REV: GLenum;
  28411. readonly INT_SAMPLER_2D: GLenum;
  28412. readonly INT_SAMPLER_2D_ARRAY: GLenum;
  28413. readonly INT_SAMPLER_3D: GLenum;
  28414. readonly INT_SAMPLER_CUBE: GLenum;
  28415. readonly INVALID_INDEX: GLenum;
  28416. readonly MAX: GLenum;
  28417. readonly MAX_3D_TEXTURE_SIZE: GLenum;
  28418. readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;
  28419. readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;
  28420. readonly MAX_COLOR_ATTACHMENTS: GLenum;
  28421. readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
  28422. readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;
  28423. readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;
  28424. readonly MAX_DRAW_BUFFERS: GLenum;
  28425. readonly MAX_ELEMENTS_INDICES: GLenum;
  28426. readonly MAX_ELEMENTS_VERTICES: GLenum;
  28427. readonly MAX_ELEMENT_INDEX: GLenum;
  28428. readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;
  28429. readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;
  28430. readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
  28431. readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;
  28432. readonly MAX_SAMPLES: GLenum;
  28433. readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;
  28434. readonly MAX_TEXTURE_LOD_BIAS: GLenum;
  28435. readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;
  28436. readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;
  28437. readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;
  28438. readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;
  28439. readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;
  28440. readonly MAX_VARYING_COMPONENTS: GLenum;
  28441. readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;
  28442. readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;
  28443. readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;
  28444. readonly MIN: GLenum;
  28445. readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;
  28446. readonly OBJECT_TYPE: GLenum;
  28447. readonly PACK_ROW_LENGTH: GLenum;
  28448. readonly PACK_SKIP_PIXELS: GLenum;
  28449. readonly PACK_SKIP_ROWS: GLenum;
  28450. readonly PIXEL_PACK_BUFFER: GLenum;
  28451. readonly PIXEL_PACK_BUFFER_BINDING: GLenum;
  28452. readonly PIXEL_UNPACK_BUFFER: GLenum;
  28453. readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;
  28454. readonly QUERY_RESULT: GLenum;
  28455. readonly QUERY_RESULT_AVAILABLE: GLenum;
  28456. readonly R11F_G11F_B10F: GLenum;
  28457. readonly R16F: GLenum;
  28458. readonly R16I: GLenum;
  28459. readonly R16UI: GLenum;
  28460. readonly R32F: GLenum;
  28461. readonly R32I: GLenum;
  28462. readonly R32UI: GLenum;
  28463. readonly R8: GLenum;
  28464. readonly R8I: GLenum;
  28465. readonly R8UI: GLenum;
  28466. readonly R8_SNORM: GLenum;
  28467. readonly RASTERIZER_DISCARD: GLenum;
  28468. readonly READ_BUFFER: GLenum;
  28469. readonly READ_FRAMEBUFFER: GLenum;
  28470. readonly READ_FRAMEBUFFER_BINDING: GLenum;
  28471. readonly RED: GLenum;
  28472. readonly RED_INTEGER: GLenum;
  28473. readonly RENDERBUFFER_SAMPLES: GLenum;
  28474. readonly RG: GLenum;
  28475. readonly RG16F: GLenum;
  28476. readonly RG16I: GLenum;
  28477. readonly RG16UI: GLenum;
  28478. readonly RG32F: GLenum;
  28479. readonly RG32I: GLenum;
  28480. readonly RG32UI: GLenum;
  28481. readonly RG8: GLenum;
  28482. readonly RG8I: GLenum;
  28483. readonly RG8UI: GLenum;
  28484. readonly RG8_SNORM: GLenum;
  28485. readonly RGB10_A2: GLenum;
  28486. readonly RGB10_A2UI: GLenum;
  28487. readonly RGB16F: GLenum;
  28488. readonly RGB16I: GLenum;
  28489. readonly RGB16UI: GLenum;
  28490. readonly RGB32F: GLenum;
  28491. readonly RGB32I: GLenum;
  28492. readonly RGB32UI: GLenum;
  28493. readonly RGB8: GLenum;
  28494. readonly RGB8I: GLenum;
  28495. readonly RGB8UI: GLenum;
  28496. readonly RGB8_SNORM: GLenum;
  28497. readonly RGB9_E5: GLenum;
  28498. readonly RGBA16F: GLenum;
  28499. readonly RGBA16I: GLenum;
  28500. readonly RGBA16UI: GLenum;
  28501. readonly RGBA32F: GLenum;
  28502. readonly RGBA32I: GLenum;
  28503. readonly RGBA32UI: GLenum;
  28504. readonly RGBA8: GLenum;
  28505. readonly RGBA8I: GLenum;
  28506. readonly RGBA8UI: GLenum;
  28507. readonly RGBA8_SNORM: GLenum;
  28508. readonly RGBA_INTEGER: GLenum;
  28509. readonly RGB_INTEGER: GLenum;
  28510. readonly RG_INTEGER: GLenum;
  28511. readonly SAMPLER_2D_ARRAY: GLenum;
  28512. readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;
  28513. readonly SAMPLER_2D_SHADOW: GLenum;
  28514. readonly SAMPLER_3D: GLenum;
  28515. readonly SAMPLER_BINDING: GLenum;
  28516. readonly SAMPLER_CUBE_SHADOW: GLenum;
  28517. readonly SEPARATE_ATTRIBS: GLenum;
  28518. readonly SIGNALED: GLenum;
  28519. readonly SIGNED_NORMALIZED: GLenum;
  28520. readonly SRGB: GLenum;
  28521. readonly SRGB8: GLenum;
  28522. readonly SRGB8_ALPHA8: GLenum;
  28523. readonly STATIC_COPY: GLenum;
  28524. readonly STATIC_READ: GLenum;
  28525. readonly STENCIL: GLenum;
  28526. readonly STREAM_COPY: GLenum;
  28527. readonly STREAM_READ: GLenum;
  28528. readonly SYNC_CONDITION: GLenum;
  28529. readonly SYNC_FENCE: GLenum;
  28530. readonly SYNC_FLAGS: GLenum;
  28531. readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;
  28532. readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;
  28533. readonly SYNC_STATUS: GLenum;
  28534. readonly TEXTURE_2D_ARRAY: GLenum;
  28535. readonly TEXTURE_3D: GLenum;
  28536. readonly TEXTURE_BASE_LEVEL: GLenum;
  28537. readonly TEXTURE_BINDING_2D_ARRAY: GLenum;
  28538. readonly TEXTURE_BINDING_3D: GLenum;
  28539. readonly TEXTURE_COMPARE_FUNC: GLenum;
  28540. readonly TEXTURE_COMPARE_MODE: GLenum;
  28541. readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;
  28542. readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;
  28543. readonly TEXTURE_MAX_LEVEL: GLenum;
  28544. readonly TEXTURE_MAX_LOD: GLenum;
  28545. readonly TEXTURE_MIN_LOD: GLenum;
  28546. readonly TEXTURE_WRAP_R: GLenum;
  28547. readonly TIMEOUT_EXPIRED: GLenum;
  28548. readonly TIMEOUT_IGNORED: GLint64;
  28549. readonly TRANSFORM_FEEDBACK: GLenum;
  28550. readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;
  28551. readonly TRANSFORM_FEEDBACK_BINDING: GLenum;
  28552. readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;
  28553. readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;
  28554. readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;
  28555. readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;
  28556. readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;
  28557. readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;
  28558. readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;
  28559. readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;
  28560. readonly UNIFORM_ARRAY_STRIDE: GLenum;
  28561. readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;
  28562. readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;
  28563. readonly UNIFORM_BLOCK_BINDING: GLenum;
  28564. readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;
  28565. readonly UNIFORM_BLOCK_INDEX: GLenum;
  28566. readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;
  28567. readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;
  28568. readonly UNIFORM_BUFFER: GLenum;
  28569. readonly UNIFORM_BUFFER_BINDING: GLenum;
  28570. readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;
  28571. readonly UNIFORM_BUFFER_SIZE: GLenum;
  28572. readonly UNIFORM_BUFFER_START: GLenum;
  28573. readonly UNIFORM_IS_ROW_MAJOR: GLenum;
  28574. readonly UNIFORM_MATRIX_STRIDE: GLenum;
  28575. readonly UNIFORM_OFFSET: GLenum;
  28576. readonly UNIFORM_SIZE: GLenum;
  28577. readonly UNIFORM_TYPE: GLenum;
  28578. readonly UNPACK_IMAGE_HEIGHT: GLenum;
  28579. readonly UNPACK_ROW_LENGTH: GLenum;
  28580. readonly UNPACK_SKIP_IMAGES: GLenum;
  28581. readonly UNPACK_SKIP_PIXELS: GLenum;
  28582. readonly UNPACK_SKIP_ROWS: GLenum;
  28583. readonly UNSIGNALED: GLenum;
  28584. readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;
  28585. readonly UNSIGNED_INT_24_8: GLenum;
  28586. readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;
  28587. readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;
  28588. readonly UNSIGNED_INT_SAMPLER_2D: GLenum;
  28589. readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;
  28590. readonly UNSIGNED_INT_SAMPLER_3D: GLenum;
  28591. readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;
  28592. readonly UNSIGNED_INT_VEC2: GLenum;
  28593. readonly UNSIGNED_INT_VEC3: GLenum;
  28594. readonly UNSIGNED_INT_VEC4: GLenum;
  28595. readonly UNSIGNED_NORMALIZED: GLenum;
  28596. readonly VERTEX_ARRAY_BINDING: GLenum;
  28597. readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;
  28598. readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;
  28599. readonly WAIT_FAILED: GLenum;
  28600. }
  28601. interface WebGL2RenderingContextOverloads {
  28602. bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
  28603. bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;
  28604. bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;
  28605. bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;
  28606. bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;
  28607. compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
  28608. compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
  28609. compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
  28610. compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
  28611. readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
  28612. readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
  28613. readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;
  28614. texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
  28615. texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
  28616. texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
  28617. texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
  28618. texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
  28619. texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
  28620. texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
  28621. texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
  28622. texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
  28623. texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
  28624. uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  28625. uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  28626. uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  28627. uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  28628. uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  28629. uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  28630. uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  28631. uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  28632. uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  28633. uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  28634. uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
  28635. }
  28636. /** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */
  28637. interface WebGLActiveInfo {
  28638. readonly name: string;
  28639. readonly size: GLint;
  28640. readonly type: GLenum;
  28641. }
  28642. declare var WebGLActiveInfo: {
  28643. prototype: WebGLActiveInfo;
  28644. new(): WebGLActiveInfo;
  28645. };
  28646. /** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
  28647. interface WebGLBuffer {
  28648. }
  28649. declare var WebGLBuffer: {
  28650. prototype: WebGLBuffer;
  28651. new(): WebGLBuffer;
  28652. };
  28653. /** 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. */
  28654. interface WebGLContextEvent extends Event {
  28655. readonly statusMessage: string;
  28656. }
  28657. declare var WebGLContextEvent: {
  28658. prototype: WebGLContextEvent;
  28659. new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
  28660. };
  28661. /** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
  28662. interface WebGLFramebuffer {
  28663. }
  28664. declare var WebGLFramebuffer: {
  28665. prototype: WebGLFramebuffer;
  28666. new(): WebGLFramebuffer;
  28667. };
  28668. /** 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). */
  28669. interface WebGLProgram {
  28670. }
  28671. declare var WebGLProgram: {
  28672. prototype: WebGLProgram;
  28673. new(): WebGLProgram;
  28674. };
  28675. interface WebGLQuery {
  28676. }
  28677. declare var WebGLQuery: {
  28678. prototype: WebGLQuery;
  28679. new(): WebGLQuery;
  28680. };
  28681. /** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
  28682. interface WebGLRenderbuffer {
  28683. }
  28684. declare var WebGLRenderbuffer: {
  28685. prototype: WebGLRenderbuffer;
  28686. new(): WebGLRenderbuffer;
  28687. };
  28688. /** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */
  28689. interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
  28690. }
  28691. declare var WebGLRenderingContext: {
  28692. prototype: WebGLRenderingContext;
  28693. new(): WebGLRenderingContext;
  28694. readonly ACTIVE_ATTRIBUTES: GLenum;
  28695. readonly ACTIVE_TEXTURE: GLenum;
  28696. readonly ACTIVE_UNIFORMS: GLenum;
  28697. readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
  28698. readonly ALIASED_POINT_SIZE_RANGE: GLenum;
  28699. readonly ALPHA: GLenum;
  28700. readonly ALPHA_BITS: GLenum;
  28701. readonly ALWAYS: GLenum;
  28702. readonly ARRAY_BUFFER: GLenum;
  28703. readonly ARRAY_BUFFER_BINDING: GLenum;
  28704. readonly ATTACHED_SHADERS: GLenum;
  28705. readonly BACK: GLenum;
  28706. readonly BLEND: GLenum;
  28707. readonly BLEND_COLOR: GLenum;
  28708. readonly BLEND_DST_ALPHA: GLenum;
  28709. readonly BLEND_DST_RGB: GLenum;
  28710. readonly BLEND_EQUATION: GLenum;
  28711. readonly BLEND_EQUATION_ALPHA: GLenum;
  28712. readonly BLEND_EQUATION_RGB: GLenum;
  28713. readonly BLEND_SRC_ALPHA: GLenum;
  28714. readonly BLEND_SRC_RGB: GLenum;
  28715. readonly BLUE_BITS: GLenum;
  28716. readonly BOOL: GLenum;
  28717. readonly BOOL_VEC2: GLenum;
  28718. readonly BOOL_VEC3: GLenum;
  28719. readonly BOOL_VEC4: GLenum;
  28720. readonly BROWSER_DEFAULT_WEBGL: GLenum;
  28721. readonly BUFFER_SIZE: GLenum;
  28722. readonly BUFFER_USAGE: GLenum;
  28723. readonly BYTE: GLenum;
  28724. readonly CCW: GLenum;
  28725. readonly CLAMP_TO_EDGE: GLenum;
  28726. readonly COLOR_ATTACHMENT0: GLenum;
  28727. readonly COLOR_BUFFER_BIT: GLenum;
  28728. readonly COLOR_CLEAR_VALUE: GLenum;
  28729. readonly COLOR_WRITEMASK: GLenum;
  28730. readonly COMPILE_STATUS: GLenum;
  28731. readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
  28732. readonly CONSTANT_ALPHA: GLenum;
  28733. readonly CONSTANT_COLOR: GLenum;
  28734. readonly CONTEXT_LOST_WEBGL: GLenum;
  28735. readonly CULL_FACE: GLenum;
  28736. readonly CULL_FACE_MODE: GLenum;
  28737. readonly CURRENT_PROGRAM: GLenum;
  28738. readonly CURRENT_VERTEX_ATTRIB: GLenum;
  28739. readonly CW: GLenum;
  28740. readonly DECR: GLenum;
  28741. readonly DECR_WRAP: GLenum;
  28742. readonly DELETE_STATUS: GLenum;
  28743. readonly DEPTH_ATTACHMENT: GLenum;
  28744. readonly DEPTH_BITS: GLenum;
  28745. readonly DEPTH_BUFFER_BIT: GLenum;
  28746. readonly DEPTH_CLEAR_VALUE: GLenum;
  28747. readonly DEPTH_COMPONENT: GLenum;
  28748. readonly DEPTH_COMPONENT16: GLenum;
  28749. readonly DEPTH_FUNC: GLenum;
  28750. readonly DEPTH_RANGE: GLenum;
  28751. readonly DEPTH_STENCIL: GLenum;
  28752. readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
  28753. readonly DEPTH_TEST: GLenum;
  28754. readonly DEPTH_WRITEMASK: GLenum;
  28755. readonly DITHER: GLenum;
  28756. readonly DONT_CARE: GLenum;
  28757. readonly DST_ALPHA: GLenum;
  28758. readonly DST_COLOR: GLenum;
  28759. readonly DYNAMIC_DRAW: GLenum;
  28760. readonly ELEMENT_ARRAY_BUFFER: GLenum;
  28761. readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
  28762. readonly EQUAL: GLenum;
  28763. readonly FASTEST: GLenum;
  28764. readonly FLOAT: GLenum;
  28765. readonly FLOAT_MAT2: GLenum;
  28766. readonly FLOAT_MAT3: GLenum;
  28767. readonly FLOAT_MAT4: GLenum;
  28768. readonly FLOAT_VEC2: GLenum;
  28769. readonly FLOAT_VEC3: GLenum;
  28770. readonly FLOAT_VEC4: GLenum;
  28771. readonly FRAGMENT_SHADER: GLenum;
  28772. readonly FRAMEBUFFER: GLenum;
  28773. readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
  28774. readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
  28775. readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
  28776. readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
  28777. readonly FRAMEBUFFER_BINDING: GLenum;
  28778. readonly FRAMEBUFFER_COMPLETE: GLenum;
  28779. readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
  28780. readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
  28781. readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
  28782. readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
  28783. readonly FRONT: GLenum;
  28784. readonly FRONT_AND_BACK: GLenum;
  28785. readonly FRONT_FACE: GLenum;
  28786. readonly FUNC_ADD: GLenum;
  28787. readonly FUNC_REVERSE_SUBTRACT: GLenum;
  28788. readonly FUNC_SUBTRACT: GLenum;
  28789. readonly GENERATE_MIPMAP_HINT: GLenum;
  28790. readonly GEQUAL: GLenum;
  28791. readonly GREATER: GLenum;
  28792. readonly GREEN_BITS: GLenum;
  28793. readonly HIGH_FLOAT: GLenum;
  28794. readonly HIGH_INT: GLenum;
  28795. readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
  28796. readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
  28797. readonly INCR: GLenum;
  28798. readonly INCR_WRAP: GLenum;
  28799. readonly INT: GLenum;
  28800. readonly INT_VEC2: GLenum;
  28801. readonly INT_VEC3: GLenum;
  28802. readonly INT_VEC4: GLenum;
  28803. readonly INVALID_ENUM: GLenum;
  28804. readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
  28805. readonly INVALID_OPERATION: GLenum;
  28806. readonly INVALID_VALUE: GLenum;
  28807. readonly INVERT: GLenum;
  28808. readonly KEEP: GLenum;
  28809. readonly LEQUAL: GLenum;
  28810. readonly LESS: GLenum;
  28811. readonly LINEAR: GLenum;
  28812. readonly LINEAR_MIPMAP_LINEAR: GLenum;
  28813. readonly LINEAR_MIPMAP_NEAREST: GLenum;
  28814. readonly LINES: GLenum;
  28815. readonly LINE_LOOP: GLenum;
  28816. readonly LINE_STRIP: GLenum;
  28817. readonly LINE_WIDTH: GLenum;
  28818. readonly LINK_STATUS: GLenum;
  28819. readonly LOW_FLOAT: GLenum;
  28820. readonly LOW_INT: GLenum;
  28821. readonly LUMINANCE: GLenum;
  28822. readonly LUMINANCE_ALPHA: GLenum;
  28823. readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
  28824. readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
  28825. readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
  28826. readonly MAX_RENDERBUFFER_SIZE: GLenum;
  28827. readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
  28828. readonly MAX_TEXTURE_SIZE: GLenum;
  28829. readonly MAX_VARYING_VECTORS: GLenum;
  28830. readonly MAX_VERTEX_ATTRIBS: GLenum;
  28831. readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
  28832. readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
  28833. readonly MAX_VIEWPORT_DIMS: GLenum;
  28834. readonly MEDIUM_FLOAT: GLenum;
  28835. readonly MEDIUM_INT: GLenum;
  28836. readonly MIRRORED_REPEAT: GLenum;
  28837. readonly NEAREST: GLenum;
  28838. readonly NEAREST_MIPMAP_LINEAR: GLenum;
  28839. readonly NEAREST_MIPMAP_NEAREST: GLenum;
  28840. readonly NEVER: GLenum;
  28841. readonly NICEST: GLenum;
  28842. readonly NONE: GLenum;
  28843. readonly NOTEQUAL: GLenum;
  28844. readonly NO_ERROR: GLenum;
  28845. readonly ONE: GLenum;
  28846. readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
  28847. readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
  28848. readonly ONE_MINUS_DST_ALPHA: GLenum;
  28849. readonly ONE_MINUS_DST_COLOR: GLenum;
  28850. readonly ONE_MINUS_SRC_ALPHA: GLenum;
  28851. readonly ONE_MINUS_SRC_COLOR: GLenum;
  28852. readonly OUT_OF_MEMORY: GLenum;
  28853. readonly PACK_ALIGNMENT: GLenum;
  28854. readonly POINTS: GLenum;
  28855. readonly POLYGON_OFFSET_FACTOR: GLenum;
  28856. readonly POLYGON_OFFSET_FILL: GLenum;
  28857. readonly POLYGON_OFFSET_UNITS: GLenum;
  28858. readonly RED_BITS: GLenum;
  28859. readonly RENDERBUFFER: GLenum;
  28860. readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
  28861. readonly RENDERBUFFER_BINDING: GLenum;
  28862. readonly RENDERBUFFER_BLUE_SIZE: GLenum;
  28863. readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
  28864. readonly RENDERBUFFER_GREEN_SIZE: GLenum;
  28865. readonly RENDERBUFFER_HEIGHT: GLenum;
  28866. readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
  28867. readonly RENDERBUFFER_RED_SIZE: GLenum;
  28868. readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
  28869. readonly RENDERBUFFER_WIDTH: GLenum;
  28870. readonly RENDERER: GLenum;
  28871. readonly REPEAT: GLenum;
  28872. readonly REPLACE: GLenum;
  28873. readonly RGB: GLenum;
  28874. readonly RGB565: GLenum;
  28875. readonly RGB5_A1: GLenum;
  28876. readonly RGBA: GLenum;
  28877. readonly RGBA4: GLenum;
  28878. readonly SAMPLER_2D: GLenum;
  28879. readonly SAMPLER_CUBE: GLenum;
  28880. readonly SAMPLES: GLenum;
  28881. readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
  28882. readonly SAMPLE_BUFFERS: GLenum;
  28883. readonly SAMPLE_COVERAGE: GLenum;
  28884. readonly SAMPLE_COVERAGE_INVERT: GLenum;
  28885. readonly SAMPLE_COVERAGE_VALUE: GLenum;
  28886. readonly SCISSOR_BOX: GLenum;
  28887. readonly SCISSOR_TEST: GLenum;
  28888. readonly SHADER_TYPE: GLenum;
  28889. readonly SHADING_LANGUAGE_VERSION: GLenum;
  28890. readonly SHORT: GLenum;
  28891. readonly SRC_ALPHA: GLenum;
  28892. readonly SRC_ALPHA_SATURATE: GLenum;
  28893. readonly SRC_COLOR: GLenum;
  28894. readonly STATIC_DRAW: GLenum;
  28895. readonly STENCIL_ATTACHMENT: GLenum;
  28896. readonly STENCIL_BACK_FAIL: GLenum;
  28897. readonly STENCIL_BACK_FUNC: GLenum;
  28898. readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
  28899. readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
  28900. readonly STENCIL_BACK_REF: GLenum;
  28901. readonly STENCIL_BACK_VALUE_MASK: GLenum;
  28902. readonly STENCIL_BACK_WRITEMASK: GLenum;
  28903. readonly STENCIL_BITS: GLenum;
  28904. readonly STENCIL_BUFFER_BIT: GLenum;
  28905. readonly STENCIL_CLEAR_VALUE: GLenum;
  28906. readonly STENCIL_FAIL: GLenum;
  28907. readonly STENCIL_FUNC: GLenum;
  28908. readonly STENCIL_INDEX8: GLenum;
  28909. readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
  28910. readonly STENCIL_PASS_DEPTH_PASS: GLenum;
  28911. readonly STENCIL_REF: GLenum;
  28912. readonly STENCIL_TEST: GLenum;
  28913. readonly STENCIL_VALUE_MASK: GLenum;
  28914. readonly STENCIL_WRITEMASK: GLenum;
  28915. readonly STREAM_DRAW: GLenum;
  28916. readonly SUBPIXEL_BITS: GLenum;
  28917. readonly TEXTURE: GLenum;
  28918. readonly TEXTURE0: GLenum;
  28919. readonly TEXTURE1: GLenum;
  28920. readonly TEXTURE10: GLenum;
  28921. readonly TEXTURE11: GLenum;
  28922. readonly TEXTURE12: GLenum;
  28923. readonly TEXTURE13: GLenum;
  28924. readonly TEXTURE14: GLenum;
  28925. readonly TEXTURE15: GLenum;
  28926. readonly TEXTURE16: GLenum;
  28927. readonly TEXTURE17: GLenum;
  28928. readonly TEXTURE18: GLenum;
  28929. readonly TEXTURE19: GLenum;
  28930. readonly TEXTURE2: GLenum;
  28931. readonly TEXTURE20: GLenum;
  28932. readonly TEXTURE21: GLenum;
  28933. readonly TEXTURE22: GLenum;
  28934. readonly TEXTURE23: GLenum;
  28935. readonly TEXTURE24: GLenum;
  28936. readonly TEXTURE25: GLenum;
  28937. readonly TEXTURE26: GLenum;
  28938. readonly TEXTURE27: GLenum;
  28939. readonly TEXTURE28: GLenum;
  28940. readonly TEXTURE29: GLenum;
  28941. readonly TEXTURE3: GLenum;
  28942. readonly TEXTURE30: GLenum;
  28943. readonly TEXTURE31: GLenum;
  28944. readonly TEXTURE4: GLenum;
  28945. readonly TEXTURE5: GLenum;
  28946. readonly TEXTURE6: GLenum;
  28947. readonly TEXTURE7: GLenum;
  28948. readonly TEXTURE8: GLenum;
  28949. readonly TEXTURE9: GLenum;
  28950. readonly TEXTURE_2D: GLenum;
  28951. readonly TEXTURE_BINDING_2D: GLenum;
  28952. readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
  28953. readonly TEXTURE_CUBE_MAP: GLenum;
  28954. readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
  28955. readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
  28956. readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
  28957. readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
  28958. readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
  28959. readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
  28960. readonly TEXTURE_MAG_FILTER: GLenum;
  28961. readonly TEXTURE_MIN_FILTER: GLenum;
  28962. readonly TEXTURE_WRAP_S: GLenum;
  28963. readonly TEXTURE_WRAP_T: GLenum;
  28964. readonly TRIANGLES: GLenum;
  28965. readonly TRIANGLE_FAN: GLenum;
  28966. readonly TRIANGLE_STRIP: GLenum;
  28967. readonly UNPACK_ALIGNMENT: GLenum;
  28968. readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
  28969. readonly UNPACK_FLIP_Y_WEBGL: GLenum;
  28970. readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
  28971. readonly UNSIGNED_BYTE: GLenum;
  28972. readonly UNSIGNED_INT: GLenum;
  28973. readonly UNSIGNED_SHORT: GLenum;
  28974. readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
  28975. readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
  28976. readonly UNSIGNED_SHORT_5_6_5: GLenum;
  28977. readonly VALIDATE_STATUS: GLenum;
  28978. readonly VENDOR: GLenum;
  28979. readonly VERSION: GLenum;
  28980. readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
  28981. readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
  28982. readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
  28983. readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
  28984. readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
  28985. readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
  28986. readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
  28987. readonly VERTEX_SHADER: GLenum;
  28988. readonly VIEWPORT: GLenum;
  28989. readonly ZERO: GLenum;
  28990. };
  28991. interface WebGLRenderingContextBase {
  28992. readonly drawingBufferHeight: GLsizei;
  28993. readonly drawingBufferWidth: GLsizei;
  28994. activeTexture(texture: GLenum): void;
  28995. attachShader(program: WebGLProgram, shader: WebGLShader): void;
  28996. bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
  28997. bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
  28998. bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
  28999. bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
  29000. bindTexture(target: GLenum, texture: WebGLTexture | null): void;
  29001. blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
  29002. blendEquation(mode: GLenum): void;
  29003. blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
  29004. blendFunc(sfactor: GLenum, dfactor: GLenum): void;
  29005. blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
  29006. checkFramebufferStatus(target: GLenum): GLenum;
  29007. clear(mask: GLbitfield): void;
  29008. clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
  29009. clearDepth(depth: GLclampf): void;
  29010. clearStencil(s: GLint): void;
  29011. colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
  29012. compileShader(shader: WebGLShader): void;
  29013. copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
  29014. copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
  29015. createBuffer(): WebGLBuffer | null;
  29016. createFramebuffer(): WebGLFramebuffer | null;
  29017. createProgram(): WebGLProgram | null;
  29018. createRenderbuffer(): WebGLRenderbuffer | null;
  29019. createShader(type: GLenum): WebGLShader | null;
  29020. createTexture(): WebGLTexture | null;
  29021. cullFace(mode: GLenum): void;
  29022. deleteBuffer(buffer: WebGLBuffer | null): void;
  29023. deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
  29024. deleteProgram(program: WebGLProgram | null): void;
  29025. deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
  29026. deleteShader(shader: WebGLShader | null): void;
  29027. deleteTexture(texture: WebGLTexture | null): void;
  29028. depthFunc(func: GLenum): void;
  29029. depthMask(flag: GLboolean): void;
  29030. depthRange(zNear: GLclampf, zFar: GLclampf): void;
  29031. detachShader(program: WebGLProgram, shader: WebGLShader): void;
  29032. disable(cap: GLenum): void;
  29033. disableVertexAttribArray(index: GLuint): void;
  29034. drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
  29035. drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
  29036. enable(cap: GLenum): void;
  29037. enableVertexAttribArray(index: GLuint): void;
  29038. finish(): void;
  29039. flush(): void;
  29040. framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
  29041. framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
  29042. frontFace(mode: GLenum): void;
  29043. generateMipmap(target: GLenum): void;
  29044. getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
  29045. getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
  29046. getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
  29047. getAttribLocation(program: WebGLProgram, name: string): GLint;
  29048. getBufferParameter(target: GLenum, pname: GLenum): any;
  29049. getContextAttributes(): WebGLContextAttributes | null;
  29050. getError(): GLenum;
  29051. getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
  29052. getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
  29053. getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
  29054. getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
  29055. getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
  29056. getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
  29057. getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
  29058. getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
  29059. getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
  29060. getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
  29061. getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
  29062. getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
  29063. getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
  29064. getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
  29065. getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
  29066. getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
  29067. getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
  29068. getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
  29069. getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
  29070. getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
  29071. getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
  29072. getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
  29073. getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
  29074. getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
  29075. getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
  29076. getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
  29077. getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
  29078. getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
  29079. getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
  29080. getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
  29081. getExtension(name: string): any;
  29082. getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
  29083. getParameter(pname: GLenum): any;
  29084. getProgramInfoLog(program: WebGLProgram): string | null;
  29085. getProgramParameter(program: WebGLProgram, pname: GLenum): any;
  29086. getRenderbufferParameter(target: GLenum, pname: GLenum): any;
  29087. getShaderInfoLog(shader: WebGLShader): string | null;
  29088. getShaderParameter(shader: WebGLShader, pname: GLenum): any;
  29089. getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
  29090. getShaderSource(shader: WebGLShader): string | null;
  29091. getSupportedExtensions(): string[] | null;
  29092. getTexParameter(target: GLenum, pname: GLenum): any;
  29093. getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
  29094. getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
  29095. getVertexAttrib(index: GLuint, pname: GLenum): any;
  29096. getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
  29097. hint(target: GLenum, mode: GLenum): void;
  29098. isBuffer(buffer: WebGLBuffer | null): GLboolean;
  29099. isContextLost(): boolean;
  29100. isEnabled(cap: GLenum): GLboolean;
  29101. isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
  29102. isProgram(program: WebGLProgram | null): GLboolean;
  29103. isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
  29104. isShader(shader: WebGLShader | null): GLboolean;
  29105. isTexture(texture: WebGLTexture | null): GLboolean;
  29106. lineWidth(width: GLfloat): void;
  29107. linkProgram(program: WebGLProgram): void;
  29108. pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
  29109. polygonOffset(factor: GLfloat, units: GLfloat): void;
  29110. renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
  29111. sampleCoverage(value: GLclampf, invert: GLboolean): void;
  29112. scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
  29113. shaderSource(shader: WebGLShader, source: string): void;
  29114. stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
  29115. stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
  29116. stencilMask(mask: GLuint): void;
  29117. stencilMaskSeparate(face: GLenum, mask: GLuint): void;
  29118. stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
  29119. stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
  29120. texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
  29121. texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
  29122. uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
  29123. uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
  29124. uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
  29125. uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
  29126. uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
  29127. uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
  29128. uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
  29129. uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
  29130. useProgram(program: WebGLProgram | null): void;
  29131. validateProgram(program: WebGLProgram): void;
  29132. vertexAttrib1f(index: GLuint, x: GLfloat): void;
  29133. vertexAttrib1fv(index: GLuint, values: Float32List): void;
  29134. vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
  29135. vertexAttrib2fv(index: GLuint, values: Float32List): void;
  29136. vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
  29137. vertexAttrib3fv(index: GLuint, values: Float32List): void;
  29138. vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
  29139. vertexAttrib4fv(index: GLuint, values: Float32List): void;
  29140. vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
  29141. viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
  29142. readonly ACTIVE_ATTRIBUTES: GLenum;
  29143. readonly ACTIVE_TEXTURE: GLenum;
  29144. readonly ACTIVE_UNIFORMS: GLenum;
  29145. readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
  29146. readonly ALIASED_POINT_SIZE_RANGE: GLenum;
  29147. readonly ALPHA: GLenum;
  29148. readonly ALPHA_BITS: GLenum;
  29149. readonly ALWAYS: GLenum;
  29150. readonly ARRAY_BUFFER: GLenum;
  29151. readonly ARRAY_BUFFER_BINDING: GLenum;
  29152. readonly ATTACHED_SHADERS: GLenum;
  29153. readonly BACK: GLenum;
  29154. readonly BLEND: GLenum;
  29155. readonly BLEND_COLOR: GLenum;
  29156. readonly BLEND_DST_ALPHA: GLenum;
  29157. readonly BLEND_DST_RGB: GLenum;
  29158. readonly BLEND_EQUATION: GLenum;
  29159. readonly BLEND_EQUATION_ALPHA: GLenum;
  29160. readonly BLEND_EQUATION_RGB: GLenum;
  29161. readonly BLEND_SRC_ALPHA: GLenum;
  29162. readonly BLEND_SRC_RGB: GLenum;
  29163. readonly BLUE_BITS: GLenum;
  29164. readonly BOOL: GLenum;
  29165. readonly BOOL_VEC2: GLenum;
  29166. readonly BOOL_VEC3: GLenum;
  29167. readonly BOOL_VEC4: GLenum;
  29168. readonly BROWSER_DEFAULT_WEBGL: GLenum;
  29169. readonly BUFFER_SIZE: GLenum;
  29170. readonly BUFFER_USAGE: GLenum;
  29171. readonly BYTE: GLenum;
  29172. readonly CCW: GLenum;
  29173. readonly CLAMP_TO_EDGE: GLenum;
  29174. readonly COLOR_ATTACHMENT0: GLenum;
  29175. readonly COLOR_BUFFER_BIT: GLenum;
  29176. readonly COLOR_CLEAR_VALUE: GLenum;
  29177. readonly COLOR_WRITEMASK: GLenum;
  29178. readonly COMPILE_STATUS: GLenum;
  29179. readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
  29180. readonly CONSTANT_ALPHA: GLenum;
  29181. readonly CONSTANT_COLOR: GLenum;
  29182. readonly CONTEXT_LOST_WEBGL: GLenum;
  29183. readonly CULL_FACE: GLenum;
  29184. readonly CULL_FACE_MODE: GLenum;
  29185. readonly CURRENT_PROGRAM: GLenum;
  29186. readonly CURRENT_VERTEX_ATTRIB: GLenum;
  29187. readonly CW: GLenum;
  29188. readonly DECR: GLenum;
  29189. readonly DECR_WRAP: GLenum;
  29190. readonly DELETE_STATUS: GLenum;
  29191. readonly DEPTH_ATTACHMENT: GLenum;
  29192. readonly DEPTH_BITS: GLenum;
  29193. readonly DEPTH_BUFFER_BIT: GLenum;
  29194. readonly DEPTH_CLEAR_VALUE: GLenum;
  29195. readonly DEPTH_COMPONENT: GLenum;
  29196. readonly DEPTH_COMPONENT16: GLenum;
  29197. readonly DEPTH_FUNC: GLenum;
  29198. readonly DEPTH_RANGE: GLenum;
  29199. readonly DEPTH_STENCIL: GLenum;
  29200. readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
  29201. readonly DEPTH_TEST: GLenum;
  29202. readonly DEPTH_WRITEMASK: GLenum;
  29203. readonly DITHER: GLenum;
  29204. readonly DONT_CARE: GLenum;
  29205. readonly DST_ALPHA: GLenum;
  29206. readonly DST_COLOR: GLenum;
  29207. readonly DYNAMIC_DRAW: GLenum;
  29208. readonly ELEMENT_ARRAY_BUFFER: GLenum;
  29209. readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
  29210. readonly EQUAL: GLenum;
  29211. readonly FASTEST: GLenum;
  29212. readonly FLOAT: GLenum;
  29213. readonly FLOAT_MAT2: GLenum;
  29214. readonly FLOAT_MAT3: GLenum;
  29215. readonly FLOAT_MAT4: GLenum;
  29216. readonly FLOAT_VEC2: GLenum;
  29217. readonly FLOAT_VEC3: GLenum;
  29218. readonly FLOAT_VEC4: GLenum;
  29219. readonly FRAGMENT_SHADER: GLenum;
  29220. readonly FRAMEBUFFER: GLenum;
  29221. readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
  29222. readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
  29223. readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
  29224. readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
  29225. readonly FRAMEBUFFER_BINDING: GLenum;
  29226. readonly FRAMEBUFFER_COMPLETE: GLenum;
  29227. readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
  29228. readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
  29229. readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
  29230. readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
  29231. readonly FRONT: GLenum;
  29232. readonly FRONT_AND_BACK: GLenum;
  29233. readonly FRONT_FACE: GLenum;
  29234. readonly FUNC_ADD: GLenum;
  29235. readonly FUNC_REVERSE_SUBTRACT: GLenum;
  29236. readonly FUNC_SUBTRACT: GLenum;
  29237. readonly GENERATE_MIPMAP_HINT: GLenum;
  29238. readonly GEQUAL: GLenum;
  29239. readonly GREATER: GLenum;
  29240. readonly GREEN_BITS: GLenum;
  29241. readonly HIGH_FLOAT: GLenum;
  29242. readonly HIGH_INT: GLenum;
  29243. readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
  29244. readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
  29245. readonly INCR: GLenum;
  29246. readonly INCR_WRAP: GLenum;
  29247. readonly INT: GLenum;
  29248. readonly INT_VEC2: GLenum;
  29249. readonly INT_VEC3: GLenum;
  29250. readonly INT_VEC4: GLenum;
  29251. readonly INVALID_ENUM: GLenum;
  29252. readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
  29253. readonly INVALID_OPERATION: GLenum;
  29254. readonly INVALID_VALUE: GLenum;
  29255. readonly INVERT: GLenum;
  29256. readonly KEEP: GLenum;
  29257. readonly LEQUAL: GLenum;
  29258. readonly LESS: GLenum;
  29259. readonly LINEAR: GLenum;
  29260. readonly LINEAR_MIPMAP_LINEAR: GLenum;
  29261. readonly LINEAR_MIPMAP_NEAREST: GLenum;
  29262. readonly LINES: GLenum;
  29263. readonly LINE_LOOP: GLenum;
  29264. readonly LINE_STRIP: GLenum;
  29265. readonly LINE_WIDTH: GLenum;
  29266. readonly LINK_STATUS: GLenum;
  29267. readonly LOW_FLOAT: GLenum;
  29268. readonly LOW_INT: GLenum;
  29269. readonly LUMINANCE: GLenum;
  29270. readonly LUMINANCE_ALPHA: GLenum;
  29271. readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
  29272. readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
  29273. readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
  29274. readonly MAX_RENDERBUFFER_SIZE: GLenum;
  29275. readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
  29276. readonly MAX_TEXTURE_SIZE: GLenum;
  29277. readonly MAX_VARYING_VECTORS: GLenum;
  29278. readonly MAX_VERTEX_ATTRIBS: GLenum;
  29279. readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
  29280. readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
  29281. readonly MAX_VIEWPORT_DIMS: GLenum;
  29282. readonly MEDIUM_FLOAT: GLenum;
  29283. readonly MEDIUM_INT: GLenum;
  29284. readonly MIRRORED_REPEAT: GLenum;
  29285. readonly NEAREST: GLenum;
  29286. readonly NEAREST_MIPMAP_LINEAR: GLenum;
  29287. readonly NEAREST_MIPMAP_NEAREST: GLenum;
  29288. readonly NEVER: GLenum;
  29289. readonly NICEST: GLenum;
  29290. readonly NONE: GLenum;
  29291. readonly NOTEQUAL: GLenum;
  29292. readonly NO_ERROR: GLenum;
  29293. readonly ONE: GLenum;
  29294. readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
  29295. readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
  29296. readonly ONE_MINUS_DST_ALPHA: GLenum;
  29297. readonly ONE_MINUS_DST_COLOR: GLenum;
  29298. readonly ONE_MINUS_SRC_ALPHA: GLenum;
  29299. readonly ONE_MINUS_SRC_COLOR: GLenum;
  29300. readonly OUT_OF_MEMORY: GLenum;
  29301. readonly PACK_ALIGNMENT: GLenum;
  29302. readonly POINTS: GLenum;
  29303. readonly POLYGON_OFFSET_FACTOR: GLenum;
  29304. readonly POLYGON_OFFSET_FILL: GLenum;
  29305. readonly POLYGON_OFFSET_UNITS: GLenum;
  29306. readonly RED_BITS: GLenum;
  29307. readonly RENDERBUFFER: GLenum;
  29308. readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
  29309. readonly RENDERBUFFER_BINDING: GLenum;
  29310. readonly RENDERBUFFER_BLUE_SIZE: GLenum;
  29311. readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
  29312. readonly RENDERBUFFER_GREEN_SIZE: GLenum;
  29313. readonly RENDERBUFFER_HEIGHT: GLenum;
  29314. readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
  29315. readonly RENDERBUFFER_RED_SIZE: GLenum;
  29316. readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
  29317. readonly RENDERBUFFER_WIDTH: GLenum;
  29318. readonly RENDERER: GLenum;
  29319. readonly REPEAT: GLenum;
  29320. readonly REPLACE: GLenum;
  29321. readonly RGB: GLenum;
  29322. readonly RGB565: GLenum;
  29323. readonly RGB5_A1: GLenum;
  29324. readonly RGBA: GLenum;
  29325. readonly RGBA4: GLenum;
  29326. readonly SAMPLER_2D: GLenum;
  29327. readonly SAMPLER_CUBE: GLenum;
  29328. readonly SAMPLES: GLenum;
  29329. readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
  29330. readonly SAMPLE_BUFFERS: GLenum;
  29331. readonly SAMPLE_COVERAGE: GLenum;
  29332. readonly SAMPLE_COVERAGE_INVERT: GLenum;
  29333. readonly SAMPLE_COVERAGE_VALUE: GLenum;
  29334. readonly SCISSOR_BOX: GLenum;
  29335. readonly SCISSOR_TEST: GLenum;
  29336. readonly SHADER_TYPE: GLenum;
  29337. readonly SHADING_LANGUAGE_VERSION: GLenum;
  29338. readonly SHORT: GLenum;
  29339. readonly SRC_ALPHA: GLenum;
  29340. readonly SRC_ALPHA_SATURATE: GLenum;
  29341. readonly SRC_COLOR: GLenum;
  29342. readonly STATIC_DRAW: GLenum;
  29343. readonly STENCIL_ATTACHMENT: GLenum;
  29344. readonly STENCIL_BACK_FAIL: GLenum;
  29345. readonly STENCIL_BACK_FUNC: GLenum;
  29346. readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
  29347. readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
  29348. readonly STENCIL_BACK_REF: GLenum;
  29349. readonly STENCIL_BACK_VALUE_MASK: GLenum;
  29350. readonly STENCIL_BACK_WRITEMASK: GLenum;
  29351. readonly STENCIL_BITS: GLenum;
  29352. readonly STENCIL_BUFFER_BIT: GLenum;
  29353. readonly STENCIL_CLEAR_VALUE: GLenum;
  29354. readonly STENCIL_FAIL: GLenum;
  29355. readonly STENCIL_FUNC: GLenum;
  29356. readonly STENCIL_INDEX8: GLenum;
  29357. readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
  29358. readonly STENCIL_PASS_DEPTH_PASS: GLenum;
  29359. readonly STENCIL_REF: GLenum;
  29360. readonly STENCIL_TEST: GLenum;
  29361. readonly STENCIL_VALUE_MASK: GLenum;
  29362. readonly STENCIL_WRITEMASK: GLenum;
  29363. readonly STREAM_DRAW: GLenum;
  29364. readonly SUBPIXEL_BITS: GLenum;
  29365. readonly TEXTURE: GLenum;
  29366. readonly TEXTURE0: GLenum;
  29367. readonly TEXTURE1: GLenum;
  29368. readonly TEXTURE10: GLenum;
  29369. readonly TEXTURE11: GLenum;
  29370. readonly TEXTURE12: GLenum;
  29371. readonly TEXTURE13: GLenum;
  29372. readonly TEXTURE14: GLenum;
  29373. readonly TEXTURE15: GLenum;
  29374. readonly TEXTURE16: GLenum;
  29375. readonly TEXTURE17: GLenum;
  29376. readonly TEXTURE18: GLenum;
  29377. readonly TEXTURE19: GLenum;
  29378. readonly TEXTURE2: GLenum;
  29379. readonly TEXTURE20: GLenum;
  29380. readonly TEXTURE21: GLenum;
  29381. readonly TEXTURE22: GLenum;
  29382. readonly TEXTURE23: GLenum;
  29383. readonly TEXTURE24: GLenum;
  29384. readonly TEXTURE25: GLenum;
  29385. readonly TEXTURE26: GLenum;
  29386. readonly TEXTURE27: GLenum;
  29387. readonly TEXTURE28: GLenum;
  29388. readonly TEXTURE29: GLenum;
  29389. readonly TEXTURE3: GLenum;
  29390. readonly TEXTURE30: GLenum;
  29391. readonly TEXTURE31: GLenum;
  29392. readonly TEXTURE4: GLenum;
  29393. readonly TEXTURE5: GLenum;
  29394. readonly TEXTURE6: GLenum;
  29395. readonly TEXTURE7: GLenum;
  29396. readonly TEXTURE8: GLenum;
  29397. readonly TEXTURE9: GLenum;
  29398. readonly TEXTURE_2D: GLenum;
  29399. readonly TEXTURE_BINDING_2D: GLenum;
  29400. readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
  29401. readonly TEXTURE_CUBE_MAP: GLenum;
  29402. readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
  29403. readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
  29404. readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
  29405. readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
  29406. readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
  29407. readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
  29408. readonly TEXTURE_MAG_FILTER: GLenum;
  29409. readonly TEXTURE_MIN_FILTER: GLenum;
  29410. readonly TEXTURE_WRAP_S: GLenum;
  29411. readonly TEXTURE_WRAP_T: GLenum;
  29412. readonly TRIANGLES: GLenum;
  29413. readonly TRIANGLE_FAN: GLenum;
  29414. readonly TRIANGLE_STRIP: GLenum;
  29415. readonly UNPACK_ALIGNMENT: GLenum;
  29416. readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
  29417. readonly UNPACK_FLIP_Y_WEBGL: GLenum;
  29418. readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
  29419. readonly UNSIGNED_BYTE: GLenum;
  29420. readonly UNSIGNED_INT: GLenum;
  29421. readonly UNSIGNED_SHORT: GLenum;
  29422. readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
  29423. readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
  29424. readonly UNSIGNED_SHORT_5_6_5: GLenum;
  29425. readonly VALIDATE_STATUS: GLenum;
  29426. readonly VENDOR: GLenum;
  29427. readonly VERSION: GLenum;
  29428. readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
  29429. readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
  29430. readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
  29431. readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
  29432. readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
  29433. readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
  29434. readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
  29435. readonly VERTEX_SHADER: GLenum;
  29436. readonly VIEWPORT: GLenum;
  29437. readonly ZERO: GLenum;
  29438. }
  29439. interface WebGLRenderingContextOverloads {
  29440. bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
  29441. bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;
  29442. bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;
  29443. compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
  29444. compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
  29445. readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
  29446. texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
  29447. texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
  29448. texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
  29449. texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
  29450. uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
  29451. uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
  29452. uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
  29453. uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
  29454. uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
  29455. uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
  29456. uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
  29457. uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
  29458. uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
  29459. uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
  29460. uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
  29461. }
  29462. interface WebGLSampler {
  29463. }
  29464. declare var WebGLSampler: {
  29465. prototype: WebGLSampler;
  29466. new(): WebGLSampler;
  29467. };
  29468. /** 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. */
  29469. interface WebGLShader {
  29470. }
  29471. declare var WebGLShader: {
  29472. prototype: WebGLShader;
  29473. new(): WebGLShader;
  29474. };
  29475. /** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */
  29476. interface WebGLShaderPrecisionFormat {
  29477. readonly precision: GLint;
  29478. readonly rangeMax: GLint;
  29479. readonly rangeMin: GLint;
  29480. }
  29481. declare var WebGLShaderPrecisionFormat: {
  29482. prototype: WebGLShaderPrecisionFormat;
  29483. new(): WebGLShaderPrecisionFormat;
  29484. };
  29485. interface WebGLSync {
  29486. }
  29487. declare var WebGLSync: {
  29488. prototype: WebGLSync;
  29489. new(): WebGLSync;
  29490. };
  29491. /** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
  29492. interface WebGLTexture {
  29493. }
  29494. declare var WebGLTexture: {
  29495. prototype: WebGLTexture;
  29496. new(): WebGLTexture;
  29497. };
  29498. interface WebGLTransformFeedback {
  29499. }
  29500. declare var WebGLTransformFeedback: {
  29501. prototype: WebGLTransformFeedback;
  29502. new(): WebGLTransformFeedback;
  29503. };
  29504. /** Part of the WebGL API and represents the location of a uniform variable in a shader program. */
  29505. interface WebGLUniformLocation {
  29506. }
  29507. declare var WebGLUniformLocation: {
  29508. prototype: WebGLUniformLocation;
  29509. new(): WebGLUniformLocation;
  29510. };
  29511. interface WebGLVertexArrayObject {
  29512. }
  29513. declare var WebGLVertexArrayObject: {
  29514. prototype: WebGLVertexArrayObject;
  29515. new(): WebGLVertexArrayObject;
  29516. };
  29517. interface WebGLVertexArrayObjectOES {
  29518. }
  29519. interface WebSocketEventMap {
  29520. "close": CloseEvent;
  29521. "error": Event;
  29522. "message": MessageEvent;
  29523. "open": Event;
  29524. }
  29525. /** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */
  29526. interface WebSocket extends EventTarget {
  29527. /**
  29528. * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
  29529. *
  29530. * Can be set, to change how binary data is returned. The default is "blob".
  29531. */
  29532. binaryType: BinaryType;
  29533. /**
  29534. * 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.
  29535. *
  29536. * 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.)
  29537. */
  29538. readonly bufferedAmount: number;
  29539. /** Returns the extensions selected by the server, if any. */
  29540. readonly extensions: string;
  29541. onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
  29542. onerror: ((this: WebSocket, ev: Event) => any) | null;
  29543. onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
  29544. onopen: ((this: WebSocket, ev: Event) => any) | null;
  29545. /** 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. */
  29546. readonly protocol: string;
  29547. /** Returns the state of the WebSocket object's connection. It can have the values described below. */
  29548. readonly readyState: number;
  29549. /** Returns the URL that was used to establish the WebSocket connection. */
  29550. readonly url: string;
  29551. /** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */
  29552. close(code?: number, reason?: string): void;
  29553. /** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */
  29554. send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
  29555. readonly CLOSED: number;
  29556. readonly CLOSING: number;
  29557. readonly CONNECTING: number;
  29558. readonly OPEN: number;
  29559. addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  29560. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  29561. removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  29562. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  29563. }
  29564. declare var WebSocket: {
  29565. prototype: WebSocket;
  29566. new(url: string | URL, protocols?: string | string[]): WebSocket;
  29567. readonly CLOSED: number;
  29568. readonly CLOSING: number;
  29569. readonly CONNECTING: number;
  29570. readonly OPEN: number;
  29571. };
  29572. /** 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. */
  29573. interface WindowClient extends Client {
  29574. readonly focused: boolean;
  29575. readonly visibilityState: VisibilityState;
  29576. focus(): Promise<WindowClient>;
  29577. navigate(url: string | URL): Promise<WindowClient | null>;
  29578. }
  29579. declare var WindowClient: {
  29580. prototype: WindowClient;
  29581. new(): WindowClient;
  29582. };
  29583. interface WindowOrWorkerGlobalScope {
  29584. /** Available only in secure contexts. */
  29585. readonly caches: CacheStorage;
  29586. readonly crossOriginIsolated: boolean;
  29587. readonly crypto: Crypto;
  29588. readonly indexedDB: IDBFactory;
  29589. readonly isSecureContext: boolean;
  29590. readonly origin: string;
  29591. readonly performance: Performance;
  29592. atob(data: string): string;
  29593. btoa(data: string): string;
  29594. clearInterval(handle?: number): void;
  29595. clearTimeout(handle?: number): void;
  29596. createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
  29597. createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
  29598. fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
  29599. queueMicrotask(callback: VoidFunction): void;
  29600. setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
  29601. setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
  29602. }
  29603. interface WorkerEventMap extends AbstractWorkerEventMap {
  29604. "message": MessageEvent;
  29605. "messageerror": MessageEvent;
  29606. }
  29607. /** 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. */
  29608. interface Worker extends EventTarget, AbstractWorker {
  29609. onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
  29610. onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
  29611. /** 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. */
  29612. postMessage(message: any, transfer: Transferable[]): void;
  29613. postMessage(message: any, options?: StructuredSerializeOptions): void;
  29614. /** Aborts worker's associated global environment. */
  29615. terminate(): void;
  29616. addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  29617. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  29618. removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  29619. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  29620. }
  29621. declare var Worker: {
  29622. prototype: Worker;
  29623. new(scriptURL: string | URL, options?: WorkerOptions): Worker;
  29624. };
  29625. interface WorkerGlobalScopeEventMap {
  29626. "error": ErrorEvent;
  29627. "languagechange": Event;
  29628. "offline": Event;
  29629. "online": Event;
  29630. "rejectionhandled": PromiseRejectionEvent;
  29631. "unhandledrejection": PromiseRejectionEvent;
  29632. }
  29633. /** 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. */
  29634. interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
  29635. /** Returns workerGlobal's WorkerLocation object. */
  29636. readonly location: WorkerLocation;
  29637. /** Returns workerGlobal's WorkerNavigator object. */
  29638. readonly navigator: WorkerNavigator;
  29639. onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;
  29640. onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null;
  29641. onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
  29642. ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
  29643. onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
  29644. onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
  29645. /** Returns workerGlobal. */
  29646. readonly self: WorkerGlobalScope & typeof globalThis;
  29647. /** 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). */
  29648. importScripts(...urls: (string | URL)[]): void;
  29649. addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  29650. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  29651. removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  29652. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  29653. }
  29654. declare var WorkerGlobalScope: {
  29655. prototype: WorkerGlobalScope;
  29656. new(): WorkerGlobalScope;
  29657. };
  29658. /** 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. */
  29659. interface WorkerLocation {
  29660. readonly hash: string;
  29661. readonly host: string;
  29662. readonly hostname: string;
  29663. readonly href: string;
  29664. toString(): string;
  29665. readonly origin: string;
  29666. readonly pathname: string;
  29667. readonly port: string;
  29668. readonly protocol: string;
  29669. readonly search: string;
  29670. }
  29671. declare var WorkerLocation: {
  29672. prototype: WorkerLocation;
  29673. new(): WorkerLocation;
  29674. };
  29675. /** 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. */
  29676. interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorStorage {
  29677. readonly mediaCapabilities: MediaCapabilities;
  29678. }
  29679. declare var WorkerNavigator: {
  29680. prototype: WorkerNavigator;
  29681. new(): WorkerNavigator;
  29682. };
  29683. /** 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. */
  29684. interface WritableStream<W = any> {
  29685. readonly locked: boolean;
  29686. abort(reason?: any): Promise<void>;
  29687. close(): Promise<void>;
  29688. getWriter(): WritableStreamDefaultWriter<W>;
  29689. }
  29690. declare var WritableStream: {
  29691. prototype: WritableStream;
  29692. new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
  29693. };
  29694. /** 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. */
  29695. interface WritableStreamDefaultController {
  29696. error(e?: any): void;
  29697. }
  29698. declare var WritableStreamDefaultController: {
  29699. prototype: WritableStreamDefaultController;
  29700. new(): WritableStreamDefaultController;
  29701. };
  29702. /** 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. */
  29703. interface WritableStreamDefaultWriter<W = any> {
  29704. readonly closed: Promise<undefined>;
  29705. readonly desiredSize: number | null;
  29706. readonly ready: Promise<undefined>;
  29707. abort(reason?: any): Promise<void>;
  29708. close(): Promise<void>;
  29709. releaseLock(): void;
  29710. write(chunk?: W): Promise<void>;
  29711. }
  29712. declare var WritableStreamDefaultWriter: {
  29713. prototype: WritableStreamDefaultWriter;
  29714. new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
  29715. };
  29716. interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
  29717. "readystatechange": Event;
  29718. }
  29719. /** 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. */
  29720. interface XMLHttpRequest extends XMLHttpRequestEventTarget {
  29721. onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
  29722. /** Returns client's state. */
  29723. readonly readyState: number;
  29724. /** Returns the response body. */
  29725. readonly response: any;
  29726. /**
  29727. * Returns response as text.
  29728. *
  29729. * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
  29730. */
  29731. readonly responseText: string;
  29732. /**
  29733. * Returns the response type.
  29734. *
  29735. * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
  29736. *
  29737. * When set: setting to "document" is ignored if current global object is not a Window object.
  29738. *
  29739. * When set: throws an "InvalidStateError" DOMException if state is loading or done.
  29740. *
  29741. * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
  29742. */
  29743. responseType: XMLHttpRequestResponseType;
  29744. readonly responseURL: string;
  29745. readonly status: number;
  29746. readonly statusText: string;
  29747. /**
  29748. * 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).
  29749. *
  29750. * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
  29751. */
  29752. timeout: number;
  29753. /** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */
  29754. readonly upload: XMLHttpRequestUpload;
  29755. /**
  29756. * 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.
  29757. *
  29758. * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
  29759. */
  29760. withCredentials: boolean;
  29761. /** Cancels any network activity. */
  29762. abort(): void;
  29763. getAllResponseHeaders(): string;
  29764. getResponseHeader(name: string): string | null;
  29765. /**
  29766. * Sets the request method, request URL, and synchronous flag.
  29767. *
  29768. * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
  29769. *
  29770. * Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
  29771. *
  29772. * 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.
  29773. */
  29774. open(method: string, url: string | URL): void;
  29775. open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
  29776. /**
  29777. * Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.)
  29778. *
  29779. * Throws an "InvalidStateError" DOMException if state is loading or done.
  29780. */
  29781. overrideMimeType(mime: string): void;
  29782. /**
  29783. * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
  29784. *
  29785. * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
  29786. */
  29787. send(body?: XMLHttpRequestBodyInit | null): void;
  29788. /**
  29789. * Combines a header in author request headers.
  29790. *
  29791. * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
  29792. *
  29793. * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
  29794. */
  29795. setRequestHeader(name: string, value: string): void;
  29796. readonly DONE: number;
  29797. readonly HEADERS_RECEIVED: number;
  29798. readonly LOADING: number;
  29799. readonly OPENED: number;
  29800. readonly UNSENT: number;
  29801. addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  29802. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  29803. removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  29804. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  29805. }
  29806. declare var XMLHttpRequest: {
  29807. prototype: XMLHttpRequest;
  29808. new(): XMLHttpRequest;
  29809. readonly DONE: number;
  29810. readonly HEADERS_RECEIVED: number;
  29811. readonly LOADING: number;
  29812. readonly OPENED: number;
  29813. readonly UNSENT: number;
  29814. };
  29815. interface XMLHttpRequestEventTargetEventMap {
  29816. "abort": ProgressEvent<XMLHttpRequestEventTarget>;
  29817. "error": ProgressEvent<XMLHttpRequestEventTarget>;
  29818. "load": ProgressEvent<XMLHttpRequestEventTarget>;
  29819. "loadend": ProgressEvent<XMLHttpRequestEventTarget>;
  29820. "loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
  29821. "progress": ProgressEvent<XMLHttpRequestEventTarget>;
  29822. "timeout": ProgressEvent<XMLHttpRequestEventTarget>;
  29823. }
  29824. interface XMLHttpRequestEventTarget extends EventTarget {
  29825. onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
  29826. onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
  29827. onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
  29828. onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
  29829. onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
  29830. onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
  29831. ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
  29832. addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  29833. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  29834. removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  29835. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  29836. }
  29837. declare var XMLHttpRequestEventTarget: {
  29838. prototype: XMLHttpRequestEventTarget;
  29839. new(): XMLHttpRequestEventTarget;
  29840. };
  29841. interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
  29842. addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  29843. addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  29844. removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  29845. removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  29846. }
  29847. declare var XMLHttpRequestUpload: {
  29848. prototype: XMLHttpRequestUpload;
  29849. new(): XMLHttpRequestUpload;
  29850. };
  29851. interface Console {
  29852. assert(condition?: boolean, ...data: any[]): void;
  29853. clear(): void;
  29854. count(label?: string): void;
  29855. countReset(label?: string): void;
  29856. debug(...data: any[]): void;
  29857. dir(item?: any, options?: any): void;
  29858. dirxml(...data: any[]): void;
  29859. error(...data: any[]): void;
  29860. group(...data: any[]): void;
  29861. groupCollapsed(...data: any[]): void;
  29862. groupEnd(): void;
  29863. info(...data: any[]): void;
  29864. log(...data: any[]): void;
  29865. table(tabularData?: any, properties?: string[]): void;
  29866. time(label?: string): void;
  29867. timeEnd(label?: string): void;
  29868. timeLog(label?: string, ...data: any[]): void;
  29869. timeStamp(label?: string): void;
  29870. trace(...data: any[]): void;
  29871. warn(...data: any[]): void;
  29872. }
  29873. declare var console: Console;
  29874. declare namespace WebAssembly {
  29875. interface CompileError extends Error {
  29876. }
  29877. var CompileError: {
  29878. prototype: CompileError;
  29879. new(message?: string): CompileError;
  29880. (message?: string): CompileError;
  29881. };
  29882. interface Global {
  29883. value: any;
  29884. valueOf(): any;
  29885. }
  29886. var Global: {
  29887. prototype: Global;
  29888. new(descriptor: GlobalDescriptor, v?: any): Global;
  29889. };
  29890. interface Instance {
  29891. readonly exports: Exports;
  29892. }
  29893. var Instance: {
  29894. prototype: Instance;
  29895. new(module: Module, importObject?: Imports): Instance;
  29896. };
  29897. interface LinkError extends Error {
  29898. }
  29899. var LinkError: {
  29900. prototype: LinkError;
  29901. new(message?: string): LinkError;
  29902. (message?: string): LinkError;
  29903. };
  29904. interface Memory {
  29905. readonly buffer: ArrayBuffer;
  29906. grow(delta: number): number;
  29907. }
  29908. var Memory: {
  29909. prototype: Memory;
  29910. new(descriptor: MemoryDescriptor): Memory;
  29911. };
  29912. interface Module {
  29913. }
  29914. var Module: {
  29915. prototype: Module;
  29916. new(bytes: BufferSource): Module;
  29917. customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
  29918. exports(moduleObject: Module): ModuleExportDescriptor[];
  29919. imports(moduleObject: Module): ModuleImportDescriptor[];
  29920. };
  29921. interface RuntimeError extends Error {
  29922. }
  29923. var RuntimeError: {
  29924. prototype: RuntimeError;
  29925. new(message?: string): RuntimeError;
  29926. (message?: string): RuntimeError;
  29927. };
  29928. interface Table {
  29929. readonly length: number;
  29930. get(index: number): any;
  29931. grow(delta: number, value?: any): number;
  29932. set(index: number, value?: any): void;
  29933. }
  29934. var Table: {
  29935. prototype: Table;
  29936. new(descriptor: TableDescriptor, value?: any): Table;
  29937. };
  29938. interface GlobalDescriptor {
  29939. mutable?: boolean;
  29940. value: ValueType;
  29941. }
  29942. interface MemoryDescriptor {
  29943. initial: number;
  29944. maximum?: number;
  29945. shared?: boolean;
  29946. }
  29947. interface ModuleExportDescriptor {
  29948. kind: ImportExportKind;
  29949. name: string;
  29950. }
  29951. interface ModuleImportDescriptor {
  29952. kind: ImportExportKind;
  29953. module: string;
  29954. name: string;
  29955. }
  29956. interface TableDescriptor {
  29957. element: TableKind;
  29958. initial: number;
  29959. maximum?: number;
  29960. }
  29961. interface WebAssemblyInstantiatedSource {
  29962. instance: Instance;
  29963. module: Module;
  29964. }
  29965. type ImportExportKind = "function" | "global" | "memory" | "table";
  29966. type TableKind = "anyfunc" | "externref";
  29967. type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
  29968. type ExportValue = Function | Global | Memory | Table;
  29969. type Exports = Record<string, ExportValue>;
  29970. type ImportValue = ExportValue | number;
  29971. type Imports = Record<string, ModuleImports>;
  29972. type ModuleImports = Record<string, ImportValue>;
  29973. function compile(bytes: BufferSource): Promise<Module>;
  29974. function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
  29975. function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
  29976. function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
  29977. function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
  29978. function validate(bytes: BufferSource): boolean;
  29979. }
  29980. interface FrameRequestCallback {
  29981. (time: DOMHighResTimeStamp): void;
  29982. }
  29983. interface OnErrorEventHandlerNonNull {
  29984. (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
  29985. }
  29986. interface PerformanceObserverCallback {
  29987. (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
  29988. }
  29989. interface QueuingStrategySize<T = any> {
  29990. (chunk: T): number;
  29991. }
  29992. interface TransformerFlushCallback<O> {
  29993. (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
  29994. }
  29995. interface TransformerStartCallback<O> {
  29996. (controller: TransformStreamDefaultController<O>): any;
  29997. }
  29998. interface TransformerTransformCallback<I, O> {
  29999. (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
  30000. }
  30001. interface UnderlyingSinkAbortCallback {
  30002. (reason?: any): void | PromiseLike<void>;
  30003. }
  30004. interface UnderlyingSinkCloseCallback {
  30005. (): void | PromiseLike<void>;
  30006. }
  30007. interface UnderlyingSinkStartCallback {
  30008. (controller: WritableStreamDefaultController): any;
  30009. }
  30010. interface UnderlyingSinkWriteCallback<W> {
  30011. (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
  30012. }
  30013. interface UnderlyingSourceCancelCallback {
  30014. (reason?: any): void | PromiseLike<void>;
  30015. }
  30016. interface UnderlyingSourcePullCallback<R> {
  30017. (controller: ReadableStreamController<R>): void | PromiseLike<void>;
  30018. }
  30019. interface UnderlyingSourceStartCallback<R> {
  30020. (controller: ReadableStreamController<R>): any;
  30021. }
  30022. interface VoidFunction {
  30023. (): void;
  30024. }
  30025. /** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */
  30026. declare var name: string;
  30027. declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
  30028. declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
  30029. /** Aborts dedicatedWorkerGlobal. */
  30030. declare function close(): void;
  30031. /** 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. */
  30032. declare function postMessage(message: any, transfer: Transferable[]): void;
  30033. declare function postMessage(message: any, options?: StructuredSerializeOptions): void;
  30034. /** 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. */
  30035. declare function dispatchEvent(event: Event): boolean;
  30036. /** Returns workerGlobal's WorkerLocation object. */
  30037. declare var location: WorkerLocation;
  30038. /** Returns workerGlobal's WorkerNavigator object. */
  30039. declare var navigator: WorkerNavigator;
  30040. declare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;
  30041. declare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
  30042. declare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
  30043. declare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
  30044. declare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
  30045. declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
  30046. /** Returns workerGlobal. */
  30047. declare var self: WorkerGlobalScope & typeof globalThis;
  30048. /** 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). */
  30049. declare function importScripts(...urls: (string | URL)[]): void;
  30050. /** 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. */
  30051. declare function dispatchEvent(event: Event): boolean;
  30052. declare var fonts: FontFaceSet;
  30053. /** Available only in secure contexts. */
  30054. declare var caches: CacheStorage;
  30055. declare var crossOriginIsolated: boolean;
  30056. declare var crypto: Crypto;
  30057. declare var indexedDB: IDBFactory;
  30058. declare var isSecureContext: boolean;
  30059. declare var origin: string;
  30060. declare var performance: Performance;
  30061. declare function atob(data: string): string;
  30062. declare function btoa(data: string): string;
  30063. declare function clearInterval(handle?: number): void;
  30064. declare function clearTimeout(handle?: number): void;
  30065. declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
  30066. declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
  30067. declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
  30068. declare function queueMicrotask(callback: VoidFunction): void;
  30069. declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
  30070. declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
  30071. declare function cancelAnimationFrame(handle: number): void;
  30072. declare function requestAnimationFrame(callback: FrameRequestCallback): number;
  30073. declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
  30074. declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  30075. declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
  30076. declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
  30077. type AlgorithmIdentifier = Algorithm | string;
  30078. type BigInteger = Uint8Array;
  30079. type BinaryData = ArrayBuffer | ArrayBufferView;
  30080. type BlobPart = BufferSource | Blob | string;
  30081. type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
  30082. type BufferSource = ArrayBufferView | ArrayBuffer;
  30083. type CanvasImageSource = ImageBitmap | OffscreenCanvas;
  30084. type DOMHighResTimeStamp = number;
  30085. type DOMTimeStamp = number;
  30086. type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
  30087. type Float32List = Float32Array | GLfloat[];
  30088. type FormDataEntryValue = File | string;
  30089. type GLbitfield = number;
  30090. type GLboolean = boolean;
  30091. type GLclampf = number;
  30092. type GLenum = number;
  30093. type GLfloat = number;
  30094. type GLint = number;
  30095. type GLint64 = number;
  30096. type GLintptr = number;
  30097. type GLsizei = number;
  30098. type GLsizeiptr = number;
  30099. type GLuint = number;
  30100. type GLuint64 = number;
  30101. type HashAlgorithmIdentifier = AlgorithmIdentifier;
  30102. type HeadersInit = string[][] | Record<string, string> | Headers;
  30103. type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
  30104. type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
  30105. type Int32List = Int32Array | GLint[];
  30106. type MessageEventSource = MessagePort | ServiceWorker;
  30107. type NamedCurve = string;
  30108. type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
  30109. type PerformanceEntryList = PerformanceEntry[];
  30110. type PushMessageDataInit = BufferSource | string;
  30111. type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
  30112. type ReadableStreamDefaultReadResult<T> = ReadableStreamDefaultReadValueResult<T> | ReadableStreamDefaultReadDoneResult;
  30113. type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
  30114. type RequestInfo = Request | string;
  30115. type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
  30116. type TimerHandler = string | Function;
  30117. type Transferable = ArrayBuffer | MessagePort | ImageBitmap;
  30118. type Uint32List = Uint32Array | GLuint[];
  30119. type VibratePattern = number | number[];
  30120. type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
  30121. type BinaryType = "arraybuffer" | "blob";
  30122. type ClientTypes = "all" | "sharedworker" | "window" | "worker";
  30123. type ColorGamut = "p3" | "rec2020" | "srgb";
  30124. type ColorSpaceConversion = "default" | "none";
  30125. type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
  30126. type EndingType = "native" | "transparent";
  30127. type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
  30128. type FontFaceSetLoadStatus = "loaded" | "loading";
  30129. type FrameType = "auxiliary" | "nested" | "none" | "top-level";
  30130. type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
  30131. type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
  30132. type IDBRequestReadyState = "done" | "pending";
  30133. type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
  30134. type ImageOrientation = "flipY" | "none";
  30135. type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
  30136. type KeyType = "private" | "public" | "secret";
  30137. type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
  30138. type MediaDecodingType = "file" | "media-source" | "webrtc";
  30139. type MediaEncodingType = "record" | "webrtc";
  30140. type NotificationDirection = "auto" | "ltr" | "rtl";
  30141. type NotificationPermission = "default" | "denied" | "granted";
  30142. type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
  30143. type PermissionState = "denied" | "granted" | "prompt";
  30144. type PredefinedColorSpace = "display-p3" | "srgb";
  30145. type PremultiplyAlpha = "default" | "none" | "premultiply";
  30146. type PushEncryptionKeyName = "auth" | "p256dh";
  30147. type PushPermissionState = "denied" | "granted" | "prompt";
  30148. type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
  30149. type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
  30150. type RequestCredentials = "include" | "omit" | "same-origin";
  30151. type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
  30152. type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
  30153. type RequestRedirect = "error" | "follow" | "manual";
  30154. type ResizeQuality = "high" | "low" | "medium" | "pixelated";
  30155. type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
  30156. type SecurityPolicyViolationEventDisposition = "enforce" | "report";
  30157. type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
  30158. type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
  30159. type TransferFunction = "hlg" | "pq" | "srgb";
  30160. type VisibilityState = "hidden" | "visible";
  30161. type WebGLPowerPreference = "default" | "high-performance" | "low-power";
  30162. type WorkerType = "classic" | "module";
  30163. type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
  30164. `,Oi["lib.webworker.importscripts.d.ts"]=`/*! *****************************************************************************
  30165. Copyright (c) Microsoft Corporation. All rights reserved.
  30166. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  30167. this file except in compliance with the License. You may obtain a copy of the
  30168. License at http://www.apache.org/licenses/LICENSE-2.0
  30169. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  30170. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  30171. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  30172. MERCHANTABLITY OR NON-INFRINGEMENT.
  30173. See the Apache Version 2.0 License for specific language governing permissions
  30174. and limitations under the License.
  30175. ***************************************************************************** */
  30176. /// <reference no-default-lib="true"/>
  30177. /////////////////////////////
  30178. /// WorkerGlobalScope APIs
  30179. /////////////////////////////
  30180. // These are only available in a Web Worker
  30181. declare function importScripts(...urls: string[]): void;
  30182. `,Oi["lib.webworker.iterable.d.ts"]=`/*! *****************************************************************************
  30183. Copyright (c) Microsoft Corporation. All rights reserved.
  30184. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  30185. this file except in compliance with the License. You may obtain a copy of the
  30186. License at http://www.apache.org/licenses/LICENSE-2.0
  30187. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  30188. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  30189. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  30190. MERCHANTABLITY OR NON-INFRINGEMENT.
  30191. See the Apache Version 2.0 License for specific language governing permissions
  30192. and limitations under the License.
  30193. ***************************************************************************** */
  30194. /// <reference no-default-lib="true"/>
  30195. /////////////////////////////
  30196. /// Worker Iterable APIs
  30197. /////////////////////////////
  30198. interface Cache {
  30199. addAll(requests: Iterable<RequestInfo>): Promise<void>;
  30200. }
  30201. interface DOMStringList {
  30202. [Symbol.iterator](): IterableIterator<string>;
  30203. }
  30204. interface FileList {
  30205. [Symbol.iterator](): IterableIterator<File>;
  30206. }
  30207. interface FontFaceSet extends Set<FontFace> {
  30208. }
  30209. interface FormData {
  30210. [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
  30211. /** Returns an array of key, value pairs for every entry in the list. */
  30212. entries(): IterableIterator<[string, FormDataEntryValue]>;
  30213. /** Returns a list of keys in the list. */
  30214. keys(): IterableIterator<string>;
  30215. /** Returns a list of values in the list. */
  30216. values(): IterableIterator<FormDataEntryValue>;
  30217. }
  30218. interface Headers {
  30219. [Symbol.iterator](): IterableIterator<[string, string]>;
  30220. /** Returns an iterator allowing to go through all key/value pairs contained in this object. */
  30221. entries(): IterableIterator<[string, string]>;
  30222. /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
  30223. keys(): IterableIterator<string>;
  30224. /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
  30225. values(): IterableIterator<string>;
  30226. }
  30227. interface IDBDatabase {
  30228. /** 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. */
  30229. transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
  30230. }
  30231. interface IDBObjectStore {
  30232. /**
  30233. * 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.
  30234. *
  30235. * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
  30236. */
  30237. createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
  30238. }
  30239. interface MessageEvent<T = any> {
  30240. /** @deprecated */
  30241. initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
  30242. }
  30243. interface SubtleCrypto {
  30244. deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
  30245. generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
  30246. generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
  30247. generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
  30248. importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
  30249. importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
  30250. 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>;
  30251. }
  30252. interface URLSearchParams {
  30253. [Symbol.iterator](): IterableIterator<[string, string]>;
  30254. /** Returns an array of key, value pairs for every entry in the search params. */
  30255. entries(): IterableIterator<[string, string]>;
  30256. /** Returns a list of keys in the search params. */
  30257. keys(): IterableIterator<string>;
  30258. /** Returns a list of values in the search params. */
  30259. values(): IterableIterator<string>;
  30260. }
  30261. interface WEBGL_draw_buffers {
  30262. drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
  30263. }
  30264. interface WebGL2RenderingContextBase {
  30265. clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
  30266. clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
  30267. clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
  30268. drawBuffers(buffers: Iterable<GLenum>): void;
  30269. getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
  30270. getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
  30271. invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
  30272. invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
  30273. transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
  30274. uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
  30275. uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
  30276. uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
  30277. uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
  30278. uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  30279. uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  30280. uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  30281. uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  30282. uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  30283. uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  30284. vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
  30285. vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
  30286. }
  30287. interface WebGL2RenderingContextOverloads {
  30288. uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  30289. uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
  30290. uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  30291. uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
  30292. uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  30293. uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
  30294. uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  30295. uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
  30296. uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  30297. uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  30298. uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
  30299. }
  30300. interface WebGLRenderingContextBase {
  30301. vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
  30302. vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
  30303. vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
  30304. vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
  30305. }
  30306. interface WebGLRenderingContextOverloads {
  30307. uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
  30308. uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
  30309. uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
  30310. uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
  30311. uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
  30312. uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
  30313. uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
  30314. uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
  30315. uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
  30316. uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
  30317. uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
  30318. }
  30319. `;function cc(e){return typeof e=="string"?/^file:\/\/\//.test(e)?!!Oi[e.substr(8)]:!1:e.path.indexOf("/lib.")===0?!!Oi[e.path.slice(1)]:!1}var Rg=class{constructor(e,n){Iv(this,"_ctx");Iv(this,"_extraLibs",Object.create(null));Iv(this,"_languageService",sD(this));Iv(this,"_compilerOptions");Iv(this,"_inlayHintsOptions");this._ctx=e,this._compilerOptions=n.compilerOptions,this._extraLibs=n.extraLibs,this._inlayHintsOptions=n.inlayHintsOptions}getCompilationSettings(){return this._compilerOptions}getLanguageService(){return this._languageService}getExtraLibs(){return this._extraLibs}getScriptFileNames(){return this._ctx.getMirrorModels().map(f=>f.uri).filter(f=>!cc(f)).map(f=>f.toString()).concat(Object.keys(this._extraLibs))}_getModel(e){let n=this._ctx.getMirrorModels();for(let f=0;f<n.length;f++)if(n[f].uri.toString()===e)return n[f];return null}getScriptVersion(e){let n=this._getModel(e);return n?n.version.toString():this.isDefaultLibFileName(e)?"1":e in this._extraLibs?String(this._extraLibs[e].version):""}async getScriptText(e){return this._getScriptText(e)}_getScriptText(e){let n,f=this._getModel(e);const p="lib."+e+".d.ts";if(f)n=f.getValue();else if(e in Oi)n=Oi[e];else if(p in Oi)n=Oi[p];else if(e in this._extraLibs)n=this._extraLibs[e].content;else return;return n}getScriptSnapshot(e){const n=this._getScriptText(e);if(n!==void 0)return{getText:(f,p)=>n.substring(f,p),getLength:()=>n.length,getChangeRange:()=>{}}}getScriptKind(e){switch(e.substr(e.lastIndexOf(".")+1)){case"ts":return Mm.TS;case"tsx":return Mm.TSX;case"js":return Mm.JS;case"jsx":return Mm.JSX;default:return this.getCompilationSettings().allowJs?Mm.JS:Mm.TS}}getCurrentDirectory(){return""}getDefaultLibFileName(e){switch(e.target){case 99:const n="lib.esnext.full.d.ts";if(n in Oi||n in this._extraLibs)return n;case 7:case 6:case 5:case 4:case 3:case 2:default:const f=`lib.es${2013+(e.target||99)}.full.d.ts`;return f in Oi||f in this._extraLibs?f:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}isDefaultLibFileName(e){return e===this.getDefaultLibFileName(this._compilerOptions)}async getLibFiles(){return Oi}static clearFiles(e){const n=[];for(const f of e){const p={...f};if(p.file=p.file?{fileName:p.file.fileName}:void 0,f.relatedInformation){p.relatedInformation=[];for(const a of f.relatedInformation){const d={...a};d.file=d.file?{fileName:d.file.fileName}:void 0,p.relatedInformation.push(d)}}n.push(p)}return n}async getSyntacticDiagnostics(e){if(cc(e))return[];const n=this._languageService.getSyntacticDiagnostics(e);return Rg.clearFiles(n)}async getSemanticDiagnostics(e){if(cc(e))return[];const n=this._languageService.getSemanticDiagnostics(e);return Rg.clearFiles(n)}async getSuggestionDiagnostics(e){if(cc(e))return[];const n=this._languageService.getSuggestionDiagnostics(e);return Rg.clearFiles(n)}async getCompilerOptionsDiagnostics(e){if(cc(e))return[];const n=this._languageService.getCompilerOptionsDiagnostics();return Rg.clearFiles(n)}async getCompletionsAtPosition(e,n){if(!cc(e))return this._languageService.getCompletionsAtPosition(e,n,void 0)}async getCompletionEntryDetails(e,n,f){return this._languageService.getCompletionEntryDetails(e,n,f,void 0,void 0,void 0,void 0)}async getSignatureHelpItems(e,n,f){if(!cc(e))return this._languageService.getSignatureHelpItems(e,n,f)}async getQuickInfoAtPosition(e,n){if(!cc(e))return this._languageService.getQuickInfoAtPosition(e,n)}async getOccurrencesAtPosition(e,n){if(!cc(e))return this._languageService.getOccurrencesAtPosition(e,n)}async getDefinitionAtPosition(e,n){if(!cc(e))return this._languageService.getDefinitionAtPosition(e,n)}async getReferencesAtPosition(e,n){if(!cc(e))return this._languageService.getReferencesAtPosition(e,n)}async getNavigationBarItems(e){return cc(e)?[]:this._languageService.getNavigationBarItems(e)}async getFormattingEditsForDocument(e,n){return cc(e)?[]:this._languageService.getFormattingEditsForDocument(e,n)}async getFormattingEditsForRange(e,n,f,p){return cc(e)?[]:this._languageService.getFormattingEditsForRange(e,n,f,p)}async getFormattingEditsAfterKeystroke(e,n,f,p){return cc(e)?[]:this._languageService.getFormattingEditsAfterKeystroke(e,n,f,p)}async findRenameLocations(e,n,f,p,a){if(!cc(e))return this._languageService.findRenameLocations(e,n,f,p,a)}async getRenameInfo(e,n,f){return cc(e)?{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}:this._languageService.getRenameInfo(e,n,f)}async getEmitOutput(e){return cc(e)?{outputFiles:[],emitSkipped:!0}:this._languageService.getEmitOutput(e)}async getCodeFixesAtPosition(e,n,f,p,a){if(cc(e))return[];const d={};try{return this._languageService.getCodeFixesAtPosition(e,n,f,p,a,d)}catch{return[]}}async updateExtraLibs(e){this._extraLibs=e}async provideInlayHints(e,n,f){if(cc(e))return[];const p=this._inlayHintsOptions??{},a={start:n,length:f-n};try{return this._languageService.provideInlayHints(e,a,p)}catch{return[]}}};function gk(e,n){let f=Rg;if(n.customWorkerPath)if(typeof importScripts>"u")console.warn("Monaco is not using webworkers for background tasks, and that is needed to support the customWorkerPath flag");else{importScripts(n.customWorkerPath);const p=self.customTSWorkerFactory;if(!p)throw new Error(`The script at ${n.customWorkerPath} does not add customTSWorkerFactory to self`);f=p(Rg,aD,Oi)}return new f(e,n)}globalThis.ts=lD,self.onmessage=()=>{nD((e,n)=>gk(e,n))};/*! *****************************************************************************
  30320. Copyright (c) Microsoft Corporation. All rights reserved.
  30321. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  30322. this file except in compliance with the License. You may obtain a copy of the
  30323. License at http://www.apache.org/licenses/LICENSE-2.0
  30324. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  30325. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  30326. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  30327. MERCHANTABLITY OR NON-INFRINGEMENT.
  30328. See the Apache Version 2.0 License for specific language governing permissions
  30329. and limitations under the License.
  30330. ***************************************************************************** */})();