react-dom-server-legacy.node.production.js 237 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692
  1. /**
  2. * @license React
  3. * react-dom-server-legacy.node.production.js
  4. *
  5. * Copyright (c) Meta Platforms, Inc. and affiliates.
  6. *
  7. * This source code is licensed under the MIT license found in the
  8. * LICENSE file in the root directory of this source tree.
  9. */
  10. /*
  11. JS Implementation of MurmurHash3 (r136) (as of May 20, 2011)
  12. Copyright (c) 2011 Gary Court
  13. Permission is hereby granted, free of charge, to any person obtaining a copy
  14. of this software and associated documentation files (the "Software"), to deal
  15. in the Software without restriction, including without limitation the rights
  16. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  17. copies of the Software, and to permit persons to whom the Software is
  18. furnished to do so, subject to the following conditions:
  19. The above copyright notice and this permission notice shall be included in
  20. all copies or substantial portions of the Software.
  21. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  22. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  23. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  24. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  25. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  26. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  27. SOFTWARE.
  28. */
  29. "use strict";
  30. var React = require("react"),
  31. ReactDOM = require("react-dom"),
  32. REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
  33. REACT_PORTAL_TYPE = Symbol.for("react.portal"),
  34. REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
  35. REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
  36. REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
  37. REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
  38. REACT_CONTEXT_TYPE = Symbol.for("react.context"),
  39. REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
  40. REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
  41. REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
  42. REACT_MEMO_TYPE = Symbol.for("react.memo"),
  43. REACT_LAZY_TYPE = Symbol.for("react.lazy"),
  44. REACT_SCOPE_TYPE = Symbol.for("react.scope"),
  45. REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
  46. REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
  47. REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
  48. REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
  49. MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
  50. function getIteratorFn(maybeIterable) {
  51. if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
  52. maybeIterable =
  53. (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
  54. maybeIterable["@@iterator"];
  55. return "function" === typeof maybeIterable ? maybeIterable : null;
  56. }
  57. var isArrayImpl = Array.isArray;
  58. function murmurhash3_32_gc(key, seed) {
  59. var remainder = key.length & 3;
  60. var bytes = key.length - remainder;
  61. var h1 = seed;
  62. for (seed = 0; seed < bytes; ) {
  63. var k1 =
  64. (key.charCodeAt(seed) & 255) |
  65. ((key.charCodeAt(++seed) & 255) << 8) |
  66. ((key.charCodeAt(++seed) & 255) << 16) |
  67. ((key.charCodeAt(++seed) & 255) << 24);
  68. ++seed;
  69. k1 =
  70. (3432918353 * (k1 & 65535) +
  71. (((3432918353 * (k1 >>> 16)) & 65535) << 16)) &
  72. 4294967295;
  73. k1 = (k1 << 15) | (k1 >>> 17);
  74. k1 =
  75. (461845907 * (k1 & 65535) + (((461845907 * (k1 >>> 16)) & 65535) << 16)) &
  76. 4294967295;
  77. h1 ^= k1;
  78. h1 = (h1 << 13) | (h1 >>> 19);
  79. h1 = (5 * (h1 & 65535) + (((5 * (h1 >>> 16)) & 65535) << 16)) & 4294967295;
  80. h1 = (h1 & 65535) + 27492 + ((((h1 >>> 16) + 58964) & 65535) << 16);
  81. }
  82. k1 = 0;
  83. switch (remainder) {
  84. case 3:
  85. k1 ^= (key.charCodeAt(seed + 2) & 255) << 16;
  86. case 2:
  87. k1 ^= (key.charCodeAt(seed + 1) & 255) << 8;
  88. case 1:
  89. (k1 ^= key.charCodeAt(seed) & 255),
  90. (k1 =
  91. (3432918353 * (k1 & 65535) +
  92. (((3432918353 * (k1 >>> 16)) & 65535) << 16)) &
  93. 4294967295),
  94. (k1 = (k1 << 15) | (k1 >>> 17)),
  95. (h1 ^=
  96. (461845907 * (k1 & 65535) +
  97. (((461845907 * (k1 >>> 16)) & 65535) << 16)) &
  98. 4294967295);
  99. }
  100. h1 ^= key.length;
  101. h1 ^= h1 >>> 16;
  102. h1 =
  103. (2246822507 * (h1 & 65535) + (((2246822507 * (h1 >>> 16)) & 65535) << 16)) &
  104. 4294967295;
  105. h1 ^= h1 >>> 13;
  106. h1 =
  107. (3266489909 * (h1 & 65535) + (((3266489909 * (h1 >>> 16)) & 65535) << 16)) &
  108. 4294967295;
  109. return (h1 ^ (h1 >>> 16)) >>> 0;
  110. }
  111. var assign = Object.assign,
  112. hasOwnProperty = Object.prototype.hasOwnProperty,
  113. VALID_ATTRIBUTE_NAME_REGEX = RegExp(
  114. "^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"
  115. ),
  116. illegalAttributeNameCache = {},
  117. validatedAttributeNameCache = {};
  118. function isAttributeNameSafe(attributeName) {
  119. if (hasOwnProperty.call(validatedAttributeNameCache, attributeName))
  120. return !0;
  121. if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return !1;
  122. if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName))
  123. return (validatedAttributeNameCache[attributeName] = !0);
  124. illegalAttributeNameCache[attributeName] = !0;
  125. return !1;
  126. }
  127. var unitlessNumbers = new Set(
  128. "animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(
  129. " "
  130. )
  131. ),
  132. aliases = new Map([
  133. ["acceptCharset", "accept-charset"],
  134. ["htmlFor", "for"],
  135. ["httpEquiv", "http-equiv"],
  136. ["crossOrigin", "crossorigin"],
  137. ["accentHeight", "accent-height"],
  138. ["alignmentBaseline", "alignment-baseline"],
  139. ["arabicForm", "arabic-form"],
  140. ["baselineShift", "baseline-shift"],
  141. ["capHeight", "cap-height"],
  142. ["clipPath", "clip-path"],
  143. ["clipRule", "clip-rule"],
  144. ["colorInterpolation", "color-interpolation"],
  145. ["colorInterpolationFilters", "color-interpolation-filters"],
  146. ["colorProfile", "color-profile"],
  147. ["colorRendering", "color-rendering"],
  148. ["dominantBaseline", "dominant-baseline"],
  149. ["enableBackground", "enable-background"],
  150. ["fillOpacity", "fill-opacity"],
  151. ["fillRule", "fill-rule"],
  152. ["floodColor", "flood-color"],
  153. ["floodOpacity", "flood-opacity"],
  154. ["fontFamily", "font-family"],
  155. ["fontSize", "font-size"],
  156. ["fontSizeAdjust", "font-size-adjust"],
  157. ["fontStretch", "font-stretch"],
  158. ["fontStyle", "font-style"],
  159. ["fontVariant", "font-variant"],
  160. ["fontWeight", "font-weight"],
  161. ["glyphName", "glyph-name"],
  162. ["glyphOrientationHorizontal", "glyph-orientation-horizontal"],
  163. ["glyphOrientationVertical", "glyph-orientation-vertical"],
  164. ["horizAdvX", "horiz-adv-x"],
  165. ["horizOriginX", "horiz-origin-x"],
  166. ["imageRendering", "image-rendering"],
  167. ["letterSpacing", "letter-spacing"],
  168. ["lightingColor", "lighting-color"],
  169. ["markerEnd", "marker-end"],
  170. ["markerMid", "marker-mid"],
  171. ["markerStart", "marker-start"],
  172. ["overlinePosition", "overline-position"],
  173. ["overlineThickness", "overline-thickness"],
  174. ["paintOrder", "paint-order"],
  175. ["panose-1", "panose-1"],
  176. ["pointerEvents", "pointer-events"],
  177. ["renderingIntent", "rendering-intent"],
  178. ["shapeRendering", "shape-rendering"],
  179. ["stopColor", "stop-color"],
  180. ["stopOpacity", "stop-opacity"],
  181. ["strikethroughPosition", "strikethrough-position"],
  182. ["strikethroughThickness", "strikethrough-thickness"],
  183. ["strokeDasharray", "stroke-dasharray"],
  184. ["strokeDashoffset", "stroke-dashoffset"],
  185. ["strokeLinecap", "stroke-linecap"],
  186. ["strokeLinejoin", "stroke-linejoin"],
  187. ["strokeMiterlimit", "stroke-miterlimit"],
  188. ["strokeOpacity", "stroke-opacity"],
  189. ["strokeWidth", "stroke-width"],
  190. ["textAnchor", "text-anchor"],
  191. ["textDecoration", "text-decoration"],
  192. ["textRendering", "text-rendering"],
  193. ["transformOrigin", "transform-origin"],
  194. ["underlinePosition", "underline-position"],
  195. ["underlineThickness", "underline-thickness"],
  196. ["unicodeBidi", "unicode-bidi"],
  197. ["unicodeRange", "unicode-range"],
  198. ["unitsPerEm", "units-per-em"],
  199. ["vAlphabetic", "v-alphabetic"],
  200. ["vHanging", "v-hanging"],
  201. ["vIdeographic", "v-ideographic"],
  202. ["vMathematical", "v-mathematical"],
  203. ["vectorEffect", "vector-effect"],
  204. ["vertAdvY", "vert-adv-y"],
  205. ["vertOriginX", "vert-origin-x"],
  206. ["vertOriginY", "vert-origin-y"],
  207. ["wordSpacing", "word-spacing"],
  208. ["writingMode", "writing-mode"],
  209. ["xmlnsXlink", "xmlns:xlink"],
  210. ["xHeight", "x-height"]
  211. ]),
  212. matchHtmlRegExp = /["'&<>]/;
  213. function escapeTextForBrowser(text) {
  214. if (
  215. "boolean" === typeof text ||
  216. "number" === typeof text ||
  217. "bigint" === typeof text
  218. )
  219. return "" + text;
  220. text = "" + text;
  221. var match = matchHtmlRegExp.exec(text);
  222. if (match) {
  223. var html = "",
  224. index,
  225. lastIndex = 0;
  226. for (index = match.index; index < text.length; index++) {
  227. switch (text.charCodeAt(index)) {
  228. case 34:
  229. match = "&quot;";
  230. break;
  231. case 38:
  232. match = "&amp;";
  233. break;
  234. case 39:
  235. match = "&#x27;";
  236. break;
  237. case 60:
  238. match = "&lt;";
  239. break;
  240. case 62:
  241. match = "&gt;";
  242. break;
  243. default:
  244. continue;
  245. }
  246. lastIndex !== index && (html += text.slice(lastIndex, index));
  247. lastIndex = index + 1;
  248. html += match;
  249. }
  250. text = lastIndex !== index ? html + text.slice(lastIndex, index) : html;
  251. }
  252. return text;
  253. }
  254. var uppercasePattern = /([A-Z])/g,
  255. msPattern = /^ms-/,
  256. isJavaScriptProtocol =
  257. /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;
  258. function sanitizeURL(url) {
  259. return isJavaScriptProtocol.test("" + url)
  260. ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')"
  261. : url;
  262. }
  263. var ReactSharedInternals =
  264. React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
  265. ReactDOMSharedInternals =
  266. ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
  267. sharedNotPendingObject = {
  268. pending: !1,
  269. data: null,
  270. method: null,
  271. action: null
  272. },
  273. previousDispatcher = ReactDOMSharedInternals.d;
  274. ReactDOMSharedInternals.d = {
  275. f: previousDispatcher.f,
  276. r: previousDispatcher.r,
  277. D: prefetchDNS,
  278. C: preconnect,
  279. L: preload,
  280. m: preloadModule,
  281. X: preinitScript,
  282. S: preinitStyle,
  283. M: preinitModuleScript
  284. };
  285. var PRELOAD_NO_CREDS = [],
  286. currentlyFlushingRenderState = null,
  287. scriptRegex = /(<\/|<)(s)(cript)/gi;
  288. function scriptReplacer(match, prefix, s, suffix) {
  289. return "" + prefix + ("s" === s ? "\\u0073" : "\\u0053") + suffix;
  290. }
  291. function createResumableState(
  292. identifierPrefix,
  293. externalRuntimeConfig,
  294. bootstrapScriptContent,
  295. bootstrapScripts,
  296. bootstrapModules
  297. ) {
  298. return {
  299. idPrefix: void 0 === identifierPrefix ? "" : identifierPrefix,
  300. nextFormID: 0,
  301. streamingFormat: 0,
  302. bootstrapScriptContent: bootstrapScriptContent,
  303. bootstrapScripts: bootstrapScripts,
  304. bootstrapModules: bootstrapModules,
  305. instructions: 0,
  306. hasBody: !1,
  307. hasHtml: !1,
  308. unknownResources: {},
  309. dnsResources: {},
  310. connectResources: { default: {}, anonymous: {}, credentials: {} },
  311. imageResources: {},
  312. styleResources: {},
  313. scriptResources: {},
  314. moduleUnknownResources: {},
  315. moduleScriptResources: {}
  316. };
  317. }
  318. function createFormatContext(
  319. insertionMode,
  320. selectedValue,
  321. tagScope,
  322. viewTransition
  323. ) {
  324. return {
  325. insertionMode: insertionMode,
  326. selectedValue: selectedValue,
  327. tagScope: tagScope,
  328. viewTransition: viewTransition
  329. };
  330. }
  331. function getChildFormatContext(parentContext, type, props) {
  332. var subtreeScope = parentContext.tagScope & -25;
  333. switch (type) {
  334. case "noscript":
  335. return createFormatContext(2, null, subtreeScope | 1, null);
  336. case "select":
  337. return createFormatContext(
  338. 2,
  339. null != props.value ? props.value : props.defaultValue,
  340. subtreeScope,
  341. null
  342. );
  343. case "svg":
  344. return createFormatContext(4, null, subtreeScope, null);
  345. case "picture":
  346. return createFormatContext(2, null, subtreeScope | 2, null);
  347. case "math":
  348. return createFormatContext(5, null, subtreeScope, null);
  349. case "foreignObject":
  350. return createFormatContext(2, null, subtreeScope, null);
  351. case "table":
  352. return createFormatContext(6, null, subtreeScope, null);
  353. case "thead":
  354. case "tbody":
  355. case "tfoot":
  356. return createFormatContext(7, null, subtreeScope, null);
  357. case "colgroup":
  358. return createFormatContext(9, null, subtreeScope, null);
  359. case "tr":
  360. return createFormatContext(8, null, subtreeScope, null);
  361. case "head":
  362. if (2 > parentContext.insertionMode)
  363. return createFormatContext(3, null, subtreeScope, null);
  364. break;
  365. case "html":
  366. if (0 === parentContext.insertionMode)
  367. return createFormatContext(1, null, subtreeScope, null);
  368. }
  369. return 6 <= parentContext.insertionMode || 2 > parentContext.insertionMode
  370. ? createFormatContext(2, null, subtreeScope, null)
  371. : parentContext.tagScope !== subtreeScope
  372. ? createFormatContext(
  373. parentContext.insertionMode,
  374. parentContext.selectedValue,
  375. subtreeScope,
  376. null
  377. )
  378. : parentContext;
  379. }
  380. function getSuspenseViewTransition(parentViewTransition) {
  381. return null === parentViewTransition
  382. ? null
  383. : {
  384. update: parentViewTransition.update,
  385. enter: "none",
  386. exit: "none",
  387. share: parentViewTransition.update,
  388. name: parentViewTransition.autoName,
  389. autoName: parentViewTransition.autoName,
  390. nameIdx: 0
  391. };
  392. }
  393. function getSuspenseFallbackFormatContext(resumableState, parentContext) {
  394. parentContext.tagScope & 32 && (resumableState.instructions |= 128);
  395. return createFormatContext(
  396. parentContext.insertionMode,
  397. parentContext.selectedValue,
  398. parentContext.tagScope | 12,
  399. getSuspenseViewTransition(parentContext.viewTransition)
  400. );
  401. }
  402. function getSuspenseContentFormatContext(resumableState, parentContext) {
  403. resumableState = getSuspenseViewTransition(parentContext.viewTransition);
  404. var subtreeScope = parentContext.tagScope | 16;
  405. null !== resumableState &&
  406. "none" !== resumableState.share &&
  407. (subtreeScope |= 64);
  408. return createFormatContext(
  409. parentContext.insertionMode,
  410. parentContext.selectedValue,
  411. subtreeScope,
  412. resumableState
  413. );
  414. }
  415. var styleNameCache = new Map();
  416. function pushStyleAttribute(target, style) {
  417. if ("object" !== typeof style)
  418. throw Error(
  419. "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX."
  420. );
  421. var isFirst = !0,
  422. styleName;
  423. for (styleName in style)
  424. if (hasOwnProperty.call(style, styleName)) {
  425. var styleValue = style[styleName];
  426. if (
  427. null != styleValue &&
  428. "boolean" !== typeof styleValue &&
  429. "" !== styleValue
  430. ) {
  431. if (0 === styleName.indexOf("--")) {
  432. var nameChunk = escapeTextForBrowser(styleName);
  433. styleValue = escapeTextForBrowser(("" + styleValue).trim());
  434. } else
  435. (nameChunk = styleNameCache.get(styleName)),
  436. void 0 === nameChunk &&
  437. ((nameChunk = escapeTextForBrowser(
  438. styleName
  439. .replace(uppercasePattern, "-$1")
  440. .toLowerCase()
  441. .replace(msPattern, "-ms-")
  442. )),
  443. styleNameCache.set(styleName, nameChunk)),
  444. (styleValue =
  445. "number" === typeof styleValue
  446. ? 0 === styleValue || unitlessNumbers.has(styleName)
  447. ? "" + styleValue
  448. : styleValue + "px"
  449. : escapeTextForBrowser(("" + styleValue).trim()));
  450. isFirst
  451. ? ((isFirst = !1),
  452. target.push(' style="', nameChunk, ":", styleValue))
  453. : target.push(";", nameChunk, ":", styleValue);
  454. }
  455. }
  456. isFirst || target.push('"');
  457. }
  458. function pushBooleanAttribute(target, name, value) {
  459. value &&
  460. "function" !== typeof value &&
  461. "symbol" !== typeof value &&
  462. target.push(" ", name, '=""');
  463. }
  464. function pushStringAttribute(target, name, value) {
  465. "function" !== typeof value &&
  466. "symbol" !== typeof value &&
  467. "boolean" !== typeof value &&
  468. target.push(" ", name, '="', escapeTextForBrowser(value), '"');
  469. }
  470. var actionJavaScriptURL = escapeTextForBrowser(
  471. "javascript:throw new Error('React form unexpectedly submitted.')"
  472. );
  473. function pushAdditionalFormField(value, key) {
  474. this.push('<input type="hidden"');
  475. validateAdditionalFormField(value);
  476. pushStringAttribute(this, "name", key);
  477. pushStringAttribute(this, "value", value);
  478. this.push("/>");
  479. }
  480. function validateAdditionalFormField(value) {
  481. if ("string" !== typeof value)
  482. throw Error(
  483. "File/Blob fields are not yet supported in progressive forms. Will fallback to client hydration."
  484. );
  485. }
  486. function getCustomFormFields(resumableState, formAction) {
  487. if ("function" === typeof formAction.$$FORM_ACTION) {
  488. var id = resumableState.nextFormID++;
  489. resumableState = resumableState.idPrefix + id;
  490. try {
  491. var customFields = formAction.$$FORM_ACTION(resumableState);
  492. if (customFields) {
  493. var formData = customFields.data;
  494. null != formData && formData.forEach(validateAdditionalFormField);
  495. }
  496. return customFields;
  497. } catch (x) {
  498. if ("object" === typeof x && null !== x && "function" === typeof x.then)
  499. throw x;
  500. }
  501. }
  502. return null;
  503. }
  504. function pushFormActionAttribute(
  505. target,
  506. resumableState,
  507. renderState,
  508. formAction,
  509. formEncType,
  510. formMethod,
  511. formTarget,
  512. name
  513. ) {
  514. var formData = null;
  515. if ("function" === typeof formAction) {
  516. var customFields = getCustomFormFields(resumableState, formAction);
  517. null !== customFields
  518. ? ((name = customFields.name),
  519. (formAction = customFields.action || ""),
  520. (formEncType = customFields.encType),
  521. (formMethod = customFields.method),
  522. (formTarget = customFields.target),
  523. (formData = customFields.data))
  524. : (target.push(" ", "formAction", '="', actionJavaScriptURL, '"'),
  525. (formTarget = formMethod = formEncType = formAction = name = null),
  526. injectFormReplayingRuntime(resumableState, renderState));
  527. }
  528. null != name && pushAttribute(target, "name", name);
  529. null != formAction && pushAttribute(target, "formAction", formAction);
  530. null != formEncType && pushAttribute(target, "formEncType", formEncType);
  531. null != formMethod && pushAttribute(target, "formMethod", formMethod);
  532. null != formTarget && pushAttribute(target, "formTarget", formTarget);
  533. return formData;
  534. }
  535. function pushAttribute(target, name, value) {
  536. switch (name) {
  537. case "className":
  538. pushStringAttribute(target, "class", value);
  539. break;
  540. case "tabIndex":
  541. pushStringAttribute(target, "tabindex", value);
  542. break;
  543. case "dir":
  544. case "role":
  545. case "viewBox":
  546. case "width":
  547. case "height":
  548. pushStringAttribute(target, name, value);
  549. break;
  550. case "style":
  551. pushStyleAttribute(target, value);
  552. break;
  553. case "src":
  554. case "href":
  555. if ("" === value) break;
  556. case "action":
  557. case "formAction":
  558. if (
  559. null == value ||
  560. "function" === typeof value ||
  561. "symbol" === typeof value ||
  562. "boolean" === typeof value
  563. )
  564. break;
  565. value = sanitizeURL("" + value);
  566. target.push(" ", name, '="', escapeTextForBrowser(value), '"');
  567. break;
  568. case "defaultValue":
  569. case "defaultChecked":
  570. case "innerHTML":
  571. case "suppressContentEditableWarning":
  572. case "suppressHydrationWarning":
  573. case "ref":
  574. break;
  575. case "autoFocus":
  576. case "multiple":
  577. case "muted":
  578. pushBooleanAttribute(target, name.toLowerCase(), value);
  579. break;
  580. case "xlinkHref":
  581. if (
  582. "function" === typeof value ||
  583. "symbol" === typeof value ||
  584. "boolean" === typeof value
  585. )
  586. break;
  587. value = sanitizeURL("" + value);
  588. target.push(" ", "xlink:href", '="', escapeTextForBrowser(value), '"');
  589. break;
  590. case "contentEditable":
  591. case "spellCheck":
  592. case "draggable":
  593. case "value":
  594. case "autoReverse":
  595. case "externalResourcesRequired":
  596. case "focusable":
  597. case "preserveAlpha":
  598. "function" !== typeof value &&
  599. "symbol" !== typeof value &&
  600. target.push(" ", name, '="', escapeTextForBrowser(value), '"');
  601. break;
  602. case "inert":
  603. case "allowFullScreen":
  604. case "async":
  605. case "autoPlay":
  606. case "controls":
  607. case "default":
  608. case "defer":
  609. case "disabled":
  610. case "disablePictureInPicture":
  611. case "disableRemotePlayback":
  612. case "formNoValidate":
  613. case "hidden":
  614. case "loop":
  615. case "noModule":
  616. case "noValidate":
  617. case "open":
  618. case "playsInline":
  619. case "readOnly":
  620. case "required":
  621. case "reversed":
  622. case "scoped":
  623. case "seamless":
  624. case "itemScope":
  625. value &&
  626. "function" !== typeof value &&
  627. "symbol" !== typeof value &&
  628. target.push(" ", name, '=""');
  629. break;
  630. case "capture":
  631. case "download":
  632. !0 === value
  633. ? target.push(" ", name, '=""')
  634. : !1 !== value &&
  635. "function" !== typeof value &&
  636. "symbol" !== typeof value &&
  637. target.push(" ", name, '="', escapeTextForBrowser(value), '"');
  638. break;
  639. case "cols":
  640. case "rows":
  641. case "size":
  642. case "span":
  643. "function" !== typeof value &&
  644. "symbol" !== typeof value &&
  645. !isNaN(value) &&
  646. 1 <= value &&
  647. target.push(" ", name, '="', escapeTextForBrowser(value), '"');
  648. break;
  649. case "rowSpan":
  650. case "start":
  651. "function" === typeof value ||
  652. "symbol" === typeof value ||
  653. isNaN(value) ||
  654. target.push(" ", name, '="', escapeTextForBrowser(value), '"');
  655. break;
  656. case "xlinkActuate":
  657. pushStringAttribute(target, "xlink:actuate", value);
  658. break;
  659. case "xlinkArcrole":
  660. pushStringAttribute(target, "xlink:arcrole", value);
  661. break;
  662. case "xlinkRole":
  663. pushStringAttribute(target, "xlink:role", value);
  664. break;
  665. case "xlinkShow":
  666. pushStringAttribute(target, "xlink:show", value);
  667. break;
  668. case "xlinkTitle":
  669. pushStringAttribute(target, "xlink:title", value);
  670. break;
  671. case "xlinkType":
  672. pushStringAttribute(target, "xlink:type", value);
  673. break;
  674. case "xmlBase":
  675. pushStringAttribute(target, "xml:base", value);
  676. break;
  677. case "xmlLang":
  678. pushStringAttribute(target, "xml:lang", value);
  679. break;
  680. case "xmlSpace":
  681. pushStringAttribute(target, "xml:space", value);
  682. break;
  683. default:
  684. if (
  685. !(2 < name.length) ||
  686. ("o" !== name[0] && "O" !== name[0]) ||
  687. ("n" !== name[1] && "N" !== name[1])
  688. )
  689. if (((name = aliases.get(name) || name), isAttributeNameSafe(name))) {
  690. switch (typeof value) {
  691. case "function":
  692. case "symbol":
  693. return;
  694. case "boolean":
  695. var prefix$8 = name.toLowerCase().slice(0, 5);
  696. if ("data-" !== prefix$8 && "aria-" !== prefix$8) return;
  697. }
  698. target.push(" ", name, '="', escapeTextForBrowser(value), '"');
  699. }
  700. }
  701. }
  702. function pushInnerHTML(target, innerHTML, children) {
  703. if (null != innerHTML) {
  704. if (null != children)
  705. throw Error(
  706. "Can only set one of `children` or `props.dangerouslySetInnerHTML`."
  707. );
  708. if ("object" !== typeof innerHTML || !("__html" in innerHTML))
  709. throw Error(
  710. "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information."
  711. );
  712. innerHTML = innerHTML.__html;
  713. null !== innerHTML && void 0 !== innerHTML && target.push("" + innerHTML);
  714. }
  715. }
  716. function flattenOptionChildren(children) {
  717. var content = "";
  718. React.Children.forEach(children, function (child) {
  719. null != child && (content += child);
  720. });
  721. return content;
  722. }
  723. function injectFormReplayingRuntime(resumableState, renderState) {
  724. if (0 === (resumableState.instructions & 16)) {
  725. resumableState.instructions |= 16;
  726. var preamble = renderState.preamble,
  727. bootstrapChunks = renderState.bootstrapChunks;
  728. (preamble.htmlChunks || preamble.headChunks) && 0 === bootstrapChunks.length
  729. ? (bootstrapChunks.push(renderState.startInlineScript),
  730. pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
  731. bootstrapChunks.push(
  732. ">",
  733. 'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',
  734. "\x3c/script>"
  735. ))
  736. : bootstrapChunks.unshift(
  737. renderState.startInlineScript,
  738. ">",
  739. 'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',
  740. "\x3c/script>"
  741. );
  742. }
  743. }
  744. function pushLinkImpl(target, props) {
  745. target.push(startChunkForTag("link"));
  746. for (var propKey in props)
  747. if (hasOwnProperty.call(props, propKey)) {
  748. var propValue = props[propKey];
  749. if (null != propValue)
  750. switch (propKey) {
  751. case "children":
  752. case "dangerouslySetInnerHTML":
  753. throw Error(
  754. "link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`."
  755. );
  756. default:
  757. pushAttribute(target, propKey, propValue);
  758. }
  759. }
  760. target.push("/>");
  761. return null;
  762. }
  763. var styleRegex = /(<\/|<)(s)(tyle)/gi;
  764. function styleReplacer(match, prefix, s, suffix) {
  765. return "" + prefix + ("s" === s ? "\\73 " : "\\53 ") + suffix;
  766. }
  767. function pushSelfClosing(target, props, tag) {
  768. target.push(startChunkForTag(tag));
  769. for (var propKey in props)
  770. if (hasOwnProperty.call(props, propKey)) {
  771. var propValue = props[propKey];
  772. if (null != propValue)
  773. switch (propKey) {
  774. case "children":
  775. case "dangerouslySetInnerHTML":
  776. throw Error(
  777. tag +
  778. " is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`."
  779. );
  780. default:
  781. pushAttribute(target, propKey, propValue);
  782. }
  783. }
  784. target.push("/>");
  785. return null;
  786. }
  787. function pushTitleImpl(target, props) {
  788. target.push(startChunkForTag("title"));
  789. var children = null,
  790. innerHTML = null,
  791. propKey;
  792. for (propKey in props)
  793. if (hasOwnProperty.call(props, propKey)) {
  794. var propValue = props[propKey];
  795. if (null != propValue)
  796. switch (propKey) {
  797. case "children":
  798. children = propValue;
  799. break;
  800. case "dangerouslySetInnerHTML":
  801. innerHTML = propValue;
  802. break;
  803. default:
  804. pushAttribute(target, propKey, propValue);
  805. }
  806. }
  807. target.push(">");
  808. props = Array.isArray(children)
  809. ? 2 > children.length
  810. ? children[0]
  811. : null
  812. : children;
  813. "function" !== typeof props &&
  814. "symbol" !== typeof props &&
  815. null !== props &&
  816. void 0 !== props &&
  817. target.push(escapeTextForBrowser("" + props));
  818. pushInnerHTML(target, innerHTML, children);
  819. target.push(endChunkForTag("title"));
  820. return null;
  821. }
  822. function pushScriptImpl(target, props) {
  823. target.push(startChunkForTag("script"));
  824. var children = null,
  825. innerHTML = null,
  826. propKey;
  827. for (propKey in props)
  828. if (hasOwnProperty.call(props, propKey)) {
  829. var propValue = props[propKey];
  830. if (null != propValue)
  831. switch (propKey) {
  832. case "children":
  833. children = propValue;
  834. break;
  835. case "dangerouslySetInnerHTML":
  836. innerHTML = propValue;
  837. break;
  838. default:
  839. pushAttribute(target, propKey, propValue);
  840. }
  841. }
  842. target.push(">");
  843. pushInnerHTML(target, innerHTML, children);
  844. "string" === typeof children &&
  845. target.push(("" + children).replace(scriptRegex, scriptReplacer));
  846. target.push(endChunkForTag("script"));
  847. return null;
  848. }
  849. function pushStartSingletonElement(target, props, tag) {
  850. target.push(startChunkForTag(tag));
  851. var innerHTML = (tag = null),
  852. propKey;
  853. for (propKey in props)
  854. if (hasOwnProperty.call(props, propKey)) {
  855. var propValue = props[propKey];
  856. if (null != propValue)
  857. switch (propKey) {
  858. case "children":
  859. tag = propValue;
  860. break;
  861. case "dangerouslySetInnerHTML":
  862. innerHTML = propValue;
  863. break;
  864. default:
  865. pushAttribute(target, propKey, propValue);
  866. }
  867. }
  868. target.push(">");
  869. pushInnerHTML(target, innerHTML, tag);
  870. return tag;
  871. }
  872. function pushStartGenericElement(target, props, tag) {
  873. target.push(startChunkForTag(tag));
  874. var innerHTML = (tag = null),
  875. propKey;
  876. for (propKey in props)
  877. if (hasOwnProperty.call(props, propKey)) {
  878. var propValue = props[propKey];
  879. if (null != propValue)
  880. switch (propKey) {
  881. case "children":
  882. tag = propValue;
  883. break;
  884. case "dangerouslySetInnerHTML":
  885. innerHTML = propValue;
  886. break;
  887. default:
  888. pushAttribute(target, propKey, propValue);
  889. }
  890. }
  891. target.push(">");
  892. pushInnerHTML(target, innerHTML, tag);
  893. return "string" === typeof tag
  894. ? (target.push(escapeTextForBrowser(tag)), null)
  895. : tag;
  896. }
  897. var VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,
  898. validatedTagCache = new Map();
  899. function startChunkForTag(tag) {
  900. var tagStartChunk = validatedTagCache.get(tag);
  901. if (void 0 === tagStartChunk) {
  902. if (!VALID_TAG_REGEX.test(tag)) throw Error("Invalid tag: " + tag);
  903. tagStartChunk = "<" + tag;
  904. validatedTagCache.set(tag, tagStartChunk);
  905. }
  906. return tagStartChunk;
  907. }
  908. function pushStartInstance(
  909. target$jscomp$0,
  910. type,
  911. props,
  912. resumableState,
  913. renderState,
  914. preambleState,
  915. hoistableState,
  916. formatContext,
  917. textEmbedded
  918. ) {
  919. switch (type) {
  920. case "div":
  921. case "span":
  922. case "svg":
  923. case "path":
  924. break;
  925. case "a":
  926. target$jscomp$0.push(startChunkForTag("a"));
  927. var children = null,
  928. innerHTML = null,
  929. propKey;
  930. for (propKey in props)
  931. if (hasOwnProperty.call(props, propKey)) {
  932. var propValue = props[propKey];
  933. if (null != propValue)
  934. switch (propKey) {
  935. case "children":
  936. children = propValue;
  937. break;
  938. case "dangerouslySetInnerHTML":
  939. innerHTML = propValue;
  940. break;
  941. case "href":
  942. "" === propValue
  943. ? pushStringAttribute(target$jscomp$0, "href", "")
  944. : pushAttribute(target$jscomp$0, propKey, propValue);
  945. break;
  946. default:
  947. pushAttribute(target$jscomp$0, propKey, propValue);
  948. }
  949. }
  950. target$jscomp$0.push(">");
  951. pushInnerHTML(target$jscomp$0, innerHTML, children);
  952. if ("string" === typeof children) {
  953. target$jscomp$0.push(escapeTextForBrowser(children));
  954. var JSCompiler_inline_result = null;
  955. } else JSCompiler_inline_result = children;
  956. return JSCompiler_inline_result;
  957. case "g":
  958. case "p":
  959. case "li":
  960. break;
  961. case "select":
  962. target$jscomp$0.push(startChunkForTag("select"));
  963. var children$jscomp$0 = null,
  964. innerHTML$jscomp$0 = null,
  965. propKey$jscomp$0;
  966. for (propKey$jscomp$0 in props)
  967. if (hasOwnProperty.call(props, propKey$jscomp$0)) {
  968. var propValue$jscomp$0 = props[propKey$jscomp$0];
  969. if (null != propValue$jscomp$0)
  970. switch (propKey$jscomp$0) {
  971. case "children":
  972. children$jscomp$0 = propValue$jscomp$0;
  973. break;
  974. case "dangerouslySetInnerHTML":
  975. innerHTML$jscomp$0 = propValue$jscomp$0;
  976. break;
  977. case "defaultValue":
  978. case "value":
  979. break;
  980. default:
  981. pushAttribute(
  982. target$jscomp$0,
  983. propKey$jscomp$0,
  984. propValue$jscomp$0
  985. );
  986. }
  987. }
  988. target$jscomp$0.push(">");
  989. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$0, children$jscomp$0);
  990. return children$jscomp$0;
  991. case "option":
  992. var selectedValue = formatContext.selectedValue;
  993. target$jscomp$0.push(startChunkForTag("option"));
  994. var children$jscomp$1 = null,
  995. value = null,
  996. selected = null,
  997. innerHTML$jscomp$1 = null,
  998. propKey$jscomp$1;
  999. for (propKey$jscomp$1 in props)
  1000. if (hasOwnProperty.call(props, propKey$jscomp$1)) {
  1001. var propValue$jscomp$1 = props[propKey$jscomp$1];
  1002. if (null != propValue$jscomp$1)
  1003. switch (propKey$jscomp$1) {
  1004. case "children":
  1005. children$jscomp$1 = propValue$jscomp$1;
  1006. break;
  1007. case "selected":
  1008. selected = propValue$jscomp$1;
  1009. break;
  1010. case "dangerouslySetInnerHTML":
  1011. innerHTML$jscomp$1 = propValue$jscomp$1;
  1012. break;
  1013. case "value":
  1014. value = propValue$jscomp$1;
  1015. default:
  1016. pushAttribute(
  1017. target$jscomp$0,
  1018. propKey$jscomp$1,
  1019. propValue$jscomp$1
  1020. );
  1021. }
  1022. }
  1023. if (null != selectedValue) {
  1024. var stringValue =
  1025. null !== value
  1026. ? "" + value
  1027. : flattenOptionChildren(children$jscomp$1);
  1028. if (isArrayImpl(selectedValue))
  1029. for (var i = 0; i < selectedValue.length; i++) {
  1030. if ("" + selectedValue[i] === stringValue) {
  1031. target$jscomp$0.push(' selected=""');
  1032. break;
  1033. }
  1034. }
  1035. else
  1036. "" + selectedValue === stringValue &&
  1037. target$jscomp$0.push(' selected=""');
  1038. } else selected && target$jscomp$0.push(' selected=""');
  1039. target$jscomp$0.push(">");
  1040. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$1, children$jscomp$1);
  1041. return children$jscomp$1;
  1042. case "textarea":
  1043. target$jscomp$0.push(startChunkForTag("textarea"));
  1044. var value$jscomp$0 = null,
  1045. defaultValue = null,
  1046. children$jscomp$2 = null,
  1047. propKey$jscomp$2;
  1048. for (propKey$jscomp$2 in props)
  1049. if (hasOwnProperty.call(props, propKey$jscomp$2)) {
  1050. var propValue$jscomp$2 = props[propKey$jscomp$2];
  1051. if (null != propValue$jscomp$2)
  1052. switch (propKey$jscomp$2) {
  1053. case "children":
  1054. children$jscomp$2 = propValue$jscomp$2;
  1055. break;
  1056. case "value":
  1057. value$jscomp$0 = propValue$jscomp$2;
  1058. break;
  1059. case "defaultValue":
  1060. defaultValue = propValue$jscomp$2;
  1061. break;
  1062. case "dangerouslySetInnerHTML":
  1063. throw Error(
  1064. "`dangerouslySetInnerHTML` does not make sense on <textarea>."
  1065. );
  1066. default:
  1067. pushAttribute(
  1068. target$jscomp$0,
  1069. propKey$jscomp$2,
  1070. propValue$jscomp$2
  1071. );
  1072. }
  1073. }
  1074. null === value$jscomp$0 &&
  1075. null !== defaultValue &&
  1076. (value$jscomp$0 = defaultValue);
  1077. target$jscomp$0.push(">");
  1078. if (null != children$jscomp$2) {
  1079. if (null != value$jscomp$0)
  1080. throw Error(
  1081. "If you supply `defaultValue` on a <textarea>, do not pass children."
  1082. );
  1083. if (isArrayImpl(children$jscomp$2)) {
  1084. if (1 < children$jscomp$2.length)
  1085. throw Error("<textarea> can only have at most one child.");
  1086. value$jscomp$0 = "" + children$jscomp$2[0];
  1087. }
  1088. value$jscomp$0 = "" + children$jscomp$2;
  1089. }
  1090. "string" === typeof value$jscomp$0 &&
  1091. "\n" === value$jscomp$0[0] &&
  1092. target$jscomp$0.push("\n");
  1093. null !== value$jscomp$0 &&
  1094. target$jscomp$0.push(escapeTextForBrowser("" + value$jscomp$0));
  1095. return null;
  1096. case "input":
  1097. target$jscomp$0.push(startChunkForTag("input"));
  1098. var name = null,
  1099. formAction = null,
  1100. formEncType = null,
  1101. formMethod = null,
  1102. formTarget = null,
  1103. value$jscomp$1 = null,
  1104. defaultValue$jscomp$0 = null,
  1105. checked = null,
  1106. defaultChecked = null,
  1107. propKey$jscomp$3;
  1108. for (propKey$jscomp$3 in props)
  1109. if (hasOwnProperty.call(props, propKey$jscomp$3)) {
  1110. var propValue$jscomp$3 = props[propKey$jscomp$3];
  1111. if (null != propValue$jscomp$3)
  1112. switch (propKey$jscomp$3) {
  1113. case "children":
  1114. case "dangerouslySetInnerHTML":
  1115. throw Error(
  1116. "input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`."
  1117. );
  1118. case "name":
  1119. name = propValue$jscomp$3;
  1120. break;
  1121. case "formAction":
  1122. formAction = propValue$jscomp$3;
  1123. break;
  1124. case "formEncType":
  1125. formEncType = propValue$jscomp$3;
  1126. break;
  1127. case "formMethod":
  1128. formMethod = propValue$jscomp$3;
  1129. break;
  1130. case "formTarget":
  1131. formTarget = propValue$jscomp$3;
  1132. break;
  1133. case "defaultChecked":
  1134. defaultChecked = propValue$jscomp$3;
  1135. break;
  1136. case "defaultValue":
  1137. defaultValue$jscomp$0 = propValue$jscomp$3;
  1138. break;
  1139. case "checked":
  1140. checked = propValue$jscomp$3;
  1141. break;
  1142. case "value":
  1143. value$jscomp$1 = propValue$jscomp$3;
  1144. break;
  1145. default:
  1146. pushAttribute(
  1147. target$jscomp$0,
  1148. propKey$jscomp$3,
  1149. propValue$jscomp$3
  1150. );
  1151. }
  1152. }
  1153. var formData = pushFormActionAttribute(
  1154. target$jscomp$0,
  1155. resumableState,
  1156. renderState,
  1157. formAction,
  1158. formEncType,
  1159. formMethod,
  1160. formTarget,
  1161. name
  1162. );
  1163. null !== checked
  1164. ? pushBooleanAttribute(target$jscomp$0, "checked", checked)
  1165. : null !== defaultChecked &&
  1166. pushBooleanAttribute(target$jscomp$0, "checked", defaultChecked);
  1167. null !== value$jscomp$1
  1168. ? pushAttribute(target$jscomp$0, "value", value$jscomp$1)
  1169. : null !== defaultValue$jscomp$0 &&
  1170. pushAttribute(target$jscomp$0, "value", defaultValue$jscomp$0);
  1171. target$jscomp$0.push("/>");
  1172. null != formData &&
  1173. formData.forEach(pushAdditionalFormField, target$jscomp$0);
  1174. return null;
  1175. case "button":
  1176. target$jscomp$0.push(startChunkForTag("button"));
  1177. var children$jscomp$3 = null,
  1178. innerHTML$jscomp$2 = null,
  1179. name$jscomp$0 = null,
  1180. formAction$jscomp$0 = null,
  1181. formEncType$jscomp$0 = null,
  1182. formMethod$jscomp$0 = null,
  1183. formTarget$jscomp$0 = null,
  1184. propKey$jscomp$4;
  1185. for (propKey$jscomp$4 in props)
  1186. if (hasOwnProperty.call(props, propKey$jscomp$4)) {
  1187. var propValue$jscomp$4 = props[propKey$jscomp$4];
  1188. if (null != propValue$jscomp$4)
  1189. switch (propKey$jscomp$4) {
  1190. case "children":
  1191. children$jscomp$3 = propValue$jscomp$4;
  1192. break;
  1193. case "dangerouslySetInnerHTML":
  1194. innerHTML$jscomp$2 = propValue$jscomp$4;
  1195. break;
  1196. case "name":
  1197. name$jscomp$0 = propValue$jscomp$4;
  1198. break;
  1199. case "formAction":
  1200. formAction$jscomp$0 = propValue$jscomp$4;
  1201. break;
  1202. case "formEncType":
  1203. formEncType$jscomp$0 = propValue$jscomp$4;
  1204. break;
  1205. case "formMethod":
  1206. formMethod$jscomp$0 = propValue$jscomp$4;
  1207. break;
  1208. case "formTarget":
  1209. formTarget$jscomp$0 = propValue$jscomp$4;
  1210. break;
  1211. default:
  1212. pushAttribute(
  1213. target$jscomp$0,
  1214. propKey$jscomp$4,
  1215. propValue$jscomp$4
  1216. );
  1217. }
  1218. }
  1219. var formData$jscomp$0 = pushFormActionAttribute(
  1220. target$jscomp$0,
  1221. resumableState,
  1222. renderState,
  1223. formAction$jscomp$0,
  1224. formEncType$jscomp$0,
  1225. formMethod$jscomp$0,
  1226. formTarget$jscomp$0,
  1227. name$jscomp$0
  1228. );
  1229. target$jscomp$0.push(">");
  1230. null != formData$jscomp$0 &&
  1231. formData$jscomp$0.forEach(pushAdditionalFormField, target$jscomp$0);
  1232. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$2, children$jscomp$3);
  1233. if ("string" === typeof children$jscomp$3) {
  1234. target$jscomp$0.push(escapeTextForBrowser(children$jscomp$3));
  1235. var JSCompiler_inline_result$jscomp$0 = null;
  1236. } else JSCompiler_inline_result$jscomp$0 = children$jscomp$3;
  1237. return JSCompiler_inline_result$jscomp$0;
  1238. case "form":
  1239. target$jscomp$0.push(startChunkForTag("form"));
  1240. var children$jscomp$4 = null,
  1241. innerHTML$jscomp$3 = null,
  1242. formAction$jscomp$1 = null,
  1243. formEncType$jscomp$1 = null,
  1244. formMethod$jscomp$1 = null,
  1245. formTarget$jscomp$1 = null,
  1246. propKey$jscomp$5;
  1247. for (propKey$jscomp$5 in props)
  1248. if (hasOwnProperty.call(props, propKey$jscomp$5)) {
  1249. var propValue$jscomp$5 = props[propKey$jscomp$5];
  1250. if (null != propValue$jscomp$5)
  1251. switch (propKey$jscomp$5) {
  1252. case "children":
  1253. children$jscomp$4 = propValue$jscomp$5;
  1254. break;
  1255. case "dangerouslySetInnerHTML":
  1256. innerHTML$jscomp$3 = propValue$jscomp$5;
  1257. break;
  1258. case "action":
  1259. formAction$jscomp$1 = propValue$jscomp$5;
  1260. break;
  1261. case "encType":
  1262. formEncType$jscomp$1 = propValue$jscomp$5;
  1263. break;
  1264. case "method":
  1265. formMethod$jscomp$1 = propValue$jscomp$5;
  1266. break;
  1267. case "target":
  1268. formTarget$jscomp$1 = propValue$jscomp$5;
  1269. break;
  1270. default:
  1271. pushAttribute(
  1272. target$jscomp$0,
  1273. propKey$jscomp$5,
  1274. propValue$jscomp$5
  1275. );
  1276. }
  1277. }
  1278. var formData$jscomp$1 = null,
  1279. formActionName = null;
  1280. if ("function" === typeof formAction$jscomp$1) {
  1281. var customFields = getCustomFormFields(
  1282. resumableState,
  1283. formAction$jscomp$1
  1284. );
  1285. null !== customFields
  1286. ? ((formAction$jscomp$1 = customFields.action || ""),
  1287. (formEncType$jscomp$1 = customFields.encType),
  1288. (formMethod$jscomp$1 = customFields.method),
  1289. (formTarget$jscomp$1 = customFields.target),
  1290. (formData$jscomp$1 = customFields.data),
  1291. (formActionName = customFields.name))
  1292. : (target$jscomp$0.push(
  1293. " ",
  1294. "action",
  1295. '="',
  1296. actionJavaScriptURL,
  1297. '"'
  1298. ),
  1299. (formTarget$jscomp$1 =
  1300. formMethod$jscomp$1 =
  1301. formEncType$jscomp$1 =
  1302. formAction$jscomp$1 =
  1303. null),
  1304. injectFormReplayingRuntime(resumableState, renderState));
  1305. }
  1306. null != formAction$jscomp$1 &&
  1307. pushAttribute(target$jscomp$0, "action", formAction$jscomp$1);
  1308. null != formEncType$jscomp$1 &&
  1309. pushAttribute(target$jscomp$0, "encType", formEncType$jscomp$1);
  1310. null != formMethod$jscomp$1 &&
  1311. pushAttribute(target$jscomp$0, "method", formMethod$jscomp$1);
  1312. null != formTarget$jscomp$1 &&
  1313. pushAttribute(target$jscomp$0, "target", formTarget$jscomp$1);
  1314. target$jscomp$0.push(">");
  1315. null !== formActionName &&
  1316. (target$jscomp$0.push('<input type="hidden"'),
  1317. pushStringAttribute(target$jscomp$0, "name", formActionName),
  1318. target$jscomp$0.push("/>"),
  1319. null != formData$jscomp$1 &&
  1320. formData$jscomp$1.forEach(pushAdditionalFormField, target$jscomp$0));
  1321. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$3, children$jscomp$4);
  1322. if ("string" === typeof children$jscomp$4) {
  1323. target$jscomp$0.push(escapeTextForBrowser(children$jscomp$4));
  1324. var JSCompiler_inline_result$jscomp$1 = null;
  1325. } else JSCompiler_inline_result$jscomp$1 = children$jscomp$4;
  1326. return JSCompiler_inline_result$jscomp$1;
  1327. case "menuitem":
  1328. target$jscomp$0.push(startChunkForTag("menuitem"));
  1329. for (var propKey$jscomp$6 in props)
  1330. if (hasOwnProperty.call(props, propKey$jscomp$6)) {
  1331. var propValue$jscomp$6 = props[propKey$jscomp$6];
  1332. if (null != propValue$jscomp$6)
  1333. switch (propKey$jscomp$6) {
  1334. case "children":
  1335. case "dangerouslySetInnerHTML":
  1336. throw Error(
  1337. "menuitems cannot have `children` nor `dangerouslySetInnerHTML`."
  1338. );
  1339. default:
  1340. pushAttribute(
  1341. target$jscomp$0,
  1342. propKey$jscomp$6,
  1343. propValue$jscomp$6
  1344. );
  1345. }
  1346. }
  1347. target$jscomp$0.push(">");
  1348. return null;
  1349. case "object":
  1350. target$jscomp$0.push(startChunkForTag("object"));
  1351. var children$jscomp$5 = null,
  1352. innerHTML$jscomp$4 = null,
  1353. propKey$jscomp$7;
  1354. for (propKey$jscomp$7 in props)
  1355. if (hasOwnProperty.call(props, propKey$jscomp$7)) {
  1356. var propValue$jscomp$7 = props[propKey$jscomp$7];
  1357. if (null != propValue$jscomp$7)
  1358. switch (propKey$jscomp$7) {
  1359. case "children":
  1360. children$jscomp$5 = propValue$jscomp$7;
  1361. break;
  1362. case "dangerouslySetInnerHTML":
  1363. innerHTML$jscomp$4 = propValue$jscomp$7;
  1364. break;
  1365. case "data":
  1366. var sanitizedValue = sanitizeURL("" + propValue$jscomp$7);
  1367. if ("" === sanitizedValue) break;
  1368. target$jscomp$0.push(
  1369. " ",
  1370. "data",
  1371. '="',
  1372. escapeTextForBrowser(sanitizedValue),
  1373. '"'
  1374. );
  1375. break;
  1376. default:
  1377. pushAttribute(
  1378. target$jscomp$0,
  1379. propKey$jscomp$7,
  1380. propValue$jscomp$7
  1381. );
  1382. }
  1383. }
  1384. target$jscomp$0.push(">");
  1385. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
  1386. if ("string" === typeof children$jscomp$5) {
  1387. target$jscomp$0.push(escapeTextForBrowser(children$jscomp$5));
  1388. var JSCompiler_inline_result$jscomp$2 = null;
  1389. } else JSCompiler_inline_result$jscomp$2 = children$jscomp$5;
  1390. return JSCompiler_inline_result$jscomp$2;
  1391. case "title":
  1392. var noscriptTagInScope = formatContext.tagScope & 1,
  1393. isFallback = formatContext.tagScope & 4;
  1394. if (
  1395. 4 === formatContext.insertionMode ||
  1396. noscriptTagInScope ||
  1397. null != props.itemProp
  1398. )
  1399. var JSCompiler_inline_result$jscomp$3 = pushTitleImpl(
  1400. target$jscomp$0,
  1401. props
  1402. );
  1403. else
  1404. isFallback
  1405. ? (JSCompiler_inline_result$jscomp$3 = null)
  1406. : (pushTitleImpl(renderState.hoistableChunks, props),
  1407. (JSCompiler_inline_result$jscomp$3 = void 0));
  1408. return JSCompiler_inline_result$jscomp$3;
  1409. case "link":
  1410. var noscriptTagInScope$jscomp$0 = formatContext.tagScope & 1,
  1411. isFallback$jscomp$0 = formatContext.tagScope & 4,
  1412. rel = props.rel,
  1413. href = props.href,
  1414. precedence = props.precedence;
  1415. if (
  1416. 4 === formatContext.insertionMode ||
  1417. noscriptTagInScope$jscomp$0 ||
  1418. null != props.itemProp ||
  1419. "string" !== typeof rel ||
  1420. "string" !== typeof href ||
  1421. "" === href
  1422. ) {
  1423. pushLinkImpl(target$jscomp$0, props);
  1424. var JSCompiler_inline_result$jscomp$4 = null;
  1425. } else if ("stylesheet" === props.rel)
  1426. if (
  1427. "string" !== typeof precedence ||
  1428. null != props.disabled ||
  1429. props.onLoad ||
  1430. props.onError
  1431. )
  1432. JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
  1433. target$jscomp$0,
  1434. props
  1435. );
  1436. else {
  1437. var styleQueue = renderState.styles.get(precedence),
  1438. resourceState = resumableState.styleResources.hasOwnProperty(href)
  1439. ? resumableState.styleResources[href]
  1440. : void 0;
  1441. if (null !== resourceState) {
  1442. resumableState.styleResources[href] = null;
  1443. styleQueue ||
  1444. ((styleQueue = {
  1445. precedence: escapeTextForBrowser(precedence),
  1446. rules: [],
  1447. hrefs: [],
  1448. sheets: new Map()
  1449. }),
  1450. renderState.styles.set(precedence, styleQueue));
  1451. var resource = {
  1452. state: 0,
  1453. props: assign({}, props, {
  1454. "data-precedence": props.precedence,
  1455. precedence: null
  1456. })
  1457. };
  1458. if (resourceState) {
  1459. 2 === resourceState.length &&
  1460. adoptPreloadCredentials(resource.props, resourceState);
  1461. var preloadResource = renderState.preloads.stylesheets.get(href);
  1462. preloadResource && 0 < preloadResource.length
  1463. ? (preloadResource.length = 0)
  1464. : (resource.state = 1);
  1465. }
  1466. styleQueue.sheets.set(href, resource);
  1467. hoistableState && hoistableState.stylesheets.add(resource);
  1468. } else if (styleQueue) {
  1469. var resource$9 = styleQueue.sheets.get(href);
  1470. resource$9 &&
  1471. hoistableState &&
  1472. hoistableState.stylesheets.add(resource$9);
  1473. }
  1474. textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
  1475. JSCompiler_inline_result$jscomp$4 = null;
  1476. }
  1477. else
  1478. props.onLoad || props.onError
  1479. ? (JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
  1480. target$jscomp$0,
  1481. props
  1482. ))
  1483. : (textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
  1484. (JSCompiler_inline_result$jscomp$4 = isFallback$jscomp$0
  1485. ? null
  1486. : pushLinkImpl(renderState.hoistableChunks, props)));
  1487. return JSCompiler_inline_result$jscomp$4;
  1488. case "script":
  1489. var noscriptTagInScope$jscomp$1 = formatContext.tagScope & 1,
  1490. asyncProp = props.async;
  1491. if (
  1492. "string" !== typeof props.src ||
  1493. !props.src ||
  1494. !asyncProp ||
  1495. "function" === typeof asyncProp ||
  1496. "symbol" === typeof asyncProp ||
  1497. props.onLoad ||
  1498. props.onError ||
  1499. 4 === formatContext.insertionMode ||
  1500. noscriptTagInScope$jscomp$1 ||
  1501. null != props.itemProp
  1502. )
  1503. var JSCompiler_inline_result$jscomp$5 = pushScriptImpl(
  1504. target$jscomp$0,
  1505. props
  1506. );
  1507. else {
  1508. var key = props.src;
  1509. if ("module" === props.type) {
  1510. var resources = resumableState.moduleScriptResources;
  1511. var preloads = renderState.preloads.moduleScripts;
  1512. } else
  1513. (resources = resumableState.scriptResources),
  1514. (preloads = renderState.preloads.scripts);
  1515. var resourceState$jscomp$0 = resources.hasOwnProperty(key)
  1516. ? resources[key]
  1517. : void 0;
  1518. if (null !== resourceState$jscomp$0) {
  1519. resources[key] = null;
  1520. var scriptProps = props;
  1521. if (resourceState$jscomp$0) {
  1522. 2 === resourceState$jscomp$0.length &&
  1523. ((scriptProps = assign({}, props)),
  1524. adoptPreloadCredentials(scriptProps, resourceState$jscomp$0));
  1525. var preloadResource$jscomp$0 = preloads.get(key);
  1526. preloadResource$jscomp$0 && (preloadResource$jscomp$0.length = 0);
  1527. }
  1528. var resource$jscomp$0 = [];
  1529. renderState.scripts.add(resource$jscomp$0);
  1530. pushScriptImpl(resource$jscomp$0, scriptProps);
  1531. }
  1532. textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
  1533. JSCompiler_inline_result$jscomp$5 = null;
  1534. }
  1535. return JSCompiler_inline_result$jscomp$5;
  1536. case "style":
  1537. var noscriptTagInScope$jscomp$2 = formatContext.tagScope & 1,
  1538. precedence$jscomp$0 = props.precedence,
  1539. href$jscomp$0 = props.href,
  1540. nonce = props.nonce;
  1541. if (
  1542. 4 === formatContext.insertionMode ||
  1543. noscriptTagInScope$jscomp$2 ||
  1544. null != props.itemProp ||
  1545. "string" !== typeof precedence$jscomp$0 ||
  1546. "string" !== typeof href$jscomp$0 ||
  1547. "" === href$jscomp$0
  1548. ) {
  1549. target$jscomp$0.push(startChunkForTag("style"));
  1550. var children$jscomp$6 = null,
  1551. innerHTML$jscomp$5 = null,
  1552. propKey$jscomp$8;
  1553. for (propKey$jscomp$8 in props)
  1554. if (hasOwnProperty.call(props, propKey$jscomp$8)) {
  1555. var propValue$jscomp$8 = props[propKey$jscomp$8];
  1556. if (null != propValue$jscomp$8)
  1557. switch (propKey$jscomp$8) {
  1558. case "children":
  1559. children$jscomp$6 = propValue$jscomp$8;
  1560. break;
  1561. case "dangerouslySetInnerHTML":
  1562. innerHTML$jscomp$5 = propValue$jscomp$8;
  1563. break;
  1564. default:
  1565. pushAttribute(
  1566. target$jscomp$0,
  1567. propKey$jscomp$8,
  1568. propValue$jscomp$8
  1569. );
  1570. }
  1571. }
  1572. target$jscomp$0.push(">");
  1573. var child = Array.isArray(children$jscomp$6)
  1574. ? 2 > children$jscomp$6.length
  1575. ? children$jscomp$6[0]
  1576. : null
  1577. : children$jscomp$6;
  1578. "function" !== typeof child &&
  1579. "symbol" !== typeof child &&
  1580. null !== child &&
  1581. void 0 !== child &&
  1582. target$jscomp$0.push(("" + child).replace(styleRegex, styleReplacer));
  1583. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$5, children$jscomp$6);
  1584. target$jscomp$0.push(endChunkForTag("style"));
  1585. var JSCompiler_inline_result$jscomp$6 = null;
  1586. } else {
  1587. var styleQueue$jscomp$0 = renderState.styles.get(precedence$jscomp$0);
  1588. if (
  1589. null !==
  1590. (resumableState.styleResources.hasOwnProperty(href$jscomp$0)
  1591. ? resumableState.styleResources[href$jscomp$0]
  1592. : void 0)
  1593. ) {
  1594. resumableState.styleResources[href$jscomp$0] = null;
  1595. styleQueue$jscomp$0 ||
  1596. ((styleQueue$jscomp$0 = {
  1597. precedence: escapeTextForBrowser(precedence$jscomp$0),
  1598. rules: [],
  1599. hrefs: [],
  1600. sheets: new Map()
  1601. }),
  1602. renderState.styles.set(precedence$jscomp$0, styleQueue$jscomp$0));
  1603. var nonceStyle = renderState.nonce.style;
  1604. if (!nonceStyle || nonceStyle === nonce) {
  1605. styleQueue$jscomp$0.hrefs.push(escapeTextForBrowser(href$jscomp$0));
  1606. var target = styleQueue$jscomp$0.rules,
  1607. children$jscomp$7 = null,
  1608. innerHTML$jscomp$6 = null,
  1609. propKey$jscomp$9;
  1610. for (propKey$jscomp$9 in props)
  1611. if (hasOwnProperty.call(props, propKey$jscomp$9)) {
  1612. var propValue$jscomp$9 = props[propKey$jscomp$9];
  1613. if (null != propValue$jscomp$9)
  1614. switch (propKey$jscomp$9) {
  1615. case "children":
  1616. children$jscomp$7 = propValue$jscomp$9;
  1617. break;
  1618. case "dangerouslySetInnerHTML":
  1619. innerHTML$jscomp$6 = propValue$jscomp$9;
  1620. }
  1621. }
  1622. var child$jscomp$0 = Array.isArray(children$jscomp$7)
  1623. ? 2 > children$jscomp$7.length
  1624. ? children$jscomp$7[0]
  1625. : null
  1626. : children$jscomp$7;
  1627. "function" !== typeof child$jscomp$0 &&
  1628. "symbol" !== typeof child$jscomp$0 &&
  1629. null !== child$jscomp$0 &&
  1630. void 0 !== child$jscomp$0 &&
  1631. target.push(
  1632. ("" + child$jscomp$0).replace(styleRegex, styleReplacer)
  1633. );
  1634. pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$7);
  1635. }
  1636. }
  1637. styleQueue$jscomp$0 &&
  1638. hoistableState &&
  1639. hoistableState.styles.add(styleQueue$jscomp$0);
  1640. textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
  1641. JSCompiler_inline_result$jscomp$6 = void 0;
  1642. }
  1643. return JSCompiler_inline_result$jscomp$6;
  1644. case "meta":
  1645. var noscriptTagInScope$jscomp$3 = formatContext.tagScope & 1,
  1646. isFallback$jscomp$1 = formatContext.tagScope & 4;
  1647. if (
  1648. 4 === formatContext.insertionMode ||
  1649. noscriptTagInScope$jscomp$3 ||
  1650. null != props.itemProp
  1651. )
  1652. var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
  1653. target$jscomp$0,
  1654. props,
  1655. "meta"
  1656. );
  1657. else
  1658. textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
  1659. (JSCompiler_inline_result$jscomp$7 = isFallback$jscomp$1
  1660. ? null
  1661. : "string" === typeof props.charSet
  1662. ? pushSelfClosing(renderState.charsetChunks, props, "meta")
  1663. : "viewport" === props.name
  1664. ? pushSelfClosing(renderState.viewportChunks, props, "meta")
  1665. : pushSelfClosing(renderState.hoistableChunks, props, "meta"));
  1666. return JSCompiler_inline_result$jscomp$7;
  1667. case "listing":
  1668. case "pre":
  1669. target$jscomp$0.push(startChunkForTag(type));
  1670. var children$jscomp$8 = null,
  1671. innerHTML$jscomp$7 = null,
  1672. propKey$jscomp$10;
  1673. for (propKey$jscomp$10 in props)
  1674. if (hasOwnProperty.call(props, propKey$jscomp$10)) {
  1675. var propValue$jscomp$10 = props[propKey$jscomp$10];
  1676. if (null != propValue$jscomp$10)
  1677. switch (propKey$jscomp$10) {
  1678. case "children":
  1679. children$jscomp$8 = propValue$jscomp$10;
  1680. break;
  1681. case "dangerouslySetInnerHTML":
  1682. innerHTML$jscomp$7 = propValue$jscomp$10;
  1683. break;
  1684. default:
  1685. pushAttribute(
  1686. target$jscomp$0,
  1687. propKey$jscomp$10,
  1688. propValue$jscomp$10
  1689. );
  1690. }
  1691. }
  1692. target$jscomp$0.push(">");
  1693. if (null != innerHTML$jscomp$7) {
  1694. if (null != children$jscomp$8)
  1695. throw Error(
  1696. "Can only set one of `children` or `props.dangerouslySetInnerHTML`."
  1697. );
  1698. if (
  1699. "object" !== typeof innerHTML$jscomp$7 ||
  1700. !("__html" in innerHTML$jscomp$7)
  1701. )
  1702. throw Error(
  1703. "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information."
  1704. );
  1705. var html = innerHTML$jscomp$7.__html;
  1706. null !== html &&
  1707. void 0 !== html &&
  1708. ("string" === typeof html && 0 < html.length && "\n" === html[0]
  1709. ? target$jscomp$0.push("\n", html)
  1710. : target$jscomp$0.push("" + html));
  1711. }
  1712. "string" === typeof children$jscomp$8 &&
  1713. "\n" === children$jscomp$8[0] &&
  1714. target$jscomp$0.push("\n");
  1715. return children$jscomp$8;
  1716. case "img":
  1717. var pictureOrNoScriptTagInScope = formatContext.tagScope & 3,
  1718. src = props.src,
  1719. srcSet = props.srcSet;
  1720. if (
  1721. !(
  1722. "lazy" === props.loading ||
  1723. (!src && !srcSet) ||
  1724. ("string" !== typeof src && null != src) ||
  1725. ("string" !== typeof srcSet && null != srcSet) ||
  1726. "low" === props.fetchPriority ||
  1727. pictureOrNoScriptTagInScope
  1728. ) &&
  1729. ("string" !== typeof src ||
  1730. ":" !== src[4] ||
  1731. ("d" !== src[0] && "D" !== src[0]) ||
  1732. ("a" !== src[1] && "A" !== src[1]) ||
  1733. ("t" !== src[2] && "T" !== src[2]) ||
  1734. ("a" !== src[3] && "A" !== src[3])) &&
  1735. ("string" !== typeof srcSet ||
  1736. ":" !== srcSet[4] ||
  1737. ("d" !== srcSet[0] && "D" !== srcSet[0]) ||
  1738. ("a" !== srcSet[1] && "A" !== srcSet[1]) ||
  1739. ("t" !== srcSet[2] && "T" !== srcSet[2]) ||
  1740. ("a" !== srcSet[3] && "A" !== srcSet[3]))
  1741. ) {
  1742. null !== hoistableState &&
  1743. formatContext.tagScope & 64 &&
  1744. (hoistableState.suspenseyImages = !0);
  1745. var sizes = "string" === typeof props.sizes ? props.sizes : void 0,
  1746. key$jscomp$0 = srcSet ? srcSet + "\n" + (sizes || "") : src,
  1747. promotablePreloads = renderState.preloads.images,
  1748. resource$jscomp$1 = promotablePreloads.get(key$jscomp$0);
  1749. if (resource$jscomp$1) {
  1750. if (
  1751. "high" === props.fetchPriority ||
  1752. 10 > renderState.highImagePreloads.size
  1753. )
  1754. promotablePreloads.delete(key$jscomp$0),
  1755. renderState.highImagePreloads.add(resource$jscomp$1);
  1756. } else if (
  1757. !resumableState.imageResources.hasOwnProperty(key$jscomp$0)
  1758. ) {
  1759. resumableState.imageResources[key$jscomp$0] = PRELOAD_NO_CREDS;
  1760. var input = props.crossOrigin;
  1761. var JSCompiler_inline_result$jscomp$8 =
  1762. "string" === typeof input
  1763. ? "use-credentials" === input
  1764. ? input
  1765. : ""
  1766. : void 0;
  1767. var headers = renderState.headers,
  1768. header;
  1769. headers &&
  1770. 0 < headers.remainingCapacity &&
  1771. "string" !== typeof props.srcSet &&
  1772. ("high" === props.fetchPriority ||
  1773. 500 > headers.highImagePreloads.length) &&
  1774. ((header = getPreloadAsHeader(src, "image", {
  1775. imageSrcSet: props.srcSet,
  1776. imageSizes: props.sizes,
  1777. crossOrigin: JSCompiler_inline_result$jscomp$8,
  1778. integrity: props.integrity,
  1779. nonce: props.nonce,
  1780. type: props.type,
  1781. fetchPriority: props.fetchPriority,
  1782. referrerPolicy: props.refererPolicy
  1783. })),
  1784. 0 <= (headers.remainingCapacity -= header.length + 2))
  1785. ? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS),
  1786. headers.highImagePreloads && (headers.highImagePreloads += ", "),
  1787. (headers.highImagePreloads += header))
  1788. : ((resource$jscomp$1 = []),
  1789. pushLinkImpl(resource$jscomp$1, {
  1790. rel: "preload",
  1791. as: "image",
  1792. href: srcSet ? void 0 : src,
  1793. imageSrcSet: srcSet,
  1794. imageSizes: sizes,
  1795. crossOrigin: JSCompiler_inline_result$jscomp$8,
  1796. integrity: props.integrity,
  1797. type: props.type,
  1798. fetchPriority: props.fetchPriority,
  1799. referrerPolicy: props.referrerPolicy
  1800. }),
  1801. "high" === props.fetchPriority ||
  1802. 10 > renderState.highImagePreloads.size
  1803. ? renderState.highImagePreloads.add(resource$jscomp$1)
  1804. : (renderState.bulkPreloads.add(resource$jscomp$1),
  1805. promotablePreloads.set(key$jscomp$0, resource$jscomp$1)));
  1806. }
  1807. }
  1808. return pushSelfClosing(target$jscomp$0, props, "img");
  1809. case "base":
  1810. case "area":
  1811. case "br":
  1812. case "col":
  1813. case "embed":
  1814. case "hr":
  1815. case "keygen":
  1816. case "param":
  1817. case "source":
  1818. case "track":
  1819. case "wbr":
  1820. return pushSelfClosing(target$jscomp$0, props, type);
  1821. case "annotation-xml":
  1822. case "color-profile":
  1823. case "font-face":
  1824. case "font-face-src":
  1825. case "font-face-uri":
  1826. case "font-face-format":
  1827. case "font-face-name":
  1828. case "missing-glyph":
  1829. break;
  1830. case "head":
  1831. if (2 > formatContext.insertionMode) {
  1832. var preamble = preambleState || renderState.preamble;
  1833. if (preamble.headChunks)
  1834. throw Error("The `<head>` tag may only be rendered once.");
  1835. null !== preambleState && target$jscomp$0.push("\x3c!--head--\x3e");
  1836. preamble.headChunks = [];
  1837. var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
  1838. preamble.headChunks,
  1839. props,
  1840. "head"
  1841. );
  1842. } else
  1843. JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
  1844. target$jscomp$0,
  1845. props,
  1846. "head"
  1847. );
  1848. return JSCompiler_inline_result$jscomp$9;
  1849. case "body":
  1850. if (2 > formatContext.insertionMode) {
  1851. var preamble$jscomp$0 = preambleState || renderState.preamble;
  1852. if (preamble$jscomp$0.bodyChunks)
  1853. throw Error("The `<body>` tag may only be rendered once.");
  1854. null !== preambleState && target$jscomp$0.push("\x3c!--body--\x3e");
  1855. preamble$jscomp$0.bodyChunks = [];
  1856. var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
  1857. preamble$jscomp$0.bodyChunks,
  1858. props,
  1859. "body"
  1860. );
  1861. } else
  1862. JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
  1863. target$jscomp$0,
  1864. props,
  1865. "body"
  1866. );
  1867. return JSCompiler_inline_result$jscomp$10;
  1868. case "html":
  1869. if (0 === formatContext.insertionMode) {
  1870. var preamble$jscomp$1 = preambleState || renderState.preamble;
  1871. if (preamble$jscomp$1.htmlChunks)
  1872. throw Error("The `<html>` tag may only be rendered once.");
  1873. null !== preambleState && target$jscomp$0.push("\x3c!--html--\x3e");
  1874. preamble$jscomp$1.htmlChunks = [""];
  1875. var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
  1876. preamble$jscomp$1.htmlChunks,
  1877. props,
  1878. "html"
  1879. );
  1880. } else
  1881. JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
  1882. target$jscomp$0,
  1883. props,
  1884. "html"
  1885. );
  1886. return JSCompiler_inline_result$jscomp$11;
  1887. default:
  1888. if (-1 !== type.indexOf("-")) {
  1889. target$jscomp$0.push(startChunkForTag(type));
  1890. var children$jscomp$9 = null,
  1891. innerHTML$jscomp$8 = null,
  1892. propKey$jscomp$11;
  1893. for (propKey$jscomp$11 in props)
  1894. if (hasOwnProperty.call(props, propKey$jscomp$11)) {
  1895. var propValue$jscomp$11 = props[propKey$jscomp$11];
  1896. if (null != propValue$jscomp$11) {
  1897. var attributeName = propKey$jscomp$11;
  1898. switch (propKey$jscomp$11) {
  1899. case "children":
  1900. children$jscomp$9 = propValue$jscomp$11;
  1901. break;
  1902. case "dangerouslySetInnerHTML":
  1903. innerHTML$jscomp$8 = propValue$jscomp$11;
  1904. break;
  1905. case "style":
  1906. pushStyleAttribute(target$jscomp$0, propValue$jscomp$11);
  1907. break;
  1908. case "suppressContentEditableWarning":
  1909. case "suppressHydrationWarning":
  1910. case "ref":
  1911. break;
  1912. case "className":
  1913. attributeName = "class";
  1914. default:
  1915. if (
  1916. isAttributeNameSafe(propKey$jscomp$11) &&
  1917. "function" !== typeof propValue$jscomp$11 &&
  1918. "symbol" !== typeof propValue$jscomp$11 &&
  1919. !1 !== propValue$jscomp$11
  1920. ) {
  1921. if (!0 === propValue$jscomp$11) propValue$jscomp$11 = "";
  1922. else if ("object" === typeof propValue$jscomp$11) continue;
  1923. target$jscomp$0.push(
  1924. " ",
  1925. attributeName,
  1926. '="',
  1927. escapeTextForBrowser(propValue$jscomp$11),
  1928. '"'
  1929. );
  1930. }
  1931. }
  1932. }
  1933. }
  1934. target$jscomp$0.push(">");
  1935. pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
  1936. return children$jscomp$9;
  1937. }
  1938. }
  1939. return pushStartGenericElement(target$jscomp$0, props, type);
  1940. }
  1941. var endTagCache = new Map();
  1942. function endChunkForTag(tag) {
  1943. var chunk = endTagCache.get(tag);
  1944. void 0 === chunk && ((chunk = "</" + tag + ">"), endTagCache.set(tag, chunk));
  1945. return chunk;
  1946. }
  1947. function hoistPreambleState(renderState, preambleState) {
  1948. renderState = renderState.preamble;
  1949. null === renderState.htmlChunks &&
  1950. preambleState.htmlChunks &&
  1951. (renderState.htmlChunks = preambleState.htmlChunks);
  1952. null === renderState.headChunks &&
  1953. preambleState.headChunks &&
  1954. (renderState.headChunks = preambleState.headChunks);
  1955. null === renderState.bodyChunks &&
  1956. preambleState.bodyChunks &&
  1957. (renderState.bodyChunks = preambleState.bodyChunks);
  1958. }
  1959. function writeBootstrap(destination, renderState) {
  1960. renderState = renderState.bootstrapChunks;
  1961. for (var i = 0; i < renderState.length - 1; i++)
  1962. destination.push(renderState[i]);
  1963. return i < renderState.length
  1964. ? ((i = renderState[i]), (renderState.length = 0), destination.push(i))
  1965. : !0;
  1966. }
  1967. function writeStartPendingSuspenseBoundary(destination, renderState, id) {
  1968. destination.push('\x3c!--$?--\x3e<template id="');
  1969. if (null === id)
  1970. throw Error(
  1971. "An ID must have been assigned before we can complete the boundary."
  1972. );
  1973. destination.push(renderState.boundaryPrefix);
  1974. renderState = id.toString(16);
  1975. destination.push(renderState);
  1976. return destination.push('"></template>');
  1977. }
  1978. function writeStartSegment(destination, renderState, formatContext, id) {
  1979. switch (formatContext.insertionMode) {
  1980. case 0:
  1981. case 1:
  1982. case 3:
  1983. case 2:
  1984. return (
  1985. destination.push('<div hidden id="'),
  1986. destination.push(renderState.segmentPrefix),
  1987. (renderState = id.toString(16)),
  1988. destination.push(renderState),
  1989. destination.push('">')
  1990. );
  1991. case 4:
  1992. return (
  1993. destination.push('<svg aria-hidden="true" style="display:none" id="'),
  1994. destination.push(renderState.segmentPrefix),
  1995. (renderState = id.toString(16)),
  1996. destination.push(renderState),
  1997. destination.push('">')
  1998. );
  1999. case 5:
  2000. return (
  2001. destination.push('<math aria-hidden="true" style="display:none" id="'),
  2002. destination.push(renderState.segmentPrefix),
  2003. (renderState = id.toString(16)),
  2004. destination.push(renderState),
  2005. destination.push('">')
  2006. );
  2007. case 6:
  2008. return (
  2009. destination.push('<table hidden id="'),
  2010. destination.push(renderState.segmentPrefix),
  2011. (renderState = id.toString(16)),
  2012. destination.push(renderState),
  2013. destination.push('">')
  2014. );
  2015. case 7:
  2016. return (
  2017. destination.push('<table hidden><tbody id="'),
  2018. destination.push(renderState.segmentPrefix),
  2019. (renderState = id.toString(16)),
  2020. destination.push(renderState),
  2021. destination.push('">')
  2022. );
  2023. case 8:
  2024. return (
  2025. destination.push('<table hidden><tr id="'),
  2026. destination.push(renderState.segmentPrefix),
  2027. (renderState = id.toString(16)),
  2028. destination.push(renderState),
  2029. destination.push('">')
  2030. );
  2031. case 9:
  2032. return (
  2033. destination.push('<table hidden><colgroup id="'),
  2034. destination.push(renderState.segmentPrefix),
  2035. (renderState = id.toString(16)),
  2036. destination.push(renderState),
  2037. destination.push('">')
  2038. );
  2039. default:
  2040. throw Error("Unknown insertion mode. This is a bug in React.");
  2041. }
  2042. }
  2043. function writeEndSegment(destination, formatContext) {
  2044. switch (formatContext.insertionMode) {
  2045. case 0:
  2046. case 1:
  2047. case 3:
  2048. case 2:
  2049. return destination.push("</div>");
  2050. case 4:
  2051. return destination.push("</svg>");
  2052. case 5:
  2053. return destination.push("</math>");
  2054. case 6:
  2055. return destination.push("</table>");
  2056. case 7:
  2057. return destination.push("</tbody></table>");
  2058. case 8:
  2059. return destination.push("</tr></table>");
  2060. case 9:
  2061. return destination.push("</colgroup></table>");
  2062. default:
  2063. throw Error("Unknown insertion mode. This is a bug in React.");
  2064. }
  2065. }
  2066. var regexForJSStringsInInstructionScripts = /[<\u2028\u2029]/g;
  2067. function escapeJSStringsForInstructionScripts(input) {
  2068. return JSON.stringify(input).replace(
  2069. regexForJSStringsInInstructionScripts,
  2070. function (match) {
  2071. switch (match) {
  2072. case "<":
  2073. return "\\u003c";
  2074. case "\u2028":
  2075. return "\\u2028";
  2076. case "\u2029":
  2077. return "\\u2029";
  2078. default:
  2079. throw Error(
  2080. "escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React"
  2081. );
  2082. }
  2083. }
  2084. );
  2085. }
  2086. var regexForJSStringsInScripts = /[&><\u2028\u2029]/g;
  2087. function escapeJSObjectForInstructionScripts(input) {
  2088. return JSON.stringify(input).replace(
  2089. regexForJSStringsInScripts,
  2090. function (match) {
  2091. switch (match) {
  2092. case "&":
  2093. return "\\u0026";
  2094. case ">":
  2095. return "\\u003e";
  2096. case "<":
  2097. return "\\u003c";
  2098. case "\u2028":
  2099. return "\\u2028";
  2100. case "\u2029":
  2101. return "\\u2029";
  2102. default:
  2103. throw Error(
  2104. "escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React"
  2105. );
  2106. }
  2107. }
  2108. );
  2109. }
  2110. var currentlyRenderingBoundaryHasStylesToHoist = !1,
  2111. destinationHasCapacity = !0;
  2112. function flushStyleTagsLateForBoundary(styleQueue) {
  2113. var rules = styleQueue.rules,
  2114. hrefs = styleQueue.hrefs,
  2115. i = 0;
  2116. if (hrefs.length) {
  2117. this.push(currentlyFlushingRenderState.startInlineStyle);
  2118. this.push(' media="not all" data-precedence="');
  2119. this.push(styleQueue.precedence);
  2120. for (this.push('" data-href="'); i < hrefs.length - 1; i++)
  2121. this.push(hrefs[i]), this.push(" ");
  2122. this.push(hrefs[i]);
  2123. this.push('">');
  2124. for (i = 0; i < rules.length; i++) this.push(rules[i]);
  2125. destinationHasCapacity = this.push("</style>");
  2126. currentlyRenderingBoundaryHasStylesToHoist = !0;
  2127. rules.length = 0;
  2128. hrefs.length = 0;
  2129. }
  2130. }
  2131. function hasStylesToHoist(stylesheet) {
  2132. return 2 !== stylesheet.state
  2133. ? (currentlyRenderingBoundaryHasStylesToHoist = !0)
  2134. : !1;
  2135. }
  2136. function writeHoistablesForBoundary(destination, hoistableState, renderState) {
  2137. currentlyRenderingBoundaryHasStylesToHoist = !1;
  2138. destinationHasCapacity = !0;
  2139. currentlyFlushingRenderState = renderState;
  2140. hoistableState.styles.forEach(flushStyleTagsLateForBoundary, destination);
  2141. currentlyFlushingRenderState = null;
  2142. hoistableState.stylesheets.forEach(hasStylesToHoist);
  2143. currentlyRenderingBoundaryHasStylesToHoist &&
  2144. (renderState.stylesToHoist = !0);
  2145. return destinationHasCapacity;
  2146. }
  2147. function flushResource(resource) {
  2148. for (var i = 0; i < resource.length; i++) this.push(resource[i]);
  2149. resource.length = 0;
  2150. }
  2151. var stylesheetFlushingQueue = [];
  2152. function flushStyleInPreamble(stylesheet) {
  2153. pushLinkImpl(stylesheetFlushingQueue, stylesheet.props);
  2154. for (var i = 0; i < stylesheetFlushingQueue.length; i++)
  2155. this.push(stylesheetFlushingQueue[i]);
  2156. stylesheetFlushingQueue.length = 0;
  2157. stylesheet.state = 2;
  2158. }
  2159. function flushStylesInPreamble(styleQueue) {
  2160. var hasStylesheets = 0 < styleQueue.sheets.size;
  2161. styleQueue.sheets.forEach(flushStyleInPreamble, this);
  2162. styleQueue.sheets.clear();
  2163. var rules = styleQueue.rules,
  2164. hrefs = styleQueue.hrefs;
  2165. if (!hasStylesheets || hrefs.length) {
  2166. this.push(currentlyFlushingRenderState.startInlineStyle);
  2167. this.push(' data-precedence="');
  2168. this.push(styleQueue.precedence);
  2169. styleQueue = 0;
  2170. if (hrefs.length) {
  2171. for (
  2172. this.push('" data-href="');
  2173. styleQueue < hrefs.length - 1;
  2174. styleQueue++
  2175. )
  2176. this.push(hrefs[styleQueue]), this.push(" ");
  2177. this.push(hrefs[styleQueue]);
  2178. }
  2179. this.push('">');
  2180. for (styleQueue = 0; styleQueue < rules.length; styleQueue++)
  2181. this.push(rules[styleQueue]);
  2182. this.push("</style>");
  2183. rules.length = 0;
  2184. hrefs.length = 0;
  2185. }
  2186. }
  2187. function preloadLateStyle(stylesheet) {
  2188. if (0 === stylesheet.state) {
  2189. stylesheet.state = 1;
  2190. var props = stylesheet.props;
  2191. pushLinkImpl(stylesheetFlushingQueue, {
  2192. rel: "preload",
  2193. as: "style",
  2194. href: stylesheet.props.href,
  2195. crossOrigin: props.crossOrigin,
  2196. fetchPriority: props.fetchPriority,
  2197. integrity: props.integrity,
  2198. media: props.media,
  2199. hrefLang: props.hrefLang,
  2200. referrerPolicy: props.referrerPolicy
  2201. });
  2202. for (
  2203. stylesheet = 0;
  2204. stylesheet < stylesheetFlushingQueue.length;
  2205. stylesheet++
  2206. )
  2207. this.push(stylesheetFlushingQueue[stylesheet]);
  2208. stylesheetFlushingQueue.length = 0;
  2209. }
  2210. }
  2211. function preloadLateStyles(styleQueue) {
  2212. styleQueue.sheets.forEach(preloadLateStyle, this);
  2213. styleQueue.sheets.clear();
  2214. }
  2215. function pushCompletedShellIdAttribute(target, resumableState) {
  2216. 0 === (resumableState.instructions & 32) &&
  2217. ((resumableState.instructions |= 32),
  2218. target.push(
  2219. ' id="',
  2220. escapeTextForBrowser("_" + resumableState.idPrefix + "R_"),
  2221. '"'
  2222. ));
  2223. }
  2224. function writeStyleResourceDependenciesInJS(destination, hoistableState) {
  2225. destination.push("[");
  2226. var nextArrayOpenBrackChunk = "[";
  2227. hoistableState.stylesheets.forEach(function (resource) {
  2228. if (2 !== resource.state)
  2229. if (3 === resource.state)
  2230. destination.push(nextArrayOpenBrackChunk),
  2231. (resource = escapeJSObjectForInstructionScripts(
  2232. "" + resource.props.href
  2233. )),
  2234. destination.push(resource),
  2235. destination.push("]"),
  2236. (nextArrayOpenBrackChunk = ",[");
  2237. else {
  2238. destination.push(nextArrayOpenBrackChunk);
  2239. var precedence = resource.props["data-precedence"],
  2240. props = resource.props,
  2241. coercedHref = sanitizeURL("" + resource.props.href);
  2242. coercedHref = escapeJSObjectForInstructionScripts(coercedHref);
  2243. destination.push(coercedHref);
  2244. precedence = "" + precedence;
  2245. destination.push(",");
  2246. precedence = escapeJSObjectForInstructionScripts(precedence);
  2247. destination.push(precedence);
  2248. for (var propKey in props)
  2249. if (
  2250. hasOwnProperty.call(props, propKey) &&
  2251. ((precedence = props[propKey]), null != precedence)
  2252. )
  2253. switch (propKey) {
  2254. case "href":
  2255. case "rel":
  2256. case "precedence":
  2257. case "data-precedence":
  2258. break;
  2259. case "children":
  2260. case "dangerouslySetInnerHTML":
  2261. throw Error(
  2262. "link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`."
  2263. );
  2264. default:
  2265. writeStyleResourceAttributeInJS(
  2266. destination,
  2267. propKey,
  2268. precedence
  2269. );
  2270. }
  2271. destination.push("]");
  2272. nextArrayOpenBrackChunk = ",[";
  2273. resource.state = 3;
  2274. }
  2275. });
  2276. destination.push("]");
  2277. }
  2278. function writeStyleResourceAttributeInJS(destination, name, value) {
  2279. var attributeName = name.toLowerCase();
  2280. switch (typeof value) {
  2281. case "function":
  2282. case "symbol":
  2283. return;
  2284. }
  2285. switch (name) {
  2286. case "innerHTML":
  2287. case "dangerouslySetInnerHTML":
  2288. case "suppressContentEditableWarning":
  2289. case "suppressHydrationWarning":
  2290. case "style":
  2291. case "ref":
  2292. return;
  2293. case "className":
  2294. attributeName = "class";
  2295. name = "" + value;
  2296. break;
  2297. case "hidden":
  2298. if (!1 === value) return;
  2299. name = "";
  2300. break;
  2301. case "src":
  2302. case "href":
  2303. value = sanitizeURL(value);
  2304. name = "" + value;
  2305. break;
  2306. default:
  2307. if (
  2308. (2 < name.length &&
  2309. ("o" === name[0] || "O" === name[0]) &&
  2310. ("n" === name[1] || "N" === name[1])) ||
  2311. !isAttributeNameSafe(name)
  2312. )
  2313. return;
  2314. name = "" + value;
  2315. }
  2316. destination.push(",");
  2317. attributeName = escapeJSObjectForInstructionScripts(attributeName);
  2318. destination.push(attributeName);
  2319. destination.push(",");
  2320. attributeName = escapeJSObjectForInstructionScripts(name);
  2321. destination.push(attributeName);
  2322. }
  2323. function createHoistableState() {
  2324. return { styles: new Set(), stylesheets: new Set(), suspenseyImages: !1 };
  2325. }
  2326. function prefetchDNS(href) {
  2327. var request = currentRequest ? currentRequest : null;
  2328. if (request) {
  2329. var resumableState = request.resumableState,
  2330. renderState = request.renderState;
  2331. if ("string" === typeof href && href) {
  2332. if (!resumableState.dnsResources.hasOwnProperty(href)) {
  2333. resumableState.dnsResources[href] = null;
  2334. resumableState = renderState.headers;
  2335. var header, JSCompiler_temp;
  2336. if (
  2337. (JSCompiler_temp =
  2338. resumableState && 0 < resumableState.remainingCapacity)
  2339. )
  2340. JSCompiler_temp =
  2341. ((header =
  2342. "<" +
  2343. ("" + href).replace(
  2344. regexForHrefInLinkHeaderURLContext,
  2345. escapeHrefForLinkHeaderURLContextReplacer
  2346. ) +
  2347. ">; rel=dns-prefetch"),
  2348. 0 <= (resumableState.remainingCapacity -= header.length + 2));
  2349. JSCompiler_temp
  2350. ? ((renderState.resets.dns[href] = null),
  2351. resumableState.preconnects && (resumableState.preconnects += ", "),
  2352. (resumableState.preconnects += header))
  2353. : ((header = []),
  2354. pushLinkImpl(header, { href: href, rel: "dns-prefetch" }),
  2355. renderState.preconnects.add(header));
  2356. }
  2357. enqueueFlush(request);
  2358. }
  2359. } else previousDispatcher.D(href);
  2360. }
  2361. function preconnect(href, crossOrigin) {
  2362. var request = currentRequest ? currentRequest : null;
  2363. if (request) {
  2364. var resumableState = request.resumableState,
  2365. renderState = request.renderState;
  2366. if ("string" === typeof href && href) {
  2367. var bucket =
  2368. "use-credentials" === crossOrigin
  2369. ? "credentials"
  2370. : "string" === typeof crossOrigin
  2371. ? "anonymous"
  2372. : "default";
  2373. if (!resumableState.connectResources[bucket].hasOwnProperty(href)) {
  2374. resumableState.connectResources[bucket][href] = null;
  2375. resumableState = renderState.headers;
  2376. var header, JSCompiler_temp;
  2377. if (
  2378. (JSCompiler_temp =
  2379. resumableState && 0 < resumableState.remainingCapacity)
  2380. ) {
  2381. JSCompiler_temp =
  2382. "<" +
  2383. ("" + href).replace(
  2384. regexForHrefInLinkHeaderURLContext,
  2385. escapeHrefForLinkHeaderURLContextReplacer
  2386. ) +
  2387. ">; rel=preconnect";
  2388. if ("string" === typeof crossOrigin) {
  2389. var escapedCrossOrigin = ("" + crossOrigin).replace(
  2390. regexForLinkHeaderQuotedParamValueContext,
  2391. escapeStringForLinkHeaderQuotedParamValueContextReplacer
  2392. );
  2393. JSCompiler_temp += '; crossorigin="' + escapedCrossOrigin + '"';
  2394. }
  2395. JSCompiler_temp =
  2396. ((header = JSCompiler_temp),
  2397. 0 <= (resumableState.remainingCapacity -= header.length + 2));
  2398. }
  2399. JSCompiler_temp
  2400. ? ((renderState.resets.connect[bucket][href] = null),
  2401. resumableState.preconnects && (resumableState.preconnects += ", "),
  2402. (resumableState.preconnects += header))
  2403. : ((bucket = []),
  2404. pushLinkImpl(bucket, {
  2405. rel: "preconnect",
  2406. href: href,
  2407. crossOrigin: crossOrigin
  2408. }),
  2409. renderState.preconnects.add(bucket));
  2410. }
  2411. enqueueFlush(request);
  2412. }
  2413. } else previousDispatcher.C(href, crossOrigin);
  2414. }
  2415. function preload(href, as, options) {
  2416. var request = currentRequest ? currentRequest : null;
  2417. if (request) {
  2418. var resumableState = request.resumableState,
  2419. renderState = request.renderState;
  2420. if (as && href) {
  2421. switch (as) {
  2422. case "image":
  2423. if (options) {
  2424. var imageSrcSet = options.imageSrcSet;
  2425. var imageSizes = options.imageSizes;
  2426. var fetchPriority = options.fetchPriority;
  2427. }
  2428. var key = imageSrcSet
  2429. ? imageSrcSet + "\n" + (imageSizes || "")
  2430. : href;
  2431. if (resumableState.imageResources.hasOwnProperty(key)) return;
  2432. resumableState.imageResources[key] = PRELOAD_NO_CREDS;
  2433. resumableState = renderState.headers;
  2434. var header;
  2435. resumableState &&
  2436. 0 < resumableState.remainingCapacity &&
  2437. "string" !== typeof imageSrcSet &&
  2438. "high" === fetchPriority &&
  2439. ((header = getPreloadAsHeader(href, as, options)),
  2440. 0 <= (resumableState.remainingCapacity -= header.length + 2))
  2441. ? ((renderState.resets.image[key] = PRELOAD_NO_CREDS),
  2442. resumableState.highImagePreloads &&
  2443. (resumableState.highImagePreloads += ", "),
  2444. (resumableState.highImagePreloads += header))
  2445. : ((resumableState = []),
  2446. pushLinkImpl(
  2447. resumableState,
  2448. assign(
  2449. { rel: "preload", href: imageSrcSet ? void 0 : href, as: as },
  2450. options
  2451. )
  2452. ),
  2453. "high" === fetchPriority
  2454. ? renderState.highImagePreloads.add(resumableState)
  2455. : (renderState.bulkPreloads.add(resumableState),
  2456. renderState.preloads.images.set(key, resumableState)));
  2457. break;
  2458. case "style":
  2459. if (resumableState.styleResources.hasOwnProperty(href)) return;
  2460. imageSrcSet = [];
  2461. pushLinkImpl(
  2462. imageSrcSet,
  2463. assign({ rel: "preload", href: href, as: as }, options)
  2464. );
  2465. resumableState.styleResources[href] =
  2466. !options ||
  2467. ("string" !== typeof options.crossOrigin &&
  2468. "string" !== typeof options.integrity)
  2469. ? PRELOAD_NO_CREDS
  2470. : [options.crossOrigin, options.integrity];
  2471. renderState.preloads.stylesheets.set(href, imageSrcSet);
  2472. renderState.bulkPreloads.add(imageSrcSet);
  2473. break;
  2474. case "script":
  2475. if (resumableState.scriptResources.hasOwnProperty(href)) return;
  2476. imageSrcSet = [];
  2477. renderState.preloads.scripts.set(href, imageSrcSet);
  2478. renderState.bulkPreloads.add(imageSrcSet);
  2479. pushLinkImpl(
  2480. imageSrcSet,
  2481. assign({ rel: "preload", href: href, as: as }, options)
  2482. );
  2483. resumableState.scriptResources[href] =
  2484. !options ||
  2485. ("string" !== typeof options.crossOrigin &&
  2486. "string" !== typeof options.integrity)
  2487. ? PRELOAD_NO_CREDS
  2488. : [options.crossOrigin, options.integrity];
  2489. break;
  2490. default:
  2491. if (resumableState.unknownResources.hasOwnProperty(as)) {
  2492. if (
  2493. ((imageSrcSet = resumableState.unknownResources[as]),
  2494. imageSrcSet.hasOwnProperty(href))
  2495. )
  2496. return;
  2497. } else
  2498. (imageSrcSet = {}),
  2499. (resumableState.unknownResources[as] = imageSrcSet);
  2500. imageSrcSet[href] = PRELOAD_NO_CREDS;
  2501. if (
  2502. (resumableState = renderState.headers) &&
  2503. 0 < resumableState.remainingCapacity &&
  2504. "font" === as &&
  2505. ((key = getPreloadAsHeader(href, as, options)),
  2506. 0 <= (resumableState.remainingCapacity -= key.length + 2))
  2507. )
  2508. (renderState.resets.font[href] = PRELOAD_NO_CREDS),
  2509. resumableState.fontPreloads &&
  2510. (resumableState.fontPreloads += ", "),
  2511. (resumableState.fontPreloads += key);
  2512. else
  2513. switch (
  2514. ((resumableState = []),
  2515. (href = assign({ rel: "preload", href: href, as: as }, options)),
  2516. pushLinkImpl(resumableState, href),
  2517. as)
  2518. ) {
  2519. case "font":
  2520. renderState.fontPreloads.add(resumableState);
  2521. break;
  2522. default:
  2523. renderState.bulkPreloads.add(resumableState);
  2524. }
  2525. }
  2526. enqueueFlush(request);
  2527. }
  2528. } else previousDispatcher.L(href, as, options);
  2529. }
  2530. function preloadModule(href, options) {
  2531. var request = currentRequest ? currentRequest : null;
  2532. if (request) {
  2533. var resumableState = request.resumableState,
  2534. renderState = request.renderState;
  2535. if (href) {
  2536. var as =
  2537. options && "string" === typeof options.as ? options.as : "script";
  2538. switch (as) {
  2539. case "script":
  2540. if (resumableState.moduleScriptResources.hasOwnProperty(href)) return;
  2541. as = [];
  2542. resumableState.moduleScriptResources[href] =
  2543. !options ||
  2544. ("string" !== typeof options.crossOrigin &&
  2545. "string" !== typeof options.integrity)
  2546. ? PRELOAD_NO_CREDS
  2547. : [options.crossOrigin, options.integrity];
  2548. renderState.preloads.moduleScripts.set(href, as);
  2549. break;
  2550. default:
  2551. if (resumableState.moduleUnknownResources.hasOwnProperty(as)) {
  2552. var resources = resumableState.unknownResources[as];
  2553. if (resources.hasOwnProperty(href)) return;
  2554. } else
  2555. (resources = {}),
  2556. (resumableState.moduleUnknownResources[as] = resources);
  2557. as = [];
  2558. resources[href] = PRELOAD_NO_CREDS;
  2559. }
  2560. pushLinkImpl(as, assign({ rel: "modulepreload", href: href }, options));
  2561. renderState.bulkPreloads.add(as);
  2562. enqueueFlush(request);
  2563. }
  2564. } else previousDispatcher.m(href, options);
  2565. }
  2566. function preinitStyle(href, precedence, options) {
  2567. var request = currentRequest ? currentRequest : null;
  2568. if (request) {
  2569. var resumableState = request.resumableState,
  2570. renderState = request.renderState;
  2571. if (href) {
  2572. precedence = precedence || "default";
  2573. var styleQueue = renderState.styles.get(precedence),
  2574. resourceState = resumableState.styleResources.hasOwnProperty(href)
  2575. ? resumableState.styleResources[href]
  2576. : void 0;
  2577. null !== resourceState &&
  2578. ((resumableState.styleResources[href] = null),
  2579. styleQueue ||
  2580. ((styleQueue = {
  2581. precedence: escapeTextForBrowser(precedence),
  2582. rules: [],
  2583. hrefs: [],
  2584. sheets: new Map()
  2585. }),
  2586. renderState.styles.set(precedence, styleQueue)),
  2587. (precedence = {
  2588. state: 0,
  2589. props: assign(
  2590. { rel: "stylesheet", href: href, "data-precedence": precedence },
  2591. options
  2592. )
  2593. }),
  2594. resourceState &&
  2595. (2 === resourceState.length &&
  2596. adoptPreloadCredentials(precedence.props, resourceState),
  2597. (renderState = renderState.preloads.stylesheets.get(href)) &&
  2598. 0 < renderState.length
  2599. ? (renderState.length = 0)
  2600. : (precedence.state = 1)),
  2601. styleQueue.sheets.set(href, precedence),
  2602. enqueueFlush(request));
  2603. }
  2604. } else previousDispatcher.S(href, precedence, options);
  2605. }
  2606. function preinitScript(src, options) {
  2607. var request = currentRequest ? currentRequest : null;
  2608. if (request) {
  2609. var resumableState = request.resumableState,
  2610. renderState = request.renderState;
  2611. if (src) {
  2612. var resourceState = resumableState.scriptResources.hasOwnProperty(src)
  2613. ? resumableState.scriptResources[src]
  2614. : void 0;
  2615. null !== resourceState &&
  2616. ((resumableState.scriptResources[src] = null),
  2617. (options = assign({ src: src, async: !0 }, options)),
  2618. resourceState &&
  2619. (2 === resourceState.length &&
  2620. adoptPreloadCredentials(options, resourceState),
  2621. (src = renderState.preloads.scripts.get(src))) &&
  2622. (src.length = 0),
  2623. (src = []),
  2624. renderState.scripts.add(src),
  2625. pushScriptImpl(src, options),
  2626. enqueueFlush(request));
  2627. }
  2628. } else previousDispatcher.X(src, options);
  2629. }
  2630. function preinitModuleScript(src, options) {
  2631. var request = currentRequest ? currentRequest : null;
  2632. if (request) {
  2633. var resumableState = request.resumableState,
  2634. renderState = request.renderState;
  2635. if (src) {
  2636. var resourceState = resumableState.moduleScriptResources.hasOwnProperty(
  2637. src
  2638. )
  2639. ? resumableState.moduleScriptResources[src]
  2640. : void 0;
  2641. null !== resourceState &&
  2642. ((resumableState.moduleScriptResources[src] = null),
  2643. (options = assign({ src: src, type: "module", async: !0 }, options)),
  2644. resourceState &&
  2645. (2 === resourceState.length &&
  2646. adoptPreloadCredentials(options, resourceState),
  2647. (src = renderState.preloads.moduleScripts.get(src))) &&
  2648. (src.length = 0),
  2649. (src = []),
  2650. renderState.scripts.add(src),
  2651. pushScriptImpl(src, options),
  2652. enqueueFlush(request));
  2653. }
  2654. } else previousDispatcher.M(src, options);
  2655. }
  2656. function adoptPreloadCredentials(target, preloadState) {
  2657. null == target.crossOrigin && (target.crossOrigin = preloadState[0]);
  2658. null == target.integrity && (target.integrity = preloadState[1]);
  2659. }
  2660. function getPreloadAsHeader(href, as, params) {
  2661. href = ("" + href).replace(
  2662. regexForHrefInLinkHeaderURLContext,
  2663. escapeHrefForLinkHeaderURLContextReplacer
  2664. );
  2665. as = ("" + as).replace(
  2666. regexForLinkHeaderQuotedParamValueContext,
  2667. escapeStringForLinkHeaderQuotedParamValueContextReplacer
  2668. );
  2669. as = "<" + href + '>; rel=preload; as="' + as + '"';
  2670. for (var paramName in params)
  2671. hasOwnProperty.call(params, paramName) &&
  2672. ((href = params[paramName]),
  2673. "string" === typeof href &&
  2674. (as +=
  2675. "; " +
  2676. paramName.toLowerCase() +
  2677. '="' +
  2678. ("" + href).replace(
  2679. regexForLinkHeaderQuotedParamValueContext,
  2680. escapeStringForLinkHeaderQuotedParamValueContextReplacer
  2681. ) +
  2682. '"'));
  2683. return as;
  2684. }
  2685. var regexForHrefInLinkHeaderURLContext = /[<>\r\n]/g;
  2686. function escapeHrefForLinkHeaderURLContextReplacer(match) {
  2687. switch (match) {
  2688. case "<":
  2689. return "%3C";
  2690. case ">":
  2691. return "%3E";
  2692. case "\n":
  2693. return "%0A";
  2694. case "\r":
  2695. return "%0D";
  2696. default:
  2697. throw Error(
  2698. "escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React"
  2699. );
  2700. }
  2701. }
  2702. var regexForLinkHeaderQuotedParamValueContext = /["';,\r\n]/g;
  2703. function escapeStringForLinkHeaderQuotedParamValueContextReplacer(match) {
  2704. switch (match) {
  2705. case '"':
  2706. return "%22";
  2707. case "'":
  2708. return "%27";
  2709. case ";":
  2710. return "%3B";
  2711. case ",":
  2712. return "%2C";
  2713. case "\n":
  2714. return "%0A";
  2715. case "\r":
  2716. return "%0D";
  2717. default:
  2718. throw Error(
  2719. "escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React"
  2720. );
  2721. }
  2722. }
  2723. function hoistStyleQueueDependency(styleQueue) {
  2724. this.styles.add(styleQueue);
  2725. }
  2726. function hoistStylesheetDependency(stylesheet) {
  2727. this.stylesheets.add(stylesheet);
  2728. }
  2729. function hoistHoistables(parentState, childState) {
  2730. childState.styles.forEach(hoistStyleQueueDependency, parentState);
  2731. childState.stylesheets.forEach(hoistStylesheetDependency, parentState);
  2732. childState.suspenseyImages && (parentState.suspenseyImages = !0);
  2733. }
  2734. function createRenderState(resumableState, generateStaticMarkup) {
  2735. var idPrefix = resumableState.idPrefix,
  2736. bootstrapChunks = [],
  2737. bootstrapScriptContent = resumableState.bootstrapScriptContent,
  2738. bootstrapScripts = resumableState.bootstrapScripts,
  2739. bootstrapModules = resumableState.bootstrapModules;
  2740. void 0 !== bootstrapScriptContent &&
  2741. (bootstrapChunks.push("<script"),
  2742. pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
  2743. bootstrapChunks.push(
  2744. ">",
  2745. ("" + bootstrapScriptContent).replace(scriptRegex, scriptReplacer),
  2746. "\x3c/script>"
  2747. ));
  2748. bootstrapScriptContent = idPrefix + "P:";
  2749. var JSCompiler_object_inline_segmentPrefix_1673 = idPrefix + "S:";
  2750. idPrefix += "B:";
  2751. var JSCompiler_object_inline_preconnects_1687 = new Set(),
  2752. JSCompiler_object_inline_fontPreloads_1688 = new Set(),
  2753. JSCompiler_object_inline_highImagePreloads_1689 = new Set(),
  2754. JSCompiler_object_inline_styles_1690 = new Map(),
  2755. JSCompiler_object_inline_bootstrapScripts_1691 = new Set(),
  2756. JSCompiler_object_inline_scripts_1692 = new Set(),
  2757. JSCompiler_object_inline_bulkPreloads_1693 = new Set(),
  2758. JSCompiler_object_inline_preloads_1694 = {
  2759. images: new Map(),
  2760. stylesheets: new Map(),
  2761. scripts: new Map(),
  2762. moduleScripts: new Map()
  2763. };
  2764. if (void 0 !== bootstrapScripts)
  2765. for (var i = 0; i < bootstrapScripts.length; i++) {
  2766. var scriptConfig = bootstrapScripts[i],
  2767. src,
  2768. crossOrigin = void 0,
  2769. integrity = void 0,
  2770. props = {
  2771. rel: "preload",
  2772. as: "script",
  2773. fetchPriority: "low",
  2774. nonce: void 0
  2775. };
  2776. "string" === typeof scriptConfig
  2777. ? (props.href = src = scriptConfig)
  2778. : ((props.href = src = scriptConfig.src),
  2779. (props.integrity = integrity =
  2780. "string" === typeof scriptConfig.integrity
  2781. ? scriptConfig.integrity
  2782. : void 0),
  2783. (props.crossOrigin = crossOrigin =
  2784. "string" === typeof scriptConfig || null == scriptConfig.crossOrigin
  2785. ? void 0
  2786. : "use-credentials" === scriptConfig.crossOrigin
  2787. ? "use-credentials"
  2788. : ""));
  2789. scriptConfig = resumableState;
  2790. var href = src;
  2791. scriptConfig.scriptResources[href] = null;
  2792. scriptConfig.moduleScriptResources[href] = null;
  2793. scriptConfig = [];
  2794. pushLinkImpl(scriptConfig, props);
  2795. JSCompiler_object_inline_bootstrapScripts_1691.add(scriptConfig);
  2796. bootstrapChunks.push('<script src="', escapeTextForBrowser(src), '"');
  2797. "string" === typeof integrity &&
  2798. bootstrapChunks.push(
  2799. ' integrity="',
  2800. escapeTextForBrowser(integrity),
  2801. '"'
  2802. );
  2803. "string" === typeof crossOrigin &&
  2804. bootstrapChunks.push(
  2805. ' crossorigin="',
  2806. escapeTextForBrowser(crossOrigin),
  2807. '"'
  2808. );
  2809. pushCompletedShellIdAttribute(bootstrapChunks, resumableState);
  2810. bootstrapChunks.push(' async="">\x3c/script>');
  2811. }
  2812. if (void 0 !== bootstrapModules)
  2813. for (
  2814. bootstrapScripts = 0;
  2815. bootstrapScripts < bootstrapModules.length;
  2816. bootstrapScripts++
  2817. )
  2818. (props = bootstrapModules[bootstrapScripts]),
  2819. (crossOrigin = src = void 0),
  2820. (integrity = {
  2821. rel: "modulepreload",
  2822. fetchPriority: "low",
  2823. nonce: void 0
  2824. }),
  2825. "string" === typeof props
  2826. ? (integrity.href = i = props)
  2827. : ((integrity.href = i = props.src),
  2828. (integrity.integrity = crossOrigin =
  2829. "string" === typeof props.integrity ? props.integrity : void 0),
  2830. (integrity.crossOrigin = src =
  2831. "string" === typeof props || null == props.crossOrigin
  2832. ? void 0
  2833. : "use-credentials" === props.crossOrigin
  2834. ? "use-credentials"
  2835. : "")),
  2836. (props = resumableState),
  2837. (scriptConfig = i),
  2838. (props.scriptResources[scriptConfig] = null),
  2839. (props.moduleScriptResources[scriptConfig] = null),
  2840. (props = []),
  2841. pushLinkImpl(props, integrity),
  2842. JSCompiler_object_inline_bootstrapScripts_1691.add(props),
  2843. bootstrapChunks.push(
  2844. '<script type="module" src="',
  2845. escapeTextForBrowser(i),
  2846. '"'
  2847. ),
  2848. "string" === typeof crossOrigin &&
  2849. bootstrapChunks.push(
  2850. ' integrity="',
  2851. escapeTextForBrowser(crossOrigin),
  2852. '"'
  2853. ),
  2854. "string" === typeof src &&
  2855. bootstrapChunks.push(
  2856. ' crossorigin="',
  2857. escapeTextForBrowser(src),
  2858. '"'
  2859. ),
  2860. pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
  2861. bootstrapChunks.push(' async="">\x3c/script>');
  2862. return {
  2863. placeholderPrefix: bootstrapScriptContent,
  2864. segmentPrefix: JSCompiler_object_inline_segmentPrefix_1673,
  2865. boundaryPrefix: idPrefix,
  2866. startInlineScript: "<script",
  2867. startInlineStyle: "<style",
  2868. preamble: { htmlChunks: null, headChunks: null, bodyChunks: null },
  2869. externalRuntimeScript: null,
  2870. bootstrapChunks: bootstrapChunks,
  2871. importMapChunks: [],
  2872. onHeaders: void 0,
  2873. headers: null,
  2874. resets: {
  2875. font: {},
  2876. dns: {},
  2877. connect: { default: {}, anonymous: {}, credentials: {} },
  2878. image: {},
  2879. style: {}
  2880. },
  2881. charsetChunks: [],
  2882. viewportChunks: [],
  2883. hoistableChunks: [],
  2884. preconnects: JSCompiler_object_inline_preconnects_1687,
  2885. fontPreloads: JSCompiler_object_inline_fontPreloads_1688,
  2886. highImagePreloads: JSCompiler_object_inline_highImagePreloads_1689,
  2887. styles: JSCompiler_object_inline_styles_1690,
  2888. bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1691,
  2889. scripts: JSCompiler_object_inline_scripts_1692,
  2890. bulkPreloads: JSCompiler_object_inline_bulkPreloads_1693,
  2891. preloads: JSCompiler_object_inline_preloads_1694,
  2892. nonce: { script: void 0, style: void 0 },
  2893. stylesToHoist: !1,
  2894. generateStaticMarkup: generateStaticMarkup
  2895. };
  2896. }
  2897. function pushTextInstance(target, text, renderState, textEmbedded) {
  2898. if (renderState.generateStaticMarkup)
  2899. return target.push(escapeTextForBrowser(text)), !1;
  2900. "" === text
  2901. ? (target = textEmbedded)
  2902. : (textEmbedded && target.push("\x3c!-- --\x3e"),
  2903. target.push(escapeTextForBrowser(text)),
  2904. (target = !0));
  2905. return target;
  2906. }
  2907. function pushSegmentFinale(target, renderState, lastPushedText, textEmbedded) {
  2908. renderState.generateStaticMarkup ||
  2909. (lastPushedText && textEmbedded && target.push("\x3c!-- --\x3e"));
  2910. }
  2911. var bind = Function.prototype.bind,
  2912. REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
  2913. function getComponentNameFromType(type) {
  2914. if (null == type) return null;
  2915. if ("function" === typeof type)
  2916. return type.$$typeof === REACT_CLIENT_REFERENCE
  2917. ? null
  2918. : type.displayName || type.name || null;
  2919. if ("string" === typeof type) return type;
  2920. switch (type) {
  2921. case REACT_FRAGMENT_TYPE:
  2922. return "Fragment";
  2923. case REACT_PROFILER_TYPE:
  2924. return "Profiler";
  2925. case REACT_STRICT_MODE_TYPE:
  2926. return "StrictMode";
  2927. case REACT_SUSPENSE_TYPE:
  2928. return "Suspense";
  2929. case REACT_SUSPENSE_LIST_TYPE:
  2930. return "SuspenseList";
  2931. case REACT_ACTIVITY_TYPE:
  2932. return "Activity";
  2933. }
  2934. if ("object" === typeof type)
  2935. switch (type.$$typeof) {
  2936. case REACT_PORTAL_TYPE:
  2937. return "Portal";
  2938. case REACT_CONTEXT_TYPE:
  2939. return type.displayName || "Context";
  2940. case REACT_CONSUMER_TYPE:
  2941. return (type._context.displayName || "Context") + ".Consumer";
  2942. case REACT_FORWARD_REF_TYPE:
  2943. var innerType = type.render;
  2944. type = type.displayName;
  2945. type ||
  2946. ((type = innerType.displayName || innerType.name || ""),
  2947. (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
  2948. return type;
  2949. case REACT_MEMO_TYPE:
  2950. return (
  2951. (innerType = type.displayName || null),
  2952. null !== innerType
  2953. ? innerType
  2954. : getComponentNameFromType(type.type) || "Memo"
  2955. );
  2956. case REACT_LAZY_TYPE:
  2957. innerType = type._payload;
  2958. type = type._init;
  2959. try {
  2960. return getComponentNameFromType(type(innerType));
  2961. } catch (x) {}
  2962. }
  2963. return null;
  2964. }
  2965. var emptyContextObject = {},
  2966. currentActiveSnapshot = null;
  2967. function popToNearestCommonAncestor(prev, next) {
  2968. if (prev !== next) {
  2969. prev.context._currentValue2 = prev.parentValue;
  2970. prev = prev.parent;
  2971. var parentNext = next.parent;
  2972. if (null === prev) {
  2973. if (null !== parentNext)
  2974. throw Error(
  2975. "The stacks must reach the root at the same time. This is a bug in React."
  2976. );
  2977. } else {
  2978. if (null === parentNext)
  2979. throw Error(
  2980. "The stacks must reach the root at the same time. This is a bug in React."
  2981. );
  2982. popToNearestCommonAncestor(prev, parentNext);
  2983. }
  2984. next.context._currentValue2 = next.value;
  2985. }
  2986. }
  2987. function popAllPrevious(prev) {
  2988. prev.context._currentValue2 = prev.parentValue;
  2989. prev = prev.parent;
  2990. null !== prev && popAllPrevious(prev);
  2991. }
  2992. function pushAllNext(next) {
  2993. var parentNext = next.parent;
  2994. null !== parentNext && pushAllNext(parentNext);
  2995. next.context._currentValue2 = next.value;
  2996. }
  2997. function popPreviousToCommonLevel(prev, next) {
  2998. prev.context._currentValue2 = prev.parentValue;
  2999. prev = prev.parent;
  3000. if (null === prev)
  3001. throw Error(
  3002. "The depth must equal at least at zero before reaching the root. This is a bug in React."
  3003. );
  3004. prev.depth === next.depth
  3005. ? popToNearestCommonAncestor(prev, next)
  3006. : popPreviousToCommonLevel(prev, next);
  3007. }
  3008. function popNextToCommonLevel(prev, next) {
  3009. var parentNext = next.parent;
  3010. if (null === parentNext)
  3011. throw Error(
  3012. "The depth must equal at least at zero before reaching the root. This is a bug in React."
  3013. );
  3014. prev.depth === parentNext.depth
  3015. ? popToNearestCommonAncestor(prev, parentNext)
  3016. : popNextToCommonLevel(prev, parentNext);
  3017. next.context._currentValue2 = next.value;
  3018. }
  3019. function switchContext(newSnapshot) {
  3020. var prev = currentActiveSnapshot;
  3021. prev !== newSnapshot &&
  3022. (null === prev
  3023. ? pushAllNext(newSnapshot)
  3024. : null === newSnapshot
  3025. ? popAllPrevious(prev)
  3026. : prev.depth === newSnapshot.depth
  3027. ? popToNearestCommonAncestor(prev, newSnapshot)
  3028. : prev.depth > newSnapshot.depth
  3029. ? popPreviousToCommonLevel(prev, newSnapshot)
  3030. : popNextToCommonLevel(prev, newSnapshot),
  3031. (currentActiveSnapshot = newSnapshot));
  3032. }
  3033. var classComponentUpdater = {
  3034. enqueueSetState: function (inst, payload) {
  3035. inst = inst._reactInternals;
  3036. null !== inst.queue && inst.queue.push(payload);
  3037. },
  3038. enqueueReplaceState: function (inst, payload) {
  3039. inst = inst._reactInternals;
  3040. inst.replace = !0;
  3041. inst.queue = [payload];
  3042. },
  3043. enqueueForceUpdate: function () {}
  3044. },
  3045. emptyTreeContext = { id: 1, overflow: "" };
  3046. function pushTreeContext(baseContext, totalChildren, index) {
  3047. var baseIdWithLeadingBit = baseContext.id;
  3048. baseContext = baseContext.overflow;
  3049. var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1;
  3050. baseIdWithLeadingBit &= ~(1 << baseLength);
  3051. index += 1;
  3052. var length = 32 - clz32(totalChildren) + baseLength;
  3053. if (30 < length) {
  3054. var numberOfOverflowBits = baseLength - (baseLength % 5);
  3055. length = (
  3056. baseIdWithLeadingBit &
  3057. ((1 << numberOfOverflowBits) - 1)
  3058. ).toString(32);
  3059. baseIdWithLeadingBit >>= numberOfOverflowBits;
  3060. baseLength -= numberOfOverflowBits;
  3061. return {
  3062. id:
  3063. (1 << (32 - clz32(totalChildren) + baseLength)) |
  3064. (index << baseLength) |
  3065. baseIdWithLeadingBit,
  3066. overflow: length + baseContext
  3067. };
  3068. }
  3069. return {
  3070. id: (1 << length) | (index << baseLength) | baseIdWithLeadingBit,
  3071. overflow: baseContext
  3072. };
  3073. }
  3074. var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
  3075. log = Math.log,
  3076. LN2 = Math.LN2;
  3077. function clz32Fallback(x) {
  3078. x >>>= 0;
  3079. return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
  3080. }
  3081. function noop() {}
  3082. var SuspenseException = Error(
  3083. "Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."
  3084. );
  3085. function trackUsedThenable(thenableState, thenable, index) {
  3086. index = thenableState[index];
  3087. void 0 === index
  3088. ? thenableState.push(thenable)
  3089. : index !== thenable && (thenable.then(noop, noop), (thenable = index));
  3090. switch (thenable.status) {
  3091. case "fulfilled":
  3092. return thenable.value;
  3093. case "rejected":
  3094. throw thenable.reason;
  3095. default:
  3096. "string" === typeof thenable.status
  3097. ? thenable.then(noop, noop)
  3098. : ((thenableState = thenable),
  3099. (thenableState.status = "pending"),
  3100. thenableState.then(
  3101. function (fulfilledValue) {
  3102. if ("pending" === thenable.status) {
  3103. var fulfilledThenable = thenable;
  3104. fulfilledThenable.status = "fulfilled";
  3105. fulfilledThenable.value = fulfilledValue;
  3106. }
  3107. },
  3108. function (error) {
  3109. if ("pending" === thenable.status) {
  3110. var rejectedThenable = thenable;
  3111. rejectedThenable.status = "rejected";
  3112. rejectedThenable.reason = error;
  3113. }
  3114. }
  3115. ));
  3116. switch (thenable.status) {
  3117. case "fulfilled":
  3118. return thenable.value;
  3119. case "rejected":
  3120. throw thenable.reason;
  3121. }
  3122. suspendedThenable = thenable;
  3123. throw SuspenseException;
  3124. }
  3125. }
  3126. var suspendedThenable = null;
  3127. function getSuspendedThenable() {
  3128. if (null === suspendedThenable)
  3129. throw Error(
  3130. "Expected a suspended thenable. This is a bug in React. Please file an issue."
  3131. );
  3132. var thenable = suspendedThenable;
  3133. suspendedThenable = null;
  3134. return thenable;
  3135. }
  3136. function is(x, y) {
  3137. return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
  3138. }
  3139. var objectIs = "function" === typeof Object.is ? Object.is : is,
  3140. currentlyRenderingComponent = null,
  3141. currentlyRenderingTask = null,
  3142. currentlyRenderingRequest = null,
  3143. currentlyRenderingKeyPath = null,
  3144. firstWorkInProgressHook = null,
  3145. workInProgressHook = null,
  3146. isReRender = !1,
  3147. didScheduleRenderPhaseUpdate = !1,
  3148. localIdCounter = 0,
  3149. actionStateCounter = 0,
  3150. actionStateMatchingIndex = -1,
  3151. thenableIndexCounter = 0,
  3152. thenableState = null,
  3153. renderPhaseUpdates = null,
  3154. numberOfReRenders = 0;
  3155. function resolveCurrentlyRenderingComponent() {
  3156. if (null === currentlyRenderingComponent)
  3157. throw Error(
  3158. "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
  3159. );
  3160. return currentlyRenderingComponent;
  3161. }
  3162. function createHook() {
  3163. if (0 < numberOfReRenders)
  3164. throw Error("Rendered more hooks than during the previous render");
  3165. return { memoizedState: null, queue: null, next: null };
  3166. }
  3167. function createWorkInProgressHook() {
  3168. null === workInProgressHook
  3169. ? null === firstWorkInProgressHook
  3170. ? ((isReRender = !1),
  3171. (firstWorkInProgressHook = workInProgressHook = createHook()))
  3172. : ((isReRender = !0), (workInProgressHook = firstWorkInProgressHook))
  3173. : null === workInProgressHook.next
  3174. ? ((isReRender = !1),
  3175. (workInProgressHook = workInProgressHook.next = createHook()))
  3176. : ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
  3177. return workInProgressHook;
  3178. }
  3179. function getThenableStateAfterSuspending() {
  3180. var state = thenableState;
  3181. thenableState = null;
  3182. return state;
  3183. }
  3184. function resetHooksState() {
  3185. currentlyRenderingKeyPath =
  3186. currentlyRenderingRequest =
  3187. currentlyRenderingTask =
  3188. currentlyRenderingComponent =
  3189. null;
  3190. didScheduleRenderPhaseUpdate = !1;
  3191. firstWorkInProgressHook = null;
  3192. numberOfReRenders = 0;
  3193. workInProgressHook = renderPhaseUpdates = null;
  3194. }
  3195. function basicStateReducer(state, action) {
  3196. return "function" === typeof action ? action(state) : action;
  3197. }
  3198. function useReducer(reducer, initialArg, init) {
  3199. currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
  3200. workInProgressHook = createWorkInProgressHook();
  3201. if (isReRender) {
  3202. var queue = workInProgressHook.queue;
  3203. initialArg = queue.dispatch;
  3204. if (
  3205. null !== renderPhaseUpdates &&
  3206. ((init = renderPhaseUpdates.get(queue)), void 0 !== init)
  3207. ) {
  3208. renderPhaseUpdates.delete(queue);
  3209. queue = workInProgressHook.memoizedState;
  3210. do (queue = reducer(queue, init.action)), (init = init.next);
  3211. while (null !== init);
  3212. workInProgressHook.memoizedState = queue;
  3213. return [queue, initialArg];
  3214. }
  3215. return [workInProgressHook.memoizedState, initialArg];
  3216. }
  3217. reducer =
  3218. reducer === basicStateReducer
  3219. ? "function" === typeof initialArg
  3220. ? initialArg()
  3221. : initialArg
  3222. : void 0 !== init
  3223. ? init(initialArg)
  3224. : initialArg;
  3225. workInProgressHook.memoizedState = reducer;
  3226. reducer = workInProgressHook.queue = { last: null, dispatch: null };
  3227. reducer = reducer.dispatch = dispatchAction.bind(
  3228. null,
  3229. currentlyRenderingComponent,
  3230. reducer
  3231. );
  3232. return [workInProgressHook.memoizedState, reducer];
  3233. }
  3234. function useMemo(nextCreate, deps) {
  3235. currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
  3236. workInProgressHook = createWorkInProgressHook();
  3237. deps = void 0 === deps ? null : deps;
  3238. if (null !== workInProgressHook) {
  3239. var prevState = workInProgressHook.memoizedState;
  3240. if (null !== prevState && null !== deps) {
  3241. var prevDeps = prevState[1];
  3242. a: if (null === prevDeps) prevDeps = !1;
  3243. else {
  3244. for (var i = 0; i < prevDeps.length && i < deps.length; i++)
  3245. if (!objectIs(deps[i], prevDeps[i])) {
  3246. prevDeps = !1;
  3247. break a;
  3248. }
  3249. prevDeps = !0;
  3250. }
  3251. if (prevDeps) return prevState[0];
  3252. }
  3253. }
  3254. nextCreate = nextCreate();
  3255. workInProgressHook.memoizedState = [nextCreate, deps];
  3256. return nextCreate;
  3257. }
  3258. function dispatchAction(componentIdentity, queue, action) {
  3259. if (25 <= numberOfReRenders)
  3260. throw Error(
  3261. "Too many re-renders. React limits the number of renders to prevent an infinite loop."
  3262. );
  3263. if (componentIdentity === currentlyRenderingComponent)
  3264. if (
  3265. ((didScheduleRenderPhaseUpdate = !0),
  3266. (componentIdentity = { action: action, next: null }),
  3267. null === renderPhaseUpdates && (renderPhaseUpdates = new Map()),
  3268. (action = renderPhaseUpdates.get(queue)),
  3269. void 0 === action)
  3270. )
  3271. renderPhaseUpdates.set(queue, componentIdentity);
  3272. else {
  3273. for (queue = action; null !== queue.next; ) queue = queue.next;
  3274. queue.next = componentIdentity;
  3275. }
  3276. }
  3277. function throwOnUseEffectEventCall() {
  3278. throw Error(
  3279. "A function wrapped in useEffectEvent can't be called during rendering."
  3280. );
  3281. }
  3282. function unsupportedStartTransition() {
  3283. throw Error("startTransition cannot be called during server rendering.");
  3284. }
  3285. function unsupportedSetOptimisticState() {
  3286. throw Error("Cannot update optimistic state while rendering.");
  3287. }
  3288. function useActionState(action, initialState, permalink) {
  3289. resolveCurrentlyRenderingComponent();
  3290. var actionStateHookIndex = actionStateCounter++,
  3291. request = currentlyRenderingRequest;
  3292. if ("function" === typeof action.$$FORM_ACTION) {
  3293. var nextPostbackStateKey = null,
  3294. componentKeyPath = currentlyRenderingKeyPath;
  3295. request = request.formState;
  3296. var isSignatureEqual = action.$$IS_SIGNATURE_EQUAL;
  3297. if (null !== request && "function" === typeof isSignatureEqual) {
  3298. var postbackKey = request[1];
  3299. isSignatureEqual.call(action, request[2], request[3]) &&
  3300. ((nextPostbackStateKey =
  3301. void 0 !== permalink
  3302. ? "p" + permalink
  3303. : "k" +
  3304. murmurhash3_32_gc(
  3305. JSON.stringify([componentKeyPath, null, actionStateHookIndex]),
  3306. 0
  3307. )),
  3308. postbackKey === nextPostbackStateKey &&
  3309. ((actionStateMatchingIndex = actionStateHookIndex),
  3310. (initialState = request[0])));
  3311. }
  3312. var boundAction = action.bind(null, initialState);
  3313. action = function (payload) {
  3314. boundAction(payload);
  3315. };
  3316. "function" === typeof boundAction.$$FORM_ACTION &&
  3317. (action.$$FORM_ACTION = function (prefix) {
  3318. prefix = boundAction.$$FORM_ACTION(prefix);
  3319. void 0 !== permalink &&
  3320. ((permalink += ""), (prefix.action = permalink));
  3321. var formData = prefix.data;
  3322. formData &&
  3323. (null === nextPostbackStateKey &&
  3324. (nextPostbackStateKey =
  3325. void 0 !== permalink
  3326. ? "p" + permalink
  3327. : "k" +
  3328. murmurhash3_32_gc(
  3329. JSON.stringify([
  3330. componentKeyPath,
  3331. null,
  3332. actionStateHookIndex
  3333. ]),
  3334. 0
  3335. )),
  3336. formData.append("$ACTION_KEY", nextPostbackStateKey));
  3337. return prefix;
  3338. });
  3339. return [initialState, action, !1];
  3340. }
  3341. var boundAction$22 = action.bind(null, initialState);
  3342. return [
  3343. initialState,
  3344. function (payload) {
  3345. boundAction$22(payload);
  3346. },
  3347. !1
  3348. ];
  3349. }
  3350. function unwrapThenable(thenable) {
  3351. var index = thenableIndexCounter;
  3352. thenableIndexCounter += 1;
  3353. null === thenableState && (thenableState = []);
  3354. return trackUsedThenable(thenableState, thenable, index);
  3355. }
  3356. function unsupportedRefresh() {
  3357. throw Error("Cache cannot be refreshed during server rendering.");
  3358. }
  3359. var HooksDispatcher = {
  3360. readContext: function (context) {
  3361. return context._currentValue2;
  3362. },
  3363. use: function (usable) {
  3364. if (null !== usable && "object" === typeof usable) {
  3365. if ("function" === typeof usable.then) return unwrapThenable(usable);
  3366. if (usable.$$typeof === REACT_CONTEXT_TYPE)
  3367. return usable._currentValue2;
  3368. }
  3369. throw Error("An unsupported type was passed to use(): " + String(usable));
  3370. },
  3371. useContext: function (context) {
  3372. resolveCurrentlyRenderingComponent();
  3373. return context._currentValue2;
  3374. },
  3375. useMemo: useMemo,
  3376. useReducer: useReducer,
  3377. useRef: function (initialValue) {
  3378. currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
  3379. workInProgressHook = createWorkInProgressHook();
  3380. var previousRef = workInProgressHook.memoizedState;
  3381. return null === previousRef
  3382. ? ((initialValue = { current: initialValue }),
  3383. (workInProgressHook.memoizedState = initialValue))
  3384. : previousRef;
  3385. },
  3386. useState: function (initialState) {
  3387. return useReducer(basicStateReducer, initialState);
  3388. },
  3389. useInsertionEffect: noop,
  3390. useLayoutEffect: noop,
  3391. useCallback: function (callback, deps) {
  3392. return useMemo(function () {
  3393. return callback;
  3394. }, deps);
  3395. },
  3396. useImperativeHandle: noop,
  3397. useEffect: noop,
  3398. useDebugValue: noop,
  3399. useDeferredValue: function (value, initialValue) {
  3400. resolveCurrentlyRenderingComponent();
  3401. return void 0 !== initialValue ? initialValue : value;
  3402. },
  3403. useTransition: function () {
  3404. resolveCurrentlyRenderingComponent();
  3405. return [!1, unsupportedStartTransition];
  3406. },
  3407. useId: function () {
  3408. var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
  3409. var overflow = JSCompiler_inline_result.overflow;
  3410. JSCompiler_inline_result = JSCompiler_inline_result.id;
  3411. JSCompiler_inline_result =
  3412. (
  3413. JSCompiler_inline_result &
  3414. ~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
  3415. ).toString(32) + overflow;
  3416. var resumableState = currentResumableState;
  3417. if (null === resumableState)
  3418. throw Error(
  3419. "Invalid hook call. Hooks can only be called inside of the body of a function component."
  3420. );
  3421. overflow = localIdCounter++;
  3422. JSCompiler_inline_result =
  3423. "_" + resumableState.idPrefix + "R_" + JSCompiler_inline_result;
  3424. 0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
  3425. return JSCompiler_inline_result + "_";
  3426. },
  3427. useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
  3428. if (void 0 === getServerSnapshot)
  3429. throw Error(
  3430. "Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering."
  3431. );
  3432. return getServerSnapshot();
  3433. },
  3434. useOptimistic: function (passthrough) {
  3435. resolveCurrentlyRenderingComponent();
  3436. return [passthrough, unsupportedSetOptimisticState];
  3437. },
  3438. useActionState: useActionState,
  3439. useFormState: useActionState,
  3440. useHostTransitionStatus: function () {
  3441. resolveCurrentlyRenderingComponent();
  3442. return sharedNotPendingObject;
  3443. },
  3444. useMemoCache: function (size) {
  3445. for (var data = Array(size), i = 0; i < size; i++)
  3446. data[i] = REACT_MEMO_CACHE_SENTINEL;
  3447. return data;
  3448. },
  3449. useCacheRefresh: function () {
  3450. return unsupportedRefresh;
  3451. },
  3452. useEffectEvent: function () {
  3453. return throwOnUseEffectEventCall;
  3454. }
  3455. },
  3456. currentResumableState = null,
  3457. DefaultAsyncDispatcher = {
  3458. getCacheForType: function () {
  3459. throw Error("Not implemented.");
  3460. },
  3461. cacheSignal: function () {
  3462. throw Error("Not implemented.");
  3463. }
  3464. },
  3465. prefix,
  3466. suffix;
  3467. function describeBuiltInComponentFrame(name) {
  3468. if (void 0 === prefix)
  3469. try {
  3470. throw Error();
  3471. } catch (x) {
  3472. var match = x.stack.trim().match(/\n( *(at )?)/);
  3473. prefix = (match && match[1]) || "";
  3474. suffix =
  3475. -1 < x.stack.indexOf("\n at")
  3476. ? " (<anonymous>)"
  3477. : -1 < x.stack.indexOf("@")
  3478. ? "@unknown:0:0"
  3479. : "";
  3480. }
  3481. return "\n" + prefix + name + suffix;
  3482. }
  3483. var reentry = !1;
  3484. function describeNativeComponentFrame(fn, construct) {
  3485. if (!fn || reentry) return "";
  3486. reentry = !0;
  3487. var previousPrepareStackTrace = Error.prepareStackTrace;
  3488. Error.prepareStackTrace = void 0;
  3489. try {
  3490. var RunInRootFrame = {
  3491. DetermineComponentFrameRoot: function () {
  3492. try {
  3493. if (construct) {
  3494. var Fake = function () {
  3495. throw Error();
  3496. };
  3497. Object.defineProperty(Fake.prototype, "props", {
  3498. set: function () {
  3499. throw Error();
  3500. }
  3501. });
  3502. if ("object" === typeof Reflect && Reflect.construct) {
  3503. try {
  3504. Reflect.construct(Fake, []);
  3505. } catch (x) {
  3506. var control = x;
  3507. }
  3508. Reflect.construct(fn, [], Fake);
  3509. } else {
  3510. try {
  3511. Fake.call();
  3512. } catch (x$24) {
  3513. control = x$24;
  3514. }
  3515. fn.call(Fake.prototype);
  3516. }
  3517. } else {
  3518. try {
  3519. throw Error();
  3520. } catch (x$25) {
  3521. control = x$25;
  3522. }
  3523. (Fake = fn()) &&
  3524. "function" === typeof Fake.catch &&
  3525. Fake.catch(function () {});
  3526. }
  3527. } catch (sample) {
  3528. if (sample && control && "string" === typeof sample.stack)
  3529. return [sample.stack, control.stack];
  3530. }
  3531. return [null, null];
  3532. }
  3533. };
  3534. RunInRootFrame.DetermineComponentFrameRoot.displayName =
  3535. "DetermineComponentFrameRoot";
  3536. var namePropDescriptor = Object.getOwnPropertyDescriptor(
  3537. RunInRootFrame.DetermineComponentFrameRoot,
  3538. "name"
  3539. );
  3540. namePropDescriptor &&
  3541. namePropDescriptor.configurable &&
  3542. Object.defineProperty(
  3543. RunInRootFrame.DetermineComponentFrameRoot,
  3544. "name",
  3545. { value: "DetermineComponentFrameRoot" }
  3546. );
  3547. var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(),
  3548. sampleStack = _RunInRootFrame$Deter[0],
  3549. controlStack = _RunInRootFrame$Deter[1];
  3550. if (sampleStack && controlStack) {
  3551. var sampleLines = sampleStack.split("\n"),
  3552. controlLines = controlStack.split("\n");
  3553. for (
  3554. namePropDescriptor = RunInRootFrame = 0;
  3555. RunInRootFrame < sampleLines.length &&
  3556. !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot");
  3557. )
  3558. RunInRootFrame++;
  3559. for (
  3560. ;
  3561. namePropDescriptor < controlLines.length &&
  3562. !controlLines[namePropDescriptor].includes(
  3563. "DetermineComponentFrameRoot"
  3564. );
  3565. )
  3566. namePropDescriptor++;
  3567. if (
  3568. RunInRootFrame === sampleLines.length ||
  3569. namePropDescriptor === controlLines.length
  3570. )
  3571. for (
  3572. RunInRootFrame = sampleLines.length - 1,
  3573. namePropDescriptor = controlLines.length - 1;
  3574. 1 <= RunInRootFrame &&
  3575. 0 <= namePropDescriptor &&
  3576. sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor];
  3577. )
  3578. namePropDescriptor--;
  3579. for (
  3580. ;
  3581. 1 <= RunInRootFrame && 0 <= namePropDescriptor;
  3582. RunInRootFrame--, namePropDescriptor--
  3583. )
  3584. if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) {
  3585. if (1 !== RunInRootFrame || 1 !== namePropDescriptor) {
  3586. do
  3587. if (
  3588. (RunInRootFrame--,
  3589. namePropDescriptor--,
  3590. 0 > namePropDescriptor ||
  3591. sampleLines[RunInRootFrame] !==
  3592. controlLines[namePropDescriptor])
  3593. ) {
  3594. var frame =
  3595. "\n" +
  3596. sampleLines[RunInRootFrame].replace(" at new ", " at ");
  3597. fn.displayName &&
  3598. frame.includes("<anonymous>") &&
  3599. (frame = frame.replace("<anonymous>", fn.displayName));
  3600. return frame;
  3601. }
  3602. while (1 <= RunInRootFrame && 0 <= namePropDescriptor);
  3603. }
  3604. break;
  3605. }
  3606. }
  3607. } finally {
  3608. (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace);
  3609. }
  3610. return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "")
  3611. ? describeBuiltInComponentFrame(previousPrepareStackTrace)
  3612. : "";
  3613. }
  3614. function describeComponentStackByType(type) {
  3615. if ("string" === typeof type) return describeBuiltInComponentFrame(type);
  3616. if ("function" === typeof type)
  3617. return type.prototype && type.prototype.isReactComponent
  3618. ? describeNativeComponentFrame(type, !0)
  3619. : describeNativeComponentFrame(type, !1);
  3620. if ("object" === typeof type && null !== type) {
  3621. switch (type.$$typeof) {
  3622. case REACT_FORWARD_REF_TYPE:
  3623. return describeNativeComponentFrame(type.render, !1);
  3624. case REACT_MEMO_TYPE:
  3625. return describeNativeComponentFrame(type.type, !1);
  3626. case REACT_LAZY_TYPE:
  3627. var lazyComponent = type,
  3628. payload = lazyComponent._payload;
  3629. lazyComponent = lazyComponent._init;
  3630. try {
  3631. type = lazyComponent(payload);
  3632. } catch (x) {
  3633. return describeBuiltInComponentFrame("Lazy");
  3634. }
  3635. return describeComponentStackByType(type);
  3636. }
  3637. if ("string" === typeof type.name) {
  3638. a: {
  3639. payload = type.name;
  3640. lazyComponent = type.env;
  3641. var location = type.debugLocation;
  3642. if (
  3643. null != location &&
  3644. ((type = Error.prepareStackTrace),
  3645. (Error.prepareStackTrace = void 0),
  3646. (location = location.stack),
  3647. (Error.prepareStackTrace = type),
  3648. location.startsWith("Error: react-stack-top-frame\n") &&
  3649. (location = location.slice(29)),
  3650. (type = location.indexOf("\n")),
  3651. -1 !== type && (location = location.slice(type + 1)),
  3652. (type = location.indexOf("react_stack_bottom_frame")),
  3653. -1 !== type && (type = location.lastIndexOf("\n", type)),
  3654. (type = -1 !== type ? (location = location.slice(0, type)) : ""),
  3655. (location = type.lastIndexOf("\n")),
  3656. (type = -1 === location ? type : type.slice(location + 1)),
  3657. -1 !== type.indexOf(payload))
  3658. ) {
  3659. payload = "\n" + type;
  3660. break a;
  3661. }
  3662. payload = describeBuiltInComponentFrame(
  3663. payload + (lazyComponent ? " [" + lazyComponent + "]" : "")
  3664. );
  3665. }
  3666. return payload;
  3667. }
  3668. }
  3669. switch (type) {
  3670. case REACT_SUSPENSE_LIST_TYPE:
  3671. return describeBuiltInComponentFrame("SuspenseList");
  3672. case REACT_SUSPENSE_TYPE:
  3673. return describeBuiltInComponentFrame("Suspense");
  3674. }
  3675. return "";
  3676. }
  3677. function isEligibleForOutlining(request, boundary) {
  3678. return (500 < boundary.byteSize || !1) && null === boundary.contentPreamble;
  3679. }
  3680. function defaultErrorHandler(error) {
  3681. if (
  3682. "object" === typeof error &&
  3683. null !== error &&
  3684. "string" === typeof error.environmentName
  3685. ) {
  3686. var JSCompiler_inline_result = error.environmentName;
  3687. error = [error].slice(0);
  3688. "string" === typeof error[0]
  3689. ? error.splice(
  3690. 0,
  3691. 1,
  3692. "[%s] " + error[0],
  3693. " " + JSCompiler_inline_result + " "
  3694. )
  3695. : error.splice(0, 0, "[%s]", " " + JSCompiler_inline_result + " ");
  3696. error.unshift(console);
  3697. JSCompiler_inline_result = bind.apply(console.error, error);
  3698. JSCompiler_inline_result();
  3699. } else console.error(error);
  3700. return null;
  3701. }
  3702. function RequestInstance(
  3703. resumableState,
  3704. renderState,
  3705. rootFormatContext,
  3706. progressiveChunkSize,
  3707. onError,
  3708. onAllReady,
  3709. onShellReady,
  3710. onShellError,
  3711. onFatalError,
  3712. onPostpone,
  3713. formState
  3714. ) {
  3715. var abortSet = new Set();
  3716. this.destination = null;
  3717. this.flushScheduled = !1;
  3718. this.resumableState = resumableState;
  3719. this.renderState = renderState;
  3720. this.rootFormatContext = rootFormatContext;
  3721. this.progressiveChunkSize =
  3722. void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
  3723. this.status = 10;
  3724. this.fatalError = null;
  3725. this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
  3726. this.completedPreambleSegments = this.completedRootSegment = null;
  3727. this.byteSize = 0;
  3728. this.abortableTasks = abortSet;
  3729. this.pingedTasks = [];
  3730. this.clientRenderedBoundaries = [];
  3731. this.completedBoundaries = [];
  3732. this.partialBoundaries = [];
  3733. this.trackedPostpones = null;
  3734. this.onError = void 0 === onError ? defaultErrorHandler : onError;
  3735. this.onPostpone = void 0 === onPostpone ? noop : onPostpone;
  3736. this.onAllReady = void 0 === onAllReady ? noop : onAllReady;
  3737. this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
  3738. this.onShellError = void 0 === onShellError ? noop : onShellError;
  3739. this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
  3740. this.formState = void 0 === formState ? null : formState;
  3741. }
  3742. function createRequest(
  3743. children,
  3744. resumableState,
  3745. renderState,
  3746. rootFormatContext,
  3747. progressiveChunkSize,
  3748. onError,
  3749. onAllReady,
  3750. onShellReady,
  3751. onShellError,
  3752. onFatalError,
  3753. onPostpone,
  3754. formState
  3755. ) {
  3756. resumableState = new RequestInstance(
  3757. resumableState,
  3758. renderState,
  3759. rootFormatContext,
  3760. progressiveChunkSize,
  3761. onError,
  3762. onAllReady,
  3763. onShellReady,
  3764. onShellError,
  3765. onFatalError,
  3766. onPostpone,
  3767. formState
  3768. );
  3769. renderState = createPendingSegment(
  3770. resumableState,
  3771. 0,
  3772. null,
  3773. rootFormatContext,
  3774. !1,
  3775. !1
  3776. );
  3777. renderState.parentFlushed = !0;
  3778. children = createRenderTask(
  3779. resumableState,
  3780. null,
  3781. children,
  3782. -1,
  3783. null,
  3784. renderState,
  3785. null,
  3786. null,
  3787. resumableState.abortableTasks,
  3788. null,
  3789. rootFormatContext,
  3790. null,
  3791. emptyTreeContext,
  3792. null,
  3793. null
  3794. );
  3795. pushComponentStack(children);
  3796. resumableState.pingedTasks.push(children);
  3797. return resumableState;
  3798. }
  3799. var currentRequest = null;
  3800. function pingTask(request, task) {
  3801. request.pingedTasks.push(task);
  3802. 1 === request.pingedTasks.length &&
  3803. ((request.flushScheduled = null !== request.destination),
  3804. performWork(request));
  3805. }
  3806. function createSuspenseBoundary(
  3807. request,
  3808. row,
  3809. fallbackAbortableTasks,
  3810. contentPreamble,
  3811. fallbackPreamble
  3812. ) {
  3813. fallbackAbortableTasks = {
  3814. status: 0,
  3815. rootSegmentID: -1,
  3816. parentFlushed: !1,
  3817. pendingTasks: 0,
  3818. row: row,
  3819. completedSegments: [],
  3820. byteSize: 0,
  3821. fallbackAbortableTasks: fallbackAbortableTasks,
  3822. errorDigest: null,
  3823. contentState: createHoistableState(),
  3824. fallbackState: createHoistableState(),
  3825. contentPreamble: contentPreamble,
  3826. fallbackPreamble: fallbackPreamble,
  3827. trackedContentKeyPath: null,
  3828. trackedFallbackNode: null
  3829. };
  3830. null !== row &&
  3831. (row.pendingTasks++,
  3832. (contentPreamble = row.boundaries),
  3833. null !== contentPreamble &&
  3834. (request.allPendingTasks++,
  3835. fallbackAbortableTasks.pendingTasks++,
  3836. contentPreamble.push(fallbackAbortableTasks)),
  3837. (request = row.inheritedHoistables),
  3838. null !== request &&
  3839. hoistHoistables(fallbackAbortableTasks.contentState, request));
  3840. return fallbackAbortableTasks;
  3841. }
  3842. function createRenderTask(
  3843. request,
  3844. thenableState,
  3845. node,
  3846. childIndex,
  3847. blockedBoundary,
  3848. blockedSegment,
  3849. blockedPreamble,
  3850. hoistableState,
  3851. abortSet,
  3852. keyPath,
  3853. formatContext,
  3854. context,
  3855. treeContext,
  3856. row,
  3857. componentStack
  3858. ) {
  3859. request.allPendingTasks++;
  3860. null === blockedBoundary
  3861. ? request.pendingRootTasks++
  3862. : blockedBoundary.pendingTasks++;
  3863. null !== row && row.pendingTasks++;
  3864. var task = {
  3865. replay: null,
  3866. node: node,
  3867. childIndex: childIndex,
  3868. ping: function () {
  3869. return pingTask(request, task);
  3870. },
  3871. blockedBoundary: blockedBoundary,
  3872. blockedSegment: blockedSegment,
  3873. blockedPreamble: blockedPreamble,
  3874. hoistableState: hoistableState,
  3875. abortSet: abortSet,
  3876. keyPath: keyPath,
  3877. formatContext: formatContext,
  3878. context: context,
  3879. treeContext: treeContext,
  3880. row: row,
  3881. componentStack: componentStack,
  3882. thenableState: thenableState
  3883. };
  3884. abortSet.add(task);
  3885. return task;
  3886. }
  3887. function createReplayTask(
  3888. request,
  3889. thenableState,
  3890. replay,
  3891. node,
  3892. childIndex,
  3893. blockedBoundary,
  3894. hoistableState,
  3895. abortSet,
  3896. keyPath,
  3897. formatContext,
  3898. context,
  3899. treeContext,
  3900. row,
  3901. componentStack
  3902. ) {
  3903. request.allPendingTasks++;
  3904. null === blockedBoundary
  3905. ? request.pendingRootTasks++
  3906. : blockedBoundary.pendingTasks++;
  3907. null !== row && row.pendingTasks++;
  3908. replay.pendingTasks++;
  3909. var task = {
  3910. replay: replay,
  3911. node: node,
  3912. childIndex: childIndex,
  3913. ping: function () {
  3914. return pingTask(request, task);
  3915. },
  3916. blockedBoundary: blockedBoundary,
  3917. blockedSegment: null,
  3918. blockedPreamble: null,
  3919. hoistableState: hoistableState,
  3920. abortSet: abortSet,
  3921. keyPath: keyPath,
  3922. formatContext: formatContext,
  3923. context: context,
  3924. treeContext: treeContext,
  3925. row: row,
  3926. componentStack: componentStack,
  3927. thenableState: thenableState
  3928. };
  3929. abortSet.add(task);
  3930. return task;
  3931. }
  3932. function createPendingSegment(
  3933. request,
  3934. index,
  3935. boundary,
  3936. parentFormatContext,
  3937. lastPushedText,
  3938. textEmbedded
  3939. ) {
  3940. return {
  3941. status: 0,
  3942. parentFlushed: !1,
  3943. id: -1,
  3944. index: index,
  3945. chunks: [],
  3946. children: [],
  3947. preambleChildren: [],
  3948. parentFormatContext: parentFormatContext,
  3949. boundary: boundary,
  3950. lastPushedText: lastPushedText,
  3951. textEmbedded: textEmbedded
  3952. };
  3953. }
  3954. function pushComponentStack(task) {
  3955. var node = task.node;
  3956. if ("object" === typeof node && null !== node)
  3957. switch (node.$$typeof) {
  3958. case REACT_ELEMENT_TYPE:
  3959. task.componentStack = { parent: task.componentStack, type: node.type };
  3960. }
  3961. }
  3962. function replaceSuspenseComponentStackWithSuspenseFallbackStack(
  3963. componentStack
  3964. ) {
  3965. return null === componentStack
  3966. ? null
  3967. : { parent: componentStack.parent, type: "Suspense Fallback" };
  3968. }
  3969. function getThrownInfo(node$jscomp$0) {
  3970. var errorInfo = {};
  3971. node$jscomp$0 &&
  3972. Object.defineProperty(errorInfo, "componentStack", {
  3973. configurable: !0,
  3974. enumerable: !0,
  3975. get: function () {
  3976. try {
  3977. var info = "",
  3978. node = node$jscomp$0;
  3979. do
  3980. (info += describeComponentStackByType(node.type)),
  3981. (node = node.parent);
  3982. while (node);
  3983. var JSCompiler_inline_result = info;
  3984. } catch (x) {
  3985. JSCompiler_inline_result =
  3986. "\nError generating stack: " + x.message + "\n" + x.stack;
  3987. }
  3988. Object.defineProperty(errorInfo, "componentStack", {
  3989. value: JSCompiler_inline_result
  3990. });
  3991. return JSCompiler_inline_result;
  3992. }
  3993. });
  3994. return errorInfo;
  3995. }
  3996. function logRecoverableError(request, error, errorInfo) {
  3997. request = request.onError;
  3998. error = request(error, errorInfo);
  3999. if (null == error || "string" === typeof error) return error;
  4000. }
  4001. function fatalError(request, error) {
  4002. var onShellError = request.onShellError,
  4003. onFatalError = request.onFatalError;
  4004. onShellError(error);
  4005. onFatalError(error);
  4006. null !== request.destination
  4007. ? ((request.status = 14), request.destination.destroy(error))
  4008. : ((request.status = 13), (request.fatalError = error));
  4009. }
  4010. function finishSuspenseListRow(request, row) {
  4011. unblockSuspenseListRow(request, row.next, row.hoistables);
  4012. }
  4013. function unblockSuspenseListRow(request, unblockedRow, inheritedHoistables) {
  4014. for (; null !== unblockedRow; ) {
  4015. null !== inheritedHoistables &&
  4016. (hoistHoistables(unblockedRow.hoistables, inheritedHoistables),
  4017. (unblockedRow.inheritedHoistables = inheritedHoistables));
  4018. var unblockedBoundaries = unblockedRow.boundaries;
  4019. if (null !== unblockedBoundaries) {
  4020. unblockedRow.boundaries = null;
  4021. for (var i = 0; i < unblockedBoundaries.length; i++) {
  4022. var unblockedBoundary = unblockedBoundaries[i];
  4023. null !== inheritedHoistables &&
  4024. hoistHoistables(unblockedBoundary.contentState, inheritedHoistables);
  4025. finishedTask(request, unblockedBoundary, null, null);
  4026. }
  4027. }
  4028. unblockedRow.pendingTasks--;
  4029. if (0 < unblockedRow.pendingTasks) break;
  4030. inheritedHoistables = unblockedRow.hoistables;
  4031. unblockedRow = unblockedRow.next;
  4032. }
  4033. }
  4034. function tryToResolveTogetherRow(request, togetherRow) {
  4035. var boundaries = togetherRow.boundaries;
  4036. if (null !== boundaries && togetherRow.pendingTasks === boundaries.length) {
  4037. for (var allCompleteAndInlinable = !0, i = 0; i < boundaries.length; i++) {
  4038. var rowBoundary = boundaries[i];
  4039. if (
  4040. 1 !== rowBoundary.pendingTasks ||
  4041. rowBoundary.parentFlushed ||
  4042. isEligibleForOutlining(request, rowBoundary)
  4043. ) {
  4044. allCompleteAndInlinable = !1;
  4045. break;
  4046. }
  4047. }
  4048. allCompleteAndInlinable &&
  4049. unblockSuspenseListRow(request, togetherRow, togetherRow.hoistables);
  4050. }
  4051. }
  4052. function createSuspenseListRow(previousRow) {
  4053. var newRow = {
  4054. pendingTasks: 1,
  4055. boundaries: null,
  4056. hoistables: createHoistableState(),
  4057. inheritedHoistables: null,
  4058. together: !1,
  4059. next: null
  4060. };
  4061. null !== previousRow &&
  4062. 0 < previousRow.pendingTasks &&
  4063. (newRow.pendingTasks++,
  4064. (newRow.boundaries = []),
  4065. (previousRow.next = newRow));
  4066. return newRow;
  4067. }
  4068. function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
  4069. var prevKeyPath = task.keyPath,
  4070. prevTreeContext = task.treeContext,
  4071. prevRow = task.row;
  4072. task.keyPath = keyPath;
  4073. keyPath = rows.length;
  4074. var previousSuspenseListRow = null;
  4075. if (null !== task.replay) {
  4076. var resumeSlots = task.replay.slots;
  4077. if (null !== resumeSlots && "object" === typeof resumeSlots)
  4078. for (var n = 0; n < keyPath; n++) {
  4079. var i =
  4080. "backwards" !== revealOrder &&
  4081. "unstable_legacy-backwards" !== revealOrder
  4082. ? n
  4083. : keyPath - 1 - n,
  4084. node = rows[i];
  4085. task.row = previousSuspenseListRow = createSuspenseListRow(
  4086. previousSuspenseListRow
  4087. );
  4088. task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
  4089. var resumeSegmentID = resumeSlots[i];
  4090. "number" === typeof resumeSegmentID
  4091. ? (resumeNode(request, task, resumeSegmentID, node, i),
  4092. delete resumeSlots[i])
  4093. : renderNode(request, task, node, i);
  4094. 0 === --previousSuspenseListRow.pendingTasks &&
  4095. finishSuspenseListRow(request, previousSuspenseListRow);
  4096. }
  4097. else
  4098. for (resumeSlots = 0; resumeSlots < keyPath; resumeSlots++)
  4099. (n =
  4100. "backwards" !== revealOrder &&
  4101. "unstable_legacy-backwards" !== revealOrder
  4102. ? resumeSlots
  4103. : keyPath - 1 - resumeSlots),
  4104. (i = rows[n]),
  4105. (task.row = previousSuspenseListRow =
  4106. createSuspenseListRow(previousSuspenseListRow)),
  4107. (task.treeContext = pushTreeContext(prevTreeContext, keyPath, n)),
  4108. renderNode(request, task, i, n),
  4109. 0 === --previousSuspenseListRow.pendingTasks &&
  4110. finishSuspenseListRow(request, previousSuspenseListRow);
  4111. } else if (
  4112. "backwards" !== revealOrder &&
  4113. "unstable_legacy-backwards" !== revealOrder
  4114. )
  4115. for (revealOrder = 0; revealOrder < keyPath; revealOrder++)
  4116. (resumeSlots = rows[revealOrder]),
  4117. (task.row = previousSuspenseListRow =
  4118. createSuspenseListRow(previousSuspenseListRow)),
  4119. (task.treeContext = pushTreeContext(
  4120. prevTreeContext,
  4121. keyPath,
  4122. revealOrder
  4123. )),
  4124. renderNode(request, task, resumeSlots, revealOrder),
  4125. 0 === --previousSuspenseListRow.pendingTasks &&
  4126. finishSuspenseListRow(request, previousSuspenseListRow);
  4127. else {
  4128. revealOrder = task.blockedSegment;
  4129. resumeSlots = revealOrder.children.length;
  4130. n = revealOrder.chunks.length;
  4131. for (i = keyPath - 1; 0 <= i; i--) {
  4132. node = rows[i];
  4133. task.row = previousSuspenseListRow = createSuspenseListRow(
  4134. previousSuspenseListRow
  4135. );
  4136. task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
  4137. resumeSegmentID = createPendingSegment(
  4138. request,
  4139. n,
  4140. null,
  4141. task.formatContext,
  4142. 0 === i ? revealOrder.lastPushedText : !0,
  4143. !0
  4144. );
  4145. revealOrder.children.splice(resumeSlots, 0, resumeSegmentID);
  4146. task.blockedSegment = resumeSegmentID;
  4147. try {
  4148. renderNode(request, task, node, i),
  4149. pushSegmentFinale(
  4150. resumeSegmentID.chunks,
  4151. request.renderState,
  4152. resumeSegmentID.lastPushedText,
  4153. resumeSegmentID.textEmbedded
  4154. ),
  4155. (resumeSegmentID.status = 1),
  4156. 0 === --previousSuspenseListRow.pendingTasks &&
  4157. finishSuspenseListRow(request, previousSuspenseListRow);
  4158. } catch (thrownValue) {
  4159. throw (
  4160. ((resumeSegmentID.status = 12 === request.status ? 3 : 4),
  4161. thrownValue)
  4162. );
  4163. }
  4164. }
  4165. task.blockedSegment = revealOrder;
  4166. revealOrder.lastPushedText = !1;
  4167. }
  4168. null !== prevRow &&
  4169. null !== previousSuspenseListRow &&
  4170. 0 < previousSuspenseListRow.pendingTasks &&
  4171. (prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
  4172. task.treeContext = prevTreeContext;
  4173. task.row = prevRow;
  4174. task.keyPath = prevKeyPath;
  4175. }
  4176. function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
  4177. var prevThenableState = task.thenableState;
  4178. task.thenableState = null;
  4179. currentlyRenderingComponent = {};
  4180. currentlyRenderingTask = task;
  4181. currentlyRenderingRequest = request;
  4182. currentlyRenderingKeyPath = keyPath;
  4183. actionStateCounter = localIdCounter = 0;
  4184. actionStateMatchingIndex = -1;
  4185. thenableIndexCounter = 0;
  4186. thenableState = prevThenableState;
  4187. for (request = Component(props, secondArg); didScheduleRenderPhaseUpdate; )
  4188. (didScheduleRenderPhaseUpdate = !1),
  4189. (actionStateCounter = localIdCounter = 0),
  4190. (actionStateMatchingIndex = -1),
  4191. (thenableIndexCounter = 0),
  4192. (numberOfReRenders += 1),
  4193. (workInProgressHook = null),
  4194. (request = Component(props, secondArg));
  4195. resetHooksState();
  4196. return request;
  4197. }
  4198. function finishFunctionComponent(
  4199. request,
  4200. task,
  4201. keyPath,
  4202. children,
  4203. hasId,
  4204. actionStateCount,
  4205. actionStateMatchingIndex
  4206. ) {
  4207. var didEmitActionStateMarkers = !1;
  4208. if (0 !== actionStateCount && null !== request.formState) {
  4209. var segment = task.blockedSegment;
  4210. if (null !== segment) {
  4211. didEmitActionStateMarkers = !0;
  4212. segment = segment.chunks;
  4213. for (var i = 0; i < actionStateCount; i++)
  4214. i === actionStateMatchingIndex
  4215. ? segment.push("\x3c!--F!--\x3e")
  4216. : segment.push("\x3c!--F--\x3e");
  4217. }
  4218. }
  4219. actionStateCount = task.keyPath;
  4220. task.keyPath = keyPath;
  4221. hasId
  4222. ? ((keyPath = task.treeContext),
  4223. (task.treeContext = pushTreeContext(keyPath, 1, 0)),
  4224. renderNode(request, task, children, -1),
  4225. (task.treeContext = keyPath))
  4226. : didEmitActionStateMarkers
  4227. ? renderNode(request, task, children, -1)
  4228. : renderNodeDestructive(request, task, children, -1);
  4229. task.keyPath = actionStateCount;
  4230. }
  4231. function renderElement(request, task, keyPath, type, props, ref) {
  4232. if ("function" === typeof type)
  4233. if (type.prototype && type.prototype.isReactComponent) {
  4234. var newProps = props;
  4235. if ("ref" in props) {
  4236. newProps = {};
  4237. for (var propName in props)
  4238. "ref" !== propName && (newProps[propName] = props[propName]);
  4239. }
  4240. var defaultProps = type.defaultProps;
  4241. if (defaultProps) {
  4242. newProps === props && (newProps = assign({}, newProps, props));
  4243. for (var propName$43 in defaultProps)
  4244. void 0 === newProps[propName$43] &&
  4245. (newProps[propName$43] = defaultProps[propName$43]);
  4246. }
  4247. props = newProps;
  4248. newProps = emptyContextObject;
  4249. defaultProps = type.contextType;
  4250. "object" === typeof defaultProps &&
  4251. null !== defaultProps &&
  4252. (newProps = defaultProps._currentValue2);
  4253. newProps = new type(props, newProps);
  4254. var initialState = void 0 !== newProps.state ? newProps.state : null;
  4255. newProps.updater = classComponentUpdater;
  4256. newProps.props = props;
  4257. newProps.state = initialState;
  4258. defaultProps = { queue: [], replace: !1 };
  4259. newProps._reactInternals = defaultProps;
  4260. ref = type.contextType;
  4261. newProps.context =
  4262. "object" === typeof ref && null !== ref
  4263. ? ref._currentValue2
  4264. : emptyContextObject;
  4265. ref = type.getDerivedStateFromProps;
  4266. "function" === typeof ref &&
  4267. ((ref = ref(props, initialState)),
  4268. (initialState =
  4269. null === ref || void 0 === ref
  4270. ? initialState
  4271. : assign({}, initialState, ref)),
  4272. (newProps.state = initialState));
  4273. if (
  4274. "function" !== typeof type.getDerivedStateFromProps &&
  4275. "function" !== typeof newProps.getSnapshotBeforeUpdate &&
  4276. ("function" === typeof newProps.UNSAFE_componentWillMount ||
  4277. "function" === typeof newProps.componentWillMount)
  4278. )
  4279. if (
  4280. ((type = newProps.state),
  4281. "function" === typeof newProps.componentWillMount &&
  4282. newProps.componentWillMount(),
  4283. "function" === typeof newProps.UNSAFE_componentWillMount &&
  4284. newProps.UNSAFE_componentWillMount(),
  4285. type !== newProps.state &&
  4286. classComponentUpdater.enqueueReplaceState(
  4287. newProps,
  4288. newProps.state,
  4289. null
  4290. ),
  4291. null !== defaultProps.queue && 0 < defaultProps.queue.length)
  4292. )
  4293. if (
  4294. ((type = defaultProps.queue),
  4295. (ref = defaultProps.replace),
  4296. (defaultProps.queue = null),
  4297. (defaultProps.replace = !1),
  4298. ref && 1 === type.length)
  4299. )
  4300. newProps.state = type[0];
  4301. else {
  4302. defaultProps = ref ? type[0] : newProps.state;
  4303. initialState = !0;
  4304. for (ref = ref ? 1 : 0; ref < type.length; ref++)
  4305. (propName$43 = type[ref]),
  4306. (propName$43 =
  4307. "function" === typeof propName$43
  4308. ? propName$43.call(newProps, defaultProps, props, void 0)
  4309. : propName$43),
  4310. null != propName$43 &&
  4311. (initialState
  4312. ? ((initialState = !1),
  4313. (defaultProps = assign({}, defaultProps, propName$43)))
  4314. : assign(defaultProps, propName$43));
  4315. newProps.state = defaultProps;
  4316. }
  4317. else defaultProps.queue = null;
  4318. type = newProps.render();
  4319. if (12 === request.status) throw null;
  4320. props = task.keyPath;
  4321. task.keyPath = keyPath;
  4322. renderNodeDestructive(request, task, type, -1);
  4323. task.keyPath = props;
  4324. } else {
  4325. type = renderWithHooks(request, task, keyPath, type, props, void 0);
  4326. if (12 === request.status) throw null;
  4327. finishFunctionComponent(
  4328. request,
  4329. task,
  4330. keyPath,
  4331. type,
  4332. 0 !== localIdCounter,
  4333. actionStateCounter,
  4334. actionStateMatchingIndex
  4335. );
  4336. }
  4337. else if ("string" === typeof type)
  4338. if (((newProps = task.blockedSegment), null === newProps))
  4339. (newProps = props.children),
  4340. (defaultProps = task.formatContext),
  4341. (initialState = task.keyPath),
  4342. (task.formatContext = getChildFormatContext(defaultProps, type, props)),
  4343. (task.keyPath = keyPath),
  4344. renderNode(request, task, newProps, -1),
  4345. (task.formatContext = defaultProps),
  4346. (task.keyPath = initialState);
  4347. else {
  4348. initialState = pushStartInstance(
  4349. newProps.chunks,
  4350. type,
  4351. props,
  4352. request.resumableState,
  4353. request.renderState,
  4354. task.blockedPreamble,
  4355. task.hoistableState,
  4356. task.formatContext,
  4357. newProps.lastPushedText
  4358. );
  4359. newProps.lastPushedText = !1;
  4360. defaultProps = task.formatContext;
  4361. ref = task.keyPath;
  4362. task.keyPath = keyPath;
  4363. if (
  4364. 3 ===
  4365. (task.formatContext = getChildFormatContext(defaultProps, type, props))
  4366. .insertionMode
  4367. ) {
  4368. keyPath = createPendingSegment(
  4369. request,
  4370. 0,
  4371. null,
  4372. task.formatContext,
  4373. !1,
  4374. !1
  4375. );
  4376. newProps.preambleChildren.push(keyPath);
  4377. task.blockedSegment = keyPath;
  4378. try {
  4379. (keyPath.status = 6),
  4380. renderNode(request, task, initialState, -1),
  4381. pushSegmentFinale(
  4382. keyPath.chunks,
  4383. request.renderState,
  4384. keyPath.lastPushedText,
  4385. keyPath.textEmbedded
  4386. ),
  4387. (keyPath.status = 1);
  4388. } finally {
  4389. task.blockedSegment = newProps;
  4390. }
  4391. } else renderNode(request, task, initialState, -1);
  4392. task.formatContext = defaultProps;
  4393. task.keyPath = ref;
  4394. a: {
  4395. task = newProps.chunks;
  4396. request = request.resumableState;
  4397. switch (type) {
  4398. case "title":
  4399. case "style":
  4400. case "script":
  4401. case "area":
  4402. case "base":
  4403. case "br":
  4404. case "col":
  4405. case "embed":
  4406. case "hr":
  4407. case "img":
  4408. case "input":
  4409. case "keygen":
  4410. case "link":
  4411. case "meta":
  4412. case "param":
  4413. case "source":
  4414. case "track":
  4415. case "wbr":
  4416. break a;
  4417. case "body":
  4418. if (1 >= defaultProps.insertionMode) {
  4419. request.hasBody = !0;
  4420. break a;
  4421. }
  4422. break;
  4423. case "html":
  4424. if (0 === defaultProps.insertionMode) {
  4425. request.hasHtml = !0;
  4426. break a;
  4427. }
  4428. break;
  4429. case "head":
  4430. if (1 >= defaultProps.insertionMode) break a;
  4431. }
  4432. task.push(endChunkForTag(type));
  4433. }
  4434. newProps.lastPushedText = !1;
  4435. }
  4436. else {
  4437. switch (type) {
  4438. case REACT_LEGACY_HIDDEN_TYPE:
  4439. case REACT_STRICT_MODE_TYPE:
  4440. case REACT_PROFILER_TYPE:
  4441. case REACT_FRAGMENT_TYPE:
  4442. type = task.keyPath;
  4443. task.keyPath = keyPath;
  4444. renderNodeDestructive(request, task, props.children, -1);
  4445. task.keyPath = type;
  4446. return;
  4447. case REACT_ACTIVITY_TYPE:
  4448. type = task.blockedSegment;
  4449. null === type
  4450. ? "hidden" !== props.mode &&
  4451. ((type = task.keyPath),
  4452. (task.keyPath = keyPath),
  4453. renderNode(request, task, props.children, -1),
  4454. (task.keyPath = type))
  4455. : "hidden" !== props.mode &&
  4456. (request.renderState.generateStaticMarkup ||
  4457. type.chunks.push("\x3c!--&--\x3e"),
  4458. (type.lastPushedText = !1),
  4459. (newProps = task.keyPath),
  4460. (task.keyPath = keyPath),
  4461. renderNode(request, task, props.children, -1),
  4462. (task.keyPath = newProps),
  4463. request.renderState.generateStaticMarkup ||
  4464. type.chunks.push("\x3c!--/&--\x3e"),
  4465. (type.lastPushedText = !1));
  4466. return;
  4467. case REACT_SUSPENSE_LIST_TYPE:
  4468. a: {
  4469. type = props.children;
  4470. props = props.revealOrder;
  4471. if (
  4472. "forwards" === props ||
  4473. "backwards" === props ||
  4474. "unstable_legacy-backwards" === props
  4475. ) {
  4476. if (isArrayImpl(type)) {
  4477. renderSuspenseListRows(request, task, keyPath, type, props);
  4478. break a;
  4479. }
  4480. if ((newProps = getIteratorFn(type)))
  4481. if ((newProps = newProps.call(type))) {
  4482. defaultProps = newProps.next();
  4483. if (!defaultProps.done) {
  4484. do defaultProps = newProps.next();
  4485. while (!defaultProps.done);
  4486. renderSuspenseListRows(request, task, keyPath, type, props);
  4487. }
  4488. break a;
  4489. }
  4490. }
  4491. "together" === props
  4492. ? ((props = task.keyPath),
  4493. (newProps = task.row),
  4494. (defaultProps = task.row = createSuspenseListRow(null)),
  4495. (defaultProps.boundaries = []),
  4496. (defaultProps.together = !0),
  4497. (task.keyPath = keyPath),
  4498. renderNodeDestructive(request, task, type, -1),
  4499. 0 === --defaultProps.pendingTasks &&
  4500. finishSuspenseListRow(request, defaultProps),
  4501. (task.keyPath = props),
  4502. (task.row = newProps),
  4503. null !== newProps &&
  4504. 0 < defaultProps.pendingTasks &&
  4505. (newProps.pendingTasks++, (defaultProps.next = newProps)))
  4506. : ((props = task.keyPath),
  4507. (task.keyPath = keyPath),
  4508. renderNodeDestructive(request, task, type, -1),
  4509. (task.keyPath = props));
  4510. }
  4511. return;
  4512. case REACT_VIEW_TRANSITION_TYPE:
  4513. case REACT_SCOPE_TYPE:
  4514. throw Error("ReactDOMServer does not yet support scope components.");
  4515. case REACT_SUSPENSE_TYPE:
  4516. a: if (null !== task.replay) {
  4517. type = task.keyPath;
  4518. newProps = task.formatContext;
  4519. defaultProps = task.row;
  4520. task.keyPath = keyPath;
  4521. task.formatContext = getSuspenseContentFormatContext(
  4522. request.resumableState,
  4523. newProps
  4524. );
  4525. task.row = null;
  4526. keyPath = props.children;
  4527. try {
  4528. renderNode(request, task, keyPath, -1);
  4529. } finally {
  4530. (task.keyPath = type),
  4531. (task.formatContext = newProps),
  4532. (task.row = defaultProps);
  4533. }
  4534. } else {
  4535. type = task.keyPath;
  4536. ref = task.formatContext;
  4537. var prevRow = task.row,
  4538. parentBoundary = task.blockedBoundary;
  4539. propName$43 = task.blockedPreamble;
  4540. var parentHoistableState = task.hoistableState;
  4541. propName = task.blockedSegment;
  4542. var fallback = props.fallback;
  4543. props = props.children;
  4544. var fallbackAbortSet = new Set();
  4545. var newBoundary = createSuspenseBoundary(
  4546. request,
  4547. task.row,
  4548. fallbackAbortSet,
  4549. null,
  4550. null
  4551. );
  4552. null !== request.trackedPostpones &&
  4553. (newBoundary.trackedContentKeyPath = keyPath);
  4554. var boundarySegment = createPendingSegment(
  4555. request,
  4556. propName.chunks.length,
  4557. newBoundary,
  4558. task.formatContext,
  4559. !1,
  4560. !1
  4561. );
  4562. propName.children.push(boundarySegment);
  4563. propName.lastPushedText = !1;
  4564. var contentRootSegment = createPendingSegment(
  4565. request,
  4566. 0,
  4567. null,
  4568. task.formatContext,
  4569. !1,
  4570. !1
  4571. );
  4572. contentRootSegment.parentFlushed = !0;
  4573. if (null !== request.trackedPostpones) {
  4574. newProps = task.componentStack;
  4575. defaultProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
  4576. initialState = [defaultProps[1], defaultProps[2], [], null];
  4577. request.trackedPostpones.workingMap.set(defaultProps, initialState);
  4578. newBoundary.trackedFallbackNode = initialState;
  4579. task.blockedSegment = boundarySegment;
  4580. task.blockedPreamble = newBoundary.fallbackPreamble;
  4581. task.keyPath = defaultProps;
  4582. task.formatContext = getSuspenseFallbackFormatContext(
  4583. request.resumableState,
  4584. ref
  4585. );
  4586. task.componentStack =
  4587. replaceSuspenseComponentStackWithSuspenseFallbackStack(newProps);
  4588. boundarySegment.status = 6;
  4589. try {
  4590. renderNode(request, task, fallback, -1),
  4591. pushSegmentFinale(
  4592. boundarySegment.chunks,
  4593. request.renderState,
  4594. boundarySegment.lastPushedText,
  4595. boundarySegment.textEmbedded
  4596. ),
  4597. (boundarySegment.status = 1);
  4598. } catch (thrownValue) {
  4599. throw (
  4600. ((boundarySegment.status = 12 === request.status ? 3 : 4),
  4601. thrownValue)
  4602. );
  4603. } finally {
  4604. (task.blockedSegment = propName),
  4605. (task.blockedPreamble = propName$43),
  4606. (task.keyPath = type),
  4607. (task.formatContext = ref);
  4608. }
  4609. task = createRenderTask(
  4610. request,
  4611. null,
  4612. props,
  4613. -1,
  4614. newBoundary,
  4615. contentRootSegment,
  4616. newBoundary.contentPreamble,
  4617. newBoundary.contentState,
  4618. task.abortSet,
  4619. keyPath,
  4620. getSuspenseContentFormatContext(
  4621. request.resumableState,
  4622. task.formatContext
  4623. ),
  4624. task.context,
  4625. task.treeContext,
  4626. null,
  4627. newProps
  4628. );
  4629. pushComponentStack(task);
  4630. request.pingedTasks.push(task);
  4631. } else {
  4632. task.blockedBoundary = newBoundary;
  4633. task.blockedPreamble = newBoundary.contentPreamble;
  4634. task.hoistableState = newBoundary.contentState;
  4635. task.blockedSegment = contentRootSegment;
  4636. task.keyPath = keyPath;
  4637. task.formatContext = getSuspenseContentFormatContext(
  4638. request.resumableState,
  4639. ref
  4640. );
  4641. task.row = null;
  4642. contentRootSegment.status = 6;
  4643. try {
  4644. if (
  4645. (renderNode(request, task, props, -1),
  4646. pushSegmentFinale(
  4647. contentRootSegment.chunks,
  4648. request.renderState,
  4649. contentRootSegment.lastPushedText,
  4650. contentRootSegment.textEmbedded
  4651. ),
  4652. (contentRootSegment.status = 1),
  4653. queueCompletedSegment(newBoundary, contentRootSegment),
  4654. 0 === newBoundary.pendingTasks && 0 === newBoundary.status)
  4655. ) {
  4656. if (
  4657. ((newBoundary.status = 1),
  4658. !isEligibleForOutlining(request, newBoundary))
  4659. ) {
  4660. null !== prevRow &&
  4661. 0 === --prevRow.pendingTasks &&
  4662. finishSuspenseListRow(request, prevRow);
  4663. 0 === request.pendingRootTasks &&
  4664. task.blockedPreamble &&
  4665. preparePreamble(request);
  4666. break a;
  4667. }
  4668. } else
  4669. null !== prevRow &&
  4670. prevRow.together &&
  4671. tryToResolveTogetherRow(request, prevRow);
  4672. } catch (thrownValue$30) {
  4673. (newBoundary.status = 4),
  4674. 12 === request.status
  4675. ? ((contentRootSegment.status = 3),
  4676. (newProps = request.fatalError))
  4677. : ((contentRootSegment.status = 4),
  4678. (newProps = thrownValue$30)),
  4679. (defaultProps = getThrownInfo(task.componentStack)),
  4680. (initialState = logRecoverableError(
  4681. request,
  4682. newProps,
  4683. defaultProps
  4684. )),
  4685. (newBoundary.errorDigest = initialState),
  4686. untrackBoundary(request, newBoundary);
  4687. } finally {
  4688. (task.blockedBoundary = parentBoundary),
  4689. (task.blockedPreamble = propName$43),
  4690. (task.hoistableState = parentHoistableState),
  4691. (task.blockedSegment = propName),
  4692. (task.keyPath = type),
  4693. (task.formatContext = ref),
  4694. (task.row = prevRow);
  4695. }
  4696. task = createRenderTask(
  4697. request,
  4698. null,
  4699. fallback,
  4700. -1,
  4701. parentBoundary,
  4702. boundarySegment,
  4703. newBoundary.fallbackPreamble,
  4704. newBoundary.fallbackState,
  4705. fallbackAbortSet,
  4706. [keyPath[0], "Suspense Fallback", keyPath[2]],
  4707. getSuspenseFallbackFormatContext(
  4708. request.resumableState,
  4709. task.formatContext
  4710. ),
  4711. task.context,
  4712. task.treeContext,
  4713. task.row,
  4714. replaceSuspenseComponentStackWithSuspenseFallbackStack(
  4715. task.componentStack
  4716. )
  4717. );
  4718. pushComponentStack(task);
  4719. request.pingedTasks.push(task);
  4720. }
  4721. }
  4722. return;
  4723. }
  4724. if ("object" === typeof type && null !== type)
  4725. switch (type.$$typeof) {
  4726. case REACT_FORWARD_REF_TYPE:
  4727. if ("ref" in props)
  4728. for (fallback in ((newProps = {}), props))
  4729. "ref" !== fallback && (newProps[fallback] = props[fallback]);
  4730. else newProps = props;
  4731. type = renderWithHooks(
  4732. request,
  4733. task,
  4734. keyPath,
  4735. type.render,
  4736. newProps,
  4737. ref
  4738. );
  4739. finishFunctionComponent(
  4740. request,
  4741. task,
  4742. keyPath,
  4743. type,
  4744. 0 !== localIdCounter,
  4745. actionStateCounter,
  4746. actionStateMatchingIndex
  4747. );
  4748. return;
  4749. case REACT_MEMO_TYPE:
  4750. renderElement(request, task, keyPath, type.type, props, ref);
  4751. return;
  4752. case REACT_CONTEXT_TYPE:
  4753. defaultProps = props.children;
  4754. newProps = task.keyPath;
  4755. props = props.value;
  4756. initialState = type._currentValue2;
  4757. type._currentValue2 = props;
  4758. ref = currentActiveSnapshot;
  4759. currentActiveSnapshot = type = {
  4760. parent: ref,
  4761. depth: null === ref ? 0 : ref.depth + 1,
  4762. context: type,
  4763. parentValue: initialState,
  4764. value: props
  4765. };
  4766. task.context = type;
  4767. task.keyPath = keyPath;
  4768. renderNodeDestructive(request, task, defaultProps, -1);
  4769. request = currentActiveSnapshot;
  4770. if (null === request)
  4771. throw Error(
  4772. "Tried to pop a Context at the root of the app. This is a bug in React."
  4773. );
  4774. request.context._currentValue2 = request.parentValue;
  4775. request = currentActiveSnapshot = request.parent;
  4776. task.context = request;
  4777. task.keyPath = newProps;
  4778. return;
  4779. case REACT_CONSUMER_TYPE:
  4780. props = props.children;
  4781. type = props(type._context._currentValue2);
  4782. props = task.keyPath;
  4783. task.keyPath = keyPath;
  4784. renderNodeDestructive(request, task, type, -1);
  4785. task.keyPath = props;
  4786. return;
  4787. case REACT_LAZY_TYPE:
  4788. newProps = type._init;
  4789. type = newProps(type._payload);
  4790. if (12 === request.status) throw null;
  4791. renderElement(request, task, keyPath, type, props, ref);
  4792. return;
  4793. }
  4794. throw Error(
  4795. "Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " +
  4796. ((null == type ? type : typeof type) + ".")
  4797. );
  4798. }
  4799. }
  4800. function resumeNode(request, task, segmentId, node, childIndex) {
  4801. var prevReplay = task.replay,
  4802. blockedBoundary = task.blockedBoundary,
  4803. resumedSegment = createPendingSegment(
  4804. request,
  4805. 0,
  4806. null,
  4807. task.formatContext,
  4808. !1,
  4809. !1
  4810. );
  4811. resumedSegment.id = segmentId;
  4812. resumedSegment.parentFlushed = !0;
  4813. try {
  4814. (task.replay = null),
  4815. (task.blockedSegment = resumedSegment),
  4816. renderNode(request, task, node, childIndex),
  4817. (resumedSegment.status = 1),
  4818. null === blockedBoundary
  4819. ? (request.completedRootSegment = resumedSegment)
  4820. : (queueCompletedSegment(blockedBoundary, resumedSegment),
  4821. blockedBoundary.parentFlushed &&
  4822. request.partialBoundaries.push(blockedBoundary));
  4823. } finally {
  4824. (task.replay = prevReplay), (task.blockedSegment = null);
  4825. }
  4826. }
  4827. function renderNodeDestructive(request, task, node, childIndex) {
  4828. null !== task.replay && "number" === typeof task.replay.slots
  4829. ? resumeNode(request, task, task.replay.slots, node, childIndex)
  4830. : ((task.node = node),
  4831. (task.childIndex = childIndex),
  4832. (node = task.componentStack),
  4833. pushComponentStack(task),
  4834. retryNode(request, task),
  4835. (task.componentStack = node));
  4836. }
  4837. function retryNode(request, task) {
  4838. var node = task.node,
  4839. childIndex = task.childIndex;
  4840. if (null !== node) {
  4841. if ("object" === typeof node) {
  4842. switch (node.$$typeof) {
  4843. case REACT_ELEMENT_TYPE:
  4844. var type = node.type,
  4845. key = node.key,
  4846. props = node.props;
  4847. node = props.ref;
  4848. var ref = void 0 !== node ? node : null,
  4849. name = getComponentNameFromType(type),
  4850. keyOrIndex =
  4851. null == key ? (-1 === childIndex ? 0 : childIndex) : key;
  4852. key = [task.keyPath, name, keyOrIndex];
  4853. if (null !== task.replay)
  4854. a: {
  4855. var replay = task.replay;
  4856. childIndex = replay.nodes;
  4857. for (node = 0; node < childIndex.length; node++) {
  4858. var node$jscomp$0 = childIndex[node];
  4859. if (keyOrIndex === node$jscomp$0[1]) {
  4860. if (4 === node$jscomp$0.length) {
  4861. if (null !== name && name !== node$jscomp$0[0])
  4862. throw Error(
  4863. "Expected the resume to render <" +
  4864. node$jscomp$0[0] +
  4865. "> in this slot but instead it rendered <" +
  4866. name +
  4867. ">. The tree doesn't match so React will fallback to client rendering."
  4868. );
  4869. var childNodes = node$jscomp$0[2];
  4870. name = node$jscomp$0[3];
  4871. keyOrIndex = task.node;
  4872. task.replay = {
  4873. nodes: childNodes,
  4874. slots: name,
  4875. pendingTasks: 1
  4876. };
  4877. try {
  4878. renderElement(request, task, key, type, props, ref);
  4879. if (
  4880. 1 === task.replay.pendingTasks &&
  4881. 0 < task.replay.nodes.length
  4882. )
  4883. throw Error(
  4884. "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
  4885. );
  4886. task.replay.pendingTasks--;
  4887. } catch (x) {
  4888. if (
  4889. "object" === typeof x &&
  4890. null !== x &&
  4891. (x === SuspenseException ||
  4892. "function" === typeof x.then)
  4893. )
  4894. throw (
  4895. (task.node === keyOrIndex
  4896. ? (task.replay = replay)
  4897. : childIndex.splice(node, 1),
  4898. x)
  4899. );
  4900. task.replay.pendingTasks--;
  4901. props = getThrownInfo(task.componentStack);
  4902. key = request;
  4903. request = task.blockedBoundary;
  4904. type = x;
  4905. props = logRecoverableError(key, type, props);
  4906. abortRemainingReplayNodes(
  4907. key,
  4908. request,
  4909. childNodes,
  4910. name,
  4911. type,
  4912. props
  4913. );
  4914. }
  4915. task.replay = replay;
  4916. } else {
  4917. if (type !== REACT_SUSPENSE_TYPE)
  4918. throw Error(
  4919. "Expected the resume to render <Suspense> in this slot but instead it rendered <" +
  4920. (getComponentNameFromType(type) || "Unknown") +
  4921. ">. The tree doesn't match so React will fallback to client rendering."
  4922. );
  4923. b: {
  4924. replay = void 0;
  4925. type = node$jscomp$0[5];
  4926. ref = node$jscomp$0[2];
  4927. name = node$jscomp$0[3];
  4928. keyOrIndex =
  4929. null === node$jscomp$0[4] ? [] : node$jscomp$0[4][2];
  4930. node$jscomp$0 =
  4931. null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
  4932. var prevKeyPath = task.keyPath,
  4933. prevContext = task.formatContext,
  4934. prevRow = task.row,
  4935. previousReplaySet = task.replay,
  4936. parentBoundary = task.blockedBoundary,
  4937. parentHoistableState = task.hoistableState,
  4938. content = props.children,
  4939. fallback = props.fallback,
  4940. fallbackAbortSet = new Set();
  4941. props = createSuspenseBoundary(
  4942. request,
  4943. task.row,
  4944. fallbackAbortSet,
  4945. null,
  4946. null
  4947. );
  4948. props.parentFlushed = !0;
  4949. props.rootSegmentID = type;
  4950. task.blockedBoundary = props;
  4951. task.hoistableState = props.contentState;
  4952. task.keyPath = key;
  4953. task.formatContext = getSuspenseContentFormatContext(
  4954. request.resumableState,
  4955. prevContext
  4956. );
  4957. task.row = null;
  4958. task.replay = {
  4959. nodes: ref,
  4960. slots: name,
  4961. pendingTasks: 1
  4962. };
  4963. try {
  4964. renderNode(request, task, content, -1);
  4965. if (
  4966. 1 === task.replay.pendingTasks &&
  4967. 0 < task.replay.nodes.length
  4968. )
  4969. throw Error(
  4970. "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
  4971. );
  4972. task.replay.pendingTasks--;
  4973. if (0 === props.pendingTasks && 0 === props.status) {
  4974. props.status = 1;
  4975. request.completedBoundaries.push(props);
  4976. break b;
  4977. }
  4978. } catch (error) {
  4979. (props.status = 4),
  4980. (childNodes = getThrownInfo(task.componentStack)),
  4981. (replay = logRecoverableError(
  4982. request,
  4983. error,
  4984. childNodes
  4985. )),
  4986. (props.errorDigest = replay),
  4987. task.replay.pendingTasks--,
  4988. request.clientRenderedBoundaries.push(props);
  4989. } finally {
  4990. (task.blockedBoundary = parentBoundary),
  4991. (task.hoistableState = parentHoistableState),
  4992. (task.replay = previousReplaySet),
  4993. (task.keyPath = prevKeyPath),
  4994. (task.formatContext = prevContext),
  4995. (task.row = prevRow);
  4996. }
  4997. childNodes = createReplayTask(
  4998. request,
  4999. null,
  5000. {
  5001. nodes: keyOrIndex,
  5002. slots: node$jscomp$0,
  5003. pendingTasks: 0
  5004. },
  5005. fallback,
  5006. -1,
  5007. parentBoundary,
  5008. props.fallbackState,
  5009. fallbackAbortSet,
  5010. [key[0], "Suspense Fallback", key[2]],
  5011. getSuspenseFallbackFormatContext(
  5012. request.resumableState,
  5013. task.formatContext
  5014. ),
  5015. task.context,
  5016. task.treeContext,
  5017. task.row,
  5018. replaceSuspenseComponentStackWithSuspenseFallbackStack(
  5019. task.componentStack
  5020. )
  5021. );
  5022. pushComponentStack(childNodes);
  5023. request.pingedTasks.push(childNodes);
  5024. }
  5025. }
  5026. childIndex.splice(node, 1);
  5027. break a;
  5028. }
  5029. }
  5030. }
  5031. else renderElement(request, task, key, type, props, ref);
  5032. return;
  5033. case REACT_PORTAL_TYPE:
  5034. throw Error(
  5035. "Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render."
  5036. );
  5037. case REACT_LAZY_TYPE:
  5038. childNodes = node._init;
  5039. node = childNodes(node._payload);
  5040. if (12 === request.status) throw null;
  5041. renderNodeDestructive(request, task, node, childIndex);
  5042. return;
  5043. }
  5044. if (isArrayImpl(node)) {
  5045. renderChildrenArray(request, task, node, childIndex);
  5046. return;
  5047. }
  5048. if ((childNodes = getIteratorFn(node)))
  5049. if ((childNodes = childNodes.call(node))) {
  5050. node = childNodes.next();
  5051. if (!node.done) {
  5052. props = [];
  5053. do props.push(node.value), (node = childNodes.next());
  5054. while (!node.done);
  5055. renderChildrenArray(request, task, props, childIndex);
  5056. }
  5057. return;
  5058. }
  5059. if ("function" === typeof node.then)
  5060. return (
  5061. (task.thenableState = null),
  5062. renderNodeDestructive(request, task, unwrapThenable(node), childIndex)
  5063. );
  5064. if (node.$$typeof === REACT_CONTEXT_TYPE)
  5065. return renderNodeDestructive(
  5066. request,
  5067. task,
  5068. node._currentValue2,
  5069. childIndex
  5070. );
  5071. childIndex = Object.prototype.toString.call(node);
  5072. throw Error(
  5073. "Objects are not valid as a React child (found: " +
  5074. ("[object Object]" === childIndex
  5075. ? "object with keys {" + Object.keys(node).join(", ") + "}"
  5076. : childIndex) +
  5077. "). If you meant to render a collection of children, use an array instead."
  5078. );
  5079. }
  5080. if ("string" === typeof node)
  5081. (childIndex = task.blockedSegment),
  5082. null !== childIndex &&
  5083. (childIndex.lastPushedText = pushTextInstance(
  5084. childIndex.chunks,
  5085. node,
  5086. request.renderState,
  5087. childIndex.lastPushedText
  5088. ));
  5089. else if ("number" === typeof node || "bigint" === typeof node)
  5090. (childIndex = task.blockedSegment),
  5091. null !== childIndex &&
  5092. (childIndex.lastPushedText = pushTextInstance(
  5093. childIndex.chunks,
  5094. "" + node,
  5095. request.renderState,
  5096. childIndex.lastPushedText
  5097. ));
  5098. }
  5099. }
  5100. function renderChildrenArray(request, task, children, childIndex) {
  5101. var prevKeyPath = task.keyPath;
  5102. if (
  5103. -1 !== childIndex &&
  5104. ((task.keyPath = [task.keyPath, "Fragment", childIndex]),
  5105. null !== task.replay)
  5106. ) {
  5107. for (
  5108. var replay = task.replay, replayNodes = replay.nodes, j = 0;
  5109. j < replayNodes.length;
  5110. j++
  5111. ) {
  5112. var node = replayNodes[j];
  5113. if (node[1] === childIndex) {
  5114. childIndex = node[2];
  5115. node = node[3];
  5116. task.replay = { nodes: childIndex, slots: node, pendingTasks: 1 };
  5117. try {
  5118. renderChildrenArray(request, task, children, -1);
  5119. if (1 === task.replay.pendingTasks && 0 < task.replay.nodes.length)
  5120. throw Error(
  5121. "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
  5122. );
  5123. task.replay.pendingTasks--;
  5124. } catch (x) {
  5125. if (
  5126. "object" === typeof x &&
  5127. null !== x &&
  5128. (x === SuspenseException || "function" === typeof x.then)
  5129. )
  5130. throw x;
  5131. task.replay.pendingTasks--;
  5132. children = getThrownInfo(task.componentStack);
  5133. var boundary = task.blockedBoundary,
  5134. error = x;
  5135. children = logRecoverableError(request, error, children);
  5136. abortRemainingReplayNodes(
  5137. request,
  5138. boundary,
  5139. childIndex,
  5140. node,
  5141. error,
  5142. children
  5143. );
  5144. }
  5145. task.replay = replay;
  5146. replayNodes.splice(j, 1);
  5147. break;
  5148. }
  5149. }
  5150. task.keyPath = prevKeyPath;
  5151. return;
  5152. }
  5153. replay = task.treeContext;
  5154. replayNodes = children.length;
  5155. if (
  5156. null !== task.replay &&
  5157. ((j = task.replay.slots), null !== j && "object" === typeof j)
  5158. ) {
  5159. for (childIndex = 0; childIndex < replayNodes; childIndex++)
  5160. (node = children[childIndex]),
  5161. (task.treeContext = pushTreeContext(replay, replayNodes, childIndex)),
  5162. (boundary = j[childIndex]),
  5163. "number" === typeof boundary
  5164. ? (resumeNode(request, task, boundary, node, childIndex),
  5165. delete j[childIndex])
  5166. : renderNode(request, task, node, childIndex);
  5167. task.treeContext = replay;
  5168. task.keyPath = prevKeyPath;
  5169. return;
  5170. }
  5171. for (j = 0; j < replayNodes; j++)
  5172. (childIndex = children[j]),
  5173. (task.treeContext = pushTreeContext(replay, replayNodes, j)),
  5174. renderNode(request, task, childIndex, j);
  5175. task.treeContext = replay;
  5176. task.keyPath = prevKeyPath;
  5177. }
  5178. function trackPostponedBoundary(request, trackedPostpones, boundary) {
  5179. boundary.status = 5;
  5180. boundary.rootSegmentID = request.nextSegmentId++;
  5181. request = boundary.trackedContentKeyPath;
  5182. if (null === request)
  5183. throw Error(
  5184. "It should not be possible to postpone at the root. This is a bug in React."
  5185. );
  5186. var fallbackReplayNode = boundary.trackedFallbackNode,
  5187. children = [],
  5188. boundaryNode = trackedPostpones.workingMap.get(request);
  5189. if (void 0 === boundaryNode)
  5190. return (
  5191. (boundary = [
  5192. request[1],
  5193. request[2],
  5194. children,
  5195. null,
  5196. fallbackReplayNode,
  5197. boundary.rootSegmentID
  5198. ]),
  5199. trackedPostpones.workingMap.set(request, boundary),
  5200. addToReplayParent(boundary, request[0], trackedPostpones),
  5201. boundary
  5202. );
  5203. boundaryNode[4] = fallbackReplayNode;
  5204. boundaryNode[5] = boundary.rootSegmentID;
  5205. return boundaryNode;
  5206. }
  5207. function trackPostpone(request, trackedPostpones, task, segment) {
  5208. segment.status = 5;
  5209. var keyPath = task.keyPath,
  5210. boundary = task.blockedBoundary;
  5211. if (null === boundary)
  5212. (segment.id = request.nextSegmentId++),
  5213. (trackedPostpones.rootSlots = segment.id),
  5214. null !== request.completedRootSegment &&
  5215. (request.completedRootSegment.status = 5);
  5216. else {
  5217. if (null !== boundary && 0 === boundary.status) {
  5218. var boundaryNode = trackPostponedBoundary(
  5219. request,
  5220. trackedPostpones,
  5221. boundary
  5222. );
  5223. if (
  5224. boundary.trackedContentKeyPath === keyPath &&
  5225. -1 === task.childIndex
  5226. ) {
  5227. -1 === segment.id &&
  5228. (segment.id = segment.parentFlushed
  5229. ? boundary.rootSegmentID
  5230. : request.nextSegmentId++);
  5231. boundaryNode[3] = segment.id;
  5232. return;
  5233. }
  5234. }
  5235. -1 === segment.id &&
  5236. (segment.id =
  5237. segment.parentFlushed && null !== boundary
  5238. ? boundary.rootSegmentID
  5239. : request.nextSegmentId++);
  5240. if (-1 === task.childIndex)
  5241. null === keyPath
  5242. ? (trackedPostpones.rootSlots = segment.id)
  5243. : ((task = trackedPostpones.workingMap.get(keyPath)),
  5244. void 0 === task
  5245. ? ((task = [keyPath[1], keyPath[2], [], segment.id]),
  5246. addToReplayParent(task, keyPath[0], trackedPostpones))
  5247. : (task[3] = segment.id));
  5248. else {
  5249. if (null === keyPath)
  5250. if (((request = trackedPostpones.rootSlots), null === request))
  5251. request = trackedPostpones.rootSlots = {};
  5252. else {
  5253. if ("number" === typeof request)
  5254. throw Error(
  5255. "It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React."
  5256. );
  5257. }
  5258. else if (
  5259. ((boundary = trackedPostpones.workingMap),
  5260. (boundaryNode = boundary.get(keyPath)),
  5261. void 0 === boundaryNode)
  5262. )
  5263. (request = {}),
  5264. (boundaryNode = [keyPath[1], keyPath[2], [], request]),
  5265. boundary.set(keyPath, boundaryNode),
  5266. addToReplayParent(boundaryNode, keyPath[0], trackedPostpones);
  5267. else if (((request = boundaryNode[3]), null === request))
  5268. request = boundaryNode[3] = {};
  5269. else if ("number" === typeof request)
  5270. throw Error(
  5271. "It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React."
  5272. );
  5273. request[task.childIndex] = segment.id;
  5274. }
  5275. }
  5276. }
  5277. function untrackBoundary(request, boundary) {
  5278. request = request.trackedPostpones;
  5279. null !== request &&
  5280. ((boundary = boundary.trackedContentKeyPath),
  5281. null !== boundary &&
  5282. ((boundary = request.workingMap.get(boundary)),
  5283. void 0 !== boundary &&
  5284. ((boundary.length = 4), (boundary[2] = []), (boundary[3] = null))));
  5285. }
  5286. function spawnNewSuspendedReplayTask(request, task, thenableState) {
  5287. return createReplayTask(
  5288. request,
  5289. thenableState,
  5290. task.replay,
  5291. task.node,
  5292. task.childIndex,
  5293. task.blockedBoundary,
  5294. task.hoistableState,
  5295. task.abortSet,
  5296. task.keyPath,
  5297. task.formatContext,
  5298. task.context,
  5299. task.treeContext,
  5300. task.row,
  5301. task.componentStack
  5302. );
  5303. }
  5304. function spawnNewSuspendedRenderTask(request, task, thenableState) {
  5305. var segment = task.blockedSegment,
  5306. newSegment = createPendingSegment(
  5307. request,
  5308. segment.chunks.length,
  5309. null,
  5310. task.formatContext,
  5311. segment.lastPushedText,
  5312. !0
  5313. );
  5314. segment.children.push(newSegment);
  5315. segment.lastPushedText = !1;
  5316. return createRenderTask(
  5317. request,
  5318. thenableState,
  5319. task.node,
  5320. task.childIndex,
  5321. task.blockedBoundary,
  5322. newSegment,
  5323. task.blockedPreamble,
  5324. task.hoistableState,
  5325. task.abortSet,
  5326. task.keyPath,
  5327. task.formatContext,
  5328. task.context,
  5329. task.treeContext,
  5330. task.row,
  5331. task.componentStack
  5332. );
  5333. }
  5334. function renderNode(request, task, node, childIndex) {
  5335. var previousFormatContext = task.formatContext,
  5336. previousContext = task.context,
  5337. previousKeyPath = task.keyPath,
  5338. previousTreeContext = task.treeContext,
  5339. previousComponentStack = task.componentStack,
  5340. segment = task.blockedSegment;
  5341. if (null === segment) {
  5342. segment = task.replay;
  5343. try {
  5344. return renderNodeDestructive(request, task, node, childIndex);
  5345. } catch (thrownValue) {
  5346. if (
  5347. (resetHooksState(),
  5348. (node =
  5349. thrownValue === SuspenseException
  5350. ? getSuspendedThenable()
  5351. : thrownValue),
  5352. 12 !== request.status && "object" === typeof node && null !== node)
  5353. ) {
  5354. if ("function" === typeof node.then) {
  5355. childIndex =
  5356. thrownValue === SuspenseException
  5357. ? getThenableStateAfterSuspending()
  5358. : null;
  5359. request = spawnNewSuspendedReplayTask(request, task, childIndex).ping;
  5360. node.then(request, request);
  5361. task.formatContext = previousFormatContext;
  5362. task.context = previousContext;
  5363. task.keyPath = previousKeyPath;
  5364. task.treeContext = previousTreeContext;
  5365. task.componentStack = previousComponentStack;
  5366. task.replay = segment;
  5367. switchContext(previousContext);
  5368. return;
  5369. }
  5370. if ("Maximum call stack size exceeded" === node.message) {
  5371. node =
  5372. thrownValue === SuspenseException
  5373. ? getThenableStateAfterSuspending()
  5374. : null;
  5375. node = spawnNewSuspendedReplayTask(request, task, node);
  5376. request.pingedTasks.push(node);
  5377. task.formatContext = previousFormatContext;
  5378. task.context = previousContext;
  5379. task.keyPath = previousKeyPath;
  5380. task.treeContext = previousTreeContext;
  5381. task.componentStack = previousComponentStack;
  5382. task.replay = segment;
  5383. switchContext(previousContext);
  5384. return;
  5385. }
  5386. }
  5387. }
  5388. } else {
  5389. var childrenLength = segment.children.length,
  5390. chunkLength = segment.chunks.length;
  5391. try {
  5392. return renderNodeDestructive(request, task, node, childIndex);
  5393. } catch (thrownValue$62) {
  5394. if (
  5395. (resetHooksState(),
  5396. (segment.children.length = childrenLength),
  5397. (segment.chunks.length = chunkLength),
  5398. (node =
  5399. thrownValue$62 === SuspenseException
  5400. ? getSuspendedThenable()
  5401. : thrownValue$62),
  5402. 12 !== request.status && "object" === typeof node && null !== node)
  5403. ) {
  5404. if ("function" === typeof node.then) {
  5405. segment = node;
  5406. node =
  5407. thrownValue$62 === SuspenseException
  5408. ? getThenableStateAfterSuspending()
  5409. : null;
  5410. request = spawnNewSuspendedRenderTask(request, task, node).ping;
  5411. segment.then(request, request);
  5412. task.formatContext = previousFormatContext;
  5413. task.context = previousContext;
  5414. task.keyPath = previousKeyPath;
  5415. task.treeContext = previousTreeContext;
  5416. task.componentStack = previousComponentStack;
  5417. switchContext(previousContext);
  5418. return;
  5419. }
  5420. if ("Maximum call stack size exceeded" === node.message) {
  5421. segment =
  5422. thrownValue$62 === SuspenseException
  5423. ? getThenableStateAfterSuspending()
  5424. : null;
  5425. segment = spawnNewSuspendedRenderTask(request, task, segment);
  5426. request.pingedTasks.push(segment);
  5427. task.formatContext = previousFormatContext;
  5428. task.context = previousContext;
  5429. task.keyPath = previousKeyPath;
  5430. task.treeContext = previousTreeContext;
  5431. task.componentStack = previousComponentStack;
  5432. switchContext(previousContext);
  5433. return;
  5434. }
  5435. }
  5436. }
  5437. }
  5438. task.formatContext = previousFormatContext;
  5439. task.context = previousContext;
  5440. task.keyPath = previousKeyPath;
  5441. task.treeContext = previousTreeContext;
  5442. switchContext(previousContext);
  5443. throw node;
  5444. }
  5445. function abortTaskSoft(task) {
  5446. var boundary = task.blockedBoundary,
  5447. segment = task.blockedSegment;
  5448. null !== segment &&
  5449. ((segment.status = 3), finishedTask(this, boundary, task.row, segment));
  5450. }
  5451. function abortRemainingReplayNodes(
  5452. request$jscomp$0,
  5453. boundary,
  5454. nodes,
  5455. slots,
  5456. error,
  5457. errorDigest$jscomp$0
  5458. ) {
  5459. for (var i = 0; i < nodes.length; i++) {
  5460. var node = nodes[i];
  5461. if (4 === node.length)
  5462. abortRemainingReplayNodes(
  5463. request$jscomp$0,
  5464. boundary,
  5465. node[2],
  5466. node[3],
  5467. error,
  5468. errorDigest$jscomp$0
  5469. );
  5470. else {
  5471. node = node[5];
  5472. var request = request$jscomp$0,
  5473. errorDigest = errorDigest$jscomp$0,
  5474. resumedBoundary = createSuspenseBoundary(
  5475. request,
  5476. null,
  5477. new Set(),
  5478. null,
  5479. null
  5480. );
  5481. resumedBoundary.parentFlushed = !0;
  5482. resumedBoundary.rootSegmentID = node;
  5483. resumedBoundary.status = 4;
  5484. resumedBoundary.errorDigest = errorDigest;
  5485. resumedBoundary.parentFlushed &&
  5486. request.clientRenderedBoundaries.push(resumedBoundary);
  5487. }
  5488. }
  5489. nodes.length = 0;
  5490. if (null !== slots) {
  5491. if (null === boundary)
  5492. throw Error(
  5493. "We should not have any resumable nodes in the shell. This is a bug in React."
  5494. );
  5495. 4 !== boundary.status &&
  5496. ((boundary.status = 4),
  5497. (boundary.errorDigest = errorDigest$jscomp$0),
  5498. boundary.parentFlushed &&
  5499. request$jscomp$0.clientRenderedBoundaries.push(boundary));
  5500. if ("object" === typeof slots) for (var index in slots) delete slots[index];
  5501. }
  5502. }
  5503. function abortTask(task, request, error) {
  5504. var boundary = task.blockedBoundary,
  5505. segment = task.blockedSegment;
  5506. if (null !== segment) {
  5507. if (6 === segment.status) return;
  5508. segment.status = 3;
  5509. }
  5510. var errorInfo = getThrownInfo(task.componentStack);
  5511. if (null === boundary) {
  5512. if (13 !== request.status && 14 !== request.status) {
  5513. boundary = task.replay;
  5514. if (null === boundary) {
  5515. null !== request.trackedPostpones && null !== segment
  5516. ? ((boundary = request.trackedPostpones),
  5517. logRecoverableError(request, error, errorInfo),
  5518. trackPostpone(request, boundary, task, segment),
  5519. finishedTask(request, null, task.row, segment))
  5520. : (logRecoverableError(request, error, errorInfo),
  5521. fatalError(request, error));
  5522. return;
  5523. }
  5524. boundary.pendingTasks--;
  5525. 0 === boundary.pendingTasks &&
  5526. 0 < boundary.nodes.length &&
  5527. ((segment = logRecoverableError(request, error, errorInfo)),
  5528. abortRemainingReplayNodes(
  5529. request,
  5530. null,
  5531. boundary.nodes,
  5532. boundary.slots,
  5533. error,
  5534. segment
  5535. ));
  5536. request.pendingRootTasks--;
  5537. 0 === request.pendingRootTasks && completeShell(request);
  5538. }
  5539. } else {
  5540. var trackedPostpones$63 = request.trackedPostpones;
  5541. if (4 !== boundary.status) {
  5542. if (null !== trackedPostpones$63 && null !== segment)
  5543. return (
  5544. logRecoverableError(request, error, errorInfo),
  5545. trackPostpone(request, trackedPostpones$63, task, segment),
  5546. boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
  5547. return abortTask(fallbackTask, request, error);
  5548. }),
  5549. boundary.fallbackAbortableTasks.clear(),
  5550. finishedTask(request, boundary, task.row, segment)
  5551. );
  5552. boundary.status = 4;
  5553. segment = logRecoverableError(request, error, errorInfo);
  5554. boundary.status = 4;
  5555. boundary.errorDigest = segment;
  5556. untrackBoundary(request, boundary);
  5557. boundary.parentFlushed && request.clientRenderedBoundaries.push(boundary);
  5558. }
  5559. boundary.pendingTasks--;
  5560. segment = boundary.row;
  5561. null !== segment &&
  5562. 0 === --segment.pendingTasks &&
  5563. finishSuspenseListRow(request, segment);
  5564. boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
  5565. return abortTask(fallbackTask, request, error);
  5566. });
  5567. boundary.fallbackAbortableTasks.clear();
  5568. }
  5569. task = task.row;
  5570. null !== task &&
  5571. 0 === --task.pendingTasks &&
  5572. finishSuspenseListRow(request, task);
  5573. request.allPendingTasks--;
  5574. 0 === request.allPendingTasks && completeAll(request);
  5575. }
  5576. function safelyEmitEarlyPreloads(request, shellComplete) {
  5577. try {
  5578. var renderState = request.renderState,
  5579. onHeaders = renderState.onHeaders;
  5580. if (onHeaders) {
  5581. var headers = renderState.headers;
  5582. if (headers) {
  5583. renderState.headers = null;
  5584. var linkHeader = headers.preconnects;
  5585. headers.fontPreloads &&
  5586. (linkHeader && (linkHeader += ", "),
  5587. (linkHeader += headers.fontPreloads));
  5588. headers.highImagePreloads &&
  5589. (linkHeader && (linkHeader += ", "),
  5590. (linkHeader += headers.highImagePreloads));
  5591. if (!shellComplete) {
  5592. var queueIter = renderState.styles.values(),
  5593. queueStep = queueIter.next();
  5594. b: for (
  5595. ;
  5596. 0 < headers.remainingCapacity && !queueStep.done;
  5597. queueStep = queueIter.next()
  5598. )
  5599. for (
  5600. var sheetIter = queueStep.value.sheets.values(),
  5601. sheetStep = sheetIter.next();
  5602. 0 < headers.remainingCapacity && !sheetStep.done;
  5603. sheetStep = sheetIter.next()
  5604. ) {
  5605. var sheet = sheetStep.value,
  5606. props = sheet.props,
  5607. key = props.href,
  5608. props$jscomp$0 = sheet.props,
  5609. header = getPreloadAsHeader(props$jscomp$0.href, "style", {
  5610. crossOrigin: props$jscomp$0.crossOrigin,
  5611. integrity: props$jscomp$0.integrity,
  5612. nonce: props$jscomp$0.nonce,
  5613. type: props$jscomp$0.type,
  5614. fetchPriority: props$jscomp$0.fetchPriority,
  5615. referrerPolicy: props$jscomp$0.referrerPolicy,
  5616. media: props$jscomp$0.media
  5617. });
  5618. if (0 <= (headers.remainingCapacity -= header.length + 2))
  5619. (renderState.resets.style[key] = PRELOAD_NO_CREDS),
  5620. linkHeader && (linkHeader += ", "),
  5621. (linkHeader += header),
  5622. (renderState.resets.style[key] =
  5623. "string" === typeof props.crossOrigin ||
  5624. "string" === typeof props.integrity
  5625. ? [props.crossOrigin, props.integrity]
  5626. : PRELOAD_NO_CREDS);
  5627. else break b;
  5628. }
  5629. }
  5630. linkHeader ? onHeaders({ Link: linkHeader }) : onHeaders({});
  5631. }
  5632. }
  5633. } catch (error) {
  5634. logRecoverableError(request, error, {});
  5635. }
  5636. }
  5637. function completeShell(request) {
  5638. null === request.trackedPostpones && safelyEmitEarlyPreloads(request, !0);
  5639. null === request.trackedPostpones && preparePreamble(request);
  5640. request.onShellError = noop;
  5641. request = request.onShellReady;
  5642. request();
  5643. }
  5644. function completeAll(request) {
  5645. safelyEmitEarlyPreloads(
  5646. request,
  5647. null === request.trackedPostpones
  5648. ? !0
  5649. : null === request.completedRootSegment ||
  5650. 5 !== request.completedRootSegment.status
  5651. );
  5652. preparePreamble(request);
  5653. request = request.onAllReady;
  5654. request();
  5655. }
  5656. function queueCompletedSegment(boundary, segment) {
  5657. if (
  5658. 0 === segment.chunks.length &&
  5659. 1 === segment.children.length &&
  5660. null === segment.children[0].boundary &&
  5661. -1 === segment.children[0].id
  5662. ) {
  5663. var childSegment = segment.children[0];
  5664. childSegment.id = segment.id;
  5665. childSegment.parentFlushed = !0;
  5666. (1 !== childSegment.status &&
  5667. 3 !== childSegment.status &&
  5668. 4 !== childSegment.status) ||
  5669. queueCompletedSegment(boundary, childSegment);
  5670. } else boundary.completedSegments.push(segment);
  5671. }
  5672. function finishedTask(request, boundary, row, segment) {
  5673. null !== row &&
  5674. (0 === --row.pendingTasks
  5675. ? finishSuspenseListRow(request, row)
  5676. : row.together && tryToResolveTogetherRow(request, row));
  5677. request.allPendingTasks--;
  5678. if (null === boundary) {
  5679. if (null !== segment && segment.parentFlushed) {
  5680. if (null !== request.completedRootSegment)
  5681. throw Error(
  5682. "There can only be one root segment. This is a bug in React."
  5683. );
  5684. request.completedRootSegment = segment;
  5685. }
  5686. request.pendingRootTasks--;
  5687. 0 === request.pendingRootTasks && completeShell(request);
  5688. } else if ((boundary.pendingTasks--, 4 !== boundary.status))
  5689. if (0 === boundary.pendingTasks)
  5690. if (
  5691. (0 === boundary.status && (boundary.status = 1),
  5692. null !== segment &&
  5693. segment.parentFlushed &&
  5694. (1 === segment.status || 3 === segment.status) &&
  5695. queueCompletedSegment(boundary, segment),
  5696. boundary.parentFlushed && request.completedBoundaries.push(boundary),
  5697. 1 === boundary.status)
  5698. )
  5699. (row = boundary.row),
  5700. null !== row &&
  5701. hoistHoistables(row.hoistables, boundary.contentState),
  5702. isEligibleForOutlining(request, boundary) ||
  5703. (boundary.fallbackAbortableTasks.forEach(abortTaskSoft, request),
  5704. boundary.fallbackAbortableTasks.clear(),
  5705. null !== row &&
  5706. 0 === --row.pendingTasks &&
  5707. finishSuspenseListRow(request, row)),
  5708. 0 === request.pendingRootTasks &&
  5709. null === request.trackedPostpones &&
  5710. null !== boundary.contentPreamble &&
  5711. preparePreamble(request);
  5712. else {
  5713. if (
  5714. 5 === boundary.status &&
  5715. ((boundary = boundary.row), null !== boundary)
  5716. ) {
  5717. if (null !== request.trackedPostpones) {
  5718. row = request.trackedPostpones;
  5719. var postponedRow = boundary.next;
  5720. if (
  5721. null !== postponedRow &&
  5722. ((segment = postponedRow.boundaries), null !== segment)
  5723. )
  5724. for (
  5725. postponedRow.boundaries = null, postponedRow = 0;
  5726. postponedRow < segment.length;
  5727. postponedRow++
  5728. ) {
  5729. var postponedBoundary = segment[postponedRow];
  5730. trackPostponedBoundary(request, row, postponedBoundary);
  5731. finishedTask(request, postponedBoundary, null, null);
  5732. }
  5733. }
  5734. 0 === --boundary.pendingTasks &&
  5735. finishSuspenseListRow(request, boundary);
  5736. }
  5737. }
  5738. else
  5739. null === segment ||
  5740. !segment.parentFlushed ||
  5741. (1 !== segment.status && 3 !== segment.status) ||
  5742. (queueCompletedSegment(boundary, segment),
  5743. 1 === boundary.completedSegments.length &&
  5744. boundary.parentFlushed &&
  5745. request.partialBoundaries.push(boundary)),
  5746. (boundary = boundary.row),
  5747. null !== boundary &&
  5748. boundary.together &&
  5749. tryToResolveTogetherRow(request, boundary);
  5750. 0 === request.allPendingTasks && completeAll(request);
  5751. }
  5752. function performWork(request$jscomp$2) {
  5753. if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
  5754. var prevContext = currentActiveSnapshot,
  5755. prevDispatcher = ReactSharedInternals.H;
  5756. ReactSharedInternals.H = HooksDispatcher;
  5757. var prevAsyncDispatcher = ReactSharedInternals.A;
  5758. ReactSharedInternals.A = DefaultAsyncDispatcher;
  5759. var prevRequest = currentRequest;
  5760. currentRequest = request$jscomp$2;
  5761. var prevResumableState = currentResumableState;
  5762. currentResumableState = request$jscomp$2.resumableState;
  5763. try {
  5764. var pingedTasks = request$jscomp$2.pingedTasks,
  5765. i;
  5766. for (i = 0; i < pingedTasks.length; i++) {
  5767. var task = pingedTasks[i],
  5768. request = request$jscomp$2,
  5769. segment = task.blockedSegment;
  5770. if (null === segment) {
  5771. var request$jscomp$0 = request;
  5772. if (0 !== task.replay.pendingTasks) {
  5773. switchContext(task.context);
  5774. try {
  5775. "number" === typeof task.replay.slots
  5776. ? resumeNode(
  5777. request$jscomp$0,
  5778. task,
  5779. task.replay.slots,
  5780. task.node,
  5781. task.childIndex
  5782. )
  5783. : retryNode(request$jscomp$0, task);
  5784. if (
  5785. 1 === task.replay.pendingTasks &&
  5786. 0 < task.replay.nodes.length
  5787. )
  5788. throw Error(
  5789. "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
  5790. );
  5791. task.replay.pendingTasks--;
  5792. task.abortSet.delete(task);
  5793. finishedTask(
  5794. request$jscomp$0,
  5795. task.blockedBoundary,
  5796. task.row,
  5797. null
  5798. );
  5799. } catch (thrownValue) {
  5800. resetHooksState();
  5801. var x =
  5802. thrownValue === SuspenseException
  5803. ? getSuspendedThenable()
  5804. : thrownValue;
  5805. if (
  5806. "object" === typeof x &&
  5807. null !== x &&
  5808. "function" === typeof x.then
  5809. ) {
  5810. var ping = task.ping;
  5811. x.then(ping, ping);
  5812. task.thenableState =
  5813. thrownValue === SuspenseException
  5814. ? getThenableStateAfterSuspending()
  5815. : null;
  5816. } else {
  5817. task.replay.pendingTasks--;
  5818. task.abortSet.delete(task);
  5819. var errorInfo = getThrownInfo(task.componentStack);
  5820. request = void 0;
  5821. var request$jscomp$1 = request$jscomp$0,
  5822. boundary = task.blockedBoundary,
  5823. error$jscomp$0 =
  5824. 12 === request$jscomp$0.status
  5825. ? request$jscomp$0.fatalError
  5826. : x,
  5827. replayNodes = task.replay.nodes,
  5828. resumeSlots = task.replay.slots;
  5829. request = logRecoverableError(
  5830. request$jscomp$1,
  5831. error$jscomp$0,
  5832. errorInfo
  5833. );
  5834. abortRemainingReplayNodes(
  5835. request$jscomp$1,
  5836. boundary,
  5837. replayNodes,
  5838. resumeSlots,
  5839. error$jscomp$0,
  5840. request
  5841. );
  5842. request$jscomp$0.pendingRootTasks--;
  5843. 0 === request$jscomp$0.pendingRootTasks &&
  5844. completeShell(request$jscomp$0);
  5845. request$jscomp$0.allPendingTasks--;
  5846. 0 === request$jscomp$0.allPendingTasks &&
  5847. completeAll(request$jscomp$0);
  5848. }
  5849. } finally {
  5850. }
  5851. }
  5852. } else if (
  5853. ((request$jscomp$0 = void 0),
  5854. (request$jscomp$1 = segment),
  5855. 0 === request$jscomp$1.status)
  5856. ) {
  5857. request$jscomp$1.status = 6;
  5858. switchContext(task.context);
  5859. var childrenLength = request$jscomp$1.children.length,
  5860. chunkLength = request$jscomp$1.chunks.length;
  5861. try {
  5862. retryNode(request, task),
  5863. pushSegmentFinale(
  5864. request$jscomp$1.chunks,
  5865. request.renderState,
  5866. request$jscomp$1.lastPushedText,
  5867. request$jscomp$1.textEmbedded
  5868. ),
  5869. task.abortSet.delete(task),
  5870. (request$jscomp$1.status = 1),
  5871. finishedTask(
  5872. request,
  5873. task.blockedBoundary,
  5874. task.row,
  5875. request$jscomp$1
  5876. );
  5877. } catch (thrownValue) {
  5878. resetHooksState();
  5879. request$jscomp$1.children.length = childrenLength;
  5880. request$jscomp$1.chunks.length = chunkLength;
  5881. var x$jscomp$0 =
  5882. thrownValue === SuspenseException
  5883. ? getSuspendedThenable()
  5884. : 12 === request.status
  5885. ? request.fatalError
  5886. : thrownValue;
  5887. if (12 === request.status && null !== request.trackedPostpones) {
  5888. var trackedPostpones = request.trackedPostpones,
  5889. thrownInfo = getThrownInfo(task.componentStack);
  5890. task.abortSet.delete(task);
  5891. logRecoverableError(request, x$jscomp$0, thrownInfo);
  5892. trackPostpone(request, trackedPostpones, task, request$jscomp$1);
  5893. finishedTask(
  5894. request,
  5895. task.blockedBoundary,
  5896. task.row,
  5897. request$jscomp$1
  5898. );
  5899. } else if (
  5900. "object" === typeof x$jscomp$0 &&
  5901. null !== x$jscomp$0 &&
  5902. "function" === typeof x$jscomp$0.then
  5903. ) {
  5904. request$jscomp$1.status = 0;
  5905. task.thenableState =
  5906. thrownValue === SuspenseException
  5907. ? getThenableStateAfterSuspending()
  5908. : null;
  5909. var ping$jscomp$0 = task.ping;
  5910. x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
  5911. } else {
  5912. var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
  5913. task.abortSet.delete(task);
  5914. request$jscomp$1.status = 4;
  5915. var boundary$jscomp$0 = task.blockedBoundary,
  5916. row = task.row;
  5917. null !== row &&
  5918. 0 === --row.pendingTasks &&
  5919. finishSuspenseListRow(request, row);
  5920. request.allPendingTasks--;
  5921. request$jscomp$0 = logRecoverableError(
  5922. request,
  5923. x$jscomp$0,
  5924. errorInfo$jscomp$0
  5925. );
  5926. if (null === boundary$jscomp$0) fatalError(request, x$jscomp$0);
  5927. else if (
  5928. (boundary$jscomp$0.pendingTasks--,
  5929. 4 !== boundary$jscomp$0.status)
  5930. ) {
  5931. boundary$jscomp$0.status = 4;
  5932. boundary$jscomp$0.errorDigest = request$jscomp$0;
  5933. untrackBoundary(request, boundary$jscomp$0);
  5934. var boundaryRow = boundary$jscomp$0.row;
  5935. null !== boundaryRow &&
  5936. 0 === --boundaryRow.pendingTasks &&
  5937. finishSuspenseListRow(request, boundaryRow);
  5938. boundary$jscomp$0.parentFlushed &&
  5939. request.clientRenderedBoundaries.push(boundary$jscomp$0);
  5940. 0 === request.pendingRootTasks &&
  5941. null === request.trackedPostpones &&
  5942. null !== boundary$jscomp$0.contentPreamble &&
  5943. preparePreamble(request);
  5944. }
  5945. 0 === request.allPendingTasks && completeAll(request);
  5946. }
  5947. } finally {
  5948. }
  5949. }
  5950. }
  5951. pingedTasks.splice(0, i);
  5952. null !== request$jscomp$2.destination &&
  5953. flushCompletedQueues(request$jscomp$2, request$jscomp$2.destination);
  5954. } catch (error) {
  5955. logRecoverableError(request$jscomp$2, error, {}),
  5956. fatalError(request$jscomp$2, error);
  5957. } finally {
  5958. (currentResumableState = prevResumableState),
  5959. (ReactSharedInternals.H = prevDispatcher),
  5960. (ReactSharedInternals.A = prevAsyncDispatcher),
  5961. prevDispatcher === HooksDispatcher && switchContext(prevContext),
  5962. (currentRequest = prevRequest);
  5963. }
  5964. }
  5965. }
  5966. function preparePreambleFromSubtree(
  5967. request,
  5968. segment,
  5969. collectedPreambleSegments
  5970. ) {
  5971. segment.preambleChildren.length &&
  5972. collectedPreambleSegments.push(segment.preambleChildren);
  5973. for (var pendingPreambles = !1, i = 0; i < segment.children.length; i++)
  5974. pendingPreambles =
  5975. preparePreambleFromSegment(
  5976. request,
  5977. segment.children[i],
  5978. collectedPreambleSegments
  5979. ) || pendingPreambles;
  5980. return pendingPreambles;
  5981. }
  5982. function preparePreambleFromSegment(
  5983. request,
  5984. segment,
  5985. collectedPreambleSegments
  5986. ) {
  5987. var boundary = segment.boundary;
  5988. if (null === boundary)
  5989. return preparePreambleFromSubtree(
  5990. request,
  5991. segment,
  5992. collectedPreambleSegments
  5993. );
  5994. var preamble = boundary.contentPreamble,
  5995. fallbackPreamble = boundary.fallbackPreamble;
  5996. if (null === preamble || null === fallbackPreamble) return !1;
  5997. switch (boundary.status) {
  5998. case 1:
  5999. hoistPreambleState(request.renderState, preamble);
  6000. request.byteSize += boundary.byteSize;
  6001. segment = boundary.completedSegments[0];
  6002. if (!segment)
  6003. throw Error(
  6004. "A previously unvisited boundary must have exactly one root segment. This is a bug in React."
  6005. );
  6006. return preparePreambleFromSubtree(
  6007. request,
  6008. segment,
  6009. collectedPreambleSegments
  6010. );
  6011. case 5:
  6012. if (null !== request.trackedPostpones) return !0;
  6013. case 4:
  6014. if (1 === segment.status)
  6015. return (
  6016. hoistPreambleState(request.renderState, fallbackPreamble),
  6017. preparePreambleFromSubtree(
  6018. request,
  6019. segment,
  6020. collectedPreambleSegments
  6021. )
  6022. );
  6023. default:
  6024. return !0;
  6025. }
  6026. }
  6027. function preparePreamble(request) {
  6028. if (
  6029. request.completedRootSegment &&
  6030. null === request.completedPreambleSegments
  6031. ) {
  6032. var collectedPreambleSegments = [],
  6033. originalRequestByteSize = request.byteSize,
  6034. hasPendingPreambles = preparePreambleFromSegment(
  6035. request,
  6036. request.completedRootSegment,
  6037. collectedPreambleSegments
  6038. ),
  6039. preamble = request.renderState.preamble;
  6040. !1 === hasPendingPreambles || (preamble.headChunks && preamble.bodyChunks)
  6041. ? (request.completedPreambleSegments = collectedPreambleSegments)
  6042. : (request.byteSize = originalRequestByteSize);
  6043. }
  6044. }
  6045. function flushSubtree(request, destination, segment, hoistableState) {
  6046. segment.parentFlushed = !0;
  6047. switch (segment.status) {
  6048. case 0:
  6049. segment.id = request.nextSegmentId++;
  6050. case 5:
  6051. return (
  6052. (hoistableState = segment.id),
  6053. (segment.lastPushedText = !1),
  6054. (segment.textEmbedded = !1),
  6055. (request = request.renderState),
  6056. destination.push('<template id="'),
  6057. destination.push(request.placeholderPrefix),
  6058. (request = hoistableState.toString(16)),
  6059. destination.push(request),
  6060. destination.push('"></template>')
  6061. );
  6062. case 1:
  6063. segment.status = 2;
  6064. var r = !0,
  6065. chunks = segment.chunks,
  6066. chunkIdx = 0;
  6067. segment = segment.children;
  6068. for (var childIdx = 0; childIdx < segment.length; childIdx++) {
  6069. for (r = segment[childIdx]; chunkIdx < r.index; chunkIdx++)
  6070. destination.push(chunks[chunkIdx]);
  6071. r = flushSegment(request, destination, r, hoistableState);
  6072. }
  6073. for (; chunkIdx < chunks.length - 1; chunkIdx++)
  6074. destination.push(chunks[chunkIdx]);
  6075. chunkIdx < chunks.length && (r = destination.push(chunks[chunkIdx]));
  6076. return r;
  6077. case 3:
  6078. return !0;
  6079. default:
  6080. throw Error(
  6081. "Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React."
  6082. );
  6083. }
  6084. }
  6085. var flushedByteSize = 0;
  6086. function flushSegment(request, destination, segment, hoistableState) {
  6087. var boundary = segment.boundary;
  6088. if (null === boundary)
  6089. return flushSubtree(request, destination, segment, hoistableState);
  6090. boundary.parentFlushed = !0;
  6091. if (4 === boundary.status) {
  6092. var row = boundary.row;
  6093. null !== row &&
  6094. 0 === --row.pendingTasks &&
  6095. finishSuspenseListRow(request, row);
  6096. request.renderState.generateStaticMarkup ||
  6097. ((boundary = boundary.errorDigest),
  6098. destination.push("\x3c!--$!--\x3e"),
  6099. destination.push("<template"),
  6100. boundary &&
  6101. (destination.push(' data-dgst="'),
  6102. (boundary = escapeTextForBrowser(boundary)),
  6103. destination.push(boundary),
  6104. destination.push('"')),
  6105. destination.push("></template>"));
  6106. flushSubtree(request, destination, segment, hoistableState);
  6107. request = request.renderState.generateStaticMarkup
  6108. ? !0
  6109. : destination.push("\x3c!--/$--\x3e");
  6110. return request;
  6111. }
  6112. if (1 !== boundary.status)
  6113. return (
  6114. 0 === boundary.status &&
  6115. (boundary.rootSegmentID = request.nextSegmentId++),
  6116. 0 < boundary.completedSegments.length &&
  6117. request.partialBoundaries.push(boundary),
  6118. writeStartPendingSuspenseBoundary(
  6119. destination,
  6120. request.renderState,
  6121. boundary.rootSegmentID
  6122. ),
  6123. hoistableState && hoistHoistables(hoistableState, boundary.fallbackState),
  6124. flushSubtree(request, destination, segment, hoistableState),
  6125. destination.push("\x3c!--/$--\x3e")
  6126. );
  6127. if (
  6128. !flushingPartialBoundaries &&
  6129. isEligibleForOutlining(request, boundary) &&
  6130. flushedByteSize + boundary.byteSize > request.progressiveChunkSize
  6131. )
  6132. return (
  6133. (boundary.rootSegmentID = request.nextSegmentId++),
  6134. request.completedBoundaries.push(boundary),
  6135. writeStartPendingSuspenseBoundary(
  6136. destination,
  6137. request.renderState,
  6138. boundary.rootSegmentID
  6139. ),
  6140. flushSubtree(request, destination, segment, hoistableState),
  6141. destination.push("\x3c!--/$--\x3e")
  6142. );
  6143. flushedByteSize += boundary.byteSize;
  6144. hoistableState && hoistHoistables(hoistableState, boundary.contentState);
  6145. segment = boundary.row;
  6146. null !== segment &&
  6147. isEligibleForOutlining(request, boundary) &&
  6148. 0 === --segment.pendingTasks &&
  6149. finishSuspenseListRow(request, segment);
  6150. request.renderState.generateStaticMarkup ||
  6151. destination.push("\x3c!--$--\x3e");
  6152. segment = boundary.completedSegments;
  6153. if (1 !== segment.length)
  6154. throw Error(
  6155. "A previously unvisited boundary must have exactly one root segment. This is a bug in React."
  6156. );
  6157. flushSegment(request, destination, segment[0], hoistableState);
  6158. request = request.renderState.generateStaticMarkup
  6159. ? !0
  6160. : destination.push("\x3c!--/$--\x3e");
  6161. return request;
  6162. }
  6163. function flushSegmentContainer(request, destination, segment, hoistableState) {
  6164. writeStartSegment(
  6165. destination,
  6166. request.renderState,
  6167. segment.parentFormatContext,
  6168. segment.id
  6169. );
  6170. flushSegment(request, destination, segment, hoistableState);
  6171. return writeEndSegment(destination, segment.parentFormatContext);
  6172. }
  6173. function flushCompletedBoundary(request, destination, boundary) {
  6174. flushedByteSize = boundary.byteSize;
  6175. for (
  6176. var completedSegments = boundary.completedSegments, i = 0;
  6177. i < completedSegments.length;
  6178. i++
  6179. )
  6180. flushPartiallyCompletedSegment(
  6181. request,
  6182. destination,
  6183. boundary,
  6184. completedSegments[i]
  6185. );
  6186. completedSegments.length = 0;
  6187. completedSegments = boundary.row;
  6188. null !== completedSegments &&
  6189. isEligibleForOutlining(request, boundary) &&
  6190. 0 === --completedSegments.pendingTasks &&
  6191. finishSuspenseListRow(request, completedSegments);
  6192. writeHoistablesForBoundary(
  6193. destination,
  6194. boundary.contentState,
  6195. request.renderState
  6196. );
  6197. completedSegments = request.resumableState;
  6198. request = request.renderState;
  6199. i = boundary.rootSegmentID;
  6200. boundary = boundary.contentState;
  6201. var requiresStyleInsertion = request.stylesToHoist;
  6202. request.stylesToHoist = !1;
  6203. destination.push(request.startInlineScript);
  6204. destination.push(">");
  6205. requiresStyleInsertion
  6206. ? (0 === (completedSegments.instructions & 4) &&
  6207. ((completedSegments.instructions |= 4),
  6208. destination.push(
  6209. '$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'
  6210. )),
  6211. 0 === (completedSegments.instructions & 2) &&
  6212. ((completedSegments.instructions |= 2),
  6213. destination.push(
  6214. '$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};'
  6215. )),
  6216. 0 === (completedSegments.instructions & 8)
  6217. ? ((completedSegments.instructions |= 8),
  6218. destination.push(
  6219. '$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\n"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("'
  6220. ))
  6221. : destination.push('$RR("'))
  6222. : (0 === (completedSegments.instructions & 2) &&
  6223. ((completedSegments.instructions |= 2),
  6224. destination.push(
  6225. '$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};'
  6226. )),
  6227. destination.push('$RC("'));
  6228. completedSegments = i.toString(16);
  6229. destination.push(request.boundaryPrefix);
  6230. destination.push(completedSegments);
  6231. destination.push('","');
  6232. destination.push(request.segmentPrefix);
  6233. destination.push(completedSegments);
  6234. requiresStyleInsertion
  6235. ? (destination.push('",'),
  6236. writeStyleResourceDependenciesInJS(destination, boundary))
  6237. : destination.push('"');
  6238. boundary = destination.push(")\x3c/script>");
  6239. return writeBootstrap(destination, request) && boundary;
  6240. }
  6241. function flushPartiallyCompletedSegment(
  6242. request,
  6243. destination,
  6244. boundary,
  6245. segment
  6246. ) {
  6247. if (2 === segment.status) return !0;
  6248. var hoistableState = boundary.contentState,
  6249. segmentID = segment.id;
  6250. if (-1 === segmentID) {
  6251. if (-1 === (segment.id = boundary.rootSegmentID))
  6252. throw Error(
  6253. "A root segment ID must have been assigned by now. This is a bug in React."
  6254. );
  6255. return flushSegmentContainer(request, destination, segment, hoistableState);
  6256. }
  6257. if (segmentID === boundary.rootSegmentID)
  6258. return flushSegmentContainer(request, destination, segment, hoistableState);
  6259. flushSegmentContainer(request, destination, segment, hoistableState);
  6260. boundary = request.resumableState;
  6261. request = request.renderState;
  6262. destination.push(request.startInlineScript);
  6263. destination.push(">");
  6264. 0 === (boundary.instructions & 1)
  6265. ? ((boundary.instructions |= 1),
  6266. destination.push(
  6267. '$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'
  6268. ))
  6269. : destination.push('$RS("');
  6270. destination.push(request.segmentPrefix);
  6271. segmentID = segmentID.toString(16);
  6272. destination.push(segmentID);
  6273. destination.push('","');
  6274. destination.push(request.placeholderPrefix);
  6275. destination.push(segmentID);
  6276. destination = destination.push('")\x3c/script>');
  6277. return destination;
  6278. }
  6279. var flushingPartialBoundaries = !1;
  6280. function flushCompletedQueues(request, destination) {
  6281. try {
  6282. if (!(0 < request.pendingRootTasks)) {
  6283. var i,
  6284. completedRootSegment = request.completedRootSegment;
  6285. if (null !== completedRootSegment) {
  6286. if (5 === completedRootSegment.status) return;
  6287. var completedPreambleSegments = request.completedPreambleSegments;
  6288. if (null === completedPreambleSegments) return;
  6289. flushedByteSize = request.byteSize;
  6290. var resumableState = request.resumableState,
  6291. renderState = request.renderState,
  6292. preamble = renderState.preamble,
  6293. htmlChunks = preamble.htmlChunks,
  6294. headChunks = preamble.headChunks,
  6295. i$jscomp$0;
  6296. if (htmlChunks) {
  6297. for (i$jscomp$0 = 0; i$jscomp$0 < htmlChunks.length; i$jscomp$0++)
  6298. destination.push(htmlChunks[i$jscomp$0]);
  6299. if (headChunks)
  6300. for (i$jscomp$0 = 0; i$jscomp$0 < headChunks.length; i$jscomp$0++)
  6301. destination.push(headChunks[i$jscomp$0]);
  6302. else {
  6303. var chunk = startChunkForTag("head");
  6304. destination.push(chunk);
  6305. destination.push(">");
  6306. }
  6307. } else if (headChunks)
  6308. for (i$jscomp$0 = 0; i$jscomp$0 < headChunks.length; i$jscomp$0++)
  6309. destination.push(headChunks[i$jscomp$0]);
  6310. var charsetChunks = renderState.charsetChunks;
  6311. for (i$jscomp$0 = 0; i$jscomp$0 < charsetChunks.length; i$jscomp$0++)
  6312. destination.push(charsetChunks[i$jscomp$0]);
  6313. charsetChunks.length = 0;
  6314. renderState.preconnects.forEach(flushResource, destination);
  6315. renderState.preconnects.clear();
  6316. var viewportChunks = renderState.viewportChunks;
  6317. for (i$jscomp$0 = 0; i$jscomp$0 < viewportChunks.length; i$jscomp$0++)
  6318. destination.push(viewportChunks[i$jscomp$0]);
  6319. viewportChunks.length = 0;
  6320. renderState.fontPreloads.forEach(flushResource, destination);
  6321. renderState.fontPreloads.clear();
  6322. renderState.highImagePreloads.forEach(flushResource, destination);
  6323. renderState.highImagePreloads.clear();
  6324. currentlyFlushingRenderState = renderState;
  6325. renderState.styles.forEach(flushStylesInPreamble, destination);
  6326. currentlyFlushingRenderState = null;
  6327. var importMapChunks = renderState.importMapChunks;
  6328. for (i$jscomp$0 = 0; i$jscomp$0 < importMapChunks.length; i$jscomp$0++)
  6329. destination.push(importMapChunks[i$jscomp$0]);
  6330. importMapChunks.length = 0;
  6331. renderState.bootstrapScripts.forEach(flushResource, destination);
  6332. renderState.scripts.forEach(flushResource, destination);
  6333. renderState.scripts.clear();
  6334. renderState.bulkPreloads.forEach(flushResource, destination);
  6335. renderState.bulkPreloads.clear();
  6336. resumableState.instructions |= 32;
  6337. var hoistableChunks = renderState.hoistableChunks;
  6338. for (i$jscomp$0 = 0; i$jscomp$0 < hoistableChunks.length; i$jscomp$0++)
  6339. destination.push(hoistableChunks[i$jscomp$0]);
  6340. for (
  6341. resumableState = hoistableChunks.length = 0;
  6342. resumableState < completedPreambleSegments.length;
  6343. resumableState++
  6344. ) {
  6345. var segments = completedPreambleSegments[resumableState];
  6346. for (renderState = 0; renderState < segments.length; renderState++)
  6347. flushSegment(request, destination, segments[renderState], null);
  6348. }
  6349. var preamble$jscomp$0 = request.renderState.preamble,
  6350. headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
  6351. if (preamble$jscomp$0.htmlChunks || headChunks$jscomp$0) {
  6352. var chunk$jscomp$0 = endChunkForTag("head");
  6353. destination.push(chunk$jscomp$0);
  6354. }
  6355. var bodyChunks = preamble$jscomp$0.bodyChunks;
  6356. if (bodyChunks)
  6357. for (
  6358. completedPreambleSegments = 0;
  6359. completedPreambleSegments < bodyChunks.length;
  6360. completedPreambleSegments++
  6361. )
  6362. destination.push(bodyChunks[completedPreambleSegments]);
  6363. flushSegment(request, destination, completedRootSegment, null);
  6364. request.completedRootSegment = null;
  6365. var renderState$jscomp$0 = request.renderState;
  6366. if (
  6367. 0 !== request.allPendingTasks ||
  6368. 0 !== request.clientRenderedBoundaries.length ||
  6369. 0 !== request.completedBoundaries.length ||
  6370. (null !== request.trackedPostpones &&
  6371. (0 !== request.trackedPostpones.rootNodes.length ||
  6372. null !== request.trackedPostpones.rootSlots))
  6373. ) {
  6374. var resumableState$jscomp$0 = request.resumableState;
  6375. if (0 === (resumableState$jscomp$0.instructions & 64)) {
  6376. resumableState$jscomp$0.instructions |= 64;
  6377. destination.push(renderState$jscomp$0.startInlineScript);
  6378. if (0 === (resumableState$jscomp$0.instructions & 32)) {
  6379. resumableState$jscomp$0.instructions |= 32;
  6380. var shellId = "_" + resumableState$jscomp$0.idPrefix + "R_";
  6381. destination.push(' id="');
  6382. var chunk$jscomp$1 = escapeTextForBrowser(shellId);
  6383. destination.push(chunk$jscomp$1);
  6384. destination.push('"');
  6385. }
  6386. destination.push(">");
  6387. destination.push(
  6388. "requestAnimationFrame(function(){$RT=performance.now()});"
  6389. );
  6390. destination.push("\x3c/script>");
  6391. }
  6392. }
  6393. writeBootstrap(destination, renderState$jscomp$0);
  6394. }
  6395. var renderState$jscomp$1 = request.renderState;
  6396. completedRootSegment = 0;
  6397. var viewportChunks$jscomp$0 = renderState$jscomp$1.viewportChunks;
  6398. for (
  6399. completedRootSegment = 0;
  6400. completedRootSegment < viewportChunks$jscomp$0.length;
  6401. completedRootSegment++
  6402. )
  6403. destination.push(viewportChunks$jscomp$0[completedRootSegment]);
  6404. viewportChunks$jscomp$0.length = 0;
  6405. renderState$jscomp$1.preconnects.forEach(flushResource, destination);
  6406. renderState$jscomp$1.preconnects.clear();
  6407. renderState$jscomp$1.fontPreloads.forEach(flushResource, destination);
  6408. renderState$jscomp$1.fontPreloads.clear();
  6409. renderState$jscomp$1.highImagePreloads.forEach(
  6410. flushResource,
  6411. destination
  6412. );
  6413. renderState$jscomp$1.highImagePreloads.clear();
  6414. renderState$jscomp$1.styles.forEach(preloadLateStyles, destination);
  6415. renderState$jscomp$1.scripts.forEach(flushResource, destination);
  6416. renderState$jscomp$1.scripts.clear();
  6417. renderState$jscomp$1.bulkPreloads.forEach(flushResource, destination);
  6418. renderState$jscomp$1.bulkPreloads.clear();
  6419. var hoistableChunks$jscomp$0 = renderState$jscomp$1.hoistableChunks;
  6420. for (
  6421. completedRootSegment = 0;
  6422. completedRootSegment < hoistableChunks$jscomp$0.length;
  6423. completedRootSegment++
  6424. )
  6425. destination.push(hoistableChunks$jscomp$0[completedRootSegment]);
  6426. hoistableChunks$jscomp$0.length = 0;
  6427. var clientRenderedBoundaries = request.clientRenderedBoundaries;
  6428. for (i = 0; i < clientRenderedBoundaries.length; i++) {
  6429. var boundary = clientRenderedBoundaries[i];
  6430. renderState$jscomp$1 = destination;
  6431. var resumableState$jscomp$1 = request.resumableState,
  6432. renderState$jscomp$2 = request.renderState,
  6433. id = boundary.rootSegmentID,
  6434. errorDigest = boundary.errorDigest;
  6435. renderState$jscomp$1.push(renderState$jscomp$2.startInlineScript);
  6436. renderState$jscomp$1.push(">");
  6437. 0 === (resumableState$jscomp$1.instructions & 4)
  6438. ? ((resumableState$jscomp$1.instructions |= 4),
  6439. renderState$jscomp$1.push(
  6440. '$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'
  6441. ))
  6442. : renderState$jscomp$1.push('$RX("');
  6443. renderState$jscomp$1.push(renderState$jscomp$2.boundaryPrefix);
  6444. var chunk$jscomp$2 = id.toString(16);
  6445. renderState$jscomp$1.push(chunk$jscomp$2);
  6446. renderState$jscomp$1.push('"');
  6447. if (errorDigest) {
  6448. renderState$jscomp$1.push(",");
  6449. var chunk$jscomp$3 = escapeJSStringsForInstructionScripts(
  6450. errorDigest || ""
  6451. );
  6452. renderState$jscomp$1.push(chunk$jscomp$3);
  6453. }
  6454. var JSCompiler_inline_result =
  6455. renderState$jscomp$1.push(")\x3c/script>");
  6456. if (!JSCompiler_inline_result) {
  6457. request.destination = null;
  6458. i++;
  6459. clientRenderedBoundaries.splice(0, i);
  6460. return;
  6461. }
  6462. }
  6463. clientRenderedBoundaries.splice(0, i);
  6464. var completedBoundaries = request.completedBoundaries;
  6465. for (i = 0; i < completedBoundaries.length; i++)
  6466. if (
  6467. !flushCompletedBoundary(request, destination, completedBoundaries[i])
  6468. ) {
  6469. request.destination = null;
  6470. i++;
  6471. completedBoundaries.splice(0, i);
  6472. return;
  6473. }
  6474. completedBoundaries.splice(0, i);
  6475. flushingPartialBoundaries = !0;
  6476. var partialBoundaries = request.partialBoundaries;
  6477. for (i = 0; i < partialBoundaries.length; i++) {
  6478. var boundary$69 = partialBoundaries[i];
  6479. a: {
  6480. clientRenderedBoundaries = request;
  6481. boundary = destination;
  6482. flushedByteSize = boundary$69.byteSize;
  6483. var completedSegments = boundary$69.completedSegments;
  6484. for (
  6485. JSCompiler_inline_result = 0;
  6486. JSCompiler_inline_result < completedSegments.length;
  6487. JSCompiler_inline_result++
  6488. )
  6489. if (
  6490. !flushPartiallyCompletedSegment(
  6491. clientRenderedBoundaries,
  6492. boundary,
  6493. boundary$69,
  6494. completedSegments[JSCompiler_inline_result]
  6495. )
  6496. ) {
  6497. JSCompiler_inline_result++;
  6498. completedSegments.splice(0, JSCompiler_inline_result);
  6499. var JSCompiler_inline_result$jscomp$0 = !1;
  6500. break a;
  6501. }
  6502. completedSegments.splice(0, JSCompiler_inline_result);
  6503. var row = boundary$69.row;
  6504. null !== row &&
  6505. row.together &&
  6506. 1 === boundary$69.pendingTasks &&
  6507. (1 === row.pendingTasks
  6508. ? unblockSuspenseListRow(
  6509. clientRenderedBoundaries,
  6510. row,
  6511. row.hoistables
  6512. )
  6513. : row.pendingTasks--);
  6514. JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
  6515. boundary,
  6516. boundary$69.contentState,
  6517. clientRenderedBoundaries.renderState
  6518. );
  6519. }
  6520. if (!JSCompiler_inline_result$jscomp$0) {
  6521. request.destination = null;
  6522. i++;
  6523. partialBoundaries.splice(0, i);
  6524. return;
  6525. }
  6526. }
  6527. partialBoundaries.splice(0, i);
  6528. flushingPartialBoundaries = !1;
  6529. var largeBoundaries = request.completedBoundaries;
  6530. for (i = 0; i < largeBoundaries.length; i++)
  6531. if (!flushCompletedBoundary(request, destination, largeBoundaries[i])) {
  6532. request.destination = null;
  6533. i++;
  6534. largeBoundaries.splice(0, i);
  6535. return;
  6536. }
  6537. largeBoundaries.splice(0, i);
  6538. }
  6539. } finally {
  6540. (flushingPartialBoundaries = !1),
  6541. 0 === request.allPendingTasks &&
  6542. 0 === request.clientRenderedBoundaries.length &&
  6543. 0 === request.completedBoundaries.length &&
  6544. ((request.flushScheduled = !1),
  6545. (i = request.resumableState),
  6546. i.hasBody &&
  6547. ((partialBoundaries = endChunkForTag("body")),
  6548. destination.push(partialBoundaries)),
  6549. i.hasHtml && ((i = endChunkForTag("html")), destination.push(i)),
  6550. (request.status = 14),
  6551. destination.push(null),
  6552. (request.destination = null));
  6553. }
  6554. }
  6555. function enqueueFlush(request) {
  6556. if (
  6557. !1 === request.flushScheduled &&
  6558. 0 === request.pingedTasks.length &&
  6559. null !== request.destination
  6560. ) {
  6561. request.flushScheduled = !0;
  6562. var destination = request.destination;
  6563. destination
  6564. ? flushCompletedQueues(request, destination)
  6565. : (request.flushScheduled = !1);
  6566. }
  6567. }
  6568. function startFlowing(request, destination) {
  6569. if (13 === request.status)
  6570. (request.status = 14), destination.destroy(request.fatalError);
  6571. else if (14 !== request.status && null === request.destination) {
  6572. request.destination = destination;
  6573. try {
  6574. flushCompletedQueues(request, destination);
  6575. } catch (error) {
  6576. logRecoverableError(request, error, {}), fatalError(request, error);
  6577. }
  6578. }
  6579. }
  6580. function abort(request, reason) {
  6581. if (11 === request.status || 10 === request.status) request.status = 12;
  6582. try {
  6583. var abortableTasks = request.abortableTasks;
  6584. if (0 < abortableTasks.size) {
  6585. var error =
  6586. void 0 === reason
  6587. ? Error("The render was aborted by the server without a reason.")
  6588. : "object" === typeof reason &&
  6589. null !== reason &&
  6590. "function" === typeof reason.then
  6591. ? Error("The render was aborted by the server with a promise.")
  6592. : reason;
  6593. request.fatalError = error;
  6594. abortableTasks.forEach(function (task) {
  6595. return abortTask(task, request, error);
  6596. });
  6597. abortableTasks.clear();
  6598. }
  6599. null !== request.destination &&
  6600. flushCompletedQueues(request, request.destination);
  6601. } catch (error$71) {
  6602. logRecoverableError(request, error$71, {}), fatalError(request, error$71);
  6603. }
  6604. }
  6605. function addToReplayParent(node, parentKeyPath, trackedPostpones) {
  6606. if (null === parentKeyPath) trackedPostpones.rootNodes.push(node);
  6607. else {
  6608. var workingMap = trackedPostpones.workingMap,
  6609. parentNode = workingMap.get(parentKeyPath);
  6610. void 0 === parentNode &&
  6611. ((parentNode = [parentKeyPath[1], parentKeyPath[2], [], null]),
  6612. workingMap.set(parentKeyPath, parentNode),
  6613. addToReplayParent(parentNode, parentKeyPath[0], trackedPostpones));
  6614. parentNode[2].push(node);
  6615. }
  6616. }
  6617. function onError() {}
  6618. function renderToStringImpl(
  6619. children,
  6620. options,
  6621. generateStaticMarkup,
  6622. abortReason
  6623. ) {
  6624. var didFatal = !1,
  6625. fatalError = null,
  6626. result = "",
  6627. readyToStream = !1;
  6628. options = createResumableState(options ? options.identifierPrefix : void 0);
  6629. children = createRequest(
  6630. children,
  6631. options,
  6632. createRenderState(options, generateStaticMarkup),
  6633. createFormatContext(0, null, 0, null),
  6634. Infinity,
  6635. onError,
  6636. void 0,
  6637. function () {
  6638. readyToStream = !0;
  6639. },
  6640. void 0,
  6641. void 0,
  6642. void 0
  6643. );
  6644. children.flushScheduled = null !== children.destination;
  6645. performWork(children);
  6646. 10 === children.status && (children.status = 11);
  6647. null === children.trackedPostpones &&
  6648. safelyEmitEarlyPreloads(children, 0 === children.pendingRootTasks);
  6649. abort(children, abortReason);
  6650. startFlowing(children, {
  6651. push: function (chunk) {
  6652. null !== chunk && (result += chunk);
  6653. return !0;
  6654. },
  6655. destroy: function (error) {
  6656. didFatal = !0;
  6657. fatalError = error;
  6658. }
  6659. });
  6660. if (didFatal && fatalError !== abortReason) throw fatalError;
  6661. if (!readyToStream)
  6662. throw Error(
  6663. "A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition."
  6664. );
  6665. return result;
  6666. }
  6667. exports.renderToStaticMarkup = function (children, options) {
  6668. return renderToStringImpl(
  6669. children,
  6670. options,
  6671. !0,
  6672. 'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server'
  6673. );
  6674. };
  6675. exports.renderToString = function (children, options) {
  6676. return renderToStringImpl(
  6677. children,
  6678. options,
  6679. !1,
  6680. 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server'
  6681. );
  6682. };
  6683. exports.version = "19.2.4";